/* ================================================================
   SportsPulse — Professional Dark Sports Theme v2
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --bg0: #060709;
  --bg1: #0c0e13;
  --bg2: #12151c;
  --bg3: #181c26;
  --bg4: #1e2330;
  --border: #1f2538;
  --border2: #2a304a;
  --accent: #f5a623;
  --accent2: #e8941a;
  --accent-glow: rgba(245,166,35,0.18);
  --red: #e63946;
  --red-glow: rgba(230,57,70,0.2);
  --green: #2ec27e;
  --blue: #3b82f6;
  --t1: #f0f2fa;
  --t2: #8892b0;
  --t3: #4a527a;
  --t4: #2d3455;
  --r: 8px;
  --rlg: 14px;
  --font-h: 'Oswald', sans-serif;
  --font-b: 'Inter', sans-serif;
  --hh: 64px;
  --transition: 0.18s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg0);
  color: var(--t1);
  font-family: var(--font-b);
  font-size: 14px;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; font-family: inherit; color: inherit; }
.container { max-width: 1360px; margin: 0 auto; padding: 0 24px; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg1); }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 3px; }

/* ── AD SLOTS ── */
.ad-slot { width: 100%; }
.ad-slot:not(:empty) { padding: 6px 0; }

/* ═══════════════════════════════════════════════
   HEADER
═══════════════════════════════════════════════ */
.site-header {
  position: sticky; top: 0; z-index: 200;
  height: var(--hh);
  background: rgba(6,7,9,0.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1360px; margin: 0 auto; padding: 0 24px;
  height: 100%; display: flex; align-items: center; gap: 0;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  flex-shrink: 0; margin-right: 32px;
}
.logo-icon {
  width: 34px; height: 34px;
  background: var(--accent);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 900; color: #000;
  flex-shrink: 0;
}
.logo-text {
  font-family: var(--font-h);
  font-size: 22px; font-weight: 700; letter-spacing: 0.08em;
  color: var(--t1); text-transform: uppercase;
}
.logo-text span { color: var(--accent); }

.main-nav { display: flex; align-items: center; gap: 2px; flex: 1; }
.nav-link {
  padding: 6px 14px; border-radius: 6px;
  font-size: 13px; font-weight: 500; letter-spacing: 0.04em;
  color: var(--t2); transition: var(--transition);
  white-space: nowrap;
}
.nav-link:hover { color: var(--t1); background: var(--bg3); }
.nav-link.active { color: var(--accent); background: var(--accent-glow); }
.nav-live { color: var(--red) !important; }
.nav-live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); display: inline-block; margin-right: 5px; animation: blink 1.4s infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.3} }

.header-right { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.search-box {
  display: flex; align-items: center;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 8px; overflow: hidden; transition: var(--transition);
}
.search-box:focus-within { border-color: var(--accent); }
.search-box input {
  background: none; border: none; outline: none;
  color: var(--t1); font-family: var(--font-b); font-size: 13px;
  padding: 7px 12px; width: 200px;
}
.search-box input::placeholder { color: var(--t3); }
.search-box button { padding: 0 12px; color: var(--t3); font-size: 16px; }
.header-icon-btn {
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--bg2); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: var(--t2); transition: var(--transition);
}
.header-icon-btn:hover { color: var(--accent); border-color: var(--accent); }
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 6px; }
.hamburger span { display: block; width: 20px; height: 2px; background: var(--t1); border-radius: 1px; transition: var(--transition); }

/* ═══════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════ */
.hero {
  position: relative; overflow: hidden;
  padding: 0 24px;
  background: var(--bg1);
  border-bottom: 1px solid var(--border);
}
.hero-grid {
  max-width: 1360px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 260px 300px;
  gap: 0; min-height: 320px;
}
.hero-left {
  padding: 48px 48px 48px 48px;
  display: flex; flex-direction: column; justify-content: center;
  border-right: 1px solid var(--border);
  position: relative;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent-glow); border: 1px solid rgba(245,166,35,0.3);
  border-radius: 20px; padding: 4px 14px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.1em;
  color: var(--accent); text-transform: uppercase; margin-bottom: 20px;
  width: fit-content;
}
.hero-title {
  font-family: var(--font-h);
  font-size: clamp(44px, 5vw, 72px);
  font-weight: 700; line-height: 0.95;
  text-transform: uppercase; letter-spacing: 0.02em;
  margin-bottom: 16px;
}
.hero-title .hl { color: var(--accent); }
.hero-sub { font-size: 15px; color: var(--t2); margin-bottom: 28px; max-width: 440px; }
.hero-stats { display: flex; gap: 32px; }
.hstat { display: flex; flex-direction: column; }
.hstat-n { font-family: var(--font-h); font-size: 36px; font-weight: 700; color: var(--accent); line-height: 1; }
.hstat-l { font-size: 11px; color: var(--t3); text-transform: uppercase; letter-spacing: 0.1em; margin-top: 3px; }

