:root {
  color-scheme: light dark;
  --bg: #f0ece4;
  --surface: rgba(255, 253, 248, 0.92);
  --line: rgba(49, 39, 25, 0.1);
  --text: #1a1410;
  --muted: #6b5c4c;
  --accent: #005f73;
  --accent-strong: #003845;
  --warm: #c44900;
  --shadow: 0 1px 4px rgba(44, 31, 16, 0.07), 0 4px 16px rgba(44, 31, 16, 0.06);
  --success: #2d5a20;
  --success-bg: rgba(62, 92, 43, 0.12);
  --r: 12px;
  --r-sm: 8px;
  --neon-pink: #ff2a85;
  --neon-cyan: #00f0ff;
  --neon-green: #39ff14;
  --neon-yellow: #ffe600;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", system-ui, sans-serif;
  font-size: 0.875rem;
  line-height: 1.4;
  background:
    radial-gradient(ellipse at top left, rgba(0, 95, 115, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 88% 4%, rgba(196, 73, 0, 0.09) 0%, transparent 40%),
    var(--bg);
}

a {
  color: inherit;
}

h1, h2, h3, p {
  margin-top: 0;
}

h3 {
  margin-bottom: 2px;
}

/* ─── Shell ─────────────────────────────────────────────── */

.page-shell {
  width: min(1440px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 14px 0 48px;
}

/* ─── Page header (day pages) ────────────────────────────── */

.page-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 2px 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 0;
}

.page-title {
  margin: 0;
  font-size: clamp(1.1rem, 2.5vw, 1.45rem);
  font-weight: 700;
  line-height: 1;
}

.home-link {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.home-link:hover {
  color: var(--text);
}

.page-header-nav {
  display: flex;
  gap: 14px;
  align-items: baseline;
  flex-wrap: wrap;
}

/* ─── Overview hero ───────────────────────────────────────── */

.hero {
  padding: 22px 26px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.hero h1 {
  margin-bottom: 4px;
  font-size: clamp(1.7rem, 4vw, 2.8rem);
  line-height: 1;
  letter-spacing: -0.02em;
}

.hero p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.utility-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.utility-link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 82px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.34);
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text);
}

.utility-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(0, 95, 115, 0.1);
  color: var(--accent-strong);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}

/* ─── Day nav ─────────────────────────────────────────────── */

.day-nav {
  display: flex;
  gap: 5px;
  padding: 10px 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.day-nav::-webkit-scrollbar {
  display: none;
}

.day-chip {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  padding: 4px 12px;
  font: inherit;
  font-size: 0.8rem;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  transition: background 120ms, border-color 120ms, color 120ms;
}

.day-chip[aria-current="page"] {
  border-color: transparent;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}

/* ─── Main panel ──────────────────────────────────────────── */

.main-panel {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 14px 16px;
}

.spotlight-panel {
  margin-bottom: 12px;
  min-height: 198px;
}

.spotlight-panel.is-empty {
  visibility: hidden;
  pointer-events: none;
}

.spotlight-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.spotlight-head h2 {
  margin: 0;
  font-size: 0.98rem;
}

.tooltip-anchor {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: help;
}

.tooltip-anchor::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  width: min(320px, 72vw);
  padding: 9px 10px;
  border-radius: 10px;
  background: rgba(26, 20, 16, 0.96);
  color: #fff7eb;
  font-size: 0.74rem;
  line-height: 1.35;
  font-weight: 500;
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity 120ms ease, transform 120ms ease;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  z-index: 10;
}

.tooltip-anchor:hover::after,
.tooltip-anchor:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}


.spotlight-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.watchlist-panel {
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid rgba(0, 95, 115, 0.16);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(244, 250, 251, 0.9), rgba(234, 246, 248, 0.88));
}

.favorite-tracker-panel {
  margin-bottom: 10px;
  padding: 8px 10px;
  border: 1px solid rgba(0, 95, 115, 0.14);
  border-radius: 14px;
  background: rgba(248, 251, 252, 0.9);
}

.favorite-tracker-head {
  margin-bottom: 6px;
}

.favorite-tracker-head h2,
.favorite-tracker-head .eyebrow {
  margin: 0;
}

.favorite-tracker-list {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.favorite-team-card {
  flex: 0 0 auto;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid rgba(0, 95, 115, 0.12);
  background: rgba(255, 255, 255, 0.86);
}

.favorite-team-card.is-live {
  border-color: rgba(0, 95, 115, 0.24);
  background: rgba(237, 248, 250, 0.94);
}

.favorite-team-card.is-final {
  border-color: rgba(90, 158, 72, 0.18);
}

.favorite-team-ticker,
.favorite-team-name {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.favorite-team-name strong,
.favorite-team-record,
.favorite-team-meta,
.favorite-team-status,
.favorite-team-detail {
  margin: 0;
}

.favorite-team-name strong {
  font-size: 0.72rem;
  line-height: 1.15;
}

.favorite-team-name .team-logo,
.favorite-team-name picture .team-logo {
  width: 18px;
  height: 18px;
}

.favorite-team-record {
  font-size: 0.64rem;
  font-weight: 700;
  color: var(--accent-strong);
  white-space: nowrap;
}

.favorite-team-meta {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  padding-left: 6px;
  border-left: 1px solid rgba(0, 95, 115, 0.14);
}

.favorite-team-status {
  font-size: 0.69rem;
  font-weight: 800;
  color: var(--text);
}

.favorite-team-detail {
  font-size: 0.64rem;
  color: var(--muted);
}

.watchlist-head,
.spotlight-actions,
.watchlist-card-top,
.matchup-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}

.watchlist-head {
  margin-bottom: 8px;
}

.watchlist-head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.watchlist-export-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.watchlist-export-button {
  border: 1px solid rgba(0, 95, 115, 0.16);
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--accent-strong);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
}

.watchlist-head h2,
.watchlist-card h3,
.matchup-head h3 {
  margin: 0;
}

.watchlist-note {
  margin: 0;
  font-size: 0.74rem;
  color: var(--muted);
}

.watchlist-list {
  display: grid;
  gap: 8px;
}

.watchlist-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.watchlist-summary-stat {
  margin: 0;
  font-size: 0.72rem;
  color: var(--muted);
}

.watchlist-summary-stat strong {
  color: var(--accent-strong);
}

.watchlist-plan {
  display: flex;
  gap: 6px;
  align-items: stretch;
  overflow-x: auto;
  padding-bottom: 2px;
}

.watchlist-plan-wrap {
  display: grid;
  gap: 4px;
}

.watchlist-plan-wrap.is-hidden {
  display: none;
}

.watchlist-plan-labels {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.66rem;
  color: var(--muted);
}

.watchlist-plan-track {
  position: relative;
}

.watchlist-plan-segment {
  min-width: 0;
  padding: 6px 9px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.watchlist-plan-segment-event {
  background: rgba(0, 95, 115, 0.12);
  color: var(--accent-strong);
}

.watchlist-plan-segment-gap {
  background: rgba(255, 183, 3, 0.14);
  color: #a25a00;
}

.watchlist-plan-slice,
.watchlist-plan-next {
  position: absolute;
  top: -2px;
  bottom: -2px;
  width: 0;
  pointer-events: none;
}

.watchlist-plan-slice::before,
.watchlist-plan-next::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 2px;
  border-radius: 999px;
}

.watchlist-plan-slice::before {
  background: rgba(196, 73, 0, 0.9);
}

.watchlist-plan-next::before {
  background: rgba(0, 95, 115, 0.9);
}

.watchlist-plan-slice-label,
.watchlist-plan-next-label {
  position: absolute;
  top: -18px;
  left: 6px;
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  border-radius: 999px;
  white-space: nowrap;
  font-size: 0.62rem;
  font-weight: 700;
}

.watchlist-plan-slice-label {
  background: rgba(255, 244, 230, 0.96);
  color: #b35c00;
}

.watchlist-plan-next-label {
  top: auto;
  bottom: -18px;
  background: rgba(236, 247, 250, 0.96);
  color: var(--accent-strong);
}

.watchlist-timeline {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  align-items: stretch;
}

.watchlist-card,
.watchlist-gap-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  align-items: start;
  padding: 9px;
  border-radius: 12px;
  cursor: pointer;
  min-width: 218px;
  max-width: 218px;
}

.watchlist-card {
  border: 1px solid rgba(0, 95, 115, 0.14);
  background: rgba(255, 255, 255, 0.78);
}

.watchlist-gap-card {
  border: 1px dashed rgba(196, 73, 0, 0.28);
  background: rgba(255, 248, 235, 0.82);
}

.watchlist-timeline-rail {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 18px;
}

.watchlist-timeline-rail::after {
  content: "";
  position: absolute;
  left: calc(100% + 4px);
  top: 50%;
  width: 16px;
  height: 1px;
  background: rgba(0, 95, 115, 0.14);
}

.watchlist-timeline > :last-child .watchlist-timeline-rail::after {
  display: none;
}

.watchlist-time-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(0, 95, 115, 0.12);
  color: var(--accent-strong);
  font-size: 0.72rem;
  font-weight: 700;
}

