/* ============================================================
   NobarTV AI Search — Design System v5.0.0
   UI Refinement Phase: Strict Design Tokens, Visual Rhythm
   Reference: Apple Sports × Google Sports × Sofascore × The Athletic
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,400;500;600;700;800&display=swap');

/* ══════════════════════════════════════════════════════════════
   DESIGN TOKENS — Single source of truth
   ══════════════════════════════════════════════════════════════ */
:root {
  /* ── Color Palette ─────────────────────────────────────────── */
  --c-bg:              #ffffff;
  --c-surface:         #f5f5f7;
  --c-surface-elevated:#ffffff;
  --c-surface-hover:   #eaeaec;
  --c-border:          rgba(0,0,0,.09);
  --c-border-2:        rgba(0,0,0,.15);
  --c-text:            #1d1d1f;
  --c-text-secondary:  #515154;
  --c-text-muted:      #86868b;
  --c-text-dim:        #aeaeb2;

  /* Hero / Header */
  --c-header-bg:       #f2f2f7;
  --c-hero-bg:         #f2f2f7;

  /* Brand Accents */
  --c-accent:          #0071e3;
  --c-accent-dark:     #0058b0;
  --c-accent-glow:     rgba(0,113,227,.12);
  --c-green:           #1a8a4a;
  --c-green-bg:        rgba(26,138,74,.08);
  --c-gold:            #b06000;
  --c-gold-bg:         rgba(176,96,0,.08);
  --c-live:            #d70015;
  --c-live-bg:         rgba(215,0,21,.08);
  --c-blue:            #0071e3;
  --c-purple:          #5e5ce6;
  --c-orange:          #c06000;

  /* Competition themes */
  --comp-primary:      #0071e3;
  --comp-glow:         rgba(0,113,227,.1);

  /* ── Typography ────────────────────────────────────────────── */
  /* SATU font untuk seluruh situs (disatukan atas permintaan — sebelumnya
     --font-display terpisah pakai Lora serif, bikin heading kadang beda
     gaya dgn teks lain). Sekarang --font-display = --font-body, jadi semua
     tempat yg masih mereferensikan var(--font-display) di file ini otomatis
     ikut sans-serif yang sama. */
  --font-body:    'DM Sans', system-ui, -apple-system, sans-serif;
  --font-display: var(--font-body);
  --font-mono:    'SF Mono', 'Fira Code', 'Courier New', monospace;

  /* STRICT 7-step type scale — no other sizes permitted */
  --text-meta:   12px;  /* Metadata, labels, badges */
  --text-small:  14px;  /* Secondary text, excerpts */
  --text-body:   16px;  /* Body text baseline */
  --text-h3:     20px;  /* Card titles, subsection headings */
  --text-h2:     24px;  /* Section headings */
  --text-h1:     32px;  /* Page title */
  --text-display:40px;  /* Hero display */

  /* ── Spacing Scale (4px base) ──────────────────────────────── */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  24px;
  --space-6:  32px;
  --space-7:  48px;
  --space-8:  64px;

  /* ── Section Rhythm ────────────────────────────────────────── */
  --section-gap-desktop: 48px;
  --section-gap-tablet:  40px;
  --section-gap-mobile:  32px;

  /* ── Card System ───────────────────────────────────────────── */
  --card-radius:   16px;
  --card-padding:  16px;
  --card-border:   1px solid var(--c-border);

  /* ── Radius Scale ──────────────────────────────────────────── */
  --r-sm:   8px;
  --r-md:   12px;
  --r-lg:   16px;   /* = card-radius */
  --r-xl:   24px;
  --r-pill: 50px;

  /* ── Shadows ───────────────────────────────────────────────── */
  --shadow-sm: 0 1px 4px rgba(0,0,0,.07), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 4px 20px rgba(0,0,0,.09), 0 2px 6px rgba(0,0,0,.05);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.12), 0 4px 12px rgba(0,0,0,.06);

  /* ── Layout ────────────────────────────────────────────────── */
  --px:      20px;
  --px-md:   28px;
  --px-lg:   40px;
  --max-width: 1280px;

  /* ── Team Logo Sizes (strict) ──────────────────────────────── */
  --logo-hero:    80px;   /* Match Hero logo */
  --logo-card:    40px;   /* Fixture/team cards */
  --logo-form:    36px;   /* Form blocks */
  --logo-small:   24px;   /* Tables, lists */
  --logo-inline:  20px;   /* Inline/header */

  --transition: .18s cubic-bezier(.4,0,.2,1);
}

