:root {
  color-scheme: light;

  /* ── Type Scale (1.250 ratio) ── */
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-md:   1.125rem;
  --text-lg:   1.25rem;
  --text-xl:   1.563rem;
  --text-2xl:  1.953rem;
  --text-3xl:  2.441rem;

  /* ── Font Weights ── */
  --weight-normal: 400;
  --weight-medium: 500;
  --weight-bold:   700;
  --weight-black:  900;

  /* ── Spacing (4px grid) ── */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;

  /* ── Border Radius ── */
  --radius-sm:  6px;
  --radius-md:  8px;
  --radius-lg:  12px;
  --radius-xl:  16px;
  --radius-pill: 999px;

  /* ── Shadows ── */
  --shadow-sm:  0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md:  0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg:  0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl:  0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);

  /* ── Transitions ── */
  --transition-fast: 120ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);

  /* ── Base Colors ── */
  --bg: #f4f6f2;
  --ink: #17201b;
  --muted: #68736b;
  --panel: #ffffff;
  --line: #d9dfd7;
  --accent: #0f766e;
  --accent-dark: #115e59;

  /* ── Semantic Colors ── */
  --color-gematria: #926018; /* darkened from #b7791f: 3.35:1 on --bg failed WCAG AA (4.5:1) */
  --color-bio: #2f6f9f;
  --color-team: #0f766e;
  --color-date: #7c3d6b;
  --color-match: #a33a32;
  --color-stat: #4b6475;
  --color-success: #16803c;
  --color-danger: #a33a32;
  --color-warning: #926100; /* darkened from #9a6700: 4.48:1 on --bg just failed WCAG AA (4.5:1) */

  /* ── Legacy aliases ── */
  --blue: var(--color-bio);
  --gold: var(--color-gematria);
  --plum: var(--color-date);
  --steel: var(--color-stat);
  --hit: var(--color-success);
  --miss: var(--color-danger);
  --warn: var(--color-warning);

  --shadow: var(--shadow-lg);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font-family: 'DM Sans', ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: var(--text-base);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'DM Serif Display', Georgia, serif;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

button, select, input {
  font: inherit;
}

input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--panel);
  color: var(--ink);
  padding: 0 var(--space-3);
  font-family: 'DM Sans', sans-serif;
  transition: all var(--transition-base);
}

input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.15);
}

button {
  cursor: pointer;
  font-weight: 800;
}