.watchlist-time-badge-gap {
  background: rgba(255, 183, 3, 0.14);
  color: #a25a00;
}

.watchlist-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(0, 95, 115, 0.08);
}

.watchlist-dot-gap {
  background: #d97706;
  box-shadow: 0 0 0 5px rgba(255, 183, 3, 0.12);
}

.watchlist-timeline-body {
  min-width: 0;
}

.watchlist-time,
.watchlist-sport,
.watchlist-meta {
  margin: 0;
}

.watchlist-sport {
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.watchlist-card h3 {
  margin-top: 0;
  font-size: 0.8rem;
  line-height: 1.2;
}

.watchlist-meta {
  margin-top: 2px;
  font-size: 0.7rem;
  color: var(--muted);
}

.watchlist-order,
.watchlist-channel,
.watchlist-local {
  margin: 0;
}

.watchlist-order {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--accent-strong);
}

.watchlist-channel {
  margin-top: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text);
}

.watchlist-local {
  margin-top: 2px;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--accent-strong);
}

.watchlist-gap-label {
  margin: 0 0 4px;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #a25a00;
}

.watchlist-gap-card h3 {
  margin: 0;
  font-size: 0.96rem;
  color: #8f4b00;
}

.watchlist-toggle {
  flex: 0 0 auto;
  border: 1px solid rgba(0, 95, 115, 0.16);
  border-radius: 999px;
  padding: 2px 8px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.9rem;
  line-height: 1.2;
  cursor: pointer;
}

.watchlist-toggle.is-active {
  border-color: rgba(196, 73, 0, 0.24);
  background: rgba(255, 183, 3, 0.12);
  color: #b35c00;
}

.watchlist-toggle-spotlight {
  margin-top: -2px;
}

.spotlight-card {
  text-align: left;
  padding: 10px;
  border: 1px solid rgba(0, 95, 115, 0.16);
  border-radius: 12px;
  background: rgba(244, 250, 251, 0.88);
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.spotlight-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.spotlight-rank,
.spotlight-sport,
.spotlight-meta,
.spotlight-score {
  margin: 0;
}

.spotlight-rank {
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.spotlight-score {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--accent-strong);
}

.spotlight-sport {
  margin-top: 4px;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.spotlight-card h3 {
  margin: 6px 0;
  font-size: 0.84rem;
  line-height: 1.2;
}

.spotlight-card .importance-tags {
  margin: 0 0 6px;
}

.spotlight-buzz {
  margin: 0 0 4px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent-strong);
}

.spotlight-buzz-wrap {
  position: relative;
  margin-bottom: 4px;
}

.spotlight-buzz-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.spotlight-buzz-button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid rgba(0, 95, 115, 0.2);
  border-radius: 999px;
  padding: 2px 8px;
  background: rgba(0, 95, 115, 0.06);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--accent-strong);
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
}

.spotlight-buzz-button:hover {
  background: rgba(0, 95, 115, 0.12);
  border-color: var(--accent-strong);
}

.spotlight-buzz-button.is-news {
  background: rgba(10, 147, 150, 0.08);
  border-color: rgba(10, 147, 150, 0.25);
  color: #086b6e;
}

.spotlight-buzz-button.is-news:hover {
  background: rgba(10, 147, 150, 0.16);
}

.spotlight-buzz-button.is-reddit {
  background: rgba(238, 155, 0, 0.08);
  border-color: rgba(238, 155, 0, 0.25);
  color: #a35300;
}

.spotlight-buzz-button.is-reddit:hover {
  background: rgba(238, 155, 0, 0.16);
}

.spotlight-buzz-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(155, 34, 38, 0.08);
  color: #9b2226;
}

.spotlight-buzz-link {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--accent-strong);
  text-decoration: none;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(0, 95, 115, 0.18);
  background: rgba(0, 95, 115, 0.04);
  transition: all 0.15s ease;
}

.spotlight-buzz-link:hover {
  background: rgba(0, 95, 115, 0.12);
  text-decoration: none;
}

.spotlight-buzz-quiet {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--muted);
}

.spotlight-buzz-quiet-link {
  font-size: 0.68rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.spotlight-buzz-quiet-link:hover {
  text-decoration: underline;
}

.spotlight-popover-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 6px 8px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--line);
  font-size: 0.72rem;
}

.spotlight-popover-head strong {
  font-size: 0.72rem;
  color: var(--text);
}

.spotlight-popover-head a {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.68rem;
  font-weight: 600;
}

.spotlight-popover-head a:hover {
  text-decoration: underline;
}

.spotlight-chatter-popover {
  position: absolute;
  left: 0;
  top: calc(100% + 6px);
  width: min(340px, 70vw);
  max-height: 240px;
  overflow: auto;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 253, 248, 0.98);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
  z-index: 8;
}

.spotlight-thread-link {
  display: block;
  padding: 8px;
  border-radius: 10px;
  text-decoration: none;
}

.spotlight-thread-link:hover {
  background: rgba(0, 95, 115, 0.06);
}

.spotlight-thread-link strong,
.spotlight-thread-link span,
.spotlight-thread-empty {
  display: block;
}

.spotlight-thread-link strong {
  font-size: 0.72rem;
  line-height: 1.25;
}

.spotlight-thread-link span,
.spotlight-thread-empty {
  margin-top: 2px;
  font-size: 0.68rem;
  color: var(--muted);
}

.spotlight-meta {
  font-size: 0.74rem;
  color: var(--muted);
}

.spotlight-meter {
  margin-top: 8px;
  height: 6px;
  border-radius: 999px;
  background: rgba(49, 39, 25, 0.1);
  overflow: hidden;
}

.spotlight-meter-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8ed8e8, #3fa7c4, var(--accent));
}

.spotlight-card.is-top-hype {
  border-color: rgba(196, 73, 0, 0.44);
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 153, 0, 0.24), transparent 32%),
    radial-gradient(circle at 0% 100%, rgba(196, 73, 0, 0.18), transparent 38%),
    rgba(255, 244, 230, 0.96);
  box-shadow: 0 8px 24px rgba(196, 73, 0, 0.16);
}

.spotlight-card.is-top-hype .spotlight-rank {
  font-size: 0.72rem;
}

.spotlight-card.is-top-hype .spotlight-meter-fill {
  background: linear-gradient(90deg, #ffd166, #ff8c42, #d9480f);
}

.spotlight-card.is-high-hype {
  border-color: rgba(215, 106, 24, 0.34);
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 184, 108, 0.2), transparent 34%),
    rgba(255, 248, 238, 0.95);
}

.spotlight-card.is-high-hype .spotlight-rank,
.spotlight-card.is-high-hype .spotlight-score {
  color: #b65311;
}

.spotlight-card.is-high-hype .spotlight-sport,
.spotlight-card.is-high-hype .spotlight-meta {
  color: #926040;
}

.spotlight-card.is-high-hype .spotlight-buzz {
  color: #9a4710;
}