.hero-right {
  padding: 24px; display: flex; flex-direction: column; gap: 10px;
  overflow: hidden;
}
.hero-right-title {
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em;
  color: var(--t3); text-transform: uppercase; margin-bottom: 6px;
  display: flex; align-items: center; gap: 6px;
}
.hero-right-title::before { content:''; width:8px; height:8px; border-radius:50%; background:var(--red); animation:blink 1.4s infinite; }
.hero-match-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; background: var(--bg2);
  border: 1px solid var(--border); border-radius: var(--r);
  cursor: pointer; transition: var(--transition);
  text-decoration: none; color: inherit;
}
.hero-match-item:hover { border-color: var(--accent); background: var(--bg3); }
.hero-mi-sport { font-size: 18px; flex-shrink: 0; }
.hero-mi-info { flex: 1; min-width: 0; }
.hero-mi-title { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-mi-meta { font-size: 11px; color: var(--t3); margin-top: 1px; }
.live-badge {
  font-size: 10px; font-weight: 700; letter-spacing: 0.06em;
  background: rgba(230,57,70,0.15); color: var(--red);
  border-radius: 4px; padding: 2px 7px; flex-shrink: 0;
  animation: blink 2s infinite;
}

/* ═══════════════════════════════════════════════
   SPORT CATEGORY FILTER BAR
═══════════════════════════════════════════════ */
.sport-filter-bar {
  background: var(--bg1); border-bottom: 1px solid var(--border);
  position: sticky; top: var(--hh); z-index: 150;
}
.sport-filter-inner {
  max-width: 1360px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; gap: 0;
  overflow-x: auto; scrollbar-width: none;
}
.sport-filter-inner::-webkit-scrollbar { display: none; }
.sport-tab {
  flex-shrink: 0; padding: 14px 18px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.04em;
  color: var(--t2); border-bottom: 3px solid transparent;
  transition: var(--transition); white-space: nowrap;
  display: flex; align-items: center; gap: 6px;
}
.sport-tab:hover { color: var(--t1); }
.sport-tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.sport-tab .tab-count {
  font-size: 10px; background: var(--bg3); border-radius: 10px;
  padding: 1px 7px; color: var(--t3);
}
.sport-tab.active .tab-count { background: var(--accent-glow); color: var(--accent); }

/* ═══════════════════════════════════════════════
   MAIN CONTENT LAYOUT (2-col with sidebar)
═══════════════════════════════════════════════ */
.page-body {
  max-width: 1360px; margin: 0 auto; padding: 28px 24px;
  display: grid; grid-template-columns: 1fr 300px; gap: 24px;
}

/* ── CATEGORY SECTIONS ── */
.cat-section { margin-bottom: 36px; }
.cat-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px; padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.cat-title {
  font-family: var(--font-h); font-size: 22px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  display: flex; align-items: center; gap: 10px;
}
.cat-title .cat-icon { font-size: 20px; }
.cat-live-count {
  font-size: 11px; font-weight: 700;
  background: var(--red-glow); color: var(--red);
  border-radius: 4px; padding: 2px 8px; letter-spacing: 0.06em;
}
.cat-see-all {
  font-size: 13px; font-weight: 600; color: var(--t2);
  transition: var(--transition); display: flex; align-items: center; gap: 4px;
}
.cat-see-all:hover { color: var(--accent); }

.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

/* ── MATCH CARD ── */
.match-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--rlg); overflow: hidden;
  cursor: pointer; transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  position: relative; display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
}
.match-card:hover {
  transform: translateY(-3px);
  border-color: var(--border2);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}
.match-card.is-live {
  border-color: rgba(230,57,70,0.35);
  box-shadow: 0 0 24px rgba(230,57,70,0.07);
}
.match-card.is-live::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--red) 0%, transparent 100%);
}

/* card top poster area */
.card-poster {
  height: 100px; position: relative; overflow: hidden;
  background: var(--bg3);
  display: flex; align-items: center; justify-content: center;
}
.card-poster-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--bg3) 0%, var(--bg4) 100%);
}
.card-poster-teams {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center; gap: 14px; width: 100%;
  padding: 0 16px;
}
.card-team-logo {
  width: 52px; height: 52px; object-fit: contain; border-radius: 8px;
  background: var(--bg2); flex-shrink: 0;
}
.card-vs {
  font-family: var(--font-h); font-size: 16px; color: var(--t3);
  flex-shrink: 0; letter-spacing: 0.08em;
}
.card-status-badge {
  position: absolute; top: 10px; right: 10px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.06em;
  padding: 3px 8px; border-radius: 4px; text-transform: uppercase;
}
.badge-live { background: var(--red); color: #fff; animation: blink 2s infinite; }
.badge-soon { background: rgba(59,130,246,0.2); color: var(--blue); }
.badge-hot { background: var(--accent); color: #000; }

/* card body */
.card-body { padding: 12px 14px; flex: 1; display: flex; flex-direction: column; }
.card-match-title {
  font-size: 13px; font-weight: 600; line-height: 1.4;
  margin-bottom: 6px; color: var(--t1);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-meta {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
}
.card-time { font-size: 11px; color: var(--t3); }
.card-streams { font-size: 11px; color: var(--accent); font-weight: 600; }

/* ── CARD ACTIONS: Watch + Link + Embed — 3 buttons ── */
.card-actions {
  display: flex;
  gap: 5px;
  align-items: stretch;
  margin-top: auto;
}

/* Watch button — amber, takes remaining space */
.card-watch-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: var(--accent);
  color: #000;
  font-size: 11px;
  font-weight: 700;
  padding: 7px 10px;
  border-radius: 6px;
  letter-spacing: 0.04em;
  pointer-events: none; /* card <a> handles the click */
}

/* Link button — blue/teal */
.card-link-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 7px 9px;
  background: #2563eb;
  border: none;
  border-radius: 6px;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity var(--transition);
  flex-shrink: 0;
  letter-spacing: 0.04em;
}
.card-link-btn:hover { opacity: 0.82; }

/* Embed button — red */
.card-embed-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 7px 9px;
  background: var(--red);
  border: none;
  border-radius: 6px;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity var(--transition);
  flex-shrink: 0;
  letter-spacing: 0.04em;
}
.card-embed-btn:hover { opacity: 0.82; }

