/* ── Variables ─────────────────────────────────────────────────── */
@font-face {
  font-family: 'Team Spirit NF';
  src: url('./fonts/TeamSpiritNf-V8B6.ttf') format('truetype');
  font-display: swap;
}

@font-face {
  font-family: 'Playball';
  src: url('./fonts/Playball-Regular.ttf') format('truetype');
  font-display: swap;
}

@font-face {
  font-family: 'Graduate';
  src: url('./fonts/Graduate-Regular.ttf') format('truetype');
  font-display: swap;
}

:root {
  /* Screen edges content shouldn't sit under: the iPhone status bar,
     notch/Dynamic Island and home indicator. Non-zero mostly when the site
     runs as a Home Screen web app, where viewport-fit=cover and the
     black-translucent status bar (Layout.astro) let it draw under them. */
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --thumb-w: 80px;
  /* Defaults (Orioles); Layout.astro's head script overrides these per team */
  --accent: #df4601;
  --accent-text: #df4601;
  --accent-rgb: 223, 70, 1;
  --accent-dim: rgba(var(--accent-rgb), 0.13);
  --on-accent: #ffffff;
  --bg: #0d0d0d;
  --surface: #171717;
  --card: #1c1c1c;
  --border: #272727;
  --border-light: #333;
  --text: #f0f0f0;
  --text-2: #a3a3a3;
  --text-3: #6b7280;
  --header-h: 82px;
  --scores-h: 80px;
  --sidebar-w: 272px;
  --radius: 8px;
}

