/* ==========================================================================
   49ers Faithful — Elevated Pro Analytics & UX Stylesheet
   Default Theme: "Levi's Night Game" (Obsidian + 49ers Scarlet + Saloon Gold)
   Alternate Theme: "'94 Throwback White & Gold" (data-theme="light")
   ========================================================================== */

:root {
  --bg-primary: #0B0D10;
  --bg-elevated: #13171E;
  --bg-card-alt: #181E27;
  --bg-input: #0E1218;
  --bg-header: #0B0D10;
  --bg-glass: rgba(13, 16, 22, 0.88);

  --text-primary: #F4F6F9;
  --text-secondary: #A5B1C2;
  --text-muted: #6E7B8F;
  --text-read: #8E9AAF;

  --scarlet: #AA0000;
  --scarlet-bright: #D41919;
  --scarlet-soft: rgba(212, 25, 25, 0.16);

  --gold: #B3995D;
  --gold-bright: #E7D29B;
  --gold-soft: rgba(179, 153, 93, 0.15);
  --gold-border: rgba(179, 153, 93, 0.34);

  --border-subtle: rgba(255, 255, 255, 0.075);
  --border-strong: rgba(255, 255, 255, 0.14);

  --emerald: #10B981;
  --emerald-soft: rgba(16, 185, 129, 0.15);
  --yellow-gtd: #FACC15;
  --yellow-gtd-soft: rgba(250, 204, 21, 0.16);
  --orange: #F97316;
  --orange-soft: rgba(249, 115, 22, 0.17);
  --amber: #F59E0B;
  --amber-soft: rgba(245, 158, 11, 0.16);
  --crimson: #EF4444;
  --crimson-soft: rgba(239, 68, 68, 0.16);

  --radius-sm: 9px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-card: inset 0 1px 0 rgba(255, 255, 255, 0.055), 0 8px 24px rgba(0, 0, 0, 0.38);

  --font-sans: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Inter', 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'SF Mono', ui-monospace, 'JetBrains Mono', Menlo, Consolas, monospace;

  --bg-glow-primary: rgba(170, 0, 0, 0.16);
  --bg-glow-secondary: rgba(179, 153, 93, 0.05);

  --bottom-nav-h: 66px;
  --mini-player-h: 0px;
}

[data-theme="light"] {
  --bg-primary: #F7F5F0;
  --bg-elevated: #FFFFFF;
  --bg-card-alt: #F1EDE2;
  --bg-input: #FFFFFF;
  --bg-header: #F7F5F0;
  --bg-glass: rgba(250, 248, 243, 0.92);

  --text-primary: #14171C;
  --text-secondary: #434C59;
  --text-muted: #687385;
  --text-read: #636C79;

  --scarlet: #AA0000;
  --scarlet-bright: #B80000;
  --scarlet-soft: rgba(170, 0, 0, 0.10);

  --gold: #8C7034;
  --gold-bright: #6B5320;
  --gold-soft: rgba(179, 153, 93, 0.18);
  --gold-border: rgba(140, 112, 52, 0.36);

  --border-subtle: rgba(20, 23, 28, 0.085);
  --border-strong: rgba(20, 23, 28, 0.16);

  --bg-glow-primary: rgba(179, 153, 93, 0.14);
  --bg-glow-secondary: rgba(170, 0, 0, 0.03);

  --shadow-card: 0 4px 16px rgba(20, 16, 8, 0.06);
}

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

html {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100vw;
  overflow-x: clip;
  background-color: var(--bg-header);
  scroll-padding-top: calc(var(--top-header-h, 64px) + 8px);
}

body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100vw;
  overflow-x: clip;
  background-color: var(--bg-primary);
  background-image: radial-gradient(ellipse 85% 32% at 50% -6%, var(--bg-glow-primary), var(--bg-glow-secondary) 55%, transparent 100%);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 14.5px;
  line-height: 1.48;
  -webkit-font-smoothing: antialiased;
}

[data-theme="light"] body {
  background-image: radial-gradient(ellipse 85% 30% at 50% -6%, var(--bg-glow-primary), transparent 75%);
}

body.has-mini-player {
  --mini-player-h: 66px;
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.ui-icon {
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

button, input, select, textarea {
  font-family: inherit;
  color: inherit;
}

/* Prevent iOS Safari viewport auto-zoom on focus by keeping form inputs >= 16px */
input, select, textarea {
  font-size: 16px;
}

a {
  color: var(--gold-bright);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.ext-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Full-Bleed Fixed Solid Header (Subtle, Hairline Border, Contextual Home vs. Sub-Tab) */
.top-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 70;
  width: 100%;
  background-color: var(--bg-header);
  background-image: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  padding: calc(env(safe-area-inset-top, 0px) + 8px) 14px 8px;
  transform: translateZ(0);
  isolation: isolate;
}
[data-theme="light"] .top-header {
  box-shadow: 0 1px 2px rgba(20, 16, 8, 0.05);
}

.top-header:not([data-active-tab="home"]) .brand-home-only {
  display: none;
}

.top-header:not([data-active-tab="home"]) .brand-name {
  font-size: 16.5px;
  letter-spacing: -0.025em;
}

body.sheet-open {
  overflow: hidden;
}

.header-row {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  flex: 1 1 auto;
}

.brand-medallion-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-medallion {
  width: 32px;
  height: 19px;
  flex-shrink: 0;
  display: block;
  object-fit: contain;
  opacity: 0.9;
}

.brand-titles {
  min-width: 0;
  flex: 1 1 auto;
}

.brand-name {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
}

#headerTitleText {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.record-pill {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
  padding: 1px 6.5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  box-shadow: none;
}
[data-theme="light"] .record-pill {
  background: rgba(20, 23, 28, 0.055);
  border-color: rgba(20, 23, 28, 0.14);
  color: var(--text-primary);
}

.brand-sub {
  margin-top: 1px;
  font-size: 11px;
  line-height: 1.25;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#headerSubStatus {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.header-standing-text {
  color: var(--text-secondary);
}

.header-sub-sep {
  opacity: 0.55;
}

.header-live-sync {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.live-pulse-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--emerald);
  opacity: 0.82;
  box-shadow: none;
  flex-shrink: 0;
}

.live-pulse-dot.is-error {
  background: var(--crimson);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 11px;
  border-radius: 9px;
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease, transform 0.12s ease;
}
.icon-btn:hover {
  border-color: var(--gold-border);
}
.icon-btn:active {
  transform: scale(0.97);
}

.icon-btn.header-icon-btn {
  width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  border-radius: 999px;
  border-color: transparent;
  background: transparent;
  color: var(--text-secondary);
}
.icon-btn.header-icon-btn:hover,
.icon-btn.header-icon-btn:focus-visible {
  background: var(--bg-card-alt);
  border-color: var(--border-subtle);
  color: var(--text-primary);
}

.icon-btn.active {
  border-color: var(--gold);
  background: var(--gold-soft);
  color: var(--gold-bright);
}

/* App Shell */
.app-shell {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  min-height: 100dvh;
  padding-top: var(--top-header-h, 62px);
  padding-bottom: calc(var(--bottom-nav-h) + var(--mini-player-h) + env(safe-area-inset-bottom, 0px) + 28px);
}

/* Main Content Area */
.main-view {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dashboard-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Cards */
.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 13px;
  box-shadow: var(--shadow-card);
  max-width: 100%;
  overflow: hidden;
  transition: border-color 0.18s ease;
}

.card.subnav-card {
  padding: 8px 9px;
}

.card.temporal-highlight {
  border-color: var(--gold-border);
}

.card.dragging {
  opacity: 0.55;
  border: 1.5px dashed var(--gold-bright);
}

.card-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 7px 10px;
  margin-bottom: 9px;
}

.card-header-left {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  flex: 1 1 215px;
}

.card-icon-badge {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: linear-gradient(145deg, rgba(179, 153, 93, 0.16), rgba(170, 0, 0, 0.12));
  border: 1px solid rgba(179, 153, 93, 0.28);
  color: var(--gold-bright);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.card-icon-badge.compact {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

.card-icon-badge.temporal {
  background: linear-gradient(145deg, rgba(212, 25, 25, 0.24), rgba(179, 153, 93, 0.2));
  border-color: var(--gold);
}

.card-title-group {
  min-width: 0;
  flex: 1;
}

.card-eyebrow {
  font-size: 10px;
  line-height: 1.25;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.055em;
  color: var(--gold);
  margin-bottom: 1px;
}

.card-title {
  margin: 0;
  font-size: 15px;
  line-height: 1.22;
  font-weight: 800;
  letter-spacing: -0.015em;
}

/* Compact News & Film Toolbar Header */
.news-toolbar-card {
  padding: 10px 12px;
}

.news-toolbar-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 8px;
}

.news-toolbar-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  flex-wrap: nowrap;
  min-width: 0;
}

.news-toolbar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1 1 120px;
}

.news-toolbar-brand .card-title {
  font-size: 14.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.news-toolbar-actions {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.news-toolbar-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--gold-bright);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.breaking-wire-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 7px;
}

.card-footer-row {
  margin-top: 11px;
  padding-top: 9px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.card-cta-btn .ui-icon {
  transition: transform 0.16s ease;
}
.card-cta-btn:hover .ui-icon {
  transform: translateX(2px);
}

.subcard-panel {
  padding: 9px 11px;
  border-radius: 10px;
  background: var(--bg-card-alt);
  border: 1px solid var(--border-subtle);
}

.inline-icon-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-secondary);
}

.signal-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--emerald);
}

/* Reorder Toolbar & Controls */
.reorder-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
}

.reorder-bar-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-secondary);
  min-width: 0;
}

.reorder-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}
.reorder-status-dot.customizing {
  background: var(--scarlet-bright);
  box-shadow: 0 0 0 3px var(--scarlet-soft);
}

.text-muted-inline {
  color: var(--text-muted);
}

.reorder-controls {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.reorder-btn {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: var(--bg-input);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.reorder-btn:disabled {
  opacity: 0.3;
  cursor: default;
}

/* Badges & Pills */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  padding: 2.5px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.badge-scarlet {
  background: var(--scarlet-soft);
  color: #FF6B6B;
  border: 1px solid rgba(212, 25, 25, 0.35);
}
[data-theme="light"] .badge-scarlet {
  color: var(--scarlet);
}

.badge-gold {
  background: var(--gold-soft);
  color: var(--gold-bright);
  border: 1px solid var(--gold-border);
}

.badge-positive {
  background: var(--emerald-soft);
  color: var(--emerald);
  border: 1px solid rgba(16, 185, 129, 0.34);
}
[data-theme="light"] .badge-positive {
  color: #047857;
  background: rgba(16, 185, 129, 0.14);
}

.badge-warning {
  background: var(--yellow-gtd-soft);
  color: var(--yellow-gtd);
  border: 1px solid rgba(250, 204, 21, 0.38);
}
[data-theme="light"] .badge-warning {
  color: #A16207;
  background: rgba(234, 179, 8, 0.18);
  border-color: rgba(202, 138, 4, 0.42);
}

.badge-orange {
  background: var(--orange-soft);
  color: var(--orange);
  border: 1px solid rgba(249, 115, 22, 0.38);
}
[data-theme="light"] .badge-orange {
  color: #C2410C;
  background: rgba(249, 115, 22, 0.15);
  border-color: rgba(234, 88, 12, 0.40);
}

.badge-danger {
  background: var(--crimson-soft);
  color: var(--crimson);
  border: 1px solid rgba(239, 68, 68, 0.34);
}
[data-theme="light"] .badge-danger {
  color: #B91C1C;
  background: rgba(239, 68, 68, 0.14);
}

/* Rooting Guide Week Cards */
.rooting-week-card {
  padding: 10px 11px;
}

.rooting-week-header,
.rooting-week-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.rooting-week-summary {
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.rooting-week-summary::-webkit-details-marker {
  display: none;
}

.badge-neutral {
  background: var(--bg-card-alt);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

/* Segmented Control & Horizontal Filter Pills */
.segmented-control {
  display: flex;
  flex-shrink: 0;
  gap: 4px;
  padding: 3px;
  border-radius: 11px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  overflow-x: auto;
  scrollbar-width: none;
}
.segmented-control::-webkit-scrollbar {
  display: none;
}

.segmented-control.compact-seg {
  margin-bottom: 7px;
}

.segmented-control.compact-seg .pill-btn.seg-btn {
  min-height: 30px;
  padding: 4px 8px;
  font-size: 12px;
  gap: 5px;
  white-space: nowrap;
}

.segmented-control.compact-seg-3 .pill-btn.seg-btn {
  min-height: 31px;
  padding: 5px 6px;
  font-size: 11.8px;
  gap: 4px;
  white-space: nowrap;
}

.pill-bar {
  display: flex;
  flex-shrink: 0;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.pill-bar::-webkit-scrollbar {
  display: none;
}

.pill-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--bg-card-alt);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  min-height: 32px;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.pill-btn.seg-btn {
  flex: 1 1 auto;
  border-radius: 8px;
  border-color: transparent;
  background: transparent;
}

.pill-btn.active {
  background: linear-gradient(180deg, var(--scarlet-bright), var(--scarlet));
  border-color: rgba(255, 255, 255, 0.22);
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(170, 0, 0, 0.32);
}

/* Primary & Secondary Action Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 14px;
  min-height: 38px;
  border-radius: 10px;
  border: 1px solid var(--gold-border);
  background: linear-gradient(180deg, var(--scarlet-bright), var(--scarlet));
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 3px 10px rgba(170, 0, 0, 0.3);
  transition: transform 0.12s ease, filter 0.15s ease;
}
.btn-primary:hover {
  filter: brightness(1.06);
}
.btn-primary:active {
  transform: scale(0.985);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 12px;
  min-height: 34px;
  border-radius: 9px;
  border: 1px solid var(--gold-border);
  background: var(--gold-soft);
  color: var(--gold-bright);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.12s ease;
}
.btn-secondary:active {
  transform: scale(0.985);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 5px 10px;
  min-height: 31px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.btn-ghost:hover {
  border-color: var(--gold-border);
  color: var(--text-primary);
}

.btn-ghost.btn-compact {
  min-height: 27px;
  padding: 3px 8px;
  font-size: 11.2px;
  gap: 4px;
  border-radius: 7px;
}

/* Metric Grid Boxes */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 8px 0;
}

.kpi-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.kpi-box {
  background: var(--bg-card-alt);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  min-width: 0;
}

.kpi-label {
  font-size: 10.5px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kpi-val {
  font-size: 15px;
  font-weight: 800;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kpi-sub-note {
  margin-top: 3px;
  font-size: 10.5px;
  line-height: 1.3;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kpi-sub-note .jargon-term {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--gold-bright);
}

.health-scorecard-grid .kpi-box {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.health-scorecard-grid .kpi-sub-note {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  font-size: 10px;
  line-height: 1.25;
}

/* Search & Sort Controls */
.filter-toolbar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
}

.search-sort-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.search-sort-row .search-input-wrap {
  flex: 1 1 200px;
  min-width: 0;
}

.roster-sort-controls {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 1 1 auto;
  justify-content: flex-end;
  min-width: 0;
}

.roster-sort-controls .select-input {
  flex: 1 1 auto;
  min-width: 132px;
  max-width: 100%;
}

.sort-dir-btn {
  flex-shrink: 0;
  min-width: 38px;
  min-height: 38px;
  padding: 0 11px;
  white-space: nowrap;
}

.search-input-wrap {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}

.search-input-icon {
  position: absolute;
  left: 11px;
  color: var(--text-muted);
  pointer-events: none;
}

.text-input, .select-input, .textarea-input {
  width: 100%;
  padding: 8px 11px;
  border-radius: 9px;
  border: 1px solid var(--border-strong);
  background: var(--bg-input);
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.text-input.has-lead-icon {
  padding-left: 34px;
}

.text-input:focus, .select-input:focus, .textarea-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(179, 153, 93, 0.16);
}

/* Roster List */
.player-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.player-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 11px;
  border-radius: var(--radius-md);
  background: var(--bg-card-alt);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: border-color 0.15s ease, transform 0.12s ease;
}
.player-row:hover {
  border-color: var(--gold-border);
}
.player-row:active {
  transform: scale(0.992);
}

.player-row-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.jersey-chip {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(160deg, var(--scarlet-bright), var(--scarlet));
  color: #FFFFFF;
  font-weight: 800;
  font-size: 12.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(229, 207, 150, 0.45);
  box-shadow: 0 2px 6px rgba(170, 0, 0, 0.28);
}

.player-meta-main {
  min-width: 0;
}

.player-name-line {
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-sub-line {
  font-size: 11.5px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-row-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  flex-shrink: 0;
}

/* Responsive Data Tables */
.table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}

.data-table th, .data-table td {
  padding: 7.5px 9px;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
}

.data-table th {
  background: var(--bg-card-alt);
  color: var(--text-secondary);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}

.data-table tr:last-child td {
  border-bottom: none;
}

/* Depth Chart Chains */
.depth-slot-row {
  padding: 8px 0;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.depth-slot-row:last-child {
  border-bottom: none;
}

.depth-slot-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.depth-pos-tag {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--gold-bright);
}

.depth-chain-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.depth-player-chip {
  padding: 4.5px 9px;
  border-radius: 8px;
  background: var(--bg-card-alt);
  border: 1px solid var(--border-strong);
  font-size: 12px;
  cursor: pointer;
  transition: border-color 0.14s ease;
}
.depth-player-chip:hover {
  border-color: var(--gold-border);
}

.depth-player-chip.starter {
  border-color: var(--gold);
  font-weight: 700;
}

.depth-player-chip.demoted {
  opacity: 0.45;
  text-decoration: line-through;
}

/* News Clusters & Video Embeds */
.brief-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: var(--bg-card-alt);
  border: 1px solid var(--border-subtle);
}

.wire-card-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.wire-card-meta-left {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  min-width: 0;
}

.wire-author-single-link,
.wire-author-label {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--gold-bright);
  text-decoration: none;
}

.wire-author-single-link:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.wire-card-age {
  font-size: 11px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.wire-card-body-col {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.wire-card-headline {
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.33;
  letter-spacing: -0.012em;
  color: var(--text-primary);
  overflow-wrap: break-word;
}

.brief-card.has-lead-hero .wire-card-headline:not(.is-tweet-body) {
  font-size: 15.5px;
}

.brief-card.compact-wire-card .wire-card-headline:not(.is-tweet-body) {
  font-size: 13.6px;
}

.wire-card-headline.is-tweet-body {
  font-size: 13.6px;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: 0;
  color: var(--text-primary);
}

.brief-card.compact-wire-card .wire-card-headline.is-tweet-body {
  font-size: 13px;
}

.wire-headline-link {
  display: inline;
  color: inherit;
  text-decoration: none;
}

.wire-headline-link:hover,
.wire-headline-link:focus-visible {
  color: var(--gold-bright);
  text-decoration: none;
}

.wire-inline-ext {
  display: inline-flex;
  align-items: center;
  vertical-align: -1.5px;
  margin-left: 2px;
  color: var(--text-muted);
}

.wire-headline-link:hover .wire-inline-ext,
.home-wire-text-link:hover .wire-inline-ext,
.home-article-row:hover .wire-inline-ext,
.player-mention-tweet-body:hover .wire-inline-ext,
.similar-story-row:hover .wire-inline-ext,
[data-brief-source-row]:hover .wire-inline-ext {
  color: var(--gold-bright);
}

.wire-card-summary {
  font-size: 12.8px;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.44;
}

.source-row-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 3px;
}

.source-row-author {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--gold-bright);
}

.source-row-age {
  font-size: 10.5px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.source-row-headline {
  font-size: 12.8px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-primary);
}

.source-row-headline.is-tweet-body {
  font-size: 12.6px;
  font-weight: 400;
  line-height: 1.42;
}

.player-mention-summary {
  margin-top: 3px;
}

.wire-summary-preview[hidden],
.wire-summary-full[hidden] {
  display: none !important;
}

.wire-summary-toggle-btn {
  display: inline;
  background: none;
  border: 0;
  padding: 0 2px;
  margin: 0;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  color: var(--gold-bright);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  border-radius: 4px;
  transition: color 0.14s ease, opacity 0.14s ease;
}

.wire-summary-toggle-btn:hover,
.wire-summary-toggle-btn:focus-visible {
  text-decoration: underline;
  text-underline-offset: 2px;
  outline: none;
}

.wire-summary-toggle-btn:focus-visible {
  box-shadow: 0 0 0 2px var(--gold-soft);
}

.wire-card-players-row {
  margin-top: 2px;
}

.brief-headline {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
}

.brief-section-label {
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold-bright);
  margin-bottom: 3px;
}

.brief-bullets {
  margin: 0;
  padding-left: 17px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 13px;
  color: var(--text-primary);
}

.video-embed-box {
  border-radius: 11px;
  overflow: hidden;
  border: 1px solid var(--gold-border);
  background: #080A0E;
}

.video-iframe-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
}