/* ── SIDEBAR ── */
.sidebar { display: flex; flex-direction: column; gap: 20px; }
.sidebar-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--rlg); overflow: hidden;
}
.sidebar-card-header {
  padding: 14px 16px; border-bottom: 1px solid var(--border);
  font-family: var(--font-h); font-size: 16px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  display: flex; align-items: center; gap: 8px;
}
.sidebar-match-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  border-bottom: 1px solid var(--border); cursor: pointer; transition: var(--transition);
  text-decoration: none; color: inherit;
}
.sidebar-match-item:last-child { border-bottom: none; }
.sidebar-match-item:hover { background: var(--bg3); }
.smi-icon { font-size: 18px; flex-shrink: 0; }
.smi-info { flex: 1; min-width: 0; }
.smi-title { font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.smi-meta { font-size: 11px; color: var(--t3); margin-top: 1px; }

/* ── LOADING / EMPTY ── */
.loading-state, .empty-state {
  grid-column: 1/-1; text-align: center; padding: 50px 0; color: var(--t3);
}
.spinner {
  width: 32px; height: 32px; border: 3px solid var(--border2);
  border-top-color: var(--accent); border-radius: 50%;
  animation: spin 0.75s linear infinite; margin: 0 auto 14px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.empty-icon { font-size: 40px; display: block; margin-bottom: 10px; }

/* ═══════════════════════════════════════════════
   WATCH / STREAM PAGE (full page)
═══════════════════════════════════════════════ */
.watch-page {
  position: fixed; inset: 0; z-index: 500;
  background: var(--bg0);
  display: none; flex-direction: column;
}
.watch-page.open { display: flex; }

.watch-header {
  height: 54px; flex-shrink: 0;
  background: var(--bg1); border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 14px; padding: 0 20px;
}
.watch-back {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 12px; background: var(--bg2); border: 1px solid var(--border);
  border-radius: 7px; font-size: 13px; font-weight: 500; color: var(--t2);
  transition: var(--transition); flex-shrink: 0;
}
.watch-back:hover { color: var(--accent); border-color: var(--accent); }
.watch-title-area { flex: 1; min-width: 0; }
.watch-event-title {
  font-family: var(--font-h); font-size: 19px; font-weight: 700;
  letter-spacing: 0.04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.watch-event-meta { font-size: 11px; color: var(--t3); }
.watch-header-actions { display: flex; gap: 8px; flex-shrink: 0; }

.watch-body { flex: 1; display: flex; overflow: hidden; }

/* Player side */
.watch-player-col {
  flex: 1; min-width: 0; overflow-y: auto;
  display: flex; flex-direction: column; gap: 0;
}
.watch-ad-top, .watch-ad-bottom { width: 100%; }
.watch-ad-top:not(:empty) { padding: 8px 16px; }
.watch-ad-bottom:not(:empty) { padding: 8px 16px; }

.player-outer {
  position: relative; width: 100%;
  background: #000; flex-shrink: 0;
}
.player-outer-frame {
  position: relative; width: 100%; aspect-ratio: 16/9;
  overflow: hidden;
}
.stream-iframe-host {
  position: absolute; inset: 0; width: 100%; height: 100%;
  border: none; background: #000;
}
.iframe-ad-layer {
  position: absolute; z-index: 10; pointer-events: none;
}
.iframe-ad-layer.top-left    { top: 10px; left: 10px; pointer-events: auto; }
.iframe-ad-layer.top-right   { top: 10px; right: 10px; pointer-events: auto; }
.iframe-ad-layer.bottom-left { bottom: 10px; left: 10px; pointer-events: auto; }
.iframe-ad-layer.bottom-right{ bottom: 10px; right: 10px; pointer-events: auto; }
.iframe-ad-layer.center      { top: 50%; left: 50%; transform: translate(-50%,-50%); pointer-events: auto; }
.iframe-ad-layer.banner-top  { top: 0; left: 0; right: 0; pointer-events: auto; }
.iframe-ad-layer.banner-bottom{ bottom: 0; left: 0; right: 0; pointer-events: auto; }

.stream-channel-bar {
  background: var(--bg1); border-bottom: 1px solid var(--border);
  padding: 10px 16px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.stream-channel-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
  color: var(--t3); text-transform: uppercase; flex-shrink: 0;
}
.stream-channels { display: flex; gap: 6px; flex-wrap: wrap; }
.channel-btn {
  padding: 5px 14px; background: var(--bg2); border: 1px solid var(--border);
  border-radius: 20px; font-size: 12px; font-weight: 600; color: var(--t2);
  transition: var(--transition); letter-spacing: 0.04em; text-transform: uppercase;
}
.channel-btn:hover { color: var(--t1); border-color: var(--border2); }
.channel-btn.active { background: var(--accent); border-color: var(--accent); color: #000; }

.watch-chat-col {
  width: 290px; flex-shrink: 0;
  background: var(--bg1); border-left: 1px solid var(--border);
  display: flex; flex-direction: column; transition: width 0.25s ease, opacity 0.25s;
}
.watch-chat-col.collapsed { width: 0; opacity: 0; overflow: hidden; }

.chat-head {
  padding: 12px 14px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 8px;
}
.chat-head-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: blink 2s infinite; }
.chat-head-title { font-size: 13px; font-weight: 600; flex: 1; }
.chat-head-close { font-size: 16px; color: var(--t3); cursor: pointer; transition: var(--transition); }
.chat-head-close:hover { color: var(--t1); }
.chat-rules-note { font-size: 11px; color: var(--t3); padding: 6px 14px; border-bottom: 1px solid var(--border); }
.chat-msgs { flex: 1; overflow-y: auto; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.chat-msg { font-size: 12px; line-height: 1.5; }
.chat-msg .cu { font-weight: 700; color: var(--accent); margin-right: 5px; }
.chat-msg .ct { color: var(--t2); }
.chat-msg.sys { color: var(--t3); font-style: italic; }
.chat-footer { padding: 10px 12px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 8px; }
.chat-input-row { display: flex; gap: 6px; }
.chat-text-in {
  flex: 1; background: var(--bg2); border: 1px solid var(--border);
  border-radius: 7px; padding: 7px 10px; color: var(--t1);
  font-family: var(--font-b); font-size: 12px; outline: none; transition: var(--transition);
}
.chat-text-in:focus { border-color: var(--accent); }
.chat-send-btn {
  padding: 7px 14px; background: var(--accent); color: #000;
  font-size: 12px; font-weight: 700; border-radius: 7px; transition: var(--transition);
}
.chat-send-btn:hover { background: var(--accent2); }

/* ═══════════════════════════════════════════════
   SCHEDULE PAGE
═══════════════════════════════════════════════ */
.page-hero {
  background: var(--bg1); border-bottom: 1px solid var(--border);
  padding: 40px 24px 32px;
}
.page-hero-title { font-family: var(--font-h); font-size: 48px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.page-hero-sub { color: var(--t2); margin-top: 6px; }

.schedule-section { padding: 28px 0 60px; }
.date-group { margin-bottom: 28px; }
.date-label {
  font-family: var(--font-h); font-size: 18px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--accent); padding: 8px 0; margin-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.sched-row {
  display: flex; align-items: center; gap: 12px; padding: 11px 16px;
  background: var(--bg2); border: 1px solid var(--border); border-radius: var(--r);
  margin-bottom: 6px; cursor: pointer; transition: var(--transition); color: inherit; text-decoration: none;
}
.sched-row:hover { border-color: var(--border2); background: var(--bg3); transform: translateX(2px); }
.sched-row.is-live { border-color: rgba(230,57,70,0.3); }
.sched-time { font-size: 12px; font-weight: 700; min-width: 54px; color: var(--t2); }
.sched-time.live { color: var(--red); animation: blink 1.8s infinite; }
.sched-badges { display: flex; gap: 3px; align-items: center; }
.sched-badges img { width: 26px; height: 26px; object-fit: contain; border-radius: 4px; background: var(--bg3); }
.sched-title { flex: 1; font-size: 13px; font-weight: 600; }
.sched-sport { font-size: 11px; color: var(--t3); min-width: 80px; text-align: right; }

/* ── Schedule row buttons: Watch + Link + Embed ── */
.sched-btns {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

/* Watch — amber */
.sched-watch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 6px 12px;
  background: var(--accent);
  color: #000;
  font-size: 12px;
  font-weight: 700;
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0.04em;
  transition: opacity var(--transition);
}
.sched-watch:hover { opacity: 0.85; }

/* Link — blue */
.sched-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px 10px;
  background: #2563eb;
  border: none;
  border-radius: 6px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  letter-spacing: 0.04em;
  transition: opacity var(--transition);
  flex-shrink: 0;
}
.sched-link-btn:hover { opacity: 0.82; }

/* Embed — red */
.sched-embed-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px 10px;
  background: var(--red);
  border: none;
  border-radius: 6px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  letter-spacing: 0.04em;
  transition: opacity var(--transition);
  flex-shrink: 0;
}
.sched-embed-btn:hover { opacity: 0.82; }

/* ═══════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════ */
.site-footer {
  background: var(--bg1); border-top: 1px solid var(--border);
  padding: 40px 24px;
}
.footer-inner {
  max-width: 1360px; margin: 0 auto;
  display: grid; grid-template-columns: 180px auto 1fr auto;
  gap: 40px; align-items: start;
}
.footer-brand { }
.footer-logo { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.footer-logo-icon { width: 28px; height: 28px; background: var(--accent); border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 14px; color: #000; }
.footer-logo-text { font-family: var(--font-h); font-size: 18px; font-weight: 700; }
.footer-logo-text span { color: var(--accent); }
.footer-desc { font-size: 12px; color: var(--t3); line-height: 1.6; }
.footer-links { display: flex; gap: 40px; }
.footer-col h4 { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--t2); margin-bottom: 12px; }
.footer-col a { display: block; font-size: 13px; color: var(--t3); padding: 3px 0; transition: var(--transition); }
.footer-col a:hover { color: var(--accent); }
.footer-copy { font-size: 12px; color: var(--t3); text-align: right; }
.ad-slot-footer:not(:empty) { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); }

/* ═══════════════════════════════════════════════
   ADMIN PANEL
═══════════════════════════════════════════════ */
.admin-wrap { min-height: 100vh; background: var(--bg0); }
.admin-top {
  background: var(--bg1); border-bottom: 1px solid var(--border);
  padding: 0 24px; height: 58px;
  display: flex; align-items: center; justify-content: space-between;
}
.admin-top-logo { font-family: var(--font-h); font-size: 20px; font-weight: 700; color: var(--t1); letter-spacing: 0.06em; }
.admin-top-logo span { color: var(--accent); }
.admin-top-right { display: flex; align-items: center; gap: 12px; }
.admin-preview-link {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 14px; border: 1px solid var(--border);
  border-radius: 7px; font-size: 13px; font-weight: 500; color: var(--t2);
  transition: var(--transition);
}
.admin-preview-link:hover { color: var(--accent); border-color: var(--accent); }

.admin-layout { display: flex; min-height: calc(100vh - 58px); }
.admin-sidebar {
  width: 228px; flex-shrink: 0;
  background: var(--bg1); border-right: 1px solid var(--border);
  padding: 18px 0; position: sticky; top: 58px;
  height: calc(100vh - 58px); overflow-y: auto;
}
.adm-nav-group { margin-bottom: 6px; }
.adm-nav-section {
  font-size: 10px; font-weight: 700; letter-spacing: 0.14em;
  color: var(--t4); text-transform: uppercase;
  padding: 10px 20px 4px; display: block;
}
.adm-nav-btn {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 9px 20px; border-radius: 0;
  font-size: 13px; font-weight: 500; color: var(--t2);
  cursor: pointer; transition: var(--transition); text-align: left; text-decoration: none;
}
.adm-nav-btn:hover { color: var(--t1); background: var(--bg2); }
.adm-nav-btn.active { color: var(--accent); background: var(--accent-glow); border-right: 2px solid var(--accent); }
.adm-nav-icon { width: 18px; text-align: center; font-size: 15px; }

.admin-main { flex: 1; padding: 28px; overflow-y: auto; }
.admin-panel { display: none; }
.admin-panel.active { display: block; }
.adm-panel-head { margin-bottom: 24px; }
.adm-panel-title { font-family: var(--font-h); font-size: 30px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent); }
.adm-panel-desc { font-size: 13px; color: var(--t2); margin-top: 4px; }

.adm-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--rlg); margin-bottom: 20px; overflow: hidden;
}
.adm-card-head {
  padding: 14px 20px; border-bottom: 1px solid var(--border);
  font-size: 14px; font-weight: 700; color: var(--t1);
  display: flex; align-items: center; justify-content: space-between;
}
.adm-card-body { padding: 20px; }