.spotlight-card.is-high-hype .spotlight-meter-fill {
  background: linear-gradient(90deg, #ffd28a, #ff9a52, #d76a18);
}

.spotlight-card.is-favorite-game {
  box-shadow: inset 0 0 0 1px rgba(0, 95, 115, 0.16), var(--shadow);
}

.spotlight-card.is-low-hype {
  border-color: rgba(0, 95, 115, 0.22);
  background:
    radial-gradient(circle at 100% 0%, rgba(125, 216, 240, 0.16), transparent 34%),
    rgba(236, 247, 250, 0.96);
}

.spotlight-card.is-low-hype .spotlight-rank,
.spotlight-card.is-low-hype .spotlight-score {
  color: #0d6c82;
}

.spotlight-card.is-low-hype .spotlight-sport,
.spotlight-card.is-low-hype .spotlight-meta {
  color: #467b88;
}

.spotlight-card.is-low-hype .spotlight-buzz {
  color: #2d8096;
}

.spotlight-card.is-low-hype .spotlight-meter-fill {
  background: linear-gradient(90deg, #bdeaf4, #7dd8f0, #3fa7c4);
}

/* ─── Recap mode cards ─────────────────────────────────────── */

.spotlight-card.is-recap {
  border-color: rgba(0, 95, 115, 0.18);
  background: rgba(244, 250, 251, 0.92);
}

.spotlight-card.is-recap.is-top-story {
  border-color: rgba(0, 95, 115, 0.34);
  background:
    radial-gradient(circle at 100% 0%, rgba(62, 190, 220, 0.14), transparent 36%),
    rgba(238, 248, 252, 0.97);
  box-shadow: 0 4px 16px rgba(0, 95, 115, 0.12);
}

.spotlight-card.is-recap.is-favorite-game {
  border-color: rgba(0, 95, 115, 0.38);
  box-shadow: inset 0 0 0 1px rgba(0, 95, 115, 0.16), var(--shadow);
}

.recap-final-score {
  margin: 4px 0 6px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.recap-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0 0 6px;
}

.recap-label {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(0, 95, 115, 0.1);
  color: var(--accent-strong);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ─── Toolbar ─────────────────────────────────────────────── */

.app-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.toolbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.toolbar-search {
  flex: 1 1 280px;
  min-width: 220px;
}

.schedule-search {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  padding: 7px 12px;
  color: var(--text);
  font: inherit;
  font-size: 0.8rem;
}

.schedule-search::placeholder {
  color: var(--muted);
}

.team-schedule-panel {
  display: grid;
  gap: 10px;
}

.team-schedule-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.team-schedule-head h2,
.team-schedule-head .eyebrow {
  margin: 0;
}

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

.team-event-list {
  gap: 4px;
}

.team-season-actions {
  padding: 4px 0 8px;
}

.season-export-btn {
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: transparent;
  color: var(--accent);
  padding: 6px 16px;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.season-export-btn:hover {
  background: var(--accent);
  color: #fff;
}

.season-export-btn:disabled {
  opacity: 0.55;
  cursor: default;
}

.team-day-divider {
  margin: 8px 0 2px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.event-detail-panel {
  display: grid;
  gap: 16px;
}

.event-detail-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 8px;
}

.event-detail-title-group {
  flex: 1;
}

.event-detail-venue-image {
  flex: 0 0 240px;
  height: 140px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
}

.venue-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 600px) {
  .event-detail-head {
    flex-direction: column-reverse;
  }
  .event-detail-venue-image {
    width: 100%;
    flex: 0 0 auto;
  }
}

.event-detail-subhead {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.95rem;
}

.event-detail-top-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 16px;
}

@media (max-width: 768px) {
  .event-detail-top-grid {
    grid-template-columns: 1fr;
  }
}

.event-detail-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.event-detail-card h3 {
  margin: 0 0 16px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-strong);
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}

/* Lineups Side-by-Side */
.lineup-side-by-side {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.lineup-team-column {
  min-width: 0;
}

.lineup-team-title {
  margin: 0 0 12px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.lineup-team-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.lineup-team-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: rgba(0, 95, 115, 0.04);
  border-radius: 8px;
  font-size: 0.9rem;
}

.lineup-subgroup {
  margin-bottom: 14px;
}

.lineup-subgroup-title {
  margin: 0 0 6px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.lineup-team-list-compact {
  gap: 6px;
}

.lineup-team-list-compact li {
  padding: 6px 10px;
  font-size: 0.82rem;
}

.lineup-player-info {
  display: flex;
  flex-direction: column;
}

.lineup-player-name {
  font-weight: 600;
  color: var(--text);
}

.lineup-player-pos {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  font-weight: 700;
}

.lineup-player-order {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  background: rgba(0, 95, 115, 0.1);
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
}

/* Stats Side-by-Side */
.stats-group {
  margin-bottom: 24px;
}

.stats-group:last-child {
  margin-bottom: 0;
}

.stats-group-title {
  margin: 0 0 16px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stats-side-by-side {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.stats-team-column {
  min-width: 0;
}

.stats-team-title {
  margin: 0 0 12px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}

.stats-team-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}

.stats-team-list li {
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
}

.stats-team-list li:last-child {
  border-bottom: none;
}

.stat-leader-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 2px;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--muted);
}

.stat-value {
  font-weight: 700;
  color: var(--text);
}

.stat-athlete {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
}

.no-data-msg {
  color: var(--muted);
  font-style: italic;
  margin: 0;
}

/* ─── Matchup Scoreboard Banner ─── */
.matchup-scoreboard-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 8px;
}

.scoreboard-team {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  min-width: 0;
}

.scoreboard-team.away-team {
  justify-content: flex-start;
}

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

.scoreboard-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  flex: 0 0 64px;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.12));
}

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

.scoreboard-team-name {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.scoreboard-team-record {
  margin: 4px 0 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}

.scoreboard-team-score {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--text);
  min-width: 40px;
  text-align: center;
}

.scoreboard-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 0 0 280px;
  gap: 6px;
}

.scoreboard-vs {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.05);
  padding: 3px 12px;
  border-radius: 999px;
}

.scoreboard-time {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}

.scoreboard-status-badge {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--accent-strong);
  background: rgba(0, 95, 115, 0.08);
  padding: 2px 8px;
  border-radius: 4px;
}

.scoreboard-venue {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.scoreboard-watch-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 6px;
}

.watch-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.watch-btn:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}

.watch-btn-prime {
  background: #00a8e1;
  color: #ffffff !important;
}

.watch-btn-netflix {
  background: #e50914;
  color: #ffffff !important;
}

.watch-btn-peacock {
  background: #008779;
  color: #ffffff !important;
}

.watch-btn-youtubetv {
  background: #ff0000;
  color: #ffffff !important;
}

.watch-btn-espnplus {
  background: #d62828;
  color: #ffffff !important;
}

.watch-btn-appletv {
  background: #2b2b2b;
  color: #ffffff !important;
}

.watch-channel-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(0, 95, 115, 0.1);
  color: var(--accent-strong);
}

@media (max-width: 768px) {
  .matchup-scoreboard-card {
    flex-direction: column;
    padding: 16px;
    gap: 16px;
  }
  .scoreboard-team.home-team {
    flex-direction: row-reverse;
    text-align: left;
    justify-content: flex-start;
  }
  .scoreboard-center {
    order: -1;
    width: 100%;
    flex: 1;
  }
}

/* ─── Matchup Predictor ─── */
.predictor-block {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.predictor-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.predictor-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.predictor-bar-container {
  height: 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
  overflow: hidden;
  display: flex;
}

.predictor-bar-fill.away-fill {
  background: var(--accent);
  transition: width 0.4s ease;
}

.predictor-bar-fill.home-fill {
  background: var(--warm);
  transition: width 0.4s ease;
}

.predictor-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 0.82rem;
  font-weight: 700;
}

.predictor-labels .away {
  color: var(--accent);
}

.predictor-labels .home {
  color: var(--warm);
}

/* ─── Injury Report ─── */
.injury-side-by-side {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.injury-team-column {
  min-width: 0;
}

.injury-team-title {
  margin: 0 0 10px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}

.injury-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.injury-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.03);
  border-radius: 8px;
  font-size: 0.88rem;
  gap: 10px;
}

.injury-player-meta {
  display: flex;
  flex-direction: column;
}

.injury-player-name {
  font-weight: 600;
  color: var(--text);
}

.injury-player-desc {
  font-size: 0.76rem;
  color: var(--muted);
}

.injury-badge {
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.injury-badge.out {
  background: rgba(229, 9, 20, 0.15);
  color: #c90812;
}

.injury-badge.doubtful {
  background: rgba(230, 81, 0, 0.15);
  color: #d84315;
}

.injury-badge.questionable {
  background: rgba(245, 127, 23, 0.18);
  color: #bf360c;
}

.injury-badge.ir {
  background: rgba(106, 27, 154, 0.15);
  color: #6a1b9a;
}

/* ─── Overview Structured Layout ─── */
.overview-headline {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 8px;
  color: var(--text);
}

.overview-body {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text);
  margin-bottom: 12px;
}

.overview-facts {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 6px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.overview-fact-item {
  font-size: 0.84rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.overview-fact-item strong {
  color: var(--text);
}

.overview-buzz-note {
  margin-top: 10px;
  padding: 6px 10px;
  background: rgba(196, 73, 0, 0.08);
  border-left: 3px solid var(--warm);
  border-radius: 4px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--warm);
}

.matchup-spotlight-box {
  padding: 16px 20px;
  background: rgba(0, 95, 115, 0.04);
  border-radius: 12px;
  border-left: 4px solid var(--accent);
}

.matchup-spotlight-text {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text);
  margin: 0;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.filter-chip {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  padding: 4px 12px;
  font: inherit;
  font-size: 0.8rem;
  color: var(--muted);
  cursor: pointer;
  transition: background 120ms, border-color 120ms, color 120ms;
}

.filter-chip.is-active {
  border-color: transparent;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}

.filter-chip-free {
  border-color: rgba(90, 158, 72, 0.35);
  color: var(--success);
}

.filter-chip-free.is-active {
  background: var(--success);
  border-color: transparent;
  color: #fff;
}

.jump-now-button {
  border: none;
  border-radius: 999px;
  background: var(--warm);
  color: #fff;
  padding: 5px 14px;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

.favorites-button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  padding: 5px 14px;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.favorites-button.is-active {
  border-color: transparent;
  background: var(--text);
  color: #fff;
}

.favorites-summary {
  margin: 0 0 10px;
  font-size: 0.76rem;
  color: var(--accent-strong);
}

/* ─── Status + progress ───────────────────────────────────── */

.status-banner {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 14px;
  padding: 10px 14px 10px 16px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--r-sm);
  background: rgba(0, 95, 115, 0.04);
}

.status-banner:empty,
.status-banner[hidden] {
  display: none !important;
}

.status-banner-main {
  line-height: 1.35;
}

.status-banner-nextup {
  margin-top: 7px;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--accent-strong);
}

.conflict-panel {
  margin-bottom: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(196, 107, 0, 0.18);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 248, 237, 0.94), rgba(255, 252, 247, 0.96));
}

