:root {
  color-scheme: dark;
  --bg: #07080b;
  --panel: #11141a;
  --panel-soft: #171b22;
  --ink: #f5f7fb;
  --muted: #a9b0bd;
  --line: rgba(255, 255, 255, 0.12);
  --red: #e10600;
  --cyan: #8bb6d8;
  --gold: #c9a24a;
  --green: #42d392;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: "Microsoft JhengHei", "Noto Sans TC", system-ui, sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

img {
  display: block;
  width: 100%;
}

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 66px;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 8, 11, 0.88);
  backdrop-filter: blur(18px);
}

.brand,
.top-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 100%;
}

.brand {
  text-decoration: none;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 30px;
  background: var(--red);
  color: #fff;
  font-weight: 900;
  transform: skew(-12deg);
}

.top-nav a {
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

.top-nav a:hover {
  color: var(--ink);
}

.hero {
  position: relative;
  min-height: 620px;
  display: grid;
  align-items: end;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.schedule-hero {
  position: relative;
  min-height: 520px;
  display: grid;
  align-items: end;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.schedule-hero img,
.schedule-hero-overlay {
  position: absolute;
  inset: 0;
  height: 100%;
}

.schedule-hero img {
  object-fit: cover;
}

.schedule-hero-overlay {
  background:
    linear-gradient(90deg, rgba(7, 8, 11, 0.92), rgba(7, 8, 11, 0.48)),
    linear-gradient(0deg, rgba(7, 8, 11, 0.94), rgba(7, 8, 11, 0.1));
}

.schedule-hero-content {
  position: relative;
  z-index: 2;
  max-width: 880px;
  padding: 0 28px 76px;
}

.schedule-hero-content h1 {
  margin: 0;
}

.schedule-hero-content p:not(.eyebrow) {
  max-width: 740px;
  color: #d9dee8;
  font-size: 18px;
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  filter: saturate(1.08) contrast(1.05);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(7, 8, 11, 0.94), rgba(7, 8, 11, 0.58) 48%, rgba(7, 8, 11, 0.2)),
    linear-gradient(0deg, rgba(7, 8, 11, 0.96), rgba(7, 8, 11, 0.06) 56%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  padding: 0 28px 112px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3,
p,
span {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 780px;
  font-size: clamp(44px, 8vw, 94px);
  line-height: 0.95;
}

.hero-copy {
  max-width: 720px;
  margin: 22px 0 0;
  color: #d9dee8;
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.primary-action,
.secondary-action {
  min-height: 46px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  text-decoration: none;
  font-weight: 800;
}

.primary-action {
  background: var(--red);
  border-color: var(--red);
}

.secondary-action {
  background: rgba(255, 255, 255, 0.08);
}

.race-strip {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 22px;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--line);
}

.race-strip a {
  min-height: 56px;
  display: grid;
  place-items: center;
  padding: 12px;
  background: rgba(11, 13, 18, 0.84);
  color: #e7ebf3;
  font-size: 14px;
  text-align: center;
  text-decoration: none;
}

.race-strip a:hover {
  color: #fff;
  background: rgba(225, 6, 0, 0.36);
}

.ticker {
  display: flex;
  gap: 10px;
  max-width: 100%;
  overflow-x: auto;
  padding: 14px 28px;
  border-bottom: 1px solid var(--line);
  background: #0d1015;
}

.ticker span {
  flex: 0 0 auto;
  padding: 8px 14px;
  border: 1px solid var(--line);
  color: #dfe5ef;
  font-size: 14px;
}

.dashboard,
.article-reader,
.media-band,
.team-pulse,
.sources,
.publish,
.schedule-section,
.venue-section {
  padding: 78px 28px;
}

.schedule-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border-bottom: 1px solid var(--line);
  background: var(--line);
}

.schedule-summary article {
  min-height: 118px;
  display: grid;
  place-items: center;
  background: #0d1015;
  text-align: center;
}

.schedule-summary span {
  color: var(--gold);
  font-size: 42px;
  font-weight: 900;
  line-height: 1;
}

.schedule-summary p {
  margin: 6px 0 0;
  color: var(--muted);
  font-weight: 800;
}

.schedule-tabs {
  position: sticky;
  top: 66px;
  z-index: 15;
  display: flex;
  gap: 1px;
  padding: 14px 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 8, 11, 0.92);
  backdrop-filter: blur(18px);
}

.schedule-tab {
  min-height: 44px;
  padding: 8px 18px;
  border: 1px solid var(--line);
  background: #10141b;
  color: var(--muted);
  font-weight: 900;
  cursor: pointer;
}

.schedule-tab.active,
.schedule-tab:hover {
  border-color: rgba(225, 6, 0, 0.85);
  background: rgba(225, 6, 0, 0.22);
  color: #fff;
}

.schedule-section.compact {
  padding-bottom: 36px;
}

.schedule-panel {
  display: none;
}

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

.schedule-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
}

.round-index {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.round-index-link {
  min-height: 84px;
  display: grid;
  align-content: center;
  gap: 2px;
  padding: 12px;
  border: 1px solid var(--line);
  background: var(--panel);
  text-decoration: none;
}

.round-index-link span {
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
}

.round-index-link strong {
  line-height: 1.15;
}

.round-index-link small {
  color: var(--muted);
}

.round-index-link:hover {
  border-color: var(--red);
}

.round-index-link.completed {
  border-color: rgba(66, 211, 146, 0.34);
  background: linear-gradient(135deg, rgba(66, 211, 146, 0.18), var(--panel) 55%);
}

.round-index-link.next {
  border-color: rgba(244, 201, 93, 0.56);
  background: linear-gradient(135deg, rgba(244, 201, 93, 0.22), var(--panel) 55%);
}

.round-index-link.upcoming {
  opacity: 0.82;
}

.schedule-feature {
  background: #0b0e13;
  border-block: 1px solid var(--line);
}

.round-card-grid {
  display: grid;
  gap: 18px;
}

.round-card {
  display: grid;
  grid-template-columns: minmax(360px, 1.05fr) minmax(420px, 1.2fr);
  min-height: 430px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
  scroll-margin-top: 90px;
}

.round-card.completed {
  border-color: rgba(66, 211, 146, 0.34);
}

.round-card.next {
  border-color: rgba(244, 201, 93, 0.62);
  box-shadow: 0 0 0 1px rgba(244, 201, 93, 0.16), var(--shadow);
}

.round-image {
  position: relative;
  min-height: 430px;
  background: #f7f9fc;
  display: flex;
  align-items: center;
  justify-content: center;
}

.round-image img,
.round-image .track-map {
  height: 100%;
}

.round-image img {
  width: 100%;
  object-fit: contain;
  object-position: center;
}

.round-image .track-map {
  min-height: 100%;
}

.round-image .track-map svg {
  max-height: 100%;
}

.round-state-label {
  position: absolute;
  left: 16px;
  top: 16px;
  padding: 5px 10px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-weight: 900;
}

.round-card.completed .round-state-label,
.venue-card.completed .track-map-caption span {
  background: rgba(66, 211, 146, 0.22);
  color: #b8ffdf;
}

.round-card.next .round-state-label,
.venue-card.next .track-map-caption span {
  background: rgba(244, 201, 93, 0.22);
  color: #ffe29a;
}

.round-content {
  padding: 22px;
}

.round-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.round-card h3 {
  margin: 10px 0 0;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1;
}

.round-subtitle {
  margin: 8px 0 0;
  color: var(--muted);
}

.round-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin: 18px 0;
  background: var(--line);
  border: 1px solid var(--line);
}

.round-facts div {
  padding: 12px;
  background: #0d1015;
}

.round-facts dt {
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
}

.round-facts dd {
  margin: 4px 0 0;
  color: #fff;
  font-weight: 900;
}

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

.session-list div,
.session-list button,
.session-list a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
}