/* Competition theming */
.nbt-theme-epl    { --comp-primary:#5e5ce6; --comp-glow:rgba(94,92,230,.1); }
.nbt-theme-ucl    { --comp-primary:#0071e3; --comp-glow:rgba(0,113,227,.1); }
.nbt-theme-laliga { --comp-primary:#d70015; --comp-glow:rgba(215,0,21,.1); }
.nbt-theme-seria  { --comp-primary:#1d4ed8; --comp-glow:rgba(29,78,216,.1); }
.nbt-theme-bund   { --comp-primary:#c06000; --comp-glow:rgba(192,96,0,.1); }

/* ══════════════════════════════════════════════════════════════
   RESET
   ══════════════════════════════════════════════════════════════ */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { overflow-x: hidden; max-width: 100vw; scroll-behavior: smooth; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }

.nbt-search-body {
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
  max-width: 100vw;
  -webkit-text-size-adjust: 100%;
}

/* ══════════════════════════════════════════════════════════════
   CONTAINER
   ══════════════════════════════════════════════════════════════ */
.nbt-container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--px);
  overflow-x: hidden;
  position: relative;
}

/* ══════════════════════════════════════════════════════════════
   HEADER
   ══════════════════════════════════════════════════════════════ */
.nbt-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--c-header-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--c-border);
}

/* FIX: overflow-x:hidden pada .nbt-container (di atas) membuat browser
   otomatis meng-clip sumbu Y juga (aturan spec CSS: kalau salah satu axis
   overflow di-set non-"visible", axis lain yang dibiarkan default ikut
   berubah jadi "auto"/clip). Akibatnya popup dropdown bahasa
   (.nbt-lang-dd__list, position:absolute, muncul di bawah search bar)
   ikut terpotong/tidak terlihat walau z-index-nya sudah 999999 — ini
   BUKAN masalah z-index, tapi clipping. Override khusus di dalam header
   supaya popup selalu bisa "keluar" dari container tanpa mempengaruhi
   .nbt-container lain di body yang masih butuh overflow-x:hidden untuk
   elemen full-bleed. Fix yang sama sudah pernah diterapkan di
   search-widget.css & floating-search.css (lihat catatan v4.22.1 di sana);
   sebelumnya belum ikut diterapkan di sini. */
.nbt-header .nbt-container {
  overflow: visible;
}

.nbt-header__inner {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-height: 60px;
  padding: var(--space-2) 0;
  flex-wrap: wrap;
}

/* ── Logo ───────────────────────────────────────────────────── */
.nbt-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.nbt-logo__text {
  font-weight: 800;
  font-size: var(--text-body);
  letter-spacing: -.4px;
  color: var(--c-accent);
  white-space: nowrap;
}

.nbt-logo__img {
  max-height: 34px;
  max-width: 100px;
  width: auto;
  object-fit: contain;
}

/* ── Search Bar ─────────────────────────────────────────────── */
.nbt-search-bar-wrapper {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nbt-search-bar {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--c-surface-elevated);
  border: 1.5px solid var(--c-border-2);
  border-radius: var(--r-pill);
  transition: border-color var(--transition), box-shadow var(--transition);
  overflow: visible;
  min-width: 0;
  box-shadow: var(--shadow-sm);
}

.nbt-search-bar:focus-within {
  border-color: var(--c-accent);
  box-shadow: 0 0 0 3px var(--c-accent-glow), var(--shadow-md);
}

.nbt-search-bar__icon {
  display: flex; align-items: center;
  padding: 0 var(--space-3);
  color: var(--c-text-muted);
  flex-shrink: 0;
}

.nbt-search-bar__input {
  flex: 1; background: transparent;
  border: none; outline: none;
  color: var(--c-text);
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: 500;
  padding: 11px 0;
  min-width: 0;
  width: 100%;
}

.nbt-search-bar__input::placeholder { color: var(--c-text-muted); }

/* ── Dropdown bahasa (icon bendera kompak) — override konteks search bar ──
   Struktur & popup datang dari assets/css/lang-select.css (di-enqueue
   bersamaan); di sini hanya menyesuaikan ukuran/warna tombol trigger supaya
   menyatu dengan search bar halaman hasil. */
.nbt-search-bar .nbt-lang-dd { margin-right: 4px; }
.nbt-search-bar .nbt-lang-dd__btn {
  width: 30px;
  height: 30px;
  background: var(--c-surface, rgba(0,0,0,.04));
  color: var(--c-text);
}
.nbt-search-bar .nbt-lang-dd__btn:hover,
.nbt-search-bar .nbt-lang-dd.is-open .nbt-lang-dd__btn { background: var(--c-accent-glow); }


.nbt-search-bar__btn {
  background: var(--c-accent);
  border: none;
  border-radius: var(--r-pill);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  width: 36px; height: 36px;
  margin-right: var(--space-1);
  flex-shrink: 0;
  font-weight: 700;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.nbt-search-bar__btn:hover  { background: var(--c-accent-dark); transform: scale(1.05); }
.nbt-search-bar__btn:active { transform: scale(.93); }

/* ── Search Mode Radio (Berita / Bola / Prediksi) ───────────────── */
.nbt-search-mode {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  padding: 0 var(--space-1);
}

.nbt-search-mode__option {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: var(--text-small, 13px);
  font-weight: 600;
  color: var(--c-text-muted);
  user-select: none;
  transition: color var(--transition);
}

.nbt-search-mode__option input[type="radio"] {
  accent-color: var(--c-accent);
  width: 15px; height: 15px;
  cursor: pointer;
  flex-shrink: 0;
}

.nbt-search-mode__option:has(input:checked) { color: var(--c-text); }

/* ── Autocomplete ────────────────────────────────────────────── */
.nbt-autocomplete {
  display: none;
  position: absolute;
  top: calc(100% + var(--space-2));
  left: 0; right: 0;
  background: var(--c-surface-elevated);
  border: 1px solid var(--c-border-2);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  z-index: 300;
  max-height: 280px;
  overflow-y: auto;
}

.nbt-autocomplete.is-open { display: block; }

.nbt-autocomplete__item {
  display: flex; align-items: center; gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  cursor: pointer;
  transition: background var(--transition);
  border-bottom: 1px solid var(--c-border);
  min-height: 48px;
}

.nbt-autocomplete__item:last-child { border-bottom: none; }
.nbt-autocomplete__item:hover { background: var(--c-surface-hover); }

.nbt-autocomplete__type {
  font-size: var(--text-meta); font-weight: 700;
  text-transform: uppercase; letter-spacing: .7px;
  color: var(--c-text-muted);
  flex-shrink: 0; min-width: 40px;
}

.nbt-autocomplete__label {
  font-size: var(--text-small); font-weight: 500;
  color: var(--c-text);
  flex: 1; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ══════════════════════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════════════════════ */
.nbt-hero {
  position: relative;
  background: var(--c-hero-bg);
  padding: 36px 0 var(--space-6);
  overflow: hidden;
  width: 100%;
  border-bottom: 1px solid var(--c-border);
}

/* Breadcrumb */
.nbt-breadcrumb {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 4px 6px;
  font-size: var(--text-meta);
  color: var(--c-text-muted);
  margin-bottom: var(--space-4);
}

.nbt-breadcrumb a { transition: color var(--transition); }
.nbt-breadcrumb a:hover { color: var(--c-accent); }
.nbt-breadcrumb__sep { color: var(--c-text-dim); flex-shrink: 0; }
.nbt-breadcrumb span:last-child {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  max-width: 180px;
  color: var(--c-text-secondary);
}

/* Intent Badge */
.nbt-intent-badge {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(0,113,227,.08);
  border: 1px solid rgba(0,113,227,.18);
  color: var(--c-accent);
  font-size: var(--text-meta); font-weight: 700;
  letter-spacing: .8px; text-transform: uppercase;
  padding: 5px var(--space-3);
  border-radius: var(--r-pill);
  margin-bottom: var(--space-4);
}

.nbt-intent-badge[data-intent="match"]     { background:rgba(176,96,0,.07);   border-color:rgba(176,96,0,.18);   color:var(--c-gold); }
.nbt-intent-badge[data-intent="standings"] { background:rgba(0,113,227,.07);  border-color:rgba(0,113,227,.18);  color:var(--c-blue); }
.nbt-intent-badge[data-intent="fixtures"]  { background:rgba(94,92,230,.07);  border-color:rgba(94,92,230,.18);  color:var(--c-purple); }
.nbt-intent-badge[data-intent="results"]   { background:rgba(215,0,21,.07);   border-color:rgba(215,0,21,.18);   color:var(--c-live); }
.nbt-intent-badge[data-intent="player"]    { background:rgba(192,96,0,.07);   border-color:rgba(192,96,0,.18);   color:var(--c-orange); }

/* Hero Title */
.nbt-hero__title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 7vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -.5px;
  line-height: 1.2;
  color: var(--c-text);
  text-transform: capitalize;
  margin-bottom: var(--space-5);
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* ── AI Summary ────────────────────────────────────────────── */
.nbt-hero__summary {
  background: var(--c-surface-elevated);
  border: 1px solid var(--c-border);
  border-left: 3px solid var(--c-accent);
  border-radius: var(--r-lg);
  padding: var(--space-4) var(--space-5);
  margin-bottom: var(--space-6);
  box-shadow: var(--shadow-sm);
}

.nbt-ai-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(0,113,227,.07);
  color: var(--c-accent);
  font-size: var(--text-meta); font-weight: 700;
  letter-spacing: .9px; text-transform: uppercase;
  padding: 4px var(--space-3);
  border-radius: var(--r-sm);
  margin-bottom: var(--space-3);
}

/* AI Answer badge — bg abu-abu terang, teks hitam jelas (kontras tinggi) */
.nbt-ai-badge--answer {
  background: #e5e7eb;
  color: #111827;
}
.nbt-ai-badge--answer svg { stroke: #111827; }

.nbt-hero__summary p {
  color: var(--c-text-secondary);
  font-size: var(--text-body);
  line-height: 1.7;
  margin-bottom: var(--space-2);
}

.nbt-hero__summary p:last-child { margin-bottom: 0; }
.nbt-ai-summary-body { margin-top: var(--space-1); }

/* AI Answer box — border kiri beda warna dari AI Summary supaya kebedaan section-nya jelas */
.nbt-ai-answer { border-left-color: #6366f1; }
.nbt-ai-key-points {
  margin: 12px 0 0;
  padding-left: 20px;
  list-style: disc outside; /* FIX: theme kadang reset "ul{list-style:none}" global,
                                override eksplisit di sini supaya bullet selalu tampil */
}
.nbt-ai-key-points li {
  color: var(--c-text-secondary);
  margin-bottom: 4px;
  display: list-item; /* FIX: jaga-jaga kalau theme set "li{display:block}" */
}

/* AI Panels — wrapper untuk AI Summary + AI Answer.
   Mobile: stack 1 kolom (default). Desktop (≥1024px): berdampingan 2 kolom. */
.nbt-ai-panels {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}
.nbt-ai-panels .nbt-hero__summary { margin-bottom: 0; } /* gap sudah dihandle wrapper */
.nbt-ai-panels > :only-child { grid-column: 1 / -1; }

/* ── AI Panels — tab switcher (mobile only, <1024px) ─────────────────────
   Di mobile, AI Summary & AI Answer ditampilkan bergantian via 2 tab pill
   supaya tidak makan tempat vertikal terlalu banyak. Tab "AI Summary" aktif
   default. Di desktop (≥1024px) tab pill disembunyikan, kedua panel tampil
   berdampingan seperti biasa (lihat .nbt-ai-panels di media 1024px). */
.nbt-ai-tabs {
  display: none;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}
.nbt-ai-tab {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px var(--space-4);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  background: var(--c-surface-elevated);
  color: var(--c-text-secondary);
  font-size: var(--text-meta);
  font-weight: 700;
  letter-spacing: .3px;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.nbt-ai-tab[aria-selected="true"] {
  background: var(--c-accent);
  border-color: var(--c-accent);
  color: #fff;
}
.nbt-ai-tab--answer[aria-selected="true"] {
  background: #6366f1;
  border-color: #6366f1;
}

@media (max-width: 1023px) {
  .nbt-ai-panels[data-ai-tabbed="1"] .nbt-ai-tabs { display: flex; }
  .nbt-ai-panels[data-ai-tabbed="1"] .nbt-ai-panel--inactive { display: none; }
}

/* ── Keyword Terkait (Google Autocomplete) — tampil di bawah konten AI ────── */
.nbt-related-kw {
  margin-top: var(--space-5);
  padding-top: var(--space-5);
  border-top: 1px solid var(--c-border);
}

.nbt-related-kw__title {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-body);
  font-size: 13px; font-weight: 700; letter-spacing: .3px;
  text-transform: uppercase;
  color: var(--c-text-muted);
  margin-bottom: var(--space-3);
}

.nbt-related-kw__title svg { flex-shrink: 0; opacity: .8; }

/* Horizontal scroll-strip — satu baris, TIDAK wrap, persis pola .nbt-tabs:
   scroll ke samping + mask-fade di tepi kiri/kanan sebagai isyarat visual.
   Full-bleed ke tepi container (margin negatif sebesar --px, ditutup lagi
   dgn padding --px) supaya fade-nya nempel di tepi layar/kartu, konsisten
   di semua breakpoint (bukan cuma mobile spt tabs) — paling hemat ruang
   vertikal & selaras desktop-mobile. */
.nbt-related-kw__list {
  display: flex; flex-wrap: nowrap; align-items: center;
  gap: 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
  scroll-padding-inline: var(--px);
  margin: 0 calc(var(--px) * -1);
  padding: 2px var(--px);
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 var(--px), #000 calc(100% - var(--px)), transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 var(--px), #000 calc(100% - var(--px)), transparent 100%);
}

.nbt-related-kw__list::-webkit-scrollbar { display: none; }

/* Style "tag" ringan — bukan tombol besar: padding tipis, font kecil setara
   meta chip (bukan body text), tanpa hover shadow/lift berat. */
.nbt-related-kw__pill {
  display: inline-flex; align-items: center;
  flex-shrink: 0;
  color: var(--c-text-secondary);
  font-size: var(--text-meta); font-weight: 600; line-height: 1.3;
  padding: 5px 10px; border-radius: var(--r-pill);
  border: 1px solid var(--c-border);
  background: var(--c-surface-elevated);
  transition: background var(--transition), border-color var(--transition), color var(--transition);
  white-space: nowrap;
  scroll-snap-align: start;
}

.nbt-related-kw__pill:hover {
  background: var(--c-accent); border-color: var(--c-accent); color: #fff;
}

/* Row wrapper: tombol prev/next + strip pill di tengah, sejajar flex —
   bukan overlay absolute, jadi tidak perlu padding ekstra utk menghindari
   tabrakan dgn tombol. Tombol disembunyikan otomatis via JS kalau strip
   tidak overflow (semua pill sudah muat, prev/next jadi tak relevan). */
.nbt-related-kw__row {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Saat list dipakai di dalam row (bersama tombol prev/next), matikan
   full-bleed negative margin bawaan .nbt-related-kw__list — kalau tidak,
   strip pill "nabrak" ke luar row dan menumpuk/overlap dgn tombol
   prev/next. Ganti fade mask jadi jarak kecil yang proporsional (bukan
   --px penuh) supaya ada jarak jelas antara tombol & keyword pertama/
   terakhir. */
.nbt-related-kw__row .nbt-related-kw__list {
  flex: 1 1 auto; min-width: 0;
  margin: 0;
  padding: 2px 4px;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 10px, #000 calc(100% - 10px), transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 10px, #000 calc(100% - 10px), transparent 100%);
}

.nbt-related-kw__nav {
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1px solid #000;
  background: #000;
  color: #fff;
  cursor: pointer;
  padding: 0;
  transition: background var(--transition), color var(--transition), border-color var(--transition), opacity .15s ease;
}

.nbt-related-kw__nav svg { pointer-events: none; }

.nbt-related-kw__nav:hover {
  background: var(--c-accent); border-color: var(--c-accent); color: #fff;
}

.nbt-related-kw__nav:disabled {
  opacity: .3;
  cursor: default;
  pointer-events: none;
}

.nbt-related-kw__nav[hidden] { display: none; }

/* ── Kompak: pangkas spasi kosong antara tab row (.nbt-tabs) dgn konten
   .nbt-main di bawahnya. Sebelumnya padding-bottom hero + padding-top
   main ditumpuk jadi ruang kosong besar & sia-sia, padahal border-bottom
   tab row sudah cukup jadi pembatas visual sendiri. Spesifisitas :has()
   lebih tinggi drpd .nbt-hero/.nbt-main polos di semua breakpoint,
   jadi override ini berlaku tanpa perlu duplikat per-media-query. ── */
.nbt-hero:has(.nbt-tabs) {
  padding-bottom: var(--space-3);
}
.nbt-hero:has(.nbt-tabs) + .nbt-main {
  padding-top: var(--space-4);
}

/* ── Match Hero (VS Mode) v2 — Card modern dengan meta chips ─────────────── */
/*
   Layout baku:
   [chips: kickoff WIB / live / finished · liga · round · venue]
   [LOGO]          VS          [LOGO]
   [NAMA KLUB]   [Win Prob]  [NAMA KLUB]
*/
.nbt-match-hero {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
  padding: var(--space-5) var(--space-4);
  background: linear-gradient(180deg, var(--c-surface-elevated) 0%, var(--c-surface) 100%);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

/* Aksen gradient tipis di atas card — kesan modern/premium */
.nbt-match-hero::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--c-accent), var(--c-purple));
}

.nbt-match-hero__meta {
  display: flex; flex-wrap: wrap; gap: var(--space-2);
  justify-content: center;
}

.nbt-match-chip {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  color: var(--c-text-secondary);
  font-size: var(--text-meta); font-weight: 600;
  padding: 5px var(--space-3);
  border-radius: var(--r-pill);
  white-space: nowrap;
}
.nbt-match-chip svg { flex-shrink: 0; opacity: .75; }

.nbt-match-chip--kickoff {
  background: var(--c-accent-glow);
  border-color: rgba(0,113,227,.25);
  color: var(--c-accent-dark);
  font-weight: 700;
}
.nbt-match-chip--live {
  background: var(--c-live-bg);
  border-color: rgba(215,0,21,.3);
  color: var(--c-live);
  font-weight: 700;
}
.nbt-match-chip--finished {
  background: var(--c-green-bg);
  border-color: rgba(26,138,74,.25);
  color: var(--c-green);
  font-weight: 700;
}

.nbt-live-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--c-live);
  animation: nbtLivePulse 1.4s ease-in-out infinite;
}
@keyframes nbtLivePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .4; transform: scale(1.35); }
}