.conflict-head h2,
.conflict-head .eyebrow {
  margin: 0;
}

.conflict-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.conflict-list {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.conflict-panel.is-collapsed .conflict-list {
  display: none;
}

.conflict-card {
  padding: 8px 10px;
  border: 1px solid rgba(196, 107, 0, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
}

.conflict-card-top,
.conflict-order {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.conflict-window,
.conflict-count,
.conflict-suggestion {
  margin: 0;
}

.conflict-window {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--warm);
}

.conflict-count {
  font-size: 0.73rem;
  color: var(--muted);
}

.conflict-suggestion {
  margin-top: 4px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text);
}

.conflict-order {
  margin-top: 0;
  padding-top: 7px;
}

.conflict-game-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  border: 1px solid rgba(0, 95, 115, 0.12);
  border-radius: 999px;
  padding: 5px 10px 5px 6px;
  background: rgba(244, 250, 251, 0.95);
  color: inherit;
  cursor: pointer;
  text-align: left;
  font: inherit;
}

.conflict-game-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  flex: 0 0 auto;
}

.conflict-game-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.conflict-game-copy strong {
  font-size: 0.76rem;
  line-height: 1.15;
}

.conflict-game-copy span {
  font-size: 0.68rem;
  color: var(--muted);
  line-height: 1.15;
}

.progress-card {
  margin-bottom: 10px;
}

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

.progress-fill {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--warm));
  transition: width 220ms ease;
}

.progress-text {
  margin: 5px 0 0;
  font-size: 0.75rem;
  color: var(--muted);
}

/* ─── Event list ──────────────────────────────────────────── */

.event-list {
  display: grid;
  gap: 2px;
  position: relative;
  overflow: visible;
}

.hour-divider {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 22px;
  margin: 8px 0 2px;
}

.hour-divider-tick {
  position: absolute;
  left: -56px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  text-align: right;
}

.hour-divider-line {
  display: block;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(0, 95, 115, 0.26), rgba(0, 95, 115, 0.06));
}

.schedule-row {
  display: grid;
  grid-template-columns: 78px 82px minmax(230px, 1.3fr) 260px 185px;
  gap: 12px;
  align-items: center;
  padding: 9px 10px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  transition: background 100ms, border-color 100ms;
}

.schedule-row[role="link"] {
  cursor: pointer;
}

.schedule-row:hover {
  background: rgba(0, 0, 0, 0.028);
  border-color: var(--line);
}

.schedule-row.now-target {
  background: rgba(196, 73, 0, 0.055);
  border-color: rgba(196, 73, 0, 0.28);
}

.schedule-row.is-favorite-game {
  background: rgba(0, 95, 115, 0.05);
  border-color: rgba(0, 95, 115, 0.2);
}

.row-time,
.row-sport,
.row-matchup,
.row-watch,
.row-odds {
  min-width: 0;
}

/* Time column */
.row-time-value {
  margin: 0 0 4px;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1;
}

.row-date-value {
  margin: 0 0 4px;
  font-size: 0.71rem;
  line-height: 1.1;
  color: var(--muted);
}

/* Sport column */
.row-sport {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.event-sport {
  margin: 0;
  font-size: 0.69rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
}

/* Matchup column */
.row-matchup h3 {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.2;
}

.importance-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 4px 0 2px;
}

.importance-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid rgba(0, 95, 115, 0.14);
  background: rgba(0, 95, 115, 0.06);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--accent-strong);
  white-space: nowrap;
}

.importance-tag-spotlight {
  background: rgba(0, 95, 115, 0.08);
}

.matchup-team {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.matchup-separator {
  margin: 0 6px;
  color: var(--muted);
}

.team-logo {
  width: 16px;
  height: 16px;
  object-fit: contain;
  flex: 0 0 auto;
}

@media (prefers-color-scheme: dark) {
  /* Fallback for logos with no ESPN dark variant: add a faint white backdrop
     so dark-on-transparent logos remain visible. Only applies to bare <img>
     elements; logos wrapped in <picture> (ESPN dark variant) skip this. */
  .matchup-team > .team-logo {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    padding: 1px;
  }
}

.event-detail {
  margin: 0;
  font-size: 0.75rem;
  color: var(--muted);
}

.event-link-row {
  margin: 4px 0 0;
}

.event-bracket-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
}

.event-bracket-link:hover {
  color: var(--accent-strong);
}


.score-line {
  margin: 3px 0 0;
  font-size: 0.78rem;
  font-weight: 700;
}

.live-scoreboard {
  margin-top: 4px;
  padding: 5px 8px;
  border-radius: 10px;
  background: rgba(0, 95, 115, 0.06);
  border: 1px solid rgba(0, 95, 115, 0.12);
}

.live-scoreboard-score,
.live-scoreboard-detail {
  margin: 0;
}

.live-scoreboard-score {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--accent-strong);
}

.live-scoreboard-detail {
  margin-top: 2px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--muted);
}

.score-line.is-final {
  color: var(--success);
}

.score-line.is-live {
  color: var(--accent);
}

/* Watch column */
.row-watch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding-left: 12px;
  border-left: 1px solid var(--line);
}

/* Odds column */
.row-odds {
  padding-left: 12px;
  border-left: 1px solid var(--line);
}

/* ─── Pills ───────────────────────────────────────────────── */

.league-pill,
.status-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 2px 7px;
  font-size: 0.68rem;
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.league-pill {
  background: rgba(0, 95, 115, 0.1);
  color: var(--accent-strong);
}

.status-pill {
  background: rgba(196, 73, 0, 0.08);
  color: var(--warm);
}

.status-pill.state-in {
  background: rgba(0, 95, 115, 0.1);
  color: var(--accent-strong);
}

.status-pill.state-post {
  background: var(--success-bg);
  color: var(--success);
}

/* ─── Watch / odds text ───────────────────────────────────── */

.watch-label {
  margin: 0 0 2px;
  font-size: 0.66rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
}

.watch-value {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.2;
}

.watch-note {
  margin: 2px 0 0;
  font-size: 0.73rem;
  color: var(--muted);
}

.local-channel-note {
  color: var(--accent-strong);
  font-weight: 600;
}

.free-watch-note {
  display: inline-block;
  margin: 3px 0 0;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(90, 158, 72, 0.14);
  color: var(--success);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.youtube-watch-note {
  display: inline-block;
  margin: 3px 0 0;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(255, 0, 0, 0.12);
  color: #cc0000;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.prime-watch-note {
  display: inline-block;
  margin: 3px 0 0;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(0, 168, 225, 0.14);
  color: #00768a;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.netflix-watch-note {
  display: inline-block;
  margin: 3px 0 0;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(229, 9, 20, 0.12);
  color: #e50914;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.peacock-watch-note {
  display: inline-block;
  margin: 3px 0 0;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(0, 168, 150, 0.12);
  color: #008779;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.espnplus-watch-note {
  display: inline-block;
  margin: 3px 0 0;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(214, 40, 40, 0.12);
  color: #c92a2a;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.appletv-watch-note {
  display: inline-block;
  margin: 3px 0 0;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(120, 120, 120, 0.14);
  color: #444;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
}

/* ── Team name links inside matchup titles ── */

.matchup-team-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: inherit;
  text-decoration: none;
}

.matchup-team-link:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── Help modal (keyboard shortcuts) ── */

.help-modal-overlay[hidden] {
  display: none;
}

.help-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.46);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.help-modal {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px 28px 28px;
  max-width: 380px;
  width: 100%;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.2);
}

.help-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 20px;
}

.help-modal-head h2 {
  margin: 0;
  font-size: 1.05rem;
}

.help-modal-close {
  background: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--muted);
  padding: 3px 9px;
  line-height: 1;
}

.help-modal-close:hover {
  background: var(--line);
  color: var(--text);
}

.help-shortcut-list {
  margin: 0;
  display: grid;
  gap: 10px;
}

.help-shortcut-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.help-shortcut-row dt {
  flex: 0 0 52px;
}

.help-shortcut-row dd {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  padding: 2px 7px;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 5px;
  background: var(--bg);
  font-family: monospace;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
}

.odds-book {
  margin: 0 0 2px;
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.odds-line {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.2;
}

.odds-total {
  margin: 2px 0 0;
  font-size: 0.75rem;
  color: var(--muted);
}

/* ─── Overview grid ───────────────────────────────────────── */

.overview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.day-card {
  display: block;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.day-card:hover,
.day-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(0, 95, 115, 0.22);
  box-shadow: 0 4px 20px rgba(0, 95, 115, 0.1);
}

.day-card-tag {
  margin: 0 0 4px;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-strong);
}

.day-card h2 {
  margin: 0;
  font-size: 0.93rem;
  font-weight: 700;
  line-height: 1.2;
}