.shell {
  width: min(960px, calc(100% - 32px));
  margin: 0 auto;
  padding: 16px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0 10px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-link {
  color: inherit;
  text-decoration: none;
}

.brand-link:hover .brand-name,
.brand-link:hover h1 {
  color: var(--accent);
}

.gn-logo {
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  margin: 0;
  color: var(--accent-dark);
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(var(--text-lg), 2vw, var(--text-2xl));
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.beta-badge {
  align-self: flex-start;
  margin-left: 2px;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.4;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.nav-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  white-space: nowrap;
}

.nav-link:hover {
  background: var(--accent);
  color: white;
  box-shadow: 0 2px 8px rgba(15, 118, 110, 0.3);
}

/* "Other Sports" dropdown (server-rendered in app/nav.py render_nav();
   mirrors the client-side menu in nav.js). Pure CSS open-on-hover/focus. */
.nav-dropdown {
  position: relative;
  display: inline-block;
}

.nav-dropdown > .nav-link {
  cursor: pointer;
  display: inline-block;
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 140px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 6px;
  z-index: 200;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-dropdown-menu .nav-link {
  display: block;
}

.last-updated {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  padding: 4px 10px;
  background: #f0f4f0;
  border-radius: 6px;
  border: 1px solid var(--line);
}

.last-updated:hover {
  background: #e6efe6;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  color: var(--accent-dark);
  font-size: clamp(var(--text-xl), 2.5vw, var(--text-2xl));
}

h2 {
  margin: 0;
  font-size: var(--text-md);
}

.page-nav {
  display: flex;
  gap: 4px;
  padding: 0 0 14px;
}

.page-nav a, .page-nav button {
  padding: 6px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
  text-decoration: none;
  background: transparent;
  display: inline-flex;
  align-items: center;
  border: 0;
}

.page-nav a:hover, .page-nav button:hover {
  background: var(--line);
  color: var(--ink);
}

.page-nav a.active {
  background: var(--accent);
  color: white;
}

.status {
  min-width: 132px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  text-align: center;
  font-size: 0.9rem;
  font-weight: 700;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.spinner::after {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-left: 8px;
  border: 2px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.search-box {
  padding: 20px 16px;
  margin-bottom: 18px;
  display: grid;
  gap: 12px;
}

.search-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: end;
}

.search-btn {
  min-height: 44px;
  padding: 0 var(--space-6);
  border: 1px solid var(--accent);
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: white;
  font-family: 'DM Sans', sans-serif;
  font-weight: var(--weight-bold);
  white-space: nowrap;
  transition: all var(--transition-base);
  box-shadow: 0 2px 8px rgba(15, 118, 110, 0.3);
}

.search-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15, 118, 110, 0.4);
}

.search-btn:active {
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(15, 118, 110, 0.3);
}

.sport-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sport-pill {
  width: auto;
  min-height: 36px;
  padding: var(--space-1) var(--space-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--panel);
  color: var(--muted);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  transition: all var(--transition-base);
  cursor: pointer;
}

.sport-pill:hover {
  border-color: var(--accent);
  color: var(--ink);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.sport-pill.active {
  border-color: var(--accent);
  background: var(--accent);
  color: white;
  box-shadow: 0 2px 8px var(--accent-glow, rgba(15, 118, 110, 0.3));
}

.cipher-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cipher-pill {
  width: auto;
  min-height: 32px;
  padding: var(--space-1) var(--space-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--panel);
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  transition: all var(--transition-base);
  cursor: pointer;
  letter-spacing: 0.02em;
}

.cipher-pill:hover {
  border-color: var(--accent-dark);
  color: var(--ink);
  transform: translateY(-1px);
}

.cipher-pill.active {
  border-color: var(--color-gematria);
  background: var(--color-gematria);
  color: white;
  box-shadow: 0 2px 8px rgba(183, 121, 31, 0.3);
}

.cipher-pill.extra { border-style: dashed; }

.cipher-pill.inactive { opacity: 0.5; }

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

.result-card {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-3);
  width: 100%;
  min-height: 64px;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  cursor: pointer;
  text-align: left;
  transition: all var(--transition-base);
}

.result-card:hover {
  background: linear-gradient(135deg, #f8fdf8, #f0f8f0);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.headshot {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #faf8f1;
}

.result-name {
  display: block;
  font-weight: 850;
  font-size: 0.92rem;
}

.result-meta {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.78rem;
}

.result-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin-top: 4px;
}

.result-stat {
  font-size: 0.72rem;
  color: var(--muted);
}

.result-stat b {
  color: var(--ink);
  font-weight: var(--weight-bold);
  margin-right: 2px;
}

.result-gems {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  text-align: center;
}

.result-gem {
  min-width: 42px;
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #fffdf5, #fef7e6);
  border: 1px solid #f0e6d2;
}

.result-gem small {
  display: block;
  color: var(--color-gematria);
  font-size: 0.6rem;
  font-weight: var(--weight-bold);
  letter-spacing: 0.05em;
}

.result-gem strong {
  display: block;
  color: var(--ink);
  font-size: var(--text-base);
  font-weight: var(--weight-black);
  line-height: 1.1;
}

.empty-state {
  padding: 32px 16px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 8px;
}

.cnn-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px 18px;
  margin-bottom: 20px;
}

.cnn-card-label {
  font-size: var(--text-xs, 0.75rem);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: var(--weight-black);
  margin-bottom: 6px;
}

.cnn-card-headline {
  font-size: var(--text-lg, 1.15rem);
  font-weight: var(--weight-black);
  color: var(--ink);
  line-height: 1.3;
  margin-bottom: 8px;
}

.cnn-card-gem {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.cnn-gem-val {
  font-size: var(--text-sm, 0.85rem);
  color: var(--ink);
}

.cnn-gem-val b {
  color: var(--muted);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  margin-right: 3px;
}

.cnn-section-label {
  font-size: var(--text-xs, 0.75rem);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 10px 0 6px;
}

.cnn-terms {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cnn-term {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 10px;
  min-width: 120px;
}

.cnn-term.cnn-entity {
  border-color: var(--accent, var(--line));
}

.cnn-term-name {
  display: block;
  font-weight: var(--weight-bold);
  color: var(--ink);
  margin-bottom: 3px;
}

.cnn-term-gem {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: var(--text-xs, 0.72rem);
  color: var(--muted);
}

.cnn-card-checked {
  margin-top: 10px;
  font-size: var(--text-xs, 0.72rem);
  color: var(--muted);
}

.back-nav {
  padding: 8px 0 16px;
}

.back-btn {
  width: auto;
  min-height: 36px;
  padding: var(--space-1) var(--space-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--panel);
  color: var(--accent-dark);
  font-family: 'DM Sans', sans-serif;
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  transition: all var(--transition-base);
  cursor: pointer;
}

.back-btn:hover {
  border-color: var(--accent);
  background: #f0f8f6;
  transform: translateX(-2px);
}

/* Smaller brand name for sub-pages */
.brand-name.small,
.brand .brand-name:not(h1) {
  font-size: 0.95rem;
  font-weight: 700;
}

.profile-header {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.profile-header .headshot {
  width: 68px;
  height: 68px;
}

.profile-name {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: var(--text-xl);
  font-weight: var(--weight-black);
  line-height: 1.1;
}

.profile-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.profile-team {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.92rem;
}

.profile-header-links {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.team-profile-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #eef3ec;
  color: var(--accent-dark);
  font-size: 0.76rem;
  font-weight: 800;
  text-decoration: none;
}

.team-profile-pill:hover {
  border-color: var(--accent);
  background: #dbeeea;
}

.profile-section {
  display: grid;
  gap: var(--space-2);
  padding: var(--space-4);
  border-bottom: 1px solid var(--line);
}

.profile-section--primary {
  padding: var(--space-6);
  border: 1px solid var(--color-gematria);
  border-left: 4px solid var(--color-gematria);
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--panel), #fdf8f0);
  margin-bottom: var(--space-3);
}

.profile-section--secondary {
  padding: var(--space-5);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--panel);
  margin-bottom: var(--space-2);
}

.profile-section--tertiary {
  padding: var(--space-4);
  border: none;
  background: transparent;
  margin-bottom: var(--space-2);
}

.profile-section h3 {
  margin: 0;
  color: #303331;
  font-family: 'DM Sans', sans-serif;
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

.gem-chip {
  display: grid;
  align-content: center;
  gap: 2px;
  min-height: 52px;
  border: 1px solid #e8dcc8;
  border-radius: var(--radius-md);
  padding: var(--space-2);
  background: linear-gradient(135deg, #fffdf5, #fef7e6);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-base);
}

.gem-chip:hover {
  border-color: var(--color-gematria);
  background: linear-gradient(135deg, #fef7e6, #fdecc8);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.gem-chip span {
  color: var(--color-gematria);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.gem-chip strong {
  color: var(--ink);
  font-size: var(--text-lg);
  font-weight: var(--weight-black);
  line-height: 1;
}

.name-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  padding: 8px 0;
}

.name-label {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  padding-top: 4px;
}

.name-text {
  font-weight: 700;
  font-size: 0.92rem;
}

.bio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.bio-chip {
  display: grid;
  align-content: center;
  gap: 2px;
  min-height: 56px;
  border: 1px solid #d0dde8;
  border-radius: var(--radius-md);
  padding: var(--space-2);
  background: linear-gradient(135deg, #f8fbff, #eef4fb);
  text-align: center;
  transition: all var(--transition-base);
}

.bio-chip:hover {
  border-color: var(--color-bio);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.bio-chip span {
  color: var(--color-bio);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.bio-chip strong {
  color: var(--ink);
  font-size: var(--text-lg);
  font-weight: var(--weight-black);
  line-height: 1;
}

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

/* News-story keyword-number chips: a fixed 6-column grid forced a wrap to a
   second row even when there was empty horizontal space left on the first
   (each chip claimed a full 1/6 column regardless of its actual width).
   Flex + wrap sizes chips to content and only wraps once the row is
   actually full. */
.news-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* Previous top stories list (news history) */
.news-history-row {
  padding: var(--space-2) 0;
  border-top: 1px solid var(--line);
}

.news-history-headline {
  display: block;
  font-weight: var(--weight-bold);
  font-size: var(--text-sm);
  color: var(--ink);
  line-height: 1.35;
}

.news-history-gems {
  margin-top: 4px;
}

.team-info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.team-info-chip {
  display: grid;
  align-content: center;
  gap: 2px;
  min-height: 56px;
  border: 1px solid #c8e0d8;
  border-radius: var(--radius-md);
  padding: var(--space-2);
  background: linear-gradient(135deg, #f0faf5, #e5f5ed);
  text-align: center;
  transition: all var(--transition-base);
}

.team-info-chip:hover {
  border-color: var(--color-team);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.team-info-chip span {
  color: var(--color-team);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.team-info-chip strong {
  color: var(--ink);
  font-size: var(--text-base);
  font-weight: var(--weight-black);
  line-height: 1;
}

@media (max-width: 640px) {
  .team-info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.date-chip {
  display: grid;
  align-content: center;
  gap: var(--space-1);
  min-height: 74px;
  border: 1px solid #e0d0e8;
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-2);
  background: linear-gradient(135deg, #fdf8ff, #f5eefa);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-base);
}

.date-chip:hover {
  border-color: var(--color-date);
  background: linear-gradient(135deg, #f5eefa, #ece0f5);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.date-chip span {
  color: var(--color-date);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.date-chip strong {
  color: var(--ink);
  font-size: var(--text-base);
  font-weight: var(--weight-black);
  line-height: 1;
}

.date-chip-sub {
  font-size: 0.82rem;
  color: var(--accent-dark);
  font-weight: 700;
  line-height: 1.35;
  margin-top: 4px;
  text-wrap: balance;
}

.key-events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-3);
  margin-top: var(--space-3);
}

.key-event-chip {
  padding: var(--space-3);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--color-date);
  transition: all var(--transition-base);
}

.key-event-chip:hover {
  border-left-color: var(--accent);
  box-shadow: var(--shadow-md);
}

.key-event-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--space-2);
  gap: var(--space-2);
}

.key-event-name {
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--ink);
}

.key-event-date {
  font-size: var(--text-xs);
  color: var(--muted);
  white-space: nowrap;
}

.key-event-metrics {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.key-event-metric {
  font-size: var(--text-xs);
  color: var(--muted);
  line-height: 1.4;
}

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

@media (min-width: 960px) {
  .stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 641px) and (max-width: 959px) {
  .stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.stat-card {
  display: grid;
  gap: var(--space-1);
  padding: var(--space-3);
  border: 1px solid #c8d8e0;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #f8fbfc, #eef4f8);
  transition: all var(--transition-base);
}

.stat-card:hover {
  border-color: var(--color-stat);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.stat-card h4 {
  margin: 0;
  color: var(--color-stat);
  font-family: 'DM Sans', sans-serif;
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-card .value {
  color: var(--ink);
  font-size: var(--text-2xl);
  font-weight: var(--weight-black);
  line-height: 1;
}

.game-banner {
  padding: var(--space-3) var(--space-4);
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  border-radius: var(--radius-lg);
  text-align: center;
  font-family: 'DM Sans', sans-serif;
  font-weight: var(--weight-bold);
  font-size: var(--text-base);
  color: white;
  box-shadow: 0 2px 8px rgba(15, 118, 110, 0.3);
}

.team-gem-row {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  /* Wrap instead of scroll: number boxes must never show inner scrollbars. */
  flex-wrap: wrap;
  overflow: visible;
}

.gematria-row {
  margin-bottom: 10px;
}

.gematria-row-label {
  font-weight: 800;
  font-size: 0.92rem;
}

.gematria-row-text {
  margin-left: 8px;
  color: var(--accent-dark);
  font-weight: 700;
  font-size: 0.92rem;
}

.mini-gem {
  display: grid;
  align-content: center;
  gap: 2px;
  /* Cipher label + number must stay on one line each — never wrap mid-chip. */
  white-space: nowrap;
  flex-shrink: 0;
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #fffdf5, #fef7e6);
  border: 1px solid #f0e6d2;
  text-align: center;
  transition: all var(--transition-fast);
}

.mini-gem:hover {
  border-color: var(--color-gematria);
  transform: translateY(-1px);
}

.mini-gem small {
  color: var(--color-gematria);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: 0.05em;
}

.mini-gem strong {
  color: var(--ink);
  font-size: var(--text-sm);
  font-weight: var(--weight-black);
}

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

.roster-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
  cursor: pointer;
}

.roster-row:hover { background: #f4f8f2; border-color: var(--accent); }

.roster-row .headshot { width: 36px; height: 36px; }

.roster-name { font-weight: 700; font-size: 0.88rem; }

.roster-pos { color: var(--muted); font-size: 0.76rem; }

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

.roster-gems .mini-gem { padding: 3px 5px; }

.roster-gems .mini-gem strong { font-size: 0.78rem; }

.hidden { display: none !important; }

*:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.skeleton {
  background: linear-gradient(90deg, var(--line) 25%, #e8ede9 50%, var(--line) 75%);
  background-size: 200% 100%;
  animation: skeleton-pulse 1.5s ease-in-out infinite;
  border-radius: var(--radius-md);
}

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

.skeleton-text {
  height: 1em;
  margin-bottom: var(--space-2);
}

.skeleton-heading {
  height: 1.5em;
  width: 40%;
  margin-bottom: var(--space-3);
}

.skeleton-chip {
  height: 52px;
  border-radius: var(--radius-md);
}

.skeleton-card {
  height: 64px;
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-2);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.profile-name-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.profile-name-link {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: var(--text-xl);
  font-weight: var(--weight-black);
  line-height: 1.1;
  color: var(--ink);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.profile-name-link:hover {
  color: var(--accent);
}

.jersey-number {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: var(--text-3xl);
  font-weight: var(--weight-black);
  color: var(--color-gematria);
  line-height: 1;
  text-decoration: none;
  transition: all var(--transition-base);
}

.jersey-number:hover {
  color: var(--accent);
  transform: scale(1.05);
}

a.jersey-number { color: var(--accent-dark); }

.team-link {
  color: inherit;
  text-decoration: none;
}

.team-link:hover {
  color: var(--accent);
  text-decoration: underline;
}

.suggest-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  z-index: 100;
  max-height: 360px;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  animation: slideDown 0.2s ease;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.suggest-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition: all var(--transition-fast);
}

.suggest-item:last-child { border-bottom: 0; }
.suggest-item:hover {
  background: linear-gradient(135deg, #f8fdf8, #f0f8f0);
}

.suggest-name {
  font-weight: var(--weight-bold);
  font-size: var(--text-base);
}

.suggest-meta {
  color: var(--muted);
  font-size: var(--text-sm);
}

.search-row { position: relative; }

.player-search-box {
  padding: 12px 16px;
  margin-bottom: 12px;
  position: relative;
}

.player-search-row {
  display: grid;
  gap: 0;
}

.date-detail {
  font-size: 0.82rem;
  color: var(--muted);
  padding: 2px 0;
}

.date-detail strong {
  color: var(--ink);
}

.astro-chip {
  background: #f0f4ff !important;
  border-color: #c7d2fe !important;
}

.stat-group {
  margin-bottom: 12px;
}

.stat-group-label {
  font-weight: 800;
  font-size: 0.8rem;
  color: var(--accent-dark);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.match-category {
  margin-bottom: 12px;
}

.match-category h4 {
  margin: 0 0 var(--space-2);
  color: var(--color-match);
  font-family: 'DM Sans', sans-serif;
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.match-line {
  padding: var(--space-2) var(--space-3);
  border: 1px solid #e8d0d0;
  border-left: 3px solid var(--color-match);
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #fff8f8, #fef2f2);
  font-size: var(--text-sm);
  margin-bottom: var(--space-1);
  transition: all var(--transition-fast);
}

.match-line:hover {
  border-color: var(--color-match);
  background: #fef2f2;
}

.match-line:nth-child(odd) {
  background: linear-gradient(135deg, #fef2f2, #fde8e8);
}

.profile-section h3 a:hover {
  color: var(--accent);
}

.full-date-box {
  display: grid;
  gap: var(--space-2);
  padding: var(--space-4);
  border: 2px solid var(--color-date);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #fdf8ff, #f5eefa);
  text-align: center;
}

.full-date-label {
  color: var(--accent-dark);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.full-date-text {
  color: var(--ink);
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(var(--text-md), 2vw, var(--text-xl));
  line-height: 1.2;
  font-weight: var(--weight-black);
  word-break: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.full-date-gem {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-top: 6px;
}

.stats-disclaimer {
  padding: 12px 16px;
  background: #fef3cd;
  border: 1px solid #ffc107;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #856404;
  text-align: center;
  margin-bottom: 12px;
}

.adv-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding-top: 20px;
  white-space: nowrap;
}

.adv-checkbox input {
  width: auto;
  min-height: auto;
}

.is-disabled {
  opacity: 0.55;
}

.team-logo {
  width: 68px;
  height: 68px;
  padding: 8px;
}

.stat-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 4px;
}

.stat-tab {
  padding: var(--space-2) var(--space-4);
  border: none;
  background: transparent;
  color: var(--muted);
  font-family: 'DM Sans', sans-serif;
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  cursor: pointer;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  margin-bottom: -1px;
  transition: all var(--transition-fast);
}

.stat-tab:hover {
  color: var(--ink);
  background: var(--line);
}

.stat-tab.active {
  color: var(--color-stat);
  background: var(--panel);
  border: 1px solid var(--line);
  border-bottom: 1px solid var(--panel);
}

.stat-panels {
  position: relative;
}

.stat-panel {
  display: none;
}

.stat-panel.active {
  display: block;
}

@media (max-width: 640px) {
  .search-row { grid-template-columns: 1fr; }
  .gem-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .date-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stats-grid { grid-template-columns: 1fr; }
  .result-card {
    grid-template-columns: 40px minmax(0, 1fr) auto;
    padding: var(--space-2) var(--space-3);
  }
  .result-gems {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-1);
  }
  .result-gem { min-width: 36px; padding: var(--space-1); }
  .result-gem strong { font-size: var(--text-sm); }
  .stat-tabs { flex-wrap: wrap; }
  .stat-tab { padding: var(--space-2) var(--space-3); font-size: var(--text-xs); }
  .topbar-right { width: 100%; justify-content: space-between; }
  .adv-checkbox { padding-top: 0; }
  .side-nav {
    position: static;
    transform: none;
    justify-content: center;
  }
  .profile-header-top { align-items: flex-start; }
  .team-page-nav { margin-left: 0; }
  .cipher-pills { display: flex; flex-wrap: wrap; gap: var(--space-1); }
  .cipher-pill { padding: var(--space-1) var(--space-2); font-size: 0.7rem; min-height: 32px; }
  .sport-pills { gap: var(--space-1); }
  .sport-pill { padding: var(--space-1) var(--space-2); font-size: var(--text-xs); min-height: 36px; }
  .profile-section { padding: var(--space-3); }
  .profile-section--primary { padding: var(--space-4); }
  .profile-section--secondary { padding: var(--space-3); }
}

.roster-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  margin-top: 16px;
}

.inline-nav {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f7faf7;
}

/* Side navigation arrows - positioned outside the frame */
.side-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  display: none;
}

.side-nav-left {
  left: max(8px, calc((100vw - 960px) / 2 - 60px));
}

.side-nav-right {
  right: max(8px, calc((100vw - 960px) / 2 - 60px));
}

@media (min-width: 768px) {
  .side-nav {
    display: flex;
  }
}

@media (max-width: 767px) {
  .side-nav {
    position: static;
    transform: none;
    display: inline-flex;
  }
}

.inline-nav-info {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

.nav-btn {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  color: var(--ink);
  font-size: 1.5rem;
  font-weight: var(--weight-black);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-base);
}

.nav-btn:hover {
  background: #f0f8f6;
  border-color: var(--accent);
  transform: scale(1.05);
  box-shadow: var(--shadow-md);
}

.roster-nav-info {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--muted);
  min-width: 120px;
  text-align: center;
}

.nav-btn.small {
  width: 32px;
  height: 32px;
  font-size: 1.2rem;
}

.teammate-nav {
  margin-top: 10px;
}

.team-page-nav {
  margin-left: auto;
}

.team-logo-link {
  display: inline-flex;
}

/* Responsive stats grid for wider screens */
@media (min-width: 960px) {
  .stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 641px) and (max-width: 959px) {
  .stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Side nav inline info styles */
.teammate-nav-info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f7faf7;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

.team-page-nav-info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f7faf7;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

/* ── Reports Page ─────────────────────────────────────────── */

.reports-controls {
  padding: 20px 16px;
  margin-bottom: 18px;
}

.reports-sport-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.reports-content {
  min-height: 200px;
}

.reports-error {
  padding: 16px;
  background: #fef2f2;
  border: 1px solid var(--color-danger);
  border-radius: var(--radius-md);
  color: var(--color-danger);
  font-weight: var(--weight-bold);
  text-align: center;
  margin-bottom: 12px;
}

.reports-footer {
  padding: 24px 16px 8px;
  text-align: center;
  color: var(--muted);
  font-size: var(--text-sm);
}

.reports-footer p {
  margin: 0;
}

/* ── Game Cards ──────────────────────────────────────────── */

.game-cards {
  display: grid;
  gap: 12px;
}

.game-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  animation: fadeSlideUp 0.35s ease both;
}

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

.game-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px 10px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}

.game-card-matchup {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-md);
}

.game-team-away {
  color: var(--muted);
  font-weight: var(--weight-medium);
}

.game-team-home {
  color: var(--accent-dark);
  font-weight: var(--weight-black);
}

.game-card-vs {
  color: var(--muted);
  font-weight: var(--weight-bold);
  font-size: var(--text-sm);
}

.game-card-records {
  color: var(--muted);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
}

/* ── Gematria Chips ──────────────────────────────────────── */

.game-card-gems {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
}

.game-gem-group {
  display: grid;
  gap: 4px;
}

.game-gem-label {
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  color: var(--accent-dark);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.game-gem-row {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.game-gem-row .mini-gem {
  flex: 1;
  min-width: 48px;
}

/* ── Meta (Venue / Network / Time) ──────────────────────── */

.game-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  padding: 8px 16px;
  border-bottom: 1px solid var(--line);
  font-size: var(--text-sm);
}

.game-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-weight: var(--weight-medium);
}

.gem-inline {
  color: var(--color-gematria);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  white-space: nowrap;
}

.gem-inline-text {
  font-weight: var(--weight-bold);
  color: var(--ink);
}

/* ── Notes (collapsible) ─────────────────────────────────── */

.game-card-notes {
  border-top: none;
}

.game-notes-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  cursor: pointer;
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  color: var(--accent);
  transition: background var(--transition-fast);
  user-select: none;
}

.game-notes-toggle:hover {
  background: #f0f8f6;
}

.game-notes-arrow {
  transition: transform var(--transition-base);
  font-size: 0.7rem;
}

.game-card-notes.expanded .game-notes-arrow {
  transform: rotate(180deg);
}

.game-notes-body {
  display: none;
  padding: 0 16px 12px;
  font-size: var(--text-sm);
  line-height: 1.65;
  color: var(--ink);
}

.game-card-notes.expanded .game-notes-body {
  display: block;
}

.game-notes-body a {
  color: var(--accent);
  text-decoration: none;
  font-weight: var(--weight-bold);
}

.game-notes-body a:hover {
  text-decoration: underline;
}

.game-notes-body strong {
  color: var(--accent-dark);
}

.game-notes-body br + br {
  display: none;
}

/* ── Reports responsive ──────────────────────────────────── */

@media (max-width: 640px) {
  .game-card-gems {
    grid-template-columns: 1fr;
  }
  .game-card-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .game-card-meta {
    flex-direction: column;
    gap: 4px;
  }
  .game-gem-row .mini-gem {
    min-width: 40px;
  }
}

/* ══════════════════════════════════════════════════════════════
   REPORTS PAGE v2 — Premium Redesign
   ══════════════════════════════════════════════════════════════ */

/* ── Report Type Tabs ───────────────────────────────────────── */

.report-type-bar {
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  padding: 0 24px;
}

.report-type-tabs {
  display: flex;
  gap: 2px;
  max-width: 960px;
  margin: 0 auto;
}

.report-type-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 13px 18px;
  border: none;
  background: none;
  color: var(--muted);
  font-family: inherit;
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  cursor: pointer;
  position: relative;
  transition: color var(--transition-fast);
  white-space: nowrap;
}

.report-type-tab::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 18px;
  right: 18px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px 2px 0 0;
  transform: scaleX(0);
  transition: transform var(--transition-base);
}

.report-type-tab:hover {
  color: var(--ink);
}

.report-type-tab.active {
  color: var(--accent-dark);
}

.report-type-tab.active::after {
  transform: scaleX(1);
}

.report-type-tab svg {
  opacity: 0.55;
  transition: opacity var(--transition-fast);
}

.report-type-tab.active svg,
.report-type-tab:hover svg {
  opacity: 1;
}

/* Sub-nav (per-sport tab strip in the shared header) reuses the report-tab
   underline language so it reads as one system with the report tabs it
   drives, instead of a separate pill-chip style. */
#siteNav .sub-nav {
  display: flex;
  gap: 2px;
  flex-wrap: nowrap;
  padding: 0 0 0;
  border-bottom: 1px solid var(--line);
  margin: 10px 0 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

#siteNav .sub-nav::-webkit-scrollbar { display: none; }

#siteNav .sub-nav-link {
  display: inline-flex;
  align-items: center;
  padding: 11px 16px;
  color: var(--muted);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  text-decoration: none;
  position: relative;
  white-space: nowrap;
  transition: color var(--transition-fast);
}

#siteNav .sub-nav-link::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 16px;
  right: 16px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px 2px 0 0;
  transform: scaleX(0);
  transition: transform var(--transition-base);
}

#siteNav .sub-nav-link:hover {
  color: var(--ink);
}

#siteNav .sub-nav-link.active {
  color: var(--accent-dark);
}

#siteNav .sub-nav-link.active::after {
  transform: scaleX(1);
}

/* ── Controls Row ───────────────────────────────────────────── */

.reports-controls-row {
  display: flex;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;
}

.reports-controls-sport {
  flex: 1;
  min-width: 200px;
}

.reports-controls-date {
  flex-shrink: 0;
}

.reports-controls-refresh {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.last-updated {
  font-size: var(--text-xs);
  color: var(--text-muted);
  white-space: nowrap;
  padding-left: 4px;
}

.date-picker-group {
  display: flex;
  gap: 6px;
  align-items: center;
}

.date-today-btn {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--panel);
  color: var(--accent-dark);
  font-family: inherit;
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  min-height: 42px;
}

.date-today-btn:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

#dateInput {
  width: 170px;
  min-height: 42px;
  padding: 0 12px;
  font-size: 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  font-family: inherit;
}

/* ── Report Panels ──────────────────────────────────────────── */

.report-panel {
  display: none;
}

.report-panel.active {
  display: block;
}

/* Extra MLB reports (HR Picks / Home Runs / Patterns / HR Dashboard) are
   fetched and injected inline into these panels (see reports-core.js
   activateReport/injectExtraReport) instead of iframed. Their own standalone
   pages widen their `.shell` to up to 1400px for wide tables/charts -- we
   don't want that to blow out the /mlb page's 960px shell, so we scope the
   width override to just the injected panel and let wide content scroll
   horizontally within it instead (same overflow-x idiom as .report-tabs /
   .hr-table-wrap elsewhere in this file). */
.embedded-report-panel {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.embedded-report-panel .content-wrapper {
  max-width: 1400px;
}

/* ── Game Card Premium ──────────────────────────────────────── */

.game-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  animation: fadeSlideUp 0.35s ease both;
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.game-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-1px);
}

.game-card-hero {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: linear-gradient(135deg, #f8faf9 0%, #f0f5f3 100%);
  border-bottom: 1px solid var(--line);
}

.game-team-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.game-team-block.away {
  justify-self: start;
}

.game-team-block.home {
  justify-self: end;
}

.game-logo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: white;
  border: 2px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.game-logo-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.game-logo-fallback {
  font-size: 18px;
  font-weight: var(--weight-black);
  color: var(--accent-dark);
  letter-spacing: -0.02em;
}

.game-team-name {
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  color: var(--ink);
  line-height: 1.2;
  max-width: 120px;
}

.game-team-record {
  font-size: var(--text-xs);
  color: var(--muted);
  font-weight: var(--weight-medium);
}

.game-vs {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.game-vs-symbol {
  font-size: 13px;
  font-weight: var(--weight-black);
  color: var(--muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Broadcaster badge replacing the "@" between team logos */
.game-vs-network-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.network-badge-img {
  height: 22px;
  width: auto;
  border-radius: 5px;
  display: block;
}
.game-vs-network-link:hover .network-badge-img {
  filter: brightness(1.15);
}
.event-network .network-badge-img {
  height: 18px;
  vertical-align: middle;
}

.game-vs-time {
  font-size: var(--text-xs);
  color: var(--muted);
  font-weight: var(--weight-medium);
  white-space: nowrap;
}

/* ── Gematria Badges ────────────────────────────────────────── */

.game-card-gems {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
}

.game-gem-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.game-gem-label {
  font-size: 13px;
  font-weight: var(--weight-bold);
  color: var(--accent-dark);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

a.game-gem-label-link {
  text-decoration: none;
  display: inline-block;
}

a.game-gem-label-link:hover,
a.game-gem-label-link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.game-gem-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 2px 0;
}

.game-gem-row-label {
  font-size: 12px;
  font-weight: var(--weight-medium);
  color: var(--muted);
  white-space: nowrap;
  min-width: 0;
}

.gem-badge-row {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.gem-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 9px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: var(--weight-bold);
  line-height: 1;
  white-space: nowrap;
}

.gem-badge .gem-cipher {
  font-size: 9px;
  font-weight: var(--weight-bold);
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.gem-badge.ordinal {
  background: #e6f5f1;
  color: #0d6e5c;
}

.gem-badge.reduction {
  background: #fef3cd;
  color: #856404;
}

.gem-badge.rev-ordinal {
  background: #e8edf2;
  color: #3d5a80;
}

.gem-badge.rev-reduction {
  background: #f3e8f0;
  color: #7c3d6b;
}

/* ── Meta Row ───────────────────────────────────────────────── */

.game-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  padding: 10px 20px;
  border-bottom: 1px solid var(--line);
  font-size: var(--text-sm);
}

.game-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-weight: var(--weight-medium);
}

.game-meta-item svg {
  opacity: 0.5;
  flex-shrink: 0;
}

/* ── Notes Premium ──────────────────────────────────────────── */

.game-card-notes {
  border-top: none;
}

.game-notes-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  cursor: pointer;
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  color: var(--accent);
  transition: background var(--transition-fast);
  user-select: none;
}

.game-notes-toggle:hover {
  background: #f0f8f6;
}

.game-notes-arrow {
  transition: transform var(--transition-base);
  font-size: 0.7rem;
}

.game-card-notes.expanded .game-notes-arrow {
  transform: rotate(180deg);
}

.game-notes-body {
  display: none;
  padding: 0 20px 14px;
  font-size: var(--text-sm);
  line-height: 1.7;
  color: var(--ink);
  border-left: 3px solid var(--accent);
  margin-left: 20px;
  padding-left: 14px;
}

.game-card-notes.expanded .game-notes-body {
  display: block;
}

.game-notes-body a {
  color: var(--accent);
  text-decoration: none;
  font-weight: var(--weight-bold);
}

.game-notes-body a:hover {
  text-decoration: underline;
}

.game-notes-body strong {
  color: var(--accent-dark);
}

.game-notes-body br + br {
  display: none;
}

/* ── Empty State ────────────────────────────────────────────── */

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  text-align: center;
}

.empty-state-icon {
  margin-bottom: 16px;
  opacity: 0.6;
}

.empty-state-text {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: var(--text-lg);
  color: var(--ink);
  margin: 0 0 6px;
}

.empty-state-sub {
  font-size: var(--text-sm);
  color: var(--muted);
  margin: 0;
}

/* ── Loading Skeleton ───────────────────────────────────────── */

.skeleton-card {
  height: 180px;
  border-radius: var(--radius-lg);
  background: linear-gradient(110deg, #eef1ee 30%, #f7f9f7 50%, #eef1ee 70%);
  background-size: 200% 100%;
  margin-bottom: 12px;
  border: 1px solid var(--line);
}

.skeleton-card.shimmer {
  animation: shimmer 1.5s ease-in-out infinite;
}

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

/* ── Coming Soon ────────────────────────────────────────────── */

.coming-soon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  text-align: center;
}

.coming-soon-icon-wrap {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #f0f5f3;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--accent);
}

.coming-soon-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: var(--text-xl);
  color: var(--ink);
  margin: 0 0 8px;
}

.coming-soon-text {
  font-size: var(--text-sm);
  color: var(--muted);
  max-width: 380px;
  line-height: 1.6;
  margin: 0;
}

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

@media (max-width: 640px) {
  .report-type-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .report-type-tab span {
    display: none;
  }

  .report-type-tab {
    padding: 12px 14px;
  }

  #siteNav .sub-nav-link {
    padding: 10px 12px;
    font-size: var(--text-xs, 12px);
  }

  .reports-controls-row {
    flex-direction: column;
    align-items: stretch;
  }

  .reports-controls-sport {
    min-width: 0;
  }

  .date-picker-group {
    width: 100%;
  }

  #dateInput {
    flex: 1;
    width: auto;
  }

  .game-card-hero {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 16px;
  }

  .game-team-block.away,
  .game-team-block.home {
    justify-self: center;
  }

  .game-vs {
    flex-direction: row;
    gap: 8px;
  }

  .game-card-gems {
    grid-template-columns: 1fr;
    padding: 12px 16px;
  }

  .game-card-meta {
    padding: 8px 16px;
  }

  .game-notes-toggle {
    padding: 8px 16px;
  }

  .game-notes-body {
    margin-left: 16px;
    padding-left: 12px;
  }
}