.session-list button,
.session-list a {
  width: 100%;
  color: inherit;
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.session-jump {
  position: relative;
  overflow: hidden;
}

.session-jump::after {
  content: "查看排名";
  flex: 0 0 auto;
  align-self: center;
  padding: 3px 7px;
  border: 1px solid rgba(62, 197, 255, 0.42);
  color: var(--cyan);
  font-size: 11px;
  font-weight: 900;
}

.session-jump:hover {
  border-color: rgba(62, 197, 255, 0.72);
  background: rgba(62, 197, 255, 0.08);
}

.session-list span {
  color: var(--muted);
}

.session-list strong {
  text-align: right;
}

.result-block {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.result-head,
.result-card-top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.result-head span,
.result-card-top span {
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
}

.result-head small,
.result-card-top small {
  color: var(--muted);
}

.result-head a {
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.result-head a:hover {
  color: #fff;
}

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

.driver-ranking li {
  display: grid;
  grid-template-columns: 34px minmax(130px, 1fr) minmax(90px, 0.7fr);
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

.rank-pos {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  background: rgba(244, 201, 93, 0.18);
  color: var(--gold);
  font-weight: 900;
}

.driver-ranking small {
  color: var(--muted);
  text-align: right;
}

.result-note {
  margin: 12px 0 0;
  color: #d5dbe7;
}

.result-full-link {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  margin-top: 14px;
  padding: 8px 12px;
  border: 1px solid rgba(62, 197, 255, 0.34);
  background: rgba(62, 197, 255, 0.08);
  color: #dff6ff;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.result-full-link:hover {
  border-color: rgba(62, 197, 255, 0.72);
  background: rgba(62, 197, 255, 0.14);
  color: #fff;
}

.result-detail {
  margin-top: 28px;
  scroll-margin-top: 130px;
}

.result-detail-card {
  overflow: hidden;
  border: 1px solid rgba(62, 197, 255, 0.28);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.result-detail-hero {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(360px, 1.25fr);
  gap: 1px;
  background: var(--line);
}

.result-detail-hero .track-map {
  min-height: 300px;
}

.result-detail-hero > div:not(.track-map) {
  display: grid;
  align-content: center;
  padding: 26px;
  background: #0d1015;
}

.result-detail-hero h3 {
  margin: 0;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.05;
}

.result-detail-hero p:not(.eyebrow) {
  margin: 12px 0 0;
  color: var(--muted);
}

.result-phase-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #10141b;
}

.result-phase-tabs button,
.result-phase-tabs a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.result-phase-tabs button.active,
.result-phase-tabs button:hover,
.result-phase-tabs a.active,
.result-phase-tabs a:hover {
  border-color: rgba(225, 6, 0, 0.85);
  background: rgba(225, 6, 0, 0.18);
  color: #fff;
}

.result-table-wrap {
  overflow-x: auto;
}

.result-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
}

.result-table th,
.result-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.result-table th {
  color: var(--cyan);
  background: #0b0e13;
  font-size: 13px;
  text-transform: uppercase;
}

.result-table td:first-child {
  width: 84px;
  color: var(--gold);
  font-weight: 900;
}

.result-table td:nth-child(2) {
  color: #fff;
  font-weight: 900;
}

.result-page-hero {
  display: grid;
  grid-template-columns: minmax(320px, 0.8fr) minmax(420px, 1.2fr);
  min-height: 430px;
  border-bottom: 1px solid var(--line);
  background: #0a0d12;
}

.result-page-hero-map .track-map {
  min-height: 100%;
}

.result-page-hero-copy {
  display: grid;
  align-content: center;
  padding: clamp(28px, 5vw, 70px);
}

.result-page-hero-copy h1 {
  margin: 0;
  font-size: clamp(44px, 7vw, 86px);
  line-height: 0.95;
}

.result-page-hero-copy > p:not(.eyebrow) {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 18px;
}

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

.result-page-stats span {
  padding: 7px 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.045);
  color: #eef3fb;
  font-size: 13px;
  font-weight: 900;
}

.result-page-shell {
  display: grid;
  grid-template-columns: minmax(240px, 0.32fr) minmax(0, 1fr);
  gap: 1px;
  padding: 1px;
  background: var(--line);
}

.result-page-side,
.result-page-main {
  background: #0d1015;
}

.result-page-side {
  padding: 22px;
}

.result-page-side label {
  display: block;
  margin-bottom: 8px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.result-page-side select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  background: #111821;
  color: #fff;
  font-weight: 900;
}

.result-page-meta dl {
  display: grid;
  gap: 1px;
  margin: 18px 0;
  background: var(--line);
  border: 1px solid var(--line);
}

.result-page-meta div {
  padding: 12px;
  background: #10141b;
}

.result-page-meta dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.result-page-meta dd {
  margin: 4px 0 0;
  color: #fff;
  font-weight: 900;
}

.back-to-schedule,
.result-table-title a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid rgba(244, 201, 93, 0.34);
  color: var(--gold);
  font-weight: 900;
  text-decoration: none;
}

.back-to-schedule:hover,
.result-table-title a:hover {
  border-color: var(--gold);
  color: #fff;
}

.result-table-panel {
  padding: 22px;
}

.result-table-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.result-table-title h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1;
}

