/* ================================================================
   THNEWS.LIVE — v3 Mobile-First (fixed)
   Mobile breakpoints: 360 / 480 / 720 / 1024
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Thai:wght@300;400;500;600;700&family=Inter:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@500;700&display=swap');

:root {
  --bg: #0a0a0b;
  --bg-elevated: #121214;
  --surface: #18181b;
  --surface-2: #1f1f23;
  --surface-3: #2a2a30;
  --border: #2a2a2e;
  --border-strong: #3a3a40;

  --text: #f4f4f5;
  --text-dim: #a1a1aa;
  --text-faint: #71717a;

  --status-signal: #ffb020;
  --status-verifying: #c084fc;
  --status-breaking: #ff2d2d;
  --status-updated: #5b8def;
  --status-corrected: #15d77a;
  --status-retired: #71717a;

  --accent-pre: #ffb020;
  --accent-breaking: #ff2d2d;
  --accent-politics: #5b8def;
  --accent-sports: #15d77a;
  --accent-ent: #ff3ea5;
  --accent-trend: #00d4ff;
  --accent-hit: #ffd23f;
  --accent-transparency: #c084fc;

  --gradient-signal: linear-gradient(135deg, #ffb020 0%, #ff6b00 100%);
  --gradient-breaking: linear-gradient(135deg, #ff2d2d 0%, #b80000 100%);
  --gradient-hit: linear-gradient(135deg, #ffd23f 0%, #ff9a00 100%);
  --gradient-trend: linear-gradient(135deg, #00d4ff 0%, #5b8def 50%, #ff3ea5 100%);
  --gradient-ai: linear-gradient(135deg, #c084fc 0%, #5b8def 100%);

  --font-thai: 'IBM Plex Sans Thai', system-ui, sans-serif;
  --font-en: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.4);
  --shadow: 0 8px 24px rgba(0,0,0,0.4);
  --shadow-lg: 0 20px 50px rgba(0,0,0,0.5);
  --shadow-pop: 0 4px 16px rgba(0,0,0,0.6);

  --max-w: 1400px;

  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --sal: env(safe-area-inset-left, 0px);
  --sar: env(safe-area-inset-right, 0px);

  /* Heights of sticky elements — used to compute offsets reliably */
  --topbar-h: 56px;
  --tabs-h: 46px;
  --bottomnav-h: 64px;
}

[data-theme="light"] {
  /* === Premium "warm paper" base — like Stripe / Linear / Notion === */
  --bg: #FAF7F2;                      /* warm cream, not stark white */
  --bg-elevated: #FFFFFF;
  --surface: #FFFFFF;
  --surface-2: #F4F1EB;               /* tinted secondary */
  --surface-3: #ECE7DE;
  --border: #E8E2D6;
  --border-strong: #C9BFAD;
  --text: #1A1815;                    /* near black with warm tint */
  --text-dim: #5B5650;
  --text-faint: #8A8278;

  /* Premium shadows with warm tint (not gray-black) */
  --shadow-sm: 0 1px 2px rgba(60,40,10,0.04), 0 1px 1px rgba(60,40,10,0.06);
  --shadow: 0 8px 28px -8px rgba(60,40,10,0.12), 0 4px 10px -4px rgba(60,40,10,0.06);
  --shadow-lg: 0 24px 60px -12px rgba(60,40,10,0.18), 0 8px 16px -8px rgba(60,40,10,0.08);
  --shadow-pop: 0 6px 24px -4px rgba(255,45,45,0.25);
}

/* === LIGHT MODE: Vibrant + Premium overrides === */
[data-theme="light"] body {
  /* Subtle global radial wash, like Stripe homepage */
  background:
    radial-gradient(circle at 80% -20%, rgba(255,176,32,0.10), transparent 50%),
    radial-gradient(circle at 0% 110%, rgba(91,141,239,0.08), transparent 45%),
    var(--bg);
  background-attachment: fixed;
}