/* ── Report Type Tabs ───────────────────────────────────── */

.report-tabs {
  display: flex;
  gap: 2px;
  padding: 0;
  margin: 0 0 var(--space-4);
  border-bottom: 2px solid var(--line);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

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

.report-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: var(--space-3) var(--space-5);
  border: none;
  background: transparent;
  color: var(--muted);
  font-family: 'DM Sans', sans-serif;
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  transition: color var(--transition-base);
}

.report-tab::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: transparent;
  border-radius: 2px 2px 0 0;
  transition: background var(--transition-base);
}

.report-tab:hover {
  color: var(--ink);
}

.report-tab:hover::after {
  background: var(--line);
}

.report-tab.active {
  color: var(--accent-dark);
}

.report-tab.active::after {
  background: var(--accent);
}

.report-tab svg {
  opacity: 0.6;
  transition: opacity var(--transition-base);
}

.report-tab.active svg {
  opacity: 1;
}

/* ── Tab Panels ─────────────────────────────────────────── */

.reports-tab-panel.hidden { display: none !important; }

/* ── Controls Refined ───────────────────────────────────── */

.reports-date-row {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.reports-date-group {
  display: flex;
  flex-direction: column;
}

.reports-date-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.reports-calendar-icon {
  position: absolute;
  left: 12px;
  color: var(--muted);
  pointer-events: none;
  z-index: 1;
}

.reports-date-input-wrap input[type="date"] {
  padding-left: 38px;
  width: 200px;
  min-height: 42px;
  font-size: 0.9rem;
}

/* ── Date Quick Button ──────────────────────────────────── */

.date-quick {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--panel);
  color: var(--accent-dark);
  font-family: 'DM Sans', sans-serif;
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
}