.video-iframe-wrap iframe,
.video-iframe-wrap video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: contain;
  background: #000;
}

.video-launch-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 11px;
  background: linear-gradient(90deg, rgba(22, 27, 36, 0.98), rgba(16, 20, 27, 0.98));
  color: #F3F5F8;
  font-size: 12px;
}

.video-play-disc {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(212, 25, 25, 0.22);
  border: 1px solid var(--gold-border);
  color: var(--gold-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Spider Chart Styles */
.spider-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.spider-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.sub-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gold-bright);
}

.spider-source-note {
  font-size: 11px;
  color: var(--text-muted);
}

.spider-svg-wrap {
  display: flex;
  justify-content: center;
  background: var(--bg-card-alt);
  border-radius: var(--radius-md);
  padding: 6px;
  border: 1px solid var(--border-subtle);
}

.spider-svg {
  width: 100%;
  max-width: 290px;
  height: auto;
}

.spider-axis-name {
  font-size: 8.5px;
  font-weight: 700;
  fill: var(--text-secondary);
}

.spider-axis-pct {
  font-size: 8px;
  font-weight: 800;
  fill: var(--gold-bright);
}

.spider-drills-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.spider-drill-row {
  display: grid;
  grid-template-columns: 128px 1fr 38px;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

.spider-drill-meta {
  display: flex;
  justify-content: space-between;
  gap: 4px;
}

.spider-drill-label {
  color: var(--text-secondary);
}

.spider-bar-track {
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
[data-theme="light"] .spider-bar-track {
  background: rgba(0, 0, 0, 0.09);
}

.spider-bar-fill {
  height: 100%;
  border-radius: 999px;
}

.spider-drill-pct {
  text-align: right;
  font-weight: 700;
  font-size: 11.5px;
}

.spider-comps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 5px;
}

.spider-comp-chip {
  background: var(--bg-card-alt);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 6px 7px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.comp-name {
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.comp-meta {
  font-size: 10.5px;
  color: var(--gold-bright);
}

/* Armchair GM Cap Simulator Sticky Summary */
.gm-summary-banner {
  background: linear-gradient(135deg, rgba(170, 0, 0, 0.2), rgba(20, 24, 31, 0.95));
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-md);
  padding: 10px;
  margin-bottom: 10px;
}
[data-theme="light"] .gm-summary-banner {
  background: linear-gradient(135deg, rgba(170, 0, 0, 0.08), rgba(240, 236, 225, 0.95));
}

.gm-player-card {
  padding: 9px 10px;
  border-radius: 10px;
  background: var(--bg-card-alt);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.gm-player-card.modified {
  border-color: var(--gold);
}

.alert-banner-danger {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--crimson-soft);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: var(--crimson);
  font-size: 12px;
  margin-top: 6px;
}

/* Rooting Guide Scenario Toggle Buttons */
.scenario-game-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 9px;
  border-radius: 9px;
  background: var(--bg-card-alt);
  border: 1px solid var(--border-subtle);
}

.scenario-toggle-pair {
  display: inline-flex;
  gap: 4px;
  flex-shrink: 0;
}

.team-pick-btn {
  padding: 5px 9px;
  border-radius: 7px;
  border: 1px solid var(--border-strong);
  background: var(--bg-input);
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
}

.team-pick-btn.selected {
  background: var(--scarlet);
  border-color: var(--gold-bright);
  color: #FFFFFF;
}

.team-pick-btn.recommended:not(.selected) {
  border-color: var(--emerald);
}

/* Sticky Mini-Player */
.mini-player {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom, 0px));
  z-index: 55;
  background: rgba(15, 18, 25, 0.96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid var(--gold);
  color: #F3F5F8;
  padding: 8px 12px;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.45);
}

.mini-player-inner {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.mini-player-info {
  min-width: 0;
  flex: 1;
  cursor: pointer;
}

.mini-player-title-row {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.mini-player-wave {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
  flex-shrink: 0;
}
.mini-player-wave span {
  width: 2.5px;
  height: 5px;
  border-radius: 2px;
  background: var(--gold-bright);
}
.mini-player-wave.playing span:nth-child(1) {
  animation: eqPulse 0.7s ease-in-out infinite alternate;
}
.mini-player-wave.playing span:nth-child(2) {
  height: 11px;
  animation: eqPulse 0.55s ease-in-out 0.15s infinite alternate;
}
.mini-player-wave.playing span:nth-child(3) {
  height: 8px;
  animation: eqPulse 0.65s ease-in-out 0.3s infinite alternate;
}

@keyframes eqPulse {
  0% { height: 4px; }
  100% { height: 12px; }
}

.mini-player-title {
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini-player-time {
  font-size: 11px;
  color: #D4BC7E;
}

.mini-player-controls {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.mp-btn {
  min-width: 32px;
  height: 32px;
  padding: 0 7px;
  border-radius: 8px;
  border: 1px solid rgba(229, 207, 150, 0.35);
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mp-btn.play {
  background: linear-gradient(180deg, var(--scarlet-bright), var(--scarlet));
  border-color: var(--gold);
}

/* Sticky 5-Tab Bottom Navigation Dock */
.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  background: var(--bg-glass);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-top: 1px solid var(--border-strong);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.bottom-nav-inner {
  max-width: 680px;
  margin: 0 auto;
  height: var(--bottom-nav-h);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  padding: 0 4px;
}

.nav-tab-btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 4px 1px;
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: -0.02em;
  transition: color 0.16s ease;
}

.nav-tab-btn:hover {
  color: var(--text-secondary);
}

.nav-tab-btn .nav-icon {
  width: 46px;
  height: 28px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.nav-tab-btn.active {
  color: var(--gold-bright);
}
[data-theme="light"] .nav-tab-btn.active {
  color: var(--scarlet);
}

.nav-tab-btn.active .nav-icon {
  background: linear-gradient(135deg, rgba(212, 25, 25, 0.28), rgba(179, 153, 93, 0.22));
  border: 1px solid rgba(229, 207, 150, 0.34);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 2px 10px rgba(170, 0, 0, 0.25);
  transform: translateY(-1px);
}
[data-theme="light"] .nav-tab-btn.active .nav-icon {
  background: rgba(170, 0, 0, 0.12);
  border: 1px solid rgba(170, 0, 0, 0.25);
  box-shadow: none;
}

.nav-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* Slide-Up Bottom Sheet Modal */
.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.sheet-backdrop[hidden] {
  display: none !important;
}

.bottom-sheet {
  width: 100%;
  max-width: 780px;
  max-height: 90dvh;
  background: var(--bg-elevated);
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  border-top: 1.5px solid var(--gold);
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-bottom: env(safe-area-inset-bottom, 12px);
}

.sheet-drag-handle {
  width: 38px;
  height: 4px;
  border-radius: 999px;
  background: var(--border-strong);
  margin: 8px auto 0;
  flex-shrink: 0;
}

.sheet-header {
  padding: 10px 14px 10px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.sheet-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

#sheetSyncWireBtn[hidden] {
  display: none !important;
}

.btn-ghost.btn-compact.is-syncing {
  border-color: var(--gold-border);
  color: var(--gold-bright);
}

@keyframes wireSyncSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.wire-sync-spin {
  animation: wireSyncSpin 0.85s linear infinite;
}

.sheet-body {
  padding: 12px 13px 20px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sheet-body > * {
  flex-shrink: 0;
}

/* Synced Podcast Transcript */
.transcript-turn {
  padding: 9px 11px;
  border-radius: 10px;
  background: var(--bg-card-alt);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  font-size: 13px;
  transition: border-color 0.14s ease;
}

.transcript-turn.active-turn {
  border-color: var(--gold);
  background: var(--gold-soft);
}

.speaker-tag {
  font-size: 11px;
  font-weight: 800;
  color: var(--gold-bright);
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Progress Stepper & Broadcast Waiting Indicator */
@keyframes jobSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes jobWavePulse {
  0%, 100% { transform: scaleY(0.4); opacity: 0.65; }
  50% { transform: scaleY(1); opacity: 1; }
}

@keyframes jobProgressShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: 0% 0; }
}

.btn-spin-icon {
  animation: jobSpin 0.85s linear infinite;
}

.job-progress-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 13px;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(179, 153, 93, 0.14), rgba(170, 0, 0, 0.08));
  border: 1px solid var(--gold-border);
  font-size: 12.5px;
  font-weight: 600;
  min-width: 0;
}

.job-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.job-progress-lead {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  flex: 1;
}

.job-spinner-ring {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2.5px solid rgba(179, 153, 93, 0.26);
  border-top-color: var(--gold-bright);
  border-right-color: var(--scarlet-bright);
  flex-shrink: 0;
  animation: jobSpin 0.82s linear infinite;
}

.job-wave-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 13px;
  flex-shrink: 0;
}

.job-wave-bars span {
  width: 2.5px;
  height: 12px;
  border-radius: 2px;
  background: var(--gold-bright);
  transform-origin: bottom;
  animation: jobWavePulse 0.9s ease-in-out infinite;
}

.job-wave-bars span:nth-child(2) { animation-delay: 0.18s; }
.job-wave-bars span:nth-child(3) { animation-delay: 0.34s; }
.job-wave-bars span:nth-child(4) { animation-delay: 0.5s; }

.job-progress-step {
  font-size: 12px;
  color: var(--text-primary);
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.job-progress-subdetail {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.38;
  overflow-wrap: anywhere;
}

.job-stage-stepper {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 9px 10px;
  border-radius: 9px;
  background: rgba(11, 13, 16, 0.42);
  border: 1px solid var(--border-subtle);
}

[data-theme='light'] .job-stage-stepper {
  background: rgba(255, 255, 255, 0.72);
}

.job-stage-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11.5px;
  min-width: 0;
}

.job-stage-top {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.job-stage-bar-track {
  height: 4px;
  margin-left: 25px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.18);
  overflow: hidden;
}

.job-stage-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), var(--gold-bright));
  transition: width 0.28s ease-out;
}

.job-stage-row.done .job-stage-bar-fill {
  background: #2ecc71;
}

[data-theme='light'] .job-stage-row.done .job-stage-bar-fill {
  background: #167942;
}

.job-stage-row.pending .job-stage-bar-fill {
  width: 0 !important;
}

.job-stage-row.pending {
  opacity: 0.56;
}

.job-stage-row.current {
  color: var(--gold-bright);
  font-weight: 700;
}

.job-stage-row.done {
  color: var(--text-primary);
}

.stage-step-icon {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  flex-shrink: 0;
}

.stage-step-icon.done {
  background: rgba(46, 204, 113, 0.2);
  color: #3fe085;
  border: 1px solid rgba(46, 204, 113, 0.45);
}

[data-theme='light'] .stage-step-icon.done {
  color: #167942;
}

.stage-step-icon.current {
  border: 2px solid rgba(179, 153, 93, 0.35);
  border-top-color: var(--gold-bright);
  animation: jobSpin 0.85s linear infinite;
}

.stage-step-icon.pending {
  background: var(--bg-card-alt);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
}

.job-stage-label {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}

.job-stage-status {
  font-size: 10.5px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.job-stage-row.current .job-stage-status {
  color: var(--gold-bright);
}

.job-stage-row.done .job-stage-status {
  color: #3fe085;
}

[data-theme='light'] .job-stage-row.done .job-stage-status {
  color: #167942;
}

.podcast-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.podcast-secondary-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.share-action-btn {
  padding: 5px 10px;
  font-size: 11.5px;
  font-weight: 700;
}

.danger-action-btn {
  color: var(--crimson);
  border-color: rgba(239, 68, 68, 0.3);
}

.danger-action-btn:hover {
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(239, 68, 68, 0.55);
  color: #ff6b6b;
}

[data-theme='light'] .danger-action-btn:hover {
  color: #b91c1c;
}

.library-filter-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.library-filter-toggle .pill-btn {
  min-height: 29px;
  padding: 4px 10px;
  font-size: 11.5px;
}

.gemini-guide-banner {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--bg-card-alt);
  border: 1px dashed var(--gold-border);
}

.gemini-guide-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.gemini-guide-link-btn {
  appearance: none;
  background: transparent;
  border: none;
  padding: 2px 0;
  margin: 0;
  cursor: pointer;
  color: var(--gold-bright);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  text-align: left;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex: 1 1 210px;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.gemini-guide-link-btn:hover {
  opacity: 0.92;
}

.gemini-guide-steps {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border-subtle);
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.45;
}

.gemini-guide-step-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
}