.f-row { margin-bottom: 16px; }
.f-label {
  display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
  color: var(--t3); text-transform: uppercase; margin-bottom: 6px;
}
.f-input, .f-select, .f-textarea {
  width: 100%; background: var(--bg3); border: 1px solid var(--border);
  color: var(--t1); font-family: var(--font-b); font-size: 13px;
  padding: 9px 13px; border-radius: 7px; outline: none; transition: var(--transition);
}
.f-input:focus, .f-select:focus, .f-textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.f-select { cursor: pointer; }
.f-textarea { resize: vertical; min-height: 80px; }
.f-hint { font-size: 11px; color: var(--t3); margin-top: 5px; }
.f-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.f-cols-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }

.code-ed {
  width: 100%; background: #08090e; border: 1px solid var(--border);
  color: #98c379; font-family: 'Courier New', monospace; font-size: 12.5px;
  padding: 14px; border-radius: 7px; outline: none; resize: vertical;
  min-height: 130px; line-height: 1.7; tab-size: 2; transition: var(--transition);
}
.code-ed:focus { border-color: var(--accent); }

.btn { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-b); font-size: 13px; font-weight: 600; border-radius: 7px; padding: 9px 18px; transition: var(--transition); cursor: pointer; border: none; }
.btn-accent { background: var(--accent); color: #000; }
.btn-accent:hover { background: var(--accent2); }
.btn-ghost { background: var(--bg3); border: 1px solid var(--border); color: var(--t2); }
.btn-ghost:hover { color: var(--t1); border-color: var(--border2); }
.btn-red { background: rgba(230,57,70,0.12); border: 1px solid rgba(230,57,70,0.25); color: var(--red); }
.btn-red:hover { background: rgba(230,57,70,0.2); }
.btn-sm { padding: 5px 12px; font-size: 12px; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 6px; }

.t-row { display: flex; align-items: center; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--border); }
.t-row:last-child { border-bottom: none; }
.t-info { flex: 1; }
.t-main { font-size: 13px; font-weight: 600; }
.t-sub { font-size: 11px; color: var(--t3); margin-top: 2px; }
.toggle { position: relative; width: 42px; height: 22px; flex-shrink: 0; }
.toggle input { opacity: 0; width: 0; height: 0; }
.tslider { position: absolute; inset: 0; background: var(--bg4); border-radius: 11px; cursor: pointer; transition: var(--transition); border: 1px solid var(--border); }
.tslider::after { content:''; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--t3); transition: var(--transition); }
.toggle input:checked + .tslider { background: var(--accent-glow); border-color: var(--accent); }
.toggle input:checked + .tslider::after { left: 23px; background: var(--accent); }