.date-quick:hover {
  border-color: var(--accent);
  background: #f0f8f6;
  color: var(--accent);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.date-quick:active {
  transform: translateY(0);
}

/* ── Game Card Premium ──────────────────────────────────── */

.game-card-hero {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-6) var(--space-5);
  background: linear-gradient(180deg, #fafcfb 0%, var(--panel) 100%);
}

.game-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
}

.game-logo-img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.08));
  transition: transform var(--transition-base);
}

.game-card:hover .game-logo-img {
  transform: scale(1.08);
}

.game-logo-fallback {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #eef3ec, #e2ece0);
  border: 2px solid var(--line);
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: var(--text-xl);
  font-weight: var(--weight-black);
  color: var(--accent-dark);
  letter-spacing: -0.02em;
}

.game-logo-name {
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  color: var(--ink);
  text-align: center;
  line-height: 1.2;
}

.game-logo-record {
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  color: var(--muted);
}

.game-logo-record:empty { display: none; }

.game-hero-vs {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.game-hero-at {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: var(--text-lg);
  font-weight: var(--weight-black);
  color: var(--muted);
  line-height: 1;
}

.game-hero-time {
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* ── Gematria Badges ────────────────────────────────────── */

.gem-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: 0.02em;
  transition: transform var(--transition-fast);
}

.gem-badge:hover {
  transform: translateY(-1px);
}

.gem-badge small {
  opacity: 0.7;
  font-weight: var(--weight-medium);
  text-transform: uppercase;
}

.gem-badge strong {
  font-weight: var(--weight-black);
}

.gem-badge.ordinal {
  background: linear-gradient(135deg, #e6f7f6, #d1f0ed);
  color: #0c5e58;
  border: 1px solid #b2e3df;
}

.gem-badge.reduction {
  background: linear-gradient(135deg, #fef7e6, #fdecc8);
  color: #8a6017;
  border: 1px solid #f0ddb0;
}

.gem-badge.rev-ordinal {
  background: linear-gradient(135deg, #eef2f6, #dce5ed);
  color: #3a5068;
  border: 1px solid #c4d4e3;
}

.gem-badge.rev-reduction {
  background: linear-gradient(135deg, #f5eef4, #ecdee9);
  color: #6b3a5e;
  border: 1px solid #ddc4d6;
}

/* ── Card Gem Section ───────────────────────────────────── */

.game-card-gems-premium {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  border-top: 1px solid var(--line);
}

.game-gem-col {
  display: grid;
  gap: 6px;
}

.game-gem-col-label {
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  color: var(--accent-dark);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line);
}

.game-gem-col-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

/* ── Meta Premium ───────────────────────────────────────── */

.game-card-meta-premium {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  padding: var(--space-3) var(--space-5);
  border-top: 1px solid var(--line);
  background: #fafcfb;
  font-size: var(--text-sm);
}

.game-meta-item-premium {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-weight: var(--weight-medium);
}

.game-meta-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: var(--radius-sm);
  background: #eef3ec;
  color: var(--accent);
  flex-shrink: 0;
}

.game-meta-icon svg {
  width: 13px;
  height: 13px;
}

.gem-inline-premium {
  color: var(--color-gematria);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  white-space: nowrap;
  opacity: 0.8;
}

/* ── Notes Premium ──────────────────────────────────────── */

.game-notes-body-premium {
  display: none;
  padding: 0 var(--space-5) var(--space-4);
  font-size: var(--text-sm);
  line-height: 1.7;
  color: var(--ink);
}

.game-card-notes.expanded .game-notes-body-premium {
  display: block;
}

.game-notes-body-premium a {
  color: var(--accent);
  text-decoration: none;
  font-weight: var(--weight-bold);
}

.game-notes-body-premium a:hover {
  text-decoration: underline;
}

.game-notes-body-premium strong {
  color: var(--accent-dark);
}

.game-notes-body-premium br + br {
  display: none;
}

.game-notes-pattern {
  padding-left: var(--space-4);
  border-left: 3px solid var(--color-gematria);
  background: linear-gradient(90deg, rgba(183,121,31,0.04), transparent);
  margin: var(--space-2) 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* ── Empty State ────────────────────────────────────────── */

.reports-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-16) var(--space-4);
  text-align: center;
  border: none;
  background: transparent;
}

.reports-empty-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f0f8f6, #e2ece0);
  margin-bottom: var(--space-6);
  animation: emptyPulse 3s ease-in-out infinite;
}

@keyframes emptyPulse {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.04); opacity: 1; }
}

.reports-empty-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: var(--text-xl);
  color: var(--ink);
  margin: 0 0 var(--space-2);
}

.reports-empty-sub {
  color: var(--muted);
  font-size: var(--text-sm);
  margin: 0;
}

/* ── Loading Skeletons ──────────────────────────────────── */

.reports-loading {
  display: grid;
  gap: 12px;
}

.skeleton-card-shimmer {
  height: 200px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background:
    linear-gradient(
      90deg,
      var(--panel) 0%,
      #f0f4f0 20%,
      #e8ede9 40%,
      #f0f4f0 60%,
      var(--panel) 100%
    );
  background-size: 300% 100%;
  animation: shimmer 1.8s ease-in-out infinite;
}

.skeleton-card-shimmer:nth-child(2) { animation-delay: 0.15s; }
.skeleton-card-shimmer:nth-child(3) { animation-delay: 0.3s; }
.skeleton-card-shimmer:nth-child(4) { animation-delay: 0.45s; }

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

/* ── Coming Soon ────────────────────────────────────────── */

.reports-coming-soon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-16) var(--space-4);
  text-align: center;
}

.reports-coming-soon-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f0f8f6, #e2ece0);
  margin-bottom: var(--space-6);
}