.result-table-title p:not(.eyebrow) {
  max-width: 760px;
  margin: 8px 0 0;
  color: var(--muted);
}

.full-result-table {
  min-width: 760px;
}

.schedule-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  background: var(--panel);
}

.schedule-table th,
.schedule-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.schedule-table th {
  color: var(--cyan);
  background: #0d1015;
  font-size: 13px;
  text-transform: uppercase;
}

.schedule-table td:first-child {
  color: var(--gold);
  font-weight: 900;
}

.sprint-badge {
  display: inline-block;
  padding: 3px 8px;
  border: 1px solid rgba(66, 211, 146, 0.5);
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.normal-badge {
  display: inline-block;
  padding: 3px 8px;
  border: 1px solid rgba(244, 201, 93, 0.4);
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
}

.venue-section {
  background: #10141b;
  border-block: 1px solid var(--line);
}

.venue-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.venue-grid.detailed {
  grid-template-columns: repeat(2, 1fr);
}

.venue-card {
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
}

.venue-card.completed {
  border-color: rgba(66, 211, 146, 0.28);
}

.venue-card img {
  height: 230px;
  object-fit: contain;
  background: #f7f9fc;
}

.track-map {
  min-height: 320px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  align-content: stretch;
  gap: 14px;
  padding: 18px;
  overflow: hidden;
  color: #10141b;
  background:
    linear-gradient(rgba(12, 18, 28, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(12, 18, 28, 0.055) 1px, transparent 1px),
    linear-gradient(180deg, #f7f9fc, #e7ecf3);
  background-size: 24px 24px, 24px 24px, auto;
}

.track-map-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.track-map-header span,
.track-map-header a {
  width: fit-content;
  padding: 5px 9px;
  border: 1px solid rgba(12, 18, 28, 0.14);
  background: rgba(255, 255, 255, 0.72);
  color: #202733;
  font-size: 11px;
  font-weight: 950;
  text-decoration: none;
  text-transform: uppercase;
}

.track-map-header a {
  color: #c80c08;
}

.track-map-header a:hover {
  border-color: rgba(225, 6, 0, 0.42);
  background: #fff;
}

.track-map svg {
  width: 100%;
  height: 100%;
  max-height: 100%;
  align-self: center;
}

.official-track-image {
  width: 100%;
  height: 100%;
  max-width: 100%;
  min-height: 0;
  max-height: 100%;
  align-self: center;
  object-fit: contain;
  object-position: center;
  border: 1px solid rgba(12, 18, 28, 0.16);
  background: #f7f9fc;
}

.official-track-image + .fallback-track-svg {
  display: none;
}

.track-map.official-image-failed .fallback-track-svg {
  display: block;
}

.track-shadow {
  fill: none;
  stroke: rgba(10, 16, 24, 0.12);
  stroke-width: 18;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.track-line {
  fill: none;
  stroke: #111821;
  stroke-width: 10;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.track-direction {
  fill: none;
  stroke: var(--red);
  stroke-width: 4;
  stroke-dasharray: 1 320;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.track-arrow {
  fill: var(--red);
}

.track-start {
  fill: var(--red);
  stroke: #111821;
  stroke-width: 2;
}

.track-start-label {
  fill: #111821;
  font-size: 12px;
  font-weight: 900;
  paint-order: stroke;
  stroke: rgba(255, 255, 255, 0.92);
  stroke-width: 5px;
}

.track-map-caption {
  display: grid;
  gap: 2px;
}

.track-map-caption span {
  width: fit-content;
  padding: 4px 9px;
  background: #111821;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.track-map-caption strong {
  color: #111821;
  font-size: 20px;
  line-height: 1.15;
}

.track-map-caption small {
  color: #596372;
  font-size: 12px;
  font-weight: 800;
}

.venue-card-body {
  padding: 18px;
}

.venue-grid h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
}

.venue-grid p {
  margin: 10px 0 0;
  color: var(--muted);
}

.venue-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 14px 0;
  border: 1px solid var(--line);
  background: var(--line);
}

.venue-facts div {
  padding: 10px;
  background: #0d1015;
}

.venue-facts dt {
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
}

.venue-facts dd {
  margin: 3px 0 0;
  color: #fff;
  font-weight: 900;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.result-card {
  padding: 18px;
  border: 1px solid rgba(66, 211, 146, 0.28);
  background: var(--panel);
}

.result-card-top {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.result-card-top strong {
  font-size: 22px;
}

.section-heading {
  max-width: 900px;
  margin-bottom: 26px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(30px, 5vw, 54px);
  line-height: 1;
}

.section-heading p:not(.eyebrow) {
  margin: 12px 0 0;
  color: var(--muted);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

.filter {
  min-height: 40px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
  padding: 8px 14px;
  font-weight: 800;
  cursor: pointer;
}

.filter.active,
.filter:hover {
  color: #fff;
  border-color: var(--red);
  background: rgba(225, 6, 0, 0.22);
}

.news-grid {
  display: grid;
  gap: 34px;
}

.news-group {
  display: grid;
  gap: 16px;
}

.news-group-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.news-group-heading h3 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.1;
}

.news-group-heading p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  text-align: right;
}

.news-group-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 22px;
  align-items: stretch;
}

.news-card {
  grid-column: span 4;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 445px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #12161d, #0f1218);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.news-card.featured {
  grid-column: span 8;
  min-height: 480px;
}

.news-card.selected,
.news-card:hover {
  border-color: rgba(225, 6, 0, 0.8);
}

.news-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--red);
  opacity: 0.82;
  z-index: 1;
}

.news-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center 42%;
  background: #10141b;
}

.news-card.featured img {
  aspect-ratio: 2 / 1;
}

.image-credit {
  position: absolute;
  top: 10px;
  right: 10px;
  max-width: calc(100% - 20px);
  z-index: 2;
  padding: 4px 8px;
  background: rgba(5, 6, 9, 0.72);
  color: rgba(255, 255, 255, 0.82);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.3;
  backdrop-filter: blur(8px);
}

.news-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.tag {
  color: #fff;
  background: rgba(225, 6, 0, 0.18);
  border: 1px solid rgba(225, 6, 0, 0.38);
  padding: 2px 8px;
}

.card-title {
  display: block;
  font-size: 21px;
  font-weight: 900;
  line-height: 1.28;
  text-wrap: balance;
}

.card-summary {
  display: block;
  margin-top: 12px;
  color: #c7ceda;
  font-size: 15px;
  line-height: 1.58;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.read-more {
  margin-top: auto;
  padding-top: 20px;
  color: #fff;
  font-weight: 900;
}

.read-more::after {
  content: " →";
  color: var(--red);
}

.article-reader {
  background: #0b0e13;
  border-block: 1px solid var(--line);
}

.article-reader.is-hidden {
  display: none;
}

.article-shell {
  display: grid;
  grid-template-columns: minmax(300px, 0.92fr) minmax(380px, 1.08fr);
  gap: 30px;
  align-items: start;
}

.article-media {
  position: sticky;
  top: 92px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #050609;
}

.article-media img {
  min-height: 380px;
  max-height: 520px;
  object-fit: contain;
  object-position: center;
  background: #050609;
}

.article-image-credit {
  margin: 0;
  padding: 8px 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.article-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
  border-top: 1px solid var(--line);
  background: #080a0f;
  padding: 8px;
}

.article-thumb {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #050609;
  color: inherit;
  cursor: pointer;
  display: grid;
  padding: 0;
  text-align: left;
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

.article-thumb:hover,
.article-thumb.active {
  border-color: var(--red);
  background: rgba(225, 6, 0, 0.12);
}

.article-thumb.active {
  transform: translateY(-2px);
}

.article-gallery img,
.article-thumb img {
  min-height: 0;
  height: 108px;
  object-fit: contain;
  background: #050609;
}

.article-gallery figcaption,
.article-thumb span {
  min-height: 40px;
  padding: 6px 8px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
}

.article-body {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 28px;
}

.article-kicker {
  color: var(--cyan);
  font-size: 13px;
  font-weight: 800;
}

.article-body h2 {
  margin: 12px 0 0;
  font-size: clamp(28px, 4.2vw, 48px);
  line-height: 1.08;
}

.article-summary {
  color: #dce2ec;
  font-size: 18px;
  font-weight: 700;
}

.article-content p {
  color: #c8cfdb;
  font-size: 17px;
}

.article-source-box {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.article-source-box h3 {
  margin: 0 0 8px;
}

.article-source-box ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.article-source-box a {
  display: inline-block;
  padding: 8px 10px;
  border: 1px solid var(--line);
  color: var(--gold);
  text-decoration: none;
}

.media-band {
  background: #10141b;
  border-bottom: 1px solid var(--line);
}

.media-band.is-merged {
  display: none;
}

.video-grid,
.team-grid,
.publish-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.video-card,
.team-grid article,
.publish-grid article {
  border: 1px solid var(--line);
  background: var(--panel-soft);
}

.video-card {
  color: var(--ink);
  overflow: hidden;
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease;
}

.video-card:hover {
  border-color: rgba(225, 6, 0, 0.8);
  transform: translateY(-2px);
}

.video-frame {
  aspect-ratio: 16 / 9;
  background: #050609;
}

.video-frame.poster img,
.team-grid img {
  height: 100%;
  object-fit: cover;
}

.video-copy,
.publish-grid article {
  padding: 18px;
}

.video-copy h3,
.publish-grid h3,
.team-grid h3 {
  margin: 0;
  line-height: 1.25;
}

.video-badge {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  margin-bottom: 10px;
  padding: 4px 8px;
  border: 1px solid rgba(62, 197, 255, 0.34);
  color: var(--cyan);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.video-copy p,
.publish-grid p,
.team-grid p {
  color: var(--muted);
}

.video-link {
  display: inline-block;
  color: var(--gold);
  font-weight: 900;
}

.video-copy a {
  color: var(--gold);
  font-weight: 900;
  text-decoration: none;
}

.team-grid article {
  overflow: hidden;
}

.team-card {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 430px;
}

.team-card-media {
  position: relative;
  display: block;
  overflow: hidden;
  color: #fff;
  text-decoration: none;
}

.team-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 6, 9, 0.05), rgba(5, 6, 9, 0.76));
}

.team-card-media img {
  width: 100%;
  aspect-ratio: 16 / 8.5;
  height: auto;
  object-fit: cover;
  object-position: center;
  transition: transform 180ms ease;
}

.team-card:hover .team-card-media img {
  transform: scale(1.035);
}

.team-card-media span {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 12px;
  z-index: 1;
  font-size: 22px;
  font-weight: 950;
  line-height: 1.05;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.72);
}

.team-card-body {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 18px;
}

.team-card-body h3,
.team-card-body p {
  margin: 0;
}

.team-card-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: auto;
}

