/* racing hub: dark pit-wall look, black, white and one red, with each
   series' own colour as an accent (--c) and class colours (--k). */
:root {
  color-scheme: dark;
  --bg: #0a0a0b;
  --surface: #131316;
  --raised: #1b1b1f;
  --line: #2a2a30;
  --text: #f3f3f4;
  --muted: #a3a3ab;
  --red: #e10600;
  --green: #31d46f;
  --display: 'Titillium Web', 'Segoe UI', 'Helvetica Neue', system-ui, sans-serif;
  --radius: 6px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
a:hover { color: #fff; }
h1, h2, h3 { font-family: var(--display); letter-spacing: 0.01em; line-height: 1.15; }
h2 { font-size: 1.05rem; text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 12px; }
.muted { color: var(--muted); }
.small { font-size: 0.82rem; }
.eyebrow {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
ul, ol { list-style: none; margin: 0; padding: 0; }

main { max-width: 1240px; margin: 0 auto; padding: 0 16px 56px; }
section { margin-top: 32px; }
.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-title::after { content: ''; flex: 1; height: 1px; background: var(--line); }

/* ---------- header */
.top { background: #000; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.top-inner {
  max-width: 1240px; margin: 0 auto; padding: 10px 16px;
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 800; font-size: 1.25rem;
  text-transform: uppercase; letter-spacing: 0.04em; text-decoration: none;
}
.brand small { color: var(--muted); font-size: 0.7rem; letter-spacing: 0.14em; font-weight: 600; }
.brand-mark {
  width: 26px; height: 18px;
  background:
    linear-gradient(45deg, #fff 25%, transparent 25%, transparent 75%, #fff 75%) 0 0 / 9px 9px,
    linear-gradient(45deg, #fff 25%, #000 25%, #000 75%, #fff 75%) 4.5px 4.5px / 9px 9px;
  border-right: 4px solid var(--red);
}
.main-nav { display: flex; gap: 4px; margin-left: auto; }
.main-nav a {
  padding: 6px 12px; border-radius: var(--radius); text-decoration: none;
  font-weight: 600; font-size: 0.9rem; color: var(--muted);
}
.main-nav a:hover, .main-nav a[aria-current] { color: #fff; background: var(--raised); }
.main-nav a[aria-current] { box-shadow: inset 0 -2px 0 var(--red); }
.series-nav {
  max-width: 1240px; margin: 0 auto; padding: 0 16px 10px;
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
}
.series-pill {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  padding: 4px 10px 4px 4px; border-radius: 99px;
  background: var(--surface); border: 1px solid var(--line);
  text-decoration: none; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em;
  box-shadow: inset 3px 0 0 var(--c);
}
.series-pill:hover { border-color: var(--c); }
.series-pill .plate { height: 22px; width: 40px; border-radius: 99px; padding: 2px 5px; }

/* Logos sit on a light plate: they're made for white pages. */
.plate {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  background: #f4f4f5; border-radius: 4px; padding: 3px 6px;
  height: 28px; width: 56px;
}
.plate img { max-height: 100%; max-width: 100%; object-fit: contain; }
.plate-sm { height: 22px; width: 38px; padding: 2px 4px; }
.plate-lg { height: 40px; width: 84px; padding: 5px 8px; }
.plate-xl { height: 76px; width: 150px; padding: 10px 14px; border-radius: 8px; }

/* ---------- buttons, flags, tags */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.28); background: rgba(0,0,0,0.35);
  text-decoration: none; font-weight: 700; font-size: 0.85rem; letter-spacing: 0.02em;
  backdrop-filter: blur(4px);
}
.btn:hover { border-color: #fff; }
.btn-red { background: var(--red); border-color: var(--red); color: #fff; }
.btn-red:hover { background: #ff1a14; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; }
.flag {
  display: inline-block; padding: 1px 7px; border-radius: 3px;
  background: var(--red); color: #fff;
  font-family: var(--display); font-weight: 800; font-size: 0.7rem; letter-spacing: 0.12em;
}
.pulse { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(225,6,0,0); opacity: 0.85; } 0% { box-shadow: 0 0 0 0 rgba(225,6,0,0.6); } }
.tag {
  display: inline-block; padding: 0 6px; border-radius: 3px;
  background: var(--c, var(--red)); color: #fff;
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.06em; text-decoration: none;
  text-shadow: 0 1px 1px rgba(0,0,0,0.4);
}
.carno {
  display: inline-block; min-width: 2.6em; text-align: center;
  padding: 0 5px; border-radius: 3px;
  background: var(--k, var(--c, #444)); color: #fff;
  font-family: var(--display); font-weight: 800; font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
}
.watch {
  display: inline-block; padding: 1px 8px; border-radius: 99px;
  background: rgba(225,6,0,0.15); color: #ff6b66; border: 1px solid rgba(225,6,0,0.45);
  font-size: 0.75rem; font-weight: 700; text-decoration: none; white-space: nowrap;
}
.watch:hover { background: var(--red); color: #fff; }
.link { font-size: 0.8rem; color: var(--muted); }

/* ---------- hero / banner */
.hero, .banner {
  position: relative; overflow: hidden; border-radius: 0 0 var(--radius) var(--radius);
  margin: 0 -16px; min-height: 380px; display: flex; align-items: flex-end;
  background: radial-gradient(120% 140% at 85% 0%, color-mix(in srgb, var(--c) 55%, #000) 0%, #000 70%);
  border-bottom: 4px solid var(--c);
}
.banner { min-height: 280px; margin-top: 0; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.72; }
.hero-shade {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.92) 8%, rgba(0,0,0,0.35) 55%, rgba(0,0,0,0.15)),
              linear-gradient(90deg, rgba(0,0,0,0.75), transparent 70%);
}
.hero-body, .banner-body { position: relative; padding: 32px; max-width: 760px; }
.banner-body { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; max-width: none; }
.banner h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); margin: 0; text-transform: uppercase; }
.hero-series { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 700; margin-bottom: 18px; }
.hero-title { font-size: clamp(2rem, 6vw, 3.6rem); margin: 6px 0; text-transform: uppercase; font-weight: 800; }
.hero-meta { margin: 0; color: #d9d9de; font-size: 1.05rem; }
.countdown-box {
  display: inline-flex; flex-direction: column; margin-top: 18px;
  padding: 10px 16px; border-left: 4px solid var(--red); background: rgba(0,0,0,0.55);
}
.cd-label { font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; }
.countdown-box .cd { font-family: var(--display); font-size: 2rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.cd-live { color: var(--red); }
.stats { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 8px 0 0; color: #d9d9de; }
.stats .cd { font-variant-numeric: tabular-nums; color: #fff; font-weight: 700; }

.subnav {
  position: sticky; top: 92px; z-index: 5;
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px;
  padding: 10px 0; background: var(--bg); border-bottom: 1px solid var(--line);
}
.subnav a { text-decoration: none; font-weight: 700; text-transform: uppercase; font-size: 0.82rem; letter-spacing: 0.08em; }
.subnav a:hover { color: var(--red); }
.subnav span { margin-left: auto; }

/* ---------- panels */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.hub-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 18px; margin-top: 24px; }
.hub-grid > section, .hub-grid > aside { margin-top: 0; }
@media (max-width: 860px) { .hub-grid { grid-template-columns: 1fr; } }
.more { display: inline-block; margin-top: 14px; font-weight: 700; font-size: 0.85rem; text-decoration: none; color: var(--red); }

/* This week: a vertical timeline. */
.day { font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; margin: 18px 0 6px; }
.day:first-of-type { margin-top: 0; }
.timeline li {
  position: relative; display: grid; grid-template-columns: 3.4em 14px 1fr; gap: 10px; align-items: start;
  padding: 7px 0;
}
.timeline .time { font-variant-numeric: tabular-nums; color: var(--muted); font-weight: 600; padding-top: 1px; }
.timeline .dot { width: 10px; height: 10px; margin-top: 6px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 25%, transparent); }
.timeline li:not(:last-child) .dot::after { content: ''; position: absolute; left: calc(3.4em + 14px); top: 24px; bottom: -6px; width: 2px; background: var(--line); }
.timeline .what { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; }
.timeline .ev { text-decoration: none; font-size: 0.88rem; }
.timeline .links { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.timeline li.k-race strong { color: #fff; font-size: 1.02rem; }
.timeline li.k-race strong::before { content: '🏁 '; }
.timeline li.past { opacity: 0.45; }
.timeline li.live { background: linear-gradient(90deg, rgba(225,6,0,0.18), transparent); border-radius: var(--radius); }

/* Streams */
.stream-list { display: flex; flex-direction: column; gap: 8px; }
.stream {
  display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; border-radius: var(--radius);
  background: var(--raised); border: 1px solid var(--line); text-decoration: none;
}
.stream:hover { border-color: var(--red); }
.live .stream { border-color: var(--red); background: linear-gradient(135deg, rgba(225,6,0,0.22), var(--raised) 60%); }
.stream .when { font-size: 0.75rem; color: var(--muted); font-weight: 700; }
.stitle { font-weight: 600; font-size: 0.88rem; line-height: 1.3; }
.sfoot { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }

/* Championship cards */
.champs { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.champ {
  display: flex; flex-direction: column; gap: 12px;
  background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--c);
  border-radius: var(--radius); padding: 14px; transition: transform 0.15s, border-color 0.15s;
}
.champ:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--c) 60%, var(--line)); }
.champ-head { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.champ-name { font-family: var(--display); font-weight: 800; text-transform: uppercase; line-height: 1.15; }
.progress { display: flex; gap: 3px; }
.progress span { flex: 1; height: 5px; border-radius: 2px; background: var(--line); }
.progress span.on { background: var(--c); }
.leaders li {
  display: grid; grid-template-columns: 1fr auto; grid-template-areas: "cls cls" "who pts";
  gap: 2px 8px; padding: 6px 0 6px 10px; border-left: 3px solid var(--k);
}
.leaders li + li { margin-top: 6px; }
.leaders .cls { grid-area: cls; font-size: 0.68rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; }
.leaders li { position: relative; }
.leaders .plate, .leaders .carno, .leaders .lname { grid-area: who; }
.leaders li { grid-template-columns: auto auto 1fr auto; grid-template-areas: "cls cls cls cls" "logo car who pts"; }
.leaders .plate { grid-area: logo; }
.leaders .carno { grid-area: car; align-self: center; }
.leaders .lname { grid-area: who; font-weight: 600; font-size: 0.9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; align-self: center; }
.leaders .pts { grid-area: pts; font-family: var(--display); font-weight: 800; align-self: center; }
.champ-next {
  display: grid; grid-template-columns: 96px 1fr; gap: 10px; align-items: center; margin-top: auto;
  padding: 8px; border-radius: var(--radius); background: var(--raised); text-decoration: none;
}
.champ-next img { width: 96px; height: 60px; object-fit: cover; border-radius: 4px; }
.champ-next:not(:has(img)) { grid-template-columns: 1fr; }
.cn-body { display: flex; flex-direction: column; line-height: 1.25; }
.champ-off { margin-top: auto; }

/* ---------- calendar */
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.cal-head h1 { margin: 0; font-size: 2rem; text-transform: uppercase; }
.cal-nav { display: flex; gap: 6px; }
.cal-nav .btn { background: var(--surface); }
.filters { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0; }
.filter {
  padding: 4px 12px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface);
  text-decoration: none; font-size: 0.78rem; font-weight: 700; box-shadow: inset 3px 0 0 var(--c, #fff);
}
.filter.on { background: var(--c); border-color: var(--c); color: #fff; }
.month { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.dow, .week-row { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.dow span { padding: 8px; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); background: #000; }
.cell { min-height: 112px; padding: 4px 0 6px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); background: var(--surface); }
.cell:first-child { border-left: 0; }
.cell.we { background: #17171b; }
.cell.out { background: #0e0e10; }
.cell.out .num { opacity: 0.4; }
.cell .num { display: inline-block; margin: 0 0 4px 6px; font-weight: 700; font-size: 0.82rem; color: var(--muted); }
.cell.today .num { background: var(--red); color: #fff; border-radius: 99px; padding: 0 7px; }
.bar {
  display: flex; align-items: center; gap: 4px; margin: 2px 4px; padding: 2px 6px;
  border-radius: 3px; background: var(--c); color: #fff; text-decoration: none;
  font-size: 0.72rem; line-height: 1.3; white-space: nowrap; overflow: hidden; min-height: 20px;
  text-shadow: 0 1px 1px rgba(0,0,0,0.35);
}
.bar span { overflow: hidden; text-overflow: ellipsis; opacity: 0.92; }
.bar.cl { margin-left: 0; border-top-left-radius: 0; border-bottom-left-radius: 0; }
.bar.cr { margin-right: 0; border-top-right-radius: 0; border-bottom-right-radius: 0; }
.bar .chk { font-style: normal; margin-left: auto; }
.bar:hover { filter: brightness(1.15); }
@media (max-width: 700px) {
  .cell { min-height: 64px; }
  .bar span { display: none; }
  .bar { font-size: 0.62rem; padding: 1px 3px; }
}

/* Year at a glance */
.gantt { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; overflow-x: auto; }
.g-months, .g-row { display: grid; grid-template-columns: 76px minmax(560px, 1fr); align-items: center; }
.g-months .g-track { display: grid; grid-template-columns: repeat(12, 1fr); }
.g-months .g-track span { font-size: 0.7rem; color: var(--muted); border-left: 1px solid var(--line); padding-left: 4px; }
.g-row { min-height: 28px; }
.g-label { font-size: 0.75rem; font-weight: 800; text-decoration: none; padding-left: 8px; border-left: 3px solid var(--c, #fff); }
.g-row .g-track {
  position: relative; height: 18px;
  background: repeating-linear-gradient(90deg, transparent 0 calc(100% / 12 - 1px), var(--line) calc(100% / 12 - 1px) calc(100% / 12));
}
.g-block { position: absolute; top: 2px; bottom: 2px; border-radius: 3px; background: var(--c); min-width: 5px; }
.g-block.past { opacity: 0.4; }
.g-block:hover { filter: brightness(1.3); outline: 1px solid #fff; }
.g-today { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--red); z-index: 1; }

/* Round cards (calendar agenda and series pages) */
.rounds, .round-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.round {
  display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); text-decoration: none; border-top: 3px solid var(--c);
}
.round.done { opacity: 0.6; }
.round-img, .rcard-img {
  position: relative; aspect-ratio: 16 / 9;
  background: radial-gradient(120% 120% at 80% 0%, color-mix(in srgb, var(--c) 45%, #000), #000);
}
.round-img img, .rcard-img img { width: 100%; height: 100%; object-fit: cover; }
.round-img .tag { position: absolute; top: 8px; left: 8px; }
.round-body, .rcard-body { display: flex; flex-direction: column; gap: 2px; padding: 12px; }
.round:hover { border-color: var(--c); }

.rcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; scroll-margin-top: 150px; }
.rcard h3 { margin: 2px 0; font-size: 1.15rem; text-transform: uppercase; }
.rcard .rno {
  position: absolute; left: 0; bottom: 0; padding: 4px 12px 2px;
  background: var(--c); color: #fff; font-family: var(--display); font-weight: 800; font-size: 1.1rem;
}
.rcard .st { position: absolute; top: 10px; right: 10px; }
.done-tag { background: rgba(0,0,0,0.6); border-radius: 99px; padding: 0 8px; font-weight: 800; color: var(--green); }
.rcard.s-done { opacity: 0.72; }
.rcard.s-done .rcard-img img { filter: grayscale(0.6); }
.rcard.s-next, .rcard.s-live { border-color: var(--c); box-shadow: 0 0 0 1px var(--c), 0 10px 30px -12px var(--c); }
.rcard summary { cursor: pointer; font-size: 0.82rem; font-weight: 700; color: var(--muted); margin-top: 8px; }
.sess li { display: flex; flex-wrap: wrap; gap: 2px 8px; align-items: baseline; padding: 5px 0; border-bottom: 1px solid var(--line); font-size: 0.85rem; }
.sess .time { color: var(--muted); min-width: 10.5em; font-variant-numeric: tabular-nums; }
.sess .what { flex: 1; }
.sess .k-race .what { font-weight: 800; }
.sess .past { opacity: 0.55; }
.sess .live { opacity: 1; color: #fff; }
.rcard .links { display: flex; gap: 14px; margin: 10px 0 0; }

/* ---------- standings */
.tabs > input { position: absolute; opacity: 0; pointer-events: none; }
.tab-labels { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: thin; }
.tab-labels label {
  flex: none; cursor: pointer; padding: 7px 14px; border-radius: var(--radius) var(--radius) 0 0;
  background: var(--surface); border: 1px solid var(--line); border-bottom: 3px solid var(--k);
  font-weight: 700; font-size: 0.82rem; color: var(--muted);
}
.tab-labels label:hover { color: #fff; }
.tab-panel { display: none; }
#t0:checked ~ .p0, #t1:checked ~ .p1, #t2:checked ~ .p2, #t3:checked ~ .p3, #t4:checked ~ .p4,
#t5:checked ~ .p5, #t6:checked ~ .p6, #t7:checked ~ .p7, #t8:checked ~ .p8, #t9:checked ~ .p9,
#t10:checked ~ .p10, #t11:checked ~ .p11 { display: block; }
#t0:checked ~ .tab-labels label[for=t0], #t1:checked ~ .tab-labels label[for=t1],
#t2:checked ~ .tab-labels label[for=t2], #t3:checked ~ .tab-labels label[for=t3],
#t4:checked ~ .tab-labels label[for=t4], #t5:checked ~ .tab-labels label[for=t5],
#t6:checked ~ .tab-labels label[for=t6], #t7:checked ~ .tab-labels label[for=t7],
#t8:checked ~ .tab-labels label[for=t8], #t9:checked ~ .tab-labels label[for=t9],
#t10:checked ~ .tab-labels label[for=t10], #t11:checked ~ .tab-labels label[for=t11] {
  background: var(--k); border-color: var(--k); color: #fff;
}
.tabs > input:focus-visible + * { outline: 2px solid #fff; }

.podium {
  display: grid; grid-template-columns: 1fr 1.15fr 1fr; grid-template-areas: "p2 p1 p3";
  gap: 12px; align-items: end; margin: 8px 0 18px;
}
.step {
  display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center;
  padding: 16px 10px; border-radius: var(--radius); background: var(--surface);
  border: 1px solid var(--line); border-top: 4px solid var(--k);
}
.step1 { grid-area: p1; padding-top: 28px; background: linear-gradient(180deg, color-mix(in srgb, var(--k) 30%, var(--surface)), var(--surface)); }
.step2 { grid-area: p2; }
.step3 { grid-area: p3; }
.ppos { font-family: var(--display); font-weight: 800; font-size: 2.2rem; line-height: 1; }
.step1 .ppos { font-size: 3rem; color: #ffd34d; }
.step2 .ppos { color: #d7d7de; }
.step3 .ppos { color: #d08c4f; }
.pnames { display: flex; flex-direction: column; font-weight: 700; line-height: 1.25; }
.ppts { font-family: var(--display); font-size: 1.3rem; font-weight: 800; }
.ppts small { color: var(--muted); font-size: 0.7rem; }
@media (max-width: 600px) {
  .podium { grid-template-columns: 1fr; grid-template-areas: "p1" "p2" "p3"; }
}

table.standings { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; }
.standings th { text-align: left; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); padding: 10px; background: #000; }
.standings td { padding: 7px 10px; border-top: 1px solid var(--line); vertical-align: middle; }
.standings tr:hover td { background: var(--raised); }
.standings .num { text-align: right; font-variant-numeric: tabular-nums; }
.standings .pos { font-family: var(--display); font-weight: 800; font-size: 1.05rem; width: 3em; }
.standings .lg { width: 52px; }
.standings .nm span { display: inline; }
.standings .nm span + span::before { content: ' · '; color: var(--muted); }
.standings tbody tr:nth-child(-n+3) .pos { color: var(--k); }
.ptscell { position: relative; width: 22%; min-width: 90px; }
.pbar { position: absolute; right: 0; top: 6px; bottom: 6px; background: color-mix(in srgb, var(--k) 30%, transparent); border-radius: 3px 0 0 3px; }
.ptscell b { position: relative; }
@media (max-width: 600px) {
  .standings .lg, .standings th:nth-child(2) { display: none; }
  .standings td { padding: 6px; }
}

footer { max-width: 1240px; margin: 0 auto; padding: 24px 16px 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.82rem; }
footer p { margin: 4px 0; }

/* Seasons on a series page */
.season-block { margin-bottom: 18px; }
.season-block > summary {
  display: flex; align-items: baseline; gap: 14px; cursor: pointer; list-style: none;
  padding: 10px 0; margin-bottom: 10px; border-bottom: 1px solid var(--line);
  font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em;
}
.season-block > summary::-webkit-details-marker { display: none; }
.season-block > summary::before { content: '▸'; color: var(--red); }
.season-block[open] > summary::before { content: '▾'; }

/* Season over */
.season-state {
  display: inline-block; margin: 0; padding: 2px 9px; border-radius: 99px; align-self: flex-start;
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--raised); color: var(--muted); border: 1px solid var(--line);
}
.season-state.concluded { background: rgba(49,212,111,0.12); color: var(--green); border-color: rgba(49,212,111,0.4); }
.banner .season-state { margin-bottom: 8px; background: rgba(0,0,0,0.55); }
.champion {
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  color: #1a1400; background: #ffd34d; padding: 2px 10px; border-radius: 99px;
}

/* Subscribe */
.sub-head h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); text-transform: uppercase; margin: 0 0 8px; }
.sub-head p { max-width: 720px; }
.feeds { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; margin-top: 20px; }
.feed { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--c); border-radius: var(--radius); padding: 14px; scroll-margin-top: 120px; }
.feed:target { box-shadow: 0 0 0 2px var(--c); }
.feed h2 { margin: 0; font-size: 0.95rem; }
.feed .actions { margin-top: 10px; }
button.btn { font: inherit; font-weight: 700; font-size: 0.85rem; color: inherit; cursor: pointer; }
.feed-url { width: 100%; margin-top: 10px; padding: 6px 8px; border-radius: 4px; border: 1px solid var(--line); background: #000; color: var(--muted); font: 0.75rem ui-monospace, monospace; }
.how { margin-top: 24px; }
code { font-size: 0.85em; background: var(--raised); padding: 0 4px; border-radius: 3px; }

/* Photo credits */
.credits { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.credits a { color: inherit; }

/* Watch: captures and the player */
.caps { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.cap { display: flex; align-items: center; gap: .75rem; justify-content: space-between; padding: .6rem .75rem; border: 1px solid var(--line, #2a2a2e); border-radius: 8px; }
.cap.live { border-color: var(--red, #e10600); }
.cap-main { display: grid; gap: .2rem; color: inherit; text-decoration: none; min-width: 0; }
.cap-main .flag { justify-self: start; }
.cap-title { font-weight: 600; overflow-wrap: anywhere; }
.cap form { margin: 0; flex: none; }
.start { display: flex; gap: .5rem; flex-wrap: wrap; }
.start input { flex: 1 1 18rem; min-width: 0; padding: .55rem .7rem; border-radius: 6px; border: 1px solid var(--line, #2a2a2e); background: transparent; color: inherit; font: inherit; }
.player-wrap { display: grid; gap: .75rem; }
.player-wrap video { width: 100%; max-height: 78vh; background: #000; border-radius: 8px; aspect-ratio: 16 / 9; }
.player-bar { display: flex; flex-wrap: wrap; gap: .75rem; align-items: flex-start; justify-content: space-between; }
.player-title { font-size: 1.15rem; margin: 0 0 .25rem; }
.player-actions { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.behind { font-variant-numeric: tabular-nums; color: var(--muted, #a1a1aa); min-width: 3.5rem; text-align: right; }
.feeds { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