.gemini-guide-step-num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(179, 153, 93, 0.22);
  border: 1px solid var(--gold-border);
  color: var(--gold-bright);
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.gemini-connect-box {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 10px 11px;
  margin-bottom: 11px;
  border-radius: 11px;
  background: linear-gradient(155deg, rgba(179, 153, 93, 0.12), rgba(170, 0, 0, 0.08));
  border: 1px solid var(--gold-border);
}

.gemini-key-row {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.gemini-connected-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  padding: 6px 10px;
  margin-bottom: 10px;
  border-radius: 9px;
  background: var(--bg-card-alt);
  border: 1px solid rgba(16, 185, 129, 0.34);
  font-size: 11.5px;
  color: var(--text-secondary);
}

.gemini-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.24);
  flex-shrink: 0;
}

.podcast-transcript-drawer {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
}

.job-progress-track {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: var(--border-subtle);
  overflow: hidden;
}

.job-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--scarlet-bright), var(--gold-bright), var(--scarlet-bright));
  background-size: 200% 100%;
  transition: width 0.26s ease;
  animation: jobProgressShimmer 1.6s linear infinite;
}

.job-eta-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
}

.est-wait-hint {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  flex-wrap: wrap;
  padding: 7px 10px;
  border-radius: 9px;
  background: var(--bg-card-alt);
  border: 1px solid var(--border-subtle);
  font-size: 11.5px;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

/* Markdown Rendered Output */
.md-report h3, .md-report h4 {
  margin: 8px 0 5px;
  color: var(--gold-bright);
}
.md-report ul {
  margin: 4px 0 8px;
  padding-left: 18px;
}
.md-report li {
  margin-bottom: 5px;
}
.md-report code {
  font-family: var(--font-mono);
  background: var(--bg-primary);
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 12px;
}

/* ============================================================================
   Dynamic Visual Aesthetics: Player Avatars, Team Crests, Editorial Media,
   HD Video Facades, Scoreboard Strips, Cap Allocation Bars & Studio Artwork
   ============================================================================ */

/* Player Headshot Avatars with Stadium Ring & Graceful Jersey/Monogram Fallback */
.player-avatar {
  position: relative;
  width: var(--av-size, 40px);
  height: var(--av-size, 40px);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 28%, rgba(212, 25, 25, 0.34), rgba(20, 24, 33, 0.96));
  border: 1.5px solid rgba(229, 207, 150, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 2px 7px rgba(0, 0, 0, 0.32);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: visible;
  vertical-align: middle;
}

[data-theme="light"] .player-avatar {
  background: radial-gradient(circle at 50% 28%, rgba(170, 0, 0, 0.18), #EDE9DF);
  border-color: rgba(138, 109, 47, 0.45);
  box-shadow: 0 2px 5px rgba(15, 23, 42, 0.1);
}

.player-avatar-fallback {
  font-size: calc(var(--av-size, 40px) * 0.31);
  font-weight: 800;
  color: #F4E5BE;
  letter-spacing: -0.03em;
  line-height: 1;
  user-select: none;
}

[data-theme="light"] .player-avatar-fallback {
  color: var(--scarlet);
}

.player-avatar-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 18%;
  background: radial-gradient(circle at 50% 28%, rgba(170, 0, 0, 0.28), #141923);
  z-index: 1;
}

[data-theme="light"] .player-avatar-img {
  background: radial-gradient(circle at 50% 28%, rgba(170, 0, 0, 0.12), #EFECE4);
}

.player-avatar.img-error .player-avatar-img {
  display: none !important;
}

.player-avatar-num {
  position: absolute;
  right: -3px;
  bottom: -2px;
  z-index: 2;
  padding: 1px 4px;
  min-width: 18px;
  border-radius: 999px;
  background: linear-gradient(160deg, var(--scarlet-bright), var(--scarlet));
  color: #FFFFFF;
  border: 1px solid rgba(229, 207, 150, 0.65);
  font-size: 9px;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}

.player-avatar.hero-avatar {
  border-width: 2px;
  border-color: var(--gold-bright);
  box-shadow: 0 0 0 3px rgba(170, 0, 0, 0.28), 0 6px 18px rgba(0, 0, 0, 0.45);
}

.player-avatar.hero-avatar .player-avatar-num {
  right: -2px;
  bottom: -2px;
  font-size: 10.5px;
  padding: 2px 6px;
}

/* NFL Team Logo Crest Wrapper */
.team-logo-wrap {
  position: relative;
  width: var(--logo-size, 24px);
  height: var(--logo-size, 24px);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  vertical-align: middle;
}

[data-theme="light"] .team-logo-wrap {
  background: rgba(15, 23, 42, 0.04);
  border-color: rgba(15, 23, 42, 0.12);
}

.team-logo-fallback {
  font-size: calc(var(--logo-size, 24px) * 0.36);
  font-weight: 800;
  color: var(--gold-bright);
}

.team-logo-img {
  position: absolute;
  inset: 2px;
  width: calc(100% - 4px);
  height: calc(100% - 4px);
  object-fit: contain;
  background: transparent;
  z-index: 1;
}

.team-logo-wrap:not(.img-error) .team-logo-fallback {
  opacity: 0;
}

.team-logo-wrap.img-error .team-logo-img {
  display: none !important;
}

.team-logo-wrap.img-error .team-logo-fallback {
  opacity: 1;
}

/* Featured Player Headshot Chips Strip & Overlapping Avatar Stack */
.featured-players-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.featured-player-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px 3px 4px;
  border-radius: 999px;
  background: var(--bg-card-alt);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  max-width: 100%;
  transition: border-color 0.14s ease, background 0.14s ease, transform 0.12s ease;
}

button.featured-player-chip:hover {
  border-color: var(--gold);
  background: var(--gold-soft);
}

button.featured-player-chip:active {
  transform: scale(0.98);
}

.fp-chip-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 132px;
}

.fp-chip-meta {
  font-size: 10px;
  color: var(--gold-bright);
}

.avatar-stack {
  display: inline-flex;
  align-items: center;
  padding-left: 2px;
}

.avatar-stack-btn {
  background: none;
  border: 0;
  padding: 0;
  margin-left: -7px;
  cursor: pointer;
  display: inline-flex;
  border-radius: 50%;
  transition: transform 0.14s ease, z-index 0.14s ease;
}

.avatar-stack-btn:first-child {
  margin-left: 0;
}

.avatar-stack-btn:hover {
  transform: translateY(-2px) scale(1.06);
  z-index: 4;
}

/* Mini Horizontal Data / Percentile / Play-Likelihood Bars */
.mini-meter-track {
  width: 100%;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-top: 5px;
}

[data-theme="light"] .mini-meter-track {
  background: rgba(15, 23, 42, 0.09);
}

.mini-meter-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.25s ease;
}

.mini-meter-fill.tone-gold {
  background: linear-gradient(90deg, var(--gold), var(--gold-bright));
}

.mini-meter-fill.tone-emerald {
  background: linear-gradient(90deg, #059669, var(--emerald));
}

.mini-meter-fill.tone-scarlet {
  background: linear-gradient(90deg, var(--scarlet), var(--scarlet-bright));
}

.mini-meter-fill.tone-amber {
  background: linear-gradient(90deg, #D97706, var(--amber));
}

/* Editorial Hero Media Banner for Synthesized News Briefs */
.brief-hero-media {
  position: relative;
  width: 100%;
  height: 168px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: linear-gradient(135deg, #1B1216, #111620);
}

.brief-hero-media.img-error {
  display: none !important;
}

.brief-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  display: block;
  transition: transform 0.3s ease;
}

.brief-hero-media:hover .brief-hero-img {
  transform: scale(1.02);
}

.brief-hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 10, 14, 0.08) 25%, rgba(8, 10, 14, 0.82) 100%);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 11px;
  pointer-events: none;
}

.brief-hero-credit {
  font-size: 10.5px;
  font-weight: 700;
  color: rgba(243, 245, 248, 0.9);
  background: rgba(8, 10, 14, 0.62);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

/* Compact Side-Thumbnail Layout for Home Briefs & Raw Beat Stream */
.media-split-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 11px;
  align-items: start;
}

.raw-item-thumb {
  position: relative;
  width: 76px;
  height: 76px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: var(--bg-primary);
  flex-shrink: 0;
}

.raw-item-thumb.compact {
  width: 64px;
  height: 64px;
}

.raw-item-thumb.img-error {
  display: none !important;
}

.raw-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}

/* Upgraded YouTube HD Film Preview Facade */
.yt-facade-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  background: linear-gradient(95deg, rgba(20, 24, 33, 0.98), rgba(13, 16, 23, 0.98));
  color: #F3F5F8;
}

.yt-facade-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.yt-facade-media {
  position: relative;
  width: 98px;
  height: 56px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(229, 207, 150, 0.35);
  background: #0D1118;
  flex-shrink: 0;
  cursor: pointer;
}

.yt-facade-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.88);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.yt-facade-media:hover img {
  transform: scale(1.04);
  filter: brightness(1);
}

.yt-facade-media.img-error img,
.video-thumb-stage.img-error img {
  display: none !important;
}

.yt-facade-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(8, 10, 14, 0.45), rgba(8, 10, 14, 0.15));
  color: #FFFFFF;
}

.yt-facade-play-pill {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(212, 25, 25, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* Matchup Scoreboard Face-Off Banner */
.matchup-scoreboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background:
    radial-gradient(circle at 85% 50%, rgba(170, 0, 0, 0.22), transparent 55%),
    var(--bg-card-alt);
  border: 1px solid var(--gold-border);
  margin-bottom: 8px;
}

.sb-team-col {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.sb-team-col.home {
  justify-content: flex-end;
  text-align: right;
}

.sb-team-meta {
  min-width: 0;
}

.sb-team-abbr {
  font-size: 14px;
  font-weight: 800;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sb-team-rec {
  font-size: 11px;
  color: var(--text-secondary);
}

.sb-vs-pill {
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--gold-soft);
  border: 1px solid var(--gold-border);
  color: var(--gold-bright);
  font-size: 10.5px;
  font-weight: 800;
}

/* Salary Cap Allocation Stacked Bar */
.cap-alloc-wrap {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 6px 0 8px;
}

.cap-alloc-bar {
  display: flex;
  width: 100%;
  height: 9px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
}

.cap-seg-active {
  background: linear-gradient(90deg, var(--scarlet), var(--scarlet-bright));
}

.cap-seg-dead {
  background: var(--amber);
}

.cap-seg-space {
  background: var(--emerald);
}

.cap-alloc-legend {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 10.5px;
  color: var(--text-secondary);
}

.cap-legend-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-right: 4px;
  vertical-align: middle;
}

/* Player Dossier Stadium Hero Banner */
.dossier-hero-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 13px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 14% 35%, rgba(212, 25, 25, 0.3), transparent 55%),
    radial-gradient(circle at 88% 20%, rgba(179, 153, 93, 0.2), transparent 50%),
    var(--bg-card-alt);
  border: 1px solid var(--gold-border);
}

/* Studio Episode Cover Art & Waveform */
.episode-row-head {
  display: flex;
  align-items: center;
  gap: 11px;
}

.studio-cover-art {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(170, 0, 0, 0.85), rgba(20, 24, 34, 0.96));
  border: 1px solid var(--gold-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: #F4E5BE;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
}

.studio-wave-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 10px;
}

.studio-wave-bars span {
  width: 2.5px;
  border-radius: 2px;
  background: var(--gold-bright);
}

/* Home Beat Wire, Source Chips & HD Video Thumbnail Stage */
.home-wire-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-bright);
  margin-bottom: 6px;
}

.home-wire-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.home-wire-item {
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--bg-card-alt);
  border: 1px solid var(--border-subtle);
}

.home-wire-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 3px;
  font-size: 11.5px;
}

.wire-author-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--gold-bright);
  text-decoration: none;
  min-width: 0;
}

.wire-author-link .mono {
  font-size: 10.5px;
  color: var(--text-muted);
}

.wire-author-link:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.home-wire-age {
  font-size: 10.5px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.home-wire-text-link {
  display: block;
  font-size: 13.2px;
  font-weight: 400;
  line-height: 1.42;
  color: var(--text-primary);
  text-decoration: none;
}

.home-wire-text-link:hover {
  color: var(--gold-bright);
  text-decoration: none;
}

.inline-ext-icon {
  display: inline-flex;
  vertical-align: middle;
  margin-left: 3px;
  color: var(--gold-bright);
}

.home-article-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--bg-card-alt);
  border: 1px solid var(--border-subtle);
  text-decoration: none;
  transition: border-color 0.14s ease, background 0.14s ease;
}

.home-article-row:hover {
  border-color: var(--gold-border);
  background: var(--gold-soft);
  text-decoration: none;
}

.home-article-title {
  font-weight: 700;
  font-size: 13.4px;
  line-height: 1.34;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.home-article-byline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 4px;
  font-size: 11px;
}

.home-article-author {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--gold-bright);
}

.home-article-age {
  font-size: 10.5px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.source-open-pill {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--bg-primary);
  border: 1px solid var(--border-strong);
  color: var(--gold-bright);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.source-link-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.source-chip-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--gold-soft);
  border: 1px solid var(--gold-border);
  color: var(--gold-bright);
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  max-width: 100%;
  transition: background 0.14s ease, border-color 0.14s ease;
}

.source-chip-link span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.source-chip-link:hover {
  border-color: var(--gold);
}

.source-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 7px;
}

.source-card-link {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 7px 10px;
  border-radius: 9px;
  background: var(--bg-card-alt);
  border: 1px solid var(--border-subtle);
  text-decoration: none;
  transition: border-color 0.14s ease;
}

.source-card-link:hover {
  border-color: var(--gold-border);
}

.source-card-outlet {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--gold-bright);
}

.source-card-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.32;
}

.video-external-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

.video-thumb-stage {
  position: relative;
  width: 100%;
  height: 164px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 40%, rgba(170, 0, 0, 0.3), #0B0E15);
}

.video-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.86);
  transition: transform 0.25s ease, filter 0.25s ease;
}

.video-thumb-stage:hover .video-thumb-img {
  transform: scale(1.03);
  filter: brightness(0.98);
}

.video-thumb-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(8, 10, 14, 0.48), rgba(8, 10, 14, 0.18));
}

.video-play-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  background: linear-gradient(150deg, var(--scarlet-bright), var(--scarlet));
  color: #FFFFFF;
  border: 1px solid rgba(229, 207, 150, 0.6);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.55);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Breaking & Live In-Game Injury Elevation */
.breaking-wire-card {
  border-color: rgba(239, 68, 68, 0.45);
  background: linear-gradient(160deg, rgba(170, 0, 0, 0.14), var(--bg-elevated) 55%);
}

.breaking-elevated {
  border-color: rgba(212, 25, 25, 0.42) !important;
  box-shadow: inset 3px 0 0 var(--scarlet-bright);
}

.live-breaking-pill {
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 10px;
}

/* Player Dossier 7-Day Beat & Tweet Mentions */
.player-mention-card {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.player-mention-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.player-mention-author {
  font-size: 12px;
  font-weight: 700;
  color: var(--gold-bright);
}

.player-mention-headline {
  font-size: 13.6px;
  font-weight: 700;
  line-height: 1.34;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.player-mention-tweet-body {
  display: block;
  color: var(--text-primary);
  font-size: 13.2px;
  line-height: 1.44;
  font-weight: 400;
  text-decoration: none;
  word-break: break-word;
}
.player-mention-tweet-body:hover {
  color: var(--gold-bright);
  text-decoration: none;
}

/* 49ers Beat Podcasts (7-Day Native App Directory) */
.podcast-view-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.beat-podcast-ep-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 11px 12px;
  border-radius: var(--radius-md);
  background: var(--bg-card-alt);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  text-decoration: none;
  transition: border-color 0.16s ease, transform 0.12s ease, background 0.16s ease;
}
.beat-podcast-ep-card:hover {
  border-color: var(--gold-border);
  text-decoration: none;
}
.beat-podcast-ep-card:active {
  transform: scale(0.992);
}

.beat-podcast-ep-top {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}

.beat-podcast-art-wrap {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--gold-border);
  background: linear-gradient(145deg, rgba(170, 0, 0, 0.25), rgba(179, 153, 93, 0.18));
}
.beat-podcast-art-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.beat-podcast-art-wrap.img-error img {
  display: none;
}

.beat-podcast-ep-title {
  font-weight: 800;
  font-size: 13.8px;
  line-height: 1.32;
  color: var(--text-primary);
}

.beat-podcast-ep-summary {
  font-size: 12.4px;
  line-height: 1.45;
  color: var(--text-secondary);
}

.beat-podcast-ep-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 6px;
  border-top: 1px solid var(--border-subtle);
}

.beat-podcast-launch-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--gold-soft);
  border: 1px solid var(--gold-border);
  color: var(--gold-bright);
  font-size: 11.5px;
  font-weight: 700;
}