.nbt-match-hero__teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--space-4);
}

.nbt-match-hero__team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  text-align: center;
}

.nbt-match-hero__team--away { align-items: center; }

/* STRICT: Logo hero 80×80px desktop */
.nbt-match-hero__logo {
  width: var(--logo-hero);
  height: var(--logo-hero);
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,.15));
  display: block;
  transition: transform var(--transition);
}
.nbt-match-hero__team:hover .nbt-match-hero__logo { transform: scale(1.06); }

/* STRICT: Nama klub — center, maks 2 baris, 20px, weight 700 */
.nbt-match-hero__name {
  font-size: var(--text-h3);
  font-weight: 700;
  color: var(--c-text);
  line-height: 1.2;
  text-align: center;
  max-width: 130px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.nbt-match-hero__center {
  display: flex; flex-direction: column;
  align-items: center; gap: var(--space-3);
  flex-shrink: 0;
}

.nbt-match-hero__vs {
  font-family: var(--font-display);
  font-size: var(--text-h1); font-weight: 700;
  color: var(--c-text-muted);
  letter-spacing: -1px;
}

/* Win probability bar */
.nbt-win-prob {
  display: flex; flex-direction: column;
  gap: var(--space-2); width: 100%; max-width: 200px;
}

.nbt-win-prob__label {
  font-size: var(--text-meta); font-weight: 700;
  text-transform: uppercase; letter-spacing: .6px;
  color: var(--c-text-muted);
  text-align: center;
}

.nbt-win-prob__bar {
  display: flex;
  height: 8px;
  border-radius: var(--r-pill);
  overflow: hidden;
  gap: 2px;
  background: var(--c-surface);
}

.nbt-win-prob__home  { background: var(--c-green); border-radius: var(--r-pill) 0 0 var(--r-pill); }
.nbt-win-prob__draw  { background: var(--c-text-dim); }
.nbt-win-prob__away  { background: var(--c-live); border-radius: 0 var(--r-pill) var(--r-pill) 0; }

.nbt-win-prob__labels {
  display: flex; justify-content: space-between;
  font-size: var(--text-small); font-weight: 700;
}

.nbt-win-prob__labels .home { color: var(--c-green); }
.nbt-win-prob__labels .draw { color: var(--c-text-muted); text-align: center; flex: 1; }
.nbt-win-prob__labels .away { color: var(--c-live); }

/* ── Underline Tabs (nbt-tabs) ────────────────────────────────────────
   Model tab nempel dibaris (bukan pill mengambang) — lebih hemat ruang
   vertikal & horizontal. Baseline garis tipis di seluruh row, tab aktif
   ditandai underline accent, tanpa background block. Rata tengah saat
   semua tab muat; begitu overflow di layar sempit, otomatis jadi
   scroll-strip horizontal dengan scroll-snap. */
.nbt-tabs {
  display: flex; flex-wrap: nowrap;
  justify-content: center;
  gap: var(--space-5); overflow-x: auto;
  margin-top: var(--space-5);
  padding: 0 2px;
  /* Sengaja TIDAK ada border-bottom di sini — dulu ini bikin garis abu
     nempel di seluruh baris tab (nabrak/tumpuk dgn underline aktif).
     Sekarang hanya tab yang aktif yang tampil underline-nya (lihat
     .nbt-tab[aria-selected="true"] di bawah), garis lain "invisible"
     (border-bottom transparent bawaan .nbt-tab). */
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
  scroll-padding-inline: var(--px);
}

.nbt-tabs::-webkit-scrollbar { display: none; }

.nbt-tab {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--c-text-muted);
  font: inherit;
  font-size: 13px; font-weight: 600;
  padding: var(--space-2) 2px;
  margin-bottom: -1px; /* nutup border-bottom container biar underline nempel pas */
  min-height: 32px;
  border-radius: 0;
  white-space: nowrap;
  transition: color var(--transition), border-color var(--transition);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  appearance: none;
  outline-offset: 2px;
  scroll-snap-align: start;
  flex-shrink: 0;
}

.nbt-tab:hover {
  color: var(--c-text);
}

.nbt-tab[aria-selected="true"] {
  color: var(--c-accent);
  border-bottom-color: var(--c-accent);
}

.nbt-tab:focus-visible { outline: 2px solid var(--c-accent); }

/* Panel yang dikontrol tab. [hidden] menyembunyikannya secara native;
   saat dibuka kita beri fade+slide halus supaya terasa "muncul", bukan lompat. */
.nbt-tabpanel { animation: nbtPanelIn .28s ease; }

@keyframes nbtPanelIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Mobile: pill dibuat lebih kompak (padding, tinggi & font diperkecil) demi
   menghemat ruang di layar sempit — permintaan desain eksplisit untuk pills
   yang lebih ringkas. Beri fade di tepi kiri/kanan sebagai isyarat visual
   kalau list bisa di-scroll. */
@media (max-width: 480px) {
  .nbt-tabs {
    justify-content: flex-start;
    gap: var(--space-4);
    margin: 0 calc(var(--px) * -1);
    padding-left: var(--px);
    padding-right: var(--px);
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 var(--px), #000 calc(100% - var(--px)), transparent 100%);
            mask-image: linear-gradient(to right, transparent 0, #000 var(--px), #000 calc(100% - var(--px)), transparent 100%);
  }
  .nbt-tab {
    padding: var(--space-2) 1px;
    min-height: 28px;
    font-size: 12px;
    gap: 3px;
  }
}

/* ══════════════════════════════════════════════════════════════
   MAIN LAYOUT
   ══════════════════════════════════════════════════════════════ */
.nbt-main { padding: var(--space-6) 0 var(--space-8); }

.nbt-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  min-width: 0;
  overflow-x: hidden;
  overflow-y: visible;
}

.nbt-content {
  min-width: 0;
  overflow-x: hidden;
  overflow-y: visible;
}

/* ══════════════════════════════════════════════════════════════
   SECTION SYSTEM — Strict heading rules
   [ICON 18px] Judul 24px weight 700, margin-bottom 16px
   ══════════════════════════════════════════════════════════════ */
.nbt-section {
  margin-bottom: var(--section-gap-mobile);
  min-width: 0;
  overflow-x: hidden;
  overflow-y: visible;
}

.nbt-section__header {
  display: flex; align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
  flex-wrap: wrap; gap: var(--space-2);
  min-width: 0;
}