.team-card-actions a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  border: 1px solid var(--line);
  color: var(--gold);
  font-weight: 900;
  text-align: center;
  text-decoration: none;
}

.team-card-actions a:hover {
  border-color: var(--red);
  color: #fff;
  background: rgba(225, 6, 0, 0.18);
}

.source-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.source-list a {
  min-height: 70px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--panel);
  color: #dfe5ef;
  text-align: center;
  text-decoration: none;
  font-weight: 900;
}

.source-list a:hover {
  border-color: var(--red);
}

code {
  color: var(--green);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 28px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 1040px) {
  .news-card,
  .news-card.featured {
    grid-column: span 6;
  }

  .news-group-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .news-group-heading p {
    text-align: left;
  }

  .article-shell,
  .video-grid,
  .team-grid,
  .publish-grid,
  .round-card,
  .venue-grid.detailed,
  .result-grid,
  .result-page-hero,
  .result-page-shell {
    grid-template-columns: repeat(2, 1fr);
  }

  .round-card {
    min-height: auto;
  }

  .round-image {
    min-height: 360px;
  }

}

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding: 14px 18px;
  }

  .top-nav {
    width: 100%;
    justify-content: space-between;
    overflow-x: auto;
  }

  .schedule-tabs {
    top: 105px;
    overflow-x: auto;
    padding: 10px 18px;
  }

  .schedule-tab {
    flex: 0 0 auto;
  }

  .hero {
    min-height: 600px;
  }

  .hero-content {
    padding: 0 18px 226px;
  }

  .race-strip {
    left: 18px;
    right: 18px;
    grid-template-columns: 1fr;
  }

  .dashboard,
  .article-reader,
  .media-band,
  .team-pulse,
  .sources,
  .publish,
  .schedule-section,
  .venue-section {
    padding: 58px 18px;
  }

  .ticker {
    display: grid;
    grid-template-columns: 1fr;
    padding-inline: 18px;
    overflow-x: hidden;
  }

  .ticker span {
    white-space: normal;
  }

  .news-card,
  .news-card.featured {
    grid-column: 1 / -1;
    min-height: auto;
  }

  .news-card img,
  .news-card.featured img {
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .article-shell,
  .video-grid,
  .team-grid,
  .publish-grid,
  .round-card,
  .schedule-summary,
  .venue-grid,
  .result-grid {
    grid-template-columns: 1fr;
  }

  .round-image {
    min-height: 340px;
  }

  .round-image img,
  .official-track-image {
    height: auto;
    max-height: 340px;
    object-fit: contain;
  }

  .round-facts {
    grid-template-columns: repeat(2, 1fr);
  }

  .session-list div,
  .session-list button,
  .session-list a {
    align-items: flex-start;
    flex-direction: column;
  }

  .session-jump::after {
    align-self: flex-start;
  }

  .session-list strong {
    text-align: left;
  }

  .driver-ranking li {
    grid-template-columns: 32px 1fr;
  }

  .driver-ranking small {
    grid-column: 2;
    text-align: left;
  }

  .result-detail-hero {
    grid-template-columns: 1fr;
  }

  .result-detail-hero .track-map {
    min-height: 230px;
  }

  .result-detail-hero > div:not(.track-map) {
    padding: 20px;
  }

  .result-page-hero,
  .result-page-shell {
    grid-template-columns: 1fr;
  }

  .result-page-hero-copy,
  .result-page-side,
  .result-table-panel {
    padding: 20px;
  }

  .result-table-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .venue-facts {
    grid-template-columns: 1fr;
  }

  .schedule-hero-content {
    padding: 0 18px 58px;
  }

  .article-media {
    position: static;
  }

  .article-media img {
    min-height: 250px;
  }

  .article-gallery img {
    height: 104px;
  }

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

  .article-gallery figcaption {
    font-size: 11px;
  }

  .article-body {
    padding: 20px;
  }

  .site-footer {
    flex-direction: column;
  }
}
