/* MotNas — MotoGP & F1 Championship Tracker */
/* Dark motorsport theme */

:root {
  --bg-base: #0a0a12;
  --bg-elevated: #12121e;
  --bg-card: #1a1a2e;
  --bg-card-hover: #222240;
  --border: #2a2a45;
  --border-light: #3a3a55;
  --text-primary: #f0f0f5;
  --text-secondary: #b0b0c5;
  --text-muted: #707090;
  --accent-motogp: #ff6600;
  --accent-f1: #e10600;
  --accent: var(--accent-motogp);
  --accent-glow: rgba(255, 102, 0, 0.15);
  --gold: #ffd700;
  --silver: #c0c0c0;
  --bronze: #cd7f32;
  --green: #00c853;
  --red: #ff3d00;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 4px 20px rgba(0,0,0,0.3);
  --transition: 0.2s ease;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'JetBrains Mono', monospace;
}

[data-sport="f1"] {
  --accent: var(--accent-f1);
  --accent-glow: rgba(225, 6, 0, 0.15);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--text-primary); }
img { max-width: 100%; height: auto; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }
.container-narrow { max-width: 780px; }
.section { padding: 3rem 0; }

/* ── Navbar ──────────────────────────────────────────────────── */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 10, 18, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: all var(--transition);
}
.navbar.scrolled { background: rgba(10, 10, 18, 0.95); box-shadow: var(--shadow); }
.nav-container {
  max-width: 1200px; margin: 0 auto; padding: 0 1.25rem;
  display: flex; align-items: center; height: 60px; gap: 1.5rem;
}
.nav-logo { font-weight: 800; font-size: 1.5rem; text-decoration: none; }
.logo-mot { color: var(--text-primary); }
.logo-nas { color: var(--accent); }

.sport-switcher { display: flex; gap: 0.25rem; background: var(--bg-elevated); border-radius: 8px; padding: 3px; }
.sport-btn {
  display: flex; align-items: center; gap: 0.35rem;
  padding: 0.35rem 0.75rem; border-radius: 6px;
  font-size: 0.8rem; font-weight: 600;
  color: var(--text-muted); text-decoration: none;
  transition: all var(--transition);
}
.sport-btn:hover { color: var(--text-primary); }
.sport-btn.active { background: var(--accent); color: #fff; }
.sport-btn.active:hover { color: #fff; }
.sport-icon { font-size: 1rem; }

.nav-links {
  display: flex; gap: 0.25rem; margin-left: auto;
}
.nav-links a {
  padding: 0.4rem 0.75rem; border-radius: var(--radius-sm);
  font-size: 0.85rem; font-weight: 500;
  color: var(--text-secondary); text-decoration: none;
  transition: all var(--transition);
}
.nav-links a:hover { color: var(--text-primary); background: var(--bg-card); }
.nav-links a.active { color: var(--accent); background: var(--accent-glow); }

.nav-toggle {
  display: none; flex-direction: column; gap: 4px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text-primary); border-radius: 2px; transition: all var(--transition); }
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none; position: absolute; top: 60px; left: 0; right: 0;
    flex-direction: column; background: var(--bg-elevated);
    border-bottom: 1px solid var(--border); padding: 0.5rem;
  }
  .nav-links.open { display: flex; }
  .sport-switcher { margin-left: auto; margin-right: 0.5rem; }
}

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
  padding: 5rem 0 4rem;
  background: linear-gradient(135deg, var(--bg-base) 0%, var(--bg-elevated) 50%, var(--bg-base) 100%);
  border-bottom: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -50%; right: -20%; width: 60%; height: 200%;
  background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; max-width: 700px; }
.hero-badge {
  display: inline-block; padding: 0.3rem 0.8rem; border-radius: 20px;
  background: var(--accent-glow); border: 1px solid var(--accent);
  color: var(--accent); font-size: 0.8rem; font-weight: 600;
  margin-bottom: 1rem; letter-spacing: 0.5px; text-transform: uppercase;
}
.hero h1 { font-size: 2.75rem; font-weight: 900; line-height: 1.1; margin-bottom: 1rem; letter-spacing: -0.5px; }
.hero p { font-size: 1.15rem; color: var(--text-secondary); margin-bottom: 2rem; }
.hero-stats { display: flex; gap: 2rem; }
.hero-stat { display: flex; flex-direction: column; }
.stat-num { font-size: 2rem; font-weight: 800; font-family: var(--mono); color: var(--accent); }
.stat-label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }

@media (max-width: 640px) {
  .hero { padding: 3rem 0 2.5rem; }
  .hero h1 { font-size: 1.75rem; }
  .hero-stats { gap: 1.25rem; }
  .stat-num { font-size: 1.5rem; }
}

/* ── Page Header ─────────────────────────────────────────────── */
.page-header {
  padding: 3rem 0 2rem;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}
.page-header h1 { font-size: 2rem; font-weight: 800; margin-bottom: 0.5rem; }
.page-header p { color: var(--text-secondary); }
.last-update { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.5rem; }

/* ── Cards ───────────────────────────────────────────────────── */
.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem; margin-bottom: 1.5rem;
}
.card-highlight { border-color: var(--accent); background: linear-gradient(135deg, var(--bg-card) 0%, var(--accent-glow) 100%); }
.card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; flex-wrap: wrap; gap: 0.5rem; }
.card-header h2 { font-size: 1.25rem; font-weight: 700; }
.card-header h3 { font-size: 1.1rem; font-weight: 700; }