/* STRICT section title: icon 18px, text 24px, weight 700 */
.nbt-section__title {
  display: flex; align-items: center; gap: var(--space-2);
  font-family: var(--font-display);
  font-size: var(--text-h2);
  font-weight: 700;
  color: var(--c-text);
  letter-spacing: -.3px;
  line-height: 1.2;
  flex-wrap: wrap; min-width: 0;
}

.nbt-section__title svg {
  display: none;
}

.nbt-section__title img {
  display: none;
}

.nbt-section__count {
  font-size: var(--text-meta); color: var(--c-text-muted);
  background: var(--c-surface);
  padding: 4px var(--space-3);
  border-radius: var(--r-pill);
  border: 1px solid var(--c-border);
  white-space: nowrap; flex-shrink: 0;
  font-weight: 600;
}

.nbt-section__sub {
  font-size: var(--text-meta); color: var(--c-text-muted);
  font-weight: 400; margin-left: var(--space-1);
}

/* Subsection title — uppercase label */
.nbt-subsection-title {
  font-size: var(--text-small); font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--c-text-muted);
  margin: var(--space-4) 0 var(--space-3);
  display: flex; align-items: center; gap: 6px;
}

/* ══════════════════════════════════════════════════════════════
   CARD SYSTEM — 3 types, all consistent
   ══════════════════════════════════════════════════════════════ */

/* BASE card properties — applied to ALL card types */
.nbt-card-base {
  background: var(--c-surface-elevated);
  border: var(--card-border);
  border-radius: var(--card-radius);
  padding: var(--card-padding);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}

/* CARD SMALL — compact info blocks */
/* CARD MEDIUM — fixture/team cards, form blocks */
/* CARD FEATURED — match hero, article featured */

/* ══════════════════════════════════════════════════════════════
   MATCH INSIGHTS
   ══════════════════════════════════════════════════════════════ */
.nbt-insights-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2);
}

.nbt-insight-card {
  display: flex; align-items: flex-start; gap: var(--space-3);
  padding: var(--space-4) var(--space-4);
  background: var(--c-surface-elevated);
  border: var(--card-border);
  border-left: 4px solid var(--c-accent);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}

.nbt-insight-card:hover { box-shadow: var(--shadow-md); }
.nbt-insight-card--warn   { border-left-color: var(--c-gold); }
.nbt-insight-card--danger { border-left-color: var(--c-live); }
.nbt-insight-card--good   { border-left-color: var(--c-green); }

.nbt-insight-card__icon {
  font-size: var(--text-h3); flex-shrink: 0; margin-top: 1px;
  line-height: 1;
}

.nbt-insight-card__text {
  font-size: var(--text-body); font-weight: 500;
  color: var(--c-text-secondary); line-height: 1.6;
}

/* ══════════════════════════════════════════════════════════════
   FIXTURE CARDS — CARD MEDIUM
   ══════════════════════════════════════════════════════════════ */
.nbt-football-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
  min-width: 0; width: 100%;
}

.nbt-fixture-card {
  background: var(--c-surface-elevated);
  border: var(--card-border);
  border-radius: var(--card-radius);
  padding: var(--space-4);
  transition: box-shadow var(--transition), transform var(--transition);
  position: relative; overflow: hidden;
  min-width: 0; max-width: 100%;
  box-shadow: var(--shadow-sm);
}

.nbt-fixture-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.nbt-fixture-card--live {
  border-color: rgba(215,0,21,.2);
  border-left: 4px solid var(--c-live);
}

/* Live badge */
.nbt-live-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--c-live);
  color: #fff;
  font-size: var(--text-meta); font-weight: 700; letter-spacing: .5px;
  padding: 4px var(--space-3);
  border-radius: var(--r-sm);
  margin-bottom: var(--space-3);
}

.nbt-live-dot {
  width: 6px; height: 6px;
  background: #fff; border-radius: 50%;
  animation: nbt-pulse 1.4s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes nbt-pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .4; transform: scale(.7); }
}

.nbt-fixture-league {
  font-size: var(--text-meta); color: var(--c-text-muted);
  margin-bottom: var(--space-3);
  text-transform: uppercase; letter-spacing: .5px;
  font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* Fixture teams: 3-column */
.nbt-fixture-teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: var(--space-2);
}

.nbt-fixture-team {
  display: flex; flex-direction: column;
  align-items: flex-start; gap: var(--space-2); min-width: 0;
}

.nbt-fixture-team img {
  width: var(--logo-card); height: var(--logo-card);
  object-fit: contain; flex-shrink: 0; border-radius: 6px;
}

.nbt-fixture-team span {
  font-size: var(--text-small); font-weight: 600;
  color: var(--c-text); line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden; word-break: break-word;
}

.nbt-fixture-team--away { align-items: flex-end; text-align: right; }

.nbt-fixture-score {
  display: flex; flex-direction: column;
  align-items: center; gap: var(--space-1); flex-shrink: 0;
}

.nbt-score {
  font-family: var(--font-mono);
  font-size: var(--text-h3); font-weight: 700;
  color: var(--c-text); letter-spacing: .5px; white-space: nowrap;
}

.nbt-score--vs { font-size: var(--text-small); color: var(--c-text-muted); font-weight: 600; }

.nbt-fixture-date {
  font-size: var(--text-meta); color: var(--c-text-muted);
  text-align: center; white-space: nowrap;
  max-width: 90px;
  overflow: hidden; text-overflow: ellipsis;
}

/* Team Card */
.nbt-team-card {
  background: var(--c-surface-elevated);
  border: var(--card-border);
  border-radius: var(--card-radius);
  padding: var(--space-4);
  display: flex; gap: var(--space-4); align-items: center;
  transition: box-shadow var(--transition), transform var(--transition);
  min-width: 0;
  box-shadow: var(--shadow-sm);
}

.nbt-team-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.nbt-team-card img {
  width: 52px; height: 52px;
  object-fit: contain; flex-shrink: 0;
}

.nbt-team-card__info { display: flex; flex-direction: column; gap: var(--space-1); min-width: 0; }
.nbt-team-card__info strong { font-size: var(--text-h3); font-weight: 700; color: var(--c-text); }
.nbt-team-card__info span   { font-size: var(--text-small); color: var(--c-text-muted); }

/* ══════════════════════════════════════════════════════════════
   ARTICLE CARD SYSTEM — All identical, 16:9 thumbnail
   ══════════════════════════════════════════════════════════════ */
.nbt-articles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3); min-width: 0; width: 100%;
}

.nbt-article-card {
  background: var(--c-surface-elevated);
  border: var(--card-border);
  border-radius: var(--card-radius);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
  min-width: 0; max-width: 100%; width: 100%;
  box-shadow: var(--shadow-sm);
  /* STRICT: same height for all cards when in grid */
  display: flex;
  flex-direction: column;
}

.nbt-article-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.nbt-article-card__link {
  display: flex;
  flex-direction: row;
  flex: 1;
  min-width: 0; max-width: 100%; overflow: hidden;
}

/* Mobile: thumbnail is 96px wide strip */
.nbt-article-card__thumb {
  position: relative;
  width: 100px; min-width: 100px; flex-shrink: 0;
  overflow: hidden; background: var(--c-surface);
}

.nbt-article-card__thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.nbt-article-card:hover .nbt-article-card__thumb img { transform: scale(1.06); }

.nbt-article-card__thumb-placeholder {
  width: 100%; height: 100%; min-height: 90px;
  display: flex; align-items: center; justify-content: center;
  color: var(--c-text-dim);
  background: var(--c-surface);
}