.ai-tabs {
  display: flex; background: var(--bg3); border-bottom: 1px solid var(--border);
  overflow-x: auto; scrollbar-width: none; flex-wrap: wrap;
}
.ai-tabs::-webkit-scrollbar { display: none; }
.ai-tab-btn {
  padding: 10px 14px; font-size: 13px; font-weight: 600;
  color: var(--t2); border-bottom: 3px solid transparent;
  transition: var(--transition); flex-shrink: 0; cursor: pointer;
  background: none; border-left: none; border-right: none; border-top: none;
}
.ai-tab-btn:hover { color: var(--t1); }
.ai-tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); }
.ai-tab-btn.has-script { color: var(--green); }
.ai-tab-btn.has-script::after { content: '●'; margin-left: 4px; font-size: 8px; }

.ai-slot-panel { display: none; padding: 20px; }
.ai-slot-panel.active { display: block; }

.ai-slot-name-row { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.ai-slot-badge {
  background: var(--accent); color: #000; font-size: 11px; font-weight: 700;
  padding: 3px 10px; border-radius: 4px; letter-spacing: 0.06em;
}

.ai-toolbar {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px; background: var(--bg3); border-radius: 7px 7px 0 0;
  border: 1px solid var(--border); border-bottom: none;
}
.ai-tool-btn {
  width: 30px; height: 28px; border-radius: 5px;
  background: var(--bg4); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: var(--t2); cursor: pointer; transition: var(--transition);
}
.ai-tool-btn:hover { color: var(--accent); border-color: var(--accent); }
.ai-tool-sep { width: 1px; height: 20px; background: var(--border); margin: 0 2px; }

.ai-position-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; margin-top: 10px; }
.ai-pos-card {
  padding: 11px 14px; background: var(--bg3); border: 2px solid var(--border);
  border-radius: var(--r); cursor: pointer; transition: var(--transition);
}
.ai-pos-card:hover { border-color: var(--border2); }
.ai-pos-card.selected { border-color: var(--accent); background: var(--accent-glow); }
.ai-pos-name { font-size: 13px; font-weight: 600; }
.ai-pos-desc { font-size: 11px; color: var(--t3); margin-top: 3px; }