.local-guide-card p:last-child {
  margin: 6px 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.bracket-card p:last-child {
  margin: 6px 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}

/* ─── Empty state ─────────────────────────────────────────── */

.empty-state {
  padding: 28px 20px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: var(--r);
  color: var(--muted);
}

.empty-state h3 {
  margin: 0 0 4px;
  font-size: 0.95rem;
  color: var(--text);
}

.empty-state p {
  margin: 0;
  font-size: 0.85rem;
}

.local-guide-panel {
  padding: 16px 18px;
}

/* ── Header ── */
.local-guide-header {
  margin-bottom: 18px;
}

.local-guide-location {
  margin: 0 0 3px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

.local-guide-sources {
  margin: 0;
  font-size: 0.76rem;
  color: var(--muted);
}

.local-guide-sources a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── Now Playing strip ── */
.local-guide-now-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.local-guide-now-card {
  padding: 11px 13px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--bg);
  transition: border-color 120ms;
}

.local-guide-now-card.is-sport {
  border-color: var(--accent);
  background: rgba(0, 140, 168, 0.06);
}

.local-guide-now-channel {
  margin: 0 0 4px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.local-guide-now-card[data-network="cbs"] .local-guide-now-channel { color: #2563a8; }
.local-guide-now-card[data-network="nbc"] .local-guide-now-channel { color: #9333bb; }
.local-guide-now-card[data-network="fox"] .local-guide-now-channel { color: #c44900; }
.local-guide-now-card[data-network="abc"] .local-guide-now-channel { color: #1d8a3e; }

.local-guide-now-show {
  margin: 0 0 3px;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
}

.local-guide-now-card.is-sport .local-guide-now-show {
  color: var(--accent-strong);
}

.local-guide-now-time {
  margin: 0;
  font-size: 0.7rem;
  color: var(--muted);
}

/* ── Table ── */
.local-guide-table-wrap {
  overflow-x: auto;
}

.local-guide-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.local-guide-time-col {
  vertical-align: middle !important;
}

.local-guide-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 10px 10px 10px 8px;
  text-align: left;
  background: var(--surface);
  border-bottom: 2px solid var(--line);
  font-size: 0.88rem;
}

.local-guide-table thead th span {
  display: block;
  margin-top: 2px;
  font-size: 0.68rem;
  font-weight: 400;
  color: var(--muted);
}

/* Network colour accents on column headers */
.local-guide-table thead th[data-network="cbs"] { border-bottom-color: #2563a8; }
.local-guide-table thead th[data-network="nbc"] { border-bottom-color: #9333bb; }
.local-guide-table thead th[data-network="fox"] { border-bottom-color: #c44900; }
.local-guide-table thead th[data-network="abc"] { border-bottom-color: #1d8a3e; }

.local-guide-table tbody th,
.local-guide-table tbody td {
  padding: 8px 8px;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  color: var(--text);
}

/* Hour-boundary rows get a stronger top rule */
.local-guide-row.is-hour-start th,
.local-guide-row.is-hour-start td {
  border-top: 1px solid rgba(0, 0, 0, 0.12);
}

/* Current row highlight */
.local-guide-row.now-target th,
.local-guide-row.now-target td {
  background: rgba(196, 73, 0, 0.07);
}

/* "Now" badge injected by JS via data-now-label */
.local-guide-row.now-target th[data-now-label]::after {
  content: attr(data-now-label);
  display: inline-block;
  margin-left: 5px;
  padding: 1px 5px;
  border-radius: 3px;
  background: var(--warm);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  vertical-align: middle;
  animation: live-pulse 2s ease-in-out infinite;
}

.local-guide-table tbody th {
  width: 88px;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--muted);
}

/* Empty cells */
.local-guide-table tbody td:empty {
  opacity: 0.2;
}

/* Sport content */
td.local-guide-sport {
  color: var(--accent-strong);
  font-weight: 600;
}

@media (prefers-color-scheme: dark) {
  .local-guide-row.is-hour-start th,
  .local-guide-row.is-hour-start td {
    border-top-color: rgba(255, 255, 255, 0.1);
  }

  .local-guide-now-card[data-network="cbs"] .local-guide-now-channel { color: #60a5d4; }
  .local-guide-now-card[data-network="nbc"] .local-guide-now-channel { color: #c084e0; }
  .local-guide-now-card[data-network="fox"] .local-guide-now-channel { color: #e8623d; }
  .local-guide-now-card[data-network="abc"] .local-guide-now-channel { color: #4ade80; }

  .local-guide-table thead th[data-network="cbs"] { border-bottom-color: #60a5d4; }
  .local-guide-table thead th[data-network="nbc"] { border-bottom-color: #c084e0; }
  .local-guide-table thead th[data-network="fox"] { border-bottom-color: #e8623d; }
  .local-guide-table thead th[data-network="abc"] { border-bottom-color: #4ade80; }
}

.favorites-panel {
  padding: 16px 18px;
}

.settings-card {
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: rgba(244, 250, 251, 0.72);
}

.settings-label {
  display: block;
  margin: 10px 0 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.settings-select {
  width: 100%;
  max-width: 280px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: inherit;
  font: inherit;
}

.settings-toggle-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.settings-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
}

.settings-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.settings-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.76rem;
}

.settings-help {
  margin: 10px 0 0;
  font-size: 0.72rem;
  color: var(--muted);
}

.favorites-page-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.favorites-search {
  width: min(420px, 100%);
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.6);
  color: var(--text);
  font: inherit;
}

.favorites-page-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.favorites-secondary-button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  padding: 8px 12px;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.favorites-selected {
  margin-bottom: 16px;
}

.favorites-selected-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.favorites-selected-head h2,
.favorite-league-head h2 {
  margin: 0;
  font-size: 1rem;
}

.favorites-selected-head p,
.favorite-league-head p,
.favorites-empty p {
  margin: 0;
  color: var(--muted);
}

.favorites-empty {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.3);
}

.favorites-empty h2 {
  margin: 0 0 4px;
  font-size: 0.98rem;
}

.favorites-chip-list,
.favorite-team-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.favorites-league-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.favorite-league-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.34);
}

.favorite-league-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.favorite-team-chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  padding: 7px 12px;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

.favorite-team-chip.is-selected {
  border-color: transparent;
  background: var(--accent);
  color: #fff;
}

.bracket-panel {
  padding: 16px 18px;
}

.bracket-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 16px;
}

.bracket-sidebar {
  border-right: 1px solid var(--line);
  padding-right: 14px;
}

.bracket-sidebar-head {
  margin-bottom: 10px;
}

.bracket-sidebar-head h2 {
  margin: 0 0 4px;
  font-size: 0.98rem;
}

.bracket-sidebar-head p,
.bracket-copy,
.bracket-note {
  margin: 0;
  color: var(--muted);
}

.bracket-list {
  display: grid;
  gap: 8px;
}

.bracket-chip {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.38);
  color: inherit;
  cursor: pointer;
  font: inherit;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.bracket-chip:hover {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(49, 39, 25, 0.18);
  box-shadow: 0 1px 6px rgba(44, 31, 16, 0.07);
}

.bracket-chip.is-active {
  border-color: rgba(0, 95, 115, 0.3);
  background: rgba(0, 95, 115, 0.08);
  box-shadow: inset 3px 0 0 var(--accent);
}

.bracket-chip-icon {
  font-size: 1.1rem;
  line-height: 1.3;
  flex-shrink: 0;
}

.bracket-chip-info {
  flex: 1;
  min-width: 0;
}

.bracket-chip-title,
.bracket-chip-status {
  display: block;
}

.bracket-chip-title {
  font-weight: 700;
  line-height: 1.25;
}

.bracket-chip-status {
  margin-top: 4px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.bracket-chip.is-active .bracket-chip-status {
  color: var(--accent);
}

.eyebrow {
  margin: 0 0 4px;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.bracket-viewer-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.bracket-viewer-head h2 {
  margin: 0;
  font-size: 1.12rem;
}

.bracket-status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 10px;
  background: rgba(0, 95, 115, 0.1);
  color: var(--accent-strong);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.bracket-status[data-tournament-status="Seasonal"] {
  background: rgba(107, 92, 76, 0.1);
  color: var(--muted);
}

.bracket-actions {
  display: flex;
  gap: 8px;
  margin: 12px 0 8px;
  flex-wrap: wrap;
}

.bracket-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: inherit;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.82rem;
  transition: background 0.15s, border-color 0.15s, transform 0.12s, box-shadow 0.15s;
}

.bracket-link:hover {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(49, 39, 25, 0.24);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(44, 31, 16, 0.08);
}

.bracket-link.primary {
  border-color: transparent;
  background: var(--accent);
  color: #fff;
}

.bracket-link.primary:hover {
  background: var(--accent-strong);
  box-shadow: 0 4px 14px rgba(0, 95, 115, 0.3);
}

.bracket-link.schedule {
  border-color: transparent;
  background: var(--warm);
  color: #fff;
  font-size: 0.88rem;
  padding: 10px 18px;
  gap: 6px;
}

.bracket-link.schedule::before {
  content: "▶";
  font-size: 0.65em;
  opacity: 0.85;
}

.bracket-link.schedule:hover {
  background: #d95f32;
  box-shadow: 0 4px 16px rgba(196, 73, 0, 0.35);
  transform: translateY(-1px);
}

.bracket-note {
  margin-bottom: 10px;
  font-size: 0.76rem;
}

.bracket-stage-tracker {
  position: sticky;
  top: 0;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
}

.bracket-stage-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.bracket-stage-tracker strong {
  font-size: 0.8rem;
}

.bracket-detail-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    radial-gradient(circle at top right, rgba(0, 95, 115, 0.08), transparent 32%),
    rgba(255, 255, 255, 0.3);
}

.bracket-detail-title {
  margin: 0 0 6px;
  font-size: 0.9rem;
  font-weight: 700;
}

.bracket-detail-copy {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.82rem;
}

.bracket-board {
  margin-bottom: 12px;
  position: relative;
}

.bracket-board::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 48px;
  background: linear-gradient(to right, transparent, var(--surface));
  pointer-events: none;
  z-index: 6;
  border-radius: 0 var(--r) var(--r) 0;
}

.bracket-rounds {
  display: flex;
  gap: 40px;
  overflow-x: auto;
  padding: 32px 20px 24px;
  min-height: 700px;
  align-items: stretch;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}

.bracket-rounds::-webkit-scrollbar {
  height: 6px;
}

.bracket-rounds::-webkit-scrollbar-track {
  background: transparent;
}

.bracket-rounds::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 999px;
}

.bracket-round {
  flex: 0 0 240px;
  display: flex;
  flex-direction: column;
}

.bracket-round-head {
  margin-bottom: 24px;
  padding: 8px 10px 10px;
  text-align: center;
  flex: 0 0 auto;
  position: sticky;
  top: 0;
  z-index: 4;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(240, 236, 228, 0.94) 68%, rgba(240, 236, 228, 0) 100%);
  backdrop-filter: blur(4px);
}

.bracket-round-head h3 {
  font-size: 0.88rem;
  margin-bottom: 5px;
}

.bracket-round-head p {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--line);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.03em;
}

.bracket-round.is-championship-round .bracket-round-head h3 {
  color: var(--warm);
  font-size: 0.95rem;
}

.bracket-games {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  flex-grow: 1;
  position: relative;
  gap: var(--round-gap, 12px);
  padding-top: var(--round-offset, 0);
}

.bracket-game {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 10px;
  height: var(--card-min-height, 116px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  z-index: 2;
  flex: 0 0 auto;
  transition: box-shadow 0.15s, border-color 0.15s;
}

.bracket-game:hover {
  box-shadow: 0 3px 12px rgba(44, 31, 16, 0.1), 0 1px 4px rgba(44, 31, 16, 0.06);
}

.bracket-game[data-state="in"] {
  border-left: 3px solid var(--warm);
  padding-left: 8px;
}

.bracket-game[data-state="in"] .bracket-game-status::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--warm);
  margin-right: 5px;
  vertical-align: middle;
  animation: live-pulse 1.5s ease-in-out infinite;
}

@keyframes live-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

/* Base connector lines */
.bracket-game::after {
  content: "";
  position: absolute;
  right: -41px;
  width: 40px;
  border-color: rgba(49, 39, 25, 0.22);
  border-style: solid;
  border-width: 0;
  z-index: 1;
}

/* Right-side connectors (outgoing) */
.bracket-round:not(:last-child) .bracket-game::after {
  border-top-width: 2px;
  top: calc(50% - 1px);
}

/* Vertical bars to connect pairs */
.bracket-round:not(:last-child) .bracket-game:nth-child(odd)::after {
  height: var(--connector-span, 64px);
  border-right-width: 2px;
  border-top-right-radius: 4px;
}

.bracket-round:not(:last-child) .bracket-game:nth-child(even)::after {
  height: var(--connector-span, 64px);
  border-right-width: 2px;
  border-bottom-right-radius: 4px;
  top: auto;
  bottom: calc(50% - 1px);
  border-top-width: 0;
  border-bottom-width: 2px;
}

/* Incoming connectors from the left */
.bracket-round:not(:first-child) .bracket-game::before {
  content: "";
  position: absolute;
  left: -41px;
  top: calc(50% - 1px);
  width: 40px;
  border-top: 2px solid rgba(49, 39, 25, 0.22);
  z-index: 1;
}

.bracket-round.is-championship-round .bracket-games {
  justify-content: center;
}

.bracket-round.is-championship-round .bracket-game {
  border-color: rgba(196, 73, 0, 0.28);
  background:
    radial-gradient(circle at top right, rgba(255, 183, 3, 0.18), transparent 32%),
    var(--surface);
  box-shadow: 0 2px 12px rgba(196, 73, 0, 0.1), 0 1px 4px rgba(44, 31, 16, 0.07);
}

.bracket-game.is-empty {
  color: var(--muted);
}

.bracket-game.is-event-focus {
  border-color: rgba(196, 73, 0, 0.5);
  background:
    radial-gradient(circle at top right, rgba(255, 183, 3, 0.22), transparent 34%),
    var(--surface);
  box-shadow: 0 0 0 3px rgba(196, 73, 0, 0.18), 0 10px 32px rgba(196, 73, 0, 0.15);
  z-index: 3;
}

.bracket-team {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 0;
  border-top: 1px solid var(--line);
}

.bracket-team:first-child {
  border-top: none;
  padding-top: 0;
}

.bracket-seed {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.06);
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--muted);
  flex-shrink: 0;
  line-height: 1;
}

.bracket-seed.is-empty {
  background: transparent;
}

.bracket-team-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.bracket-name-text {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.83rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bracket-team-logo {
  width: 16px;
  height: 16px;
  object-fit: contain;
  flex: 0 0 auto;
}

.bracket-record {
  display: block;
  font-size: 0.63rem;
  color: var(--muted);
  margin-top: 1px;
  line-height: 1;
}

.bracket-score {
  font-size: 1rem;
  font-weight: 700;
  flex-shrink: 0;
  min-width: 22px;
  text-align: right;
  line-height: 1;
}

.bracket-team.is-winner .bracket-name-text,
.bracket-team.is-winner .bracket-score {
  color: var(--accent-strong);
}

.bracket-team.is-winner .bracket-seed {
  background: rgba(0, 95, 115, 0.12);
  color: var(--accent);
}

.bracket-fav-star {
  display: inline;
  margin-right: 3px;
  font-size: 0.7em;
  color: #e6a817;
  line-height: 1;
  vertical-align: middle;
  position: relative;
  top: -1px;
}

.bracket-game-meta {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: auto 0 0;
  padding-top: 6px;
  border-top: 1px solid var(--line);
  font-size: 0.63rem;
  color: var(--muted);
  flex-wrap: wrap;
  line-height: 1.3;
}

.bracket-meta-sep {
  opacity: 0.4;
}

.bracket-game-status {
  font-weight: 700;
}

.bracket-game[data-state="post"] .bracket-game-status {
  color: var(--success);
}

.bracket-game[data-state="in"] .bracket-game-status {
  color: var(--warm);
}

/* ─── Tournament Schedule ────────────────────────────────── */

.ts-panel {
  padding: 16px 18px;
}

.ts-total-label {
  margin: 0;
  font-size: 0.76rem;
  color: var(--muted);
  white-space: nowrap;
}

.ts-loading {
  padding: 32px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

.ts-col-labels {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 100px;
  gap: 12px;
  padding: 0 16px 6px;
  margin-bottom: 2px;
  font-size: 0.64rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}

.ts-date-group {
  margin-bottom: 20px;
}

.ts-date-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  padding-top: 20px;
}

.ts-date-label {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ts-date-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.ts-game-count {
  margin-left: auto;
  font-size: 0.68rem;
  color: var(--muted);
}

.ts-game-list {
  display: grid;
  gap: 6px;
}

/* ─── Card ────────────────────────────────────────────────── */

.ts-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 100px;
  gap: 12px;
  align-items: center;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  transition: border-color 120ms, box-shadow 120ms;
}

.ts-card:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 12px rgba(0, 95, 115, 0.14);
}

.ts-card[data-state="in"] {
  border-left: 3px solid var(--warm);
  padding-left: 13px;
}

/* ─── Time ────────────────────────────────────────────────── */

.ts-time {
  min-width: 0;
}

.ts-time-value {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.01em;
}

.ts-time-ampm {
  font-size: 0.65em;
  font-weight: 600;
  opacity: 0.65;
  margin-left: 1px;
  letter-spacing: 0;
}

.ts-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--warm);
}

.ts-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--warm);
  flex-shrink: 0;
  animation: live-pulse 1.5s ease-in-out infinite;
}