@media (max-width: 395px) {
  .kpi-val {
    font-size: 13.5px;
  }
  .spider-drill-row {
    grid-template-columns: 112px 1fr 34px;
  }
  .header-btn-label {
    display: none;
  }
  .brief-hero-media {
    height: 144px;
  }
  .yt-facade-media {
    width: 80px;
    height: 48px;
  }
  .raw-item-thumb {
    width: 64px;
    height: 64px;
  }
}

/* Subtle Inline Football / Analytics / Cap Jargon Links & Quick-Bubble Popover */
.jargon-term {
  display: inline;
  border-bottom: 1px dotted rgba(231, 210, 155, 0.55);
  cursor: pointer;
  color: inherit;
  padding-bottom: 0.5px;
  transition: color 0.14s ease, border-bottom-color 0.14s ease, background-color 0.14s ease;
}

[data-theme="light"] .jargon-term {
  border-bottom-color: rgba(140, 112, 52, 0.62);
}

.jargon-term:hover,
.jargon-term:focus-visible,
.jargon-term.active {
  color: var(--gold-bright);
  border-bottom-color: var(--gold-bright);
  border-bottom-style: solid;
  outline: none;
}

.inline-player-link {
  display: inline;
  font-weight: 600;
  color: var(--text-primary);
  border-bottom: 1px dashed rgba(212, 188, 126, 0.58);
  cursor: pointer;
  padding-bottom: 0.5px;
  transition: color 0.14s ease, border-bottom-color 0.14s ease;
}

[data-theme="light"] .inline-player-link {
  border-bottom-color: rgba(140, 112, 52, 0.65);
}

.inline-player-link:hover,
.inline-player-link:focus-visible {
  color: var(--gold-bright);
  border-bottom-color: var(--gold-bright);
  border-bottom-style: solid;
  outline: none;
}

.jargon-popover {
  position: fixed;
  z-index: 150;
  width: min(316px, calc(100vw - 20px));
  max-width: calc(100vw - 20px);
  padding: 11px 13px;
  border-radius: 13px;
  background: var(--bg-elevated);
  border: 1px solid var(--gold);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

.jargon-popover[hidden] {
  display: none !important;
}

.jargon-popover-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 5px;
}

.jargon-popover-cat {
  font-size: 9.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-bright);
  margin-bottom: 1px;
}

.jargon-popover-title {
  font-size: 13.5px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-primary);
}

.jargon-popover-close {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  border: 1px solid var(--border-strong);
  background: var(--bg-card-alt);
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.jargon-popover-close:hover {
  color: var(--text-primary);
  border-color: var(--gold-border);
}

.jargon-popover-body {
  font-size: 12.4px;
  line-height: 1.45;
  color: var(--text-secondary);
}

.jargon-popover-badge {
  display: inline-block;
  margin-top: 4px;
  padding: 1.5px 7px;
  border-radius: 999px;
  font-size: 10.2px;
  font-weight: 700;
  color: var(--gold-bright);
  background: var(--gold-soft);
  border: 1px solid var(--gold-border);
}

.jargon-popover-links {
  margin-top: 8px;
  padding-top: 7px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.jargon-popover-link {
  font-size: 10.8px;
  padding: 2px 7px;
}

.jargon-info-dot,
.jargon-info-dot-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  line-height: 1;
  color: var(--gold-bright);
  opacity: 0.82;
  cursor: pointer;
  flex-shrink: 0;
  transition: opacity 0.14s ease, transform 0.14s ease;
}

.jargon-info-dot:hover,
.jargon-info-dot:focus-visible,
.big-board-sources-trigger:hover .jargon-info-dot-inline {
  opacity: 1;
  transform: scale(1.08);
  outline: none;
}

/* OverTheCap 5-Year Tabs & Multi-Year Salary Cap Simulator Table */
.otc-year-tabs {
  display: flex;
  flex-shrink: 0;
  gap: 5px;
  overflow-x: auto;
  padding-bottom: 2px;
  margin-bottom: 9px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.otc-year-tabs::-webkit-scrollbar {
  display: none;
}

.otc-year-tab {
  flex: 1 1 auto;
  min-width: 58px;
  min-height: 34px;
  padding: 5px 8px;
  border-radius: 9px;
  border: 1px solid var(--border-strong);
  background: var(--bg-card-alt);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  transition: all 0.15s ease;
}

.otc-year-tab:hover {
  border-color: var(--gold-border);
  color: var(--text-primary);
}

.otc-year-tab.active {
  background: linear-gradient(180deg, var(--scarlet-bright), var(--scarlet));
  border-color: rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(170, 0, 0, 0.35);
}

.otc-year-tab-sub {
  font-size: 9.5px;
  font-weight: 700;
  opacity: 0.85;
}

/* Compact 8-Column OTC Multi-Year Horizon Table & 9-Column Cap Simulator Table */
#capHorizonSummaryCard .data-table th {
  white-space: normal;
  font-family: var(--font-sans);
  font-size: 9.8px;
  line-height: 1.15;
  letter-spacing: 0.02em;
  padding: 5px 5px;
  vertical-align: bottom;
}

#capHorizonSummaryCard .data-table td {
  padding: 5px 5px;
  font-size: 11px;
  letter-spacing: -0.02em;
}

.cap-sim-table {
  width: 100%;
  border-collapse: collapse;
}

.cap-sim-table th {
  white-space: normal;
  font-family: var(--font-sans);
  background: linear-gradient(180deg, rgba(170, 0, 0, 0.32), rgba(170, 0, 0, 0.16));
  color: var(--text-primary);
  font-size: 9.5px;
  line-height: 1.15;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  font-weight: 800;
  padding: 5px 4px;
  vertical-align: bottom;
  border-bottom: 1px solid var(--gold-border);
}

[data-theme="light"] .cap-sim-table th {
  background: linear-gradient(180deg, rgba(170, 0, 0, 0.14), rgba(170, 0, 0, 0.06));
}

.cap-sim-table td {
  white-space: nowrap;
  vertical-align: middle;
  padding: 5px 4px;
  font-size: 10.6px;
  letter-spacing: -0.025em;
}

.cap-sim-table tr.has-active-move {
  background: rgba(179, 153, 93, 0.09);
}

.cap-player-cell {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 102px;
  max-width: 122px;
}

.cap-player-av {
  cursor: pointer;
  display: inline-flex;
  flex-shrink: 0;
}

.cap-player-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.14;
}

.cap-player-name {
  cursor: pointer;
  font-weight: 700;
  font-size: 11.2px;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
}

.cap-player-pos {
  color: var(--gold-bright);
  font-size: 9.6px;
  font-weight: 700;
  white-space: nowrap;
}

.cap-cell-sub {
  display: block;
  white-space: normal;
  font-size: 8.6px;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--text-muted);
  font-family: var(--font-sans);
  max-width: 74px;
  margin-top: 1px;
}

.cap-cell-dead-active {
  background: rgba(239, 68, 68, 0.13);
  color: var(--crimson);
  font-weight: 700;
}

.cap-cell-save-pos {
  background: rgba(16, 185, 129, 0.14);
  color: var(--emerald);
  font-weight: 800;
}

.cap-cell-save-neg {
  background: rgba(239, 68, 68, 0.15);
  color: var(--crimson);
  font-weight: 800;
}

.gm-move-select {
  width: 92px;
  min-width: 86px;
  max-width: 98px;
  min-height: 29px;
  padding: 2px 4px;
  border-radius: 7px;
  font-size: 16px; /* Prevents iOS Safari auto-zoom on focus */
}

/* Sticky Player Column ONLY when Cap Simulator scrolls horizontally on narrow portrait */
@media (max-width: 720px) {
  .cap-sim-table th:first-child,
  .cap-sim-table td.cap-player-td {
    position: sticky;
    left: 0;
    z-index: 2;
    background: var(--bg-elevated);
    box-shadow: 1px 0 0 var(--border-strong);
  }
  .cap-sim-table tr.has-active-move td.cap-player-td {
    background: #231F1B;
  }
  [data-theme="light"] .cap-sim-table tr.has-active-move td.cap-player-td {
    background: #F4EFE4;
  }
  .cap-sim-table thead th:first-child {
    z-index: 3;
    background: #381014;
  }
  [data-theme="light"] .cap-sim-table thead th:first-child {
    background: #F3E5E3;
  }
}

/* Wider shell on Landscape Mobile (iPhone 16 / 16 Pro 852-874px) & Tablet/Desktop */
@media (min-width: 700px) {
  .app-shell,
  .header-row,
  .mini-player-inner {
    max-width: 960px;
  }
  .bottom-nav-inner {
    max-width: 760px;
  }
}

/* Game & Season Two-Bar Clustered Sub-Navigation */
.card.subnav-card.season-subnav-card {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 6px 7px;
}

.season-cluster-bar {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 2.5px;
  border-radius: 9.5px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}
.season-cluster-bar::-webkit-scrollbar {
  display: none;
}

.pill-btn.seg-btn.season-tab-btn {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 30px;
  padding: 4px 6px;
  gap: 4px;
  border-radius: 7.5px;
  font-size: 11.6px;
  font-weight: 700;
  letter-spacing: -0.015em;
  white-space: nowrap;
}

/* Team Stats & NFL Rankings Single-Screen Portrait Optimization */
.team-stats-card .team-stats-header {
  margin-bottom: 7px;
}

.team-stats-table th,
.team-stats-table td {
  padding: 5.5px 7px;
  vertical-align: middle;
}

.team-stats-table:not(.matchup-stats-table):not([data-career-pos-table]) th:nth-child(1),
.team-stats-table:not(.matchup-stats-table):not([data-career-pos-table]) td:nth-child(1) {
  width: 45%;
}

.team-stats-table:not(.matchup-stats-table):not([data-career-pos-table]) th:nth-child(2),
.team-stats-table:not(.matchup-stats-table):not([data-career-pos-table]) td:nth-child(2) {
  width: 17%;
}

.team-stats-table:not(.matchup-stats-table):not([data-career-pos-table]) th:nth-child(3),
.team-stats-table:not(.matchup-stats-table):not([data-career-pos-table]) td:nth-child(3) {
  width: 21%;
}

.team-stats-table:not(.matchup-stats-table):not([data-career-pos-table]) th:nth-child(4),
.team-stats-table:not(.matchup-stats-table):not([data-career-pos-table]) td:nth-child(4) {
  width: 17%;
}

.matchup-stats-table th:nth-child(1),
.matchup-stats-table td:nth-child(1) {
  width: 38%;
}

.matchup-stats-table th:nth-child(2),
.matchup-stats-table td:nth-child(2) {
  width: 16%;
}

.matchup-stats-table th:nth-child(3),
.matchup-stats-table td:nth-child(3) {
  width: 15%;
}

.matchup-stats-table th:nth-child(4),
.matchup-stats-table td:nth-child(4) {
  width: 16%;
}

.matchup-stats-table th:nth-child(5),
.matchup-stats-table td:nth-child(5) {
  width: 15%;
}

.team-stats-table td:first-child {
  white-space: normal;
  min-width: 120px;
  line-height: 1.2;
}

.team-stats-table th.num-col,
.team-stats-table td.num-col {
  text-align: right;
  white-space: nowrap;
}

.team-stats-table th.rank-col,
.team-stats-table td.rank-col {
  text-align: center;
  white-space: nowrap;
}

.team-rank-cell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.team-rank-cell .mini-meter-track {
  width: 42px;
  margin-top: 0;
  flex-shrink: 0;
}

.team-stats-sources {
  margin-top: 7px;
}

@media (max-width: 559px) {
  .team-rank-cell .mini-meter-track {
    display: none;
  }
  .card.team-stats-card {
    padding: 9px 10px;
  }
  .team-stats-card .team-stats-header {
    margin-bottom: 6px;
  }
  .team-stats-card .data-table.team-stats-table th,
  .team-stats-card .data-table.team-stats-table td {
    padding: 3.5px 5.5px;
    font-size: 11.3px;
  }
  .team-stats-card .data-table.team-stats-table th {
    font-size: 9.8px;
  }
  .team-stats-table .badge {
    padding: 1.5px 6px;
    font-size: 10.5px;
  }
  .team-stats-sources {
    margin-top: 6px;
    gap: 5px;
  }
  .team-stats-sources .source-chip-link {
    padding: 2.5px 7px;
    font-size: 10.5px;
  }
}

@media (max-width: 559px) and (max-height: 720px) {
  .card.team-stats-card {
    padding: 7px 9px;
  }
  .team-stats-card .team-stats-header {
    margin-bottom: 4px;
  }
  .team-stats-card .card-icon-badge {
    width: 26px;
    height: 26px;
  }
  .team-stats-card .data-table.team-stats-table th,
  .team-stats-card .data-table.team-stats-table td {
    padding: 2.3px 5px;
    line-height: 1.15;
  }
  .team-stats-sources {
    margin-top: 4px;
  }
  .team-stats-sources .source-chip-link {
    padding: 1.5px 6px;
    font-size: 10px;
  }
}

@media (max-width: 358px) {
  .pill-btn.seg-btn.season-tab-btn {
    padding: 4px 4px;
    font-size: 10.8px;
    gap: 3px;
  }
  .pill-btn.seg-btn.season-tab-btn .ui-icon {
    display: none;
  }
}

.settings-outlets-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.settings-outlets-grid .pill-btn {
  min-height: 29px;
  padding: 4px 9px;
  font-size: 11.5px;
}

/* ============================================================================
   Mobile Portrait Spacing & Density Polish (iPhone 16 / 16 Pro / SE)
   ============================================================================ */