.ai-page-checks { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 10px; }
.ai-check-label { display: flex; align-items: center; gap: 6px; font-size: 13px; cursor: pointer; }
.ai-check-label input { accent-color: var(--accent); }

.c-swatches { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.c-swatch { width: 30px; height: 30px; border-radius: 6px; cursor: pointer; border: 2px solid transparent; transition: var(--transition); }
.c-swatch:hover, .c-swatch.sel { border-color: var(--t1); transform: scale(1.12); }

.toast { position: fixed; bottom: 22px; right: 22px; z-index: 9999; background: var(--green); color: #fff; font-size: 13px; font-weight: 600; padding: 11px 20px; border-radius: 9px; display: none; box-shadow: 0 8px 30px rgba(0,0,0,0.5); }
.toast.show { display: block; animation: toastin 0.25s ease; }
@keyframes toastin { from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none} }

.entry-item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--r); margin-bottom: 8px;
}
.entry-info { flex: 1; min-width: 0; }
.entry-name { font-size: 13px; font-weight: 600; }
.entry-sub { font-size: 11px; color: var(--t3); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.entry-actions { display: flex; gap: 6px; flex-shrink: 0; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.status-dot.on { background: var(--green); }
.status-dot.off { background: var(--t4); }

.iframe-pos-grid {
  display: grid; grid-template-columns: repeat(3, 80px); grid-template-rows: repeat(3, 50px);
  gap: 4px; margin-top: 12px;
}
.iframe-pos-cell {
  background: var(--bg3); border: 1px solid var(--border); border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; color: var(--t3); cursor: pointer; transition: var(--transition);
}
.iframe-pos-cell.center-cell { background: var(--bg4); color: var(--t2); font-size: 9px; pointer-events: none; }
.iframe-pos-cell.selected { border-color: var(--accent); background: var(--accent-glow); color: var(--accent); }
.iframe-pos-cell:not(.center-cell):hover { border-color: var(--border2); }

.player-preview-box {
  aspect-ratio: 16/9; background: #000; border-radius: var(--r);
  position: relative; overflow: hidden; max-width: 480px;
  border: 2px solid var(--border);
}
.player-preview-inner {
  position: absolute; inset: 0; background: linear-gradient(135deg, #111 0%, #1a1a1a 100%);
  display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 8px;
}
.player-preview-icon { font-size: 40px; opacity: 0.3; }
.player-preview-label { font-size: 12px; color: var(--t3); }
.ad-preview-dot {
  position: absolute; width: 60px; height: 30px; background: var(--accent);
  border-radius: 4px; display: flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 700; color: #000; opacity: 0.8;
}

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .page-body { grid-template-columns: 1fr; }
  .sidebar { display: none; }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-center { display: none; }
  .hero-right { display: none; }
  .hero-left { border-right: none; padding: 36px 0; }
  .admin-sidebar { display: none; }
}
@media (max-width: 640px) {
  .hamburger { display: flex; }
  .main-nav { display: none; flex-direction: column; position: absolute; top: var(--hh); left: 0; right: 0; background: var(--bg1); border-bottom: 1px solid var(--border); padding: 10px 0; z-index: 199; }
  .main-nav.open { display: flex; }
  .search-box { display: none; }
  .cat-grid { grid-template-columns: 1fr 1fr; }
  .watch-chat-col { display: none; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .footer-copy { text-align: left; }
  .sched-sport { display: none; }
  /* On mobile hide Embed in schedule to avoid overflow */
  .sched-embed-btn { display: none; }
}
@media (max-width: 420px) {
  .cat-grid { grid-template-columns: 1fr; }
  /* On very small screens compress card buttons */
  .card-embed-btn { display: none; }
}

/* ── HERO CAROUSEL ── */
.hero-center {
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  display: flex; align-items: stretch; justify-content: center;
  padding: 0; overflow: hidden;
}
.hero-carousel-wrap {
  width: 100%; display: flex; flex-direction: column;
}
.hcar-header {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px; border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.hcar-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--red);
  animation: blink 1.4s infinite; flex-shrink: 0;
}
.hcar-title {
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em;
  color: var(--t3); text-transform: uppercase; flex: 1;
}
.hcar-counter { font-size: 11px; color: var(--t3); font-weight: 600; }

.hcar-stage {
  flex: 1; position: relative; overflow: hidden; min-height: 200px;
  display: flex; align-items: center; justify-content: center;
}
.hcar-slides {
  display: flex; width: 100%; height: 100%;
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
}
.hcar-slide {
  min-width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 14px; padding: 20px 16px; text-align: center;
}
.hcar-slide-sport {
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
  color: var(--t3); text-transform: uppercase;
  display: flex; align-items: center; gap: 6px;
}
.hcar-slide-sport .live-pill {
  background: var(--red); color: #fff; font-size: 9px; font-weight: 700;
  border-radius: 4px; padding: 2px 6px; letter-spacing: 0.06em;
  animation: blink 2s infinite;
}
.hcar-teams {
  display: flex; align-items: center; gap: 14px; width: 100%;
  justify-content: center;
}
.hcar-team {
  display: flex; flex-direction: column; align-items: center; gap: 8px; flex: 1;
}
.hcar-team-logo {
  width: 56px; height: 56px; object-fit: contain; border-radius: 10px;
  background: var(--bg3); flex-shrink: 0;
}
.hcar-team-name {
  font-size: 12px; font-weight: 700; color: var(--t1);
  line-height: 1.3; max-width: 80px;
}
.hcar-vs {
  font-family: var(--font-h); font-size: 22px; font-weight: 700;
  color: var(--t3); flex-shrink: 0; letter-spacing: 0.06em;
}
.hcar-watch-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent); color: #000;
  font-size: 13px; font-weight: 700; letter-spacing: 0.04em;
  padding: 9px 22px; border-radius: 8px; border: none; cursor: pointer;
  transition: var(--transition); text-decoration: none;
  font-family: var(--font-b);
}
.hcar-watch-btn:hover { background: var(--accent2); transform: translateY(-1px); }