.ts-period {
  display: block;
  margin-top: 3px;
  font-size: 0.68rem;
  color: var(--muted);
}

.ts-final-text {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--success);
}

/* ─── Matchup ─────────────────────────────────────────────── */

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

.ts-matchup-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
}

.ts-round-tag {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.ts-tournament-label {
  font-size: 0.62rem;
  color: var(--muted);
  opacity: 0.7;
}

.ts-team {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.ts-logo {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
}

.ts-logo-empty {
  display: inline-block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

@media (prefers-color-scheme: dark) {
  .ts-team > .ts-logo {
    background: rgba(255, 255, 255, 0.07);
    border-radius: 3px;
    padding: 1px;
  }
}

.ts-seed {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.06);
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--muted);
  flex-shrink: 0;
  line-height: 1;
}

.ts-seed-empty {
  background: transparent;
}

.ts-name {
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}

.ts-score {
  font-size: 0.96rem;
  font-weight: 800;
  margin-left: auto;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

.ts-team.is-winner .ts-name {
  color: var(--text);
}

.ts-team.is-winner .ts-score {
  color: var(--accent-strong);
}

.ts-team:not(.is-winner) .ts-name,
.ts-team:not(.is-winner) .ts-score {
  opacity: 0.5;
}

.ts-card[data-state="pre"] .ts-team .ts-name,
.ts-card[data-state="pre"] .ts-team .ts-score,
.ts-card[data-state="in"] .ts-team .ts-name,
.ts-card[data-state="in"] .ts-team .ts-score {
  opacity: 1;
}

.ts-team.is-winner .ts-seed {
  background: rgba(0, 95, 115, 0.12);
  color: var(--accent);
}

.ts-fav-star {
  display: inline;
  margin-right: 3px;
  font-size: 0.72em;
  color: #e6a817;
  vertical-align: middle;
  position: relative;
  top: -1px;
}

/* ─── Channel badge ───────────────────────────────────────── */

.ts-channel {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.ts-channel-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  background: rgba(0, 0, 0, 0.06);
  color: var(--muted);
}

.ts-channel-badge[data-network="cbs"]  { background: #2563a8; color: #fff; }
.ts-channel-badge[data-network="nbc"]  { background: #9333bb; color: #fff; }
.ts-channel-badge[data-network="abc"]  { background: #1d8a3e; color: #fff; }
.ts-channel-badge[data-network="fox"]  { background: #c44900; color: #fff; }
.ts-channel-badge[data-network="tbs"]  { background: #0a7e8c; color: #fff; }
.ts-channel-badge[data-network="espn"] { background: #cc0000; color: #fff; }

.ts-channel-tbd {
  opacity: 0.45;
}

/* ─── Completed drawer ────────────────────────────────────── */

.ts-completed-drawer {
  margin-top: 28px;
  border-top: 1px solid var(--line);
}

.ts-completed-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 0;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

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

.ts-completed-summary::before {
  content: "▶";
  font-size: 0.65rem;
  color: var(--muted);
  transition: transform 150ms;
  flex-shrink: 0;
}

.ts-completed-drawer[open] .ts-completed-summary::before {
  transform: rotate(90deg);
}

.ts-completed-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
}

.ts-completed-count {
  font-size: 0.78rem;
  color: var(--muted);
  opacity: 0.7;
}

.ts-completed-body {
  padding-bottom: 16px;
}

/* ─── Responsive ──────────────────────────────────────────── */

@media (max-width: 1100px) {
  .schedule-row {
    grid-template-columns: 84px 92px minmax(200px, 1fr) 180px 180px;
    gap: 10px;
  }
}

@media (max-width: 900px) {
  .spotlight-head {
    display: block;
  }

  .hero-head {
    display: block;
  }

  .utility-nav {
    margin-top: 12px;
  }

  .spotlight-grid {
    grid-template-columns: 1fr;
  }

  .schedule-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .row-watch {
    padding-left: 0;
    border-left: none;
    grid-template-columns: 1fr 1fr;
  }

  .row-odds {
    padding-left: 0;
    border-left: none;
  }

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

  .favorites-league-grid {
    grid-template-columns: 1fr;
  }

  .bracket-layout {
    grid-template-columns: 1fr;
  }

  .bracket-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding-right: 0;
    padding-bottom: 12px;
  }

  .bracket-rounds {
    grid-template-columns: repeat(7, minmax(200px, 1fr));
  }

}

@media (max-width: 640px) {
  .page-shell {
    width: calc(100% - 1.5rem);
    padding-top: 10px;
  }

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

  .local-guide-table {
    font-size: 0.78rem;
  }

  .bracket-viewer-head {
    display: block;
  }

  .bracket-status {
    margin-top: 8px;
  }

  .bracket-rounds {
    grid-template-columns: 1fr;
    overflow: visible;
  }

  .bracket-round {
    min-width: 0;
  }

  .ts-col-labels {
    display: none;
  }

  .ts-card {
    grid-template-columns: 56px minmax(0, 1fr) 72px;
    padding: 10px 12px;
    gap: 8px;
  }

  .toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .toolbar-actions {
    width: 100%;
    justify-content: space-between;
  }

  .favorites-page-toolbar,
  .favorites-selected-head,
  .favorite-league-head {
    display: block;
  }

  .favorites-page-actions {
    margin-top: 8px;
  }

  .main-panel {
    padding: 12px;
  }
}

/* ─── Dark mode ───────────────────────────────────────────── */

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1115;
    --surface: rgba(26, 31, 39, 0.98);
    --line: rgba(255, 255, 255, 0.11);
    --text: #e8e2da;
    --muted: #9e9490;
    --accent: #00b4d8;
    --accent-strong: #7dd8f0;
    --warm: #e8623d;
    --shadow: 0 1px 4px rgba(0, 0, 0, 0.35), 0 4px 20px rgba(0, 0, 0, 0.25);
    --success: #5faa4a;
    --success-bg: rgba(90, 158, 72, 0.18);
  }

  body {
    background:
      radial-gradient(ellipse at top left, rgba(0, 95, 115, 0.26) 0%, transparent 60%),
      radial-gradient(ellipse at 90% 6%, rgba(196, 73, 0, 0.2) 0%, transparent 50%),
      radial-gradient(ellipse at 50% 100%, rgba(0, 60, 80, 0.15) 0%, transparent 60%),
      var(--bg);
  }

  .day-chip,
  .filter-chip {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.1);
  }

  .schedule-row:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
  }

  .schedule-row.now-target {
    background: rgba(232, 98, 61, 0.12);
    border-color: rgba(232, 98, 61, 0.35);
  }

  .schedule-row.is-favorite-game {
    background: rgba(0, 180, 216, 0.1);
    border-color: rgba(125, 216, 240, 0.32);
  }

  .league-pill {
    background: rgba(0, 180, 216, 0.18);
  }

  .status-pill {
    background: rgba(232, 98, 61, 0.18);
  }

  .status-pill.state-in {
    background: rgba(0, 180, 216, 0.18);
  }

  .spotlight-card {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(32, 38, 48, 0.95);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  }

  .spotlight-card h3 {
    color: #f6efe8;
  }

  .tooltip-anchor::after {
    background: rgba(243, 232, 220, 0.96);
    color: #1a1410;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.32);
  }

  .spotlight-sport,
  .spotlight-meta {
    color: var(--muted);
  }

  .spotlight-buzz {
    color: #8bd6e8;
  }

  .spotlight-chatter-popover {
    background: rgba(22, 26, 30, 0.98);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.34);
  }

  .spotlight-thread-link:hover {
    background: rgba(0, 180, 216, 0.08);
  }

  .spotlight-score {
    color: #ffd7b0;
  }

  .spotlight-meter {
    background: rgba(255, 255, 255, 0.08);
  }

  .spotlight-card.is-top-hype {
    border-color: rgba(255, 140, 66, 0.55);
    background:
      radial-gradient(circle at 100% 0%, rgba(255, 166, 43, 0.28), transparent 34%),
      radial-gradient(circle at 0% 100%, rgba(217, 72, 15, 0.22), transparent 38%),
      rgba(50, 26, 16, 0.97);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(255, 180, 120, 0.1);
  }

  .spotlight-card.is-high-hype {
    border-color: rgba(255, 166, 43, 0.42);
    background:
      radial-gradient(circle at 100% 0%, rgba(255, 179, 71, 0.22), transparent 34%),
      rgba(61, 35, 22, 0.96);
  }

  .spotlight-card.is-high-hype .spotlight-rank,
  .spotlight-card.is-high-hype .spotlight-score {
    color: #ffc98a;
  }

  .spotlight-card.is-high-hype .spotlight-sport,
  .spotlight-card.is-high-hype .spotlight-meta {
    color: #e8bb94;
  }

  .spotlight-card.is-high-hype .spotlight-buzz {
    color: #ffd3aa;
  }

  .spotlight-card.is-high-hype .spotlight-meter-fill {
    background: linear-gradient(90deg, #ffd166, #ff9d57, #eb6d1f);
  }

  .spotlight-card.is-low-hype {
    border-color: rgba(125, 216, 240, 0.38);
    background:
      radial-gradient(circle at 100% 0%, rgba(125, 216, 240, 0.22), transparent 34%),
      rgba(16, 34, 44, 0.97);
  }

  .spotlight-card.is-low-hype .spotlight-rank,
  .spotlight-card.is-low-hype .spotlight-score {
    color: #9fe6f7;
  }

  .spotlight-card.is-low-hype .spotlight-sport,
  .spotlight-card.is-low-hype .spotlight-meta {
    color: #8bcfe0;
  }

  .spotlight-card.is-low-hype .spotlight-buzz {
    color: #9fe6f7;
  }

  .spotlight-card.is-low-hype .spotlight-meter-fill {
    background: linear-gradient(90deg, #9fe6f7, #5dc3dd, #2698b8);
  }

  .spotlight-card.is-recap {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(28, 36, 46, 0.96);
  }

  .spotlight-card.is-recap.is-top-story {
    border-color: rgba(62, 190, 220, 0.32);
    background:
      radial-gradient(circle at 100% 0%, rgba(62, 190, 220, 0.18), transparent 36%),
      rgba(18, 32, 44, 0.98);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  }

  .recap-final-score {
    color: #f0ece6;
  }

  .recap-label {
    background: rgba(62, 190, 220, 0.14);
    color: #7dd8f0;
  }

  .bracket-chip {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
  }

  .bracket-chip:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.25);
  }

  .status-banner {
    background: rgba(0, 95, 115, 0.07);
    border-color: rgba(0, 180, 216, 0.2);
    border-left-color: var(--accent);
  }

  .bracket-link:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
  }

  .bracket-link.primary:hover {
    background: var(--accent-strong);
    box-shadow: 0 4px 14px rgba(0, 180, 216, 0.25);
  }

  .bracket-game:hover {
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.22), 0 1px 4px rgba(0, 0, 0, 0.15);
  }

  .bracket-round-head p {
    background: rgba(255, 255, 255, 0.07);
  }

  .bracket-status[data-tournament-status="Seasonal"] {
    background: rgba(107, 92, 76, 0.15);
  }

  .bracket-chip.is-active .bracket-chip-status {
    color: var(--accent);
  }

  .utility-link {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.1);
  }

  .utility-icon {
    background: rgba(0, 180, 216, 0.18);
    color: var(--accent);
  }

  .bracket-chip.is-active {
    border-color: rgba(125, 216, 240, 0.34);
    background: rgba(0, 180, 216, 0.12);
    box-shadow: inset 3px 0 0 var(--accent);
  }

  .bracket-detail-card {
    background:
      radial-gradient(circle at top right, rgba(0, 180, 216, 0.12), transparent 34%),
      rgba(255, 255, 255, 0.03);
  }

  .bracket-game {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
  }

  .bracket-game::after {
    border-color: rgba(255, 255, 255, 0.38);
    border-width: 0;
  }

  .bracket-round:not(:last-child) .bracket-game::after {
    border-top-width: 2px;
  }

  .bracket-round:not(:last-child) .bracket-game:nth-child(odd)::after {
    border-right-width: 2px;
  }

  .bracket-round:not(:last-child) .bracket-game:nth-child(even)::after {
    border-right-width: 2px;
    border-bottom-width: 2px;
    border-top-width: 0;
  }

  .bracket-round:not(:first-child) .bracket-game::before {
    border-top: 2px solid rgba(255, 255, 255, 0.38);
  }

  .bracket-seed {
    background: rgba(255, 255, 255, 0.08);
  }

  .bracket-team.is-winner .bracket-seed {
    background: rgba(0, 180, 216, 0.2);
    color: var(--accent);
  }

  .bracket-board::after {
    background: linear-gradient(to right, transparent, rgba(14, 17, 21, 0.95));
  }

  .bracket-game.is-event-focus {
    border-color: rgba(255, 183, 3, 0.6);
    background:
      radial-gradient(circle at top right, rgba(255, 183, 3, 0.25), transparent 34%),
      rgba(52, 26, 14, 0.97);
    box-shadow: 0 0 0 3px rgba(255, 183, 3, 0.22), 0 12px 32px rgba(0, 0, 0, 0.35);
  }

  .bracket-round-head {
    background: linear-gradient(180deg, var(--bg) 0%, rgba(17, 19, 22, 0.94) 68%, rgba(17, 19, 22, 0) 100%);
  }

  .bracket-round.is-championship-round .bracket-game {
    box-shadow: 0 2px 14px rgba(196, 73, 0, 0.15), 0 1px 4px rgba(0, 0, 0, 0.2);
  }

  .bracket-stage-tracker {
    background: rgba(26, 31, 39, 0.94);
    border-color: rgba(255, 255, 255, 0.12);
  }

  .favorites-search,
  .favorite-league-card,
  .favorites-empty {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
  }

  .favorites-search {
    color: var(--text);
  }

  .favorite-team-chip {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
  }

  .favorites-secondary-button,
  .favorites-button {
    border-color: rgba(255, 255, 255, 0.12);
  }

  .day-card:hover,
  .day-card:focus-visible {
    border-color: rgba(0, 180, 216, 0.35);
    box-shadow: 0 4px 24px rgba(0, 95, 115, 0.22);
  }

  .ts-card:hover {
    border-color: rgba(0, 180, 216, 0.5);
    box-shadow: 0 2px 14px rgba(0, 95, 115, 0.22);
  }

  .ts-seed {
    background: rgba(255, 255, 255, 0.08);
  }

  .ts-team.is-winner .ts-seed {
    background: rgba(0, 180, 216, 0.2);
    color: var(--accent);
  }

  .ts-channel-badge {
    background: rgba(255, 255, 255, 0.08);
  }
}