@media (max-width: 520px) {
  .top-header {
    padding: calc(env(safe-area-inset-top, 0px) + 8px) 12px 8px;
  }
  .brand-medallion {
    width: 30px;
    height: 18px;
  }
  .brand-name {
    font-size: 14.5px;
    gap: 6px;
  }
  .top-header:not([data-active-tab="home"]) .brand-name {
    font-size: 16px;
  }
  .brand-sub {
    font-size: 10.5px;
  }
  .icon-btn {
    min-height: 36px;
    padding: 0 10px;
    font-size: 11.5px;
  }
  .icon-btn.header-icon-btn {
    width: 36px;
    height: 36px;
    min-height: 36px;
    padding: 0;
  }
  .card.subnav-card.season-subnav-card {
    padding: 5px 6px;
    gap: 4px;
  }
  .main-view {
    padding: 9px 10px;
    gap: 9px;
  }
  .dashboard-grid {
    gap: 9px;
  }
  .card {
    padding: 11px 12px;
    border-radius: 14px;
  }
  .card.subnav-card {
    padding: 7px 8px;
    border-radius: 12px;
  }
  .news-toolbar-card {
    padding: 9px 11px;
  }
  .reorder-bar {
    padding: 7px 10px;
  }
  .kpi-grid {
    gap: 6px;
    margin: 6px 0;
  }
  .cap-summary-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .kpi-box {
    padding: 7px 8px;
  }
  .kpi-label {
    font-size: 9.8px;
    letter-spacing: 0.03em;
  }
  .kpi-val {
    font-size: 14px;
  }
  .player-row {
    padding: 7.5px 9px;
    gap: 7px;
  }
  .player-row-left {
    gap: 7px;
  }
  .jersey-chip {
    width: 28px;
    height: 28px;
    font-size: 11px;
    border-radius: 7px;
  }
  .player-name-line {
    font-size: 13.5px;
  }
  .player-sub-line {
    font-size: 11px;
  }
  .data-table th,
  .data-table td {
    padding: 6px 6px;
    font-size: 11.5px;
  }
  .brief-card {
    padding: 9px 10px;
    gap: 5px;
  }
  .beat-podcast-ep-card {
    padding: 9px 10px;
    gap: 6px;
  }
  .beat-podcast-ep-summary {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .nav-tab-btn {
    font-size: 9.5px;
    letter-spacing: -0.03em;
    padding: 4px 0;
  }
}

@media (max-width: 372px) {
  .header-sync-verb {
    display: none;
  }
}

/* ============================================================================
   Mobile Landscape Chrome Optimization (e.g. iPhone 16 Pro 874x402)
   Maximizes vertical & horizontal viewport space for dense Cap & Stats tables
   ============================================================================ */
@media (orientation: landscape) and (max-height: 500px) {
  :root {
    --bottom-nav-h: 42px;
  }
  .top-header {
    padding: calc(env(safe-area-inset-top, 0px) + 4px) max(12px, env(safe-area-inset-right, 0px)) 4px max(12px, env(safe-area-inset-left, 0px));
  }
  .brand-medallion {
    width: 26px;
    height: 15px;
  }
  .brand-name {
    font-size: 14px;
  }
  .top-header:not([data-active-tab="home"]) .brand-name {
    font-size: 14.5px;
  }
  .brand-sub {
    font-size: 10px;
  }
  .icon-btn {
    min-height: 28px;
    padding: 0 8px;
    font-size: 11px;
  }
  .icon-btn.header-icon-btn {
    width: 28px;
    height: 28px;
    min-height: 28px;
    padding: 0;
  }
  .main-view {
    padding: 8px max(10px, env(safe-area-inset-right, 0px)) 8px max(10px, env(safe-area-inset-left, 0px));
    gap: 8px;
  }
  .card {
    padding: 9px 10px;
  }
  .card.subnav-card {
    padding: 6px 8px;
  }
  .nav-tab-btn {
    flex-direction: row;
    gap: 5px;
    font-size: 11px;
    padding: 2px 4px;
  }
  .nav-tab-btn .nav-icon {
    width: 26px;
    height: 24px;
  }
}

/* Live X Beat Search Launch Strip & Multi-Reporter Corroboration Metadata */
.x-beat-launch-strip {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  padding: 7px 10px;
  border-radius: 11px;
  background: var(--bg-card-alt);
  border: 1px solid var(--border-subtle);
  max-width: 100%;
  box-sizing: border-box;
}

.x-beat-strip-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  color: var(--gold-bright);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.x-beat-chip {
  font-size: 11px;
  padding: 3px 8px;
  min-height: 24px;
}

.corroboration-meta-row {
  font-size: 11.2px;
  color: var(--emerald);
  margin-top: 3px;
  line-height: 1.35;
}

.corroboration-meta-row strong {
  color: var(--text-primary);
  font-weight: 700;
}

/* ============================================================================
   Sticky First-Column Health Tables, Game-Day Inactives/Active Roster &
   Streamlined Collapsible Details
   ============================================================================ */
.data-table.sticky-col-table,
.sticky-col-table {
  border-collapse: separate;
  border-spacing: 0;
}

.narrow-health-table {
  width: 100%;
  min-width: 420px;
}

.narrow-health-table th,
.narrow-health-table td {
  padding: 6px 6px;
  vertical-align: middle;
}

.narrow-health-table td:nth-child(3) {
  white-space: nowrap;
  font-size: 11.3px;
}

.sticky-col-table th.sticky-first-col,
.sticky-col-table td.sticky-first-col {
  position: sticky;
  left: 0;
  z-index: 2;
  border-right: 1px solid var(--border-strong);
  box-shadow: 3px 0 8px rgba(0, 0, 0, 0.22);
}

.sticky-col-table th.sticky-first-col {
  z-index: 3;
  background: var(--bg-card-alt);
}

.sticky-col-table td.sticky-first-col {
  background: var(--bg-elevated);
}

.gameday-subcard .sticky-col-table td.sticky-first-col {
  background: var(--bg-card-alt);
}

[data-theme="light"] .sticky-col-table th.sticky-first-col,
[data-theme="light"] .sticky-col-table td.sticky-first-col {
  box-shadow: 3px 0 8px rgba(20, 16, 8, 0.07);
}

.sticky-player-cell {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 128px;
  max-width: 184px;
}

.sticky-player-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.sticky-player-name {
  font-size: 12.5px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sticky-player-sub {
  font-size: 10.3px;
  line-height: 1.2;
  color: var(--gold-bright);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.narrow-health-table td:nth-child(2) {
  max-width: 112px;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.22;
}

@media (max-width: 480px) {
  .narrow-health-table {
    min-width: 416px;
  }
  .narrow-health-table td:nth-child(2) {
    max-width: 84px;
  }
  .sticky-player-cell {
    min-width: 114px;
    max-width: 146px;
    gap: 6px;
  }
  .sticky-player-name {
    font-size: 12px;
  }
  .sticky-player-sub {
    font-size: 9.8px;
  }
}

/* Game-Day Inactives & Collapsible Active Roster Block */
.gameday-roster-card {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.gameday-subcard {
  margin-bottom: 10px;
  border-color: var(--gold-border);
}

.gameday-roster-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.gameday-roster-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.gameday-roster-title {
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-primary);
}

.gameday-pending-note {
  font-size: 11.5px;
  color: var(--gold-bright);
  background: var(--gold-soft);
  border: 1px solid var(--gold-border);
  border-radius: 8px;
  padding: 6px 9px;
}

.gameday-inactives-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(156px, 1fr));
  gap: 6px;
}

.gameday-inactive-chip {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 8px;
  border-radius: 9px;
  background: var(--crimson-soft);
  border: 1px solid rgba(239, 68, 68, 0.28);
  min-width: 0;
}

.gameday-inactive-meta {
  min-width: 0;
  flex: 1;
}

.gameday-inactive-name {
  font-size: 12px;
  line-height: 1.22;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gameday-pos {
  font-size: 10.5px;
  color: var(--gold-bright);
  font-weight: 700;
}

.gameday-inactive-reason {
  font-size: 10.5px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gameday-active-collapsible {
  border-radius: 10px;
  background: var(--bg-card-alt);
  border: 1px solid var(--border-strong);
  padding: 7px 10px;
}

.gameday-subcard .gameday-active-collapsible {
  background: var(--bg-elevated);
}

.gameday-active-summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
  user-select: none;
}

.gameday-active-summary::-webkit-details-marker {
  display: none;
}

.gameday-active-summary::before {
  content: '▸';
  color: var(--gold-bright);
  font-size: 12px;
  margin-right: 2px;
  transition: transform 0.15s ease;
}

.gameday-active-collapsible[open] > .gameday-active-summary::before {
  transform: rotate(90deg);
}

.gameday-summary-sub {
  margin-left: auto;
  font-size: 10.5px;
  color: var(--gold-bright);
  white-space: nowrap;
}

.gameday-units-wrap {
  margin-top: 9px;
  padding-top: 8px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.gameday-unit-title {
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gold-bright);
  margin-bottom: 5px;
}

.gameday-active-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.gameday-active-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3.5px 7px;
  border-radius: 7px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  font-size: 11.2px;
  color: var(--text-primary);
  line-height: 1.2;
  max-width: 100%;
}

button.gameday-active-pill {
  cursor: pointer;
}

button.gameday-active-pill:hover {
  border-color: var(--gold-border);
}

.gameday-subcard .gameday-active-pill {
  background: var(--bg-card-alt);
}

.gameday-pill-num {
  font-size: 10px;
  color: var(--text-muted);
}

/* Streamlined Collapsible Toggles & Single-Author Wire Attribution */
.compact-details {
  border-radius: 9px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card-alt);
  padding: 5px 9px;
}

.news-toolbar-card .compact-details {
  margin-top: 6px;
  padding: 4px 8px;
}

.compact-details-summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.3px;
  font-weight: 700;
  color: var(--text-secondary);
  user-select: none;
}

.compact-details-summary::-webkit-details-marker {
  display: none;
}

.compact-details-summary::before {
  content: '▸';
  color: var(--gold-bright);
  font-size: 11px;
  transition: transform 0.15s ease;
}

.compact-details[open] > .compact-details-summary {
  color: var(--text-primary);
}

.compact-details[open] > .compact-details-summary::before {
  transform: rotate(90deg);
}

.wire-author-link {
  color: var(--gold-bright);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.wire-author-link:hover {
  text-decoration: underline;
}

.confirming-reports-details,
.confirming-reports-toggle {
  margin-top: 4px;
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
}

[data-theme="light"] .confirming-reports-details,
[data-theme="light"] .confirming-reports-toggle {
  background: rgba(0, 0, 0, 0.024);
}

.similar-stories-drawer {
  padding: 5px 9px;
}

.similar-story-row {
  padding: 8px 10px;
  overflow-wrap: anywhere;
}

.related-coverage-row {
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--text-secondary);
  padding: 4px 0;
  border-top: 1px solid var(--border-subtle);
}

.related-coverage-row:first-child {
  border-top: 0;
  padding-top: 1px;
}

/* Clickable "XX reports" AI Synthesis Source Trigger & Slide-Up Report List */
.synthesis-reports-link {
  appearance: none;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: var(--gold-bright);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--gold-border);
  text-underline-offset: 2.5px;
  cursor: pointer;
  transition: color 0.14s ease, text-decoration-color 0.14s ease;
}

.synthesis-reports-link:hover,
.synthesis-reports-link:focus-visible {
  color: var(--text-primary);
  text-decoration-color: var(--gold-bright);
}

.synthesis-source-sheet-row {
  display: block;
  padding: 9px 11px;
  border-radius: 10px;
  background: var(--bg-card-alt);
  border: 1px solid var(--border-subtle);
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.synthesis-source-sheet-row:hover {
  border-color: var(--gold-border);
  background: var(--bg-elevated);
  text-decoration: none;
}

/* Collapsible Previous Games Box in Schedule View */
.schedule-prev-collapsible {
  margin-bottom: 10px;
  border-radius: 10px;
  background: var(--bg-card-alt);
  border: 1px solid var(--border-strong);
  padding: 8px 11px;
  transition: border-color 0.15s ease;
}

.schedule-prev-collapsible:hover,
.schedule-prev-collapsible[open] {
  border-color: var(--gold-border);
}

.schedule-prev-summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-primary);
  user-select: none;
}

.schedule-prev-summary::-webkit-details-marker {
  display: none;
}

.schedule-prev-summary::before {
  content: '▸';
  color: var(--gold-bright);
  font-size: 12px;
  flex-shrink: 0;
  transition: transform 0.15s ease;
}

.schedule-prev-collapsible[open] > .schedule-prev-summary::before {
  transform: rotate(90deg);
}

.schedule-prev-summary-main {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  flex-wrap: wrap;
}

.schedule-prev-summary-sub {
  margin-left: auto;
  font-size: 11px;
  color: var(--gold-bright);
  white-space: nowrap;
}

.schedule-prev-list {
  margin-top: 9px;
  padding-top: 9px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.schedule-prev-collapsible:not([open]) > .schedule-prev-list {
  display: none;
}

/* ==========================================================================
   4-Unit Team Stats, Matchup H2H Stats, Player Stat Rows & #X Rank Modal
   ========================================================================== */

tr.unit-overall-banner.overall-stat-row {
  background: rgba(179, 153, 93, 0.085);
}

tr.unit-overall-banner.overall-stat-row td {
  background: rgba(179, 153, 93, 0.085) !important;
  padding: 10px 8px !important;
  border-bottom: 1px solid rgba(179, 153, 93, 0.28) !important;
  vertical-align: middle;
}

[data-theme="light"] tr.unit-overall-banner.overall-stat-row,
[data-theme="light"] tr.unit-overall-banner.overall-stat-row td {
  background: rgba(179, 153, 93, 0.115) !important;
  border-bottom: 1px solid rgba(140, 112, 52, 0.25) !important;
}

.unit-overall-inline {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
  flex-wrap: wrap;
}

.unit-overall-heading {
  font-size: 14.8px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.unit-overall-sub {
  font-size: 12px;
  color: var(--text-secondary);
}

.overall-how-wrap .jargon-term {
  font-size: 12px;
  font-weight: 700;
  color: var(--gold-bright);
}

.overall-val-cell {
  font-size: 14.8px !important;
  font-weight: 800;
  color: var(--text-primary);
}

.overall-avg-cell {
  color: var(--text-muted) !important;
  font-weight: 700;
}

.unit-overall-right {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.rank-badge-trigger {
  appearance: none;
  background: transparent;
  border: none;
  padding: 1px 2px;
  margin: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 999px;
  transition: transform 0.12s ease, filter 0.14s ease;
}

.rank-badge-trigger:hover,
.rank-badge-trigger:focus-visible {
  transform: translateY(-1px);
  filter: brightness(1.1);
  outline: none;
}

.rank-badge-trigger .badge {
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.32);
  text-underline-offset: 2px;
}

[data-theme="light"] .rank-badge-trigger .badge {
  text-decoration-color: rgba(0, 0, 0, 0.25);
}

.rank-badge-trigger .overall-rank-pill {
  font-size: 13.8px !important;
  font-weight: 800;
  padding: 3.5px 9.5px !important;
  letter-spacing: -0.02em;
}

.rank-badge-trigger .mini-meter-track {
  width: 42px;
  margin-top: 0;
  flex-shrink: 0;
}

@media (max-width: 559px) {
  .rank-badge-trigger .mini-meter-track {
    display: none;
  }
  tr.unit-overall-banner.overall-stat-row td {
    padding: 7.5px 5.5px !important;
  }
  .unit-overall-inline {
    gap: 5px;
  }
  .unit-overall-heading {
    font-size: 13px;
  }
  .unit-overall-sub,
  .overall-how-wrap .jargon-term {
    font-size: 11px;
  }
  .overall-val-cell {
    font-size: 13px !important;
  }
  .rank-badge-trigger .overall-rank-pill {
    font-size: 12.4px !important;
    padding: 2.5px 7.5px !important;
  }
  .matchup-stats-table tr.unit-overall-banner.overall-stat-row td {
    padding: 7px 4px !important;
  }
  .matchup-stats-table .unit-overall-heading {
    font-size: 12.2px;
  }
  .matchup-stats-table .unit-overall-sub,
  .matchup-stats-table .overall-how-wrap .jargon-term {
    font-size: 10.5px;
  }
  .matchup-stats-table .overall-val-cell {
    font-size: 12.2px !important;
  }
  .team-stats-table td:first-child {
    min-width: 0;
  }
  .stats-expand-details {
    padding: 6px 7px;
  }
  .matchup-stats-table th,
  .matchup-stats-table td {
    padding: 4px 4px !important;
    font-size: 10.8px !important;
  }
  .matchup-stats-table td:first-child {
    min-width: 84px;
  }
}

.stats-expand-details {
  margin-top: 8px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1px solid var(--border-subtle);
  padding: 6px 10px;
  transition: border-color 0.15s ease;
}

.stats-expand-details:hover,
.stats-expand-details[open] {
  border-color: var(--gold-border);
}

.stats-expand-summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11.8px;
  font-weight: 700;
  color: var(--text-primary);
  user-select: none;
}

.stats-expand-summary::-webkit-details-marker {
  display: none;
}

.stats-expand-summary::before {
  content: '▸';
  color: var(--gold-bright);
  font-size: 11.5px;
  flex-shrink: 0;
  transition: transform 0.15s ease;
}

.stats-expand-details[open] > .stats-expand-summary::before {
  transform: rotate(90deg);
}

.stats-expand-hint {
  margin-left: auto;
  font-size: 10.5px;
  color: var(--gold-bright);
}

.stats-expand-details[open] > .stats-expand-summary .stats-expand-hint {
  opacity: 0.78;
}

.stats-expand-body {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stats-subgroup-title {
  margin-bottom: 4px;
}

.player-snaps-banner {
  background: rgba(179, 153, 93, 0.085) !important;
  border-color: rgba(179, 153, 93, 0.28) !important;
}

[data-theme="light"] .player-snaps-banner {
  background: rgba(179, 153, 93, 0.115) !important;
  border-color: rgba(140, 112, 52, 0.25) !important;
}

.player-stat-section {
  margin-top: 8px;
  padding: 11px 12px;
}

.player-stat-section .card-title {
  font-size: 14px;
}

/* Clickable #X Rank Leaderboard Modal Overlay (z-index: 125 — above Bottom Sheet, below Jargon Popover) */
.rank-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 125;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.rank-modal-backdrop[hidden] {
  display: none !important;
}

.rank-modal-card {
  width: min(480px, calc(100vw - 20px));
  max-height: min(82vh, 660px);
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--gold);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.65);
  overflow: hidden;
}

.rank-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 13px;
  background: var(--bg-card-alt);
  border-bottom: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.rank-modal-body {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 9px 11px 13px;
}

.rank-modal-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.rank-modal-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 9px;
  border-radius: 9px;
  background: var(--bg-card-alt);
  border: 1px solid var(--border-subtle);
}

.rank-modal-row.highlighted {
  background: linear-gradient(90deg, rgba(212, 25, 25, 0.2), rgba(179, 153, 93, 0.16));
  border-color: var(--gold-bright);
  box-shadow: 0 0 0 1px rgba(229, 207, 150, 0.25);
}

[data-theme="light"] .rank-modal-row.highlighted {
  background: linear-gradient(90deg, rgba(170, 0, 0, 0.11), rgba(179, 153, 93, 0.18));
  border-color: var(--scarlet);
}

.rank-modal-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.rank-modal-num {
  min-width: 34px;
  justify-content: center;
  flex-shrink: 0;
}

.rank-modal-meta {
  min-width: 0;
  flex: 1;
}