.hcar-nav {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 10px 16px; border-top: 1px solid var(--border); flex-shrink: 0;
}
.hcar-prev, .hcar-next {
  width: 28px; height: 28px; border-radius: 6px;
  background: var(--bg3); border: 1px solid var(--border);
  color: var(--t2); font-size: 20px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: var(--transition);
}
.hcar-prev:hover, .hcar-next:hover { color: var(--accent); border-color: var(--accent); }
.hcar-dots { display: flex; gap: 5px; align-items: center; }
.hcar-dot-btn {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--border2); border: none; cursor: pointer;
  transition: var(--transition); padding: 0;
}
.hcar-dot-btn.active { background: var(--accent); width: 18px; border-radius: 3px; }
.hcar-loading { color: var(--t3); font-size: 13px; }

.hcar-slide-top {
  display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap;
}
.hcar-hot-badge {
  font-size: 10px; font-weight: 700; letter-spacing: 0.08em;
  background: var(--accent); color: #000;
  border-radius: 4px; padding: 2px 8px; text-transform: uppercase;
}
.hcar-time {
  font-size: 13px; font-weight: 700; letter-spacing: 0.04em;
  padding: 4px 12px; border-radius: 20px;
}
.hcar-time.upcoming {
  background: rgba(59,130,246,0.15); color: #60a5fa; border: 1px solid rgba(59,130,246,0.25);
}
.hcar-time.just-started {
  background: rgba(34,197,94,0.15); color: #4ade80; border: 1px solid rgba(34,197,94,0.25);
  animation: blink 2s infinite;
}
.hcar-time.live-min {
  background: var(--red-glow); color: var(--red); border: 1px solid rgba(230,57,70,0.3);
  animation: blink 2.5s infinite;
}