.reports-coming-soon-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: var(--text-2xl);
  color: var(--ink);
  margin: 0 0 var(--space-2);
}

.reports-coming-soon-sub {
  color: var(--muted);
  font-size: var(--text-sm);
  margin: 0;
  max-width: 360px;
}

/* ── Game Card: responsive hero ─────────────────────────── */

@media (max-width: 640px) {
  .game-card-hero {
    grid-template-columns: 1fr;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-4);
    text-align: center;
  }

  .game-logo {
    flex-direction: row;
    justify-content: center;
  }

  .game-logo-img {
    width: 48px;
    height: 48px;
  }

  .game-logo-fallback {
    width: 48px;
    height: 48px;
    font-size: var(--text-md);
  }

  .game-hero-vs {
    flex-direction: row;
    gap: 8px;
  }

  .game-card-gems-premium {
    grid-template-columns: 1fr;
    padding: var(--space-3) var(--space-4);
  }

  .game-card-meta-premium {
    flex-direction: column;
    gap: 4px;
    padding: var(--space-3) var(--space-4);
  }

  .report-tabs {
    gap: 0;
  }

  .report-tab {
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-xs);
    gap: 4px;
  }

  .report-tab svg {
    width: 14px;
    height: 14px;
  }

  .reports-date-row {
    flex-direction: column;
    align-items: stretch;
  }

  .reports-date-input-wrap input[type="date"] {
    width: 100%;
  }
}

/* ══════════════════════════════════════════════════════════════
   REPORTS PAGE v3 — Enhanced Header & Notes Table
   ══════════════════════════════════════════════════════════════ */

/* ── Enhanced Game Card Hero ───────────────────────────────── */

.game-card-hero {
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: linear-gradient(135deg, #f8faf9 0%, #f0f5f3 100%);
  border-bottom: 1px solid var(--line);
}

.game-team-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  min-width: 0;
}

.game-team-block.away {
  justify-self: start;
}

.game-team-block.home {
  justify-self: end;
}

.game-logo-link {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: transform var(--transition-fast);
}

.game-logo-link:hover {
  transform: scale(1.05);
}

.game-logo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: white;
  border: 2px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.game-logo-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.game-logo-fallback {
  font-size: 18px;
  font-weight: var(--weight-black);
  color: var(--accent-dark);
  letter-spacing: -0.02em;
}

.game-team-name-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  max-width: 140px;
}

.game-team-name-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.game-team-name-link:hover .game-team-name {
  color: var(--accent);
}

.game-team-name {
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  color: var(--ink);
  line-height: 1.2;
}

.game-team-full {
  font-size: var(--text-sm);
  color: var(--muted);
  font-weight: var(--weight-medium);
  white-space: nowrap;
}

.game-team-record-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin-top: 2px;
}

.game-team-record {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--muted);
  white-space: nowrap;
}

.game-team-gem {
  font-size: 11px;
  color: var(--muted);
  margin-top: 1px;
}

.game-team-record.overall {
  color: var(--ink);
  font-weight: var(--weight-bold);
}

.game-team-record.homeaway {
  color: var(--muted);
  font-weight: var(--weight-medium);
}

/* ── Middle Section (H2H, All-Time, Division) ────────────────── */