/* ── View Mode Switcher ───────────────────────────────────── */
.app-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.view-mode-toggle {
  display: inline-flex;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 3px;
  gap: 2px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.view-mode-btn {
  background: transparent;
  border: none;
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.view-mode-btn:hover {
  color: var(--text);
}

.view-mode-btn.is-active {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 1px 4px rgba(0, 95, 115, 0.25);
}

/* ── Quick Filters & Filter Bar ────────────────────────────── */
.filter-bar-wrapper {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.quick-filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.quick-filter-chip {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.quick-filter-chip:hover {
  border-color: var(--accent);
  color: var(--text);
}

.quick-filter-chip.is-active {
  background: var(--warm);
  color: #ffffff;
  border-color: var(--warm);
}

/* ── Channel / Network Group View ──────────────────────────── */
.channel-view-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 16px;
}

.channel-group-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.channel-group-header {
  padding: 12px 18px;
  background: rgba(0, 95, 115, 0.06);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.channel-group-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.channel-badge {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent-strong);
  letter-spacing: 0.02em;
}

.channel-count {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--line);
  padding: 2px 8px;
  border-radius: 12px;
}

.channel-group-events {
  display: flex;
  flex-direction: column;
}

/* ── Betting Snapshot View ─────────────────────────────────── */
.betting-snapshot-container {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.betting-filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 8px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
}

.betting-filter-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
}

.betting-filter-chip {
  background: transparent;
  border: 1px solid var(--line);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
}

.betting-filter-chip.is-active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.betting-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 14px;
}