.hero-discord-box {
  display: flex; justify-content: center; align-items: center; height: 140px;
}
.discord-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: #5865F2; color: #fff; font-size: 14px; font-weight: 600;
  padding: 12px 22px; border-radius: 10px; text-decoration: none;
  transition: all 0.3s ease; box-shadow: 0 8px 25px rgba(88,101,242,0.25);
}
.discord-btn:hover { background: #4752C4; transform: translateY(-3px); }
.discord-icon { display: flex; }

/* ═══════════════════════════════════════════════════════
   HEADER / FOOTER BUILDER
═══════════════════════════════════════════════════════ */
.hfb-palette { background: var(--bg3); border-bottom: 1px solid var(--border); padding: 14px 16px; }
.hfb-palette-title { font-size: 11px; font-weight: 600; color: var(--t3); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px; }
.hfb-palette-items { display: flex; flex-wrap: wrap; gap: 7px; }
.hfb-palette-item { display: flex; align-items: center; gap: 6px; padding: 5px 10px; background: var(--bg2); border: 1px solid var(--border); border-radius: 6px; cursor: grab; font-size: 12px; color: var(--t2); user-select: none; transition: var(--transition); }
.hfb-palette-item:hover { border-color: var(--accent); color: var(--accent); background: var(--bg1); }
.hfb-wi-icon { font-size: 14px; }
.hfb-wi-label { font-weight: 500; }
.hfb-rows { padding: 12px 16px; display: flex; flex-direction: column; gap: 12px; }
.hfb-row { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: var(--bg2); }
.hfb-row-header { display: flex; align-items: center; justify-content: space-between; padding: 7px 12px; background: var(--bg3); border-bottom: 1px solid var(--border); }
.hfb-row-label { font-size: 12px; font-weight: 600; color: var(--t2); }
.hfb-row-actions { display: flex; gap: 4px; }
.hfb-row-btn { padding: 2px 8px; font-size: 12px; background: var(--bg2); border: 1px solid var(--border); color: var(--t3); border-radius: 4px; cursor: pointer; transition: var(--transition); }
.hfb-row-btn:hover { color: var(--t1); border-color: var(--t3); }
.hfb-row-del:hover { color: var(--red); border-color: var(--red); }
.hfb-drop-zone { min-height: 60px; display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 12px; transition: background .15s; align-items: flex-start; }
.hfb-drop-zone.drag-over { background: rgba(245,166,35,.06); }
.hfb-dz-empty { color: var(--t4); font-size: 12px; font-style: italic; align-self: center; width: 100%; text-align: center; padding: 10px 0; }
.hfb-widget { background: var(--bg3); border: 1px solid var(--border); border-radius: 7px; min-width: 140px; max-width: 280px; cursor: grab; transition: var(--transition); overflow: hidden; }
.hfb-widget:hover { border-color: var(--accent); }
.hfb-widget-header { display: flex; align-items: center; gap: 7px; padding: 7px 10px; background: var(--bg2); border-bottom: 1px solid var(--border); }
.hfb-widget-icon { font-size: 14px; }
.hfb-widget-name { font-size: 12px; font-weight: 600; color: var(--t1); flex: 1; }
.hfb-widget-actions { display: flex; gap: 3px; }
.hfb-w-btn { padding: 2px 6px; font-size: 11px; background: none; border: 1px solid transparent; color: var(--t3); border-radius: 4px; cursor: pointer; transition: var(--transition); }
.hfb-w-btn:hover { color: var(--t1); border-color: var(--border); }
.hfb-w-del:hover { color: var(--red); border-color: var(--red); }
.hfb-w-cfg:hover { color: var(--accent); border-color: var(--accent); }
.hfb-widget-config { padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.hfb-cfg-label { font-size: 11px; color: var(--t3); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.hfb-cfg-inp { font-size: 12px !important; padding: 5px 8px !important; width: 100%; }
.hfb-quick-add { display: flex; flex-wrap: wrap; gap: 5px; padding: 8px 12px; border-top: 1px solid var(--border); background: var(--bg3); }
.hfb-qa-btn { padding: 3px 8px; font-size: 14px; background: var(--bg2); border: 1px solid var(--border); border-radius: 5px; cursor: pointer; transition: var(--transition); color: var(--t2); }
.hfb-qa-btn:hover { border-color: var(--accent); color: var(--accent); }
.hfb-add-row { margin: 4px 16px 16px; width: calc(100% - 32px); text-align: center; border: 1px dashed var(--border) !important; color: var(--t3) !important; }
.hfb-add-row:hover { border-color: var(--accent) !important; color: var(--accent) !important; }
.hfb-preview { border-top: 1px solid var(--border); padding: 14px 16px; background: var(--bg3); }
.hfb-preview-title { font-size: 11px; font-weight: 600; color: var(--t3); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px; }
.hfb-preview-bar { display: flex; flex-direction: column; gap: 6px; }
.hfb-preview-row { display: flex; align-items: center; gap: 8px; background: var(--bg1); border: 1px solid var(--border); border-radius: 6px; padding: 8px 12px; min-height: 42px; flex-wrap: wrap; }
.hfb-pv-item { display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 4px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.hfb-pv-logo   { background: var(--accent); color: #000; }
.hfb-pv-nav    { background: var(--bg3); color: var(--t2); border: 1px solid var(--border); }
.hfb-pv-search { background: var(--bg3); color: var(--t3); border: 1px solid var(--border); }
.hfb-pv-discord{ background: #5865F2; color: #fff; }
.hfb-pv-text   { background: var(--bg3); color: var(--t2); font-style: italic; }
.hfb-pv-btn    { background: var(--accent); color: #000; }
.hfb-pv-social { background: var(--bg3); color: var(--t2); border: 1px solid var(--border); letter-spacing: 3px; }
.hfb-pv-live   { background: var(--red); color: #fff; }
.hfb-pv-divider{ color: var(--t4); font-size: 10px; }
.hfb-pv-copy   { color: var(--t3); font-size: 11px; }
.hfb-pv-navlinks{ background: var(--bg3); color: var(--t2); border: 1px solid var(--border); }

/* ── Admin embed ads form helpers ── */
.f-section { margin-bottom: 24px; background: var(--bg3); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; }
.f-section-title { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--t2); padding: 12px 16px; border-bottom: 1px solid var(--border); background: var(--bg2); }
.f-section .f-row { padding: 0 16px; margin: 14px 0; }
.toggle-row { display: flex; align-items: center; gap: 10px; cursor: pointer; }