.rank-modal-name {
  font-size: 12.5px;
  line-height: 1.22;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-modal-sub {
  font-size: 10.5px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-modal-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  flex-shrink: 0;
  min-width: 68px;
}

.rank-modal-val {
  font-size: 12.8px;
  color: var(--text-primary);
}

.rank-modal-right .mini-meter-track {
  width: 58px;
  margin-top: 0;
}

.rank-modal-avg-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 4px 0;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--gold-bright);
}

.rank-modal-avg-divider::before,
.rank-modal-avg-divider::after {
  content: '';
  flex: 1;
  border-top: 1px dashed var(--gold-border);
}

/* ==========================================================================
   Coaching Tendencies & 1-on-1 Key Matchup Scouting Cards
   ========================================================================== */
.coaching-thesis-copy {
  margin: 0 0 10px;
  padding: 8px 10px;
  border-radius: 9px;
  background: var(--bg-elevated);
  border-left: 3px solid var(--gold);
  font-size: 13px;
  line-height: 1.48;
  color: var(--text-primary);
  overflow-wrap: anywhere;
}

.coaching-bullets li {
  line-height: 1.48;
  margin-bottom: 7px;
  overflow-wrap: anywhere;
}

.coaching-bullets li:last-child {
  margin-bottom: 0;
}

.key-matchup-card {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.key-matchup-phase {
  font-size: 9.8px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--gold-bright);
}

.key-matchup-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}

.key-matchup-title-row {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 1 1 200px;
  min-width: 0;
}

.key-matchup-title-row .avatar-stack {
  flex-shrink: 0;
}

.key-matchup-title {
  font-size: 13px;
  line-height: 1.32;
  color: var(--text-primary);
  min-width: 0;
  overflow-wrap: anywhere;
}

.key-matchup-adv {
  flex-shrink: 0;
}

.matchup-tape-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 3px 8px;
  padding: 5px 8px;
  border-radius: 7px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  font-size: 11px;
  line-height: 1.35;
  min-width: 0;
  overflow-wrap: anywhere;
}

.matchup-tape-sf {
  color: var(--gold-bright);
  font-weight: 700;
}

.matchup-tape-sep {
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 600;
}

.matchup-tape-opp {
  color: var(--text-secondary);
}

.key-matchup-detail {
  font-size: 12.5px;
  line-height: 1.46;
  color: var(--text-secondary);
  min-width: 0;
  overflow-wrap: anywhere;
}

.matchup-film-tell {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 3px;
  padding-top: 6px;
  border-top: 1px dashed var(--border-subtle);
  font-size: 12px;
  line-height: 1.42;
  color: var(--text-primary);
  min-width: 0;
  overflow-wrap: anywhere;
}

.film-tell-label {
  font-size: 9.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 1.5px 5.5px;
  border-radius: 4px;
  background: rgba(179, 153, 93, 0.16);
  color: var(--gold-bright);
  border: 1px solid var(--gold-border);
  flex-shrink: 0;
}

/* Injury News Cards (Player Dossier Health + Team Health Injury News) */
.injury-news-dossier-card {
  padding: 11px 12px;
  margin: 2px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.injury-news-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.injury-news-items-stack {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.injury-news-item-card,
.health-injury-news-card {
  padding: 9px 11px;
  border-radius: 10px;
  background: var(--bg-card-alt);
  border: 1px solid var(--border-subtle);
  min-width: 0;
  overflow-wrap: anywhere;
}

.health-injury-news-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
}

.health-injury-news-entry {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 9px 10px;
  border-radius: 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  min-width: 0;
}

.health-injury-player-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  width: 100%;
  padding: 2px 2px 3px;
  margin: 0;
  background: transparent;
  border: 0;
  color: var(--text-primary);
  font: inherit;
  text-align: left;
  cursor: pointer;
  min-width: 0;
  transition: opacity 0.14s ease;
}

.health-injury-player-head:hover .health-injury-player-label strong {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.health-injury-player-ident {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1 1 180px;
}

.health-injury-player-label {
  font-size: 13px;
  line-height: 1.32;
  min-width: 0;
  overflow-wrap: anywhere;
}

/* ==========================================================================
   Two-Row Unified News Filter Bar & Daily Top-News Brief Card
   ========================================================================== */
.news-subnav-bars {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pill-btn.seg-btn.news-tab-btn {
  flex: 1 1 0;
  min-width: 0;
  min-height: 30px;
  padding: 4px 6px;
  gap: 4px;
  border-radius: 7.5px;
  font-size: 11.4px;
  font-weight: 700;
  letter-spacing: -0.015em;
  white-space: nowrap;
}

@media (max-width: 430px) {
  .news-toolbar-card {
    padding: 8px 8px;
  }
  .news-toolbar-head {
    margin-bottom: 6px;
  }
  .pill-btn.seg-btn.news-tab-btn {
    padding: 4px 4px;
    font-size: 10.7px;
    gap: 3px;
    letter-spacing: -0.02em;
  }
}

@media (max-width: 382px) {
  .pill-btn.seg-btn.news-tab-btn {
    padding: 4px 3px;
    font-size: 10.4px;
  }
  .pill-btn.seg-btn.news-tab-btn .ui-icon {
    display: none;
  }
}

.daily-news-brief-card {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.subcard-panel.daily-news-brief-card {
  padding: 11px 12px;
  border-color: var(--gold-border);
}

.daily-brief-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.daily-brief-eyebrow {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold);
  margin: 0;
}

.daily-brief-age {
  font-size: 10.2px;
  line-height: 1;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.daily-brief-headline {
  margin: 0;
  font-size: 15.2px;
  font-weight: 800;
  line-height: 1.32;
  letter-spacing: -0.012em;
  color: var(--text-primary);
  overflow-wrap: anywhere;
}

.daily-brief-lead,
.daily-brief-summary {
  margin: 1px 0 3px;
}

.subcard-panel.daily-news-brief-card .daily-brief-lead,
.subcard-panel.daily-news-brief-card .daily-brief-summary {
  background: var(--bg-elevated);
}

.daily-brief-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 3px;
}

.daily-brief-sources {
  flex: 1 1 220px;
  min-width: 0;
  padding: 5px 9px;
}

.daily-brief-ask-btn {
  flex-shrink: 0;
}

.daily-brief-bullets {
  margin: 2px 0 0;
}

.brief-inline-source-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  margin: 0 1px 0 3px;
  border-radius: 999px;
  background: var(--gold-soft);
  border: 1px solid var(--gold-border);
  color: var(--gold-bright);
  text-decoration: none;
  vertical-align: -2.5px;
  line-height: 1;
  transition: background 0.14s ease, border-color 0.14s ease, color 0.14s ease, transform 0.12s ease;
}

[data-theme="light"] .brief-inline-source-link {
  background: rgba(170, 0, 0, 0.08);
  border-color: rgba(170, 0, 0, 0.28);
  color: var(--scarlet);
}

.brief-inline-source-link:hover,
.brief-inline-source-link:focus-visible {
  background: var(--gold-border);
  border-color: var(--gold-bright);
  color: var(--text-primary);
  transform: translateY(-0.5px);
}

[data-theme="light"] .brief-inline-source-link:hover,
[data-theme="light"] .brief-inline-source-link:focus-visible {
  background: rgba(170, 0, 0, 0.16);
  border-color: var(--scarlet);
  color: var(--scarlet);
}

.brief-inline-source-link .ui-icon {
  display: block;
  margin: 0;
  opacity: 0.92;
}

.daily-brief-sources-details {
  margin-top: 3px;
  padding: 5px 9px;
}

.daily-brief-sources-list {
  margin-top: 7px;
  padding-top: 7px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.daily-brief-source-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  text-decoration: none;
  color: var(--text-primary);
  min-width: 0;
  transition: border-color 0.14s ease;
}

.subcard-panel.daily-news-brief-card .daily-brief-source-row {
  background: var(--bg-elevated);
}

.daily-brief-source-row:hover {
  border-color: var(--gold-border);
}

.daily-brief-source-main {
  min-width: 0;
  flex: 1;
}

.daily-brief-source-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  font-size: 10.5px;
  color: var(--gold-bright);
  font-weight: 700;
}

.daily-brief-source-title {
  font-size: 12px;
  line-height: 1.32;
  color: var(--text-primary);
  margin-top: 1px;
  overflow-wrap: anywhere;
}

.breaking-above-brief-card {
  border-color: rgba(212, 25, 25, 0.45);
}

.gameday-live-above-card {
  border-color: rgba(179, 153, 93, 0.55);
}

/* ==========================================================================
   2027 NFL Draft: 49ers 1st-Pick Mock Draft Database & Consensus Big Board
   ========================================================================== */

.mock-freshness-banner,
.big-board-meta-note {
  font-size: 11.5px;
  line-height: 1.38;
  color: var(--text-secondary);
  background: var(--bg-card-alt);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 6px 9px;
  margin-bottom: 8px;
}

.mock-db-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mock-db-card {
  background: var(--bg-card-alt);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 9px 10px;
  min-width: 0;
  transition: border-color 0.14s ease;
}

.mock-db-card:hover {
  border-color: var(--gold-border);
}

.mock-db-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
}

.mock-db-player-head {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  flex: 1;
}

.mock-db-rank {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--gold-bright);
  flex-shrink: 0;
}

.ncaa-mini-logo {
  width: 20px;
  height: 20px;
  object-fit: contain;
  border-radius: 4px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.06);
  padding: 1px;
}

.mock-db-name-wrap {
  min-width: 0;
  flex: 1;
}

.mock-db-name-line {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 13px;
  line-height: 1.3;
}

.mock-db-player-link {
  color: var(--text-primary);
  font-size: 13.5px;
}

.mock-db-pos-school {
  font-size: 11.5px;
  color: var(--text-secondary);
}

.mock-db-count-badge {
  flex-shrink: 0;
  white-space: nowrap;
}

.mock-db-share-track {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
  margin: 6px 0;
}

.mock-db-share-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--scarlet-bright), var(--gold-bright));
}

.mock-db-sites-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 6px;
  min-width: 0;
}

.mock-db-sites-label {
  font-size: 10.5px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-right: 1px;
}

.mock-site-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-strong);
  max-width: 100%;
  transition: border-color 0.14s ease, color 0.14s ease;
}

.mock-site-chip:hover {
  border-color: var(--gold-border);
  color: var(--gold-bright);
}

.mock-site-chip-meta {
  font-size: 10px;
  color: var(--gold-bright);
}

.mock-db-drilldown {
  margin-top: 2px;
}

.mock-db-drill-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 6px;
}

.mock-db-meas-strip {
  font-size: 11px;
  color: var(--gold-bright);
  background: rgba(179, 153, 93, 0.08);
  border: 1px solid rgba(179, 153, 93, 0.22);
  border-radius: 6px;
  padding: 4px 7px;
  overflow-wrap: anywhere;
}

.mock-db-site-detail-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.mock-db-site-detail-row {
  padding: 5px 7px;
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid var(--border-subtle);
  min-width: 0;
}

.mock-db-site-detail-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 12px;
}

/* 3-Lens NFL Draft Big Board (Consensus • Likely Draft Order • PFF NFL Accuracy) */
.big-board-sources-trigger {
  cursor: pointer;
  user-select: none;
  flex-shrink: 0;
}

.big-board-lens-bar {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 2.5px;
  border-radius: 9.5px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  width: 100%;
  margin-bottom: 6px;
}

.big-board-lens-pill {
  flex: 1 1 0;
  min-width: 0;
  min-height: 30px;
  padding: 4px 5px;
  gap: 4px;
  border-radius: 7.5px;
  font-size: 11.3px;
  font-weight: 700;
  letter-spacing: -0.015em;
  white-space: nowrap;
  justify-content: center;
}

.big-board-status-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 7px;
  font-size: 11.2px;
  color: var(--text-secondary);
}

.big-board-status-left {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  min-width: 0;
}

.big-board-updated-pill {
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 999px;
  color: var(--text-muted);
  background: var(--bg-card-alt);
  border: 1px solid var(--border-subtle);
  white-space: nowrap;
}

.big-board-status-actions {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.bb-micro-btn {
  display: inline-flex;
  align-items: center;
  gap: 3.5px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 10.8px;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-card-alt);
  border: 1px solid var(--border-strong);
  cursor: pointer;
  transition: border-color 0.14s ease, color 0.14s ease;
}

.bb-micro-btn:hover {
  border-color: var(--gold-border);
  color: var(--gold-bright);
}

.bb-reset-btn {
  color: var(--gold-bright);
  border-color: var(--gold-border);
}

.bb-inline-reset {
  background: none;
  border: none;
  padding: 0;
  color: var(--gold-bright);
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

.big-board-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 7px;
}

.big-board-search-wrap {
  flex: 1 1 220px;
  min-width: 0;
}

.big-board-controls-row {
  display: flex;
  align-items: center;
  gap: 5px;
  flex: 1 1 220px;
  min-width: 0;
}

.big-board-sort-select {
  flex: 1 1 110px;
  min-width: 0;
  min-height: 35px;
  padding: 4px 8px;
  font-size: 16px;
}

.big-board-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 35px;
  padding: 4px 9px;
  font-size: 11.6px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

.big-board-filter-btn.has-active {
  border-color: var(--gold-border);
  color: var(--gold-bright);
  background: var(--gold-soft);
}

.big-board-pos-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 8px;
}

.big-board-pos-pill {
  min-height: 27px;
  padding: 3px 8.5px;
  font-size: 11.1px;
}

.big-board-filter-drawer {
  background: var(--bg-card-alt);
  border: 1px solid var(--gold-border);
  border-radius: 10px;
  padding: 9px 10px;
  margin-bottom: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bb-drawer-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bb-drawer-label {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold-bright);
}

.bb-drawer-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4.5px;
}

.big-board-desktop-thead,
.big-board-desktop-row {
  display: none;
}

.big-board-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.big-board-item {
  background: var(--bg-card-alt);
  border: 1px solid var(--border-subtle);
  border-radius: 9px;
  overflow: hidden;
  min-width: 0;
  transition: border-color 0.14s ease;
}

.big-board-item:hover {
  border-color: var(--border-strong);
}

.big-board-item[data-in-sf-window="true"] {
  border-color: rgba(179, 153, 93, 0.34);
}

.big-board-summary {
  list-style: none;
  padding: 7px 9px;
  cursor: pointer;
  min-width: 0;
}

.big-board-summary::-webkit-details-marker {
  display: none;
}

.big-board-mobile-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 7px;
  min-width: 0;
  width: 100%;
}

.big-board-left {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  flex: 1;
}

.big-board-rank-pill {
  min-width: 34px;
  justify-content: center;
  flex-shrink: 0;
}

.bb-rank-nr {
  color: var(--text-muted);
  border-style: dashed;
}

.big-board-identity {
  display: flex;
  align-items: baseline;
  gap: 5px;
  flex-wrap: wrap;
  min-width: 0;
}

.big-board-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  min-width: 0;
}

.big-board-sub {
  font-size: 11.1px;
  color: var(--text-secondary);
}

.bb-tier-inline {
  font-size: 9.8px;
  color: var(--text-muted);
  margin-left: 2px;
}

.big-board-right {
  display: inline-flex;
  align-items: center;
  gap: 4.5px;
  flex-shrink: 0;
}

.big-board-right::after {
  content: '▾';
  font-size: 11px;
  color: var(--text-muted);
  margin-left: 1px;
}

.big-board-item[open] .big-board-right::after,
.big-board-item[open] .bb-row-caret {
  content: '▴';
  color: var(--gold-bright);
  transform: rotate(180deg);
}

.bb-row-caret {
  font-size: 10.5px;
  color: var(--text-muted);
  display: inline-block;
  margin-left: 3px;
  transition: transform 0.14s ease;
}

.big-board-sf-tag {
  font-size: 9.5px;
  padding: 1px 5px;
}

.big-board-spread {
  font-size: 10.5px;
  color: var(--text-muted);
  white-space: nowrap;
}

.bb-spread-polarizing {
  color: var(--gold-bright);
  font-weight: 700;
}

.bb-spread-lock {
  color: var(--emerald);
  font-weight: 700;
}

.bb-spread-muted {
  color: var(--text-muted);
}

.bb-delta {
  display: inline-flex;
  align-items: center;
  padding: 0.5px 4.5px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.35;
  white-space: nowrap;
}

.bb-delta-pos {
  color: var(--emerald);
  background: var(--emerald-soft);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.bb-delta-neg {
  color: var(--crimson);
  background: var(--crimson-soft);
  border: 1px solid rgba(239, 68, 68, 0.28);
}

[data-theme="light"] .bb-delta-pos {
  color: #067647;
}

[data-theme="light"] .bb-delta-neg {
  color: #B42318;
}

.bb-nr-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.5px 5.5px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(128, 128, 128, 0.09);
  border: 1px dashed var(--border-strong);
}

.bb-cons-fallback {
  font-size: 10px;
  color: var(--text-muted);
}