.nbt-article-card__cat {
  position: absolute;
  bottom: var(--space-2); left: var(--space-2);
  background: var(--c-accent); color: #fff;
  font-size: var(--text-meta); font-weight: 700;
  letter-spacing: .5px; text-transform: uppercase;
  padding: 3px var(--space-2); border-radius: 6px;
  max-width: calc(100% - 16px);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.nbt-article-card__body {
  padding: var(--space-3) var(--space-4);
  flex: 1; display: flex; flex-direction: column; gap: var(--space-1);
  min-width: 0;
}

/* STRICT: title max 2 lines, body 16px */
.nbt-article-card__title {
  font-size: var(--text-body); font-weight: 700;
  color: var(--c-text); line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}

/* STRICT: excerpt max 2 lines */
.nbt-article-card__excerpt {
  font-size: var(--text-small); color: var(--c-text-secondary);
  line-height: 1.55; flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}

/* STRICT: metadata same size */
.nbt-article-card__meta {
  display: flex; align-items: center;
  justify-content: space-between;
  font-size: var(--text-meta); color: var(--c-text-muted);
  padding-top: var(--space-2);
  border-top: 1px solid var(--c-border);
  gap: 6px;
}

.nbt-relevance {
  display: inline-flex; align-items: center; gap: 3px;
  color: var(--c-gold); flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════════
   H2H — Timeline Cards
   ══════════════════════════════════════════════════════════════ */
.nbt-h2h-timeline {
  display: flex; flex-direction: column; gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.nbt-h2h-card {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  background: var(--c-surface-elevated);
  border: var(--card-border);
  border-radius: var(--r-md);
  transition: box-shadow var(--transition);
  position: relative;
  box-shadow: var(--shadow-sm);
}

.nbt-h2h-card:hover { box-shadow: var(--shadow-md); }

.nbt-h2h-card__team {
  display: flex; align-items: center; gap: var(--space-2);
  min-width: 0;
}

.nbt-h2h-card__team--away {
  flex-direction: row-reverse; text-align: right;
}

.nbt-h2h-card__team img {
  width: var(--logo-small); height: var(--logo-small);
  object-fit: contain; flex-shrink: 0;
}

.nbt-h2h-card__team-name {
  font-size: var(--text-small); font-weight: 600; color: var(--c-text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  min-width: 0;
}

.nbt-h2h-card__score-block {
  display: flex; flex-direction: column; align-items: center;
  gap: var(--space-1); flex-shrink: 0; min-width: 60px; text-align: center;
}

.nbt-h2h-card__score {
  font-family: var(--font-mono);
  font-size: var(--text-h3); font-weight: 700;
  color: var(--c-text); letter-spacing: .5px;
}

.nbt-h2h-card__meta {
  font-size: var(--text-meta); color: var(--c-text-muted);
  white-space: nowrap;
}

.nbt-h2h-card__league {
  position: absolute;
  top: 6px; left: 50%;
  transform: translateX(-50%);
  font-size: var(--text-meta); font-weight: 600;
  color: var(--c-text-dim);
  text-transform: uppercase; letter-spacing: .4px;
  white-space: nowrap;
  max-width: 120px;
  overflow: hidden; text-overflow: ellipsis;
}

/* H2H Table */
.nbt-h2h-table-wrap {
  width: 100%; max-width: 100%;
  overflow-x: auto; overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--r-md);
  border: var(--card-border);
  display: block; contain: inline-size;
  background: var(--c-surface-elevated);
}

.nbt-h2h-scroll-hint {
  display: flex; align-items: center; justify-content: center;
  gap: 6px; font-size: var(--text-meta); color: var(--c-text-muted);
  padding: 6px 0 var(--space-1);
}

.nbt-h2h-table {
  width: 100%; min-width: 0;
  border-collapse: collapse; font-size: var(--text-small);
}

.nbt-h2h-table thead th {
  background: var(--c-surface);
  padding: var(--space-2) var(--space-2);
  text-align: center; font-weight: 700;
  color: var(--c-text-muted);
  font-size: var(--text-meta); text-transform: uppercase;
  letter-spacing: .06em; white-space: nowrap;
}

.nbt-h2h-table thead th:first-child,
.nbt-h2h-table thead th:last-child,
.nbt-h2h-table tbody td:first-child,
.nbt-h2h-table tbody td:last-child { display: none; }

.nbt-h2h-table tbody tr {
  border-top: 1px solid var(--c-border);
  transition: background .15s;
}

.nbt-h2h-table tbody tr:hover { background: var(--c-surface-hover); }
.nbt-h2h-table td { padding: var(--space-2) var(--space-2); vertical-align: middle; color: var(--c-text-secondary); }

.nbt-team-cell {
  display: flex; flex-direction: column;
  align-items: center; gap: 4px; text-align: center;
}

.nbt-team-cell img { width: var(--logo-small); height: var(--logo-small); object-fit: contain; }

.nbt-team-cell span {
  font-size: var(--text-meta); font-weight: 600; color: var(--c-text);
  line-height: 1.2; max-width: 60px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.nbt-team-logo { border-radius: 3px; object-fit: contain; flex-shrink: 0; }

.nbt-score-cell {
  text-align: center;
  font-family: var(--font-mono);
  font-size: var(--text-body); font-weight: 700;
  color: var(--c-accent); white-space: nowrap;
  padding: 0 var(--space-2);
}

@media (min-width: 640px) {
  .nbt-h2h-table thead th:first-child,
  .nbt-h2h-table thead th:last-child,
  .nbt-h2h-table tbody td:first-child,
  .nbt-h2h-table tbody td:last-child { display: table-cell; }
  .nbt-h2h-table { min-width: 500px; }
  .nbt-team-cell { flex-direction: row; align-items: center; text-align: left; gap: 6px; }
  .nbt-team-cell span { font-size: var(--text-small); max-width: none; white-space: nowrap; }
}

/* ══════════════════════════════════════════════════════════════
   TEAM FORM CARD — Both teams identical
   ══════════════════════════════════════════════════════════════ */
.nbt-form-grid {
  display: grid; grid-template-columns: 1fr;
  gap: var(--space-3); margin-top: var(--space-3);
}

/* STRICT: both form blocks identical height, spacing, logo, heading */
.nbt-form-block {
  background: var(--c-surface-elevated);
  border: var(--card-border);
  border-radius: var(--card-radius);
  padding: var(--space-4);
  overflow: hidden; min-width: 0;
  box-shadow: var(--shadow-sm);
  /* Ensure equal height in grid */
  display: flex;
  flex-direction: column;
}

/* STRICT: form team logo 36×36 identical */
.nbt-form-team-logo {
  display: block;
  width: var(--logo-form); height: var(--logo-form);
  object-fit: contain;
  border-radius: var(--space-1);
  margin-bottom: var(--space-2);
}

.nbt-form-pills {
  display: flex; gap: var(--space-1); flex-wrap: wrap;
  margin-bottom: var(--space-3);
}

/* STRICT: form pills 34×34, font size meta */
.nbt-form-pill {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  font-size: var(--text-meta); font-weight: 700;
  transition: transform .15s; flex-shrink: 0;
}

.nbt-form-pill:hover { transform: scale(1.12); }
.nbt-form-pill--win  { background: rgba(26,138,74,.12);  color: var(--c-green); border: 2px solid rgba(26,138,74,.25); }
.nbt-form-pill--lose { background: rgba(215,0,21,.1);    color: var(--c-live);  border: 2px solid rgba(215,0,21,.22); }
.nbt-form-pill--draw { background: rgba(176,96,0,.1);    color: var(--c-gold);  border: 2px solid rgba(176,96,0,.22); }
.nbt-form-pill--sm   { width: 24px; height: 24px; font-size: var(--text-meta); }

/* STRICT: rating bars identical */
.nbt-form-ratings {
  display: flex; flex-direction: column; gap: var(--space-2);
  margin: var(--space-3) 0 var(--space-2);
}

.nbt-rating-row {
  display: flex; align-items: center; gap: var(--space-2);
}

/* STRICT: label width consistent */
.nbt-rating-label {
  font-size: var(--text-small); font-weight: 600;
  color: var(--c-text-secondary);
  width: 72px; flex-shrink: 0;
}

.nbt-rating-bar {
  flex: 1; height: 6px;
  background: var(--c-surface);
  border-radius: var(--r-pill);
  overflow: hidden;
  border: 1px solid var(--c-border);
}

.nbt-rating-fill {
  height: 100%; border-radius: var(--r-pill);
  background: linear-gradient(90deg, var(--c-accent), var(--c-blue));
  transition: width .6s cubic-bezier(.4,0,.2,1);
}

.nbt-rating-fill--attack  { background: linear-gradient(90deg, #d97706, #c06000); }
.nbt-rating-fill--defense { background: linear-gradient(90deg, #3b82f6, #5e5ce6); }
.nbt-rating-fill--form    { background: linear-gradient(90deg, #1a8a4a, #0891b2); }
.nbt-rating-fill--momentum{ background: linear-gradient(90deg, #7c3aed, #db2777); }

.nbt-rating-val {
  font-family: var(--font-mono);
  font-size: var(--text-small); font-weight: 700;
  color: var(--c-text); width: 30px;
  text-align: right; flex-shrink: 0;
}

.nbt-form-matches { display: flex; flex-direction: column; gap: 6px; margin-top: var(--space-2); }

.nbt-form-match-row {
  display: flex; gap: var(--space-2);
  font-size: var(--text-meta); color: var(--c-text-muted);
  flex-wrap: wrap; line-height: 1.5;
}

.nbt-form-match-date {
  min-width: 64px; flex-shrink: 0; color: var(--c-text-dim);
}

.nbt-form-match-teams { flex: 1; min-width: 0; word-break: break-word; }

/* ══════════════════════════════════════════════════════════════
   STANDINGS TABLE — Consistent row height, padding, alignment
   ══════════════════════════════════════════════════════════════ */
.nbt-section__sub--context {
  color: var(--c-text-muted); font-style: italic;
}

.nbt-standings-wrap {
  width: 100%; max-width: 100%;
  overflow-x: auto; overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--r-md);
  border: var(--card-border);
  display: block; contain: inline-size;
  background: var(--c-surface-elevated);
  box-shadow: var(--shadow-sm);
}

.nbt-standings-scroll-hint {
  display: flex; align-items: center; justify-content: center;
  gap: 4px; font-size: var(--text-meta); color: var(--c-text-muted);
  padding: 6px 0 var(--space-1);
}

/* STRICT: consistent row height, padding, alignment */
.nbt-standings-table {
  width: 100%; min-width: 280px;
  border-collapse: collapse;
  font-size: var(--text-small);
}

.nbt-standings-table thead th {
  background: var(--c-surface);
  padding: var(--space-2) var(--space-2);
  text-align: center; font-weight: 700;
  color: var(--c-text-muted);
  font-size: var(--text-meta); text-transform: uppercase;
  letter-spacing: .07em; white-space: nowrap;
  border-bottom: 1px solid var(--c-border);
  height: 40px;
}

.nbt-standings-table thead th:nth-child(3) { text-align: left; }

/* Mobile: hide stat cols */
.nbt-standings-table .nbt-col-w,
.nbt-standings-table .nbt-col-d,
.nbt-standings-table .nbt-col-l,
.nbt-standings-table .nbt-col-gd,
.nbt-standings-table .nbt-col-form { display: none; }

/* STRICT: consistent row height */
.nbt-standings-table tbody tr {
  border-top: 1px solid var(--c-border);
  transition: background .15s;
  height: 48px;
}

.nbt-standings-table tbody tr:hover { background: var(--c-surface-hover); }

/* STRICT: consistent padding and alignment */
.nbt-standings-table td {
  padding: var(--space-2) var(--space-2);
  text-align: center;
  vertical-align: middle;
  color: var(--c-text-secondary);
}

.nbt-standings-rank {
  font-weight: 700; font-size: var(--text-small);
  min-width: 20px; color: var(--c-text);
}

.nbt-standings-logo {
  width: var(--logo-small);
}

.nbt-standings-logo img {
  display: block; margin: 0 auto;
  width: var(--logo-small); height: var(--logo-small);
  object-fit: contain;
}

.nbt-standings-name {
  text-align: left; font-weight: 600;
  white-space: nowrap; max-width: 110px;
  overflow: hidden; text-overflow: ellipsis;
  color: var(--c-text);
}

.nbt-standings-pts strong { color: var(--c-accent); font-weight: 800; }

.nbt-standings-form {
  display: flex; gap: 2px; flex-wrap: nowrap;
  justify-content: center;
}

/* Tablet+ */
@media (min-width: 640px) {
  .nbt-standings-table { min-width: 480px; }
  .nbt-standings-table .nbt-col-w,
  .nbt-standings-table .nbt-col-d,
  .nbt-standings-table .nbt-col-l,
  .nbt-standings-table .nbt-col-gd,
  .nbt-standings-table .nbt-col-form { display: table-cell; }
  .nbt-standings-table thead th { padding: var(--space-2) var(--space-2); }
  .nbt-standings-table td { padding: var(--space-2) var(--space-2); }
  .nbt-standings-name { max-width: 160px; }
}

/* Zone colors */
.nbt-zone--ucl td:first-child { border-left: 3px solid var(--c-blue); }
.nbt-zone--uel td:first-child { border-left: 3px solid var(--c-orange); }
.nbt-zone--rel td:first-child { border-left: 3px solid var(--c-live); }

.nbt-standings-row--highlight {
  background: rgba(0,113,227,.04) !important;
}

.nbt-standings-legend {
  display: flex; align-items: center;
  gap: var(--space-3); flex-wrap: wrap;
  font-size: var(--text-meta); color: var(--c-text-muted);
  padding: var(--space-2) var(--space-3) var(--space-2);
  border-top: 1px solid var(--c-border);
}

.nbt-zone-dot {
  display: inline-block;
  width: 9px; height: 9px;
  border-radius: 3px; margin-right: 3px; flex-shrink: 0;
}

.nbt-zone-dot--ucl { background: var(--c-blue); }
.nbt-zone-dot--uel { background: var(--c-orange); }
.nbt-zone-dot--rel { background: var(--c-live); }

/* ══════════════════════════════════════════════════════════════
   NEXT FIXTURES
   ══════════════════════════════════════════════════════════════ */
.nbt-next-fixtures-grid {
  display: grid; grid-template-columns: 1fr;
  gap: var(--space-3); min-width: 0; width: 100%;
}

.nbt-next-fixtures-block {
  background: var(--c-surface-elevated);
  border: var(--card-border);
  border-radius: var(--card-radius);
  padding: var(--space-4);
  overflow: hidden; min-width: 0;
  box-shadow: var(--shadow-sm);
}

.nbt-next-fixture-list {
  list-style: none; padding: 0;
  margin: var(--space-2) 0 0;
  display: flex; flex-direction: column; gap: var(--space-2);
}

.nbt-next-fixture-item {
  background: var(--c-surface);
  border: var(--card-border);
  border-radius: var(--r-sm);
  padding: var(--space-3) var(--space-3);
  min-width: 0; overflow: hidden;
  transition: box-shadow var(--transition);
}

.nbt-next-fixture-item:hover { box-shadow: var(--shadow-sm); }

.nbt-next-fixture-teams {
  display: flex; align-items: center; gap: 6px;
  font-weight: 600; font-size: var(--text-small);
  margin-bottom: 6px;
  min-width: 0; overflow: hidden; max-width: 100%;
  color: var(--c-text);
}

.nbt-next-fixture-name {
  flex: 1; text-align: center;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0;
}

.nbt-next-fixture-vs {
  font-size: var(--text-meta); color: var(--c-text-muted);
  padding: 0 3px; font-weight: 700; flex-shrink: 0;
}

.nbt-next-fixture-meta {
  display: flex; flex-direction: column; gap: 3px;
  font-size: var(--text-meta); color: var(--c-text-muted);
  word-break: break-word; overflow-wrap: anywhere;
}

.nbt-next-fixture-date { color: var(--c-accent); font-weight: 600; }

.nbt-next-fixture-league,
.nbt-next-fixture-venue {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ══════════════════════════════════════════════════════════════
   SMART FOOTBALL
   ══════════════════════════════════════════════════════════════ */
.nbt-section--smart-football {
}

.nbt-smart-team-block {
  margin-bottom: var(--space-6); padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--c-border);
}

.nbt-smart-team-block:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }

.nbt-smart-team-header {
  display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-4);
}

.nbt-smart-team-logo {
  width: var(--logo-form); height: var(--logo-form);
  object-fit: contain; border-radius: var(--space-1);
}

.nbt-smart-team-title {
  margin: 0; font-size: var(--text-h3); font-weight: 700; color: var(--c-text);
}

.nbt-smart-team-api-name {
  font-size: .8em; font-weight: 400; color: var(--c-text-muted); margin-left: var(--space-1);
}

.nbt-smart-fixture-cols {
  display: grid; grid-template-columns: 1fr; gap: var(--space-4);
}

.nbt-smart-fixture-col h4.nbt-subsection-title {
  display: flex; align-items: center; gap: 6px;
}

.nbt-next-fixture-list--compact .nbt-next-fixture-item { padding: var(--space-2) var(--space-3); }

/* ══════════════════════════════════════════════════════════════
   BABAK GUGUR / KNOCKOUT STAGE
   ══════════════════════════════════════════════════════════════ */
.nbt-section--knockout .nbt-standings-group-title {
  margin-top: var(--space-5);
}
.nbt-section--knockout .nbt-standings-group-title:first-of-type { margin-top: var(--space-3); }

.nbt-knockout-list { margin-bottom: var(--space-2); }

.nbt-knockout-item .nbt-next-fixture-vs {
  font-weight: 800; color: var(--c-text); font-size: var(--text-body);
}

.nbt-knockout-item--live {
  border-color: var(--c-danger, #e5484d);
  box-shadow: 0 0 0 1px var(--c-danger, #e5484d);
}
.nbt-knockout-item--live .nbt-next-fixture-date { color: var(--c-danger, #e5484d); }

/* Smart Results */
.nbt-smart-results {
  display: flex; flex-direction: column; gap: var(--space-2);
}

.nbt-smart-result-row {
  background: var(--c-surface-elevated);
  border: var(--card-border);
  border-left: 3px solid transparent;
  border-radius: var(--r-sm);
  padding: var(--space-2) var(--space-3);
  transition: box-shadow .15s;
  box-shadow: var(--shadow-sm);
}

.nbt-smart-result-row--win  { border-left-color: var(--c-green); }
.nbt-smart-result-row--lose { border-left-color: var(--c-live);  }
.nbt-smart-result-row--draw { border-left-color: var(--c-gold);  }

.nbt-smart-result-teams {
  display: flex; align-items: center;
  gap: 6px; flex-wrap: wrap; margin-bottom: var(--space-1);
}

.nbt-smart-result-home,
.nbt-smart-result-away {
  font-size: var(--text-small); color: var(--c-text);
  flex: 1; min-width: 0; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}

.nbt-smart-result-away { text-align: right; }

.nbt-smart-result-score {
  font-size: var(--text-body); font-weight: 700; color: var(--c-text);
  white-space: nowrap; padding: 0 var(--space-1);
  font-family: var(--font-mono);
}

.nbt-smart-result-teams img { width: 20px; height: 20px; object-fit: contain; flex-shrink: 0; }

.nbt-smart-result-meta { display: flex; gap: var(--space-2); flex-wrap: wrap; }

.nbt-smart-result-date,
.nbt-smart-result-league { font-size: var(--text-meta); color: var(--c-text-muted); }

/* ══════════════════════════════════════════════════════════════
   DISCOVER SECTION — Trending & Pencarian Terbaru
   Satu kartu compact, dua section internal dipisah divider tipis.
   Stack vertikal di mobile, berdampingan (divider vertikal) di tablet+.
   ══════════════════════════════════════════════════════════════ */
.nbt-discover {
  margin-top: var(--space-5);
}

.nbt-discover__card {
  display: flex;
  flex-direction: column;
  background: var(--c-surface-elevated);
  border: var(--card-border);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.nbt-discover__section {
  flex: 1;
  min-width: 0;
}

.nbt-discover__divider {
  height: 1px;
  background: var(--c-border);
  margin: 0 var(--space-4);
}

.nbt-discover__section-header {
  display: flex; align-items: center; gap: var(--space-2);
  padding: var(--space-4) var(--space-4) var(--space-3);
}

.nbt-discover__section-icon {
  display: none;
}

.nbt-discover__section-icon--trend {
  background: linear-gradient(135deg, #ff6a3d, #ff2e63);
  color: #fff;
  box-shadow: 0 3px 10px rgba(255,46,99,.35);
}

.nbt-discover__section-icon--recent {
  background: linear-gradient(135deg, var(--c-accent), #5e5ce6);
  color: #fff;
  box-shadow: 0 3px 10px var(--c-accent-glow);
}

.nbt-discover__section-title {
  flex: 1;
  font-family: var(--font-display);
  font-size: var(--text-h2);
  font-weight: 700;
  letter-spacing: -.3px;
  line-height: 1.2;
  color: var(--c-text);
}

.nbt-discover__badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 800; letter-spacing: .3px;
  text-transform: uppercase;
  color: var(--c-live);
  background: var(--c-live-bg);
  border-radius: var(--r-pill);
  padding: 4px 10px;
}

.nbt-discover__badge::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--c-live);
  animation: nbt-pulse 1.6s ease-in-out infinite;
}

@keyframes nbt-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .4; transform: scale(.75); }
}

/* Trending — tampil sebagai tag/pill, sama seperti Pencarian Terbaru,
   tapi tetap membawa info urutan (rank) & jumlah pencarian (hits). */
.nbt-discover__trend-tags {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding: 0 var(--space-4) var(--space-4);
}

.nbt-discover__trend-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  color: var(--c-text);
  font-size: var(--text-body); font-weight: 600; line-height: 1.3;
  padding: 8px 14px 8px 8px; border-radius: var(--r-pill);
  transition: all var(--transition);
  word-break: break-word; overflow-wrap: anywhere;
  max-width: 100%;
}

.nbt-discover__trend-tag:hover {
  background: var(--c-accent); border-color: var(--c-accent); color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px var(--c-accent-glow);
}

.nbt-discover__trend-tag:hover .nbt-discover__rank { color: #fff; background: rgba(255,255,255,.25); }
.nbt-discover__trend-tag:hover .nbt-discover__hits { color: rgba(255,255,255,.85); }

.nbt-discover__rank {
  display: flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--c-surface-hover);
  font-size: 12px; font-weight: 800; color: var(--c-text-dim);
  flex-shrink: 0; font-feature-settings: "tnum";
  transition: all var(--transition);
}

.nbt-discover__trend-tag--top .nbt-discover__rank {
  background: linear-gradient(135deg, #ff6a3d, #ff2e63);
  color: #fff;
}

.nbt-discover__label {
  font-size: var(--text-body); font-weight: 600;
  min-width: 0;
}

.nbt-discover__hits {
  font-size: 12.5px; font-weight: 700; color: var(--c-text-dim);
  flex-shrink: 0; font-feature-settings: "tnum";
  transition: color var(--transition);
}

/* Recent search tag cloud */
.nbt-discover__tags {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding: 0 var(--space-4) var(--space-4);
}

.nbt-discover__tag {
  display: inline-flex; align-items: center;
  color: var(--c-text-secondary);
  font-size: var(--text-body); font-weight: 600; line-height: 1.3;
  padding: 8px 14px; border-radius: var(--r-pill);
  border: 1px solid var(--c-border);
  transition: all var(--transition);
  word-break: break-word; overflow-wrap: anywhere;
  max-width: 100%;
}

.nbt-discover__tag:hover {
  background: var(--c-accent); border-color: var(--c-accent); color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px var(--c-accent-glow);
}

/* Live list (dipertahankan untuk widget live scores lain jika diaktifkan) */
.nbt-live-list { list-style: none; padding: var(--space-1) 0; }

.nbt-live-list__item { padding: var(--space-2) var(--space-4); border-bottom: 1px solid var(--c-border); }
.nbt-live-list__item:last-child { border-bottom: none; }

.nbt-live-match {
  display: flex; align-items: center;
  justify-content: space-between; gap: 6px;
}

.nbt-live-match__team {
  font-size: var(--text-small); font-weight: 600; flex: 1;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0;
  color: var(--c-text);
}

.nbt-live-match__team:last-child { text-align: right; }

.nbt-live-match__score {
  font-family: var(--font-mono);
  font-size: var(--text-small); font-weight: 700;
  color: var(--c-live); white-space: nowrap;
  padding: 0 5px; flex-shrink: 0;
}

.nbt-live-match__time {
  display: block; font-size: var(--text-meta); color: var(--c-live);
  text-align: center; margin-top: 3px;
}

/* ══════════════════════════════════════════════════════════════
   EMPTY STATE & BUTTONS
   ══════════════════════════════════════════════════════════════ */
.nbt-empty-state { text-align: center; padding: var(--space-7) var(--space-4); color: var(--c-text-muted); }
.nbt-empty-state svg { margin: 0 auto var(--space-4); opacity: .3; }
.nbt-empty-state h3  { font-size: var(--text-h3); color: var(--c-text); margin-bottom: var(--space-3); font-family: var(--font-display); word-break: break-word; }
.nbt-empty-state p   { font-size: var(--text-body); margin-bottom: var(--space-6); }

.nbt-btn {
  display: inline-flex; align-items: center; gap: var(--space-2);
  background: var(--c-accent); color: #fff;
  font-weight: 700; font-size: var(--text-body);
  padding: var(--space-3) var(--space-6); border-radius: var(--r-pill);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.nbt-btn:hover { background: var(--c-accent-dark); transform: scale(1.02); box-shadow: 0 6px 20px var(--c-accent-glow); }

/* ══════════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════════ */
.nbt-footer {
  border-top: 1px solid var(--c-border);
  background: var(--c-surface);
  padding: var(--space-5) 0;
  text-align: center;
  font-size: var(--text-small); color: var(--c-text-muted);
}

.nbt-footer a { color: var(--c-accent); }

.nbt-footer-brand {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 6px;
  font-size: var(--text-meta); color: var(--c-text-muted); font-weight: 500;
}

.nbt-footer-brand strong { color: var(--c-accent); }

/* ══════════════════════════════════════════════════════════════
   SCROLLBAR
   ══════════════════════════════════════════════════════════════ */
::-webkit-scrollbar       { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--c-border-2); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--c-text-dim); }

::selection { background: var(--c-accent-glow); color: var(--c-text); }

/* ══════════════════════════════════════════════════════════════
   SCROLL HINTS
   ══════════════════════════════════════════════════════════════ */
.nbt-h2h-scroll-hint,
.nbt-standings-scroll-hint { display: none; }

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE — Mobile < 380px
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 380px) {
  :root {
    --px: 14px;
    --logo-hero: 56px;
  }
  .nbt-logo__text { font-size: var(--text-small); }
  .nbt-logo__img  { max-height: 28px; max-width: 78px; }
  .nbt-search-bar__icon { padding: 0 var(--space-2); }
  .nbt-search-bar .nbt-lang-dd__btn { width: 27px; height: 27px; }
  .nbt-search-bar .nbt-lang-dd__flag { width: 17px; height: 12px; }
  .nbt-search-mode { gap: var(--space-3); }
  .nbt-search-mode__option { font-size: 12.5px; gap: 5px; white-space: nowrap; }
  .nbt-search-mode__option input[type="radio"] { width: 14px; height: 14px; }
  .nbt-hero__title { font-size: 1.5rem; }
  .nbt-article-card__thumb { width: 80px; min-width: 80px; }
  .nbt-article-card__title { font-size: var(--text-small); }
  .nbt-article-card__excerpt { display: none; }
  .nbt-match-hero { padding: var(--space-4) var(--space-3); gap: var(--space-2); }
  .nbt-match-hero__vs { font-size: var(--text-h2); }
  .nbt-match-hero__name { font-size: var(--text-body); }
  .nbt-score { font-size: var(--text-h3); }
  .nbt-fixture-team img { width: 28px; height: 28px; }
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE — 480px+
   ══════════════════════════════════════════════════════════════ */
@media (min-width: 480px) {
  .nbt-article-card__thumb { width: 110px; min-width: 110px; }
  .nbt-football-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
  .nbt-insights-grid { grid-template-columns: 1fr 1fr; }
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE — 640px Tablet
   ══════════════════════════════════════════════════════════════ */
@media (min-width: 640px) {
  :root {
    --px: var(--px-md);
    --logo-hero: 64px;  /* tablet: 64×64 */
  }

  .nbt-header__inner { min-height: 64px; gap: var(--space-4); }
  .nbt-logo__img { max-height: 40px; max-width: 140px; }

  .nbt-hero { padding: var(--space-7) 0 var(--space-6); }
  .nbt-hero__summary { padding: var(--space-5) var(--space-6); }

  .nbt-section { margin-bottom: var(--section-gap-tablet); }

  .nbt-football-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }

  /* Article grid: card layout on tablet */
  .nbt-articles-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: var(--space-4); }
  .nbt-article-card__link { flex-direction: column; }
  .nbt-article-card__thumb {
    width: 100%; min-width: unset;
    /* STRICT: 16:9 ratio */
    aspect-ratio: 16/9;
    height: auto;
  }
  .nbt-article-card__thumb img { height: 100%; }
  .nbt-article-card__title { font-size: var(--text-h3); -webkit-line-clamp: 2; }
  .nbt-article-card__excerpt { -webkit-line-clamp: 2; display: -webkit-box; }
  .nbt-article-card__body { padding: var(--space-4); }
  .nbt-article-card__cat { top: var(--space-2); bottom: auto; left: var(--space-2); }

  .nbt-form-grid { grid-template-columns: 1fr 1fr; }
  .nbt-next-fixtures-grid { grid-template-columns: 1fr 1fr; }

  .nbt-score { font-size: var(--text-h2); }
  .nbt-fixture-team img { width: 38px; height: 38px; }

  .nbt-breadcrumb span:last-child { max-width: 280px; }

  .nbt-discover__card { flex-direction: row; align-items: stretch; }
  .nbt-discover__divider { width: 1px; height: auto; margin: var(--space-3) 0; }

  .nbt-match-hero { padding: var(--space-6) var(--space-5); }
  .nbt-match-hero__name { font-size: var(--text-h3); max-width: 140px; }
  .nbt-match-hero__vs { font-size: var(--text-h1); }
  .nbt-insights-grid { grid-template-columns: 1fr 1fr; }

  .nbt-h2h-scroll-hint,
  .nbt-standings-scroll-hint { display: flex; }
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE — 1024px Desktop
   ══════════════════════════════════════════════════════════════ */
@media (min-width: 1024px) {
  :root {
    --px: var(--px-lg);
    --logo-hero: 80px;  /* desktop: 80×80 */
    --section-gap-desktop: 48px;
  }

  .nbt-header__inner { min-height: 68px; gap: var(--space-6); flex-wrap: nowrap; }
  .nbt-logo__img { max-height: 46px; max-width: 170px; }

  .nbt-search-bar-wrapper { flex-direction: row; align-items: center; gap: var(--space-5); }
  .nbt-search-bar { flex: 1; }
  .nbt-search-mode { flex-shrink: 0; padding: 0; }

  .nbt-hero { padding: var(--space-8) 0 var(--space-7); }
  .nbt-hero__summary { padding: var(--space-5) var(--space-6); max-width: 720px; }

  .nbt-main { padding: var(--space-7) 0 var(--space-8); }

  .nbt-layout {
    overflow-x: hidden; overflow-y: visible;
  }

  .nbt-section { margin-bottom: var(--section-gap-desktop); }
  .nbt-section__header { margin-bottom: var(--space-5); }

  .nbt-football-grid { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: var(--space-4); }
  .nbt-articles-grid { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: var(--space-5); }

  .nbt-score { font-size: var(--text-h3); }
  .nbt-fixture-team img { width: var(--logo-card); height: var(--logo-card); }

  .nbt-discover { margin-top: var(--space-6); }
  .nbt-standings-name { max-width: 185px; }

  .nbt-breadcrumb span:last-child { max-width: 420px; }

  .nbt-match-hero {
    padding: var(--space-7) var(--space-6);
    min-height: 280px;
  }
  .nbt-match-hero__logo { width: var(--logo-hero); height: var(--logo-hero); }
  .nbt-match-hero__name { font-size: var(--text-h3); max-width: 160px; }
  .nbt-match-hero__vs { font-size: var(--text-h1); }
  .nbt-insights-grid { grid-template-columns: 1fr 1fr 1fr; }

  /* AI Summary & AI Answer berdampingan kiri-kanan di desktop */
  .nbt-ai-panels { grid-template-columns: 1fr 1fr; align-items: start; }

  .nbt-h2h-scroll-hint,
  .nbt-standings-scroll-hint { display: none; }
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE — 1280px Wide
   ══════════════════════════════════════════════════════════════ */
@media (min-width: 1280px) {
}

/* ══════════════════════════════════════════════════════════════
   UTILITY CLASSES — Design System Extensions
   ══════════════════════════════════════════════════════════════ */

/* Knockout badge (previously inline style) */
.nbt-badge-knockout {
  display: inline-flex; align-items: center;
  background: rgba(255,193,7,.15);
  color: #c9900c;
  border: 1px solid rgba(255,193,7,.3);
  border-radius: var(--r-sm);
  padding: 2px var(--space-2);
  font-size: var(--text-meta); font-weight: 700;
  letter-spacing: .3px;
  margin-left: var(--space-1);
  vertical-align: middle;
}

/* Info note badge */
.nbt-badge-info {
  font-size: var(--text-meta);
  color: var(--c-text-muted);
  margin-left: var(--space-1);
  font-weight: 400;
}

/* AI Prediction badge in match hero */
.nbt-ai-prediction {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(94,92,230,.08);
  border: 1px solid rgba(94,92,230,.18);
  color: var(--c-purple);
  font-size: var(--text-meta); font-weight: 700;
  letter-spacing: .6px; text-transform: uppercase;
  padding: 4px var(--space-3);
  border-radius: var(--r-pill);
}

/* Match date/time in hero center */
.nbt-match-hero__date {
  font-size: var(--text-meta); font-weight: 600;
  color: var(--c-text-secondary);
  text-align: center;
  background: var(--c-surface);
  padding: 4px var(--space-3);
  border-radius: var(--r-pill);
}

/* ═══════════════════════════════════════════════════════════════════════
   GENERAL NEWS GRID — section Berita Terkini (topik umum)
   ══════════════════════════════════════════════════════════════════════ */

.nbt-news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-4);
}

.nbt-news-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-card);
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s, transform .15s;
}
.nbt-news-card:hover {
  border-color: var(--c-accent);
  box-shadow: 0 4px 20px rgba(0,0,0,.15);
  transform: translateY(-2px);
}

.nbt-news-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}
.nbt-news-card__link--nolink {
  cursor: default;
}

.nbt-news-card__thumb {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--c-surface-2);
}
.nbt-news-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}
.nbt-news-card:hover .nbt-news-card__thumb img {
  transform: scale(1.03);
}
.nbt-news-card__thumb--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--c-surface-2) 0%, var(--c-surface) 100%);
}

.nbt-news-card__body {
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  flex: 1;
}

.nbt-news-card__title {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  line-height: 1.4;
  color: var(--c-text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.nbt-news-card:hover .nbt-news-card__title {
  color: var(--c-accent);
}

.nbt-news-card__snippet {
  font-size: var(--text-meta);
  color: var(--c-text-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.nbt-news-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  margin-top: auto;
  padding-top: var(--space-2);
  border-top: 1px solid var(--c-border);
}

.nbt-news-card__source {
  font-size: var(--text-micro, 10px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--c-accent);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 60%;
}

.nbt-news-card__date {
  font-size: var(--text-micro, 10px);
  color: var(--c-text-muted);
  white-space: nowrap;
}

/* Mobile: 1 kolom */
@media (max-width: 640px) {
  .nbt-news-grid {
    grid-template-columns: 1fr;
  }
  .nbt-news-card__thumb {
    aspect-ratio: 2/1;
  }
}

/* ═══════════════════════════════════════════════════════════════════════
   GOOGLE NEWS LIST — Berita Terkini tanpa gambar
   ══════════════════════════════════════════════════════════════════════ */

.nbt-gnews-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

/* Setiap item = card tersendiri */
.nbt-gnews-item {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-4);
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--r-card);
  transition: border-color .15s, box-shadow .15s;
  align-items: flex-start;
}
.nbt-gnews-item:hover {
  border-color: var(--c-accent);
  box-shadow: 0 2px 12px rgba(0,0,0,.1);
}

/* Nomor urut — pill kecil */
.nbt-gnews-item__num {
  flex-shrink: 0;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  background: var(--c-accent);
  color: #fff;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 3px;
  letter-spacing: -.2px;
}

.nbt-gnews-item__content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Judul artikel — pakai --font-body agar konsisten dengan elemen lain */
a.nbt-gnews-item__title {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.45;
  color: var(--c-text-primary);
  text-decoration: none;
  display: block;
}
a.nbt-gnews-item__title:hover {
  color: var(--c-accent);
}
.nbt-gnews-item__title--nolink {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.45;
  color: var(--c-text-primary);
  display: block;
}
/* ikon external link — inline setelah judul */
.nbt-gnews-item__ext {
  display: inline;
  margin-left: 5px;
  vertical-align: middle;
  opacity: .4;
}

/* Snippet — hanya muncul jika berbeda dengan title */
.nbt-gnews-item__snippet {
  font-size: var(--text-meta);
  color: var(--c-text-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

/* Meta row: source · waktu */
.nbt-gnews-item__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.nbt-gnews-item__source {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  color: var(--c-accent);
  text-transform: uppercase;
  letter-spacing: .5px;
}
.nbt-gnews-item__time {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 500;
  color: var(--c-text-muted);
}
.nbt-gnews-item__source svg,
.nbt-gnews-item__time svg {
  opacity: .65;
  flex-shrink: 0;
}

/* Mobile */
@media (max-width: 640px) {
  .nbt-gnews-item {
    padding: var(--space-3);
    gap: var(--space-2);
  }
}

/* ═══════════════════════════════════════════════════════════════════════
   LIVE YOUTUBE — postingan komunitas (plugin NobarTV Welcome Pop) yang
   relevan dengan keyword pencarian. Grid kartu dengan thumbnail YouTube.
   ══════════════════════════════════════════════════════════════════════ */
.nbt-liveyt-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-4);
}
.nbt-liveyt-item {
  display: flex;
  flex-direction: column;
  background: var(--c-surface-elevated);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.nbt-liveyt-item:hover {
  border-color: var(--c-live);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.nbt-liveyt-item__thumb {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}
.nbt-liveyt-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.nbt-liveyt-item__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(0,0,0,.15);
  opacity: 0;
  transition: opacity .15s;
}
.nbt-liveyt-item__play svg {
  background: var(--c-live);
  border-radius: 50%;
  padding: 14px;
  width: 44px;
  height: 44px;
  box-shadow: 0 2px 10px rgba(0,0,0,.35);
}
.nbt-liveyt-item:hover .nbt-liveyt-item__play { opacity: 1; }
.nbt-liveyt-item__badge {
  position: absolute;
  top: var(--space-2);
  left: var(--space-2);
  background: var(--c-live);
  color: #fff;
  font-size: var(--text-meta);
  font-weight: 700;
  letter-spacing: .3px;
  padding: 3px 8px;
  border-radius: var(--r-pill);
}
.nbt-liveyt-item__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: var(--space-3) var(--space-4);
}
.nbt-liveyt-item__title {
  font-weight: 700;
  font-size: var(--text-small);
  line-height: 1.35;
  color: var(--c-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.nbt-liveyt-item__source {
  font-size: var(--text-meta);
  color: var(--c-text-secondary);
}
.nbt-liveyt-item__meta {
  font-size: var(--text-meta);
  color: var(--c-text-secondary);
}

/* ═══════════════════════════════════════════════════════════════════════
   INTENT UMUM (default) — tanpa tab/pill, layout lebih kompak & rapi.
   Halaman pencarian umum tidak punya data bola untuk difilter jadi tab,
   jadi section-nya (Berita, lalu Artikel jika ada) ditampilkan langsung
   berurutan. Rapatkan spacing supaya list berita terasa padat & efisien
   dibanding jarak lega yang dipakai halaman intent bola (yang punya
   banyak tab/section berbeda).
   ══════════════════════════════════════════════════════════════════════ */
.nbt-intent-default .nbt-tabpanel--static + .nbt-tabpanel--static {
  margin-top: var(--space-2);
}

.nbt-intent-default .nbt-section {
  margin-bottom: var(--space-5);
}

.nbt-intent-default .nbt-section__header {
  margin-bottom: var(--space-3);
}

.nbt-intent-default .nbt-gnews-list {
  gap: 6px;
}

.nbt-intent-default .nbt-gnews-item {
  padding: var(--space-3);
  gap: var(--space-2);
}

.nbt-intent-default .nbt-gnews-item__content {
  gap: 4px;
}

.nbt-intent-default .nbt-gnews-item__snippet {
  -webkit-line-clamp: 1;
}

/* Panel statis tidak butuh animasi "muncul dari tab" — cukup tampil langsung. */
.nbt-tabpanel--static {
  animation: none;
}