/* ── Light Theme ──────────────────────────────────────────────── */
[data-theme="light"] {
  --bg: #f5f5f5;
  --surface: #ffffff;
  --card: #ffffff;
  --border: #e0e0e0;
  --border-light: #d0d0d0;
  --text: #1a1a1a;
  --text-2: #555;
  --text-3: #888;
}
[data-theme="light"] .site-header { background: #fff; border-bottom-color: #e0e0e0; }
[data-theme="light"] .scores-bar {
  background: linear-gradient(180deg, #d6dde6 0%, #cdd5df 100%);
  border-bottom-color: #b8c4d0;
}
[data-theme="light"] .score-chip {
  background: #fff;
  border-color: #b8c4d0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.10);
}
[data-theme="light"] .score-chip:hover {
  box-shadow: 0 3px 8px rgba(0,0,0,0.14);
}
[data-theme="light"] .score-chip.my-team {
  background: rgba(var(--accent-rgb), 0.07);
  border-color: rgba(var(--accent-rgb), 0.28);
}
[data-theme="light"] .chip-score { color: #374151; }
[data-theme="light"] .chip-row.winner { color: #111827; }
[data-theme="light"] .chip-row.winner .chip-score { color: var(--accent); font-weight: 800; }
[data-theme="light"] .chip-team { color: #111827; }
[data-theme="light"] .chip-status.live { color: #15803d; }
[data-theme="light"] .chip-status.delay { color: #1d4ed8; }
[data-theme="light"] .chip-status.postponed { color: #dc2626; }
[data-theme="light"] .article-card { box-shadow: 0 1px 3px rgba(0,0,0,0.06); }
[data-theme="light"] .article-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
[data-theme="light"] .on-deck-card { background: #fff; }
[data-theme="light"] .ath-bundle {
  background: linear-gradient(180deg, #fff7ef 0%, #fff 100%);
  box-shadow: 0 10px 28px rgba(120,53,15,0.12);
}
[data-theme="light"] .source-popover { background: #fff; }
[data-theme="light"] .settings-panel { background: #fff; color: #1a1a1a; }

/* ── City Connect Theme (Easter Egg — "From The Stoop to The Yard") ── */
[data-theme="city-connect"] {
  --bg: #ffffff;
  --surface: #daeae1;
  --card: #c4d9cc;
  --border: #90b5a2;
  --border-light: #aacbb8;
  --text: #0e2118;
  --text-2: #1E4A30;
  --text-3: #3A6A4A;
  --orange: #C84B11;
  --orange-dim: rgba(200, 75, 17, 0.12);
}
/* Jersey pinstripes */
[data-theme="city-connect"] body {
  background-image: repeating-linear-gradient(
    90deg,
    transparent 0px, transparent 18px,
    rgba(45, 90, 61, 0.045) 18px, rgba(45, 90, 61, 0.045) 19px
  );
}
/* Header: white with jersey-collar layered bands (green | orange brick strip | mortar) */
[data-theme="city-connect"] .site-header {
  background: #ffffff;
  border-bottom: 3px solid #2D5A3D;
  /* brick-inspired tri-band: orange collar strip + subtle mortar shadow */
  box-shadow: 0 3px 0 0 #C84B11, 0 6px 0 0 rgba(45, 90, 61, 0.35);
}
/* Scores bar: Camden green with orange-brick mortar grid — horizontal courses + vertical joints */
[data-theme="city-connect"] .scores-bar {
  background-color: #1E3D29;
  background-image:
    /* horizontal mortar lines */
    repeating-linear-gradient(
      0deg, transparent 0px, transparent 17px,
      rgba(200, 75, 17, 0.16) 17px, rgba(200, 75, 17, 0.16) 18px
    ),
    /* vertical brick joints */
    repeating-linear-gradient(
      90deg, transparent 0px, transparent 34px,
      rgba(200, 75, 17, 0.10) 34px, rgba(200, 75, 17, 0.10) 35px
    );
  background-size: 35px 18px;
  border-bottom: 2px solid #C84B11;
}
/* Score chips pop white against the dark green bar */
[data-theme="city-connect"] .score-chip {
  background: rgba(255,255,255,0.93);
  border-color: rgba(255,255,255,0.22);
  color: #0e2118;
}
[data-theme="city-connect"] .score-chip:hover { border-color: #C84B11; transform: translateY(-1px); }
[data-theme="city-connect"] .score-chip[aria-expanded="true"] { border-color: #C84B11; }
[data-theme="city-connect"] .score-chip.my-team {
  border-left: 3px solid #2D5A3D;
  background: rgba(255,255,255,0.97);
}
[data-theme="city-connect"] .chip-score { color: #1A3826; }
[data-theme="city-connect"] .chip-status.final { color: #4A7A59; }
[data-theme="city-connect"] .chip-row.winner { color: #0e2118; }
[data-theme="city-connect"] .chip-row.winner .chip-score { color: #C84B11; font-weight: 800; }
[data-theme="city-connect"] .chip-status.preview { color: #2D5A3D; }
/* Article cards: jersey piping left stripe */
[data-theme="city-connect"] .article-card {
  background: #ffffff;
  border-left: 3px solid rgba(45, 90, 61, 0.28);
}
[data-theme="city-connect"] .article-card:hover {
  border-color: #2D5A3D;
  border-left-color: #2D5A3D;
  box-shadow: 0 8px 24px rgba(45,90,61,0.16);
}
/* Article thumb placeholder: rich Camden green */
[data-theme="city-connect"] .article-thumb-placeholder {
  background: linear-gradient(135deg, #2D5A3D 0%, #1E3D29 100%);
}
/* Section labels: Graduate font — like jersey chest lettering */
[data-theme="city-connect"] .section-label {
  font-family: 'Graduate', serif;
  color: #2D5A3D;
  letter-spacing: 0.04em;
}
/* Search: green focus ring */
[data-theme="city-connect"] .search-wrap {
  background: linear-gradient(180deg, rgba(45,90,61,0.07), rgba(45,90,61,0.02));
  border-color: rgba(45,90,61,0.18);
}
[data-theme="city-connect"] .search-input:focus {
  border-color: #2D5A3D;
  box-shadow: 0 0 0 3px rgba(45,90,61,0.18);
}
[data-theme="city-connect"] .search-wrap:focus-within .search-icon { color: #2D5A3D; }
/* Pills & tabs: Camden green active state */
[data-theme="city-connect"] .pill:hover { border-color: #2D5A3D; color: #2D5A3D; }
[data-theme="city-connect"] .pill.active { background: #2D5A3D; border-color: #2D5A3D; color: #fff; }
[data-theme="city-connect"] .div-tab:hover { border-color: #2D5A3D; color: #2D5A3D; }
[data-theme="city-connect"] .div-tab.active { background: #2D5A3D; border-color: #2D5A3D; color: #fff; }
[data-theme="city-connect"] .leaders-scope-btn:hover { border-color: #2D5A3D; color: #2D5A3D; }
[data-theme="city-connect"] .leaders-scope-btn.active { background: #2D5A3D; border-color: #2D5A3D; }
/* Buttons */
[data-theme="city-connect"] .btn-settings:hover { color: #2D5A3D; border-color: #2D5A3D; }
[data-theme="city-connect"] .theme-btn:hover { border-color: #2D5A3D; color: #2D5A3D; }
[data-theme="city-connect"] .theme-btn.active { background: #2D5A3D; border-color: #2D5A3D; }
/* Standings */
[data-theme="city-connect"] .standings-table tr.orioles-row td { color: #2D5A3D; font-weight: 700; }
[data-theme="city-connect"] .standings-table td { border-bottom-color: rgba(45,90,61,0.12); }
[data-theme="city-connect"] .team-abbrev a:hover { color: #2D5A3D; }
/* Leaders */
[data-theme="city-connect"] .leader-cat { color: #2D5A3D; }
[data-theme="city-connect"] a.leader-name:hover { color: #2D5A3D; }
/* Roster */
[data-theme="city-connect"] .roster-group-label { color: #2D5A3D; }
[data-theme="city-connect"] a.roster-name:hover { color: #2D5A3D; }
/* On Deck */
[data-theme="city-connect"] .on-deck-card { background: var(--card); border-color: var(--border); }
[data-theme="city-connect"] .on-deck-card:hover { border-color: #2D5A3D; }
/* Podcast: green-tinted */
[data-theme="city-connect"] .podcast-card {
  background:
    linear-gradient(180deg, rgba(45,90,61,0.14), rgba(45,90,61,0.04)),
    var(--card);
  border-color: rgba(45,90,61,0.30);
}
/* Box score popover */
[data-theme="city-connect"] .box-score-popover {
  background: linear-gradient(180deg, #f0f7f3, #e8f2ed);
  border-color: rgba(45,90,61,0.22);
}
/* Arsenal pills: subtle green */

/* Links & misc */
[data-theme="city-connect"] .widget-link:hover { color: #2D5A3D; }
[data-theme="city-connect"] .txn-player:hover { color: #2D5A3D; }
[data-theme="city-connect"] a.il-name:hover { color: #2D5A3D; }
[data-theme="city-connect"] .share-btn:hover { color: #2D5A3D; background: rgba(45,90,61,0.08); }
/* Logo — full rules below with other per-theme overrides */

/* ── OPACY Theme (Easter Egg) ─────────────────────────────────── */
[data-theme="opacy"] {
  --bg: #1a0a00;
  --surface: #2a1205;
  --card: #301808;
  --border: #4a2510;
  --border-light: #5a3018;
  --text: #ffcea0;
  --text-2: #df8040;
  --text-3: #a05820;
  --orange: #ff6b1a;
  --orange-dim: rgba(255, 107, 26, 0.18);
}
[data-theme="opacy"] .site-header { background: #1a0a00; border-color: var(--accent); }
[data-theme="opacy"] .scores-bar { background: linear-gradient(180deg, #1a0a00 0%, #2a1205 100%); }
[data-theme="opacy"] .score-chip { background: #301808; }
[data-theme="opacy"] .article-thumb-placeholder { background: linear-gradient(135deg, #2a1205 0%, #3a1a08 100%); }
[data-theme="opacy"] .logo strong { color: #ff6b1a; }
[data-theme="opacy"] .on-deck-card { background: #301808; }
[data-theme="opacy"] .box-score-popover { background: #301808; }

/* ── City Connect Banner Animation ──────────────────────────────── */
.city-connect-banner {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  background: rgba(14, 33, 24, 0.92);
  backdrop-filter: blur(6px);
  animation: cc-fade-in 0.35s ease;
  cursor: pointer;
  /* Brick mortar grid on the overlay */
  background-image:
    rgba(14,33,24,0.92),
    repeating-linear-gradient(0deg, transparent 0px, transparent 22px, rgba(255,255,255,0.03) 22px, rgba(255,255,255,0.03) 23px),
    repeating-linear-gradient(90deg, transparent 0px, transparent 44px, rgba(255,255,255,0.03) 44px, rgba(255,255,255,0.03) 45px);
}
.city-connect-banner-out { animation: cc-fade-out 0.5s ease forwards; }
.cc-banner-text {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  text-align: center;
  animation: cc-scale-in 0.42s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.cc-banner-city {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(0.7rem, 2vw, 0.9rem);
  font-weight: bold; color: #C84B11;
  letter-spacing: 0.35em;
}
.cc-banner-team {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(3rem, 10vw, 5.5rem);
  font-weight: bold; color: #C84B11;
  letter-spacing: 0.06em;
  line-height: 1;
}
.cc-banner-stoop, .cc-banner-yard {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(0.9rem, 3vw, 1.4rem);
  font-weight: bold; color: #ffffff;
  letter-spacing: 0.12em;
  line-height: 1.3;
}
.cc-banner-code {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.2rem, 4vw, 1.8rem);
  font-weight: bold; color: #C84B11;
  letter-spacing: 0.3em;
  margin-top: 4px;
}
@keyframes cc-fade-in  { from { opacity: 0; } to { opacity: 1; } }
@keyframes cc-fade-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes cc-scale-in { from { transform: scale(0.88); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ── Reset ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overscroll-behavior-y: none; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; -webkit-appearance: none; }
input, select { font-family: inherit; -webkit-appearance: none; }
img { display: block; max-width: 100%; }

/* Cross-browser scrollbar hiding */
.scores-bar, .sidebar {
  -webkit-overflow-scrolling: touch;
}

/* ── Header ────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: #111;
  border-bottom: 1px solid var(--border);
}
.header-inner {
  width: 100%;
  padding: 0 16px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px 14px 12px;
  color: var(--text);
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}
.logo::before {
  display: none;
}
.logo::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 4px;
  background: rgba(255, 255, 255, 0.55);
  clip-path: polygon(
    0 50%,
    5px 0,
    calc(100% - 5px) 0,
    100% 50%,
    calc(100% - 5px) 100%,
    5px 100%
  );
}

.logo-img {
  height: 62px;
  width: auto;
  vertical-align: middle;
  padding: 2px;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.22));
}
.logo-wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.16em;
  font-size: 2.1rem;
  line-height: 1;
  text-shadow: 0 1px 0 rgba(0,0,0,0.35), 0 10px 22px rgba(0,0,0,0.18);
}
.logo-word {
  color: #f5e6c7;
  white-space: nowrap;
  position: relative;
  z-index: 1;
}
.logo-wordmark .logo-word:first-child {
  font-family: 'Graduate', 'Georgia', serif;
  font-size: 0.98em;
  letter-spacing: 0.05em;
  transform: translateY(0.01em);
}
.logo-word-accent {
  font-family: 'Playball', 'Brush Script MT', cursive;
  color: var(--accent);
  font-weight: 400;
  font-size: 1.16em;
  letter-spacing: 0;
  text-transform: none;
  text-shadow: 0 1px 0 rgba(0,0,0,0.45), 0 0 14px rgba(var(--accent-rgb), 0.14);
}
.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  flex-shrink: 0;
}
[data-theme="light"] .logo::after {
  background: rgba(62, 36, 21, 0.3);
}
[data-theme="opacy"] .logo::after {
  background: rgba(255, 107, 26, 0.5);
}
[data-theme="city-connect"] .logo::after {
  background: rgba(45, 90, 61, 0.25);
}
[data-theme="light"] .logo-word { color: #3e2415; }
[data-theme="light"] .logo-word-accent { color: #b84000; }
[data-theme="opacy"] .logo-word {
  color: #ffd8b5;
}
[data-theme="opacy"] .logo-word-accent {
  color: #ff8a40;
}
/* City Connect: jersey block-letter treatment — dark green fill, orange stroke/shadow */
[data-theme="city-connect"] .logo-wordmark {
  text-shadow: none;
}
[data-theme="city-connect"] .logo-word {
  color: #1A3826;
  -webkit-text-stroke: 1px #C84B11;
  text-shadow: 2px 2px 0 rgba(200, 75, 17, 0.40);
}
[data-theme="city-connect"] .logo-word-accent {
  color: #C84B11;
  -webkit-text-stroke: 0.5px #1A3826;
  text-shadow: 1px 2px 0 rgba(20, 50, 30, 0.45);
}
.btn-settings {
  background: none; border: 1px solid var(--border); color: var(--text-3);
  padding: 6px; border-radius: 6px; cursor: pointer; display: flex;
  align-items: center; transition: color 0.15s, border-color 0.15s;
}
.btn-settings:hover { color: var(--accent); border-color: var(--accent); }

/* ── Settings Overlay ─────────────────────────────────────────── */
.settings-overlay {
  position: fixed; inset: 0; z-index: 110;
  background: rgba(0,0,0,0.6); display: flex;
  align-items: center; justify-content: center;
}
.settings-overlay.hidden { display: none; }
.settings-panel {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; width: 400px; max-width: 90vw;
  box-shadow: 0 16px 48px rgba(0,0,0,0.4);
  max-height: 88vh; display: flex; flex-direction: column;
}
.settings-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 20px; border-bottom: 1px solid var(--border);
}
.settings-title { font-size: 1rem; font-weight: 600; }
.btn-close-settings {
  background: none; border: none; color: var(--text-3); font-size: 1.1rem;
  cursor: pointer; padding: 4px 8px; border-radius: 4px; transition: color 0.15s;
}
.btn-close-settings:hover { color: var(--text); }
.settings-body { padding: 20px; display: flex; flex-direction: column; gap: 20px; overflow-y: auto; }
.settings-group { display: flex; flex-direction: column; gap: 8px; }
/* ── Source settings ──────────────────────────────────────────────── */
.settings-sources-note {
  font-size: 0.68rem; color: var(--text-3); margin: -2px 0 2px;
}
.settings-sources-list {
  display: flex; flex-direction: column; gap: 6px;
}
.settings-sources-empty { font-size: 0.8rem; color: var(--text-3); }
.source-setting-group { display: flex; flex-direction: column; gap: 1px; }
.source-setting-group-label {
  font-size: 0.62rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--text-3); padding: 6px 0 3px;
}
.source-setting-row {
  display: flex; align-items: center; gap: 8px; cursor: pointer;
  padding: 4px 6px; border-radius: 5px; font-size: 0.82rem; color: var(--text);
  transition: background 0.12s;
}
.source-setting-row:hover { background: rgba(255,255,255,0.04); }
[data-theme="light"] .source-setting-row:hover,
[data-theme="city-connect"] .source-setting-row:hover { background: rgba(0,0,0,0.04); }
.source-setting-cb { position: absolute; opacity: 0; width: 0; height: 0; }
.source-toggle-track {
  flex-shrink: 0; width: 28px; height: 16px; border-radius: 8px;
  background: var(--border); position: relative; transition: background 0.15s;
}
.source-toggle-track::after {
  content: ''; position: absolute; width: 12px; height: 12px; border-radius: 50%;
  background: #fff; top: 2px; left: 2px; transition: transform 0.15s;
}
.source-setting-cb:checked + .source-toggle-track { background: var(--accent); }
.source-setting-cb:checked + .source-toggle-track::after { transform: translateX(12px); }
.source-setting-name { flex: 1; transition: color 0.15s; }
.source-setting-row:has(.source-setting-cb:not(:checked)) .source-setting-name {
  color: var(--text-3);
}
.source-setting-warning {
  font-size: 0.76rem; color: #f59e0b;
  background: rgba(245,158,11,0.1); border: 1px solid rgba(245,158,11,0.25);
  border-radius: 6px; padding: 6px 10px; margin-bottom: 2px;
}
.source-setting-reset {
  margin-top: 8px; font-size: 0.72rem; color: var(--text-3);
  background: none; border: 1px solid var(--border); border-radius: 4px;
  padding: 4px 10px; cursor: pointer; transition: color 0.15s, border-color 0.15s;
  align-self: flex-start;
}
.source-setting-reset:hover { color: var(--accent); border-color: var(--accent); }
/* "No sources" feed message link */
.feed-msg-link {
  background: none; border: none; color: var(--accent); font-size: inherit;
  cursor: pointer; text-decoration: underline; padding: 0;
}
.settings-label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-3); }
.theme-toggle { display: flex; gap: 4px; }
.theme-btn {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 5px;
  padding: 8px; border: 1px solid var(--border); border-radius: 6px;
  background: transparent; color: var(--text-2); font-size: 0.75rem;
  cursor: pointer; transition: all 0.15s;
}
.theme-btn:hover { border-color: var(--accent); color: var(--accent); }
.theme-btn.active { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.cache-label { font-size: 0.7rem; color: var(--text-3); }

.btn-refresh {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  background: transparent;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  color: var(--text-2);
  font-size: 0.8rem;
  transition: border-color 0.15s, color 0.15s;
}
.btn-refresh:hover { border-color: var(--accent); color: var(--accent); }
.btn-refresh:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-refresh svg { transition: transform 0.15s; }
.btn-refresh.spinning svg { animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Scores Bar ────────────────────────────────────────────────── */
.scores-bar {
  background: linear-gradient(180deg, #0a0a0a 0%, #111 100%);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  padding: 10px 0;
  overscroll-behavior-x: contain;
}
.scores-bar::-webkit-scrollbar { display: none; }
.scores-track {
  display: flex;
  align-items: stretch;
  gap: 8px;
  padding: 0 16px;
  min-width: max-content;
}
.score-chip {
  appearance: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  font-size: 0.78rem;
  white-space: nowrap;
  color: var(--text);
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
  min-width: 100px;
  text-align: left;
  cursor: pointer;
  font: inherit;
}
.score-chip:hover { border-color: var(--accent); transform: translateY(-1px); }
.score-chip[aria-expanded="true"] { border-color: var(--accent); transform: translateY(-1px); }
.score-chip.my-team { border-left: 3px solid var(--accent); background: var(--accent-dim); }
.score-chip.live { border-left: 3px solid #22c55e; }
.score-chip.delay { border-left: 3px solid #3b82f6; }
.score-chip.postponed { border-left: 3px solid #ef4444; }
.score-chip:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--accent) 70%, white 30%);
  outline-offset: 2px;
}
.chip-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.chip-row.winner { color: #fff; }
.chip-row:not(.winner) .chip-score { color: var(--text-3); }
.chip-team { font-weight: 600; font-size: 0.8rem; }
.chip-score { font-weight: 700; font-size: 0.85rem; font-variant-numeric: tabular-nums; }
.chip-status {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-align: center;
  padding-top: 3px;
  border-top: 1px solid var(--border);
  margin-top: 2px;
}
.chip-status.final { color: var(--text-3); }
.chip-status.preview { color: var(--text-2); }
.chip-status.live {
  color: #22c55e;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.chip-status.delay {
  color: #60a5fa;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.chip-status.postponed { color: #f87171; }
.delay-emoji {
  font-size: 0.8rem;
  line-height: 1;
  transform: translateY(-1px);
}
.outs-indicator {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.out-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: 1px solid rgba(248, 113, 113, 0.75);
  background: transparent;
}
.out-dot.on {
  background: #ef4444;
  border-color: #ef4444;
}

/* Base runner diamond */
.bases-diamond {
  display: inline-grid; grid-template-columns: 6px 6px; grid-template-rows: 6px 6px;
  gap: 1px; transform: rotate(45deg); margin-left: 3px; vertical-align: middle;
}
.base {
  width: 6px; height: 6px; border: 1px solid var(--text-3);
  background: transparent;
}
.base.on { background: #f59e0b; border-color: #f59e0b; }
.base.b2 { grid-column: 1; grid-row: 1; }
.base.b1 { grid-column: 2; grid-row: 1; }
.base.b3 { grid-column: 1; grid-row: 2; }
/* Box score popover */
.box-score-popover {
  --popover-name-size: 0.71rem;
  --popover-stat-size: 0.71rem;
  --popover-meta-size: 0.6rem;
  position: fixed; z-index: 100;
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 84%, #f5f7fb 16%), color-mix(in srgb, var(--surface) 92%, #d9e1ec 8%));
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--border) 72%);
  border-radius: 10px;
  padding: 10px 12px;
  box-shadow: 0 14px 36px rgba(0,0,0,0.42);
  pointer-events: auto;
  width: min(760px, calc(100vw - 24px));
  max-width: 95vw;
  overflow-x: auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.box-score-popover.hidden { visibility: hidden; pointer-events: none; }
.box-popover-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.box-section {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px 9px;
  border: 1px solid color-mix(in srgb, var(--border) 82%, rgba(255,255,255,0.08) 18%);
  border-radius: 8px;
  background: color-mix(in srgb, var(--card) 88%, #f4f7fb 12%);
}
.box-section:first-child {
  padding-top: 8px;
}
.box-linescore {
  gap: 5px;
}
.box-score-table {
  border-collapse: collapse; font-size: 0.72rem;
  font-variant-numeric: tabular-nums; white-space: nowrap;
  font-family: 'Courier New', Courier, monospace;
  background: rgba(255,255,255,0.02);
  border-radius: 6px;
  overflow: hidden;
}
.box-score-table th, .box-score-table td {
  padding: 3px 6px; text-align: center;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 84%, rgba(255,255,255,0.06) 16%);
}
.box-score-table thead th {
  font-weight: 700; color: var(--text-2); font-size: var(--popover-meta-size);
  border-bottom: 2px solid color-mix(in srgb, var(--border) 74%, var(--accent) 26%);
}
.box-score-row td {
  background: rgba(255,255,255,0.015);
}
.box-score-row--winner td {
  background: color-mix(in srgb, rgba(249,115,22,0.12) 42%, rgba(148,163,184,0.08) 58%);
}
.box-score-row--winner .box-team-col {
  color: var(--text);
}
.box-score-row--winner .box-total {
  color: #fff4e8;
  font-weight: 800;
}
.box-team-col { text-align: left; font-weight: 700; padding-right: 10px; color: var(--text); }
.box-total {
  font-weight: 700;
  border-left: 2px solid color-mix(in srgb, var(--border) 74%, var(--accent) 26%);
  background: color-mix(in srgb, var(--card) 78%, #eef3f8 22%);
}
.box-decisions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  font-size: var(--popover-meta-size);
  color: var(--text-2);
}
.decision-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 7px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--card) 88%, #eef3f8 12%);
  border: 1px solid color-mix(in srgb, var(--border) 76%, rgba(255,255,255,0.08) 24%);
}
.decision-pill.win { color: #4ade80; }
.decision-pill.loss { color: #f87171; }
.decision-pill.save { color: var(--text-2); }

.popover-player-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}
.popover-player-link:hover,
.popover-player-link:focus-visible {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.12em;
  outline: none;
}
.walkup-song-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 12px;
  height: 12px;
  color: #1db954;
  text-decoration: none;
  flex-shrink: 0;
  line-height: 1;
  opacity: 0.95;
  transform: translateY(-0.25px);
  transition: transform 0.15s ease, filter 0.15s ease, opacity 0.15s ease;
}
.walkup-song-icon {
  display: block;
}
.walkup-song-link--search {
  color: var(--text-3);
  opacity: 0.45;
}
.walkup-song-link:hover,
.walkup-song-link:focus-visible {
  transform: translateY(-0.8px) scale(1.06);
  filter: saturate(1.1) brightness(1.06);
  opacity: 1;
  outline: none;
}

.box-popover-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 2px;
}
.box-popover-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 34%, var(--border) 66%);
  background: color-mix(in srgb, var(--card) 84%, #eef3f8 16%);
  color: var(--accent);
  font-size: var(--popover-meta-size);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.box-popover-link-logo {
  width: 14px;
  height: 14px;
  display: block;
  flex-shrink: 0;
  object-fit: contain;
  border-radius: 2px;
}
.box-popover-link:hover,
.box-popover-link:focus-visible {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, var(--card) 86%);
  color: #fff0e6;
  outline: none;
}
.box-popover-link--watch {
  border-color: color-mix(in srgb, #1db954 42%, var(--border) 58%);
  color: #1ed760;
}
.box-popover-link--watch:hover,
.box-popover-link--watch:focus-visible {
  border-color: #1ed760;
  background: color-mix(in srgb, #1db954 16%, var(--card) 84%);
  color: #d9ffe9;
}
.box-popover-link-eye {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  line-height: 1;
  font-size: 0.7rem;
}
.pitching-scroll {
  max-height: 88px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  /* fade out bottom edge to hint scrollability */
  mask-image: linear-gradient(to bottom, black calc(100% - 14px), transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black calc(100% - 14px), transparent 100%);
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.pitching-scroll::-webkit-scrollbar { width: 4px; }
.pitching-scroll::-webkit-scrollbar-track { background: transparent; }
.pitching-scroll::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
.box-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  padding: 3px 1px 0;
  font-size: 0.58rem;
  color: var(--text-3);
}
.box-legend-label {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-2);
}
.box-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.box-legend-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 6px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--border) 76%, rgba(255,255,255,0.08) 24%);
  background: color-mix(in srgb, var(--card) 88%, #eef3f8 12%);
  color: var(--text-2);
  line-height: 1;
}
.box-legend-chip--leader {
  font-weight: 800;
  color: #ffffff;
}
.box-legend-text--top-ten {
  color: var(--accent);
  font-size: 0.62rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-weight: 700;
}
.scout-notes {
  gap: 6px;
  padding: 8px 9px;
  border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--border) 60%);
  border-radius: 8px;
  background: color-mix(in srgb, var(--card) 86%, var(--accent) 14%);
}
.scout-notes-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.scout-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 6px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 28%, var(--card) 72%);
  color: var(--accent);
  font-size: calc(var(--popover-meta-size) - 0.02rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.scout-context {
  font-size: calc(var(--popover-meta-size) - 0.02rem);
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.scout-notes-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.live-music-queue {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 4px 0 2px;
  border-top: 1px solid color-mix(in srgb, #22c55e 32%, var(--border) 68%);
}
.live-music-head {
  font-size: calc(var(--popover-meta-size) - 0.03rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #22c55e;
}
.live-music-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.live-music-label {
  font-size: calc(var(--popover-meta-size) - 0.05rem);
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  min-width: 56px;
  flex-shrink: 0;
}
.live-music-name {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  color: var(--text);
}
.scout-pitch-mix {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 4px 0 2px;
  border-top: 1px solid color-mix(in srgb, var(--accent) 32%, var(--border) 68%);
}
.scout-pitch-head {
  font-size: calc(var(--popover-meta-size) - 0.03rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-2);
}
.scout-pitch-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.scout-pitch-pill {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  padding: 2px 6px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 78%, var(--accent) 22%);
  border: 1px solid color-mix(in srgb, var(--accent) 38%, var(--border) 62%);
  white-space: nowrap;
}
.scout-pitch-type {
  font-size: var(--popover-meta-size);
  font-weight: 700;
  color: var(--text);
}
.scout-pitch-meta {
  font-size: var(--popover-meta-size);
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
}
.scout-note-row {
  font-size: var(--popover-stat-size);
  line-height: 1.35;
  color: var(--text);
}
.probable-pitchers {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.probable-pitchers--preview {
  gap: 8px;
}
.probable-pitchers--preview .scout-notes {
  padding: 6px 8px;
}

.probable-pitcher-row {
  display: flex;
  gap: 8px;
  font-size: var(--popover-name-size);
}
.probable-pitcher-name {
  color: var(--text);
  min-width: 0;
  font-weight: 700;
  font-size: var(--popover-name-size);
  line-height: 1.3;
}
/* ── Pitcher Arsenal Pills ───────────────────────────────────────── */
.pitcher-arsenal {
  display: flex; flex-wrap: wrap; gap: 3px;
  padding: 3px 0 0;
  min-height: 20px;
}
.pitcher-arsenal--loading {
  align-items: center;
}
.arsenal-loading {
  font-size: calc(var(--popover-meta-size) - 0.02rem); color: var(--text-3); font-style: italic;
}

.score-lineups {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.score-lineups-grid {
  display: flex;
  gap: 14px;
  min-width: 320px;
  align-items: stretch;
}
.score-lineups-grid--details {
  min-width: 640px;
}
.preview-team-card {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.team-detail-card {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px 9px;
  border: 1px solid color-mix(in srgb, var(--border) 82%, rgba(255,255,255,0.1) 18%);
  border-radius: 8px;
  background: color-mix(in srgb, var(--card) 89%, #f3f7fc 11%);
}
.preview-team-section {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.preview-team-section + .preview-team-section {
  padding-top: 6px;
  border-top: 1px solid color-mix(in srgb, var(--border) 82%, rgba(255,255,255,0.08) 18%);
}
.preview-team-subhead {
  font-size: var(--popover-meta-size);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-2);
}
.score-lineup-side {
  flex: 1;
  min-width: 0;
}
.score-lineup-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  margin-bottom: 4px;
}
.score-lineup-logo {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 4px rgba(255,255,255,0.28));
}
.score-lineup-label {
  font-size: var(--popover-name-size);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text);
  letter-spacing: 0.04em;
}

.score-lineup-row {
  display: grid;
  grid-template-columns: 18px 7rem 1fr;
  column-gap: 6px;
  font-size: var(--popover-name-size);
  padding: 2px 0;
  align-items: baseline;
}

.score-lineup-pos {
  width: 18px;
  flex-shrink: 0;
  font-weight: 600;
  font-size: var(--popover-meta-size);
  color: var(--text-3);
}
.score-lineup-name {
  font-size: var(--popover-name-size);
  color: var(--text);
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 4px;
  overflow: hidden;
}
.score-lineup-hand {
  font-size: calc(var(--popover-meta-size) - 0.05rem);
  color: var(--text-3);
  font-weight: 400;
  flex-shrink: 0;
}

.score-lineup-row--preview-header {
  margin-bottom: 3px;
}
.score-lineup-box-cols--preview {
  grid-template-columns: repeat(3, minmax(34px, 1fr));
  gap: 10px;
  text-align: center;
  justify-items: center;
}
.score-lineup-preview-stat {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
}

/* Newspaper-style box score columns (Final state) */
.score-lineup-row--header {
  border-bottom: 1px solid var(--border);
  margin-bottom: 2px;
  padding-bottom: 2px;
}
.score-lineup-row--header .score-lineup-box-cols {
  color: var(--text-3);
  font-weight: 700;
  font-size: var(--popover-meta-size);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.score-lineup-row--dnp { opacity: 0.4; }
.score-lineup-row--sub .score-lineup-pos {
  color: var(--text-3);
  font-weight: 600;
}
.score-lineup-row--sub .score-lineup-name {
  padding-left: 14px;
}
.score-lineup-box-cols {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-size: var(--popover-stat-size);
  color: var(--text-2);
  white-space: nowrap;
}
.score-lineup-box-cols--pitch {
  grid-template-columns: repeat(4, 1fr);
}
.score-lineup-rate {
  color: var(--text-2);
}
.score-lineup-rate--top-ten {
  color: var(--accent);
}
.score-lineup-rate--leader {
  color: #ffffff;
  font-weight: 800;
}
.score-lineup-rate--leader.score-lineup-rate--top-ten {
  color: var(--accent);
  font-weight: 800;
}
[data-theme="light"] .box-legend-chip--leader,
[data-theme="light"] .score-lineup-rate--leader {
  color: #111827;
}
[data-theme="light"] .score-lineup-rate--leader.score-lineup-rate--top-ten {
  color: #c2410c;
}
[data-theme="light"] .box-legend-text--top-ten,
[data-theme="light"] .score-lineup-rate--top-ten {
  color: #c2410c;
}

.score-lineups-empty {
  font-size: var(--popover-stat-size);
  color: var(--text-2);
  padding: 2px 0;
}
.walkup-player-overlay {
  position: fixed;
  inset: 0;
  z-index: 2200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}
.walkup-player-overlay-open {
  overflow: hidden;
}
.walkup-player-overlay.hidden {
  display: none;
}
.walkup-player-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 10, 15, 0.68);
  backdrop-filter: blur(3px);
}
.walkup-player-dialog {
  position: relative;
  z-index: 1;
  width: min(460px, 94vw);
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, #22c55e 30%, var(--border) 70%);
  background: linear-gradient(180deg, color-mix(in srgb, var(--card) 88%, #0f172a 12%), var(--card));
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  padding: 14px 14px 12px;
}
.walkup-player-close {
  position: absolute;
  top: 8px;
  right: 8px;
  border: none;
  background: transparent;
  color: var(--text-2);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
}
.walkup-player-title {
  font-size: var(--popover-meta-size);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 700;
}
.walkup-player-name {
  margin: 3px 0 8px;
  color: var(--text);
  font-size: calc(var(--popover-name-size) + 0.03rem);
  font-weight: 700;
}
.walkup-player-frame {
  border: 0;
  border-radius: 10px;
}
.walkup-player-open {
  margin-top: 8px;
  display: inline-flex;
  color: #22c55e;
  font-size: var(--popover-meta-size);
  font-weight: 700;
  text-decoration: none;
}
.walkup-player-open:hover,
.walkup-player-open:focus-visible {
  text-decoration: underline;
}
[data-theme="light"] .box-score-popover {
  background: linear-gradient(180deg, #fbfcfe, #f1f5f9);
  border-color: #c9d4e2;
  box-shadow: 0 10px 32px rgba(47, 63, 84, 0.16);
}
[data-theme="light"] .box-score-row td {
  background: rgba(255,255,255,0.38);
}
[data-theme="light"] .box-score-row--winner td {
  background: rgba(255, 232, 210, 0.54);
}
[data-theme="light"] .box-score-row--winner .box-total {
  color: #7c2d12;
}

[data-theme="light"] .box-section,
[data-theme="light"] .team-detail-card {
  background: rgba(255,255,255,0.82);
  border-color: rgba(148, 163, 184, 0.22);
}
[data-theme="light"] .scout-notes {
  background: linear-gradient(180deg, rgba(244, 247, 251, 0.96), rgba(236, 242, 248, 0.94));
  border-color: rgba(148, 163, 184, 0.26);
}

.scores-msg { font-size: 0.8rem; color: var(--text-3); padding: 0 4px; }
.scores-day-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
  padding: 0 4px;
  white-space: nowrap;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  writing-mode: vertical-lr;
  text-orientation: mixed;
  transform: rotate(180deg);
}
.scores-day-label:first-child { padding-left: 0; }

/* ── Page Layout ───────────────────────────────────────────────── */
.page-layout {
  max-width: 1600px;
  margin: 0 auto;
  padding: 20px 20px 60px;
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr var(--sidebar-w);
  gap: 24px;
  align-items: start;
}
.page-layout > * { min-width: 0; }

/* ── Sidebar ───────────────────────────────────────────────────── */
.sidebar {
  position: sticky;
  top: calc(var(--header-h) + var(--scores-h) + 16px);
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-height: calc(100vh - var(--header-h) - var(--scores-h) - 32px);
  overflow-y: auto;
  overflow-x: visible;
  z-index: 15;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.sidebar-right {
  position: sticky;
  top: calc(var(--header-h) + var(--scores-h) + 16px);
  max-height: calc(100vh - var(--header-h) - var(--scores-h) - 32px);
  overflow-y: auto;
  z-index: 10;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.search-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--border) 82%, transparent);
  border-radius: calc(var(--radius) + 2px);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--card) 92%, var(--accent) 8%), var(--card));
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.10);
}
.search-icon {
  position: absolute;
  left: 23px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-3);
  pointer-events: none;
  width: 15px;
  height: 15px;
  transition: color 0.15s, transform 0.15s;
}
.search-input {
  width: 100%;
  padding: 11px 12px 11px 38px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.85rem;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.02);
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.search-input:focus {
  border-color: color-mix(in srgb, var(--accent) 85%, white 15%);
  background: color-mix(in srgb, var(--card) 92%, white 8%);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 24%, transparent);
}
.search-wrap:focus-within .search-icon {
  color: var(--accent);
  transform: translateY(-50%) scale(1.05);
}
.search-input::placeholder { color: var(--text-3); }

.sidebar-group { display: flex; flex-direction: column; gap: 4px; }
.sidebar-group-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-3);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2px;
}
.sidebar-group .sidebar-section { padding-left: 6px; border-left: 2px solid var(--border); }
.sidebar-section { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.section-body { position: relative; min-width: 0; }
.section-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text);
}
.section-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
  transition: color 0.15s;
}
.section-toggle:hover { color: var(--text-2); }
.section-icon { flex-shrink: 0; opacity: 0.7; }
.section-chevron { margin-left: auto; transition: transform 0.2s; opacity: 0.5; }
.sidebar-section.collapsed .section-chevron { transform: rotate(-90deg); }
.sidebar-section.collapsed .section-body { display: none; }
.pill-group { display: flex; flex-wrap: wrap; gap: 6px; }
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 4px 11px;
  border: 1px solid var(--border-light);
  border-radius: 20px;
  background: transparent;
  color: var(--text-2);
  font-size: 0.77rem;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
  white-space: nowrap;
}
.pill:hover { border-color: var(--accent); color: var(--accent); }
.pill.active { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.pill--category { min-height: 28px; }
.pill-logo {
  width: 16px;
  height: 16px;
  display: block;
  flex-shrink: 0;
  object-fit: contain;
}
.pill-logo--orioles {
  filter: drop-shadow(0 1px 4px rgba(255,255,255,0.28));
}
.pill-logo--league {
  border-radius: 3px;
  filter: drop-shadow(0 1px 4px rgba(255,255,255,0.22));
}
.pill.active .pill-logo--league {
  background: rgba(255, 255, 255, 0.9);
  padding: 1px;
  box-sizing: border-box;
}

/* ── Standings ─────────────────────────────────────────────────── */
.standings-team-logo {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  object-fit: contain;
  filter: drop-shadow(0 1px 4px rgba(255,255,255,0.25));
}

.div-tabs { display: flex; flex-wrap: wrap; gap: 4px; }
.div-tab {
  padding: 3px 8px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: transparent;
  color: var(--text-3);
  font-size: 0.69rem;
  font-weight: 600;
  transition: all 0.15s;
}
.div-tab:hover { border-color: var(--accent); color: var(--accent); }
.div-tab.active { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

.standings-table { width: 100%; border-collapse: collapse; font-size: 0.77rem; }
.standings-table th {
  text-align: right;
  color: var(--text-3);
  font-weight: 600;
  padding: 4px 5px;
  border-bottom: 1px solid var(--border);
  font-size: 0.69rem;
}
.standings-table th:first-child { text-align: left; }
.standings-table td { padding: 5px 5px; text-align: right; border-bottom: 1px solid #1e1e1e; }
.standings-table td:first-child { text-align: left; }
.standings-table tr.orioles-row td { color: var(--accent); font-weight: 700; }
.standings-table tbody tr:hover td { background: rgba(255,255,255,0.025); }
.team-abbrev { font-weight: 600; }
.team-abbrev a { display: inline-flex; align-items: center; gap: 5px; color: var(--text); transition: color 0.15s; }
.team-abbrev a:hover { color: var(--accent); }

.sidebar-msg { font-size: 0.8rem; color: var(--text-3); }

/* ── On Deck ──────────────────────────────────────────────────── */
.on-deck-card {
  display: flex; flex-direction: column; gap: 8px;
  padding: 10px 12px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--border);
  position: relative;
  transition: border-color 0.15s;
}
.on-deck-card:hover { border-color: var(--accent); }
.on-deck-matchup {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  padding-right: 74px;
  min-width: 0;
}
.on-deck-logo { width: 28px; height: 28px; filter: drop-shadow(0 1px 4px rgba(255,255,255,0.28)); }
.on-deck-opp {
  flex: 1;
  min-width: 0;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
}
.on-deck-details { display: flex; flex-direction: column; gap: 1px; }
.on-deck-date { font-size: 0.75rem; color: var(--text-2); }
.on-deck-venue { font-size: 0.68rem; color: var(--text-3); }
.on-deck-weather {
  position: absolute;
  bottom: 10px;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  min-width: 62px;
  text-align: right;
  line-height: 1;
}
.on-deck-weather-icon { font-size: 1rem; }
.on-deck-weather-temp { font-size: 0.72rem; font-weight: 700; color: var(--text-2); }

.on-deck-card { padding: 10px 12px; gap: 6px; }
[data-theme="light"] .box-score-popover {
  background: #fff7ed;
  border-color: #efc08f;
  box-shadow: 0 8px 28px rgba(91,55,22,0.16);
}

/* Game Day media links (Watch / Listen) */
.gameday-media-strip {
  display: flex;
  gap: 6px;
  border-top: 1px solid var(--border);
  padding-top: 8px;
  margin-top: 2px;
}
.gameday-media-link {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 7px 6px;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--card) 88%, var(--accent) 12%);
  color: var(--text-2);
  text-decoration: none;
  font-size: 0.71rem;
  font-weight: 600;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.gameday-media-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, var(--card) 88%);
}
.gameday-media-icon {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}
.gameday-media-label {
  letter-spacing: 0.01em;
}
.gameday-media-network {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-3);
}
.gameday-media-link:hover .gameday-media-network {
  color: inherit;
}

/* Schedule within On Deck */
/* Schedule boxes (inline with On Deck) */
.sched-row-wrap {
  display: flex; gap: 4px; margin-top: 6px;
  border-top: 1px solid var(--border); padding-top: 6px;
}
.sched-box {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 5px 2px; border-radius: 6px; text-decoration: none; color: var(--text);
  background: var(--card); border: 1px solid var(--border);
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.sched-box:hover { background: var(--accent-dim); border-color: var(--accent); }
.sched-box--live {
  border-color: color-mix(in srgb, var(--accent) 70%, var(--border) 30%);
  background: color-mix(in srgb, var(--accent) 10%, var(--card) 90%);
}
.sched-box--live .sched-box-day { color: var(--accent); }
.sched-box-day { font-size: 0.6rem; font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.03em; }
.sched-box-logo-wrap { position: relative; width: 22px; height: 22px; }
.sched-box-logo { width: 22px; height: 22px; filter: drop-shadow(0 1px 4px rgba(255,255,255,0.28)); }
.sched-box-at {
  position: absolute; top: -5px; left: -5px;
  font-size: 0.45rem; font-weight: 800; color: var(--text-2);
  background: var(--card); border-radius: 50%;
  min-width: 13px; height: 13px; padding: 0 2px; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); line-height: 1;
}

/* ── Yard Leaders ─────────────────────────────────────────────── */
.leaders-controls { display: flex; gap: 3px; align-items: center; margin-bottom: 6px; }
.leaders-controls-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px; }
.leaders-scope { display: flex; gap: 2px; flex-wrap: wrap; }
.leaders-roy-league {
  font-size: 0.62rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--accent); padding: 6px 0 2px; border-top: 1px solid var(--border); margin-top: 2px;
}
.leaders-roy-league:first-child { border-top: none; margin-top: 0; padding-top: 2px; }
.leaders-scope-btn {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 1px 5px; border: 1px solid var(--border); border-radius: 3px;
  background: transparent; color: var(--text-3); font-size: 0.58rem; font-weight: 700;
  cursor: pointer; transition: all 0.15s;
}
.leaders-scope-btn:hover { border-color: var(--accent); color: var(--accent); }
.leaders-scope-btn.active { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.leaders-scope-logo {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  object-fit: contain;
  filter: drop-shadow(0 1px 3px rgba(255,255,255,0.25));
}

/* Improve readability of dark team marks (e.g., NYY) on dark UI surfaces. */
:root:not([data-theme="light"]) .score-lineup-logo,
:root:not([data-theme="light"]) .standings-team-logo,
:root:not([data-theme="light"]) .on-deck-logo,
:root:not([data-theme="light"]) .sched-box-logo,
:root:not([data-theme="light"]) .pill-logo--orioles,
:root:not([data-theme="light"]) .pill-logo--league,
:root:not([data-theme="light"]) .leaders-scope-logo {
  filter:
    brightness(1.14)
    contrast(1.08)
    drop-shadow(0 0 0.6px rgba(255,255,255,0.82))
    drop-shadow(0 1px 4px rgba(255,255,255,0.34));
}
.leaders-scope-btn.active .leaders-scope-logo--league {
  background: rgba(255,255,255,0.9);
  border-radius: 2px;
  padding: 1px;
  box-sizing: border-box;
}
.leaders-stack { display: flex; flex-direction: column; gap: 10px; }
.leaders-group { display: flex; flex-direction: column; gap: 4px; }
.leaders-group-title {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-3);
}
.leaders-list { display: flex; flex-direction: column; }
.leader-item {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.68rem; padding: 2px 0;
  border-bottom: 1px solid #1e1e1e;
}
.leader-item:last-child { border-bottom: none; }
.leader-cat { font-weight: 700; color: var(--accent); width: 34px; flex-shrink: 0; font-size: 0.63rem; text-decoration: none; transition: color 0.15s; }
a.leader-cat:hover { color: var(--text); }
.leader-name { flex: 1; color: var(--text); transition: color 0.15s; text-decoration: none; }
a.leader-name:hover { color: var(--accent); }
.leader-val { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--text-2); font-size: 0.63rem; }

/* ── Roster ───────────────────────────────────────────────────── */
.roster-list { display: flex; flex-direction: column; gap: 1px; max-height: none; overflow: visible; scrollbar-width: thin; scrollbar-color: var(--border) transparent; }
.roster-group-label { font-size: 0.62rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent); padding: 6px 0 2px; }
.roster-item { display: flex; align-items: center; gap: 6px; font-size: 0.75rem; padding: 3px 0; border-bottom: 1px solid #1e1e1e; }
.roster-item--muted .roster-name { color: var(--text-3); }
.roster-item--muted .roster-num, .roster-item--muted .roster-pos { opacity: 0.6; }
.roster-num { width: 20px; text-align: right; color: var(--text-3); font-size: 0.68rem; font-variant-numeric: tabular-nums; flex-shrink: 0; }
.roster-name { flex: 1; color: var(--text); font-weight: 500; transition: color 0.15s; }
a.roster-name:hover { color: var(--accent); }
.roster-pos { color: var(--text-3); font-size: 0.68rem; flex-shrink: 0; }
.roster-badge { font-size: 0.56rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; padding: 1px 5px; border-radius: 3px; flex-shrink: 0; }
.roster-badge--il { background: rgba(239,68,68,0.15); color: #ef4444; }

/* ── Contracts ────────────────────────────────────────────────── */
.contracts-blurb { font-size: 0.72rem; color: var(--text-3); margin: 0 0 10px; line-height: 1.4; }
.widget-link-card {
  display: flex; flex-direction: column; gap: 2px;
  padding: 9px 11px; margin-bottom: 6px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 6px; text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}
.widget-link-card:hover { border-color: var(--accent); background: var(--card); }
.widget-link-card-label { font-size: 0.75rem; font-weight: 600; color: var(--text); }
.widget-link-card-sub { font-size: 0.65rem; color: var(--accent); }

/* ── Widget Link ──────────────────────────────────────────────── */
.widget-link {
  display: block; text-align: center; font-size: 0.7rem; color: var(--text-3);
  padding: 6px 0 2px; margin-top: 4px; transition: color 0.15s;
}
.widget-link:hover { color: var(--accent); }

/* ── Transactions ─────────────────────────────────────────────── */
.txn-list { display: flex; flex-direction: column; gap: 2px; max-height: none; overflow: visible; }
.txn-item { display: flex; gap: 8px; font-size: 0.73rem; padding: 5px 0; border-bottom: 1px solid #1e1e1e; }
.txn-date { flex-shrink: 0; color: var(--text-3); font-size: 0.68rem; width: 42px; }
.txn-desc { color: var(--text-2); line-height: 1.4; }
.txn-player { color: var(--text); font-weight: 500; transition: color 0.15s; }
.txn-player:hover { color: var(--accent); }

/* ── Injury Report ────────────────────────────────────────────── */
.il-list { display: flex; flex-direction: column; }
.il-group { display: flex; flex-direction: column; }
.il-group + .il-group { margin-top: 8px; }
.il-group-label {
  font-size: 0.62rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em;
  color: #ef4444; padding: 5px 6px 4px;
  background: rgba(239,68,68,0.1);
  border-radius: 4px;
  margin-bottom: 2px;
}
.il-group:first-child .il-group-label { }
.il-item { display: flex; flex-direction: column; gap: 2px; padding: 5px 0; border-bottom: 1px solid #1e1e1e; }
.il-item:last-child { border-bottom: none; }
.il-topline { display: flex; align-items: baseline; gap: 5px; min-width: 0; }
.il-name { min-width: 0; color: var(--text); font-weight: 600; font-size: 0.74rem; transition: color 0.15s; }
a.il-name:hover { color: var(--accent); }
.il-pos { font-size: 0.62rem; color: var(--text-3); flex-shrink: 0; }
.il-eta { margin-left: auto; font-size: 0.62rem; color: var(--text-2); font-variant-numeric: tabular-nums; white-space: nowrap; flex-shrink: 0; }
.il-note { font-size: 0.67rem; line-height: 1.3; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── Podcast Widget ──────────────────────────────────────────── */
.podcast-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 12px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(var(--accent-rgb), 0.12), rgba(var(--accent-rgb), 0.03)),
    var(--card);
  border: 1px solid rgba(var(--accent-rgb), 0.28);
}
.podcast-card--hoverable {
  position: relative;
  z-index: 1;
}
.podcast-hover-panel {
  position: fixed;
  width: 220px;
  padding: 9px 10px;
  border-radius: 8px;
  background: rgba(16, 16, 16, 0.96);
  border: 1px solid rgba(var(--accent-rgb), 0.24);
  box-shadow: 0 10px 28px rgba(0,0,0,0.26);
  color: var(--text);
  font-size: 0.68rem;
  line-height: 1.45;
  opacity: 0;
  transform: translateX(-4px);
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease;
  z-index: 120;
}
.podcast-hover-panel.is-visible {
  opacity: 1;
  transform: translateX(0);
}
.podcast-hover-title {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.podcast-hover-desc {
  color: var(--text-2);
}
.podcast-kicker {
  font-size: 0.61rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}
.podcast-fallback-note {
  font-size: 0.62rem;
  color: var(--text-3);
}
.podcast-title {
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.podcast-title-track {
  display: inline-block;
  min-width: 100%;
}
.podcast-title--scroll {
  text-overflow: clip;
}
.podcast-title--scroll .podcast-title-track {
  padding-right: 28px;
  animation: podcastTitleScroll 12s linear infinite;
  will-change: transform;
}
.podcast-card--hoverable:hover .podcast-title--scroll .podcast-title-track,
.podcast-card--hoverable:focus-within .podcast-title--scroll .podcast-title-track {
  animation-play-state: paused;
}
@keyframes podcastTitleScroll {
  0%, 12% { transform: translateX(0); }
  88%, 100% { transform: translateX(-42%); }
}
.podcast-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  font-size: 0.66rem;
  color: var(--text-3);
}
.podcast-player {
  width: 100%;
  max-width: 100%;
  height: 32px;
}
.podcast-links {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  min-width: 0;
}
.podcast-link {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-2);
  text-decoration: none;
  min-width: 0;
  overflow-wrap: anywhere;
}
.podcast-link:hover {
  color: var(--accent);
}

[data-theme="light"] .podcast-card {
  background:
    linear-gradient(180deg, rgba(184, 64, 0, 0.1), rgba(184, 64, 0, 0.025)),
    #fff7ed;
  border-color: rgba(184, 64, 0, 0.24);
}
[data-theme="light"] .podcast-hover-panel {
  background: rgba(255, 251, 245, 0.98);
  color: #3e2415;
  border-color: rgba(184, 64, 0, 0.18);
}
[data-theme="light"] .podcast-hover-title { color: #3e2415; }
[data-theme="light"] .podcast-hover-desc { color: #6b5840; }
[data-theme="opacy"] .podcast-card {
  border-color: rgba(255, 138, 64, 0.35);
}
[data-theme="city-connect"] .podcast-card {
  border-color: rgba(45, 90, 61, 0.35);
  background:
    linear-gradient(180deg, rgba(45, 90, 61, 0.14), rgba(45, 90, 61, 0.04)),
    var(--card);
}
[data-theme="city-connect"] .podcast-hover-panel {
  background: rgba(234, 244, 236, 0.98);
  border-color: rgba(45, 90, 61, 0.28);
  color: #1f3d2b;
  box-shadow: 0 10px 28px rgba(21, 47, 32, 0.26);
}
[data-theme="city-connect"] .podcast-hover-title {
  color: #1b3526;
}
[data-theme="city-connect"] .podcast-hover-desc {
  color: #325140;
}
[data-theme="city-connect"] .podcast-kicker {
  color: #2D5A3D;
}
[data-theme="city-connect"] .podcast-title {
  color: #1b3526;
}
[data-theme="city-connect"] .podcast-meta {
  color: #355443;
}
[data-theme="city-connect"] .podcast-link {
  color: #1f4f35;
}
[data-theme="city-connect"] .podcast-link:hover {
  color: #153826;
}

/* ── Video Widget ────────────────────────────────────────────── */
.video-list { display: flex; flex-direction: column; }
/* Video rows and news cards (renderNewsThumbCard) share one layout: a small
   16:9 thumbnail in a fixed column, with text beside it, one row per story */
.video-item, .media-item--video, .news-thumb-card {
  display: grid; grid-template-columns: var(--thumb-w) minmax(0, 1fr); gap: 10px; align-items: start;
  padding: 8px 4px; border-bottom: 1px solid var(--border);
  text-decoration: none; color: var(--text); transition: background 0.15s;
}
.video-item, .media-item--video { cursor: pointer; }
.video-item:last-child, .media-item--video:last-child, .news-thumb-card:last-child { border-bottom: 0; }
.video-item:hover, .media-item--video:hover, .news-thumb-card:hover { background: var(--accent-dim); }
.video-thumb, .news-thumb-img {
  display: block; width: var(--thumb-w); aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px;
  background: var(--border);
}
.news-thumb-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.news-thumb-source {
  display: flex; align-items: center; gap: 4px; min-width: 0;
  font-size: 0.62rem; font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.03em;
}
.news-thumb-favicon { width: 12px; height: 12px; flex: none; border-radius: 2px; }
.news-thumb-title {
  font-size: 0.8rem; font-weight: 500; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.video-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.video-channel { font-size: 0.62rem; font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.03em; }
.video-title {
  font-size: 0.8rem; font-weight: 500; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ── Video Play Icon ─────────────────────────────────────────── */
.video-thumb-wrap {
  position: relative; width: var(--thumb-w);
}
.video-play-icon {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 20px; height: 20px; color: #fff; filter: drop-shadow(0 1px 3px rgba(0,0,0,0.6));
  opacity: 0.85; transition: opacity 0.15s;
}
.video-item:hover .video-play-icon { opacity: 1; }

/* ── Video Theater Overlay ──────────────────────────────────── */
.video-theater {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity 0.2s, visibility 0.2s;
}
.video-theater.active { opacity: 1; visibility: visible; }
.video-theater-backdrop {
  position: absolute; inset: 0; background: rgba(0,0,0,0.85);
}
.video-theater-content {
  position: relative; width: 90vw; max-width: 960px; aspect-ratio: 16/9;
  border-radius: 10px; overflow: hidden; box-shadow: 0 8px 40px rgba(0,0,0,0.6);
}
.video-theater-player { width: 100%; height: 100%; }
.video-theater-player iframe { width: 100%; height: 100%; display: block; }
.video-theater-close {
  position: absolute; top: -36px; right: 0;
  background: none; border: none; color: #fff; font-size: 28px;
  cursor: pointer; line-height: 1; padding: 4px 8px; z-index: 1;
  opacity: 0.8; transition: opacity 0.15s;
}
.video-theater-close:hover { opacity: 1; }

/* ── Source Filter Popover ────────────────────────────────────── */
.source-filter-wrap { position: relative; }
.btn-source-filter {
  display: flex; align-items: center; gap: 5px;
  background: var(--card); border: 1px solid var(--border);
  color: var(--text-2); padding: 5px 10px;
  border-radius: 6px; font-size: 0.78rem; cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.btn-source-filter:hover { border-color: var(--accent); color: var(--accent); }
.btn-source-filter[aria-pressed="true"] {
  border-color: var(--accent);
  background: rgba(251,146,60,0.12);
  color: var(--accent);
}
.btn-feed-toggle[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--accent-dim);
  color: var(--accent);
}
.source-popover {
  position: absolute; top: calc(100% + 6px); right: 0;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 12px;
  z-index: 30; min-width: 240px; max-width: 360px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}
.source-popover.hidden { display: none; }
.source-popover .pill-group { max-height: 260px; overflow-y: auto; }

/* ── Feed Area ─────────────────────────────────────────────────── */
.feed-area { display: flex; flex-direction: column; gap: 14px; min-width: 0; position: relative; z-index: 1; }
.feed-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
}
.toolbar-left {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
}

.toolbar-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1 1 auto;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
}
.view-toggle {
  display: flex;
  gap: 2px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px;
}
.view-btn {
  background: none; border: none; color: var(--text-3); padding: 5px 7px;
  border-radius: 4px; cursor: pointer; display: flex; align-items: center;
  transition: background 0.12s, color 0.12s;
}
.view-btn:hover { color: var(--text); }
.view-btn.active { background: var(--accent-dim); color: var(--accent); }
.sort-select {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 0.78rem;
  outline: none;
  cursor: pointer;
}
.btn-feed-toggle {
  white-space: nowrap;
}

.article-list { display: flex; flex-direction: column; gap: 16px; }
.article-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.article-grid.list-layout { grid-template-columns: 1fr; }
.article-group-header {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-2);
  padding: 8px 0 4px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}
.group-count {
  font-size: 0.7rem;
  font-weight: 600;
  background: var(--border);
  color: var(--text-3);
  padding: 1px 7px;
  border-radius: 10px;
}

/* ── Article Card ──────────────────────────────────────────────── */
.article-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
  min-width: 0;
  overflow: hidden;
}
.article-card img { max-width: 100%; height: auto; }
.article-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  border-color: var(--accent);
}

.article-thumb {
  width: 100%;
  max-height: 200px;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center center;
  flex-shrink: 0;
  overflow: hidden;
  background: var(--border);
}
.article-thumb-placeholder {
  width: 100%;
  max-height: 200px;
  aspect-ratio: 3 / 2;
  flex-shrink: 0;
  overflow: hidden;
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.placeholder-logo {
  width: 72%; max-width: 132px; height: 72%; max-height: 132px;
  object-fit: contain; opacity: 0.85; border-radius: 4px;
}

/* Source line */
.source-line {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--text-3);
}
.source-ico {
  width: 16px; height: 16px; border-radius: 3px; flex-shrink: 0;
}
.source-name { color: var(--text-2); font-weight: 600; }
.article-date { font-size: 0.71rem; color: var(--text-3); }
.full-badge {
  font-size: 0.58rem; font-weight: 700; padding: 1px 5px; border-radius: 3px;
  background: rgba(34,197,94,0.15); color: #22c55e; text-transform: uppercase;
}
.paywall-badge {
  font-size: 0.58rem; font-weight: 700; padding: 1px 5px; border-radius: 3px;
  background: rgba(100,116,139,0.15); color: var(--text-3); white-space: nowrap;
}
.share-btn {
  margin-left: auto; background: none; border: none; color: var(--text-3);
  padding: 2px 4px; cursor: pointer; display: flex; align-items: center;
  border-radius: 3px; transition: color 0.15s, background 0.15s;
  font-size: 0.65rem;
}
.share-btn:hover { color: var(--accent); background: var(--accent-dim); }

/* Read/unread state */
.article-card.read { opacity: 0.55; }
.article-card.read:hover { opacity: 0.85; }
.article-card.read .article-title { font-weight: 400; }
.read-tick {
  color: #22c55e; font-size: 0.7rem; font-weight: 700;
  margin-left: auto; padding-left: 6px; flex-shrink: 0;
}

/* Article body */
.article-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; padding: 12px 14px 14px; }
.article-title {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-card:hover .article-title { color: var(--accent); }
.article-desc {
  font-size: 0.8rem;
  color: var(--text-2);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-desc--clamp-1 { -webkit-line-clamp: 1; }
.article-desc--clamp-2 { -webkit-line-clamp: 2; }

/* Reader favicon */
.source-favicon {
  width: 18px; height: 18px; border-radius: 3px; vertical-align: middle;
  margin-right: 5px;
}

/* List view */
.article-card.list-view {
  flex-direction: row;
}
.article-card.list-view .article-thumb,
.article-card.list-view .article-thumb-placeholder {
  width: 160px; max-width: 160px; height: 100px; max-height: 100px;
  border-radius: 0; aspect-ratio: auto; object-fit: cover; object-position: center center; overflow: hidden;
}
.article-card.list-view .placeholder-logo { width: 78%; max-width: 108px; height: 78%; max-height: 108px; }

/* Compact view */
.article-card.compact {
  padding: 10px 14px;
  border-radius: 6px;
}
.article-card.compact .article-title { font-size: 0.88rem; -webkit-line-clamp: 1; }

.feed-msg {
  padding: 48px 20px;
  text-align: center;
  color: var(--text-3);
  font-size: 0.9rem;
}

/* ── Around the Horn Bundles ───────────────────────────────────── */
.ath-bundle {
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(180deg, #efe3c1 0%, #e3d1a8 100%);
  border: 1px solid #b68d4d;
  border-radius: 18px;
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow:
    0 12px 30px rgba(31, 24, 17, 0.22),
    inset 0 0 0 1px rgba(255,255,255,0.24);
  text-decoration: none;
}
.ath-bundle-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}
.ath-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
}
.ath-section-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ath-section-kicker {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fbbf24;
}
.ath-section-title {
  margin: 0;
  font-size: clamp(1.18rem, 1.8vw, 1.5rem);
  line-height: 1.05;
}

.ath-card-link {
  width: 100%;
  min-width: 0;
  aspect-ratio: 3 / 2;
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 0;
  border: 3px solid rgba(210, 179, 126, 0.72);
  box-shadow:
    inset 0 0 0 1px rgba(95, 60, 26, 0.22),
    0 10px 24px rgba(20, 14, 9, 0.22);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.ath-card-link::before {
  content: '';
  position: absolute;
  inset: 5px;
  border: 2px solid rgba(245, 230, 199, 0.26);
  box-shadow:
    inset 0 0 0 1px rgba(61, 37, 22, 0.1),
    0 0 0 1px rgba(108, 71, 35, 0.08);
  pointer-events: none;
  z-index: 3;
}
.ath-card-link:hover {
  transform: translateY(-3px) rotate(-0.35deg);
  border-color: #7d5b2f;
  box-shadow:
    0 18px 38px rgba(31, 24, 17, 0.28),
    inset 0 0 0 1px rgba(255,255,255,0.22);
}
.bundle-card-media {
  position: relative;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}
.bundle-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  border-radius: 0;
  border: 0;
  box-shadow: none;
  transform: scale(1.02);
  transform-origin: center;
}
.bundle-logo-mark {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.22));
  z-index: 2;
}
.bundle-logo-mark--mlb {
  width: 36px;
  height: 36px;
  border-radius: 7px;
}
.bundle-logo-mark--fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(180deg, #002d72 0%, #0f1f3d 100%);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 12px;
}
.bundle-card-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(22,16,10,0.03) 0%, rgba(22,16,10,0.16) 38%, rgba(22,16,10,0.82) 100%);
}
.bundle-card-media--orioles .bundle-card-overlay {
  background:
    linear-gradient(180deg, rgba(29,18,10,0.02) 0%, rgba(29,18,10,0.14) 38%, rgba(43,22,8,0.8) 100%);
}
.bundle-card-media--mlb .bundle-card-overlay {
  background:
    linear-gradient(180deg, rgba(14,22,36,0.02) 0%, rgba(14,22,36,0.16) 38%, rgba(19,30,47,0.82) 100%);
}
.bundle-card-copy {
  position: absolute;
  inset: auto 0 0 0;
  padding: 8px 14px 28px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 2;
}
.bundle-card-copy::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 20px;
  height: 4px;
  background: rgba(45, 90, 61, 0.78);
  clip-path: polygon(
    0 50%,
    5px 0,
    calc(100% - 5px) 0,
    100% 50%,
    calc(100% - 5px) 100%,
    5px 100%
  );
  box-shadow: 0 0 8px rgba(45, 90, 61, 0.28);
}
.bundle-card-copy::before {
  content: '';
  position: absolute;
  left: 14px;
  width: 36px;
  bottom: 26px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(45, 90, 61, 0.95), rgba(45, 90, 61, 0.2));
  box-shadow: 0 0 8px rgba(45, 90, 61, 0.18);
}
.bundle-title {
  font-size: clamp(0.74rem, 1.05vw, 0.86rem);
  font-weight: 700;
  line-height: 1.1;
  color: #fff6df;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  text-transform: none;
  letter-spacing: 0;
  text-shadow: 0 1px 0 rgba(43,36,27,0.45);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: calc(2 * 1.1em + 14px);
  box-sizing: border-box;
  padding: 6px 8px 8px;
  background:
    linear-gradient(180deg, rgba(64, 39, 19, 0.16), rgba(64, 39, 19, 0.5)),
    linear-gradient(90deg, rgba(var(--accent-rgb), 0.12), rgba(239, 224, 192, 0.06) 22%, rgba(239, 224, 192, 0.02));
  border-top: 1px solid rgba(248, 230, 197, 0.22);
  border-bottom: 1px solid rgba(63, 38, 18, 0.3);
  box-shadow: inset 0 1px 0 rgba(255, 246, 223, 0.12);
}

.bundle-card-footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 5px 12px 6px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background:
    linear-gradient(180deg, rgba(20, 40, 28, 0.06), rgba(20, 40, 28, 0.74)),
    repeating-linear-gradient(90deg, rgba(45, 90, 61, 0.22) 0 1px, transparent 1px 10px);
  border-top: 1px solid rgba(45, 90, 61, 0.38);
}
.ath-card-link--orioles .bundle-card-footer {
  background:
    linear-gradient(180deg, rgba(20, 40, 28, 0.06), rgba(20, 40, 28, 0.70)),
    repeating-linear-gradient(90deg, rgba(45, 90, 61, 0.28) 0 2px, transparent 2px 14px);
  border-top: 1px solid rgba(45, 90, 61, 0.42);
}
.ath-card-link--mlb .bundle-card-footer {
  background:
    linear-gradient(180deg, rgba(14, 26, 20, 0.06), rgba(14, 26, 20, 0.72)),
    repeating-linear-gradient(90deg, rgba(45, 90, 61, 0.24) 0 2px, transparent 2px 14px);
  border-top: 1px solid rgba(45, 90, 61, 0.34);
}
.bundle-meta { margin-top: 0; }
.bundle-sources { display: flex; align-items: center; gap: 6px; }
.bundle-sources .source-ico {
  width: 16px;
  height: 16px;
  border-radius: 3px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.42), 0 0 0 1px rgba(45,90,61,0.30);
}
.ath-card-link--orioles .bundle-title {
  background:
    linear-gradient(180deg, rgba(75, 35, 8, 0.18), rgba(75, 35, 8, 0.56)),
    linear-gradient(90deg, rgba(var(--accent-rgb), 0.18), rgba(239, 224, 192, 0.06) 22%, rgba(239, 224, 192, 0.02));
}
.ath-card-link--mlb .bundle-title {
  background:
    linear-gradient(180deg, rgba(20, 28, 44, 0.18), rgba(20, 28, 44, 0.56)),
    linear-gradient(90deg, rgba(245, 230, 199, 0.12), rgba(239, 224, 192, 0.05) 22%, rgba(239, 224, 192, 0.02));
}

.ath-page {
  min-height: 100vh;
  padding: 40px 20px 64px;
}
.ath-page-shell {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.ath-page-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ath-page-kicker {
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fbbf24;
  font-weight: 800;
}
.ath-page-title {
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1.02;
  margin: 0;
}
.ath-page-subtitle {
  margin: 0;
  color: var(--text-2);
  max-width: 720px;
  line-height: 1.5;
}
.ath-story-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.ath-story-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
}
.ath-story-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  color: var(--text-3);
}
.ath-story-title {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.3;
}
.ath-story-title a {
  color: var(--text);
  text-decoration: none;
}
.ath-story-title a:hover { color: var(--accent); }
.ath-story-desc {
  margin: 0;
  color: var(--text-2);
  line-height: 1.55;
  font-size: 0.88rem;
}
[data-theme="light"] .bundle-card-overlay {
  background: linear-gradient(180deg, rgba(255,255,255,0.06) 0%, rgba(43,36,27,0.08) 46%, rgba(43,36,27,0.18) 100%);
}
[data-theme="light"] .ath-section-kicker {
  color: #b45309;
}
[data-theme="light"] .bundle-card-footer,
[data-theme="light"] .ath-story-card {
  background: linear-gradient(180deg, rgba(255,248,230,0.7), rgba(255,255,255,0.94));
}

/* ── Reader Modal ──────────────────────────────────────────────── */
.reader-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0,0,0,0.65);
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
}
.reader-overlay.hidden { display: none; }

.reader-modal {
  width: min(800px, 100%);
  background: #fff;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}
.reader-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: #f5f5f5;
  border-bottom: 1px solid #e0e0e0;
  gap: 12px;
  flex-shrink: 0;
}
.reader-meta { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.reader-source-badge {
  font-size: 0.69rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  color: #fff;
  flex-shrink: 0;
}
.reader-date { font-size: 0.73rem; color: #777; }
.reader-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.btn-original-reader {
  font-size: 0.78rem;
  padding: 5px 12px;
  border: 1px solid var(--accent);
  border-radius: 5px;
  color: var(--accent);
  background: transparent;
  transition: all 0.15s;
}
.btn-original-reader:hover { background: var(--accent); color: var(--on-accent); }
.btn-close-reader {
  padding: 5px 9px;
  background: transparent;
  border: 1px solid #ddd;
  border-radius: 5px;
  color: #666;
  font-size: 1rem;
  transition: all 0.15s;
}
.btn-close-reader:hover { background: #eee; color: #333; }

.reader-title {
  padding: 16px 20px 14px;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.4;
  color: #111;
  border-bottom: 1px solid #eee;
  flex-shrink: 0;
}
.reader-body { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.reader-frame { flex: 1; width: 100%; border: none; }

.reader-fallback {
  flex: 1;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow-y: auto;
}
.reader-fallback.hidden { display: none; }
.reader-excerpt { font-size: 1rem; line-height: 1.75; color: #333; }
.btn-read-full {
  align-self: flex-start;
  padding: 11px 22px;
  background: var(--accent);
  color: var(--on-accent);
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: opacity 0.15s;
}
.btn-read-full:hover { opacity: 0.88; }

/* ── Easter Eggs ──────────────────────────────────────────────── */

/* Orioles Magic confetti */
.magic-confetti {
  position: fixed; inset: 0; z-index: 9999;
  pointer-events: none; overflow: hidden;
}
.magic-fade-out { animation: magicFadeOut 0.6s ease-in forwards; }
@keyframes magicFadeOut { from { opacity: 1; } to { opacity: 0; } }
.confetti-burst {
  position: absolute; border-radius: 2px; z-index: 1;
  animation: confettiBurst ease-out forwards;
  transform: rotate(0deg);
}
@keyframes confettiBurst {
  0% { transform: translate(0, 0) rotate(0deg); opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) rotate(720deg); opacity: 0; }
}

/* Seven Nation Army chant */
.sna-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.85);
  display: flex; align-items: center; justify-content: center;
  animation: snaFade 4s ease-in forwards;
  pointer-events: none;
}
@keyframes snaFade { 0%, 70% { opacity: 1; } 100% { opacity: 0; } }
.sna-text {
  display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; align-items: baseline;
  font-size: clamp(1.5rem, 5vw, 3rem); font-weight: 900; color: var(--accent);
  text-transform: uppercase;
}
.sna-text span {
  animation: snaBounce 0.5s ease-out both;
  text-shadow: 0 0 20px rgba(var(--accent-rgb), 0.5);
}
.sna-text span:nth-child(1) { animation-delay: 0s; }
.sna-text span:nth-child(2) { animation-delay: 0.35s; }
.sna-text span:nth-child(3) { animation-delay: 0.7s; }
.sna-text span:nth-child(4) { animation-delay: 1.2s; }
.sna-text span:nth-child(5) { animation-delay: 1.55s; }
.sna-text span:nth-child(6) { animation-delay: 2.0s; }
.sna-big { font-size: 1.3em; color: #fff; }
@keyframes snaBounce {
  0% { transform: scale(0.3) translateY(20px); opacity: 0; }
  60% { transform: scale(1.2) translateY(-5px); opacity: 1; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}
.sna-chant .logo-img {
  animation: snaShake 0.3s ease-in-out infinite;
}
@keyframes snaShake {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-5deg); }
  75% { transform: rotate(5deg); }
}

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

/* Widescreen: widen sidebars and expand max layout */
@media (min-width: 1700px) {
  :root { --sidebar-w: 310px; }
  .page-layout { max-width: 1840px; padding: 20px 32px 60px; }
}
@media (min-width: 1400px) and (max-width: 1699px) {
  :root { --sidebar-w: 290px; }
}

/* Tablet: 2-column, hide right sidebar */
@media (max-width: 1100px) {
  .page-layout { grid-template-columns: var(--sidebar-w) 1fr; }
  .sidebar-right { display: none; }
}

/* Smaller tablet / landscape phone */
@media (max-width: 960px) {
  .page-layout {
    grid-template-columns: 1fr;
    padding: 16px 16px 48px;
  }
  .sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .sidebar-right { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .search-wrap { grid-column: 1 / -1; }
  
}

/* Mobile */
@media (max-width: 600px) {
  .podcast-hover-panel {
    display: none;
  }

  :root {
    --header-h: 52px;
    --scores-h: 68px;
  }

  /* Header – compact */
  .header-inner { padding: 0 12px; gap: 8px; }
  .logo { gap: 8px; padding: 8px 12px 10px 9px; }
  .logo-img { height: 36px; padding: 2px; }
  .logo-wordmark { font-size: 1.42rem; gap: 0.14em; }
  .logo-wordmark .logo-word:first-child { letter-spacing: 0.04em; }
  .logo-word-accent { letter-spacing: 0; }
  .btn-settings, .btn-refresh { min-width: 44px; min-height: 44px; justify-content: center; }
  .btn-refresh span { display: none; }
  .cache-label { display: none; }

  /* Scores bar – tighter */
  .scores-bar { padding: 6px 0; }
  .score-chip { padding: 6px 10px; min-width: 88px; font-size: 0.72rem; }
  .chip-team { font-size: 0.72rem; }
  .chip-score { font-size: 0.78rem; }
  .chip-status { font-size: 0.6rem; }
  .box-score-popover { display: none !important; }

  /* Layout – single column, right sidebar visible */
  .page-layout { grid-template-columns: 1fr; gap: 16px; padding: 12px 12px 48px; }
  .sidebar-left, .sidebar-right {
    position: static; max-height: none; overflow: visible;
    display: flex; flex-direction: column; gap: 12px;
    min-width: 0;
  }
  .sidebar-right { display: flex; }

  /* Collapse sidebar sections by default on mobile (JS adds .mobile-collapsed) */
  .sidebar-left .sidebar-section { gap: 6px; }
  .sidebar-right .sidebar-section { gap: 6px; }
  .section-body,
  .on-deck-card,
  .podcast-card,
  .roster-list,
  .txn-list,
  .il-list,
  .leaders-stack,
  .sched-row-wrap {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
  .on-deck-matchup { padding-right: 52px; }
  .on-deck-opp { font-size: 0.78rem; }
  .on-deck-weather { right: 10px; top: 10px; gap: 4px; }
  .on-deck-weather-icon { font-size: 0.9rem; }
  .on-deck-weather-temp { font-size: 0.66rem; }
  .podcast-card { padding: 10px; }
  .podcast-title { font-size: 0.73rem; }
  .podcast-meta { flex-wrap: wrap; gap: 4px 8px; }
  .podcast-player { height: 30px; }
  .podcast-links { gap: 6px 10px; }
  .podcast-link { font-size: 0.64rem; }

  /* Feed toolbar – stack on mobile */
  .feed-toolbar { flex-wrap: wrap; gap: 6px; }
  .toolbar-left { width: 100%; }
  .toolbar-controls { width: 100%; margin-left: 0; justify-content: flex-start; }
  .toolbar-controls { gap: 6px; flex-wrap: wrap; }
  .view-btn { min-width: 36px; min-height: 36px; }
  .btn-source-filter { padding: 6px 10px; min-height: 36px; }
  .sort-select { min-height: 36px; font-size: 0.75rem; }
  .view-btn[data-view="grid"] { display: none; }

  /* Article cards – horizontal, tighter */
  .article-grid { grid-template-columns: 1fr; gap: 10px; }
  .article-card { flex-direction: row !important; gap: 0; }
  .article-card img { max-width: 100%; height: auto; }
  .article-thumb, .article-thumb-placeholder {
    width: 90px !important; max-width: 90px !important;
    height: 72px !important; min-height: 72px !important;
    flex-shrink: 0; border-radius: 0 !important;
    aspect-ratio: auto !important; object-fit: cover; object-position: center center !important;
  }
  .placeholder-logo { width: 84% !important; height: 84% !important; max-width: 76px !important; max-height: 76px !important; }
  .article-body { padding: 8px 10px 10px; gap: 4px; }
  .article-title {
    font-size: 0.85rem; -webkit-line-clamp: 2;
    display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden;
  }
  .article-desc {
    font-size: 0.75rem; -webkit-line-clamp: 1;
    display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden;
  }
  .source-line { gap: 4px; font-size: 0.68rem; }
  .source-ico { width: 12px; height: 12px; }
  .share-btn { min-width: 28px; min-height: 28px; }

  /* Reader – full screen mobile */
  .reader-modal { width: 100%; border-radius: 0; max-height: 100vh; }
  .reader-title { padding: 12px 14px 10px; font-size: 1.05rem; }

  /* Settings – full width on mobile */
  .settings-panel { width: 92vw; max-width: none; padding: 20px; }

  /* Sidebar widget constraints */
  .roster-list { max-height: none; }
  .txn-list { max-height: none; }
  .leaders-list { font-size: 0.72rem; }
  .sched-box { padding: 4px 1px; }
  .sched-box-logo { width: 18px; height: 18px; }

  /* Around the Horn – compact */
  .ath-section { gap: 10px; margin-bottom: 16px; }
  .ath-section-title { font-size: 1.3rem; }
  
  .ath-bundle-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .ath-card-link { max-width: none; aspect-ratio: 16 / 9; }
  .bundle-card-copy { padding: 6px 10px 26px; }
  .bundle-title { font-size: 0.78rem; min-height: auto; padding: 5px 7px 7px; }
  .bundle-logo-mark { width: 28px; height: 28px; top: 8px; right: 8px; }
  .bundle-logo-mark--mlb { width: 28px; height: 28px; border-radius: 5px; }
  .bundle-card-footer { padding: 4px 10px 5px; }
  .bundle-sources .source-ico { width: 13px; height: 13px; }
  .ath-page { padding: 28px 14px 48px; }

  /* Source popover – full width bottom sheet style, above the tab bar */
  .source-popover {
    position: fixed; top: auto; bottom: 0; left: 0; right: 0;
    border-radius: 12px 12px 0 0; max-width: none;
    max-height: 60vh; overflow-y: auto;
    z-index: 50;
  }

  .source-popover { bottom: var(--tab-bar-h); }
}

/* Extra-narrow phones: single-column ATH grid */
@media (max-width: 400px) {
  .ath-bundle-grid { grid-template-columns: 1fr; gap: 10px; }
  .ath-card-link { aspect-ratio: 16 / 9; }
}

/* ═══════════════════════════════════════════════════════════════
   SCHEDULE PAGE
   ═══════════════════════════════════════════════════════════════ */

/* ── Breadcrumb header ────────────────────────────────────────── */
.header-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-3);
}
.breadcrumb-link {
  color: var(--text-2);
  text-decoration: none;
  transition: color 0.15s;
}
.breadcrumb-link:hover { color: var(--accent); }
.breadcrumb-sep { color: var(--border-light); }
.breadcrumb-current { color: var(--text-2); font-weight: 500; }

/* ── Page shell ───────────────────────────────────────────────── */
.schedule-page {
  padding: 0 16px 56px;
  min-height: calc(100vh - var(--header-h, 82px));
}
.schedule-container {
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 18px;
}

/* ── Toolbar ──────────────────────────────────────────────────── */
.schedule-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.schedule-nav-group {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sch-nav-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 6px;
  width: 32px; height: 32px;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
.sch-nav-btn:hover { background: var(--border); }
.sch-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  min-width: 185px;
  text-align: center;
  margin: 0;
}
.sch-today-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-2);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 0.72rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.sch-today-btn:hover { background: var(--border); color: var(--text); }
.sch-view-group {
  display: flex;
  gap: 2px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px;
}
.sch-view-btn {
  background: none;
  border: none;
  color: var(--text-2);
  border-radius: 4px;
  padding: 4px 12px;
  font-size: 0.72rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.sch-view-btn.active { background: var(--border-light); color: var(--text); }
.sch-view-btn:not(.active):hover { color: var(--text); }

/* ── Legend ───────────────────────────────────────────────────── */
.sch-legend {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.sch-legend-item {
  font-size: 0.65rem;
  padding: 2px 7px;
  border-radius: 3px;
  border: 1px solid var(--border);
}
.legend--home    { background: rgba(var(--accent-rgb), 0.08); border-color: rgba(var(--accent-rgb), 0.30); color: var(--accent); }
.legend--away    { background: var(--surface); color: var(--text-3); }
.legend--live    { background: rgba(var(--accent-rgb), 0.12); border-color: rgba(var(--accent-rgb), 0.4); color: var(--accent); }
.legend--preview { background: var(--surface); color: var(--text-2); }
.legend--spring  { background: var(--surface); color: var(--text-3); border-style: dashed; }
.legend--off     { background: var(--surface); color: var(--text-3); text-decoration: line-through; }
.legend--key     { background: var(--surface); color: var(--accent-text, var(--accent)); }
.sch-updated     { font-size: 0.65rem; color: var(--text-3); margin-left: auto; align-self: center; }

/* ── Reschedules (#42) ────────────────────────────────────────── */
.sch-changes {
  font-size: 0.78rem;
  color: var(--text-2);
  margin: 0 0 12px;
  padding: 6px 10px;
  border-left: 3px solid var(--accent);
  background: rgba(var(--accent-rgb), 0.06);
  border-radius: 3px;
}
.sch-empty-note {
  font-size: 0.85rem;
  color: var(--text-2);
  text-align: center;
  margin: 14px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
}
.sch-empty-note[hidden], .sch-changes[hidden] { display: none; }
.sch-change-link {
  font: inherit;
  color: var(--accent);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── Month calendar grid ──────────────────────────────────────── */
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.cal-hdr {
  background: var(--surface);
  padding: 6px 4px;
  text-align: center;
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.cal-cell {
  background: var(--card);
  padding: 5px;
  min-height: 82px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.cal-cell--empty { background: var(--surface); opacity: 0.4; min-height: 82px; }
.cal-cell--today { background: color-mix(in srgb, var(--accent) 6%, var(--card)); }
.cal-day {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-3);
  line-height: 1;
}
.cal-cell--today .cal-day { color: var(--accent); }
.cal-series-label {
  font-size: 0.57rem;
  color: var(--text-3);
  font-style: italic;
  line-height: 1.2;
  margin-bottom: 1px;
}

/* ── Game chip: compact (month view) ─────────────────────────── */
.sch-chip {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 4px 5px;
  border-radius: 4px;
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color 0.15s, background 0.15s;
  line-height: 1.25;
}
.sch-chip:hover { border-color: var(--border-light); background: var(--border); }

.chip--home       { background: rgba(var(--accent-rgb), 0.08); border-color: rgba(var(--accent-rgb), 0.30); }
.chip--home:hover { background: rgba(var(--accent-rgb), 0.12); border-color: rgba(var(--accent-rgb), 0.40); }
.chip--live       { background: rgba(var(--accent-rgb), 0.12); border-color: rgba(var(--accent-rgb), 0.4); }

.chip-row1 {
  display: flex;
  align-items: center;
  gap: 3px;
}
.chip-logo {
  width: 18px; height: 18px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 2px rgba(255,255,255,0.08));
}
.chip-ha   { font-size: 0.58rem; color: var(--text-3); font-style: italic; flex-shrink: 0; }
.chip-abbr { font-size: 0.67rem; font-weight: 600; color: var(--text); flex: 1; min-width: 0; }
.chip-series-badge {
  font-size: 0.55rem;
  color: var(--text-3);
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 0 3px;
  flex-shrink: 0;
}
.chip-row2 {
  display: flex;
  align-items: center;
  gap: 4px;
}
.chip-result  { font-size: 0.64rem; color: var(--text-2); }
.chip-time  { font-size: 0.6rem;  color: var(--text-3); }
.chip-live  { font-size: 0.62rem; color: var(--accent); font-weight: 600; }
.chip-wx    { font-size: 0.62rem; color: var(--text-3); margin-left: auto; }
.chip-off   { font-size: 0.6rem; color: var(--text-3); text-decoration: line-through; text-transform: uppercase; letter-spacing: 0.03em; }
.chip-note  { font-size: 0.58rem; color: var(--text-3); font-style: italic; line-height: 1.2; }
.chip-tag {
  font-size: 0.5rem;
  font-weight: 700;
  color: var(--text-3);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 0 2px;
  flex-shrink: 0;
}
.chip-tag--spring { border-style: dashed; }
.chip--spring { border-style: dashed; }
.chip--spring:not(:hover) { opacity: 0.85; }
.chip--off { background: transparent !important; border-style: dashed; }
.chip--off:not(:hover) { opacity: 0.7; }
.chip--off .chip-logo { filter: grayscale(1); }
.chip--changed { outline: 2px solid var(--accent); outline-offset: -1px; }

/* Key dates on the calendar (#42) */
.cal-key {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 3px;
  font-size: 0.6rem;
  line-height: 1.25;
  color: var(--accent-text, var(--accent));
  font-weight: 600;
  margin-bottom: 2px;
}
.cal-key-star { flex-shrink: 0; }
.cal-key-title { min-width: 0; overflow-wrap: anywhere; hyphens: auto; }
.cal-key-extra { flex-basis: 100%; font-weight: 400; font-style: italic; color: var(--text-3); padding-left: 1.1em; }
.cal-key--off .cal-key-title { text-decoration: line-through; color: var(--text-3); }
.cal-key--full {
  font-size: 0.72rem;
  padding: 5px 7px;
  border: 1px dashed rgba(var(--accent-rgb), 0.4);
  border-radius: 4px;
  margin-bottom: 4px;
}
.cal-key--full .cal-key-extra { font-size: 0.66rem; }
.sch-chip--full .chip-off { font-size: 0.72rem; }
.sch-chip--full .chip-note { font-size: 0.68rem; }

/* ── Game chip: full (week view) ──────────────────────────────── */
.sch-chip--full {
  padding: 8px 10px;
  gap: 5px;
  font-size: 0.75rem;
}
.sch-chip--full .chip-logo { width: 24px; height: 24px; }
.chip-full-header {
  display: flex;
  align-items: center;
  gap: 8px;
}
.chip-full-matchup {
  display: flex;
  flex-direction: column;
  gap: 1px;
  flex: 1;
  min-width: 0;
}
.chip-full-ha {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chip-series-info { font-size: 0.62rem; color: var(--text-3); }
.chip-full-status {
  display: flex;
  align-items: center;
  gap: 6px;
}
.chip-full-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 1px;
}
.chip-probable {
  font-size: 0.63rem;
  color: var(--text-2);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 1px 5px;
}
.chip-broadcast {
  font-size: 0.6rem;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(var(--accent-rgb), 0.25);
  border-radius: 3px;
  padding: 1px 5px;
}

/* ── Week view ────────────────────────────────────────────────── */
.week-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}
.week-col {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 160px;
}
.week-col--today { border-color: rgba(var(--accent-rgb), 0.4); }
.week-col-hdr {
  background: var(--surface);
  padding: 7px 8px 6px;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.week-day-name {
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.week-day-num { font-size: 0.72rem; color: var(--text); }
.week-col--today .week-day-num { color: var(--accent); font-weight: 600; }
.week-stretch-label {
  font-size: 0.57rem;
  color: var(--text-3);
  margin-top: 2px;
}
.week-col-body {
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.week-empty {
  color: var(--text-3);
  font-size: 0.8rem;
  text-align: center;
  margin: auto;
}

/* ── Loading / empty states ───────────────────────────────────── */
.sch-loading, .sch-msg {
  padding: 56px 16px;
  text-align: center;
  color: var(--text-3);
  font-size: 0.88rem;
}

/* ── Full-schedule sidebar link ───────────────────────────────── */
.section-schedule-link {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 3px 14px 8px;
  font-size: 0.68rem;
  color: var(--text-3);
  text-decoration: none;
  transition: color 0.15s;
  gap: 3px;
}
.section-schedule-link:hover { color: var(--accent); }

/* ── Light theme overrides ────────────────────────────────────── */
[data-theme="light"] .cal-cell      { background: #fff; }
[data-theme="light"] .cal-cell--empty { background: #f0f0f0; }
[data-theme="light"] .sch-chip      { background: #f8f8f8; }
[data-theme="light"] .chip--home    { background: rgba(var(--accent-rgb), 0.06); border-color: rgba(var(--accent-rgb), 0.25); }
[data-theme="light"] .week-col { background: #fff; }
[data-theme="light"] .chip-probable { background: #f0f0f0; }

/* ── Schedule: responsive ─────────────────────────────────────── */
@media (max-width: 900px) {
  .week-grid { overflow-x: auto; grid-template-columns: repeat(7, minmax(100px, 1fr)); }
}
@media (max-width: 600px) {
  .schedule-page { padding: 0 8px 48px; }
  .sch-title { min-width: 130px; font-size: 0.9rem; }
  .cal-cell { min-height: 64px; padding: 4px; gap: 2px; }
  .sch-chip { padding: 3px 4px; }
  .chip-abbr { font-size: 0.62rem; }
  .week-grid { grid-template-columns: 1fr; overflow-x: unset; }
  .week-col { min-height: auto; }
}

/* ── Team Picker ──────────────────────────────────────────────── */
.btn-team-picker {
  display: flex; align-items: center; justify-content: center;
  background: none; border: 1px solid var(--border); border-radius: 6px;
  padding: 4px 6px; cursor: pointer; color: var(--text);
  transition: border-color 0.15s, background 0.15s;
}
.btn-team-picker:hover { border-color: var(--accent); background: var(--accent-dim); }
.team-picker-active-logo { display: block; width: 20px; height: 20px; object-fit: contain; }
.team-picker-active-name { font-size: 0.75rem; font-weight: 600; white-space: nowrap; }

/* First-load tooltip */
.btn-team-picker--tooltip {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-dim), 0 0 8px 2px var(--accent-dim);
  animation: team-picker-pulse 1.8s ease-in-out infinite;
  position: relative;
}
@keyframes team-picker-pulse {
  0%, 100% { box-shadow: 0 0 0 2px var(--accent-dim), 0 0 6px 1px var(--accent-dim); }
  50%       { box-shadow: 0 0 0 4px var(--accent-dim), 0 0 14px 4px var(--accent-dim); }
}
.team-picker-tooltip {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--accent); color: var(--on-accent);
  font-size: 0.72rem; font-weight: 700; white-space: nowrap;
  padding: 5px 10px; border-radius: 6px;
  pointer-events: none; z-index: 100;
  animation: tooltip-drop 0.25s ease;
}
.team-picker-tooltip::before {
  content: ''; position: absolute; bottom: 100%; right: 12px;
  border: 5px solid transparent; border-bottom-color: var(--accent);
}
@keyframes tooltip-drop {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.team-picker-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,0.75); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
.team-picker-overlay.hidden { display: none; }

.team-picker-modal {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  max-width: 580px; width: 100%; max-height: 88vh; overflow-y: auto;
  display: flex; flex-direction: column;
}
.team-picker-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px 12px; border-bottom: 1px solid var(--border);
  position: sticky; top: 0; background: var(--surface); z-index: 1;
}
.team-picker-title { font-size: 1rem; font-weight: 700; color: var(--text); margin: 0; }
.team-picker-close {
  background: none; border: none; cursor: pointer; color: var(--muted);
  font-size: 1.1rem; padding: 4px 8px; border-radius: 4px; line-height: 1;
  transition: color 0.15s;
}
.team-picker-close:hover { color: var(--text); }

.team-picker-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; padding: 16px;
}
@media (max-width: 480px) {
  .team-picker-grid { grid-template-columns: repeat(4, 1fr); }
}

.team-picker-btn {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 10px 4px; border: 1px solid transparent; border-radius: 8px;
  background: none; cursor: pointer; color: var(--text);
  transition: background 0.15s, border-color 0.15s;
}
.team-picker-btn:hover { background: var(--accent-dim); border-color: var(--accent); }
.team-picker-logo { width: 48px; height: 48px; object-fit: contain; }
.team-picker-name { font-size: 0.62rem; color: var(--muted); text-align: center; line-height: 1.2; }
.team-picker-btn.active { border-color: var(--accent); background: var(--accent-dim); }
.team-picker-overlay--browse .team-picker-btn.active { border-color: transparent; background: none; }
.team-picker-sub { color: var(--muted); font-size: 0.8rem; margin: 4px 0 0; }
.team-picker-mode {
  margin-top: 8px; padding: 0; border: 0; background: none; cursor: pointer;
  font: inherit; font-size: 0.78rem; font-weight: 600; color: var(--accent-text);
  text-decoration: underline; text-underline-offset: 2px;
}

/* ── Viewing another team (?view=, teamPicker.js) ────────────── */
.view-banner {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: 8px max(16px, calc(50% - 700px)) 0; padding: 8px 12px;
  background: var(--accent); color: var(--on-accent);
  border-radius: 10px; font-size: 0.85rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.12);
}
.view-banner-logo { width: 22px; height: 22px; background: #fff; border-radius: 50%; padding: 2px; }
.view-banner-text { flex: 1 1 auto; min-width: 0; }
.view-banner-btn {
  font: inherit; font-size: 0.78rem; font-weight: 700; cursor: pointer; text-decoration: none;
  padding: 5px 10px; border-radius: 999px; white-space: nowrap;
  color: var(--on-accent); background: transparent; border: 1px solid currentColor;
}
.view-banner-back { background: var(--on-accent); color: var(--accent); border-color: var(--on-accent); }
.view-banner-btn:hover { opacity: 0.85; }
.view-banner-close {
  font: inherit; font-size: 0.95rem; line-height: 1; cursor: pointer;
  padding: 4px 6px; border: 0; background: none; color: var(--on-accent);
}
@media (max-width: 600px) {
  .view-banner { margin: 6px 8px 0; font-size: 0.8rem; gap: 8px; }
  .view-banner-text { flex-basis: calc(100% - 70px); }
}

/* ── No-team / first-visit state ─────────────────────────────── */
/* Hide the team-specific feed pill until a team is chosen */
.no-team #teamPill { display: none; }

/* On Deck placeholder */
.on-deck-no-team {
  display: flex; flex-direction: column; align-items: center;
  gap: 8px; padding: 24px 16px; text-align: center;
}
.on-deck-no-team-icon { font-size: 2rem; opacity: 0.45; }
.on-deck-no-team-msg {
  font-size: 0.78rem; color: var(--muted); line-height: 1.45; max-width: 200px;
}

/* Sidebar placeholder for roster / IL / transactions */
.sidebar-no-team-msg {
  font-size: 0.75rem; color: var(--muted);
  padding: 12px 0; text-align: center; line-height: 1.45;
}

/* ── Site search (search.js) ── */
.btn-search {
  display: flex; align-items: center; justify-content: center;
  padding: 6px 9px; background: transparent; cursor: pointer;
  border: 1px solid var(--border-light); border-radius: 6px; color: var(--text-2);
  transition: border-color 0.15s, color 0.15s;
}
.btn-search:hover { border-color: var(--accent); color: var(--accent-text); }
.header-inner > .btn-search { margin-left: 12px; }
@media (max-width: 600px) {
  .btn-search { min-width: 44px; min-height: 44px; }
}
.srch-overlay { position: fixed; inset: 0; z-index: 2300; background: rgba(10, 12, 16, 0.5); display: flex; justify-content: center; align-items: flex-start; padding: 10vh 16px 16px; }
.srch-overlay.hidden { display: none; }
.srch-panel {
  width: 100%; max-width: 620px; max-height: 76vh; display: flex; flex-direction: column;
  background: var(--card); color: var(--text); border: 1px solid var(--border); border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3); overflow: hidden;
}
.srch-bar { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--border); color: var(--text-3); }
.srch-input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; font-size: 1.05rem; }
.srch-input::-webkit-search-cancel-button { display: none; }
.srch-close { border: 1px solid var(--border); background: var(--surface); color: var(--text-3); border-radius: 6px; font: inherit; font-size: 0.7rem; padding: 3px 7px; cursor: pointer; }
.srch-results { overflow-y: auto; padding: 6px 0 10px; overscroll-behavior: contain; }
.srch-hint { margin: 10px 16px; color: var(--text-3); font-size: 0.85rem; }
.srch-group { padding: 4px 0; }
.srch-group + .srch-group { border-top: 1px solid var(--border); }
.srch-group-title { padding: 8px 16px 4px; font-size: 0.66rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent-text); }
.srch-item { display: flex; align-items: center; gap: 10px; padding: 7px 16px; color: var(--text); text-decoration: none; min-height: 40px; }
.srch-item img { width: 24px; height: 24px; flex-shrink: 0; object-fit: contain; }
.srch-item:hover, .srch-item.is-active { background: var(--accent-dim); }
.srch-main { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.srch-meta { margin-left: auto; padding-left: 8px; color: var(--text-3); font-size: 0.78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.srch-page-icon { width: 24px; text-align: center; color: var(--accent-text); }
@media (max-width: 600px) {
  .srch-overlay { padding: 0; }
  .srch-panel { max-width: none; max-height: none; height: 100%; border-radius: 0; border: 0; }
  .srch-bar { padding-top: calc(12px + env(safe-area-inset-top, 0px)); }
  .srch-results { padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)); }
  .srch-item { flex-wrap: wrap; row-gap: 0; }
  .srch-meta { margin-left: 34px; padding-left: 0; flex-basis: 100%; }
}
/* A player opened from search (depth-chart.js ?player=) */
.depth-chart-hl { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; background: var(--accent-dim); }
.depth-chart-notice { margin: 0 0 12px; font-size: 0.85rem; color: var(--text-2); }
.depth-chart-notice a { color: var(--accent-text); }
/* ── Welcome (onboarding.js) ── */
.ob-overlay {
  position: fixed; inset: 0; z-index: 10000; background: rgba(0, 0, 0, 0.55);
  display: flex; align-items: flex-end; justify-content: center;
  padding: calc(16px + env(safe-area-inset-top, 0px)) 16px calc(16px + env(safe-area-inset-bottom, 0px));
}
.ob-overlay.hidden { display: none; }
@media (min-width: 640px) { .ob-overlay { align-items: center; } }
.ob-dialog {
  position: relative; width: 100%; max-width: 440px; max-height: 100%; overflow-y: auto;
  background: var(--surface); color: var(--text); border-radius: 16px; padding: 22px 20px 18px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35); display: flex; flex-direction: column; gap: 14px;
}
.ob-close { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border: none; border-radius: 50%; background: transparent; color: var(--text-2); font-size: 1rem; cursor: pointer; }
.ob-body { display: flex; flex-direction: column; gap: 10px; }
.ob-hero { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 8px 0; }
.ob-team-logo { width: 96px; height: 96px; object-fit: contain; }
.ob-title { margin: 0 36px 0 0; font-size: 1.3rem; font-weight: 800; line-height: 1.2; text-wrap: balance; }
.ob-hero .ob-title { margin: 0; }
.ob-sub { margin: 6px 0 0; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-2); }
.ob-text { margin: 0; font-size: 0.95rem; line-height: 1.5; color: var(--text-2); }
.ob-text--small { font-size: 0.8rem; }
.ob-themes { flex-wrap: wrap; }
.ob-themes .theme-btn { flex: 1; padding: 10px 8px; font-size: 0.85rem; }
.ob-tips { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 10px; font-size: 0.9rem; line-height: 1.45; color: var(--text-2); }
.ob-tips b { color: var(--text); }
.ob-tips kbd { padding: 1px 5px; border: 1px solid var(--border-light); border-radius: 4px; font: inherit; font-size: 0.8em; }
.ob-link { padding: 0; border: none; background: none; color: var(--accent-text); font: inherit; font-weight: 700; cursor: pointer; }
.ob-dots { display: flex; justify-content: center; gap: 6px; }
.ob-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--border-light); }
.ob-dot.active { background: var(--accent); width: 20px; border-radius: 4px; }
.ob-actions { display: flex; align-items: center; gap: 10px; }
.ob-skip { padding: 11px 14px; border: none; background: none; color: var(--text-2); font-family: inherit; font-weight: 600; font-size: 0.9rem; line-height: 1; cursor: pointer; }
.ob-next { flex: 1; padding: 11px; border-radius: 10px; border: none; background: var(--accent); color: var(--on-accent); font-family: inherit; font-weight: 700; font-size: 0.9rem; line-height: 1; cursor: pointer; }
/* ── Feedback (feedback.js) ── */
.site-footer { display: flex; justify-content: center; padding: 16px 16px calc(24px + env(safe-area-inset-bottom, 0px)); }
.feedback-link {
  padding: 4px 8px; border: none; background: none; color: var(--text-2); font-family: inherit; font-size: 0.8rem;
  text-decoration: underline; text-underline-offset: 2px; cursor: pointer;
}
.feedback-link:hover { color: var(--accent-text); }
.thanks-overlay {
  position: fixed; inset: 0; z-index: 10001; display: flex; align-items: center; justify-content: center;
  padding: calc(16px + env(safe-area-inset-top, 0px)) 16px calc(16px + env(safe-area-inset-bottom, 0px));
  background: rgba(0,0,0,0.6);
}
.thanks-dialog {
  position: relative; width: 100%; max-width: 420px; max-height: 100%; overflow-y: auto;
  padding: 20px; border: 1px solid var(--border); border-top: 4px solid var(--accent); border-radius: 16px;
  background: var(--surface); color: var(--text); box-shadow: 0 16px 48px rgba(0,0,0,0.45); outline: none;
}
.thanks-close {
  position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border: 0; border-radius: 50%;
  background: transparent; color: var(--text-2); font: inherit; font-size: 1rem; cursor: pointer;
}
.thanks-title { margin: 0 42px 16px 0; font-size: 1.15rem; line-height: 1.35; }
.thanks-scale { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 0 14px; padding: 0; border: 0; }
.thanks-scale legend { margin-bottom: 8px; padding: 0; font-size: 0.85rem; font-weight: 600; }
.thanks-rating {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px;
  border: 1px solid var(--border); border-radius: 10px; cursor: pointer; transition: border-color 0.15s, background 0.15s;
}
.thanks-rating input { position: absolute; opacity: 0; pointer-events: none; }
.thanks-rating:hover { border-color: var(--accent); }
.thanks-rating:has(input:checked) { border-color: var(--accent); background: var(--accent-dim); }
.thanks-rating:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.thanks-emoji { font-size: 1.6rem; line-height: 1; }
.thanks-rating-label { font-size: 0.72rem; color: var(--text-2); text-align: center; }
.thanks-comment-label { display: block; margin-bottom: 6px; font-size: 0.8rem; font-weight: 600; }
.thanks-comment-label span { color: var(--text-2); font-weight: 400; }
.thanks-comment {
  width: 100%; box-sizing: border-box; padding: 9px 10px; border: 1px solid var(--border); border-radius: 8px;
  background: var(--bg); color: var(--text); font: inherit; font-size: 0.85rem; resize: vertical;
}
.thanks-comment:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.thanks-hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.thanks-status { min-height: 1.2em; margin: 6px 0 0; font-size: 0.75rem; color: var(--text-2); }
.thanks-status:empty { min-height: 0; }
.thanks-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 12px; }
.thanks-later, .thanks-send {
  min-height: 40px; padding: 9px 16px; border-radius: 8px; font: inherit; font-weight: 600; cursor: pointer;
}
.thanks-later { border: 1px solid var(--border); background: transparent; color: var(--text); }
.thanks-send { border: 1px solid var(--accent); background: var(--accent); color: var(--on-accent); }
.thanks-send:disabled { opacity: 0.6; cursor: default; }
.thanks-sent { margin: 8px 0; font-size: 1rem; font-weight: 600; text-align: center; }

/* ── Site nav (Layout.astro) ──
   Desktop: icon + label row below the header (today · your team · league).
   Phones and tablets get the bottom tab bar instead (below). */
.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 0 12px;
  height: 34px;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
}
.site-nav::-webkit-scrollbar { display: none; }
.site-nav-link {
  flex-shrink: 0;
  padding: 0 10px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-2);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
}
.site-nav-link:hover { color: var(--text); }
.site-nav-link--active { color: var(--accent-text); border-bottom-color: var(--accent); }
.site-nav-sep { flex: none; width: 1px; height: 14px; margin: 0 4px; background: var(--border); }
.site-nav-icon { width: 15px; height: 15px; flex: none; opacity: 0.75; }
.site-nav-link--active .site-nav-icon { opacity: 1; }

/* ── Depth Chart, Trades, Draft and Postseason pages ──
   Ported from Yard Report's style.css with the page ports' class renames:
   dc- → depth-chart-, ps- → postseason-, asg- → event-, td- → trades-. */
.depth-chart-title { margin: 0 0 12px; font-size: 1.3rem; font-weight: 800; }
.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 0 12px;
  height: 34px;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
}
.site-nav::-webkit-scrollbar { display: none; }
.depth-chart-page {
  padding: 16px 20px 32px;
  max-width: 800px;
  margin: 0 auto;
}
.depth-chart-wrap { display: flex; flex-direction: column; gap: 0; }
.depth-chart-field-container {
  position: relative;
  width: 100%;
  aspect-ratio: 620 / 560;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
  background: var(--bg);
}
.depth-chart-svg { width: 100%; height: 100%; display: block; }
.depth-chart-grass       { fill: url(#grassGrad); }
.depth-chart-track       { fill: #2e1a0c; opacity: 0.92; }
.depth-chart-dirt        { fill: url(#dirtGrad); }
.depth-chart-mound       { fill: url(#moundGrad); }
.depth-chart-basepath    { fill: none; stroke: rgba(255,255,255,0.15); stroke-width: 1.5; }
.depth-chart-base        { fill: #ede5d0; }
.depth-chart-home-plate  { fill: #ede5d0; }
.depth-chart-rubber      { fill: #ede5d0; }
.depth-chart-foul        { stroke: rgba(255,255,255,0.32); stroke-width: 1.2; }
.depth-chart-wall        { fill: none; stroke: rgba(255,255,255,0.5); stroke-width: 3.5; stroke-linecap: round; }
.depth-chart-pole        { stroke: #f0c030; stroke-width: 3.5; stroke-linecap: round; }
.depth-chart-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.depth-chart-chip {
  position: absolute;
  transform: translate(-50%, -50%);
  background: rgba(6, 10, 18, 0.86);
  border: 1px solid rgba(223,70,1,0.22);
  border-top: 2px solid var(--orange);
  border-radius: 6px;
  padding: 5px 4px 7px;
  width: 92px;
  text-align: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  box-shadow: 0 3px 16px rgba(0,0,0,0.72), 0 0 0 1px rgba(223,70,1,0.06);
  pointer-events: all;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  z-index: 1;
}
.depth-chart-chip:hover {
  transform: translate(-50%, -50%) scale(1.08);
  box-shadow: 0 8px 28px rgba(0,0,0,0.85), 0 0 0 1px rgba(223,70,1,0.32);
  border-color: rgba(223,70,1,0.6);
  z-index: 10;
}
.depth-chart-chip--dh {
  border-color: rgba(223,70,1,0.28);
  background: rgba(18,8,2,0.88);
}
.depth-chart-chip-pos {
  font-size: 0.48rem;
  font-weight: 400;
  font-family: 'Graduate', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--orange);
  line-height: 1;
  margin-bottom: 1px;
}
.depth-chart-chip-starter {
  font-size: 0.76rem;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  white-space: normal;
  word-break: break-word;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.depth-chart-chip-starter:hover { color: var(--orange); }
.depth-chart-chip-backups {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin-top: 2px;
}
.depth-chart-chip-empty { font-size: 0.7rem; color: var(--text-3); }
.depth-chart-il-pill {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 6px;
  border-radius: 3px;
  background: rgba(239,68,68,0.15);
  color: #ef6060;
  vertical-align: middle;
  margin-left: 3px;
  pointer-events: none;
}
.depth-chart-unavail { display: block; padding: 1rem; color: var(--text-3); font-size: 0.8rem; }
.depth-chart-il-section-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: none;
  padding: 10px 16px 12px;
}
.depth-chart-il-section-label {
  font-size: 0.56rem;
  font-weight: 400;
  font-family: 'Graduate', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ef6060;
  margin-bottom: 7px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--border);
}
.depth-chart-il-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 3px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 0.73rem;
}
.depth-chart-il-row:last-child { border-bottom: none; }
.depth-chart-il-row-pos {
  font-size: 0.6rem;
  color: var(--text-3);
  width: 22px;
  text-align: right;
  flex-shrink: 0;
}
.depth-chart-il-row-name {
  flex: 1;
  color: var(--text-2);
  text-decoration: none;
  transition: color 0.12s;
}
.depth-chart-il-row-name:hover { color: var(--orange); }
.depth-chart-pitching {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 2px solid var(--orange);
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 14px 18px 16px;
  gap: 0 18px;
}
.depth-chart-pit-divider {
  background: var(--border);
  align-self: stretch;
}
.depth-chart-pit-label {
  font-size: 0.58rem;
  font-weight: 400;
  font-family: 'Graduate', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--orange);
  margin-bottom: 8px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--border);
}
.depth-chart-pit-row {
  display: flex;
  align-items: baseline;
  gap: 7px;
  padding: 3px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.depth-chart-pit-row:last-child { border-bottom: none; }
.depth-chart-pit-rank {
  font-size: 0.58rem;
  font-weight: 700;
  color: var(--text-3);
  min-width: 11px;
  text-align: right;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}
.depth-chart-pit-row--starter .depth-chart-pit-rank { color: var(--orange); }
.depth-chart-pit-name {
  font-size: 0.73rem;
  color: var(--text-2);
  text-decoration: none;
  font-weight: 400;
  transition: color 0.12s;
}
.depth-chart-pit-row--starter .depth-chart-pit-name { color: var(--text); font-weight: 600; }
.depth-chart-pit-name:hover { color: var(--orange); }
.depth-chart-page-footer { margin-top: 14px; text-align: center; }
@media (max-width: 480px) {
  .depth-chart-chip { width: 68px; padding: 4px 3px 5px; border-radius: 5px; }
  .depth-chart-chip-starter { font-size: 0.65rem; }
  .depth-chart-chip-pos     { font-size: 0.42rem; }
  .depth-chart-pitching { padding: 10px 12px; gap: 0 10px; }
}
.media-list { display: flex; flex-direction: column; }
.event-page { padding: 0 16px 56px; min-height: calc(100vh - var(--header-h, 82px)); }
.event-container {
  max-width: 1200px; margin: 0 auto; padding-top: 18px;
  display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start;
}
.event-main-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.event-title { font-size: 1.3rem; font-weight: 700; color: var(--text); margin: 0; }
.event-updated { font-size: 0.7rem; color: var(--text-3); }
.event-team-col { min-width: 0; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; }
.event-team-head {
  font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--text); padding-bottom: 8px; margin-bottom: 4px; border-bottom: 2px solid var(--border);
}
.event-team-logo { flex-shrink: 0; }
.roster-badge--replacement { background: rgba(234,179,8,0.15); color: #ca8a04; }
.event-sidebar { min-width: 0; }
.event-sidebar .sidebar-section { padding: 12px 14px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 12px; gap: 10px; }
.event-sidebar .section-label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-2); display: flex; align-items: center; gap: 6px; margin: 0; }
.event-sidebar .section-toggle { cursor: pointer; }
.event-game-card { display: flex; flex-direction: column; gap: 3px; margin-bottom: 8px; }
.event-game-date { font-size: 0.9rem; font-weight: 700; color: var(--text); }
.event-countdown { font-size: 0.72rem; color: var(--orange); font-weight: 600; margin-top: 2px; }
.event-game-venue { font-size: 0.78rem; color: var(--text); margin-top: 6px; }
.news-thumb-list { display: flex; flex-direction: column; }
/* Thumbnail lists need the width when the event sidebar is two columns */
.event-sidebar .sidebar-section:has(.news-thumb-list, .media-list) { grid-column: 1 / -1; }
.event-history-item { display: flex; align-items: flex-start; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.event-history-item:last-child { border-bottom: none; }
.event-history-avatar {
  width: 30px; height: 30px; border-radius: 50%; object-fit: cover;
  border: 1px solid var(--border); background: var(--surface); flex-shrink: 0;
}
.event-history-avatar--placeholder {
  background: var(--surface);
  background-image: radial-gradient(circle at 50% 38%, var(--border-light) 0 7px, transparent 7px),
    radial-gradient(circle at 50% 95%, var(--border-light) 0 11px, transparent 11px);
}
.event-history-year { font-size: 0.78rem; font-weight: 700; color: var(--orange); flex-shrink: 0; width: 30px; }
.event-history-result { font-size: 0.76rem; color: var(--text); }
.event-history-meta { font-size: 0.68rem; color: var(--text-3); margin-top: 2px; }
.event-history-stat { font-size: 0.7rem; color: var(--orange); font-weight: 600; margin-top: 3px; }
@media (max-width: 760px) {
  .event-container { grid-template-columns: 1fr; }
}
.event-spotlight-kicker { font-size: 0.6rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--orange); }
.live-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #ef4444; flex-shrink: 0;
  animation: live-dot-pulse 1.6s ease-in-out infinite;
}
@keyframes live-dot-pulse {
  0%, 100% { opacity: 1; } 50% { opacity: 0.35; }
}
@media (prefers-reduced-motion: reduce) {
  .live-dot { animation: none; }
}
.roster-badge--info { background: rgba(148,163,184,0.15); color: var(--text-2); }
.draft-order-col { margin-top: 16px; }
.draft-order-list { max-height: 480px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--border) transparent; }
.draft-order-pick { width: 22px; flex-shrink: 0; text-align: right; font-variant-numeric: tabular-nums; color: var(--text-3); }
.draft-order-logo { flex-shrink: 0; }
.draft-order-team { font-weight: 600; color: var(--text); }
.draft-order-note { font-size: 0.66rem; color: var(--text-3); margin-left: auto; text-align: right; }

.reporter-item {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 7px 0; border-bottom: 1px solid var(--border);
  text-decoration: none; transition: color 0.15s;
}
.reporter-item:last-child { border-bottom: none; }
.reporter-name { font-size: 0.8rem; font-weight: 600; color: var(--text); }
.reporter-item:hover .reporter-name { color: var(--orange); }
.reporter-outlet { font-size: 0.68rem; color: var(--text-3); flex-shrink: 0; }
.trades-onblock-note { font-size: 0.76rem; color: var(--text-3); margin: 0 0 10px; line-height: 1.5; }
.info-trigger {
  position: relative; display: inline-flex; vertical-align: middle;
  margin-left: 8px; color: var(--text-3); cursor: help;
}
.info-trigger:hover, .info-trigger:focus { color: var(--orange); outline: none; }
.info-popover {
  position: absolute; top: 100%; left: 0; margin-top: 10px;
  width: 360px; max-width: min(80vw, 360px);
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px 16px; box-shadow: 0 10px 28px rgba(0,0,0,0.45);
  font-size: 0.78rem; font-weight: 400; line-height: 1.55; color: var(--text-2);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.15s ease;
  z-index: 20;
}
.info-popover p { margin: 0 0 10px; }
.info-popover p:last-child { margin-bottom: 0; }
.info-trigger:hover .info-popover,
.info-trigger:focus .info-popover { opacity: 1; visibility: visible; pointer-events: auto; }
@media (max-width: 600px) {
  .info-popover { left: auto; right: 0; }
}
.phc-header { display: flex; align-items: center; gap: 10px; }
.phc-photo { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: var(--surface); }
.phc-photo--empty { background: var(--surface); }
.phc-id { min-width: 0; }
.phc-name { font-size: 0.86rem; font-weight: 700; color: var(--text); }
.phc-meta { font-size: 0.68rem; color: var(--text-3); margin-top: 1px; }
.phc-stat { font-size: 0.78rem; font-weight: 600; color: var(--orange); margin-top: 10px; }
.phc-contract-link { display: inline-block; font-size: 0.74rem; margin-top: 6px; }
.event-team-head-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.event-team-head-row .event-updated { text-transform: none; letter-spacing: normal; font-weight: 500; }
.trades-org-list { max-height: 720px; }
.mention-item {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 0; border-bottom: 1px solid var(--border);
  text-decoration: none;
}
.mention-item:last-child { border-bottom: none; }
.mention-name { font-size: 0.82rem; font-weight: 600; color: var(--text); transition: color 0.15s; }
.mention-item:hover .mention-name { color: var(--orange); }
.mention-count { font-size: 0.68rem; color: var(--text-3); margin-left: auto; flex-shrink: 0; }
.draft-ticker-wrap {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface); border-bottom: 1px solid var(--border);
  padding: 8px 0;
  overflow: hidden;
}
.draft-ticker-label {
  flex-shrink: 0; margin-left: 20px;
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--orange); background: var(--orange-dim);
  padding: 4px 10px; border-radius: 999px;
}
.draft-ticker-viewport { flex: 1; overflow: hidden; min-width: 0; }
.draft-ticker-track {
  display: flex; width: max-content;
  animation: draft-ticker-scroll 32s linear infinite;
}
.draft-ticker-wrap:hover .draft-ticker-track { animation-play-state: paused; }
.draft-ticker-item {
  flex-shrink: 0; padding: 0 28px;
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 0.8rem; font-weight: 600; color: var(--text);
  border-right: 1px solid var(--border);
  white-space: nowrap;
}
.draft-ticker-name { color: inherit; text-decoration: underline; text-decoration-color: var(--orange-dim); text-underline-offset: 2px; }
.draft-ticker-name:hover { color: var(--orange); }
@keyframes draft-ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .draft-ticker-track { animation: none; }
  .draft-ticker-viewport { overflow-x: auto; }
}
.draft-order-empty { display: flex; flex-direction: column; gap: 10px; padding: 4px 0; }
.draft-order-empty p { font-size: 0.78rem; color: var(--text-3); margin: 0; }
.roster-name--pending { color: var(--text-3); font-style: italic; font-weight: 400; }
.draft-order-summary { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.draft-order-chip {
  font-size: 0.66rem; font-weight: 600; color: var(--text-2);
  background: var(--surface); border: 1px solid var(--border); border-radius: 4px;
  padding: 3px 7px;
}
.draft-order-note--pick {
  font-size: 0.78rem;
  color: var(--orange);
  text-decoration: none;
  font-weight: 700;
  margin-left: 8px;
  text-align: left;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.draft-order-note--pick:hover { text-decoration: underline; }
.draft-links-label { font-size: 0.62rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--orange); padding: 6px 0 2px; }
.draft-links-label:first-child { padding-top: 0; }
.draft-links-list { display: flex; flex-direction: column; gap: 2px; margin-bottom: 6px; }
.draft-link-item {
  font-size: 0.78rem; color: var(--text-2); padding: 3px 0;
  text-decoration: none; transition: color 0.15s;
}
.draft-link-item:hover { color: var(--orange); }
.prospect-board {
  padding: 16px 18px 14px;
  margin-bottom: 14px;
  border-radius: var(--radius-lg, 14px);
  border: 1px solid var(--border);
  background: linear-gradient(160deg, var(--orange-dim) 0%, var(--card) 45%);
}
.prospect-board-title-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-bottom: 10px;
}
.prospect-board-title { margin: 0; font-size: 1.05rem; font-weight: 800; color: var(--text); }
.prospect-board-subtitle { font-size: 0.72rem; color: var(--text-3); }
.prospect-board-head { display: flex; justify-content: flex-end; margin-bottom: 8px; }
.prospect-board-count {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.02em;
  color: var(--orange); background: var(--bg); border: 1px solid var(--orange-dim);
  border-radius: 999px; padding: 3px 10px;
}
.prospect-board-list { display: flex; flex-direction: column; gap: 2px; }
.prospect-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 8px;
  border-radius: 8px;
  transition: background 0.15s;
}
.prospect-row:hover { background: var(--surface); }
.prospect-row:first-child {
  background: var(--surface);
  border: 1px solid var(--orange-dim);
}
.prospect-rank {
  flex-shrink: 0;
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: 0.72rem; font-weight: 800; color: var(--text-2);
  font-variant-numeric: tabular-nums;
}
.prospect-row:first-child .prospect-rank {
  color: var(--orange); border-color: var(--orange-dim);
}
.prospect-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.prospect-meta { font-size: 0.72rem; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prospect-pos-badge {
  flex-shrink: 0; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.02em;
  padding: 3px 8px; border-radius: 5px;
}
.prospect-board-status {
  margin-top: 10px; padding-top: 10px;
  border-top: 1px solid var(--border);
  font-size: 0.74rem; color: var(--text-3);
}
.prospect-board-status a { color: var(--orange); text-decoration: none; font-weight: 600; }
.prospect-board-status a:hover { text-decoration: underline; }
/* ── Draft: winter drafts (#17, #18) ──────────────────────────── */
.dw {
  margin-bottom: 18px;
  padding: 18px 20px;
  border-radius: var(--radius-lg, 14px);
  border: 1px solid var(--border);
  background: linear-gradient(135deg, var(--orange-dim) 0%, var(--card) 55%);
}
.dw[hidden], .draft-july-head[hidden] { display: none; }
.dw-head { margin-bottom: 14px; }
.dw-kicker { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-text, var(--accent)); }
.dw-lead { font-size: 0.88rem; color: var(--text-2); margin: 4px 0 0; }
.dw-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.dw-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  min-width: 0;
}
.dw-card-head { display: flex; flex-direction: column; gap: 2px; margin-bottom: 8px; }
.dw-card-title { font-size: 0.92rem; font-weight: 700; color: var(--text); margin: 0; }
.dw-card-when { font-size: 0.74rem; color: var(--text-3); }
.dw-card--done .dw-card-when { text-decoration: none; }
.dw-text { font-size: 0.82rem; line-height: 1.45; color: var(--text-2); margin: 0 0 8px; }
.dw-text:last-child { margin-bottom: 0; }
.dw-note { font-size: 0.76rem; color: var(--text-3); margin-top: 8px; }
.dw-count a, .dw-source, .dw-text a { color: var(--accent-text, var(--accent)); }
.dw-sub { font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-3); margin: 10px 0 4px; }
.dw-sub:first-child { margin-top: 0; }
.dw-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.dw-list li { font-size: 0.85rem; color: var(--text); line-height: 1.35; }
.dw-list a { color: var(--text); font-weight: 600; text-decoration: none; }
.dw-list a:hover { color: var(--accent-text, var(--accent)); text-decoration: underline; }
.dw-pos { display: inline-block; min-width: 2.2em; font-size: 0.7rem; font-weight: 700; color: var(--text-3); }
.dw-meta { display: block; font-size: 0.72rem; color: var(--text-3); padding-left: 2.6em; }
.dw-empty { font-size: 0.82rem; color: var(--text-3); margin: 0; }
.dw-more { margin-top: 6px; }
.dw-more summary { font-size: 0.78rem; font-weight: 600; color: var(--accent-text, var(--accent)); cursor: pointer; margin-bottom: 6px; }
.dw-links { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; margin-top: 14px; font-size: 0.78rem; }
.dw-links-label { font-weight: 700; color: var(--text-3); }
.dw-links a { color: var(--accent-text, var(--accent)); }
.dw .fo-news-item { padding: 7px 0; }
.dw .fo-news-title { font-size: 0.82rem; }
.draft-july-head { font-size: 1rem; font-weight: 700; color: var(--text); margin: 6px 0 10px; }
.draft-july-head span { font-weight: 400; color: var(--text-3); margin-left: 6px; }

.draft-hero {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 22px;
  margin-bottom: 14px;
  border-radius: var(--radius-lg, 14px);
  border: 1px solid var(--border);
  background: linear-gradient(135deg, var(--orange-dim) 0%, var(--card) 55%);
  overflow: hidden;
}
.draft-hero-diamond {
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
  width: 160px;
  height: 160px;
  color: var(--orange);
  opacity: 0.1;
  pointer-events: none;
}
.draft-hero-diamond svg { width: 100%; height: 100%; }
.draft-hero-logo {
  width: 56px; height: 56px; flex-shrink: 0; z-index: 1;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.25));
}
.draft-hero-body { display: flex; flex-direction: column; gap: 10px; min-width: 0; z-index: 1; }
.draft-hero-badge {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--orange);
  background: var(--bg);
  border: 1px solid var(--orange-dim);
  border-radius: 999px;
  padding: 4px 12px;
}
.draft-hero-facts { display: flex; flex-wrap: wrap; gap: 18px; }
.draft-hero-fact { display: flex; flex-direction: column; gap: 2px; }
.draft-hero-fact-label { font-size: 0.6rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); }
.draft-hero-fact-value { font-size: 0.84rem; font-weight: 600; color: var(--text); }
.draft-highlights-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}
.draft-highlight-card {
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
}
.draft-highlight-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.draft-highlight-icon { display: inline-flex; flex-shrink: 0; width: 18px; height: 18px; color: var(--orange); }
.draft-highlight-icon svg { width: 100%; height: 100%; }
.draft-highlight-photo {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--orange-dim);
}
.draft-highlight-title { font-size: 0.82rem; font-weight: 700; color: var(--text); min-width: 0; }
.draft-highlight-body { font-size: 0.76rem; line-height: 1.45; color: var(--text-2); }
.draft-broadcast {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}
.draft-broadcast-day {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 12px;
  background: var(--surface);
}
.draft-broadcast-day-label { font-size: 0.72rem; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.draft-broadcast-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  font-size: 0.72rem;
  padding: 4px 0;
  border-top: 1px solid var(--border);
}
.draft-broadcast-row:first-of-type { border-top: none; }
.draft-broadcast-time { color: var(--orange); font-weight: 600; font-variant-numeric: tabular-nums; }
.draft-broadcast-desc { color: var(--text); }
.draft-broadcast-network { color: var(--text-3); margin-left: auto; }
@media (max-width: 760px) {
  .draft-hero { padding: 14px 16px; }
  .draft-hero-diamond { width: 110px; height: 110px; right: -30px; }
  .draft-highlights-grid { grid-template-columns: 1fr; }
  .draft-broadcast { grid-template-columns: 1fr; }
  .draft-broadcast-network { margin-left: 0; }
}
.postseason-section { margin-bottom: 18px; }
.postseason-spot {
  display: flex; align-items: center; gap: 14px; margin-bottom: 18px;
  padding: 12px 14px; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--orange-dim), transparent 70%), var(--card);
  border: 1px solid color-mix(in srgb, var(--orange) 40%, var(--border) 60%);
}
.postseason-spot--out { background: var(--card); border-color: var(--border); }
.postseason-spot-logo { width: 56px; height: 56px; object-fit: contain; flex-shrink: 0; }
.postseason-spot-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.postseason-spot-line { font-size: 1rem; font-weight: 700; color: var(--text); }
.postseason-spot-sub { font-size: 0.74rem; color: var(--text-2); }
.postseason-spot-link { font-size: 0.74rem; color: var(--orange); text-decoration: none; margin-top: 2px; }
.postseason-seed { font-size: 0.6rem; font-weight: 700; color: var(--text-3); width: 8px; text-align: right; flex-shrink: 0; }
.postseason-logo { width: 18px; height: 18px; object-fit: contain; flex-shrink: 0; }
.postseason-logo-blank { width: 18px; height: 18px; border-radius: 50%; background: var(--surface); border: 1px dashed var(--border-light); flex-shrink: 0; }

.postseason-games { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin-top: 10px; }
.postseason-game-kicker { display: flex; justify-content: space-between; gap: 8px; font-size: 0.64rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-3); }
.postseason-game-team .postseason-logo { width: 22px; height: 22px; }
.postseason-game-name { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 0.86rem; font-weight: 600; }
.postseason-game-sub { font-size: 0.66rem; font-weight: 400; color: var(--text-3); }
.postseason-game-score { font-size: 1.05rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.postseason-game-team--win .postseason-game-score { color: var(--orange); }
.postseason-game-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 0.7rem; color: var(--text-2); border-top: 1px solid var(--border); padding-top: 6px; }
.postseason-game-foot .postseason-status--live { display: inline-flex; align-items: center; gap: 6px; }
.postseason-game-tv { color: var(--text-3); white-space: nowrap; }
.postseason-bracket { display: grid; grid-template-columns: minmax(0, 1fr) 104px minmax(0, 1fr); gap: 8px; margin-top: 10px; align-items: stretch; }
.postseason-league { min-width: 0; display: flex; flex-direction: column; }
.postseason-league-head { font-size: 0.66rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-2); padding-bottom: 6px; border-bottom: 2px solid var(--orange); margin-bottom: 8px; }
.postseason-league--nl .postseason-league-head { border-bottom-color: #3b82f6; text-align: right; }
.postseason-rounds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; flex: 1; }
.postseason-league--nl .postseason-rounds { direction: rtl; }
.postseason-league--nl .postseason-round { direction: ltr; }
.postseason-round { display: flex; flex-direction: column; min-width: 0; }
.postseason-round-head { font-size: 0.6rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-3); text-align: center; margin-bottom: 6px; }
.postseason-round-body { display: grid; grid-auto-rows: 1fr; align-items: center; gap: 10px; flex: 1; }
.postseason-final { display: flex; flex-direction: column; justify-content: center; gap: 10px; padding-top: 22px; }
.postseason-final .postseason-matchup { border-width: 2px; }
.postseason-row { display: flex; align-items: center; gap: 4px; padding: 2px 0; min-width: 0; }
.postseason-name { flex: 1; font-size: 0.7rem; font-weight: 700; color: var(--text); min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.postseason-row--adv .postseason-name { color: var(--orange); }
.postseason-row--out .postseason-name { color: var(--text-3); font-weight: 500; text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--text-3) 60%, transparent); }
.postseason-row--tbd .postseason-name { color: var(--text-3); font-weight: 500; font-style: italic; }
.postseason-foot-live { color: #ef4444; font-weight: 700; }
.postseason-foot .live-dot { display: inline-block; width: 6px; height: 6px; margin-right: 3px; vertical-align: 1px; }
.postseason-foot { display: block; font-size: 0.58rem; color: var(--text-3); border-top: 1px solid var(--border); margin-top: 3px; padding-top: 3px; line-height: 1.3; }
.postseason-trophy { font-size: 2rem; text-align: center; opacity: 0.35; }
.postseason-champ { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; }
.postseason-champ img { width: 48px; height: 48px; object-fit: contain; }
.postseason-champ-kicker { font-size: 0.58rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--orange); }
.postseason-champ-name { font-size: 0.8rem; font-weight: 700; color: var(--text); }
.postseason-detail { margin-top: 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.postseason-detail-head { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--border); font-size: 0.8rem; font-weight: 700; color: var(--text); }
.postseason-detail-status { margin-left: auto; font-size: 0.72rem; color: var(--orange); white-space: nowrap; }
.postseason-detail-close { background: none; border: none; color: var(--text-3); font-size: 1.2rem; line-height: 1; cursor: pointer; padding: 0 2px; }
.postseason-detail-close:hover { color: var(--text); }
.postseason-detail-block { border-bottom: 1px solid var(--border); }
.postseason-detail-block:last-child { border-bottom: none; }
.postseason-detail-block .postseason-detail-game { border-bottom: none; }
.postseason-box-wrap { overflow-x: auto; padding: 0 12px 10px 82px; }
.postseason-box { width: auto; min-width: 100%; font-size: 0.7rem; }
.postseason-box th, .postseason-box td { padding: 2px 5px; text-align: center; }
.postseason-box .box-team-col { text-align: left; font-weight: 700; }
.postseason-detail-game { display: grid; grid-template-columns: 60px minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 7px 12px; font-size: 0.74rem; color: var(--text-2); text-decoration: none; border-bottom: 1px solid var(--border); }
.postseason-detail-game:last-child { border-bottom: none; }
.postseason-detail-game:hover { background: var(--orange-dim); }
.postseason-detail-num { font-weight: 700; color: var(--text); }
.postseason-detail-score { color: var(--text); font-weight: 600; white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; }
.postseason-detail-tv { color: var(--text-3); font-size: 0.66rem; white-space: nowrap; }
.postseason-detail-more { display: block; padding: 8px 12px; font-size: 0.72rem; color: var(--orange); text-decoration: none; border-top: 1px solid var(--border); }
.postseason-detail-more:hover { background: var(--orange-dim); }
.postseason-ifnec { font-size: 0.6rem; color: var(--text-3); font-style: italic; margin-left: 4px; }
.postseason-news-filters { margin: 10px 0 8px; }
.postseason-pill-count { font-size: 0.6rem; opacity: 0.7; margin-left: 2px; }
.postseason-news-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.postseason-news-list a.news-thumb-card:last-child, .cu-rumors a.news-thumb-card:last-child { border-bottom: 1px solid var(--border); }
.postseason-news-more { margin-top: 10px; }
.postseason-info-row { padding: 7px 0; border-bottom: 1px solid var(--border); }
.postseason-info-row:last-of-type { border-bottom: none; }
.postseason-info-main { display: flex; justify-content: space-between; gap: 8px; }
.postseason-info-round { font-size: 0.78rem; font-weight: 700; color: var(--text); }
.postseason-info-dates { font-size: 0.74rem; color: var(--text-2); white-space: nowrap; }
.postseason-info-meta { font-size: 0.66rem; color: var(--text-3); margin-top: 2px; }
.postseason-info-row--in-progress .postseason-info-round { color: var(--orange); }
#psInfo .event-countdown { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
@media (max-width: 1000px) {
  .postseason-bracket { grid-template-columns: 1fr; gap: 16px; }
  .postseason-league--nl .postseason-rounds { direction: ltr; }
  .postseason-league--nl .postseason-league-head { text-align: left; }
  .postseason-final { padding-top: 0; max-width: 200px; width: 100%; margin: 0 auto; }
}
@media (max-width: 560px) {
  .postseason-rounds { grid-template-columns: 1fr; gap: 12px; }
  .postseason-round-head { text-align: left; }
  .postseason-round-body { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .postseason-round--cs .postseason-round-body { grid-template-columns: 1fr; }
  .postseason-news-list { grid-template-columns: 1fr; }
  .postseason-detail-game { grid-template-columns: 52px minmax(0, 1fr) auto; }
  .postseason-detail-tv { display: none; }
  .postseason-box-wrap { padding-left: 12px; }
  .postseason-games { grid-template-columns: 1fr; }
}

/* ── 404 (src/pages/404.astro) ── */
.not-found { max-width: 560px; margin: 0 auto; padding: 64px 16px 48px; text-align: center; }
.not-found-title { margin: 0 0 12px; font-size: 1.8rem; font-weight: 800; }
.not-found-text { margin: 0 0 8px; color: var(--text-2); }
.not-found-text a { color: var(--accent-text); }
.not-found-text kbd { padding: 1px 5px; border: 1px solid var(--border-light); border-radius: 4px; font: inherit; font-size: 0.85em; }

/* Keep the footer below the fold while a page's content loads in, so it
   doesn't count as layout shift (CLS) as sections fill */
.page-layout, body > main { min-height: 100vh; }

/* Phones: keep the header inside the viewport. The site nav already marks
   the current page and the logo links home, so the breadcrumb text goes;
   the team button shows just the logo (the name stays when no team is
   picked: "Pick team" has no logo). */
@media (max-width: 600px) {
  .header-breadcrumb .breadcrumb-link,
  .header-breadcrumb .breadcrumb-sep,
  .header-breadcrumb .breadcrumb-current { display: none; }
  .header-right { gap: 6px; }
  .header-inner > .btn-search { margin-left: 6px; }
  .btn-team-picker { min-width: 44px; min-height: 44px; }
  .team-picker-active-logo + .team-picker-active-name { display: none; }
}
/* Narrowest phones (320px): Home's header holds four 44px buttons, so the
   logo gives up some padding and the wordmark shrinks a little */
@media (max-width: 360px) {
  .header-inner { padding: 0 8px; gap: 6px; }
  .logo { gap: 6px; padding-left: 0; padding-right: 4px; }
  .logo-wordmark { font-size: 1.2rem; }
}

/* ── Home Screen web app: status bar, notch and home indicator ──
   The nav starts below the status bar, the sticky header stops under it,
   and a dark strip sits behind the clock (the black-translucent status bar
   draws white text, unreadable over a light page). Landscape pads the
   sides for the notch. Overlays pad all four edges so their close buttons
   never land under the clock. In a Safari tab the top inset is 0. */
body {
  padding-top: var(--safe-top);
  padding-left: var(--safe-left);
  padding-right: var(--safe-right);
}
body::before {
  content: '';
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  height: var(--safe-top);
  background: #111;
  pointer-events: none;
}
.site-header { top: var(--safe-top); }
.reader-overlay,
.video-theater {
  padding: var(--safe-top) var(--safe-right) var(--safe-bottom) var(--safe-left);
}
.settings-overlay,
.walkup-player-overlay {
  padding: calc(12px + var(--safe-top)) max(12px, var(--safe-right)) calc(12px + var(--safe-bottom)) max(12px, var(--safe-left));
}
.team-picker-overlay {
  padding: calc(16px + var(--safe-top)) max(16px, var(--safe-right)) calc(16px + var(--safe-bottom)) max(16px, var(--safe-left));
}
.settings-panel, .team-picker-modal { max-height: min(88vh, 100%); }

/* ── Bottom tab bar + More sheet (Layout.astro), phones and tablets ──
   Up to 1024px, so every iPad in portrait gets it; wider screens use the
   desktop row under the header. The bar (96) sits above the More sheet
   (95) so More stays tappable to close it, and below the reader (100),
   Settings (110) and other overlays. --tab-bar-h is its height including
   the home indicator; the body pads by it so nothing ends up behind it. */
.tab-bar, .more-sheet { display: none; }
@media (max-width: 1024px) {
  /* 48px tabs + 10px padding + 1px top border, plus the home indicator */
  :root { --tab-bar-h: calc(59px + var(--safe-bottom)); }
  .site-nav { display: none; }
  body { padding-bottom: var(--tab-bar-h); }
  .tab-bar {
    display: grid; grid-template-columns: repeat(5, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 96;
    background: var(--card); border-top: 1px solid var(--border);
    padding: 5px max(6px, var(--safe-right)) calc(5px + var(--safe-bottom)) max(6px, var(--safe-left));
  }
  .tab-bar-link {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    min-height: 48px; padding: 2px 0; border: 0; border-radius: 10px; background: none; cursor: pointer;
    font-family: inherit; font-weight: 600; font-size: 0.68rem; line-height: 1.1; color: var(--text-2); text-decoration: none;
  }
  .tab-bar-link svg { width: 22px; height: 22px; }
  .tab-bar-link span { white-space: nowrap; }
  .tab-bar-link--active { color: var(--accent-text); }
  .tab-bar-link:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
  .more-sheet:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 95; }
  .more-sheet-scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.45); }
  .more-sheet-panel {
    position: absolute; left: 0; right: 0; bottom: 0;
    max-height: calc(100% - var(--safe-top) - 12px); overflow-y: auto;
    background: var(--card); border-radius: 16px 16px 0 0; box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.25);
    padding: 8px max(14px, var(--safe-right)) calc(10px + var(--tab-bar-h)) max(14px, var(--safe-left));
    display: grid; gap: 2px;
  }
  .more-sheet-grip { justify-self: center; width: 36px; height: 4px; border-radius: 2px; background: var(--border-light); margin-bottom: 8px; }
  .more-sheet-sep { height: 1px; margin: 6px 8px; background: var(--border); }
  .more-sheet-link {
    display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 8px; border: 0; border-radius: 10px;
    background: none; color: var(--text); text-decoration: none; font: inherit; font-weight: 600; font-size: 0.95rem;
    text-align: left; cursor: pointer;
  }
  .more-sheet-link[hidden] { display: none; }
  .more-sheet-link svg { width: 20px; height: 20px; flex: none; color: var(--accent-text); }
  .more-sheet-link--active { background: var(--accent-dim); }
  .more-sheet-link:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
}
/* Tablets: a phone-width bar and sheet, centered, rather than five tabs
   spread across 800px */
@media (min-width: 601px) and (max-width: 1024px) {
  .tab-bar { padding-left: max(6px, calc(50% - 280px)); padding-right: max(6px, calc(50% - 280px)); }
  .more-sheet-panel { left: 50%; right: auto; width: 560px; transform: translateX(-50%); }
}
/* Narrowest phones (320px): five 62px tabs; keep every label on one line */
@media (max-width: 360px) {
  .tab-bar-link { font-size: 0.62rem; }
}
/* Phones: Search, Refresh and Settings live in More, so the header keeps
   just the logo and team button */
@media (max-width: 600px) {
  .site-header .btn-search,
  .site-header .btn-refresh,
  .site-header .btn-settings { display: none; }
}

/* ── Dugout, the news page (src/pages/dugout/) ── */
.dugout-page { max-width: 1100px; margin: 0 auto; padding: 20px 16px 32px; }
.dugout-page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.dugout-page-title { margin: 0; font-size: 1.4rem; font-weight: 800; }
.dugout-page-search { flex: 1 1 260px; max-width: 360px; margin: 0; }
@media (max-width: 600px) {
  .dugout-page { padding: 14px 12px 24px; }
  .dugout-page-search { max-width: none; }
}

.depth-chart-sub { margin: -6px 0 12px; font-size: 0.85rem; color: var(--text-2); }
.dugout-page-sub { margin: 2px 0 0; font-size: 0.85rem; color: var(--text-2); }

/* ── Hardball (#20): the labor page ──
   Nav entries and Home's banner marked [data-offseason-only] show only
   when season.js (or Layout's head script) sets <html data-hardball>: the
   offseason, an expired CBA or a lockout. */
html:not([data-hardball]) [data-offseason-only] { display: none !important; }

.hardball-banner {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: 12px 16px 0; padding: 10px 14px;
  background: var(--card); border: 1px solid var(--border); border-left: 4px solid var(--accent);
  border-radius: var(--radius); color: var(--text); text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}
.hardball-banner:hover { background: var(--accent-dim); }
.hardball-banner:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.hardball-banner-kicker { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-text); }
.hardball-banner-text { font-weight: 700; font-size: 0.9rem; min-width: 0; }
.hardball-banner-count { font-size: 0.8rem; color: var(--text-2); }
.hardball-banner-arrow { margin-left: auto; color: var(--text-3); flex: none; }
@media (max-width: 600px) {
  .hardball-banner { margin: 10px 12px 0; }
  .hardball-banner-text { flex-basis: 100%; order: 2; }
  .hardball-banner-count { order: 3; }
}