.bb-lens-cell-wrap {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.bb-lens-num {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
}

.bb-tier-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1px 5px;
  border-radius: 5px;
  font-size: 10.2px;
  font-weight: 700;
  color: var(--text-secondary);
  background: rgba(128, 128, 128, 0.10);
  border: 1px solid var(--border-subtle);
}

.big-board-detail-body {
  padding: 7px 9px 9px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.big-board-lenses-detail-strip,
.big-board-ranks-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}

.big-board-pagination-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

/* Desktop & Tablet Portrait 8-Column Sortable Comparison Table (>= 768px & >= 500px height) */
@media (min-width: 768px) and (min-height: 500px) {
  .big-board-sort-select {
    font-size: 12.2px;
  }

  .big-board-mobile-row {
    display: none;
  }

  .big-board-desktop-thead {
    display: grid;
    grid-template-columns: 54px minmax(130px, 1.65fr) 44px minmax(85px, 1.05fr) 44px 92px 92px 66px;
    align-items: center;
    gap: 6px;
    padding: 6px 9px;
    margin-bottom: 5px;
    border-radius: 8px;
    background: var(--bg-input);
    border: 1px solid var(--border-strong);
    min-width: 0;
  }

  .big-board-desktop-row {
    display: grid;
    grid-template-columns: 54px minmax(130px, 1.65fr) 44px minmax(85px, 1.05fr) 44px 92px 92px 66px;
    align-items: center;
    gap: 6px;
    min-width: 0;
    width: 100%;
  }

  .bb-th {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
    cursor: pointer;
    user-select: none;
  }

  .bb-th.bb-th-static {
    cursor: default;
  }

  .bb-th-top {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    min-width: 0;
  }

  .bb-th-title {
    font-size: 11px;
    font-weight: 800;
    color: var(--text-secondary);
    letter-spacing: 0.01em;
    white-space: nowrap;
  }

  .bb-th.is-sorted .bb-th-title,
  .bb-th.is-sorted .bb-th-arrow {
    color: var(--gold-bright);
  }

  .bb-th-arrow {
    font-size: 10px;
    color: var(--text-muted);
  }

  .bb-th-sub {
    font-size: 9.5px;
    color: var(--text-muted);
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .bb-col {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 5px;
  }

  .bb-col-player .big-board-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .bb-col-school {
    font-size: 11.8px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
  }

  .bb-col-lens.is-active-lens .bb-lens-num {
    color: var(--gold-bright);
  }

  .bb-col-spread {
    justify-content: flex-end;
    font-size: 12px;
  }

  .bb-th.bb-col-spread {
    align-items: flex-end;
  }
}

@media (max-width: 358px) {
  .big-board-lens-pill {
    font-size: 10.5px;
    padding: 4px 3px;
    gap: 2.5px;
  }
}

.combine-blank-panel {
  border-style: dashed;
  border-color: var(--gold-border);
}

/* ============================================================================
   Salient Visual Media System (Google News × Bleacher Report × The Athletic)
   ============================================================================ */

/* Skip off-screen layout/paint for long News & Film feeds without hurting scroll smoothness */
.brief-card {
  content-visibility: auto;
  contain-intrinsic-size: auto 138px;
}

.brief-card.has-lead-hero {
  gap: 8px;
}

/* Editorial Lead Hero Photograph (Daily Top News Brief & #1 Lead Story) */
.salient-hero-banner {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 204px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: linear-gradient(135deg, rgba(170, 0, 0, 0.14), var(--bg-primary));
  text-decoration: none;
  margin: 0;
}

.salient-hero-banner.daily-brief-hero {
  margin: 8px 0 9px;
}

.salient-hero-banner.compact {
  aspect-ratio: 2.25 / 1;
  max-height: 148px;
  border-radius: 10px;
}

.salient-hero-banner.wire-hero-media {
  max-height: 196px;
  border-radius: 11px;
  margin-bottom: 2px;
}

.salient-hero-banner.img-error {
  display: none !important;
}

.salient-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  display: block;
  transition: transform 0.25s ease;
}

a.salient-hero-banner:hover .salient-hero-img {
  transform: scale(1.025);
}

.salient-hero-scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(8, 10, 16, 0.02) 45%,
    rgba(8, 10, 16, 0.68) 100%
  );
}

.salient-hero-meta {
  position: absolute;
  left: 9px;
  right: 9px;
  bottom: 7px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.salient-hero-badge {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(170, 0, 0, 0.88);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.salient-hero-credit {
  font-size: 10px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(10, 13, 20, 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 72%;
}

/* Uniform Right-Rail Salient Thumbnails across News, Home, Dossiers & Sources */
.raw-item-thumb.salient-thumb {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  text-decoration: none;
  border: 1px solid var(--border-strong);
  background: var(--bg-primary);
  transition: border-color 0.16s ease, transform 0.16s ease;
}

.raw-item-thumb.salient-thumb.thumb-lg {
  width: 84px;
  height: 84px;
  border-radius: 11px;
}

.raw-item-thumb.salient-thumb.thumb-md {
  width: 64px;
  height: 64px;
  border-radius: 10px;
}

.raw-item-thumb.salient-thumb.thumb-sm {
  width: 48px;
  height: 48px;
  border-radius: 8px;
}

a.raw-item-thumb.salient-thumb:hover {
  border-color: var(--gold-border);
}

.raw-item-thumb.salient-thumb.thumb-kind-editorial img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}

/* Stadium-Lit Player Spotlight Tile (Turns transparent ESPN headshots into editorial cards) */
.raw-item-thumb.salient-thumb.thumb-kind-player {
  background:
    radial-gradient(circle at 50% 22%, rgba(196, 30, 30, 0.44), rgba(18, 22, 32, 0.96) 76%);
  border-color: rgba(214, 182, 108, 0.34);
}

[data-theme="light"] .raw-item-thumb.salient-thumb.thumb-kind-player {
  background:
    radial-gradient(circle at 50% 20%, rgba(170, 0, 0, 0.14), rgba(240, 234, 220, 0.98) 76%);
  border-color: rgba(154, 122, 54, 0.35);
}

.raw-item-thumb.salient-thumb .salient-player-cutout {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  padding: 4px 2px 0;
  display: block;
}

/* Opponent Matchup Dual-Crest Tile (SF × OPP) */
.raw-item-thumb.salient-thumb.thumb-kind-matchup {
  background:
    linear-gradient(135deg, rgba(170, 0, 0, 0.28) 0%, rgba(18, 22, 32, 0.94) 50%, rgba(179, 153, 93, 0.2) 100%);
  border-color: rgba(214, 182, 108, 0.32);
}

[data-theme="light"] .raw-item-thumb.salient-thumb.thumb-kind-matchup {
  background:
    linear-gradient(135deg, rgba(170, 0, 0, 0.12) 0%, rgba(246, 242, 232, 0.98) 52%, rgba(179, 153, 93, 0.18) 100%);
  border-color: rgba(154, 122, 54, 0.34);
}

.salient-matchup-crests {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 10px;
}

.thumb-sm .salient-matchup-crests {
  padding-bottom: 0;
}

.salient-crest {
  width: 44%;
  height: 44%;
  object-fit: contain;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.32));
}

.salient-crest.sf {
  transform: translate(3px, -5px);
}

.salient-crest.opp {
  transform: translate(-3px, 5px);
}

.salient-crest-sep {
  width: 1px;
  height: 46%;
  background: rgba(214, 182, 108, 0.55);
  transform: rotate(22deg);
  flex-shrink: 0;
}

/* Official 49ers Podium / Editorial Emblem Tile */
.raw-item-thumb.salient-thumb.thumb-kind-team {
  background:
    radial-gradient(circle at 50% 35%, rgba(170, 0, 0, 0.3), rgba(18, 22, 32, 0.96) 78%);
  border-color: rgba(214, 182, 108, 0.3);
}

[data-theme="light"] .raw-item-thumb.salient-thumb.thumb-kind-team {
  background:
    radial-gradient(circle at 50% 35%, rgba(170, 0, 0, 0.12), rgba(244, 239, 228, 0.98) 78%);
  border-color: rgba(154, 122, 54, 0.32);
}

.salient-team-emblem {
  width: 52%;
  height: 52%;
  object-fit: contain;
  transform: translateY(-5px);
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.3));
}

.thumb-sm .salient-team-emblem {
  width: 62%;
  height: 62%;
  transform: none;
}

/* Crisp Bottom Micro-Tag Pill on Player / Matchup / Team Tiles */
.salient-thumb-chip {
  position: absolute;
  bottom: 3px;
  right: 3px;
  left: 3px;
  text-align: center;
  font-size: 8.6px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.15;
  padding: 1.5px 4px;
  border-radius: 5px;
  background: rgba(10, 13, 20, 0.78);
  color: #F4E5BE;
  border: 1px solid rgba(229, 207, 150, 0.25);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}

.thumb-kind-player .salient-thumb-chip {
  left: auto;
  padding: 1.5px 5px;
}

[data-theme="light"] .salient-thumb-chip {
  background: rgba(28, 23, 20, 0.82);
  color: #F7E8C3;
}

/* Daily Brief Sources Row with Google-News-style Right Thumbnail */
.synthesis-source-sheet-row.has-source-thumb {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

/* Home Audio & AI Overlapping Beat Podcast Show Art Strip */
.home-pod-art-stack {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  cursor: pointer;
  padding-left: 4px;
}

.home-pod-art-item {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  overflow: hidden;
  border: 1.5px solid var(--bg-card);
  background: var(--bg-primary);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.28);
  margin-left: -8px;
  flex-shrink: 0;
}

.home-pod-art-item:first-child {
  margin-left: 0;
}

.home-pod-art-item.img-error {
  display: none !important;
}

.home-pod-art-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Auto Podcast Saved Episode Visual Accents (Players + Opponent Crest) */
.episode-visual-accents {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  align-self: flex-start;
  padding-top: 2px;
}

/* Responsive Refinements across Mobile Portrait, Narrow Phones, & Desktop */
@media (min-width: 640px) {
  .raw-item-thumb.salient-thumb.thumb-lg {
    width: 96px;
    height: 78px;
  }

  .salient-hero-banner {
    max-height: 268px;
  }

  .salient-hero-banner.compact {
    max-height: 204px;
  }
}

@media (max-width: 400px) {
  .raw-item-thumb.salient-thumb.thumb-lg {
    width: 74px;
    height: 74px;
  }

  .raw-item-thumb.salient-thumb.thumb-md {
    width: 58px;
    height: 58px;
  }

  .home-pod-art-item {
    width: 24px;
    height: 24px;
    margin-left: -7px;
  }
}

@media (max-width: 350px) {
  .home-pod-art-stack {
    display: none;
  }
}

/* ==========================================================================
   High-Signal Information Digestion Upgrades (Minimalistic & Zero-Overflow)
   ========================================================================== */

/* Header Search & Adjacent Settings Buttons (High-Contrast, Unobstructed Touch Targets) */
.header-actions .icon-btn {
  min-height: 40px;
  min-width: 40px;
  padding: 0 11px;
  background: #1C2330;
  border: 1.5px solid var(--gold-border);
  color: var(--text-primary);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.22);
}
[data-theme="light"] .header-actions .icon-btn {
  background: #FFFFFF;
  border-color: rgba(140, 112, 52, 0.52);
  color: #14171C;
  box-shadow: 0 1px 4px rgba(20, 16, 8, 0.08);
}
.header-actions .icon-btn:hover,
.header-actions .icon-btn:focus-visible {
  border-color: var(--gold);
  background: var(--bg-card-alt);
}
.header-search-btn {
  padding: 0 10px;
}

/* iOS Safari & iOS 26+ Home Screen PWA: clear Apple's native half-frosted top scroll-edge & status-bar blur completely */
@supports (-webkit-touch-callout: none) {
  .top-header {
    padding-top: max(calc(env(safe-area-inset-top, 0px) + 28px), 48px);
  }
  @media (display-mode: standalone) {
    .top-header {
      padding-top: max(calc(env(safe-area-inset-top, 0px) + 28px), 84px);
    }
  }
  @media (orientation: landscape) and (max-height: 500px) {
    .top-header {
      padding-top: calc(env(safe-area-inset-top, 0px) + 6px);
    }
  }
}

@media (max-width: 350px) {
  .brand-name {
    font-size: 13.5px;
    gap: 5px;
  }
  .header-actions {
    gap: 6px;
  }
  .header-actions .icon-btn {
    min-width: 36px;
    min-height: 36px;
    padding: 0 8px;
  }
}
@media (orientation: landscape) and (max-height: 500px) {
  .header-actions .icon-btn {
    min-height: 30px;
    min-width: 34px;
    padding: 0 8px;
  }
}

/* Bottom Nav Subtle Unread Badge */
.nav-tab-btn {
  position: relative;
}

.nav-unread-dot {
  position: absolute;
  top: 4px;
  right: calc(50% - 20px);
  min-width: 15px;
  height: 15px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--scarlet-bright);
  color: #FFFFFF;
  font-size: 9px;
  font-weight: 800;
  line-height: 15px;
  text-align: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

/* Pull-to-Refresh Pill */
.pull-refresh-pill {
  margin: 0 auto 8px;
  width: fit-content;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-secondary);
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  transition: transform 0.14s ease, border-color 0.14s ease, color 0.14s ease;
}

.pull-refresh-pill.armed {
  color: var(--gold-bright);
  border-color: var(--gold-border);
}

/* Keep News Toolbar Head ultra-compact on narrow portrait screens */
.news-toolbar-actions {
  gap: 4px;
  flex-wrap: nowrap;
}

.news-toolbar-actions .btn-compact {
  padding: 4px 7px;
  font-size: 11px;
  white-space: nowrap;
}

/* Slim Sort (`Top` | `Latest`) Segmented Control (top-left of News toolbar) & optional active search strip */
.news-digest-controls {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 7px;
}

.news-sort-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  flex-wrap: wrap;
}

.news-sort-seg {
  display: inline-grid;
  grid-template-columns: auto auto;
  width: auto;
  flex-shrink: 0;
  padding: 2px;
  gap: 2px;
}

.news-sort-btn {
  min-height: 26px;
  padding: 3px 10px;
  font-size: 11.2px;
  font-weight: 700;
  white-space: nowrap;
}

.news-search-active-pill {
  min-height: 27px;
  padding: 3px 9px;
  font-size: 11px;
  gap: 5px;
}

.news-topic-chip-strip {
  display: flex;
  align-items: center;
  gap: 5px;
  overflow-x: auto;
  max-width: 100%;
  padding-bottom: 1px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.news-topic-chip-strip::-webkit-scrollbar {
  display: none;
}

.topic-chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  padding: 3.5px 9px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  font-size: 11.2px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.14s ease, border-color 0.14s ease, color 0.14s ease;
}

.topic-chip-btn.active {
  background: var(--scarlet-soft);
  border-color: var(--scarlet-bright);
  color: var(--text-primary);
}

.topic-chip-cnt {
  font-size: 10px;
  color: var(--text-muted);
}

.topic-chip-btn.active .topic-chip-cnt {
  color: var(--gold-bright);
}

/* Catch-Up Watermark Bar, Home Pill & Read/Seen Dimming */
.catchup-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 11px;
  margin-bottom: 8px;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  border: 1px solid var(--gold-border);
  font-size: 12px;
  color: var(--text-secondary);
}

.catchup-bar-text {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.new-item-dot {
  width: 6.5px;
  height: 6.5px;
  border-radius: 50%;
  background: var(--scarlet-bright);
  flex-shrink: 0;
}

.catchup-divider {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.catchup-divider::before,
.catchup-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-subtle);
}

.home-catchup-pill-row {
  display: flex;
  justify-content: flex-start;
}

.catchup-home-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--scarlet-soft);
  border: 1px solid rgba(212, 25, 25, 0.32);
  color: var(--text-primary);
  font-size: 11.5px;
  cursor: pointer;
}

/* Scoped, Non-Cascading Independent Read State (never dims nested unread Similar Stories or washes out photos) */
.brief-card.is-read-item > .wire-card-meta-row .wire-author-single-link,
.brief-card.is-read-item > .wire-card-meta-row .wire-author-label,
.player-mention-card.is-read-item > .player-mention-meta .wire-author-single-link,
.player-mention-card.is-read-item > .player-mention-meta .wire-author-label,
.home-wire-item.is-read-item > .home-wire-meta .wire-author-link,
.home-article-row.is-read-item .home-article-author,
.similar-story-row.is-read-item .source-row-author,
[data-brief-source-row].is-read-item .source-row-author {
  opacity: 0.74;
}