[data-theme="light"] .topbar {
  background: color-mix(in srgb, #FFFFFF 78%, transparent);
  border-bottom: 1px solid rgba(0,0,0,0.04);
  box-shadow: 0 1px 0 rgba(255,255,255,0.6) inset;
}

[data-theme="light"] .brand-mark {
  box-shadow: 0 4px 14px -2px rgba(255,45,45,0.4), 0 2px 4px rgba(255,45,45,0.2);
}

[data-theme="light"] .search {
  background: #FFFFFF;
  border-color: rgba(0,0,0,0.06);
  box-shadow: 0 1px 2px rgba(60,40,10,0.04);
}

[data-theme="light"] .tabs {
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

/* === Section-specific colored hero washes === */
[data-theme="light"] #section-pre .signal-disclaimer {
  background: linear-gradient(135deg, #FFF7E6 0%, #FFEEC2 100%);
  border-color: rgba(255,176,32,0.4);
  box-shadow: 0 8px 24px -8px rgba(255,176,32,0.25);
}

[data-theme="light"] .signal-card {
  background: #FFFFFF;
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 1px 3px rgba(60,40,10,0.05), 0 2px 12px -4px rgba(255,176,32,0.08);
}
[data-theme="light"] .signal-card::before {
  background: linear-gradient(180deg, #FFB020, #FF6B00);
  width: 4px;
}
[data-theme="light"] .signal-card:active {
  box-shadow: 0 4px 16px -4px rgba(255,176,32,0.2);
}

[data-theme="light"] .outlets-match {
  background: linear-gradient(135deg, #FFF9F0 0%, #FFFBE6 100%);
  border-color: rgba(255,176,32,0.25);
}
[data-theme="light"] .outlets-match .om-icon {
  background: rgba(255,45,45,0.1);
  box-shadow: 0 2px 8px -2px rgba(255,45,45,0.3);
}

/* === Breaking — premium red panel === */
[data-theme="light"] .breaking-hero {
  background: linear-gradient(135deg, #FFFFFF 0%, #FFF5F5 60%, #FFE5E5 100%);
  border: 1px solid rgba(255,45,45,0.2);
  box-shadow: 0 20px 50px -12px rgba(255,45,45,0.18), 0 8px 20px -8px rgba(255,45,45,0.1);
}
[data-theme="light"] .breaking-hero h2 { color: #1A0606; }
[data-theme="light"] .breaking-hero-img {
  background: linear-gradient(135deg, #FF2D2D 0%, #B80000 100%);
}

[data-theme="light"] .news-card {
  background: #FFFFFF;
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 2px 8px -2px rgba(60,40,10,0.06);
  transition: transform 0.15s, box-shadow 0.2s;
}
[data-theme="light"] .news-card:hover {
  box-shadow: 0 12px 32px -8px rgba(60,40,10,0.15);
  transform: translateY(-2px);
}

[data-theme="light"] .ai-summary {
  background: linear-gradient(135deg, #FAFAFC 0%, #F5F0FF 100%);
  border-color: rgba(192,132,252,0.2);
}

[data-theme="light"] .claim-ledger {
  background: #FFFFFF;
  border: 1px solid rgba(0,0,0,0.06);
}
[data-theme="light"] .claim-ledger-head {
  background: linear-gradient(135deg, #FAFAFC, #F0F4FF);
  border-bottom: 1px solid rgba(91,141,239,0.15);
}

/* === Politics — cool blue tint === */
[data-theme="light"] #section-politics .bias-meter {
  background: linear-gradient(135deg, #FFFFFF 0%, #F0F5FF 100%);
  border-color: rgba(91,141,239,0.2);
  box-shadow: 0 4px 16px -4px rgba(91,141,239,0.12);
}
[data-theme="light"] .poli-card {
  background: #FFFFFF;
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 2px 10px -2px rgba(91,141,239,0.08);
}
[data-theme="light"] .perspective { background: #FAFBFC; }
[data-theme="light"] .perspective.left { background: linear-gradient(135deg, #F0F5FF, #E6EEFF); }
[data-theme="light"] .perspective.center { background: linear-gradient(135deg, #FAFAFA, #F0F0F0); }
[data-theme="light"] .perspective.right { background: linear-gradient(135deg, #FFF0F0, #FFE6E6); }

/* === Sports — vibrant green === */
[data-theme="light"] .score-card {
  background: linear-gradient(135deg, #FFFFFF 0%, #F0FFF7 100%);
  border-color: rgba(21,215,122,0.18);
  box-shadow: 0 2px 12px -2px rgba(21,215,122,0.12);
}
[data-theme="light"] .league-chip {
  background: #FFFFFF;
  border-color: rgba(0,0,0,0.06);
  box-shadow: 0 1px 2px rgba(60,40,10,0.04);
}
[data-theme="light"] .league-chip.active {
  background: linear-gradient(135deg, #15D77A, #0FAA5F);
  color: white;
  box-shadow: 0 4px 12px -2px rgba(21,215,122,0.4);
}
[data-theme="light"] .highlight-card {
  background: #FFFFFF;
  box-shadow: 0 2px 10px -2px rgba(60,40,10,0.06);
}

/* === Entertainment — vibrant magenta === */
[data-theme="light"] #section-ent .ent-search {
  background: #FFFFFF;
  border-color: rgba(255,62,165,0.2);
  box-shadow: 0 2px 12px -2px rgba(255,62,165,0.12);
}
[data-theme="light"] .ent-search .pill-btn {
  background: linear-gradient(135deg, #FF3EA5, #C71585);
  box-shadow: 0 4px 14px -2px rgba(255,62,165,0.4);
}
[data-theme="light"] .ent-tag {
  background: #FFFFFF;
  border-color: rgba(0,0,0,0.06);
}
[data-theme="light"] .ent-tag:hover {
  border-color: var(--accent-ent);
  background: linear-gradient(135deg, #FFF0F8, #FFE0F0);
}
[data-theme="light"] .concert-card {
  box-shadow: 0 4px 16px -4px rgba(255,62,165,0.15);
}

/* === Trends — vibrant cyan === */
[data-theme="light"] .trend-card {
  background: linear-gradient(135deg, #FFFFFF 0%, #F0FBFF 100%);
  border-color: rgba(0,212,255,0.15);
  box-shadow: 0 2px 12px -2px rgba(0,212,255,0.1);
}
[data-theme="light"] .trend-card:hover {
  border-color: rgba(0,212,255,0.4);
  box-shadow: 0 8px 24px -4px rgba(0,212,255,0.18);
}
[data-theme="light"] .trend-filter button.active {
  background: linear-gradient(135deg, #00D4FF, #5B8DEF);
  color: white;
  box-shadow: 0 4px 14px -2px rgba(0,212,255,0.4);
}

/* === HIT — vibrant gold === */
[data-theme="light"] .hit-card {
  background: #FFFFFF;
  border-color: rgba(255,210,63,0.2);
  box-shadow: 0 4px 16px -4px rgba(255,210,63,0.2);
}
[data-theme="light"] .hit-card:hover {
  box-shadow: 0 8px 24px -4px rgba(255,210,63,0.35);
  transform: translateY(-2px);
}
[data-theme="light"] .hit-tab.active {
  background: linear-gradient(135deg, #FFD23F, #FF9A00);
  color: #1a1a1a;
  box-shadow: 0 4px 14px -2px rgba(255,210,63,0.5);
}
[data-theme="light"] .hit-rank-tag {
  box-shadow: 0 2px 8px -2px rgba(255,154,0,0.5);
}

/* === Transparency — premium purple === */
[data-theme="light"] .trans-hero {
  background: linear-gradient(135deg, #FFFFFF 0%, #FAF5FF 50%, #F0E8FF 100%);
  border-color: rgba(192,132,252,0.3);
  box-shadow: 0 12px 32px -8px rgba(192,132,252,0.2);
}
[data-theme="light"] .trans-stat {
  background: #FFFFFF;
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 4px 14px -4px rgba(60,40,10,0.08);
  transition: transform 0.15s;
}
[data-theme="light"] .trans-stat:hover { transform: translateY(-2px); }

[data-theme="light"] .source-dna {
  background: #FFFFFF;
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 4px 14px -4px rgba(60,40,10,0.06);
}
[data-theme="light"] .source-dna-row:nth-child(even) {
  background: linear-gradient(90deg, #FAFAFC, transparent);
}

/* === Status badges — saturate + glow === */
[data-theme="light"] .status-badge.signal {
  background: linear-gradient(135deg, #FFF4D6, #FFE9AB);
  color: #8A5A00;
  border-color: rgba(255,176,32,0.4);
  box-shadow: 0 2px 6px -2px rgba(255,176,32,0.3);
}
[data-theme="light"] .status-badge.verifying {
  background: linear-gradient(135deg, #F3E6FF, #E5CFFF);
  color: #5B21B6;
  border-color: rgba(192,132,252,0.4);
}
[data-theme="light"] .status-badge.breaking {
  background: linear-gradient(135deg, #FF2D2D, #C70000);
  box-shadow: 0 4px 12px -2px rgba(255,45,45,0.5);
}
[data-theme="light"] .status-badge.updated {
  background: linear-gradient(135deg, #E6EEFF, #D0DEFF);
  color: #1E40AF;
  border-color: rgba(91,141,239,0.4);
}
[data-theme="light"] .status-badge.corrected {
  background: linear-gradient(135deg, #DFFCE6, #B8F5C8);
  color: #047857;
  border-color: rgba(21,215,122,0.4);
}

/* === Reason chips — colorful === */
[data-theme="light"] .reason-chip.ok {
  background: linear-gradient(135deg, #DFFCE6, #B8F5C8);
  border-color: rgba(21,215,122,0.4);
  color: #047857;
}
[data-theme="light"] .reason-chip.warn {
  background: linear-gradient(135deg, #FFF4D6, #FFE9AB);
  border-color: rgba(255,176,32,0.4);
  color: #8A5A00;
}
[data-theme="light"] .reason-chip.info {
  background: linear-gradient(135deg, #D6F4FF, #ABE9FF);
  border-color: rgba(0,212,255,0.4);
  color: #075985;
}

/* === Mobile nav — frosted glass with subtle color === */
[data-theme="light"] .mobile-nav {
  background: color-mix(in srgb, #FFFFFF 90%, transparent);
  border-top: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 -8px 24px -8px rgba(60,40,10,0.08);
}
[data-theme="light"] .mob-tab.active { color: var(--accent-breaking); }

/* === FAB premium glow === */
[data-theme="light"] .fab {
  box-shadow: 0 8px 24px -4px rgba(255,45,45,0.5), 0 4px 8px rgba(255,45,45,0.3);
}

/* === Bottom sheet === */
[data-theme="light"] .bottom-sheet {
  background: #FFFFFF;
  box-shadow: 0 -12px 40px -8px rgba(60,40,10,0.2);
}

/* === Footer subtle gradient === */
[data-theme="light"] .footer {
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.5));
  border-top: 1px solid rgba(0,0,0,0.06);
}

/* === Source pills colorful in light mode === */
[data-theme="light"] .source-pill {
  background: linear-gradient(135deg, #FAFBFC, #F0F2F5);
  color: #4B5563;
  border: 1px solid rgba(0,0,0,0.04);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  /* IMPORTANT: only html gets overflow-x — do NOT stack with body/.app */
  overflow-x: clip; /* clip is better than hidden — doesn't create a scroll container */
}

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-thai), var(--font-en);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  width: 100%;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  /* DO NOT set overflow here — body must be the natural vertical scroll container */
  /* DO NOT set overscroll-behavior — was breaking iOS Safari scroll */
  position: relative;
  touch-action: manipulation; /* allow vertical pan, prevent double-tap zoom delay */
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; user-select: none; }
img, svg { max-width: 100%; display: block; height: auto; }
input, textarea { font: inherit; max-width: 100%; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 10px; }

/* ================================================================
   APP SHELL
   ================================================================ */
.app {
  display: flex;
  flex-direction: column;
  width: 100%;
  /* NO overflow, NO min-height — body is the scroll container, .app just flows */
}

/* Pull-to-refresh indicator */
.ptr-indicator {
  position: fixed;
  top: calc(var(--sat) + 4px);
  left: 50%;
  transform: translateX(-50%) translateY(-130%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--text-dim);
  display: flex; align-items: center; gap: 8px;
  z-index: 200;
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
  box-shadow: var(--shadow-pop);
}
.ptr-indicator.show { transform: translateX(-50%) translateY(0); }
.ptr-spinner {
  width: 12px; height: 12px;
  border: 2px solid var(--border);
  border-top-color: var(--accent-breaking);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ================================================================
   TOP BAR
   ================================================================ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  border-bottom: 1px solid var(--border);
  padding-top: var(--sat);
  width: 100%;
}
.topbar-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: var(--topbar-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-en);
  font-weight: 900;
  font-size: 17px;
  letter-spacing: -0.02em;
  flex-shrink: 0;
  white-space: nowrap;
}
.brand-mark {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, #FF3D3D 0%, #D50000 100%);
  display: grid; place-items: center;
  color: white;
  font-weight: 900;
  font-size: 13px;
  letter-spacing: -0.5px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(255,45,45,0.25);
  flex-shrink: 0;
}
.brand-mark::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 28% 22%, rgba(255,255,255,0.35), transparent 55%);
  pointer-events: none;
}
.brand-name { color: var(--text); }
.brand-name .dot { color: var(--accent-breaking); }

.search {
  flex: 1;
  min-width: 0;
  display: flex; align-items: center; gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 7px 11px;
  height: 36px;
  transition: border-color 0.15s;
}
.search:focus-within { border-color: var(--border-strong); }
.search svg { flex-shrink: 0; }
.search input {
  flex: 1;
  min-width: 0;
  background: none; border: none;
  color: var(--text); outline: none;
  font-family: inherit; font-size: 13px;
  width: 100%;
}
.search input::placeholder { color: var(--text-faint); }

.topbar-actions {
  display: flex;
  gap: 0;
  flex-shrink: 0;
}
.icon-btn {
  width: 36px; height: 36px;
  border-radius: 9px;
  display: grid; place-items: center;
  color: var(--text-dim);
  transition: background 0.15s, transform 0.1s;
  position: relative;
}
.icon-btn:active { background: var(--surface); transform: scale(0.92); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn .dot-indicator {
  position: absolute; top: 7px; right: 8px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent-breaking);
  border: 2px solid var(--bg);
}

/* ================================================================
   SECTION TABS
   ================================================================ */
.tabs {
  position: sticky;
  top: calc(var(--topbar-h) + var(--sat));
  z-index: 90;
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  height: var(--tabs-h);
}
.tabs::-webkit-scrollbar { display: none; }
.tabs-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 12px;
  display: flex;
  gap: 0;
  white-space: nowrap;
  height: 100%;
  align-items: stretch;
}
.tab {
  padding: 0 12px;
  font-weight: 600;
  font-size: 13px;
  color: var(--text-dim);
  border-bottom: 2px solid transparent;
  transition: color 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  white-space: nowrap;
}
.tab:active { opacity: 0.6; }
.tab.active { color: var(--text); border-bottom-color: currentColor; }
.tab-dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.tab[data-section="pre"] .tab-dot { background: var(--accent-pre); }
.tab[data-section="breaking"] .tab-dot { background: var(--accent-breaking); }
.tab[data-section="politics"] .tab-dot { background: var(--accent-politics); }
.tab[data-section="sports"] .tab-dot { background: var(--accent-sports); }
.tab[data-section="ent"] .tab-dot { background: var(--accent-ent); }
.tab[data-section="trend"] .tab-dot { background: var(--accent-trend); }
.tab[data-section="hit"] .tab-dot { background: var(--accent-hit); }
.tab[data-section="transparency"] .tab-dot { background: var(--accent-transparency); }
.tab.active[data-section="pre"] { color: var(--accent-pre); }
.tab.active[data-section="breaking"] { color: var(--accent-breaking); }
.tab.active[data-section="politics"] { color: var(--accent-politics); }
.tab.active[data-section="sports"] { color: var(--accent-sports); }
.tab.active[data-section="ent"] { color: var(--accent-ent); }
.tab.active[data-section="trend"] { color: var(--accent-trend); }
.tab.active[data-section="hit"] { color: var(--accent-hit); }
.tab.active[data-section="transparency"] { color: var(--accent-transparency); }

/* ================================================================
   MAIN
   ================================================================ */
.main {
  flex: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 16px 14px calc(var(--bottomnav-h) + var(--sab) + 24px);
  width: 100%;
  min-width: 0;
}
.section { display: none; animation: fadeUp 0.25s ease-out; }
.section.active { display: block; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ================================================================
   SECTION HEADER
   ================================================================ */
.section-header {
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.section-header .title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.section-header h1 {
  font-family: var(--font-en);
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.1;
}
.section-header h1 .th {
  font-family: var(--font-thai);
  font-weight: 700;
  letter-spacing: 0;
}
.section-header .blurb {
  color: var(--text-dim);
  font-size: 13px;
  line-height: 1.5;
}
.section-header .badge {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid currentColor;
  font-weight: 600;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

/* Pulse */
.live-pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent-breaking);
  display: inline-block;
  position: relative;
  margin-right: 6px;
  vertical-align: middle;
}
.live-pulse::before {
  content: '';
  position: absolute; inset: -3px;
  border-radius: 50%;
  background: var(--accent-breaking);
  opacity: 0.5;
  animation: pulse 1.6s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(2.5); opacity: 0; }
}

/* ================================================================
   STATUS BADGES
   ================================================================ */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
  line-height: 1;
}
.status-badge.signal    { background: rgba(255,176,32,0.15);  color: var(--status-signal); border: 1px solid rgba(255,176,32,0.3); }
.status-badge.verifying { background: rgba(192,132,252,0.15); color: var(--status-verifying); border: 1px solid rgba(192,132,252,0.3); }
.status-badge.breaking  { background: var(--status-breaking); color: white; }
.status-badge.updated   { background: rgba(91,141,239,0.15); color: var(--status-updated); border: 1px solid rgba(91,141,239,0.3); }
.status-badge.corrected { background: rgba(21,215,122,0.15); color: var(--status-corrected); border: 1px solid rgba(21,215,122,0.3); }
.status-badge.retired   { background: rgba(113,113,122,0.15); color: var(--status-retired); border: 1px solid rgba(113,113,122,0.3); text-decoration: line-through; }
.status-badge .dot-mini {
  width: 5px; height: 5px; border-radius: 50%;
  background: currentColor;
  animation: blink 1.4s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes blink { 50% { opacity: 0.3; } }

/* ================================================================
   1. SIGNALS
   ================================================================ */
.signal-disclaimer {
  background: linear-gradient(135deg, rgba(255,176,32,0.1), rgba(192,132,252,0.06));
  border: 1px solid rgba(255,176,32,0.25);
  border-radius: var(--radius);
  padding: 12px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 14px;
}
.signal-disclaimer .icon {
  width: 32px; height: 32px;
  border-radius: 9px;
  background: rgba(255,176,32,0.2);
  display: grid; place-items: center;
  color: var(--accent-pre);
  flex-shrink: 0;
}
.signal-disclaimer .copy { font-size: 12.5px; color: var(--text-dim); line-height: 1.55; min-width: 0; }
.signal-disclaimer .copy strong { color: var(--text); }

.signal-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.signal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  position: relative;
  overflow: hidden;
  transition: transform 0.15s ease;
}
.signal-card:active { transform: scale(0.99); }
.signal-card::before {
  content: '';
  position: absolute; top: 0; left: 0; bottom: 0;
  width: 3px;
  background: var(--accent-pre);
}

.signal-head {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-bottom: 8px;
}
.signal-time {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
}
.signal-time strong { color: var(--accent-pre); }

.signal-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 10px;
}

.outlets-match {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 9px;
}
.outlets-match .om-icon {
  width: 26px; height: 26px;
  border-radius: 7px;
  background: rgba(255,45,45,0.12);
  color: var(--accent-breaking);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.outlets-match .om-copy { flex: 1; min-width: 0; }
.outlets-match .om-num {
  font-family: var(--font-en);
  font-weight: 900;
  font-size: 16px;
  letter-spacing: -0.02em;
  line-height: 1;
}
.outlets-match .om-num .total { color: var(--text-faint); font-weight: 600; }
.outlets-match .om-label {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 2px;
}
.outlets-match .gap-time {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--accent-pre);
  font-weight: 700;
  padding: 4px 7px;
  background: rgba(255,176,32,0.12);
  border-radius: 6px;
  white-space: nowrap;
  flex-shrink: 0;
}

.reason-chips {
  display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 9px;
}
.reason-chip {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px;
  padding: 3px 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-dim);
  white-space: nowrap;
}
.reason-chip.ok { color: var(--accent-sports); border-color: rgba(21,215,122,0.3); }
.reason-chip.warn { color: var(--accent-pre); border-color: rgba(255,176,32,0.3); }
.reason-chip.info { color: var(--accent-trend); border-color: rgba(0,212,255,0.3); }

.confidence-track {
  display: flex; align-items: center; gap: 8px;
  padding-top: 9px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.confidence-label {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.confidence-points {
  flex: 1;
  display: flex; align-items: center; gap: 5px;
  font-family: var(--font-mono);
  font-size: 11px;
  flex-wrap: wrap;
  min-width: 0;
}
.confidence-point {
  display: inline-flex; align-items: center; gap: 3px;
  color: var(--text-dim);
}
.confidence-point .num { font-weight: 700; color: var(--text); }
.confidence-arrow { color: var(--text-faint); }
.confidence-now {
  font-family: var(--font-en);
  font-weight: 900;
  font-size: 16px;
  background: var(--gradient-signal);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.signal-actions {
  display: flex; gap: 4px;
  justify-content: flex-end;
  margin-top: 8px; padding-top: 9px;
  border-top: 1px solid var(--border);
}
.signal-actions .ghost-btn {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 600;
  padding: 7px 10px;
  border-radius: 8px;
  color: var(--text-dim);
  min-height: 32px;
}
.signal-actions .ghost-btn:active { background: var(--surface-2); }
.signal-actions .ghost-btn svg { width: 14px; height: 14px; }

/* ================================================================
   2. BREAKING
   ================================================================ */
.breaking-hero {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #1a0606 0%, #2a0a0a 100%);
  border: 1px solid rgba(255,45,45,0.3);
}
.breaking-hero-content { padding: 18px 16px; display: flex; flex-direction: column; gap: 10px; }
.breaking-hero h2 {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--text);
}
.breaking-hero-img { display: none; }

.claim-ledger {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-top: 8px;
  overflow: hidden;
}
.claim-ledger-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}
.claim-ledger-head .title {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  display: flex; align-items: center; gap: 7px;
}
.claim-ledger-head .title svg { width: 13px; height: 13px; }
.claim-count {
  font-family: var(--font-mono);
  font-size: 10.5px;
  padding: 2px 7px;
  background: var(--surface-2);
  border-radius: 4px;
  color: var(--text-dim);
}
.claim-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 9px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  align-items: center;
}
.claim-row:last-child { border-bottom: none; }
.claim-icon {
  width: 22px; height: 22px;
  border-radius: 6px;
  display: grid; place-items: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}
.claim-icon.ok { background: rgba(21,215,122,0.18); color: var(--accent-sports); }
.claim-icon.warn { background: rgba(255,176,32,0.18); color: var(--accent-pre); }
.claim-icon.fail { background: rgba(255,45,45,0.18); color: var(--accent-breaking); }
.claim-text {
  font-size: 12.5px;
  color: var(--text);
  line-height: 1.4;
  min-width: 0;
  overflow-wrap: anywhere;
}
.claim-source {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--text-faint);
  text-transform: uppercase;
  white-space: nowrap;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.ai-summary {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 11px 13px;
  margin-top: 6px;
}
.ai-summary-head {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-faint);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.ai-icon {
  width: 18px; height: 18px;
  border-radius: 5px;
  background: var(--gradient-ai);
  display: grid; place-items: center;
  color: white;
  font-weight: 900;
  font-size: 9px;
  flex-shrink: 0;
}
.ai-summary p { font-size: 13px; color: var(--text-dim); line-height: 1.6; }
.ai-summary .neutrality {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--text-faint);
  margin-top: 8px;
  padding-top: 7px;
  border-top: 1px dashed var(--border);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.breaking-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.news-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease;
}
.news-card:active { transform: scale(0.99); }
.news-card-img {
  aspect-ratio: 16/9;
  background: var(--surface-2);
  position: relative;
  overflow: hidden;
}
.news-card-img.g1 { background: linear-gradient(135deg, #1a1a2e, #0f3460); }
.news-card-img.g2 { background: linear-gradient(135deg, #2d1b3d, #1a0a1a); }
.news-card-img.g3 { background: linear-gradient(135deg, #0a2540, #1a1a2e); }
.news-card-img.g4 { background: linear-gradient(135deg, #2a1a0a, #1a0a0a); }
.news-card-img.g5 { background: linear-gradient(135deg, #0a2a1a, #1a1a0a); }
.news-card-img.g6 { background: linear-gradient(135deg, #2a0a2a, #1a0a3a); }
.news-card-img.g7 { background: linear-gradient(135deg, #3a2a0a, #2a0a0a); }
.news-card-img.g8 { background: linear-gradient(135deg, #1a3a3a, #0a1a3a); }
.news-card-img .img-overlay {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.08), transparent 50%);
}
.news-card-img .img-tag {
  position: absolute;
  top: 9px; left: 9px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 4px;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(6px);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: white;
}
.news-card-img .img-status {
  position: absolute;
  top: 9px; right: 9px;
}
.news-card-content { padding: 12px 14px; flex: 1; display: flex; flex-direction: column; gap: 7px; }
.news-card h3 { font-size: 15px; font-weight: 600; line-height: 1.35; }
.news-card .ai-mini {
  font-size: 12.5px;
  color: var(--text-dim);
  line-height: 1.55;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card .what-changed {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-trend);
  font-family: var(--font-mono);
  background: rgba(0,212,255,0.08);
  padding: 3px 7px;
  border-radius: 6px;
  border: 1px solid rgba(0,212,255,0.2);
  width: fit-content;
}
.news-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--text-faint);
  margin-top: 3px;
  flex-wrap: wrap;
  gap: 6px;
}
.news-card-sources { display: flex; align-items: center; gap: 3px; flex-wrap: wrap; }
.source-pill {
  font-family: var(--font-mono);
  font-size: 9.5px;
  padding: 2px 6px;
  background: var(--surface-2);
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-dim);
}

/* ================================================================
   3. POLITICS
   ================================================================ */
.bias-meter {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  margin-bottom: 16px;
}
.bias-meter-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 10px;
}
.bias-meter-label strong { color: var(--text); }
.bias-track {
  height: 8px;
  background: linear-gradient(90deg, #5b8def 0%, #888 50%, #ff6b6b 100%);
  border-radius: 999px;
  position: relative;
  margin-bottom: 5px;
}
.bias-marker {
  position: absolute; top: -4px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: white;
  border: 3px solid #18181b;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
  transition: left 0.5s ease;
}
.bias-labels {
  display: flex; justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  gap: 8px;
}

.poli-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 12px;
}
.poli-card .head { display: flex; align-items: center; gap: 7px; margin-bottom: 9px; flex-wrap: wrap; }
.poli-card h3 { font-size: 16px; font-weight: 700; line-height: 1.3; margin-bottom: 8px; }
.poli-card .summary { color: var(--text-dim); font-size: 13px; line-height: 1.6; }

.perspectives {
  display: grid; gap: 7px;
  margin-top: 11px; padding-top: 11px;
  border-top: 1px solid var(--border);
}
.perspective {
  padding: 10px 11px;
  background: var(--bg-elevated);
  border-radius: 9px;
  font-size: 12px;
  border-left: 3px solid var(--border);
}
.perspective.left { border-left-color: #5b8def; }
.perspective.center { border-left-color: #aaa; }
.perspective.right { border-left-color: #ff6b6b; }
.perspective .p-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 4px;
}
.perspective .p-text { color: var(--text-dim); line-height: 1.5; }

/* ================================================================
   4. SPORTS
   ================================================================ */
.sports-leagues {
  display: flex; gap: 6px; flex-wrap: nowrap;
  overflow-x: auto; scrollbar-width: none;
  margin: 0 -14px 14px;
  padding: 0 14px 4px;
  -webkit-overflow-scrolling: touch;
}
.sports-leagues::-webkit-scrollbar { display: none; }
.league-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  min-height: 32px;
}
.league-chip:active { transform: scale(0.95); }
.league-chip.active { background: var(--accent-sports); color: #0a0a0b; border-color: var(--accent-sports); }
.league-icon { font-size: 14px; }

.score-strip {
  display: flex; gap: 10px;
  overflow-x: auto; scrollbar-width: none;
  margin: 0 -14px 16px;
  padding: 0 14px 4px;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
}
.score-strip::-webkit-scrollbar { display: none; }
.score-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  flex-shrink: 0;
  min-width: 230px;
  scroll-snap-align: start;
}
.score-meta {
  display: flex; justify-content: space-between; gap: 8px;
  font-family: var(--font-mono);
  font-size: 9.5px; color: var(--text-faint);
  text-transform: uppercase; letter-spacing: 0.06em;
  margin-bottom: 10px;
}
.score-live { color: var(--accent-breaking); font-weight: 700; }
.score-teams {
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 8px;
}
.team { display: flex; flex-direction: column; align-items: center; gap: 5px; min-width: 0; }
.team-crest {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--surface-2);
  display: grid; place-items: center;
  font-weight: 800; font-size: 10px;
}
.team-name { font-size: 11px; color: var(--text-dim); text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 70px; }
.score-num {
  font-family: var(--font-en);
  font-size: 22px; font-weight: 900;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.score-num .vs { color: var(--text-faint); font-size: 12px; }

.spoiler-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; padding: 7px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-dim);
  margin-bottom: 12px;
  min-height: 32px;
}
.spoiler-toggle.on { background: rgba(21,215,122,0.15); color: var(--accent-sports); border-color: rgba(21,215,122,0.3); }
.score-num.hidden { filter: blur(10px); transition: filter 0.2s; }
.score-num.hidden:active { filter: none; }

.highlights {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.highlight-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}
.highlight-card:active { transform: scale(0.99); }
.highlight-thumb {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #0a2a1a, #0a0a2a);
  position: relative;
}
.highlight-thumb::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(21,215,122,0.15), transparent);
}
.play-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 50px; height: 50px;
  border-radius: 50%;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  display: grid; place-items: center;
  color: white;
}
.play-btn svg { width: 20px; height: 20px; }
.highlight-duration {
  position: absolute; bottom: 8px; right: 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  background: rgba(0,0,0,0.8);
  padding: 2px 6px; border-radius: 4px;
  color: white;
}
.highlight-info { padding: 11px 12px; }
.highlight-info h4 { font-size: 13px; font-weight: 600; line-height: 1.35; margin-bottom: 4px; }
.highlight-info .meta {
  display: flex; gap: 6px; align-items: center;
  font-size: 11px; color: var(--text-faint);
  flex-wrap: wrap;
}
.yt-badge {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 10px; color: #ff0000; font-weight: 700;
}
.licensed-badge {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 10px;
  color: var(--accent-sports);
  background: rgba(21,215,122,0.1);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(21,215,122,0.2);
}

/* ================================================================
   5. ENTERTAINMENT
   ================================================================ */
.ent-search {
  display: flex; gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 5px;
  margin-bottom: 14px;
  align-items: center;
  min-width: 0;
}
.ent-search svg { flex-shrink: 0; margin-left: 8px; }
.ent-search input {
  flex: 1; min-width: 0;
  background: none; border: none; outline: none;
  color: var(--text); padding: 8px 6px; font: inherit;
  font-size: 13px;
}
.ent-search .pill-btn {
  background: var(--accent-ent); color: white;
  padding: 8px 14px; border-radius: 10px;
  font-weight: 600; font-size: 13px;
  flex-shrink: 0;
  min-height: 32px;
}
.ent-tags {
  display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 14px;
}
.ent-tag {
  font-size: 11.5px;
  padding: 5px 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-dim);
  white-space: nowrap;
}
.ent-tag:active { background: var(--surface-2); }

.concert-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.concert-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}
.concert-poster {
  aspect-ratio: 3/4;
  position: relative;
  overflow: hidden;
}
.concert-poster .gradient { position: absolute; inset: 0; }
.concert-date {
  position: absolute; top: 7px; left: 7px;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  border-radius: 7px;
  padding: 4px 7px; text-align: center;
}
.concert-date .day { font-family: var(--font-en); font-size: 16px; font-weight: 900; line-height: 1; color: white; }
.concert-date .mon { font-family: var(--font-mono); font-size: 8.5px; text-transform: uppercase; color: rgba(255,255,255,0.7); letter-spacing: 0.08em; margin-top: 1px; }
.concert-src {
  position: absolute; top: 7px; right: 7px;
  font-size: 9px;
  background: rgba(0,0,0,0.6);
  padding: 2px 6px; border-radius: 4px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  color: white;
}
.concert-info {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 10px 9px 9px;
  background: linear-gradient(transparent, rgba(0,0,0,0.92));
}
.concert-info h4 { font-size: 12px; font-weight: 700; margin-bottom: 2px; color: white; line-height: 1.25; }
.concert-info .venue { font-size: 10px; color: rgba(255,255,255,0.7); }
.concert-info .price-tag {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--accent-hit);
  margin-top: 2px;
}

/* ================================================================
   6. TRENDS
   ================================================================ */
.trend-filter {
  display: flex; gap: 6px; flex-wrap: nowrap;
  overflow-x: auto; scrollbar-width: none;
  margin: 0 -14px 14px;
  padding: 0 14px 4px;
}
.trend-filter::-webkit-scrollbar { display: none; }
.trend-filter button {
  flex-shrink: 0;
  padding: 7px 13px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-dim);
  white-space: nowrap;
  min-height: 32px;
}
.trend-filter button.active { background: var(--accent-trend); color: #0a0a0b; border-color: var(--accent-trend); }

.trend-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
}
.trend-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 13px;
  display: flex;
  gap: 11px;
  align-items: flex-start;
  position: relative;
  overflow: hidden;
}
.trend-card:active { transform: scale(0.99); }
.trend-rank {
  font-family: var(--font-en);
  font-size: 28px; font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  background: var(--gradient-trend);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  min-width: 36px;
  flex-shrink: 0;
}
.trend-body { flex: 1; min-width: 0; }
.trend-topic { font-size: 14px; font-weight: 700; margin-bottom: 4px; line-height: 1.3; word-wrap: break-word; }
.trend-meta {
  display: flex; gap: 7px; flex-wrap: wrap;
  font-size: 10.5px; color: var(--text-faint);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 5px;
}
.trend-impact {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 999px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 5px;
}
.trend-impact.hot { background: rgba(255,45,45,0.12); color: var(--accent-breaking); }
.trend-impact.rising { background: rgba(0,212,255,0.12); color: var(--accent-trend); }
.trend-impact.commercial { background: rgba(255,210,63,0.12); color: var(--accent-hit); }
.trend-impact.suspicious { background: rgba(255,176,32,0.12); color: var(--accent-pre); }
.trend-spark {
  display: flex; gap: 2px; align-items: flex-end;
  height: 20px;
}
.trend-spark .bar {
  width: 4px;
  background: var(--accent-trend);
  border-radius: 2px;
  opacity: 0.6;
}
.platform-badges { display: flex; gap: 3px; }
.platform-badge {
  width: 20px; height: 20px;
  border-radius: 5px;
  display: grid; place-items: center;
  font-size: 10px; font-weight: 700;
}
.pb-tw { background: #1d9bf0; color: white; }
.pb-tt { background: #000; color: white; }
.pb-yt { background: #ff0000; color: white; }
.pb-sh { background: #ee4d2d; color: white; }

/* ================================================================
   7. HIT
   ================================================================ */
.hit-tabs {
  display: flex; gap: 5px; margin-bottom: 12px; flex-wrap: wrap;
}
.hit-tab {
  padding: 7px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  min-height: 32px;
}
.hit-tab.active { background: var(--accent-hit); color: #0a0a0b; border-color: var(--accent-hit); }

.hit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.hit-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}
.hit-rank-tag {
  position: absolute; top: 7px; left: 7px; z-index: 2;
  background: var(--gradient-hit);
  color: #1a1a1a;
  font-family: var(--font-en);
  font-weight: 900;
  font-size: 11px;
  padding: 3px 7px;
  border-radius: 5px;
}
.hit-thumb { aspect-ratio: 1; background: var(--surface-2); position: relative; }
.hit-info { padding: 9px 10px; }
.hit-info h4 {
  font-size: 12px; font-weight: 600; line-height: 1.35; margin-bottom: 4px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hit-price {
  font-family: var(--font-en); font-weight: 800;
  color: var(--accent-hit); font-size: 13.5px;
}
.hit-meta {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 10.5px; color: var(--text-faint); margin-top: 3px;
}

/* ================================================================
   8. TRANSPARENCY
   ================================================================ */
.trans-hero {
  background: linear-gradient(135deg, rgba(192,132,252,0.08), rgba(91,141,239,0.04));
  border: 1px solid rgba(192,132,252,0.2);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 16px;
}
.trans-hero h2 {
  font-family: var(--font-en);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.trans-hero p { color: var(--text-dim); font-size: 13px; }

.trans-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}
.trans-stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
}
.trans-stat .label {
  font-family: var(--font-mono);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  margin-bottom: 5px;
}
.trans-stat .num {
  font-family: var(--font-en);
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1;
}
.trans-stat .sub {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 4px;
}
.trans-stat.signal .num { color: var(--status-signal); }
.trans-stat.breaking .num { color: var(--status-breaking); }
.trans-stat.verifying .num { color: var(--status-verifying); }
.trans-stat.retired .num { color: var(--status-retired); }

.trans-section-title {
  font-family: var(--font-en);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 16px 0 9px;
}

.retired-item, .correction-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 11px 12px;
  margin-bottom: 9px;
}
.retired-item .head, .correction-item .head {
  display: flex; align-items: center; gap: 7px; margin-bottom: 6px; flex-wrap: wrap;
}
.retired-item .reason, .correction-item .reason {
  font-size: 12.5px; color: var(--text-dim); line-height: 1.5;
}
.retired-id, .correction-id {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-faint);
  overflow-wrap: anywhere;
}

.source-dna {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.source-dna-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 11px 12px;
  border-bottom: 1px solid var(--border);
  align-items: center;
}
.source-dna-row:last-child { border-bottom: none; }
.source-dna-name { font-size: 13px; font-weight: 600; min-width: 0; }
.source-dna-name .meta { display: block; font-size: 10.5px; color: var(--text-faint); font-family: var(--font-mono); margin-top: 2px; }
.source-dna-score {
  font-family: var(--font-mono); font-weight: 700; font-size: 12px;
  padding: 4px 8px; border-radius: 6px;
  background: var(--surface-2); color: var(--text-dim);
  flex-shrink: 0;
}
.source-dna-score.high { background: rgba(21,215,122,0.15); color: var(--accent-sports); }
.source-dna-score.mid { background: rgba(255,176,32,0.15); color: var(--accent-pre); }
.source-dna-score.low { background: rgba(255,45,45,0.15); color: var(--accent-breaking); }

/* ================================================================
   FOOTER + BOTTOM NAV + FAB
   ================================================================ */
.footer {
  border-top: 1px solid var(--border);
  padding: 22px 14px calc(var(--bottomnav-h) + var(--sab) + 24px);
  text-align: center;
  color: var(--text-faint);
  font-size: 11.5px;
}
.footer p { margin-bottom: 5px; }
.footer a { color: var(--text-dim); }

.mobile-nav {
  display: block;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: color-mix(in srgb, var(--bg) 96%, transparent);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-top: 1px solid var(--border);
  z-index: 100;
  padding: 4px 4px calc(4px + var(--sab));
}
.mobile-nav-inner {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 2px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.mob-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 7px 2px;
  border-radius: 9px;
  color: var(--text-faint);
  font-size: 10px;
  font-weight: 600;
  position: relative;
  transition: color 0.15s, transform 0.1s;
  min-width: 0;
}
.mob-tab:active { transform: scale(0.92); }
.mob-tab svg { width: 20px; height: 20px; }
.mob-tab.active { color: var(--text); }
.mob-tab.active svg { stroke-width: 2.5; }
.mob-tab .mob-dot {
  position: absolute; top: 4px; right: calc(50% - 14px);
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-breaking);
  border: 1.5px solid var(--bg);
}

.fab {
  position: fixed;
  right: 14px;
  bottom: calc(var(--bottomnav-h) + var(--sab) + 14px);
  width: 50px; height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FF3D3D 0%, #D50000 100%);
  color: white;
  display: grid; place-items: center;
  box-shadow: 0 6px 20px rgba(255,45,45,0.4);
  z-index: 90;
  transition: transform 0.15s;
}
.fab:active { transform: scale(0.9); }
.fab svg { width: 22px; height: 22px; }

/* Bottom sheet */
.sheet-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 150;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.sheet-backdrop.open { opacity: 1; pointer-events: auto; }
.bottom-sheet {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--bg-elevated);
  border-radius: 22px 22px 0 0;
  padding: 6px 16px calc(20px + var(--sab));
  z-index: 160;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
  max-height: 80vh;
  max-height: 80dvh;
  overflow-y: auto;
}
.bottom-sheet.open { transform: translateY(0); }
.sheet-handle {
  width: 38px; height: 4px;
  background: var(--border-strong);
  border-radius: 999px;
  margin: 8px auto 14px;
}
.sheet-title { font-size: 16px; font-weight: 700; margin-bottom: 10px; }
.sheet-options { display: flex; flex-direction: column; gap: 3px; }
.sheet-option {
  display: flex; align-items: center; gap: 12px;
  padding: 13px;
  border-radius: 11px;
  font-size: 14px;
  width: 100%;
  text-align: left;
  min-height: 56px;
}
.sheet-option:active { background: var(--surface); }
.sheet-option .icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--surface);
  display: grid; place-items: center;
  flex-shrink: 0;
  font-size: 16px;
}
.sheet-option .label { flex: 1; min-width: 0; }
.sheet-option .desc {
  font-size: 11.5px;
  color: var(--text-faint);
  margin-top: 2px;
  line-height: 1.4;
}

/* Toast */
.toast {
  position: fixed;
  bottom: calc(var(--bottomnav-h) + var(--sab) + 80px);
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--text);
  color: var(--bg);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  z-index: 200;
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
  box-shadow: var(--shadow-pop);
  max-width: calc(100vw - 32px);
  text-align: center;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ================================================================
   BREAKPOINTS
   ================================================================ */

/* Very small screens (≤360px) — even more compact */
@media (max-width: 360px) {
  :root { --topbar-h: 52px; }
  .topbar-inner { padding: 8px 12px; gap: 6px; }
  .brand-name { display: none; } /* show only mark */
  .icon-btn { width: 32px; height: 32px; }
  .main { padding-left: 12px; padding-right: 12px; }
  .section-header h1 { font-size: 22px; }
  .breaking-hero h2 { font-size: 18px; }
}

/* Tablet+ */
@media (min-width: 600px) {
  :root { --topbar-h: 60px; }
  .topbar-inner { padding: 12px 18px; gap: 12px; }
  .brand-name { font-size: 19px; }
  .brand-mark { width: 36px; height: 36px; border-radius: 9px; font-size: 14px; }
  .main { padding: 22px 20px calc(var(--bottomnav-h) + var(--sab) + 32px); }
  .section-header h1 { font-size: 30px; }
  .breaking-hero h2 { font-size: 24px; }
  .breaking-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .concert-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hit-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .highlights { grid-template-columns: 1fr 1fr; }
  .trend-grid { grid-template-columns: 1fr 1fr; }
  .trans-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .perspectives { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .breaking-hero { display: grid; grid-template-columns: 1.4fr 1fr; }
  .breaking-hero-img { display: block; height: 100%; min-height: 200px; }
  .breaking-hero-content { padding: 22px; }
}

@media (min-width: 1024px) {
  :root { --topbar-h: 64px; }
  .mobile-nav { display: none; }
  .fab { display: none; }
  .main { padding-bottom: 40px; }
  .footer { padding-bottom: 32px; }
  .breaking-grid { grid-template-columns: repeat(3, 1fr); }
  .concert-grid { grid-template-columns: repeat(4, 1fr); }
  .hit-grid { grid-template-columns: repeat(5, 1fr); }
  .highlights { grid-template-columns: repeat(3, 1fr); }
  .trend-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