.link-more { font-size: 0.8rem; color: var(--accent); font-weight: 500; }

/* ── Home Grid ───────────────────────────────────────────────── */
.home-grid { display: grid; grid-template-columns: 1fr 350px; gap: 1.5rem; }
@media (max-width: 960px) { .home-grid { grid-template-columns: 1fr; } }

/* ── Next Race (Enriched) ────────────────────────────────────── */
.next-race-enriched { display: flex; flex-direction: column; gap: 0.75rem; }
.next-race-top { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.next-race-info { flex: 1; min-width: 200px; }
.next-race-info h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.race-circuit { color: var(--text-secondary); font-size: 0.95rem; }
.race-date { color: var(--accent); font-weight: 600; font-size: 1.1rem; margin-top: 0.5rem; }
.race-location { color: var(--text-muted); font-size: 0.85rem; }
.next-race-circuit-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem; align-self: flex-start; }
.nrc-stat { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 6px; padding: 0.4rem 0.6rem; text-align: center; }
.nrc-val { display: block; font-weight: 700; font-family: var(--mono); font-size: 0.85rem; color: var(--text-primary); }
.nrc-lbl { display: block; font-size: 0.6rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.nrc-winner { grid-column: span 2; border-color: var(--accent-glow); }
.nrc-winner .nrc-val { color: var(--accent); }
.next-race-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.btn-sm { padding: 0.4rem 0.8rem; font-size: 0.8rem; border-radius: 6px; font-weight: 600; text-decoration: none; display: inline-block; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { opacity: 0.85; }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text-secondary); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* Next race watch/tickets collapsibles */
.next-race-watch, .next-race-tickets { border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
.nrw-toggle { padding: 0.5rem 0.75rem; cursor: pointer; font-weight: 600; font-size: 0.85rem; color: var(--text-secondary); list-style: none; }
.nrw-toggle::-webkit-details-marker { display: none; }
.nrw-toggle::before { content: '▸ '; }
details[open] .nrw-toggle::before { content: '▾ '; }
.nrw-channels { padding: 0.5rem 0.75rem; display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.nrw-group { display: flex; flex-wrap: wrap; gap: 0.3rem; align-items: center; }
.nrw-type { font-size: 0.6rem; font-weight: 700; padding: 2px 6px; border-radius: 3px; text-transform: uppercase; }
.nrw-free { background: var(--green); color: #000; }
.nrw-paid { background: var(--border); color: var(--text-secondary); }
.nrw-ch { font-size: 0.8rem; color: var(--text-primary); }
.nrw-ch small { color: var(--text-muted); font-size: 0.65rem; }
.nrw-more { font-size: 0.75rem; color: var(--accent); margin-left: auto; }
.nrt-list { padding: 0.25rem 0.75rem 0.5rem; }
.nrt-item { display: flex; gap: 0.5rem; align-items: center; padding: 0.35rem 0; border-bottom: 1px solid var(--border); text-decoration: none; color: var(--text-primary); font-size: 0.8rem; }
.nrt-item:last-child { border-bottom: none; }
.nrt-item:hover { color: var(--accent); }
.nrt-name { flex: 1; font-weight: 500; }
.nrt-date { color: var(--text-muted); font-size: 0.7rem; }
.nrt-price { color: var(--accent); font-weight: 700; font-family: var(--mono); font-size: 0.75rem; }
.race-countdown { display: flex; gap: 0.5rem; margin-top: 1rem; align-items: flex-end; }
.countdown-item { text-align: center; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 0.5rem; padding: 0.5rem 0.75rem; min-width: 3.5rem; }
.cd-num { display: block; font-size: 1.5rem; font-weight: 800; color: var(--accent); font-family: var(--mono); font-variant-numeric: tabular-nums; }
.cd-label { display: block; font-size: 0.65rem; text-transform: uppercase; color: var(--text-muted); letter-spacing: 0.1em; }
.countdown-ms { border-color: var(--accent-glow); }
.cd-num-ms { font-size: 1.1rem; color: var(--text-secondary); opacity: 0.7; }
.countdown-live { color: var(--accent); font-weight: 700; font-size: 1.2rem; animation: pulse 1.5s ease-in-out infinite; }
@media (max-width: 480px) {
  .race-countdown { gap: 0.3rem; }
  .countdown-item { padding: 0.4rem 0.5rem; min-width: 2.8rem; }
  .cd-num { font-size: 1.2rem; }
  .cd-num-ms { font-size: 0.9rem; }
}
.tz-note { color: var(--text-muted); font-size: 0.7rem; margin-top: 0.5rem; }
.schedule-local-date { display: block; font-size: 0.75rem; color: var(--text-muted); }

/* ── Badges ──────────────────────────────────────────────────── */
.badge {
  display: inline-block; padding: 0.2rem 0.6rem; border-radius: 4px;
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  background: var(--bg-elevated); color: var(--text-muted);
}
.badge-gold { background: var(--gold); color: #000; }
.badge-silver { background: var(--silver); color: #000; }
.badge-bronze { background: var(--bronze); color: #fff; }
.badge-live { background: var(--accent); color: #fff; }
.badge-sprint { background: #7c3aed; color: #fff; }
.badge-race { background: var(--accent); color: #fff; }
.sprint-row { background: rgba(124, 58, 237, 0.05); }
.badge-done { background: var(--green); color: #000; }
.badge-next { background: var(--accent); color: #fff; animation: pulse 2s infinite; }
.badge-upcoming { background: var(--bg-elevated); color: var(--text-muted); }
.fl-badge { background: #7c3aed; color: #fff; padding: 1px 5px; border-radius: 3px; font-size: 0.65rem; margin-left: 0.25rem; }

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.6; } }

/* ── Standings Mini (sidebar) — V2 with photos & flags ─────── */
.standings-mini { display: flex; flex-direction: column; gap: 0; }
.standing-row-v2 {
  display: grid; grid-template-columns: 22px 20px 28px 1fr auto;
  padding: 0.5rem 0; border-bottom: 1px solid var(--border);
  font-size: 0.8rem; align-items: center; gap: 0.35rem;
}
.standing-row-v2:last-child { border-bottom: none; }
.standing-top { border-left: 2px solid var(--team-color, var(--accent)); padding-left: 0.4rem; }
.sr-pos { font-weight: 800; font-family: var(--mono); color: var(--text-muted); text-align: center; font-size: 0.85rem; }
.standing-top .sr-pos { color: var(--accent); }
.sr-change { font-size: 0.6rem; text-align: center; }
.sr-photo { width: 28px; height: 28px; border-radius: 50%; overflow: hidden; background: var(--bg-elevated); }
.sr-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.sr-ph-placeholder { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--border); font-weight: 700; font-size: 0.7rem; color: var(--text-muted); }
.sr-info { display: flex; flex-direction: column; min-width: 0; }
.sr-name { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 0.8rem; }
.sr-meta { font-size: 0.6rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-team { margin-left: 0.25rem; }
.sr-pts { font-weight: 800; font-family: var(--mono); color: var(--accent); font-size: 0.85rem; text-align: right; }
.sr-gap { display: block; font-size: 0.55rem; color: var(--text-muted); font-weight: 500; }

/* ── Standings Table ─────────────────────────────────────────── */
.standings-table-wrap { overflow-x: auto; }
.standings-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.standings-table th {
  text-align: left; padding: 0.75rem; font-size: 0.75rem;
  text-transform: uppercase; letter-spacing: 0.5px;
  color: var(--text-muted); border-bottom: 2px solid var(--border);
}
.standings-table td { padding: 0.75rem; border-bottom: 1px solid var(--border); }
.standings-table tr:hover { background: var(--bg-card-hover); }
.standings-table .top-three { background: var(--accent-glow); }
.standings-table .dnf { opacity: 0.6; }
.standings-table .penalized td { position: relative; }
.standings-table .penalized .rider-name::after { content: '⚠'; margin-left: 0.3em; }
.standings-table .nc-header { background: var(--bg-elevated); }
.standings-table .nc-header td { font-size: 0.8rem; color: var(--text-muted); letter-spacing: 0.05em; padding: 0.3rem 0.5rem; }
.status-badge { display: inline-block; font-size: 0.6rem; padding: 1px 5px; border-radius: 3px; margin-left: 0.3rem; font-weight: 700; text-transform: uppercase; }
.status-badge.status-penalty { background: #b45309; color: #fff; }
.status-badge.status-dq, .status-badge.status-disqualified { background: #dc2626; color: #fff; }
.status-badge.status-dsq { background: #dc2626; color: #fff; }
.status-badge.status-retired { background: #6b7280; color: #fff; }
.rider-name { font-weight: 600; }
.team-name { color: var(--text-secondary); }
.pts-cell { font-family: var(--mono); font-weight: 700; }
.gap-cell { color: var(--text-muted); font-family: var(--mono); font-size: 0.85rem; }

/* ── Tabs ────────────────────────────────────────────────────── */
.tabs { display: flex; gap: 0.25rem; margin-bottom: 1.5rem; background: var(--bg-elevated); padding: 4px; border-radius: 8px; width: fit-content; }
.tab {
  padding: 0.5rem 1.25rem; border-radius: 6px; border: none; cursor: pointer;
  font-size: 0.85rem; font-weight: 600; font-family: var(--font);
  background: transparent; color: var(--text-muted); transition: all var(--transition);
}
.tab:hover { color: var(--text-primary); }
.tab.active { background: var(--accent); color: #fff; }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ── Riders Grid ─────────────────────────────────────────────── */
.riders-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.25rem; }
.rider-card {
  display: block; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  text-decoration: none; color: var(--text-primary);
  transition: all var(--transition);
}
.rider-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow); color: var(--text-primary); }
.rider-card-top { padding: 1rem 1rem 0.5rem; display: flex; justify-content: space-between; align-items: flex-start; }
.rider-number { font-size: 2rem; font-weight: 900; font-family: var(--mono); color: var(--text-muted); opacity: 0.5; }
.rider-photo { width: 70px; height: 70px; border-radius: 50%; overflow: hidden; background: var(--bg-elevated); }
.rider-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.rider-placeholder {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; font-weight: 800; color: var(--text-muted); background: var(--bg-elevated);
}
.rider-card-body { padding: 0 1rem 1rem; }
.rider-card-body h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.25rem; }
.rider-team { font-size: 0.8rem; font-weight: 600; }
.rider-manufacturer { font-size: 0.75rem; color: var(--text-muted); }
.rider-stats-mini { display: flex; gap: 0.75rem; margin-top: 0.5rem; font-size: 0.75rem; font-family: var(--mono); color: var(--text-secondary); }

/* ── Rider Detail ────────────────────────────────────────────── */
.rider-detail-header { display: flex; gap: 2rem; align-items: center; }
.rider-detail-photo { width: 120px; height: 120px; border-radius: 50%; overflow: hidden; background: var(--bg-card); flex-shrink: 0; }
.rider-detail-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.rider-placeholder-lg {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  font-size: 3rem; font-weight: 900; color: var(--text-muted); background: var(--bg-card);
}
.rider-number-lg { font-size: 0.85rem; color: var(--text-muted); font-family: var(--mono); }
.rider-detail-info h1 { font-size: 2rem; margin-bottom: 0.25rem; }
.rider-team-detail { font-weight: 600; font-size: 1.1rem; }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.stat-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.25rem; text-align: center;
}
.stat-card .stat-value { display: block; font-size: 2rem; font-weight: 800; font-family: var(--mono); color: var(--accent); }
.stat-card .stat-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); }

/* ── Teams Grid ──────────────────────────────────────────────── */
.teams-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.25rem; }
.team-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem;
  transition: all var(--transition);
}
.team-card:hover { border-color: var(--accent); }
.team-card-header { margin-bottom: 0.75rem; text-align: center; }
.team-bike-img { height: 60px; margin-bottom: 0.5rem; display: flex; align-items: center; justify-content: center; }
.team-bike-img img { max-height: 60px; max-width: 100%; object-fit: contain; filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3)); }
.team-card-header h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.25rem; }
.team-manufacturer { font-size: 0.8rem; color: var(--accent); font-weight: 600; }
.team-meta { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.75rem; }
.team-meta p { margin-bottom: 0.15rem; }
/* Team rider cards (clickable) */
.team-riders-list { display: flex; flex-direction: column; gap: 0.5rem; }
.team-rider-card {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.5rem; border-radius: var(--radius-sm);
  border: 1px solid var(--border); text-decoration: none; color: inherit;
  transition: all var(--transition);
}
.team-rider-card:hover { border-color: var(--accent); background: var(--bg-card-hover); color: var(--text-primary); }
.team-rider-photo { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: var(--bg-elevated); }
.team-rider-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.team-rider-info { flex: 1; display: flex; flex-direction: column; }
.team-rider-num { font-family: var(--mono); font-size: 0.7rem; color: var(--text-muted); }
.team-rider-name { font-weight: 600; font-size: 0.85rem; }
.team-rider-pts { font-family: var(--mono); color: var(--accent); font-weight: 700; font-size: 0.85rem; white-space: nowrap; }
.team-points { margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px solid var(--border); font-size: 0.9rem; color: var(--accent); }

/* ── Schedule ────────────────────────────────────────────────── */
.schedule-list { display: flex; flex-direction: column; gap: 0.5rem; }
.schedule-card {
  display: grid; grid-template-columns: 60px 1fr auto auto;
  align-items: start; gap: 1rem;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1rem 1.25rem;
  transition: all var(--transition);
}
.schedule-card:hover { border-color: var(--accent); }
.schedule-next { border-color: var(--accent); background: var(--accent-glow); }
.schedule-completed { opacity: 0.7; }
.schedule-round { text-align: center; }
.round-num { font-size: 1.1rem; font-weight: 800; font-family: var(--mono); color: var(--text-muted); }
.schedule-next .round-num { color: var(--accent); }
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-top: 4px; }
.status-dot.completed { background: var(--green); }
.status-dot.next { background: var(--accent); animation: pulse 2s infinite; }
.schedule-info h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.15rem; }
.schedule-circuit { font-size: 0.8rem; color: var(--text-secondary); }
.schedule-location { font-size: 0.75rem; color: var(--text-muted); }
.schedule-date { font-size: 0.85rem; color: var(--text-secondary); text-align: right; }
.schedule-date .badge { margin-top: 0.25rem; display: inline-block; }
.schedule-status { text-align: right; }

/* Session timetable within schedule card */
.schedule-sessions {
  grid-column: 1 / -1; border-top: 1px solid var(--border);
  padding: 0.75rem 0 0; margin-top: 0.5rem;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 0.25rem;
}
.session-row {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.35rem 0.5rem; border-radius: var(--radius-sm); font-size: 0.8rem;
}
.session-row:hover { background: var(--bg-card-hover); }
.session-highlight { background: var(--accent-glow); font-weight: 600; }
.session-highlight .session-type { color: var(--accent); }
.session-done { opacity: 0.6; }
.session-icon { font-size: 0.75rem; flex-shrink: 0; }
.session-type { min-width: 100px; color: var(--text-secondary); }
.session-time { font-family: var(--mono); font-size: 0.8rem; color: var(--text-primary); }
.session-local-time { font-family: var(--mono); font-size: 0.7rem; color: var(--text-muted); }
.badge-done-sm { font-size: 0.55rem; padding: 1px 4px; background: var(--green); color: #000; border-radius: 3px; margin-left: auto; }

@media (max-width: 640px) {
  .schedule-card { grid-template-columns: 50px 1fr; gap: 0.5rem; }
  .schedule-date, .schedule-status { grid-column: 2; }
  .schedule-sessions { grid-template-columns: 1fr; }
}

/* ── Standings Cards ─────────────────────────────────────────── */
.standings-cards { display: flex; flex-direction: column; gap: 0.5rem; }
.standing-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: all var(--transition);
}
.standing-card:hover { border-color: var(--accent); }
.standing-podium { border-left: 3px solid var(--team-color, var(--accent)); }

/* Main row (clickable to expand) */
.standing-main {
  display: grid; grid-template-columns: 60px 1fr 100px auto 80px 24px;
  align-items: center; gap: 0.75rem;
  padding: 0.75rem 1rem; cursor: pointer;
  user-select: none;
}
.standing-main:hover { background: var(--bg-card-hover); }

/* Constructor/team variant — no bike col separate */
.standing-constructor .standing-main {
  grid-template-columns: 60px 1fr auto 80px 24px;
}

.standing-pos-col { text-align: center; }
.pos-change { display: block; font-size: 0.65rem; font-weight: 700; margin-top: 2px; }
.pos-up { color: var(--green); }
.pos-down { color: var(--red); }
.pos-same { color: var(--text-muted); }
.pos-new { color: var(--accent); font-size: 0.55rem; }
.standing-rider-col { min-width: 0; }
.standing-rider-link { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; color: inherit; }
.standing-rider-link:hover { color: var(--accent); }
.standing-photo { width: 45px; height: 45px; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: var(--bg-elevated); }
.standing-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.standing-name-wrap { display: flex; flex-direction: column; min-width: 0; }
.standing-rider-name { font-weight: 700; font-size: 0.95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.standing-team-name { font-size: 0.75rem; color: var(--text-muted); }
.standing-bike-col { display: flex; justify-content: center; }
.standing-bike-img { max-height: 30px; max-width: 90px; object-fit: contain; filter: drop-shadow(0 1px 4px rgba(0,0,0,0.3)); }
.standing-pts-col { text-align: center; }
.standing-total-pts { font-family: var(--mono); font-size: 1.3rem; font-weight: 800; color: var(--accent); display: block; }
.standing-pts-breakdown { display: flex; gap: 0.4rem; justify-content: center; margin-top: 2px; }
.pts-sprint { font-size: 0.6rem; color: #7c3aed; font-family: var(--mono); font-weight: 600; }
.pts-race { font-size: 0.6rem; color: var(--accent); font-family: var(--mono); font-weight: 600; }
.standing-stats-col { text-align: right; display: flex; flex-direction: column; gap: 1px; }
.stat-mini { font-size: 0.7rem; color: var(--text-muted); font-family: var(--mono); }
.stat-gap { font-size: 0.7rem; color: var(--text-secondary); font-family: var(--mono); }

/* Constructor team col */
.standing-team-col { display: flex; align-items: center; gap: 0.75rem; min-width: 0; }
.constructor-bike-img { max-height: 36px; max-width: 120px; object-fit: contain; filter: drop-shadow(0 1px 4px rgba(0,0,0,0.3)); flex-shrink: 0; }

/* Expand/collapse indicator */
.expand-indicator {
  font-size: 1rem; color: var(--text-muted); transition: transform 0.2s;
  display: flex; align-items: center; justify-content: center;
}
.standing-card.expanded .expand-indicator { transform: rotate(180deg); }

/* Expandable content */
.standing-expand {
  max-height: 0; overflow: hidden;
  transition: max-height 0.3s ease-out;
  background: var(--bg-elevated);
  border-top: 1px solid transparent;
}
.standing-card.expanded .standing-expand {
  max-height: 800px; border-top-color: var(--border);
  transition: max-height 0.4s ease-in;
}

/* Race-by-race breakdown (rider expand) */
.race-breakdown { padding: 0.5rem 1rem 0.75rem; }
.race-breakdown-header {
  display: grid; grid-template-columns: 1fr 80px 80px 50px;
  gap: 0.5rem; padding: 0.35rem 0;
  font-size: 0.65rem; font-weight: 700; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border);
}
.race-breakdown-row {
  display: grid; grid-template-columns: 1fr 80px 80px 50px;
  gap: 0.5rem; padding: 0.35rem 0;
  font-size: 0.8rem; color: var(--text-secondary);
  border-bottom: 1px solid var(--border-light);
}
.race-breakdown-row:last-child { border-bottom: none; }
.race-breakdown-row.has-points { color: var(--text-primary); }
.rb-col-race { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rb-col-sprint, .rb-col-main { text-align: center; font-family: var(--mono); }
.rb-col-total { text-align: right; font-family: var(--mono); font-weight: 700; }
.rb-col-total.rb-scored { color: var(--accent); }
.rb-pos { font-size: 0.7rem; color: var(--text-muted); }
.rb-pts { font-weight: 700; }
.expand-empty { padding: 1rem; text-align: center; color: var(--text-muted); font-size: 0.85rem; }

/* Team/constructor driver cards (expand) */
.team-drivers-expand { padding: 0.5rem 1rem 0.75rem; display: flex; flex-direction: column; gap: 0.5rem; }
.team-driver-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.5rem 0.75rem; border-radius: 6px;
  background: var(--bg-card); border: 1px solid var(--border);
}
.team-driver-info { display: flex; align-items: center; gap: 0.6rem; }
.td-photo { width: 36px; height: 36px; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: var(--bg-base); }
.td-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.rider-placeholder-sm { width: 36px; height: 36px; border-radius: 50%; background: var(--border); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.9rem; color: var(--text-muted); }
.td-name-wrap { display: flex; flex-direction: column; }
.td-name { font-weight: 700; font-size: 0.85rem; text-decoration: none; color: var(--text-primary); }
.td-name:hover { color: var(--accent); }
.td-stats { font-size: 0.65rem; color: var(--text-muted); font-family: var(--mono); }
.td-pts { text-align: right; }
.td-pts-total { font-family: var(--mono); font-size: 1.1rem; font-weight: 800; color: var(--accent); display: block; }
.td-pts-detail { font-size: 0.6rem; color: var(--text-muted); font-family: var(--mono); }

@media (max-width: 768px) {
  .standing-main { grid-template-columns: 50px 1fr auto 60px 20px; }
  .standing-constructor .standing-main { grid-template-columns: 50px 1fr auto 20px; }
  .standing-bike-col { display: none; }
  .standing-stats-col { display: none; }
  .race-breakdown-header, .race-breakdown-row { grid-template-columns: 1fr 60px 60px 40px; }
  .constructor-bike-img { max-width: 80px; max-height: 28px; }
}

/* ── Results Tabs ────────────────────────────────────────────── */
.results-tabs { display: flex; gap: 0; border-bottom: 2px solid var(--border); margin-bottom: 1rem; padding: 0 1rem; }
.results-tab {
  padding: 0.6rem 1.25rem; font-size: 0.85rem; font-weight: 600;
  background: none; border: none; color: var(--text-muted);
  cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px;
  transition: all var(--transition);
}
.results-tab:hover { color: var(--text-primary); }
.results-tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.results-panel { display: none; padding: 0 1rem 1rem; }
.results-panel.active { display: block; }
.results-session-label { font-size: 0.85rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 0.75rem; }

/* ── Podium (enriched with photos & bikes) ──────────────────── */
.podium-section, .podium-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 1rem; }
.podium-card {
  text-align: center; padding: 1rem; border-radius: var(--radius);
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-top: 3px solid var(--team-color, var(--border));
  position: relative;
}
.podium-1 { border-top-color: var(--gold); background: rgba(255,215,0,0.05); }
.podium-2 { border-top-color: var(--silver); }
.podium-3 { border-top-color: var(--bronze); }
.podium-trophy { margin-bottom: 0.5rem; }
.podium-photo { width: 56px; height: 56px; border-radius: 50%; overflow: hidden; margin: 0 auto 0.4rem; background: var(--bg-base); border: 2px solid var(--border); }
.podium-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.podium-placeholder { width: 56px; height: 56px; border-radius: 50%; background: var(--border); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.2rem; color: var(--text-muted); }
.podium-name { font-weight: 700; font-size: 0.95rem; }
.podium-nat { font-size: 0.7rem; color: var(--text-muted); margin-top: 0.15rem; }
.podium-team { font-size: 0.75rem; margin-top: 0.15rem; }
.podium-bike { max-height: 28px; max-width: 100px; object-fit: contain; margin: 0.4rem auto; display: block; filter: drop-shadow(0 1px 3px rgba(0,0,0,0.3)); }
.podium-time { font-family: var(--mono); font-size: 0.75rem; color: var(--text-muted); }
.podium-pts { font-family: var(--mono); font-weight: 700; color: var(--accent); font-size: 0.9rem; }

/* Results rest (P4-P10) */
.results-rest { display: flex; flex-direction: column; gap: 0; }
.result-row-mini {
  display: grid; grid-template-columns: 30px 24px 1fr 20px auto;
  align-items: center; gap: 0.4rem; padding: 0.35rem 0;
  border-bottom: 1px solid var(--border); font-size: 0.8rem;
}
.result-row-mini:last-child { border-bottom: none; }
.rrm-pos { font-weight: 700; font-family: var(--mono); color: var(--text-muted); text-align: center; }
.rrm-photo { width: 24px; height: 24px; border-radius: 50%; overflow: hidden; }
.rrm-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.rrm-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rrm-flag { font-size: 0.75rem; }
.rrm-pts { font-weight: 700; font-family: var(--mono); color: var(--accent); font-size: 0.75rem; text-align: right; }

@media (max-width: 640px) { .podium-section, .podium-grid { grid-template-columns: 1fr; } }

/* ── Results Selector ────────────────────────────────────────── */
.results-selector { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.results-round-btn {
  display: flex; flex-direction: column; align-items: center;
  padding: 0.5rem 0.75rem; border-radius: var(--radius-sm);
  background: var(--bg-card); border: 1px solid var(--border);
  text-decoration: none; color: var(--text-secondary);
  font-size: 0.75rem; transition: all var(--transition); min-width: 60px;
}
.results-round-btn:hover { border-color: var(--accent); color: var(--text-primary); }
.results-round-btn.active { border-color: var(--accent); background: var(--accent-glow); color: var(--accent); }
.round-label { font-weight: 700; font-family: var(--mono); }
.round-flag { font-size: 1.25rem; margin: 0.15rem 0; }
.round-name { font-size: 0.65rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 70px; }

/* ── News ────────────────────────────────────────────────────── */
.news-grid, .news-grid-home { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.25rem; }
.news-card {
  display: flex; flex-direction: column;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  text-decoration: none; color: var(--text-primary);
  transition: all var(--transition);
}
.news-card:hover { border-color: var(--accent); transform: translateY(-2px); color: var(--text-primary); }
.news-card-featured { grid-column: 1 / -1; }
.news-card-featured .news-img { height: 300px; }
.news-img {
  height: 180px; background-size: cover; background-position: center;
  background-color: var(--bg-elevated);
}
.news-body { padding: 1rem; flex: 1; display: flex; flex-direction: column; }
.news-meta { display: flex; gap: 0.75rem; align-items: center; margin-bottom: 0.5rem; }
.news-category {
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.5px;
  color: var(--accent); font-weight: 600;
}
.news-body time { font-size: 0.75rem; color: var(--text-muted); }
.news-body h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.35rem; line-height: 1.3; }
.news-body p { font-size: 0.85rem; color: var(--text-secondary); flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-author { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.5rem; }

/* ── Article ─────────────────────────────────────────────────── */
.article-header { text-align: center; }
.article-meta-top { display: flex; gap: 1rem; justify-content: center; margin-bottom: 0.75rem; }
.article-summary { font-size: 1.15rem; color: var(--text-secondary); max-width: 600px; margin: 0 auto; }
.article-author { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.75rem; }
.article-hero-img { margin-bottom: 2rem; border-radius: var(--radius); overflow: hidden; }
.article-hero-img img { width: 100%; display: block; }
.article-content p { margin-bottom: 1.25rem; color: var(--text-secondary); line-height: 1.8; }
.article-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.tag { padding: 0.25rem 0.7rem; border-radius: 20px; background: var(--bg-elevated); font-size: 0.75rem; color: var(--text-muted); }

/* ── Filter Bar ──────────────────────────────────────────────── */
.filter-bar { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 1.5rem; }
.filter-btn {
  padding: 0.4rem 1rem; border-radius: 20px; border: 1px solid var(--border);
  background: transparent; color: var(--text-secondary); cursor: pointer;
  font-size: 0.8rem; font-weight: 500; font-family: var(--font);
  transition: all var(--transition);
}
.filter-btn:hover { border-color: var(--accent); color: var(--text-primary); }
.filter-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ── Upcoming sidebar ────────────────────────────────────────── */
.upcoming-races { display: flex; flex-direction: column; }
.upcoming-row {
  display: grid; grid-template-columns: 30px 24px 1fr auto;
  padding: 0.5rem 0; border-bottom: 1px solid var(--border);
  font-size: 0.8rem; align-items: center; gap: 0.35rem;
}
.upcoming-row:last-child { border-bottom: none; }
.upcoming-round { font-family: var(--mono); font-weight: 600; color: var(--text-muted); }
.upcoming-name { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.upcoming-date { font-size: 0.75rem; color: var(--text-muted); white-space: nowrap; }

/* ── Empty State ─────────────────────────────────────────────── */
.empty-state {
  text-align: center; padding: 3rem 1rem;
  color: var(--text-muted);
}
.empty-state h3 { color: var(--text-secondary); margin-bottom: 0.5rem; }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-block; padding: 0.6rem 1.5rem; border-radius: var(--radius-sm);
  background: var(--accent); color: #fff; font-weight: 600; font-size: 0.9rem;
  text-decoration: none; transition: all var(--transition);
}
.btn:hover { opacity: 0.9; transform: translateY(-1px); color: #fff; }
.btn-secondary { background: var(--bg-card); border: 1px solid var(--border); color: var(--text-primary); }
.btn-secondary:hover { border-color: var(--accent); color: var(--text-primary); }

.back-link { margin-top: 2rem; }
.back-link a { font-size: 0.9rem; color: var(--accent); }

/* ── Footer ──────────────────────────────────────────────────── */
.footer {
  background: var(--bg-elevated); border-top: 1px solid var(--border);
  padding: 3rem 0 1.5rem; margin-top: 2rem;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.footer-brand p { color: var(--text-muted); font-size: 0.85rem; margin-top: 0.75rem; max-width: 280px; }
.footer-links h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-bottom: 0.75rem; }
.footer-links a { display: block; color: var(--text-secondary); font-size: 0.85rem; padding: 0.2rem 0; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 1.5rem; text-align: center; }
.footer-bottom p { font-size: 0.75rem; color: var(--text-muted); }

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ── Race Weekend Header ────────────────────────────────────── */
.race-weekend-header {
  text-align: center; padding: 1.5rem 0; margin-bottom: 1rem;
}
.race-weekend-header h2 { font-size: 1.5rem; margin-bottom: 0.25rem; }
.race-weekend-header .race-info { color: var(--text-muted); font-size: 0.85rem; }

/* ── Pole Position Highlight ────────────────────────────────── */
.pole-highlight {
  display: flex; align-items: center; gap: 1rem;
  background: linear-gradient(135deg, #2a1a4e 0%, #1a1a2e 100%);
  border: 1px solid #6c3bd5; border-radius: var(--radius);
  padding: 1rem 1.25rem; margin-bottom: 1.25rem;
}
.pole-badge {
  background: #6c3bd5; color: #fff; font-weight: 700; font-size: 0.7rem;
  padding: 0.3rem 0.6rem; border-radius: 4px; letter-spacing: 1px; white-space: nowrap;
}
.pole-badge-sm {
  background: #6c3bd5; color: #fff; font-weight: 700; font-size: 0.6rem;
  padding: 0.15rem 0.35rem; border-radius: 3px; margin-left: 0.35rem; vertical-align: middle;
}
.pole-info { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; align-items: center; }
.pole-name { font-size: 1.1rem; font-weight: 700; color: var(--text-primary); }
.pole-team { color: var(--text-muted); font-size: 0.85rem; }
.pole-time { font-family: 'JetBrains Mono', monospace; font-size: 1rem; color: var(--accent); font-weight: 600; }

/* ── Qualifying Segments ────────────────────────────────────── */
.quali-segment-label {
  font-size: 0.8rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.5px; color: var(--accent); margin: 1rem 0 0.5rem;
  padding-bottom: 0.35rem; border-bottom: 1px solid var(--border);
}

/* ── Practice Sessions ──────────────────────────────────────── */
.practice-label {
  font-size: 0.8rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.5px; color: var(--text-muted); margin: 1.25rem 0 0.5rem;
  padding-bottom: 0.25rem; border-bottom: 1px solid var(--border);
}
.standings-table-compact td, .standings-table-compact th { padding: 0.35rem 0.6rem; font-size: 0.8rem; }

/* ── Circuit Info ────────────────────────────────────────────── */
.circuit-info {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1rem 1.25rem; margin-bottom: 1.25rem;
}
.circuit-info-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
}
.circuit-stat { display: flex; flex-direction: column; gap: 0.15rem; }
.circuit-stat-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); }
.circuit-stat-value { font-size: 0.9rem; font-weight: 600; color: var(--text-primary); }
.circuit-stat-winner .circuit-stat-value { color: var(--gold); }
.circuit-stat-record .circuit-stat-value { color: #ff6b9d; }
.circuit-stat-sub { font-size: 0.7rem; color: var(--text-muted); }
.schedule-winner { font-size: 0.75rem; color: var(--gold); margin-top: 0.2rem; }

/* ── Clickable Rider Links ──────────────────────────────────── */
.rider-link { color: var(--text-primary); text-decoration: none; border-bottom: 1px dotted var(--border-light); }
.rider-link:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* ── Where to Watch & Tickets ─────────────────────────────── */
.watch-tickets-row { display: grid; grid-template-columns: 1fr 300px; gap: 1rem; margin-bottom: 1.5rem; }
.watch-card .card-header, .ticket-card .card-header { padding: 0.75rem 1rem; }
.watch-card .card-header h3, .ticket-card .card-header h3 { font-size: 0.95rem; }
.watch-lists { padding: 0.75rem 1rem; }
.watch-group { margin-bottom: 0.75rem; }
.watch-group-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); margin-bottom: 0.4rem; }
.watch-item, .watch-item-sm { display: flex; align-items: center; gap: 0.5rem; padding: 0.3rem 0.5rem; border-radius: 4px; text-decoration: none; color: var(--text-primary); font-size: 0.8rem; transition: background 0.15s; }
.watch-item:hover, .watch-item-sm:hover { background: var(--bg-card-hover); }
.watch-region { font-size: 0.65rem; font-weight: 700; color: var(--text-muted); min-width: 60px; text-transform: uppercase; letter-spacing: 0.3px; }
.watch-name { font-weight: 600; }
.watch-note { font-size: 0.7rem; color: var(--text-muted); margin-left: auto; }
.watch-free .watch-name { color: #4ade80; }
.watch-paid .watch-name { color: var(--text-secondary); }

.ticket-card { display: flex; flex-direction: column; }
.ticket-body { padding: 1rem; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.75rem; flex: 1; justify-content: center; }
.ticket-body p { font-size: 0.85rem; color: var(--text-secondary); margin: 0; }
.btn-ticket { display: inline-block; padding: 0.6rem 1.5rem; background: var(--accent); color: #fff; border-radius: 6px; text-decoration: none; font-weight: 700; font-size: 0.9rem; transition: opacity 0.15s; }
.btn-ticket:hover { opacity: 0.85; }
.ticket-note { font-size: 0.7rem !important; color: var(--text-muted) !important; }
.ticket-listings { display: flex; flex-direction: column; gap: 0.25rem; width: 100%; text-align: left; }
.ticket-listing { display: flex; flex-direction: column; gap: 0.15rem; padding: 0.5rem 0.6rem; border-radius: 6px; text-decoration: none; color: var(--text-primary); border: 1px solid var(--border); transition: border-color 0.15s, background 0.15s; }
.ticket-listing:hover { border-color: var(--accent); background: var(--bg-card-hover); }
.ticket-name { font-size: 0.8rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ticket-meta { display: flex; gap: 0.5rem; font-size: 0.7rem; color: var(--text-muted); }
.ticket-price { font-size: 0.75rem; font-weight: 700; color: #4ade80; }

/* Schedule actions */
.schedule-actions { display: flex; gap: 0.5rem; padding: 0.5rem 1rem; border-top: 1px solid var(--border); }
.btn-sm { display: inline-block; padding: 0.3rem 0.75rem; border-radius: 4px; text-decoration: none; font-size: 0.75rem; font-weight: 600; }
.btn-ticket-sm { background: var(--accent); color: #fff; }
.btn-ticket-sm:hover { opacity: 0.85; }
.btn-results-sm { background: var(--bg-card-hover); color: var(--text-primary); border: 1px solid var(--border); }
.btn-results-sm:hover { border-color: var(--accent); }

/* Watch summary (schedule page collapsible) */
.watch-summary { margin-bottom: 1.5rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.watch-summary-toggle { padding: 0.75rem 1rem; cursor: pointer; font-weight: 600; font-size: 0.9rem; color: var(--text-primary); list-style: none; }
.watch-summary-toggle::-webkit-details-marker { display: none; }
.watch-summary-toggle::before { content: '▸ '; color: var(--accent); }
.watch-summary[open] .watch-summary-toggle::before { content: '▾ '; }
.watch-summary-body { padding: 0 1rem 1rem; }
.watch-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.watch-col h4 { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); margin-bottom: 0.4rem; }

@media (max-width: 768px) {
  .watch-tickets-row { grid-template-columns: 1fr; }
  .watch-cols { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .pole-highlight { flex-direction: column; text-align: center; }
  .pole-info { justify-content: center; }
  .circuit-info-grid { grid-template-columns: repeat(2, 1fr); }
}