.brief-card.is-read-item > .wire-card-meta-row .wire-card-age::before,
.player-mention-card.is-read-item > .player-mention-meta .wire-card-age::before,
.home-wire-item.is-read-item > .home-wire-meta .home-wire-age::before,
.home-article-row.is-read-item .home-article-age::before,
.similar-story-row.is-read-item .source-row-age:not(:empty)::before,
[data-brief-source-row].is-read-item .source-row-age:not(:empty)::before {
  content: 'Read · ';
  color: var(--text-muted);
  font-weight: 600;
}

.similar-story-row.is-read-item .source-row-age:empty::before,
[data-brief-source-row].is-read-item .source-row-age:empty::before {
  content: 'Read';
  color: var(--text-muted);
  font-weight: 600;
}

.brief-card.is-read-item > .wire-card-main-row > .wire-card-body-col > .wire-card-headline,
.player-mention-card.is-read-item > .player-mention-main-row > .wire-card-body-col > .player-mention-headline,
.home-article-row.is-read-item .home-article-title {
  color: var(--text-read);
  font-weight: 500;
}

.brief-card.is-read-item > .wire-card-main-row > .wire-card-body-col > .wire-card-headline.is-tweet-body,
.player-mention-card.is-read-item > .player-mention-main-row > .wire-card-body-col > .player-mention-tweet-body,
.home-wire-item.is-read-item > .home-wire-main-row > .wire-card-body-col > .home-wire-text-link {
  color: var(--text-read);
  font-weight: 400;
}

.brief-card.is-read-item > .wire-card-main-row > .wire-card-body-col > .wire-card-summary,
.player-mention-card.is-read-item > .player-mention-main-row > .wire-card-body-col > .wire-card-summary {
  color: var(--text-muted);
}

.similar-story-row.is-read-item .source-row-headline,
[data-brief-source-row].is-read-item .source-row-headline {
  color: var(--text-read);
  font-weight: 400;
}

/* Compact Scan Density Mode */
.wire-list-compact {
  padding: 10px;
}

.brief-card.compact-wire-card {
  padding: 8px 10px;
  gap: 4px;
}

/* Chronological Full-Coverage Story Timeline */
.story-timeline-rail {
  display: flex;
  flex-direction: column;
  gap: 7px;
  border-left: 1.5px solid var(--gold-border);
  margin-left: 5px;
  padding-left: 10px;
}

.story-timeline-step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.story-timeline-dot {
  position: absolute;
  left: -14.5px;
  top: 5px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1.5px solid var(--gold);
}

.story-timeline-step.is-lead .story-timeline-dot {
  background: var(--scarlet-bright);
  border-color: var(--scarlet-bright);
}

.story-timeline-head {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  font-size: 11.2px;
}

.story-timeline-marker {
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--gold-bright);
}

.story-timeline-snippet {
  font-size: 11.8px;
  line-height: 1.38;
  color: var(--text-secondary);
}

/* Subtle Card Action Strip (Linked Article Chip) */
.wire-card-actions-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

/* Presser Takeaways Collapsible Strip */
.presser-strip-card {
  padding: 10px 13px;
}

.presser-strip-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  list-style: none;
  cursor: pointer;
}

.presser-strip-summary::-webkit-details-marker {
  display: none;
}

.presser-strip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: var(--gold-soft);
  color: var(--gold-bright);
  flex-shrink: 0;
}

.presser-strip-title {
  font-size: 12.8px;
  font-weight: 700;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.presser-strip-speakers {
  font-weight: 500;
  color: var(--text-secondary);
}

.presser-strip-meta {
  font-size: 10.5px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.presser-strip-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 9px;
  padding-top: 9px;
  border-top: 1px solid var(--border-subtle);
}

.presser-quote-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.presser-quote-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.presser-quote-body {
  font-size: 12.5px;
  line-height: 1.44;
  color: var(--text-secondary);
}

/* Directional Delta Chips (Health, Stats, Power Rankings, Playoffs) */
.delta-chip {
  display: inline-flex;
  align-items: center;
  padding: 1px 5px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.3;
  vertical-align: middle;
  white-space: nowrap;
}

.delta-chip.positive {
  background: var(--emerald-soft);
  color: var(--emerald);
}

.delta-chip.danger {
  background: var(--crimson-soft);
  color: var(--crimson);
}

/* Top-Docked, Visual-Viewport-Aware Universal Search Sheet (Zero Keyboard Obstruction on Mobile) */
.sheet-backdrop[data-sheet-mode="search"] {
  position: fixed;
  left: 0;
  right: 0;
  top: var(--vv-offset-top, 0px);
  height: var(--vv-height, 100dvh);
  bottom: auto;
  align-items: flex-start;
  justify-content: center;
  background: rgba(0, 0, 0, 0.56);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: 0;
}

.sheet-backdrop[data-sheet-mode="search"] .bottom-sheet {
  width: 100%;
  max-width: 780px;
  max-height: 100%;
  height: 100%;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  border-bottom-left-radius: 18px;
  border-bottom-right-radius: 18px;
  border-top: none;
  border-bottom: 1.5px solid var(--gold);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: 0;
}

.sheet-backdrop[data-sheet-mode="search"] .sheet-drag-handle {
  display: none;
}

.sheet-backdrop[data-sheet-mode="search"] .sheet-header {
  padding: 8px 13px;
  flex-shrink: 0;
}

.sheet-backdrop[data-sheet-mode="search"] .sheet-header .card-eyebrow {
  font-size: 9.5px;
  margin-bottom: 0;
}

.sheet-backdrop[data-sheet-mode="search"] .sheet-header .card-title {
  font-size: 15px;
}

.sheet-backdrop[data-sheet-mode="search"] .sheet-body {
  padding: 0;
  overflow: hidden;
  flex: 1;
  min-height: 0;
  gap: 0;
}

@media (min-width: 640px) {
  .sheet-backdrop[data-sheet-mode="search"] {
    padding: 20px 16px;
  }
  .sheet-backdrop[data-sheet-mode="search"] .bottom-sheet {
    height: auto;
    max-height: min(760px, calc(var(--vv-height, 100dvh) - 40px));
    border-radius: 16px;
    border: 1.5px solid var(--gold);
    padding-top: 0;
  }
}

@supports (-webkit-touch-callout: none) {
  @media (max-width: 639px) {
    .sheet-backdrop[data-sheet-mode="search"] .bottom-sheet {
      padding-top: max(calc(env(safe-area-inset-top, 0px) + 22px), 44px);
    }
  }
  @media (max-width: 639px) and (display-mode: standalone) {
    .sheet-backdrop[data-sheet-mode="search"] .bottom-sheet {
      padding-top: max(calc(env(safe-area-inset-top, 0px) + 22px), 78px);
    }
  }
  @media (orientation: landscape) and (max-height: 500px) {
    .sheet-backdrop[data-sheet-mode="search"] .bottom-sheet {
      padding-top: calc(env(safe-area-inset-top, 0px) + 4px);
    }
  }
}

html.is-virtual-keyboard-open .sheet-backdrop[data-sheet-mode="search"] .sheet-header {
  padding: 6px 12px;
}

html.is-virtual-keyboard-open .sheet-backdrop[data-sheet-mode="search"] .sheet-header .card-eyebrow {
  display: none;
}

@media (orientation: landscape) and (max-height: 500px) {
  .sheet-backdrop[data-sheet-mode="search"] .sheet-header {
    padding: 5px 12px;
  }
  .sheet-backdrop[data-sheet-mode="search"] .sheet-header .card-eyebrow {
    display: none;
  }
}

/* Universal Search Inner Layout */
.universal-search-wrap {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  height: 100%;
  width: 100%;
}

.search-sticky-controls {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 10px 13px 8px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border-subtle);
}

.universal-search-wrap .search-input-wrap {
  position: relative;
}

.universal-search-wrap .search-has-clear {
  padding-right: 38px;
}

.search-clear-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 0;
  background: var(--bg-card-alt);
  color: var(--text-muted);
  cursor: pointer;
}

.search-clear-btn[hidden] {
  display: none !important;
}

.search-active-source-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.search-active-source-bar[hidden] {
  display: none !important;
}

.search-source-active-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px 3px 10px;
  border-radius: 999px;
  background: var(--scarlet-soft);
  border: 1px solid var(--scarlet-bright);
  color: var(--text-primary);
  font-size: 11.5px;
}

.search-pill-x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.14);
  color: inherit;
  cursor: pointer;
  padding: 0;
}

[data-theme="light"] .search-pill-x {
  background: rgba(20, 23, 28, 0.1);
}

.search-source-hint {
  font-size: 11px;
  color: var(--text-muted);
}

.search-scope-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  overflow-x: auto;
  max-width: 100%;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 1px;
}

.search-scope-bar::-webkit-scrollbar {
  display: none;
}

.search-scope-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  min-height: 27px;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card-alt);
  color: var(--text-secondary);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.search-scope-pill.active {
  background: var(--scarlet-soft);
  border-color: var(--scarlet-bright);
  color: var(--text-primary);
}

.search-scope-cnt {
  font-size: 10px;
  color: var(--text-muted);
}

.search-scope-pill.active .search-scope-cnt {
  color: var(--gold-bright);
}

.search-results-pane {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 10px 13px calc(22px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.search-results-pane > * {
  flex-shrink: 0;
}

/* Autocomplete Suggestions Strip */
.search-autocomplete-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-bottom: 2px;
}

.search-ac-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--bg-card-alt);
  color: var(--text-primary);
  font-size: 12px;
  cursor: pointer;
  transition: border-color 0.14s ease, background 0.14s ease;
}

.search-ac-chip:hover,
.search-ac-chip:focus-visible {
  border-color: var(--gold);
  background: var(--bg-elevated);
}

.search-ac-chip.is-source {
  border-color: var(--gold-border);
  background: var(--gold-soft);
}

.search-ac-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 210px;
}

.search-ac-tag {
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  flex-shrink: 0;
}

.search-ac-chip.is-source .search-ac-tag {
  color: var(--gold-bright);
}

/* Spelling Autocorrect / "Did You Mean...?" Banner */
.search-spelling-banner {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--gold-soft);
  border: 1px solid var(--gold-border);
  font-size: 12px;
  color: var(--text-secondary);
}

.search-spelling-line,
.search-spelling-sub {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.search-spelling-sub {
  font-size: 11px;
  color: var(--text-muted);
}

.search-spelling-link {
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--gold-bright);
  font-weight: 700;
  font-size: 12.5px;
  text-decoration: underline;
  cursor: pointer;
}

.search-spelling-literal {
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--text-secondary);
  font-size: 11px;
  text-decoration: underline;
  cursor: pointer;
}

.search-quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.search-chip-compact {
  min-height: 29px;
  padding: 4px 10px;
  font-size: 11.8px;
}

.search-source-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 29px;
  padding: 4px 10px;
  font-size: 11.5px;
}

.search-chip-cnt {
  font-size: 10px;
  color: var(--text-muted);
}

.search-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.search-group-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.search-result-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.search-result-row {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card-alt);
  color: var(--text-primary);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.search-result-row:hover {
  border-color: var(--gold-border);
  text-decoration: none;
}

.search-result-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--gold-soft);
  color: var(--gold-bright);
  flex-shrink: 0;
}

.search-result-meta {
  min-width: 0;
  flex: 1;
}

.search-result-title {
  font-size: 12.8px;
  line-height: 1.32;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow-wrap: anywhere;
}

.search-result-snippet {
  font-size: 11.4px;
  line-height: 1.35;
  color: var(--text-secondary);
  margin-top: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow-wrap: anywhere;
}

.search-result-sub {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-fmt-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.5px 5px;
  border-radius: 4px;
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  flex-shrink: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.search-fmt-tag.is-tweet {
  border-color: rgba(179, 153, 93, 0.35);
  color: var(--gold-bright);
}

.search-fmt-tag.is-video {
  border-color: rgba(212, 25, 25, 0.35);
  color: var(--scarlet-bright);
}

mark.search-hl {
  background: rgba(231, 210, 155, 0.26);
  color: inherit;
  border-radius: 3px;
  padding: 0 1.5px;
  font-weight: 700;
}

[data-theme="light"] mark.search-hl {
  background: rgba(179, 153, 93, 0.32);
}

.search-row-arrow {
  color: var(--text-muted);
  flex-shrink: 0;
}

@media (max-width: 390px) {
  .header-actions .header-btn-label {
    display: none;
  }
}

/* Direct-Click Linked Article Preview Cards inside Tweets (Bluesky/X-inspired, zero extra hop) */
.tweet-linked-article-card {
  display: flex;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin-top: 7px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card-alt);
  color: var(--text-primary);
  text-decoration: none;
  overflow: hidden;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.tweet-linked-article-card:hover,
.tweet-linked-article-card:focus-visible {
  border-color: var(--gold-border);
  background: var(--bg-elevated);
  text-decoration: none;
}

.synthesis-source-sheet-row .tweet-linked-article-card,
.similar-story-row .tweet-linked-article-card {
  margin-top: 2px;
  background: rgba(255, 255, 255, 0.032);
}

[data-theme="light"] .synthesis-source-sheet-row .tweet-linked-article-card,
[data-theme="light"] .similar-story-row .tweet-linked-article-card {
  background: var(--bg-card);
}

.synthesis-source-sheet-row .tweet-linked-article-card:hover,
.similar-story-row .tweet-linked-article-card:hover {
  border-color: var(--gold-border);
  background: var(--bg-elevated);
}

/* Variant 1: Media-Top Stacked Preview Card (Standalone Tweet Cards with Editorial Photo) */
.tweet-linked-article-card.is-media-top {
  flex-direction: column;
}

.tweet-linked-article-card.is-media-top .tweet-linked-article-media {
  display: block;
  width: 100%;
  aspect-ratio: 2.05 / 1;
  max-height: 176px;
  overflow: hidden;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border-subtle);
}

.tweet-linked-article-card.is-media-top .tweet-linked-article-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
}

.tweet-linked-article-card.is-media-top .tweet-linked-article-body {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 9px 11px;
  min-width: 0;
}

/* Variant 2: Compact Horizontal Preview Card (Similar Stories, Home, Sources, Compact Mode & Image-less) */
.tweet-linked-article-card.is-compact {
  flex-direction: row;
  align-items: stretch;
}

.tweet-linked-article-card.is-compact .tweet-linked-article-media {
  display: block;
  width: 86px;
  min-width: 86px;
  max-width: 86px;
  flex-shrink: 0;
  overflow: hidden;
  background: var(--bg-elevated);
  border-right: 1px solid var(--border-subtle);
}

.tweet-linked-article-card.is-compact .tweet-linked-article-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 58px;
  max-height: 82px;
  object-fit: cover;
  object-position: center 22%;
}

.tweet-linked-article-card.is-compact .tweet-linked-article-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 7px 10px;
  min-width: 0;
  flex: 1;
}

.tweet-linked-article-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
  font-size: 12.6px;
  font-weight: 600;
  line-height: 1.32;
  color: var(--text-primary);
}

.tweet-linked-article-card.is-compact .tweet-linked-article-title {
  font-size: 12px;
  line-height: 1.3;
}

.tweet-linked-article-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  font-size: 11px;
  line-height: 1.2;
  color: var(--text-muted);
}

.tweet-linked-article-domain {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  flex: 1;
}

.tweet-linked-article-domain .ui-icon {
  flex-shrink: 0;
  opacity: 0.78;
}

.tweet-linked-article-domain-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tweet-linked-article-cta {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
  font-size: 10.8px;
  font-weight: 600;
  color: var(--gold-bright);
  white-space: nowrap;
}

.tweet-linked-article-card:hover .tweet-linked-article-title {
  color: var(--text-primary);
}

/* Container tweaks for Similar Stories / Brief Sources rows holding a nested Linked Article Card */
.synthesis-source-sheet-row.has-linked-article-card,
.similar-story-row.has-linked-article-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.similar-story-top-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  min-width: 0;
}

.similar-story-tweet-link {
  display: block;
  color: var(--text-primary);
  text-decoration: none;
}

.similar-story-tweet-link:hover,
.similar-story-tweet-link:focus-visible {
  color: var(--gold-bright);
  text-decoration: none;
}

.brief-card.is-read-item > .wire-card-main-row .tweet-linked-article-title,
.player-mention-card.is-read-item > .player-mention-main-row .tweet-linked-article-title,
.home-wire-item.is-read-item > .home-wire-main-row .tweet-linked-article-title,
.similar-story-row.is-read-item .tweet-linked-article-title,
[data-brief-source-row].is-read-item .tweet-linked-article-title {
  color: var(--text-read);
  font-weight: 500;
}

@media (max-width: 390px) {
  .tweet-linked-article-card.is-compact .tweet-linked-article-media {
    width: 72px;
    min-width: 72px;
    max-width: 72px;
  }

  .tweet-linked-article-card.is-media-top .tweet-linked-article-media {
    max-height: 152px;
  }
}