.betting-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 16px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.betting-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  border-color: var(--accent);
}

.betting-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 600;
}

.betting-sport {
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
}

.betting-card-matchup {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.betting-team-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.95rem;
  font-weight: 600;
}

.betting-team-row.is-favorite-team .betting-team-name {
  color: var(--accent-strong);
  font-weight: 700;
}

.betting-odds-box {
  background: rgba(0, 95, 115, 0.04);
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.odds-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.odds-provider-badge {
  font-weight: 700;
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--muted);
}

.odds-summary-text {
  font-weight: 700;
  color: var(--warm);
}

.odds-total-text {
  font-size: 0.75rem;
  color: var(--muted);
}

.betting-prob-meter {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.betting-prob-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--muted);
}

.betting-prob-track {
  height: 6px;
  background: var(--line);
  border-radius: 3px;
  display: flex;
  overflow: hidden;
}

.betting-prob-fill.away-fill {
  background: var(--warm);
}

.betting-prob-fill.home-fill {
  background: var(--accent);
}

/* ── Live Pulse Indicator Animation ───────────────────────── */
@keyframes live-pulse {
  0% { opacity: 1; box-shadow: 0 0 0 0 rgba(196, 73, 0, 0.4); }
  70% { opacity: 0.85; box-shadow: 0 0 0 6px rgba(196, 73, 0, 0); }
  100% { opacity: 1; box-shadow: 0 0 0 0 rgba(196, 73, 0, 0); }
}

.status-pill.state-in {
  animation: live-pulse 2s infinite ease-in-out;
  background: var(--warm) !important;
  color: #ffffff !important;
  font-weight: 700;
}

/* ── Shortcuts Dialog ──────────────────────────────────────── */
.shortcuts-dialog {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  color: var(--text);
  padding: 0;
  max-width: 460px;
  width: calc(100% - 32px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

.shortcuts-dialog::backdrop {
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.shortcuts-modal-content {
  padding: 20px 24px;
}

.shortcuts-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.shortcuts-header h3 {
  margin: 0;
  font-size: 1.1rem;
}

.shortcuts-close-btn {
  background: transparent;
  border: none;
  font-size: 1.1rem;
  color: var(--muted);
  cursor: pointer;
}

.shortcuts-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.shortcut-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
}

kbd {
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 2px 7px;
  font-family: monospace;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-strong);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}