.hb-page { max-width: 1100px; margin: 0 auto; padding: 20px 16px 32px; display: flex; flex-direction: column; gap: 22px; }
.hb-kicker { margin: 0 0 2px; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-text); }
.hb-title { margin: 0; font-size: 1.7rem; font-weight: 800; }
.hb-lede { margin: 6px 0 0; max-width: 70ch; color: var(--text-2); line-height: 1.5; }

.hb-status {
  padding: 16px 18px; background: var(--card); border: 1px solid var(--border);
  border-top: 4px solid var(--accent); border-radius: var(--radius);
}
.hb-status-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hb-badge { padding: 3px 10px; border-radius: 999px; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.hb-badge--talks { background: var(--accent-dim); color: var(--accent-text); }
.hb-badge--warn { background: rgba(217, 119, 6, 0.15); color: #b45309; }
.hb-badge--stop { background: rgba(220, 38, 38, 0.14); color: #b91c1c; }
.hb-badge--deal { background: rgba(22, 163, 74, 0.14); color: #15803d; }
:root:not([data-theme="light"]) .hb-badge--warn { color: #fbbf24; }
:root:not([data-theme="light"]) .hb-badge--stop { color: #f87171; }
:root:not([data-theme="light"]) .hb-badge--deal { color: #4ade80; }
.hb-countdown { font-size: 0.85rem; font-weight: 700; color: var(--text); }
.hb-status-headline { margin: 10px 0 6px; font-size: 1.2rem; font-weight: 800; line-height: 1.3; }
.hb-status-summary { margin: 0; line-height: 1.55; color: var(--text-2); }
.hb-status-meta { margin: 10px 0 0; font-size: 0.78rem; color: var(--text-3); }
.hb-status-meta a, .hb-side-source a, .hb-event-source, .hb-footnote a { color: var(--accent-text); }

.hb-section { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.hb-section-title { margin: 0; font-size: 1.05rem; font-weight: 800; }
.hb-section-sub { margin: -4px 0 0; font-size: 0.82rem; color: var(--text-2); }

.hb-issues { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.hb-issue { padding: 14px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); display: flex; flex-direction: column; gap: 8px; }
.hb-issue-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.hb-issue-title { margin: 0; font-size: 0.98rem; font-weight: 800; }
.hb-issue-status { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; color: #15803d; }
.hb-issue-summary { margin: 0; font-size: 0.84rem; color: var(--text-2); line-height: 1.45; }
.hb-sides { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hb-side { padding: 10px; border-radius: 8px; background: var(--surface); border: 1px solid var(--border); display: flex; flex-direction: column; gap: 6px; }
.hb-side-name { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text); }
.hb-side--mlb .hb-side-name::before, .hb-side--mlbpa .hb-side-name::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; vertical-align: 1px; }
.hb-side--mlb .hb-side-name::before { background: #1d4ed8; }
.hb-side--mlbpa .hb-side-name::before { background: #c2410c; }
.hb-side-position { margin: 0; font-size: 0.84rem; line-height: 1.5; }
.hb-side-source { margin: 0; margin-top: auto; font-size: 0.72rem; color: var(--text-3); }

.hb-columns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.hb-news { display: flex; flex-direction: column; }

.hb-timeline { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 2px solid var(--border); display: flex; flex-direction: column; gap: 14px; }
.hb-event { position: relative; display: flex; flex-direction: column; gap: 2px; }
.hb-event::before { content: ''; position: absolute; left: -20px; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: var(--border-light); border: 2px solid var(--bg); }
.hb-event--key::before { background: var(--accent); }
.hb-event--upcoming .hb-event-date { color: var(--accent-text); }
.hb-event-date { font-size: 0.74rem; font-weight: 700; color: var(--text-3); }
.hb-event-body { display: flex; flex-direction: column; gap: 2px; }
.hb-event-title { font-weight: 700; font-size: 0.9rem; }
.hb-event-tag { margin-left: 6px; padding: 1px 6px; border-radius: 999px; font-size: 0.66rem; font-weight: 800; text-transform: uppercase; background: var(--accent-dim); color: var(--accent-text); vertical-align: 1px; }
.hb-event-tag--note { background: var(--surface); color: var(--text-2); border: 1px solid var(--border); }
.hb-event--off .hb-event-date, .hb-event--off .hb-event-title { text-decoration: line-through; text-decoration-color: var(--text-3); }
.hb-event--off .hb-event-tag { text-decoration: none; display: inline-block; }
.hb-event-detail { font-size: 0.82rem; color: var(--text-2); line-height: 1.45; }
.hb-event-source { font-size: 0.72rem; }

.hb-explainer { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; align-items: start; }
.hb-faq { padding: 10px 14px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); }
.hb-faq summary { cursor: pointer; font-weight: 700; font-size: 0.9rem; min-height: 28px; display: flex; align-items: center; }
.hb-faq summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.hb-faq p { margin: 8px 0 2px; font-size: 0.86rem; line-height: 1.55; color: var(--text-2); }
.hb-footnote { margin: 0; font-size: 0.78rem; color: var(--text-3); line-height: 1.5; }

@media (max-width: 900px) {
  .hb-issues, .hb-columns, .hb-explainer { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .hb-page { padding: 14px 12px 24px; gap: 18px; }
  .hb-sides { grid-template-columns: 1fr; }
  .hb-faq summary { min-height: 44px; }
}

/* ── Front Office (#14) ──
   Home's sidebar group (Tailgate's layout): the four team widgets, then
   link rows to Roster, Trades and Draft. The "Front Office" heading links
   to the full page. */
.sidebar-group-title { color: inherit; text-decoration: none; }
.sidebar-group-title:hover { color: var(--accent-text); }
.sidebar-group-body { display: flex; flex-direction: column; gap: 4px; }
.sidebar-group-hint, .sidebar-group-chevron { display: none; }
/* A sidebar row that links to a page: same flex row as .section-toggle,
   so icons and text line up with the widgets above */
.section-link {
  display: flex; align-items: center; gap: 6px;
  color: var(--text); text-decoration: none; transition: color 0.15s;
}
.section-link:hover { color: var(--accent-text); }
/* Phones (Tailgate #37): the label toggles the group, which starts
   collapsed (app.js); collapsed, it shows a one-line hint */
@media (max-width: 600px) {
  #frontOfficeToggle[role="button"] { cursor: pointer; min-height: 44px; padding-bottom: 0; -webkit-tap-highlight-color: transparent; }
  #frontOfficeToggle[role="button"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
  #frontOfficeToggle .sidebar-group-title { padding: 10px 0; }
  #frontOfficeToggle .sidebar-group-chevron { display: block; flex: none; margin-left: auto; color: var(--text-2); transition: transform 0.2s; }
  .sidebar-group--collapsed #frontOfficeToggle .sidebar-group-hint {
    display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    font-size: 0.72rem; font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--text-3);
  }
  .sidebar-group--collapsed #frontOfficeToggle .sidebar-group-chevron { transform: rotate(-90deg); }
  .sidebar-group--collapsed .sidebar-group-body { display: none; }
  .section-toggle, .section-link { min-height: 44px; }
}
/* More sheet: Trades and Draft sit under Front Office */
.more-sheet-link--sub { padding-left: 40px; font-weight: 500; }
.more-sheet-link--sub svg { width: 18px; height: 18px; }

/* Front Office page (src/pages/front-office/) */
.fo-page { max-width: 1100px; margin: 0 auto; padding: 20px 16px 32px; display: flex; flex-direction: column; gap: 16px; }
.fo-page-title { margin: 0; font-size: 1.4rem; font-weight: 800; }
.fo-page-sub { margin: 4px 0 0; font-size: 0.85rem; color: var(--text-2); }
.fo-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.fo-card {
  display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 12px 14px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--text); text-decoration: none; transition: border-color 0.15s, background 0.15s;
}
.fo-card:hover { border-color: var(--accent); background: var(--accent-dim); }
.fo-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.fo-card-icon { width: 24px; height: 24px; flex: none; color: var(--accent-text); }
.fo-card-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fo-card-label { font-weight: 700; font-size: 0.95rem; }
.fo-card-desc { font-size: 0.78rem; color: var(--text-2); }
.fo-card-arrow { width: 16px; height: 16px; flex: none; margin-left: auto; color: var(--text-3); }
.fo-widgets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
.fo-widget {
  padding: 14px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
}
.fo-widget .section-label { display: flex; align-items: center; gap: 6px; }
/* Merged from the separate Front Office site (#38): hero, section tabs,
   The Brass, Track Record, Draft History, news, and the league page */
.fo-hero { display: flex; align-items: center; gap: 14px; }
.fo-hero-logo { width: 56px; height: 56px; flex: none; object-fit: contain; }
.fo-hero-text { min-width: 0; }
.fo-back { display: inline-block; margin-bottom: 4px; font-size: 0.8rem; color: var(--accent-text); text-decoration: none; }
.fo-back:hover { text-decoration: underline; }
.fo-tabs {
  display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none;
  position: sticky; top: var(--header-h); z-index: 5; margin: 0 -16px; padding: 8px 16px;
  background: var(--bg); border-bottom: 1px solid var(--border);
}
.fo-tabs::-webkit-scrollbar { display: none; }
.fo-tab {
  flex: none; padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px;
  font-size: 0.8rem; font-weight: 600; color: var(--text-2); text-decoration: none; white-space: nowrap;
}
.fo-tab:hover { color: var(--text); border-color: var(--accent); }
.fo-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.fo-tab--learn { margin-left: auto; color: var(--accent-text); }
.fo-tab--league { color: var(--accent-text); }
.fo-tab--learn + .fo-tab--league { margin-left: 0; }
/* Jump targets clear the sticky header and tabs */
.fo-page [id^="fo-"] { scroll-margin-top: calc(var(--header-h) + 56px); }
.fo-section {
  padding: 14px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
}
.fo-section-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.fo-section-head .fo-section-title { margin: 0; }
.fo-section-title { margin: 0 0 10px; font-size: 1rem; font-weight: 800; }
.fo-section-note { margin-left: 6px; font-size: 0.75rem; font-weight: 500; color: var(--text-3); }
.fo-section .widget-link { margin-top: 10px; }

.fo-brass { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.fo-brass-card {
  display: flex; flex-direction: column; gap: 3px; padding: 12px;
  background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: var(--radius);
}
.fo-brass-card--vacant { border-left-style: dashed; border-left-color: var(--text-3); }
.fo-brass-card--vacant .fo-brass-name { color: var(--text-3); font-style: italic; }
.fo-brass-title { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent-text); }
.fo-brass-name { font-size: 1.05rem; font-weight: 800; }
.fo-brass-since { font-size: 0.78rem; color: var(--text-2); }
.fo-brass-note { font-size: 0.78rem; line-height: 1.45; color: var(--text-2); }

/* Section intros and groups (#40): the page reads Who Runs It → Track
   Record → Roster & Pipeline → Moves & Money → News */
.fo-section-link { font-size: 0.78rem; font-weight: 600; color: var(--accent-text); text-decoration: none; }
.fo-section-link:hover { text-decoration: underline; }
.fo-section-lede { margin: -4px 0 12px; font-size: 0.82rem; color: var(--text-2); }
.fo-group { display: flex; flex-direction: column; gap: 12px; }
.fo-group-head { padding: 4px 2px 0; }
.fo-group-title { margin: 0; font-size: 1.1rem; font-weight: 800; }
.fo-group-sub { margin: 3px 0 0; font-size: 0.82rem; line-height: 1.45; color: var(--text-2); }
.fo-group-sub a, .fo-lesson-body a, .fo-learn-more a, .fo-pop-more { color: var(--accent-text); font-weight: 600; }

/* Chain of command (#40): one rung per job, owner at the top. A rail and
   dots down the left show who answers to whom. */
.fo-chain { list-style: none; margin: 0; padding: 0; }
.fo-rung {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 8px 16px;
  padding: 0 0 18px 26px;
}
.fo-rung:last-child { padding-bottom: 0; }
.fo-rung::before { content: ''; position: absolute; left: 6px; top: 14px; bottom: -2px; width: 2px; background: var(--border-light); }
.fo-rung:last-child::before { display: none; }
.fo-rung::after {
  content: ''; position: absolute; left: 0; top: 4px; width: 14px; height: 14px; box-sizing: border-box;
  border-radius: 50%; background: var(--accent); border: 3px solid var(--card); box-shadow: 0 0 0 1px var(--accent);
}
.fo-rung--gap::after { background: var(--card); box-shadow: 0 0 0 1px var(--text-3); }
.fo-rung-role { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.fo-rung-label { font-size: 0.8rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.fo-rung-does { margin: 0; font-size: 0.8rem; line-height: 1.5; color: var(--text-2); }
.fo-rung-role .fo-pop-btn { align-self: flex-start; font-size: 0.75rem; }
.fo-rung-people { min-width: 0; }
.fo-rung-gap {
  margin: 0; padding: 10px 12px; font-size: 0.8rem; line-height: 1.45; color: var(--text-3);
  border: 1px dashed var(--border-light); border-radius: var(--radius);
}
.fo-brass--others { margin-top: 14px; }

/* Popovers on the Front Office page (#43, FoLearnPopovers.astro): a short
   answer and a link into the Front Office Explainer. Placed under their
   button by script; a sheet along the bottom on phones. */
.fo-pop-btn {
  padding: 0; border: 0; background: none; font: inherit; font-weight: 600;
  color: var(--accent-text); cursor: pointer; text-align: left;
  text-decoration: underline dotted; text-underline-offset: 3px;
}
.fo-pop-btn:hover { text-decoration-style: solid; }
.fo-pop-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
.fo-pop-btn--icon {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 18px; height: 18px; margin-left: 2px; vertical-align: 1px;
  border: 1px solid currentColor; border-radius: 50%;
  font-family: Georgia, serif; font-size: 0.7rem; font-style: italic; font-weight: 700;
  letter-spacing: 0; text-transform: none; text-decoration: none;
}
/* A bigger tap target than it looks */
.fo-pop-btn--icon { position: relative; }
.fo-pop-btn--icon::after { content: ''; position: absolute; inset: -10px; }
.fo-pop-btn--icon:hover { background: var(--accent-dim); }
.fo-pop {
  position: fixed; inset: auto; margin: 0; box-sizing: border-box;
  width: min(340px, calc(100vw - 16px)); padding: 14px;
  background: var(--card); color: var(--text);
  border: 1px solid var(--border-light); border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.fo-pop-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.fo-pop-title { margin: 0; font-size: 0.92rem; font-weight: 800; }
.fo-pop-close {
  flex: none; margin: -6px -6px 0 0; width: 28px; height: 28px; padding: 0;
  border: 0; border-radius: 50%; background: none; color: var(--text-3); font-size: 0.85rem; cursor: pointer;
}
.fo-pop-close:hover { background: var(--surface); color: var(--text); }
.fo-pop-text { margin: 6px 0 10px; font-size: 0.84rem; line-height: 1.55; color: var(--text-2); }
.fo-pop-more { display: inline-block; font-size: 0.82rem; text-decoration: none; }
.fo-pop-more:hover { text-decoration: underline; }
@media (max-width: 600px) {
  .fo-pop {
    left: 0; right: 0; bottom: var(--tab-bar-h, 0px); top: auto; width: auto;
    max-height: 60vh; overflow-y: auto; border-radius: 12px 12px 0 0;
    padding: 16px 16px 20px;
  }
}

/* Front Office Explainer (#43, /front-office/explainer/): the org
   chart, then one section per question */
.fo-lesson-title { margin: 0 0 10px; font-size: 1.05rem; font-weight: 800; }
.fo-learn-more { margin: 0; font-size: 0.85rem; }

.fo-org { margin: 0; padding: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.fo-org-caption { margin-bottom: 12px; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-3); }
.fo-org-top { display: flex; flex-direction: column; align-items: center; }
/* Each box connects to the one below it */
.fo-org-top > * + * { margin-top: 18px; position: relative; }
.fo-org-top > * + *::before { content: ''; position: absolute; left: 50%; top: -18px; height: 18px; width: 2px; background: var(--border-light); }
/* Ownership in the middle; business operations branches off to its right */
.fo-org-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 280px) minmax(0, 1fr); gap: 12px; align-items: center; width: 100%; }
.fo-org-row > .fo-org-box--lead { grid-column: 2; width: 100%; box-sizing: border-box; }
.fo-org-row > .fo-org-box--side { grid-column: 3; justify-self: start; position: relative; }
.fo-org-row > .fo-org-box--side::before { content: ''; position: absolute; right: 100%; top: 50%; width: 12px; border-top: 2px dashed var(--border-light); }
.fo-org-box {
  display: flex; flex-direction: column; gap: 1px; width: min(100%, 280px); padding: 8px 12px; text-align: center;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); text-decoration: none;
}
.fo-org-box strong { font-size: 0.85rem; }
.fo-org-box span { font-size: 0.72rem; color: var(--text-2); }
.fo-org-box--lead { border-top: 3px solid var(--accent); }
a.fo-org-box:hover, .fo-org-dept:hover { border-color: var(--accent); background: var(--accent-dim); }
.fo-org-box--side { width: min(100%, 220px); border-style: dashed; background: transparent; }
.fo-org-depts {
  list-style: none; margin: 18px 0 0; padding: 14px 0 0; position: relative;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; border-top: 2px solid var(--border-light);
}
.fo-org-depts::before { content: ''; position: absolute; left: calc(50% - 1px); top: -20px; height: 18px; width: 2px; background: var(--border-light); }
.fo-org-dept {
  display: flex; flex-direction: column; gap: 2px; height: 100%; box-sizing: border-box; padding: 8px 10px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); text-decoration: none;
}
.fo-org-dept strong { font-size: 0.82rem; }
.fo-org-dept span { font-size: 0.74rem; line-height: 1.4; color: var(--text-2); }
.fo-org-note { margin: 12px 0 0; font-size: 0.76rem; line-height: 1.5; color: var(--text-3); }

.fo-lesson-body { max-width: 75ch; font-size: 0.86rem; line-height: 1.6; color: var(--text-2); }
.fo-lesson-body p { margin: 0 0 10px; }
.fo-lesson-body p:last-child { margin-bottom: 0; }
.fo-lesson-body ul { margin: 0 0 10px; padding-left: 18px; }
.fo-lesson-body li { margin-bottom: 5px; }
.fo-lesson-body strong { color: var(--text); }
.fo-lesson-club {
  padding: 8px 10px; border-left: 3px solid var(--accent); background: var(--accent-dim);
  border-radius: 0 var(--radius) var(--radius) 0; color: var(--text); font-weight: 600;
}
.fo-calendar { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.fo-calendar li { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 10px; margin: 0; }
.fo-glossary { margin: 0 0 10px; display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 6px 12px; }
.fo-glossary dt { font-weight: 700; color: var(--text); }
.fo-glossary dd { margin: 0; }

.fo-table-wrap { overflow-x: auto; }
.fo-record { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.fo-record th, .fo-record td { padding: 6px 8px; text-align: left; border-bottom: 1px solid var(--border); white-space: nowrap; }
.fo-record thead th { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-3); }
.fo-record tbody th { font-weight: 700; }
.fo-record .fo-num { text-align: right; font-variant-numeric: tabular-nums; }
.fo-record .fo-win { color: var(--accent-text); font-weight: 700; }
.fo-record-note { color: var(--text-2); }

.fo-tx-type {
  flex: none; align-self: flex-start; padding: 1px 6px; border-radius: 4px;
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase;
  background: var(--surface); border: 1px solid var(--border); color: var(--text-2);
}
.fo-tx-type--sign, .fo-tx-type--trade { background: var(--accent-dim); border-color: transparent; color: var(--accent-text); }
.fo-tx-type--dfa, .fo-tx-type--release { color: var(--text-3); }
.fo-tx-logo { flex: none; width: 18px; height: 18px; object-fit: contain; }
.fo-league-tx .txn-item { align-items: flex-start; }

.fo-drafts { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.fo-draft-class { display: flex; flex-direction: column; gap: 6px; }
.fo-draft-year { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.05em; color: var(--text-3); }
.fo-draft-pick { display: flex; flex-direction: column; gap: 1px; padding: 8px 10px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.fo-draft-slot { font-size: 0.68rem; color: var(--text-3); }
.fo-draft-name { font-weight: 700; font-size: 0.88rem; }
.fo-draft-pos { margin-left: 4px; font-size: 0.68rem; font-weight: 600; color: var(--text-2); }
.fo-draft-status { font-size: 0.75rem; color: var(--accent-text); }

.fo-news { display: flex; flex-direction: column; }
.fo-news-item { display: flex; flex-direction: column; gap: 3px; padding: 10px 0; border-bottom: 1px solid var(--border); color: var(--text); text-decoration: none; }
.fo-news-item:last-child { border-bottom: 0; }
.fo-news-title { font-weight: 700; font-size: 0.9rem; line-height: 1.35; }
.fo-news-item:hover .fo-news-title { color: var(--accent-text); }
.fo-news-date { font-size: 0.7rem; color: var(--text-3); }

.fo-filter select {
  min-height: 36px; padding: 4px 10px; font: inherit; font-size: 0.85rem;
  color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
}
.fo-directory { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.fo-dir-div-title { margin: 0 0 4px; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-3); }
.fo-dir-row {
  display: grid; grid-template-columns: 24px 92px minmax(0, 1fr); align-items: center; gap: 10px;
  padding: 8px 6px; border-bottom: 1px solid var(--border); border-radius: 4px; color: var(--text); text-decoration: none;
}
.fo-dir-row:hover { background: var(--accent-dim); }
.fo-dir-row--mine .fo-dir-team { color: var(--accent-text); }
.fo-dir-logo { width: 24px; height: 24px; object-fit: contain; }
.fo-dir-team { font-weight: 700; font-size: 0.88rem; }
.fo-dir-people { display: flex; flex-direction: column; gap: 1px; min-width: 0; font-size: 0.78rem; }
.fo-dir-person { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fo-dir-role { display: inline-block; width: 64px; color: var(--text-3); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.03em; }
.fo-dir-vacant { color: var(--text-3); font-style: italic; }
.fo-dir-empty { color: var(--text-3); }

@media (max-width: 760px) {
  .fo-cards, .fo-widgets, .fo-directory { grid-template-columns: 1fr; }
  .fo-rung { grid-template-columns: 1fr; }
  .fo-calendar li, .fo-glossary { grid-template-columns: 1fr; }
  .fo-calendar li { gap: 0; }
  .fo-glossary dd { margin-bottom: 6px; }
  /* No room beside Ownership: the note under the chart covers it */
  .fo-org-row { grid-template-columns: minmax(0, 1fr); }
  .fo-org-row > .fo-org-box--lead { grid-column: 1; }
  .fo-org-row > .fo-org-box--side { display: none; }
}
@media (max-width: 600px) {
  .fo-page { padding: 14px 12px 24px; }
  .fo-tabs { margin: 0 -12px; padding: 8px 12px; }
  .fo-tab--league { margin-left: 0; }
}

/* ── Cleanup (#22): offseason free agency and trades ──
   Its nav entries show only in the offseason (<html data-offseason>,
   season.js / Layout's head script); the URL always works. */
html:not([data-offseason]) [data-cleanup-only] { display: none !important; }

.cu-page { max-width: 1100px; margin: 0 auto; padding: 20px 16px 32px; display: flex; flex-direction: column; gap: 22px; }
.cu-kicker { margin: 0 0 2px; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-text); }
.cu-title { margin: 0; font-size: 1.7rem; font-weight: 800; }
.cu-lede { margin: 6px 0 0; max-width: 70ch; color: var(--text-2); line-height: 1.5; }

.cu-labor { padding: 12px 14px; border-radius: var(--radius); border: 1px solid var(--border); border-left: 4px solid var(--accent); background: var(--card); font-size: 0.88rem; line-height: 1.5; }
.cu-labor[data-tone="stop"] { border-left-color: #dc2626; background: rgba(220, 38, 38, 0.08); }
.cu-labor[data-tone="warn"] { border-left-color: #d97706; background: rgba(217, 119, 6, 0.08); }
.cu-labor a { color: var(--accent-text); font-weight: 700; }

.cu-section { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.cu-section-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.cu-section-title { margin: 0; font-size: 1.05rem; font-weight: 800; }
.cu-sub { margin: 0 0 6px; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-2); }
.cu-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.cu-note { margin: 6px 0 0; font-size: 0.8rem; color: var(--text-3); }
.cu-dim { color: var(--text-3); font-weight: 500; }
.cu-source, .cu-footnote { margin: 0; font-size: 0.76rem; color: var(--text-3); line-height: 1.5; }
.cu-source a, .cu-footnote a, .cu-item-meta a, .cu-need a { color: var(--accent-text); }

.cu-own { padding: 12px 14px; background: var(--accent-dim); border-radius: var(--radius); }
.cu-own:empty { display: none; }
.cu-own .cu-note { margin: 0; color: var(--text-2); }
.cu-own-list { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; font-size: 0.86rem; }

.cu-fa-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 14px; }
.cu-fa { display: flex; align-items: center; gap: 10px; padding: 8px 10px; background: var(--card); border: 1px solid var(--border); border-radius: 8px; min-width: 0; }
.cu-fa--mine { border-color: var(--accent); background: var(--accent-dim); }
.cu-fa-rank { flex: none; width: 24px; text-align: right; font-weight: 800; color: var(--text-3); font-variant-numeric: tabular-nums; }
.cu-fa-main { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.cu-fa-name { font-weight: 700; font-size: 0.9rem; }
.cu-fa-meta { font-size: 0.74rem; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cu-status { display: flex; align-items: center; gap: 5px; flex: none; max-width: 48%; font-size: 0.74rem; font-weight: 700; text-align: right; }
.cu-status > span { display: flex; flex-direction: column; }
.cu-status-terms { font-weight: 500; color: var(--text-2); }
.cu-status--open { color: #15803d; }
.cu-status--pending { color: var(--text-3); font-weight: 500; }
.cu-status--signed { color: var(--text); }
:root:not([data-theme="light"]) .cu-status--open { color: #4ade80; }
.cu-logo { width: 20px; height: 20px; flex: none; object-fit: contain; }

.cu-columns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.cu-needs-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.cu-need { display: flex; align-items: baseline; gap: 8px; padding: 8px 10px; background: var(--card); border: 1px solid var(--border); border-radius: 8px; font-size: 0.86rem; line-height: 1.4; }
.cu-need--soft { color: var(--text-2); }
.cu-tag { display: inline-block; flex: none; padding: 1px 7px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: 0.68rem; font-weight: 800; letter-spacing: 0.02em; color: var(--text-2); }
.cu-tag--lost { background: rgba(220, 38, 38, 0.1); border-color: transparent; color: #b91c1c; }
.cu-tag--trade { background: var(--accent-dim); border-color: transparent; color: var(--accent-text); }
:root:not([data-theme="light"]) .cu-tag--lost { color: #f87171; }

.cu-dates { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.cu-tag--note { background: var(--surface); color: var(--text-2); }
.cu-date--off .cu-date-when, .cu-date--off .cu-date-title > :not(.cu-tag) { text-decoration: line-through; }
.cu-date { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 10px; }
.cu-date--past { opacity: 0.55; }
.cu-date-when { font-size: 0.78rem; font-weight: 800; color: var(--accent-text); }
.cu-date-body { display: flex; flex-direction: column; gap: 2px; }
.cu-date-title { font-weight: 700; font-size: 0.88rem; }
.cu-date-title a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.cu-date-detail { font-size: 0.8rem; color: var(--text-2); line-height: 1.45; }
.cu-date-note { color: var(--text); font-weight: 600; }

.cu-feed { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.cu-item { display: flex; align-items: flex-start; gap: 10px; padding: 9px 12px; background: var(--card); border: 1px solid var(--border); border-radius: 8px; }
.cu-item--lost { background: var(--surface); }
.cu-item-date { flex: none; width: 48px; font-size: 0.76rem; font-weight: 700; color: var(--text-3); padding-top: 2px; }
.cu-item-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cu-item-title { font-weight: 700; font-size: 0.9rem; }
.cu-item-meta, .cu-item-text { font-size: 0.82rem; color: var(--text-2); line-height: 1.45; overflow-wrap: anywhere; }
.cu-item-text { color: var(--text); }
.cu-more { align-self: flex-start; }

.cu-block { display: flex; flex-direction: column; }
.cu-block:empty { display: none; }
.cu-block-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.cu-block-list a { display: inline-flex; gap: 6px; padding: 6px 10px; border-radius: 999px; background: var(--card); border: 1px solid var(--border); color: var(--text); text-decoration: none; font-size: 0.84rem; }
.cu-block-list a:hover { border-color: var(--accent); }
.cu-rumors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }

@media (max-width: 900px) {
  .cu-fa-list, .cu-columns, .cu-rumors { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .cu-page { padding: 14px 12px 24px; gap: 18px; }
  .cu-fa { flex-wrap: wrap; }
  .cu-status { max-width: none; flex-basis: 100%; justify-content: flex-start; text-align: left; padding-left: 34px; }
  .cu-date { grid-template-columns: 72px minmax(0, 1fr); }
  .cu-filters .pill { min-height: 36px; }
}

/* Under each key-dates list (#42): the dates are kept current, so a moved
   date just shows its new day, with no inline marker */
.key-dates-foot { margin-top: 10px; }
.sch-footnote { margin: 10px 0 0; font-size: 0.76rem; color: var(--text-3); line-height: 1.5; }