.game-card-middle {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding: 12px 24px;
  background: linear-gradient(135deg, #f8faf9 0%, #f0f5f3 100%);
  border-bottom: 1px solid var(--line);
  font-size: var(--text-sm);
}

.game-middle-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.game-middle-label {
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  color: var(--accent-dark);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.game-middle-value {
  font-weight: var(--weight-medium);
  color: var(--ink);
  white-space: nowrap;
}

/* ── VS Section with Venue & Network ───────────────────────── */

.game-vs {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  min-width: 140px;
}

.game-vs-symbol {
  font-size: 13px;
  font-weight: var(--weight-black);
  color: var(--muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.game-vs-time-link {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

.game-vs-time-link:hover {
  color: var(--accent);
}

.game-vs-time {
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  color: var(--ink);
  white-space: nowrap;
}

.game-vs-venue {
  font-size: var(--text-sm);
  color: var(--muted);
  font-weight: var(--weight-medium);
  display: flex;
  align-items: center;
  gap: 4px;
}

.game-vs-final-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.game-vs-final-badge {
  font-size: 10px;
  font-weight: var(--weight-black);
  letter-spacing: 0.08em;
  color: #fff;
  background: var(--color-danger, #b23b3b);
  border-radius: 999px;
  padding: 1px 8px;
}

.game-vs-final-line {
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  color: var(--ink);
  white-space: nowrap;
}

.game-vs-network {
  font-size: var(--text-sm);
  color: var(--color-bio);
  font-weight: var(--weight-medium);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ── Notes Table ───────────────────────────────────────────── */

.game-card-notes {
  border-top: 1px solid var(--line);
  background: #fafbfa;
}

.game-card-notes.expanded {
  /* always expanded now */
}

.game-notes-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-base);
}

.notes-table th,
.notes-table td {
  padding: 10px 14px;
  vertical-align: top;
  border: none;
}

.notes-table th {
  font-family: 'DM Sans', sans-serif;
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-dark);
  background: #f0f8f6;
  border-bottom: 2px solid var(--accent);
  text-align: left;
}

.notes-th-team {
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  margin-bottom: 2px;
}

.notes-th-pitcher {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--muted);
  text-transform: none;
  letter-spacing: normal;
}

.notes-th-pitcher .pitcher-jersey {
  color: var(--accent);
  font-weight: var(--weight-bold);
  margin-right: 2px;
}

.notes-th-pitcher .pitcher-name-link {
  color: var(--accent-dark);
  text-decoration: none;
  border-bottom: 1px dotted var(--accent);
}

.notes-th-pitcher .pitcher-name-link:hover {
  color: var(--accent);
  border-bottom-style: solid;
}

.notes-th-pitcher .pitcher-record-link {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px dotted var(--line);
}

.notes-th-pitcher .pitcher-record-link:hover {
  color: var(--accent-dark);
  border-bottom-style: solid;
}

.notes-th-pitcher .pitcher-record {
  color: var(--muted);
}

.notes-th-pitcher .pitcher-name {
  color: var(--text);
}

.notes-table th.away {
  text-align: left;
}

.notes-table th.home {
  text-align: left;
}

.notes-table td {
  border-bottom: 1px solid var(--line);
  background: white;
}

.notes-table td:first-child {
  border-right: 1px solid var(--line);
}

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

.notes-table td.away {
  padding-right: 10px;
}

.notes-table td.home {
  padding-left: 10px;
}

.notes-item {
  padding: 4px 0;
  line-height: 1.55;
  color: var(--ink);
}

.notes-item:first-child {
  padding-top: 0;
}

.notes-item:last-child {
  padding-bottom: 0;
}

.notes-item strong {
  color: var(--accent-dark);
}

/* All-time record row */
.notes-all-time td {
  background: #f0f8f6 !important;
  border-top: 2px solid var(--accent) !important;
  font-weight: var(--weight-medium);
  text-align: center;
}

.notes-all-time-cell {
  padding: 12px 14px !important;
}

/* ── Link styles ───────────────────────────────────────────── */

.game-logo-link,
.game-team-name-link,
.game-vs-time-link {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

.game-logo-link:hover,
.game-team-name-link:hover,
.game-vs-time-link:hover {
  color: var(--accent);
}

/* ── Report Panel Toolbar ──────────────────────────────────── */

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

.report-panel-title {
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  color: var(--ink);
  margin: 0;
}

/* ── Offense Report ─────────────────────────────────────────── */

.offense-report-header {
  margin-bottom: 16px;
}

.offense-report-meta {
  font-size: var(--text-sm);
  color: var(--muted);
  font-weight: var(--weight-medium);
}

.offense-game-block {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-bottom: 16px;
  animation: fadeSlideUp 0.35s ease both;
}

.offense-game-header {
  padding: 12px 16px;
  background: linear-gradient(135deg, #f8faf9 0%, #f0f5f3 100%);
  border-bottom: 1px solid var(--line);
}

.offense-game-matchup {
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  color: var(--ink);
}

.offense-teams-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.offense-team-col {
  padding: 12px 16px;
}

.offense-team-col:first-child {
  border-right: 1px solid var(--line);
}

.offense-team-label {
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  color: var(--ink);
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--accent-light);
}

.offense-no-players {
  font-size: var(--text-sm);
  color: var(--muted);
  font-style: italic;
  padding: 8px 0;
}

.offense-player-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 6px 8px;
  border-bottom: 1px solid #eef2f0;
  font-size: var(--text-sm);
  transition: background var(--transition-fast);
  border-radius: var(--radius-sm);
}

.offense-player-row:hover {
  background: #f0f4f1;
}

.offense-player-row:last-child {
  border-bottom: none;
}

.offense-player-headshot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: #eef2f0;
}

.offense-player-info {
  flex: 1;
  min-width: 0;
}

.offense-player-topline {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.offense-player-jersey {
  font-size: var(--text-xs);
  color: var(--muted);
  font-weight: var(--weight-medium);
}

.offense-player-name {
  font-weight: var(--weight-medium);
  color: var(--ink);
}

.offense-player-pos {
  font-size: var(--text-xs);
  color: var(--muted);
  background: #eef2f0;
  padding: 1px 6px;
  border-radius: 4px;
}

.offense-player-team {
  font-size: var(--text-xs);
  color: var(--muted);
  margin-top: 1px;
}

.offense-player-gems {
  display: flex;
  gap: 3px;
  flex-wrap: wrap;
  margin-top: 3px;
}

.offense-player-gems .gem-badge {
  font-size: 10px;
  padding: 1px 5px;
}

.offense-player-variants {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 2px;
  font-size: 10px;
  color: var(--muted);
}

.offense-variant-item {
  background: #f0f2ef;
  padding: 1px 5px;
  border-radius: 3px;
}

.offense-variant-val {
  color: var(--accent);
  font-weight: var(--weight-medium);
}

/* ── Single-list Offense Report Layout ───────────────────────── */

.offense-player-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.offense-game-header-sep {
  padding: 12px 16px;
  background: linear-gradient(135deg, #f8faf9 0%, #f0f5f3 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  animation: fadeSlideUp 0.35s ease both;
}

.offense-game-header-sep .offense-game-matchup {
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  color: var(--ink);
}

.offense-team-section {
  padding: 12px 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  animation: fadeSlideUp 0.35s ease both;
}

.offense-team-section .offense-team-label {
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  color: var(--ink);
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--accent-light);
}

.offense-team-section .offense-player-row {
  border-bottom: 1px solid #eef2f0;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
}

.offense-team-section .offense-player-row:last-child {
  border-bottom: none;
}

.offense-team-section .offense-player-row:hover {
  background: #f0f4f1;
}

/* ── Defense / Pitching Report ──────────────────────────────── */

.defense-report-header {
  margin-bottom: 16px;
}

.defense-report-meta {
  font-size: var(--text-sm);
  color: var(--muted);
  font-weight: var(--weight-medium);
}

.defense-game-block {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-bottom: 16px;
  animation: fadeSlideUp 0.35s ease both;
}

.defense-game-header {
  padding: 12px 16px;
  background: linear-gradient(135deg, #f8faf9 0%, #f0f5f3 100%);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.defense-game-matchup {
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  color: var(--ink);
}

.defense-date-nums {
  font-size: var(--text-xs);
  color: var(--muted);
  font-weight: var(--weight-medium);
}

.defense-no-pitchers {
  padding: 24px;
  text-align: center;
  color: var(--muted);
  font-style: italic;
  font-size: var(--text-sm);
}

.defense-pitcher-card {
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.defense-pitcher-card:last-child {
  border-bottom: none;
}

.defense-pitcher-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.defense-pitcher-jersey {
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  color: var(--muted);
}

.defense-pitcher-name {
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  color: var(--ink);
}

.defense-pitcher-team {
  font-size: var(--text-xs);
  color: var(--muted);
  background: #eef2f0;
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: auto;
}

.defense-pitcher-records {
  display: flex;
  gap: 16px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.defense-record {
  font-size: var(--text-sm);
  color: var(--muted);
}

.defense-record-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: var(--weight-medium);
}

.defense-record-link:hover {
  text-decoration: underline;
  color: var(--accent-dark);
}

.defense-season-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.defense-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #f5f7f6;
  border-radius: 6px;
  padding: 4px 10px;
}

.defense-stat-label {
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.defense-stat-value {
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  color: var(--ink);
}

.defense-section-title {
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  color: var(--accent-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 8px 0 4px;
}

.defense-matches {
  margin-bottom: 4px;
}

.defense-match-line {
  font-size: var(--text-xs);
  color: var(--muted);
  padding: 2px 0;
  font-family: monospace;
  line-height: 1.5;
}

.defense-summary {
  margin-top: 4px;
}

.defense-summary-line {
  font-size: var(--text-sm);
  color: var(--ink);
  padding: 2px 0;
  line-height: 1.5;
}

/* ── Side-by-side Defense/Pitching Report ────────────────────── */

.defense-game-header-full {
  padding: 12px 16px;
  background: linear-gradient(135deg, #f8faf9 0%, #f0f5f3 100%);
  border-bottom: 1px solid var(--line);
}

.defense-game-hero {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

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

.defense-team-block.away {
  justify-self: start;
}

.defense-team-block.home {
  justify-self: end;
}

.defense-team-name {
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  color: var(--ink);
}

.defense-team-abbr {
  font-size: var(--text-sm);
  color: var(--muted);
  font-weight: var(--weight-medium);
}

.defense-vs {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 100px;
}

.defense-vs-symbol {
  font-size: var(--text-sm);
  font-weight: var(--weight-black);
  color: var(--muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.defense-date-nums {
  font-size: var(--text-xs);
  color: var(--muted);
  font-weight: var(--weight-medium);
}

.defense-pitchers-side-by-side {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 16px;
}

.defense-pitcher-card-detailed {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.defense-pitcher-card-detailed.pitcher-away {
  border-left: 4px solid var(--accent);
}

.defense-pitcher-card-detailed.pitcher-home {
  border-right: 4px solid var(--accent);
}

.defense-pitcher-header-detailed {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}

.defense-pitcher-jersey-detailed {
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  color: var(--accent);
}

.defense-pitcher-name-detailed {
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  color: var(--ink);
  flex: 1;
}

.defense-pitcher-team-detailed {
  font-size: var(--text-sm);
  color: var(--muted);
  background: #eef2f0;
  padding: 2px 8px;
  border-radius: 4px;
}

.defense-pitcher-bbref {
  color: var(--accent);
  text-decoration: none;
  font-size: var(--text-base);
  padding: 4px 8px;
  border: 1px solid var(--accent);
  border-radius: 4px;
  transition: background var(--transition-fast);
}

.defense-pitcher-bbref:hover {
  background: var(--accent);
  color: white;
}

.defense-pitcher-records-detailed {
  display: flex;
  gap: 16px;
  margin-bottom: 12px;
  flex-wrap: wrap;
  font-size: var(--text-sm);
  color: var(--muted);
}

.defense-record-detailed {
  font-weight: var(--weight-medium);
}

.defense-record-link-detailed {
  color: var(--accent);
  text-decoration: none;
  font-weight: var(--weight-medium);
}

.defense-record-link-detailed:hover {
  text-decoration: underline;
}

.defense-season-stats-detailed {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  padding: 8px;
  background: #f5f7f6;
  border-radius: var(--radius-sm);
}

.defense-season-stats-detailed .defense-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: white;
  border-radius: 4px;
  padding: 4px 8px;
  min-width: 60px;
}

.defense-season-stats-detailed .defense-stat-label {
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.defense-season-stats-detailed .defense-stat-value {
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  color: var(--ink);
}

.defense-section-title {
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  color: var(--accent-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 12px 0 6px;
}

.defense-notes {
  margin-bottom: 8px;
}

.defense-note-line {
  font-size: var(--text-sm);
  color: var(--ink);
  padding: 4px 0;
  line-height: 1.5;
  border-bottom: 1px solid #eef2f0;
}

.defense-note-line:last-child {
  border-bottom: none;
}

.defense-matches {
  margin-bottom: 4px;
}

.defense-match-line {
  font-size: var(--text-xs);
  color: var(--muted);
  padding: 2px 0;
  font-family: monospace;
  line-height: 1.5;
}

.defense-pitcher-card-empty {
  background: var(--panel);
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.defense-pitcher-empty-label {
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.defense-pitcher-empty-msg {
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  color: var(--ink);
}

/* Responsive for defense side-by-side */
@media (max-width: 640px) {
  .defense-pitchers-side-by-side {
    grid-template-columns: 1fr;
  }
  
  .defense-game-hero {
    grid-template-columns: 1fr;
    gap: 8px;
    text-align: center;
  }
  
  .defense-team-block.away,
  .defense-team-block.home {
    justify-self: center;
  }
}

/* ── Responsive for new elements ───────────────────────────── */

@media (max-width: 640px) {
  .game-card-hero {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 16px;
  }

  .game-team-block.away,
  .game-team-block.home {
    justify-self: center;
  }

  .game-vs {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 0;
  }

  .game-vs-venue,
  .game-vs-network {
    font-size: var(--text-xs);
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .game-card-gems {
    grid-template-columns: 1fr;
    padding: 12px 16px;
  }

  .notes-table th,
  .notes-table td {
    padding: 8px 10px;
  }

  .notes-table td:first-child {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .notes-table td {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

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

  .notes-table td.away,
  .notes-table td.home {
    padding: 10px;
  }
}

.reports-timestamp-fixed {
  position: fixed;
  bottom: 12px;
  right: 16px;
  font-size: 0.7rem;
  color: var(--c-faint, #999);
  z-index: 100;
}

.offense-expand-btn {
  background: none;
  border: 1px solid var(--line, #ddd);
  border-radius: 4px;
  padding: 2px 8px;
  cursor: pointer;
  font-size: 0.75rem;
  color: var(--c-faint, #888);
  transition: all 0.15s;
  align-self: center;
  margin-left: auto;
  flex-shrink: 0;
}

.offense-expand-btn:hover {
  border-color: var(--accent, #2563eb);
  color: var(--accent, #2563eb);
}

.offense-player-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
}

.offense-profile-expanded {
  margin: 0 0 12px 0;
  padding-left: 50px;
}

.offense-profile-expanded.hidden {
  display: none;
}

.offense-profile-loading {
  padding: 12px;
  color: var(--c-faint, #888);
  font-style: italic;
}

.offense-profile-error {
  padding: 12px;
  color: #dc2626;
  font-size: 0.85rem;
}

.offense-profile-card {
  background: var(--card-bg, #fafafa);
  border: 1px solid var(--line, #e5e7eb);
  border-radius: 8px;
  padding: 16px;
}

.offense-profile-header {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.offense-profile-header .headshot {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
}

.offense-profile-info {
  flex: 1;
  min-width: 0;
}

.offense-profile-info .profile-name-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.offense-profile-info .profile-name-link {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent, #2563eb);
  text-decoration: none;
}

.offense-profile-info .jersey-number {
  font-size: 0.85rem;
  color: var(--c-faint, #888);
}

.offense-profile-info .profile-team {
  font-size: 0.85rem;
  color: var(--c-secondary, #666);
  margin-top: 2px;
}

.offense-profile-info .team-link {
  color: var(--accent, #2563eb);
  text-decoration: none;
}

.offense-profile-bio {
  font-size: 0.8rem;
  color: var(--c-secondary, #666);
  margin-top: 4px;
}

.offense-profile-section {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line, #e5e7eb);
}

.offense-profile-section-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--c-faint, #999);
  margin-bottom: 8px;
}

.offense-profile-gem-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.offense-profile-gem-label {
  font-size: 0.8rem;
  color: var(--c-secondary, #666);
  min-width: 80px;
}

.offense-profile-date {
  font-size: 0.85rem;
  color: var(--c-text, #333);
}

.offense-profile-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.offense-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.offense-stat-val {
  font-size: 1rem;
  font-weight: 600;
  color: var(--c-text, #333);
}

.offense-stat-lbl {
  font-size: 0.7rem;
  color: var(--c-faint, #999);
  text-transform: uppercase;
}

.offense-match {
  font-size: 0.8rem;
  color: var(--c-secondary, #666);
  padding: 4px 0;
}

/* ── Enhanced Offense Profile Cards ───────────────────────── */

.offense-team-players {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.offense-player-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  animation: fadeSlideUp 0.35s ease both;
}

.offense-player-loading {
  padding: 24px;
}

.offense-player-error {
  padding: 24px;
  color: #dc2626;
  font-size: var(--text-sm);
  text-align: center;
}

.offense-game-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.offense-game-venue {
  font-size: var(--text-xs);
  color: var(--muted);
  font-weight: var(--weight-medium);
}

/* ── Player Profile Card (inside offense) ─────────────── */

.player-profile-card {
  padding: 16px;
}

.player-profile-card .profile-header {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.player-profile-card .headshot {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  background: #eef2f0;
}

.player-profile-card .team-logo-inline {
  height: 20px;
  width: 20px;
  vertical-align: middle;
  margin-right: 4px;
}

.player-profile-card .profile-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.player-profile-card .profile-name-link {
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  color: var(--accent);
  text-decoration: none;
}

.player-profile-card .profile-name-link:hover {
  text-decoration: underline;
}

.player-profile-card .jersey-number {
  font-size: var(--text-sm);
  color: var(--muted);
  font-weight: var(--weight-bold);
}

.player-profile-card .profile-team {
  font-size: var(--text-sm);
  color: var(--muted);
  margin-top: 2px;
}

.player-profile-card .team-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: var(--weight-medium);
}

.player-profile-card .team-link:hover {
  text-decoration: underline;
}

.player-profile-card .profile-bio-line {
  font-size: var(--text-xs);
  color: var(--muted);
  margin-top: 4px;
}

.player-profile-card .profile-section {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.player-profile-card .profile-section-title {
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  color: var(--accent-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.player-profile-card .name-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.player-profile-card .name-label {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--muted);
  min-width: 80px;
}

.player-profile-card .name-gem-row {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.player-profile-card .mini-gem {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 4px;
  background: #f0f4f1;
}

.player-profile-card .profile-fact-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.player-profile-card .fact-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #f5f7f6;
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  min-width: 80px;
}

.player-profile-card .fact-label {
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.player-profile-card .fact-value {
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  color: var(--ink);
}

.player-profile-card .profile-stats-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.player-profile-card .stat-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #f5f7f6;
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  min-width: 70px;
}

.player-profile-card .stat-label {
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.player-profile-card .stat-value {
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  color: var(--ink);
}

.player-profile-card .profile-matches-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.player-profile-card .profile-match-item {
  font-size: var(--text-xs);
  color: var(--muted);
  padding: 3px 0;
  font-family: monospace;
  line-height: 1.5;
  border-bottom: 1px solid #eef2f0;
}

.player-profile-card .profile-match-item:last-child {
  border-bottom: none;
}

.player-profile-card .profile-match-more {
  font-size: var(--text-xs);
  color: var(--accent);
  font-weight: var(--weight-medium);
  padding: 4px 0;
}

/* ── Defense Game Card ─────────────────────────── */

.defense-game-card {
  margin: 0;
  border: none;
  border-radius: 0;
  box-shadow: none;
  border-bottom: 1px solid var(--line);
}

/* ── Defense Pitcher Visual Row ──────────────── */

.defense-pitcher-visual-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.defense-pitcher-headshot-wrap {
  flex-shrink: 0;
}

.defense-pitcher-headshot {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  background: #eef2f0;
}

.defense-pitcher-team-logo-wrap {
  flex-shrink: 0;
}

.defense-pitcher-team-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.defense-pitcher-header-detailed {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  flex: 1;
  min-width: 0;
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.defense-pitcher-name-link {
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  color: var(--accent);
  text-decoration: none;
  flex: 1;
}

.defense-pitcher-name-link:hover {
  text-decoration: underline;
}

.defense-pitcher-gems {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 8px;
  padding: 6px 8px;
  background: #f5f7f6;
  border-radius: var(--radius-sm);
}

.defense-gem-chip {
  font-size: 11px;
  padding: 2px 6px;
  background: white;
}

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

@media (max-width: 640px) {
  .defense-pitcher-visual-row {
    flex-direction: column;
    text-align: center;
  }
  
  .defense-pitcher-header-detailed {
    justify-content: center;
  }
  
  .player-profile-card .profile-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}


/* ── Team search results ─────────────────── */

.results-section-label {
  grid-column: 1 / -1;
  margin: 6px 2px 2px;
}

.team-result-card .team-result-logo {
  object-fit: contain;
  background: transparent;
  border-radius: 8px;
  padding: 2px;
}

/* ── Defense / Pitching report redesign ────── */

.defense-pitcher-side-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted, #68736b);
  margin-bottom: 8px;
}

.defense-notes-panel {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(15, 118, 110, 0.06);
  border: 1px solid rgba(15, 118, 110, 0.18);
}

.defense-notes-title {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0f766e;
  margin-bottom: 6px;
}

.defense-notes-list {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.defense-notes-list .defense-note-line {
  font-size: 0.86rem;
  line-height: 1.45;
}

.defense-matches-collapse {
  margin-top: 10px;
  border: 1px solid var(--border, #e3e7e1);
  border-radius: 10px;
  padding: 6px 12px;
  background: transparent;
}

.defense-matches-collapse[open] {
  padding-bottom: 10px;
}

.defense-matches-summary {
  cursor: pointer;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted, #68736b);
  padding: 4px 0;
  user-select: none;
}

.defense-matches-count {
  display: inline-block;
  min-width: 20px;
  text-align: center;
  padding: 1px 6px;
  margin-left: 6px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.12);
  color: #0f766e;
  font-size: 0.7rem;
}

.available-dates {
  margin-top: 8px;
}

.date-chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.date-chips-row .date-chip {
  display: inline-block;
  min-height: auto;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.08);
  color: #0f766e;
  border: 1px solid rgba(15, 118, 110, 0.2);
  cursor: pointer;
  transition: all 0.15s ease;
}

.date-chips-row .date-chip:hover {
  background: rgba(15, 118, 110, 0.15);
  border-color: rgba(15, 118, 110, 0.4);
}

.date-chips-row .date-chip.selected {
  background: #0f766e;
  color: white;
  border-color: #0f766e;
}

.date-chips-row .date-chip.today {
  border-color: #0f766e;
  font-weight: 700;
}

.user-display {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: rgba(15, 118, 110, 0.1);
  font-size: var(--text-sm);
}

.user-display .user-email {
  color: var(--text-primary);
  font-weight: 500;
}

.user-display .user-role {
  color: #0f766e;
  font-size: var(--text-xs);
  text-transform: uppercase;
  font-weight: 700;
  padding: 2px 6px;
  background: rgba(15, 118, 110, 0.15);
  border-radius: var(--radius-sm);
}

.user-display .logout-btn {
  background: transparent;
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.user-display .logout-btn:hover {
  background: rgba(239, 68, 68, 0.1);
  border-color: #ef4444;
}

.login-link {
  color: #0f766e;
  font-weight: 600;
  text-decoration: none;
  padding: 6px 14px;
  border: 1px solid #0f766e;
  border-radius: var(--radius-pill);
  transition: all var(--transition-fast);
}

.login-link:hover {
  background: #0f766e;
  color: white;
}

.gated-content {
  opacity: 0.5;
  pointer-events: none;
  position: relative;
}

.gated-content::after {
  content: 'Premium Feature';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(15, 118, 110, 0.9);
  color: white;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 600;
  white-space: nowrap;
}

/* ── Game Card Player List ────────────────────────────────────── */

.game-player-section {
  margin-top: var(--space-4);
  border-top: 1px solid var(--line);
  padding-top: var(--space-3);
}

.game-player-section-header {
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-2);
}

.game-player-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  max-height: 400px;
  overflow-y: auto;
}

.game-player-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: #f7f8f6;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
}

.game-player-item:hover {
  background: #edeef0;
}

.game-player-headshot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--line);
}

.game-player-info {
  flex: 1;
  min-width: 0;
}

.game-player-name-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.game-player-name {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--ink);
}

.game-player-gems {
  display: flex;
  gap: 2px;
  flex-wrap: wrap;
}

.game-player-gems .gem-badge {
  font-size: 10px;
  padding: 1px 4px;
}

.game-player-variant-gems {
  display: flex;
  gap: var(--space-2);
  margin-top: 2px;
  flex-wrap: wrap;
}

.game-player-variant {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 10px;
}

.game-player-variant-label {
  color: var(--muted);
  font-size: 9px;
  text-transform: uppercase;
}

.game-player-variant .gem-badge {
  font-size: 9px;
  padding: 1px 3px;
}

.game-player-subinfo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: 2px;
  flex-wrap: wrap;
}

.player-item-record {
  font-family: 'DM Mono', 'Courier New', monospace;
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  color: var(--accent);
  background: #e6f5f1;
  padding: 1px 6px;
  border-radius: 3px;
}

.player-item-record-gem {
  display: inline-flex;
  gap: 1px;
}

.player-item-record-gem .gem-badge {
  font-size: 9px;
  padding: 1px 3px;
}

.player-item-meta {
  font-size: 10px;
  color: var(--muted);
}

.player-item-car {
  font-family: 'DM Mono', 'Courier New', monospace;
  font-weight: var(--weight-bold);
  color: var(--accent);
  font-size: var(--text-xs);
}

.player-item-mfg {
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
}

.player-item-car-gem {
  display: inline-flex;
  gap: 1px;
}

.player-item-car-gem .gem-badge {
  font-size: 9px;
  padding: 1px 3px;
}

.player-item-score {
  font-weight: var(--weight-bold);
  color: var(--ink);
  font-size: var(--text-xs);
}

.player-item-pos {
  font-size: 10px;
  color: var(--muted);
}

.player-item-bio-info {
  display: flex;
  gap: var(--space-2);
  margin-top: 2px;
  flex-wrap: wrap;
}

.player-item-bio {
  font-size: 10px;
  color: var(--muted);
}

/* ============================================================
   UFC fight card (ESPN fightcenter-inspired, site palette)
   ============================================================ */
.fight-card-top {
  padding: 16px 20px 0;
  text-align: center;
}

.fight-event-name {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 20px;
  color: var(--accent-dark);
}

.fight-division-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 4px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.fight-segment {
  border: 1px solid var(--line);
  border-radius: var(--radius-pill, 999px);
  padding: 2px 10px;
}

.fight-hero {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  padding: 18px 20px;
  align-items: start;
  border-bottom: 1px solid var(--line);
}

.fight-fighter {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  border-top: 3px solid transparent;
  padding-top: 10px;
}

.fight-fighter.red  { border-top-color: #b3413b; }
.fight-fighter.blue { border-top-color: #3b5bb3; }

.fight-headshot {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  background: #eef1ec;
  border: 1px solid var(--line);
}

.fight-headshot-missing {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 36px;
  color: var(--muted);
}

.fight-name { display: flex; flex-direction: column; line-height: 1.15; }
.fight-name-first { font-size: 13px; color: var(--muted); }
.fight-name-last {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 24px;
  color: var(--accent-dark);
}

.fight-record { font-size: 13px; font-weight: 600; color: var(--muted); }

.fight-nickname {
  font-size: var(--text-sm);
  font-style: italic;
  color: var(--muted);
}

.fight-country {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-xs);
  color: var(--muted);
}

.fight-flag {
  height: 14px;
  width: 20px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: var(--shadow-sm);
}

.fight-team {
  font-size: var(--text-xs);
  color: var(--muted);
}

/* Shared fact-chip look for fight cards and event profile cards
   (mirrors .player-profile-card .fact-chip) */
.fight-detail-chips,
.profile-card-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 6px;
}

.profile-card-stats { justify-content: flex-start; padding: 8px 12px 0; }

.fight-detail-chips .fact-chip,
.profile-card-stats .fact-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #f5f7f6;
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  min-width: 60px;
}

.fight-detail-chips .fact-label,
.profile-card-stats .fact-label {
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.fight-detail-chips .fact-value,
.profile-card-stats .fact-value {
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  color: var(--ink);
}

.fight-gems { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; width: 100%; }
.fight-gem-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.fight-gem-label { font-size: 11px; color: var(--muted); white-space: nowrap; }

.fight-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding-top: 24px;
  min-width: 140px;
}
.fight-vs {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 22px;
  color: var(--accent);
}
.fight-time { font-size: 13px; font-weight: 600; }
.fight-venue { font-size: 12px; color: var(--muted); text-align: center; }

.fight-tape { padding: 10px 20px; border-bottom: 1px solid var(--line); }
.fight-tape-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  padding: 4px 0;
  font-size: 13px;
}
.fight-tape-a { text-align: right; }
.fight-tape-b { text-align: left; }
.fight-tape-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  align-self: center;
  min-width: 60px;
  text-align: center;
}
/* Age/date facts rendered as compact chips (Comment 21) */
.fight-bio-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.fight-tape-bio .fight-tape-a .fight-bio-chips { justify-content: flex-end; }
.fight-bio-chips .fact-chip {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  background: rgba(128, 128, 128, 0.12);
  border-radius: var(--radius-sm, 6px);
  padding: 2px 8px;
  line-height: 1.25;
}
.fight-bio-chips .fact-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.fight-bio-chips .fact-value {
  font-size: 12px;
  font-weight: 600;
}

@media (max-width: 640px) {
  .fight-hero { grid-template-columns: 1fr 1fr; }
  .fight-center { grid-column: 1 / -1; order: 3; padding-top: 4px; }
}

/* ============================================================
   NASCAR / Golf event cards + player profile grid
   ============================================================ */
.event-hero {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}

.event-kicker {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  font-weight: 600;
}

.event-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 24px;
  color: var(--accent-dark);
  margin: 2px 0 4px;
}

.event-meta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
}

.event-status { font-weight: 600; color: var(--accent); }

.event-gems { display: flex; flex-direction: column; gap: 4px; justify-content: center; }

.event-notes {
  padding: 10px 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
}

.event-player-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 12px;
  padding: 12px 20px 18px;
}

.profile-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.profile-card-head { display: flex; gap: 12px; align-items: center; }

.profile-card-headshot {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  background: #eef1ec;
  border: 1px solid var(--line);
  flex-shrink: 0;
}

.profile-card-headshot-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 22px;
  color: var(--muted);
}

.profile-card-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--accent-dark);
  text-decoration: none;
}
a.profile-card-name:hover, a.profile-card-name:focus-visible { text-decoration: underline; }

.profile-card-facts {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted);
}
.profile-fact-k {
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.06em;
  opacity: 0.8;
}

.profile-card-gems {
  border-top: 1px dashed var(--line);
  padding-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* ── UFC Event Report (reports-event.js) ─────────────────────────── */
.ufc-event-header .event-title { margin: 2px 0 6px; }
.event-dn-chips { margin-top: 8px; }
.ufc-fight-block { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.fighter-profiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (max-width: 760px) { .fighter-profiles { grid-template-columns: 1fr; } }
.fighter-profile-details {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card, rgba(255,255,255,0.02));
  overflow: hidden;
}
.fighter-profile-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
}
.fighter-profile-summary::-webkit-details-marker { display: none; }
.fighter-profile-summary .fighter-profile-headshot { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.fighter-profile-hint {
  margin-left: auto;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.fighter-profile-details[open] .fighter-profile-hint { opacity: 0.5; }
.fighter-profile-body { padding: 10px 12px 12px; border-top: 1px dashed var(--line); display: flex; flex-direction: column; gap: 10px; }
.fighter-profile-body .profile-section-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 6px;
}
.fighter-profile-body .profile-section--primary { border-left: 3px solid var(--accent, #7aa2ff); padding-left: 8px; }
.fighter-profile-body .profile-section--secondary { border-left: 3px solid var(--line); padding-left: 8px; }
.fighter-profile-body .notes-item { font-size: 13px; padding: 2px 0; }

/* ── NASCAR/Golf Player Report (reports-player.js) ─────────── */
.player-report-card { display: flex; flex-direction: column; gap: 8px; }
.player-report-card .profile-card { margin: 0; }
.player-dn-section {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
}
.player-dn-section.profile-section--primary { border-left: 3px solid var(--accent, #7aa2ff); }
.player-dn-section.profile-section--secondary { border-left: 3px solid var(--line); }
.player-dn-section .profile-section-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.75;
  margin-bottom: 6px;
}
.player-dn-section .notes-item { font-size: 13px; padding: 2px 0; }

/* ── Conjoined score strip (offense report, Phase 4) ── */
.offense-conjoined-strip {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  margin: 10px 0;
}
.conjoined-strip-title {
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  color: var(--ink);
  margin-bottom: 6px;
}
.conjoined-strip-sub {
  font-weight: var(--weight-medium);
  font-size: var(--text-xs);
  color: var(--muted);
  margin-left: 6px;
}
.conjoined-chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.conjoined-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 8px 2px 10px;
  font-size: var(--text-xs);
  color: var(--ink);
  cursor: help;
}
.conjoined-chip-score {
  font-weight: var(--weight-bold);
  color: var(--accent-dark);
}

/* ── Prime Number Indicators (F3) ── */
.prime-badge {
  display: inline-block;
  color: var(--color-success);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  margin-left: var(--space-2);
  white-space: nowrap;
}

.composite-badge {
  display: inline-block;
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  margin-left: var(--space-2);
  white-space: nowrap;
}

/* ── Birth Day Traits (F4) ── */
.birth-day-traits {
  border-left: 3px solid var(--color-date);
  padding-left: var(--space-3);
  margin-top: var(--space-3);
  padding: var(--space-3);
}

.birth-day-traits h4 {
  margin: 0 0 var(--space-2) 0;
  font-size: var(--text-md);
  color: var(--ink);
}

.birth-day-traits p {
  margin: var(--space-1) 0;
  font-size: var(--text-sm);
  color: var(--muted);
}

/* ── Consolidated Add Filter (F5) ── */
.filter-bar {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

/* "+ Add Filter": dashed drop-zone-style box under the filter rows. */
.add-filter-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  width: 100%;
  padding: var(--space-2) var(--space-4);
  background: transparent;
  color: var(--accent);
  border: 1.5px dashed var(--line);
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: var(--text-sm);
  cursor: pointer;
  transition: all var(--transition-base);
}

.add-filter-btn:hover {
  border-color: var(--accent);
  background: rgba(74, 158, 255, 0.06);
}

/* One filter row: fields on the left, round × remove button at line end. */
.adv-filter-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.adv-filter-fields {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: var(--space-2) var(--space-3);
  flex: 1;
  min-width: 0;
}

.adv-filter-fields > label {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.adv-filter-fields select,
.adv-filter-fields input[type="number"] {
  padding: var(--space-1) var(--space-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg, #fff);
  color: var(--ink);
  font-size: var(--text-sm);
  min-height: 32px;
}

.adv-filter-fields .adv-filter-target { max-width: 260px; }
.adv-filter-fields .adv-filter-value { width: 90px; }

.adv-filter-fields .adv-checkbox {
  flex-direction: row;
  align-items: center;
  gap: 6px;
  text-transform: none;
  letter-spacing: normal;
  font-size: var(--text-sm);
  font-weight: 600;
  align-self: center;
  margin-top: 14px;
}

.adv-filter-remove {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.adv-filter-remove:hover {
  color: #fff;
  background: #d64545;
  border-color: #d64545;
}

/* Bracketed condition group: a dashed-outline card holding one or more
   rows, with a visible "(" ... ")" bracket and its own inner AND/OR
   connector. Groups stack with a "join with previous group" connector. */
.adv-filter-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-3);
  background: rgba(74, 158, 255, 0.04);
  border: 1.5px dashed var(--accent);
  border-radius: var(--radius-md);
}

.adv-group-header:empty { display: none; }

.adv-group-join-label,
.adv-group-inner-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.adv-group-join-label select,
.adv-group-inner-label select {
  padding: var(--space-1) var(--space-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg, #fff);
  color: var(--ink);
  font-size: var(--text-sm);
  min-height: 30px;
  text-transform: none;
}

.adv-filter-group-bracket {
  display: flex;
  align-items: stretch;
  gap: var(--space-2);
}

.adv-group-bracket-mark {
  flex-shrink: 0;
  font-size: 1.8rem;
  font-weight: 300;
  color: var(--accent);
  line-height: 1;
  align-self: center;
  user-select: none;
}

.adv-group-rows {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  flex: 1;
  min-width: 0;
}

.adv-group-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
}

.adv-group-footer .add-filter-btn {
  width: auto;
  flex: 1;
  min-width: 160px;
  padding: var(--space-1) var(--space-3);
}

.adv-group-remove {
  padding: var(--space-1) var(--space-3);
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.adv-group-remove:hover {
  color: #fff;
  background: #d64545;
  border-color: #d64545;
}

.adv-search-hint {
  font-size: var(--text-sm);
  color: var(--muted);
  margin-top: var(--space-3);
  padding: var(--space-2) var(--space-3);
  background: #f8fdf8;
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
}

/* ── Live Homers Section ── */
.live-homers-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid var(--line);
}

.live-homers-section h3 {
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  margin-bottom: var(--space-4);
  color: var(--ink);
}

#liveHomerList {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: var(--space-4);
}

.homer-card {
  padding: 1rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  transition: all 200ms ease;
}

.homer-card.new-homer {
  animation: flash-new 1s ease;
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.05);
}

@keyframes flash-new {
  0% {
    background: rgba(16, 185, 129, 0.15);
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.3);
  }
  100% {
    background: var(--panel);
    box-shadow: none;
  }
}

.homer-player {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ink);
  margin-bottom: var(--space-2);
}

.homer-team {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: var(--space-1);
}

.homer-distance {
  font-weight: 600;
  color: #10b981;
  font-size: 1.05rem;
  margin-bottom: var(--space-2);
}

.homer-location {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: var(--space-2);
}

.homer-time {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: var(--space-3);
  padding-top: var(--space-2);
  border-top: 1px solid var(--line);
}

#liveStatus {
  font-size: 0.9rem;
  color: var(--muted);
  text-align: center;
  padding: var(--space-3);
  margin-top: var(--space-2);
}

/* ── Smart number-search result chips (2026-07-13) ─────────────── */

.num-lookup-group {
  margin-top: var(--space-3);
  padding: var(--space-3) var(--space-4);
}

.num-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: var(--space-2);
  overflow: visible;
}

.num-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #fffdf5, #fef7e6);
  border: 1px solid #f0e6d2;
  font-size: var(--text-sm);
  white-space: nowrap;
}

.num-chip small {
  color: var(--color-gematria);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: var(--weight-bold);
}

/* ── Design consistency pass (2026-07-13) ──────────────────────── */

/* Number display boxes size to content — never inner scrollbars. */
.result-gems,
.gem-grid,
.gem-chip,
.result-gem,
.date-grid {
  overflow: visible;
}

.gem-chip,
.result-gem {
  min-width: 0;
}

/* Prime badge: subtle fixed-size pill that never inflates its box. */
.prime-badge,
.composite-badge {
  font-size: 0.6rem;
  line-height: 1.2;
  padding: 1px 5px;
  border-radius: 999px;
  vertical-align: middle;
  margin-left: 4px;
}

.prime-badge {
  background: rgba(22, 163, 74, 0.1);
}

.composite-badge {
  background: rgba(104, 115, 107, 0.1);
}

/* ------------------------------------------------------------------ *
 * Nicer scrollbars, site-wide. Replaces the chunky default OS bars on
 * scrollable regions (report tables, grids, modals) with a slim,
 * theme-aware bar that only draws a subtle thumb. Firefox uses the
 * standardized scrollbar-* props; Chromium/WebKit uses ::-webkit-*.
 * ------------------------------------------------------------------ */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--muted);
  background-clip: content-box;
}
::-webkit-scrollbar-corner {
  background: transparent;
}

/* Prime / triangular corner badges on number values -- shown site-wide on
   every "number box" (gematria value boxes, date boxes, stat boxes). The
   icon (star/triangle) is intentionally larger than the index digit next
   to it, e.g. bigger-star + "9" for the 9th prime (23), triangle + "3"
   for the 3rd triangular (15). */
.num-badge {
  font-size: 0.68em;
  font-weight: 700;
  margin-left: 3px;
  vertical-align: super;
  opacity: 0.9;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 1px;
}
.num-badge-icon {
  font-size: 2em;
  line-height: 1;
}
.num-badge-prime { color: var(--accent, #b0413e); }
.num-badge-prime .num-badge-icon { color: #d4af00; text-shadow: 0 0 1px rgba(0,0,0,0.3); }
.num-badge-tri { color: #2e6f9e; }
.num-badge-tri .num-badge-icon { color: #2e6f9e; }

/* Pick grading banner on game reports */
.grade-banner { margin-bottom: 1rem; }
.grade-banner-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.grade-record { font-weight: 700; }
.grade-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.grade-chip { font-size: 0.8rem; padding: 3px 8px; border-radius: 999px; border: 1px solid var(--line); }
.grade-win { background: #e4f2e4; color: #1e6b2e; border-color: #bcd9bc; }
.grade-loss { background: #f7e3e2; color: #93312c; border-color: #e3bdba; }
.grade-pending { background: var(--panel, #f4f4f2); color: var(--muted, #777); }

/* City profile section (team page) */
.city-profile .team-info-grid { margin-bottom: 12px; }
.city-profile .key-events-grid { margin-bottom: 12px; }
.city-profile-subhead { margin: 14px 0 8px; font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted, #777); }
