:root {
    --bg: #09090a;
    --bg-soft: #121216;
    --panel: rgba(255, 255, 255, 0.065);
    --panel-strong: rgba(255, 255, 255, 0.1);
    --line: rgba(255, 255, 255, 0.15);
    --text: #f7f4ef;
    --muted: #b9b3aa;
    --muted-strong: #ded8ce;
    --red: #e10600;
    --red-dark: #8d0b08;
    --gold: #f4b63f;
    --shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
    --max: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Inter", Arial, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 18% 0%, rgba(225, 6, 0, 0.2), transparent 34rem),
        linear-gradient(180deg, #111114 0%, var(--bg) 34rem, #0c0c0f 100%);
    line-height: 1.6;
}

body.nav-open {
    overflow: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
}

.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem clamp(1rem, 4vw, 3rem);
    background: linear-gradient(180deg, rgba(9, 9, 10, 0.92), rgba(9, 9, 10, 0.56));
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(18px);
    transition: background 180ms ease, border-color 180ms ease;
}

.site-header.is-scrolled {
    background: rgba(9, 9, 10, 0.94);
    border-color: rgba(255, 255, 255, 0.14);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.45rem;
    background: var(--red);
    color: white;
    font-size: 1rem;
    box-shadow: 0 14px 32px rgba(225, 6, 0, 0.35);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.main-nav a {
    padding: 0.65rem 0.85rem;
    border-radius: 0.45rem;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 700;
    transition: color 180ms ease, background 180ms ease;
}

.main-nav a:hover,
.main-nav a:focus-visible,
.main-nav a[aria-current="page"] {
    color: var(--text);
    background: rgba(255, 255, 255, 0.1);
    outline: none;
}

.nav-toggle {
    display: none;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 0.45rem;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
}

.nav-toggle span {
    display: block;
    width: 1.15rem;
    height: 2px;
    margin: 0.25rem auto;
    background: currentColor;
    border-radius: 999px;
}

.hero {
    position: relative;
    min-height: 92vh;
    display: grid;
    align-items: end;
    overflow: hidden;
    padding: 9rem clamp(1rem, 4vw, 3rem) 5rem;
}

.hero-media,
.hero-overlay {
    position: absolute;
    inset: 0;
}

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: saturate(0.95) contrast(1.08);
}

.hero-overlay {
    background:
        linear-gradient(90deg, rgba(9, 9, 10, 0.94) 0%, rgba(9, 9, 10, 0.64) 42%, rgba(9, 9, 10, 0.16) 100%),
        linear-gradient(0deg, var(--bg) 0%, rgba(9, 9, 10, 0.05) 34%);
}

.hero-content {
    position: relative;
    width: min(760px, 100%);
    margin: 0 auto 0 max(0px, calc((100vw - var(--max)) / 2));
}

.eyebrow {
    margin: 0 0 0.8rem;
    color: var(--gold);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 1rem;
    font-size: clamp(4rem, 15vw, 11rem);
    line-height: 0.82;
    letter-spacing: 0;
    text-transform: uppercase;
}

h2 {
    margin-bottom: 0;
    font-size: clamp(2rem, 4vw, 4rem);
    line-height: 1;
    letter-spacing: 0;
}

h3 {
    margin-bottom: 0.75rem;
    font-size: clamp(1.15rem, 2vw, 1.55rem);
    line-height: 1.16;
}

.hero-lead {
    max-width: 650px;
    margin-bottom: 2rem;
    color: var(--muted-strong);
    font-size: clamp(1.1rem, 2vw, 1.45rem);
    font-weight: 600;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    padding: 0.85rem 1.1rem;
    border: 1px solid transparent;
    border-radius: 0.45rem;
    font-weight: 850;
    line-height: 1;
    transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover,
.button:focus-visible {
    transform: translateY(-2px);
    outline: none;
}

.button-primary {
    background: var(--red);
    color: white;
    box-shadow: 0 18px 38px rgba(225, 6, 0, 0.3);
}

.button-secondary {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.22);
}

.quick-facts,
.section,
.gallery-teaser,
.gallery-grid,
.subhero {
    width: min(var(--max), calc(100% - 2rem));
    margin-inline: auto;
}

.quick-facts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    margin-top: -2.7rem;
    position: relative;
    z-index: 2;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 0.65rem;
    background: var(--line);
    box-shadow: var(--shadow);
}

.quick-facts article {
    min-height: 10rem;
    padding: 1.2rem;
    background: rgba(18, 18, 22, 0.92);
}

.quick-facts strong {
    display: block;
    margin-bottom: 0.65rem;
    color: var(--text);
    font-size: clamp(2.2rem, 4vw, 4.2rem);
    line-height: 0.9;
    font-weight: 900;
}

.quick-facts span {
    display: block;
    color: var(--muted);
    font-weight: 650;
}

.section {
    padding: clamp(4rem, 8vw, 7rem) 0 0;
}

.section-heading {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(16rem, 1.05fr);
    gap: clamp(1.5rem, 4vw, 4rem);
    align-items: end;
    margin-bottom: 2rem;
}

.section-heading .eyebrow {
    grid-column: 1 / -1;
    margin-bottom: -0.8rem;
}

.section-heading h2 {
    max-width: 760px;
}

.feature-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 1rem;
}

.feature-panel,
.timeline-card,
.circuit-grid article {
    border: 1px solid var(--line);
    border-radius: 0.65rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.045));
    box-shadow: 0 22px 54px rgba(0, 0, 0, 0.2);
}

.feature-panel {
    min-height: 16rem;
    padding: clamp(1.2rem, 2vw, 1.6rem);
}

.feature-panel-wide {
    grid-row: span 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 28rem;
    background:
        linear-gradient(180deg, rgba(9, 9, 10, 0.12), rgba(9, 9, 10, 0.9)),
        url("f1_2021_rbrb21.jpg") center / cover;
}

.panel-kicker,
.timeline-card span,
.story-card span,
.gallery-card span,
.circuit-grid span {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 0.9rem;
    padding: 0.28rem 0.5rem;
    border: 1px solid rgba(244, 182, 63, 0.32);
    border-radius: 0.35rem;
    color: var(--gold);
    background: rgba(244, 182, 63, 0.08);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.feature-panel p,
.timeline-card p,
.story-card p,
.legend-list span,
.circuit-grid p,
.gallery-teaser p,
.gallery-card p,
.subhero p {
    color: var(--muted);
    font-weight: 600;
}

.live-news-section {
    position: relative;
}

.live-news-shell {
    padding: clamp(1rem, 2.4vw, 1.5rem);
    border: 1px solid rgba(244, 182, 63, 0.22);
    border-radius: 0.75rem;
    background:
        linear-gradient(145deg, rgba(225, 6, 0, 0.14), rgba(244, 182, 63, 0.06)),
        rgba(255, 255, 255, 0.045);
    box-shadow: 0 26px 72px rgba(0, 0, 0, 0.32);
}

.live-news-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.2rem;
    margin-bottom: 1rem;
}

.live-news-head h3 {
    margin: 0.35rem 0 0.35rem;
    font-size: clamp(1.5rem, 3vw, 2.3rem);
}

.live-news-head p {
    max-width: 680px;
    margin: 0;
    color: var(--muted);
    font-weight: 650;
}

.live-news-date {
    flex: 0 0 auto;
    padding: 0.42rem 0.65rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 0.45rem;
    color: var(--muted-strong);
    background: rgba(255, 255, 255, 0.07);
    font-size: 0.78rem;
    font-weight: 900;
}

.live-news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
}

.live-news-grid article,
.standings-card {
    border: 1px solid var(--line);
    border-radius: 0.65rem;
    background: rgba(8, 8, 10, 0.56);
}

.live-news-grid article {
    min-height: 14rem;
    display: flex;
    flex-direction: column;
    padding: 1rem;
}

.live-news-grid span {
    width: fit-content;
    margin-bottom: 0.75rem;
    color: var(--gold);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.live-news-grid h3 {
    margin-bottom: 0.55rem;
    font-size: clamp(1.05rem, 1.8vw, 1.35rem);
    line-height: 1.15;
}

.live-news-grid p {
    color: var(--muted);
    font-weight: 650;
}

.live-news-grid a {
    width: fit-content;
    margin-top: auto;
    color: var(--gold);
    font-weight: 900;
}

.standings-card {
    margin-top: 0.85rem;
    padding: 1rem;
    overflow-x: auto;
}

.standings-card h3 {
    margin-bottom: 0.9rem;
    font-size: 1.15rem;
}

.standings-card table {
    width: 100%;
    min-width: 620px;
    border-collapse: collapse;
    color: var(--muted-strong);
}

.standings-card th,
.standings-card td {
    padding: 0.75rem 0.65rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: left;
    font-size: 0.9rem;
}

.standings-card th {
    color: var(--gold);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.race-control-section {
    position: relative;
}

[data-race-control-visibility][hidden],
[data-race-control-nav][hidden],
[data-race-control-standby][hidden] {
    display: none !important;
}

.race-control-shell {
    padding: clamp(1rem, 2.4vw, 1.5rem);
    border: 1px solid rgba(225, 6, 0, 0.28);
    border-radius: 0.8rem;
    background:
        linear-gradient(145deg, rgba(225, 6, 0, 0.15), rgba(244, 182, 63, 0.05)),
        rgba(255, 255, 255, 0.045);
    box-shadow: 0 30px 82px rgba(0, 0, 0, 0.35);
}

.race-control-hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.2rem;
    margin-bottom: 1rem;
}

.race-control-hero h3 {
    margin: 0.35rem 0;
    font-size: clamp(1.8rem, 4vw, 3.2rem);
    line-height: 0.96;
}

.race-live-shell .race-control-hero h1 {
    overflow-wrap: anywhere;
}

.race-control-hero p {
    max-width: 720px;
    margin: 0;
    color: var(--muted);
    font-weight: 650;
}

.race-live-pill {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    min-height: 2.8rem;
    padding: 0 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    color: var(--muted-strong);
    background: rgba(0, 0, 0, 0.32);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.78rem;
}

.race-live-pill span {
    width: 0.72rem;
    height: 0.72rem;
    border-radius: 50%;
    background: var(--muted);
}

.race-live-pill[data-rc-live="true"] span {
    background: #48f5a8;
    box-shadow: 0 0 18px rgba(72, 245, 168, 0.75);
    animation: livePulse 1.4s ease-in-out infinite;
}

.race-status-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.race-status-grid article,
.race-panel {
    border: 1px solid var(--line);
    border-radius: 0.65rem;
    background: rgba(8, 8, 10, 0.58);
}

.race-status-grid article {
    min-height: 8.6rem;
    padding: 1rem;
}

.race-status-grid span,
.race-panel-head span {
    display: block;
    margin-bottom: 0.75rem;
    color: var(--gold);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.race-status-grid strong {
    display: block;
    font-size: clamp(1.15rem, 2vw, 1.65rem);
    line-height: 1.05;
}

.race-status-grid small {
    display: block;
    margin-top: 0.7rem;
    color: var(--muted);
    font-weight: 700;
}

.race-control-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 0.85rem;
}

.race-panel {
    min-height: 15rem;
    padding: 1rem;
    overflow: hidden;
}

.race-panel-main {
    grid-row: auto;
}

.race-control-layout-essential {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.race-panel-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 0.7rem;
}

.race-panel-head small {
    color: var(--muted);
    font-weight: 800;
}

.race-panel-actions {
    margin-top: 1rem;
}

.race-table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.6rem;
    background: rgba(0, 0, 0, 0.24);
}

.race-table-wrap-compact {
    max-height: 28rem;
}

.live-timing-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
}

.live-timing-table th,
.live-timing-table td {
    padding: 0.82rem 0.72rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-align: left;
    vertical-align: middle;
}

.live-timing-table th {
    color: var(--gold);
    font-size: 0.72rem;
    font-weight: 950;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.04);
}

.live-timing-table td {
    color: var(--muted-strong);
    font-size: 0.9rem;
    font-weight: 800;
}

.live-timing-table tbody tr:last-child td {
    border-bottom: 0;
}

.driver-cell {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.65rem;
    align-items: center;
    min-width: 13rem;
}

.driver-cell > span {
    width: 0.34rem;
    height: 2.2rem;
    border-radius: 999px;
    background: var(--team, var(--gold));
    box-shadow: 0 0 18px color-mix(in srgb, var(--team, var(--gold)) 50%, transparent);
}

.driver-cell strong,
.driver-cell small {
    display: block;
}

.driver-cell small {
    color: var(--muted);
    font-size: 0.76rem;
}

.race-live-dashboard {
    padding-top: 7.5rem;
}

.race-live-shell {
    display: grid;
    gap: 0.9rem;
}

.race-live-shell .race-control-hero h1 {
    margin: 0.35rem 0;
    font-size: clamp(2.6rem, 8vw, 6rem);
    line-height: 0.92;
}

.race-timing-panel {
    min-height: auto;
}

.race-live-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(0, 0.9fr));
    gap: 0.85rem;
}

.race-track-map-panel {
    min-height: auto;
}

.track-map-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(16rem, 0.55fr);
    gap: 1rem;
    align-items: stretch;
}

.track-map-stage {
    position: relative;
    min-height: 0;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    background:
        radial-gradient(circle at 28% 20%, rgba(225, 6, 0, 0.2), transparent 34%),
        radial-gradient(circle at 78% 76%, rgba(244, 182, 63, 0.15), transparent 38%),
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.026) 1px, transparent 1px),
        rgba(0, 0, 0, 0.34);
    background-size: auto, auto, 34px 34px, 34px 34px, auto;
}

.track-map-stage::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.026) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: radial-gradient(circle, #000 26%, transparent 88%);
}

.track-map-stage img {
    position: absolute;
    inset: 5%;
    width: 90%;
    height: 90%;
    object-fit: contain;
    filter: drop-shadow(0 0 28px rgba(255, 255, 255, 0.16));
}

.track-map-stage img.is-circuit-image {
    inset: 2.5%;
    width: 95%;
    height: 95%;
    object-fit: contain;
    filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.18)) saturate(1.05) contrast(1.04);
}

.track-map-stage img[hidden] {
    display: none;
}

.track-map-pins {
    position: absolute;
    inset: 0;
    z-index: 2;
}

.track-map-svg {
    position: absolute;
    inset: 2.5%;
    width: 95%;
    height: 95%;
    overflow: visible;
    filter: drop-shadow(0 0 22px rgba(225, 6, 0, 0.26));
}

.track-map-svg polyline {
    fill: none;
    stroke: rgba(245, 248, 255, 0.96);
    stroke-width: 2.45;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
}

.track-map-corner {
    position: absolute;
    left: var(--x);
    top: var(--y);
    z-index: 3;
    display: grid;
    place-items: center;
    width: 1.35rem;
    height: 1.35rem;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.88);
    background: rgba(9, 10, 14, 0.8);
    font-size: 0.66rem;
    font-weight: 900;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 14px rgba(0, 0, 0, 0.45);
}

.track-map-pin {
    position: absolute;
    left: var(--x);
    top: var(--y);
    display: grid;
    place-items: center;
    width: clamp(2.45rem, 4vw, 3.05rem);
    height: clamp(2.45rem, 4vw, 3.05rem);
    border: 2px solid var(--team, var(--gold));
    border-radius: 999px;
    color: #fff;
    background: color-mix(in srgb, var(--team, var(--gold)) 32%, rgba(0, 0, 0, 0.86));
    box-shadow: 0 0 0 5px rgba(0, 0, 0, 0.26), 0 0 26px color-mix(in srgb, var(--team, var(--gold)) 62%, transparent);
    transform: translate(-50%, -50%);
    transition: transform 0.18s ease, opacity 0.18s ease;
}

.track-map-pin::after {
    content: "";
    position: absolute;
    inset: -0.42rem;
    border: 1px solid color-mix(in srgb, var(--team, var(--gold)) 50%, transparent);
    border-radius: inherit;
    opacity: 0.55;
}

.track-map-pin b {
    position: absolute;
    top: -0.5rem;
    right: -0.4rem;
    display: grid;
    place-items: center;
    min-width: 1.35rem;
    height: 1.35rem;
    padding: 0 0.25rem;
    border-radius: 999px;
    color: #180808;
    background: var(--gold);
    font-size: 0.7rem;
    font-weight: 950;
}

.track-map-pin em {
    font-style: normal;
    font-size: 0.82rem;
    font-weight: 950;
    letter-spacing: 0.04em;
}

.track-map-pin.is-pit {
    border-style: dashed;
}

.track-map-pin.is-stale {
    opacity: 0.58;
}

.race-track-map-panel[data-map-mode="real-time-map"] .track-map-pin {
    width: 1.22rem;
    height: 1.22rem;
    border-width: 2px;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.38), 0 0 16px color-mix(in srgb, var(--team, var(--gold)) 72%, transparent);
}

.race-track-map-panel[data-map-mode="real-time-map"] .track-map-pin b,
.race-track-map-panel[data-map-mode="real-time-map"] .track-map-pin em {
    display: none;
}

.race-track-map-panel[data-map-mode="real-time-map"] .track-map-pin::after {
    inset: -0.26rem;
    opacity: 0.42;
}

.race-track-map-panel[data-map-mode="real-time-map"][data-map-visual="official-image"] .track-map-pin {
    z-index: 4;
    width: clamp(2.1rem, 3.4vw, 2.65rem);
    height: clamp(2.1rem, 3.4vw, 2.65rem);
    border-width: 2px;
    background: color-mix(in srgb, var(--team, var(--gold)) 48%, rgba(0, 0, 0, 0.9));
    box-shadow:
        0 0 0 4px rgba(0, 0, 0, 0.68),
        0 0 22px color-mix(in srgb, var(--team, var(--gold)) 76%, transparent);
}

.race-track-map-panel[data-map-mode="real-time-map"][data-map-visual="geometry"] .track-map-pin {
    z-index: 4;
    width: clamp(1.75rem, 2.65vw, 2.25rem);
    height: clamp(1.75rem, 2.65vw, 2.25rem);
    border-width: 2px;
    background: color-mix(in srgb, var(--team, var(--gold)) 46%, rgba(0, 0, 0, 0.9));
    box-shadow:
        0 0 0 4px rgba(0, 0, 0, 0.64),
        0 0 20px color-mix(in srgb, var(--team, var(--gold)) 78%, transparent);
}

.race-track-map-panel[data-map-mode="real-time-map"][data-map-visual="geometry"] .track-map-pin b {
    display: grid;
    top: -0.52rem;
    right: -0.45rem;
    min-width: 1.15rem;
    height: 1.15rem;
    font-size: 0.62rem;
}

.race-track-map-panel[data-map-mode="real-time-map"][data-map-visual="geometry"] .track-map-pin em {
    display: block;
    font-size: 0.66rem;
    line-height: 1;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.9);
}

.race-track-map-panel[data-map-mode="real-time-map"][data-map-visual="official-image"] .track-map-pin b {
    display: grid;
    top: -0.56rem;
    right: -0.5rem;
    min-width: 1.22rem;
    height: 1.22rem;
    font-size: 0.66rem;
}

.race-track-map-panel[data-map-mode="real-time-map"][data-map-visual="official-image"] .track-map-pin em {
    display: block;
    font-size: 0.72rem;
    line-height: 1;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.9);
}

.track-map-meta {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.8rem;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    background: rgba(0, 0, 0, 0.24);
}

.track-map-meta strong {
    display: block;
    font-size: clamp(1.25rem, 2.2vw, 2rem);
    line-height: 1.05;
}

.track-map-meta p {
    margin: 0;
    color: var(--muted);
    font-weight: 750;
}

.track-map-legend {
    display: grid;
    gap: 0.5rem;
    margin: 0.25rem 0;
}

.track-map-legend span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    color: var(--muted-strong);
    font-size: 0.82rem;
    font-weight: 850;
    letter-spacing: 0;
    text-transform: none;
}

.track-map-legend span[hidden] {
    display: none;
}

.legend-dot {
    width: 0.82rem;
    height: 0.82rem;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 14px rgba(244, 182, 63, 0.45);
}

.legend-dot-pit {
    border: 1px dashed var(--gold);
    background: transparent;
}

.track-map-note {
    font-size: 0.8rem;
    line-height: 1.55;
}

.race-messages-tall {
    max-height: 32rem;
    overflow: auto;
}

.race-live-standby {
    width: min(var(--max), calc(100% - 2rem));
    margin: 0 auto;
}

.top-three-list {
    display: grid;
    gap: 0.65rem;
}

.top-three-row,
.compact-row,
.race-message-row,
.entity-group-chip {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.55rem;
    background: rgba(255, 255, 255, 0.045);
}

.top-three-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem;
}

.top-three-pos {
    display: grid;
    place-items: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 0.45rem;
    color: #180808;
    background: var(--gold);
    font-weight: 950;
}

.top-three-row strong,
.compact-row strong {
    display: block;
    line-height: 1.15;
}

.top-three-row small,
.compact-row small,
.race-message-row small {
    color: var(--muted);
    font-weight: 700;
}

.lap-time {
    color: var(--gold);
    font-weight: 950;
}

.race-messages,
.compact-list,
.entity-groups {
    display: grid;
    gap: 0.55rem;
}

.race-message-row,
.compact-row {
    padding: 0.7rem;
}

.race-message-row p {
    margin: 0.25rem 0 0;
    color: var(--muted-strong);
    font-weight: 700;
}

.compact-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.8rem;
}

.compact-row em {
    color: var(--gold);
    font-style: normal;
    font-weight: 950;
}

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

.entity-group-chip {
    padding: 0.65rem;
}

.entity-group-chip strong {
    display: block;
    font-size: 1.3rem;
    line-height: 1;
}

.entity-group-chip span {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
}

.empty-state {
    margin: 0;
    color: var(--muted);
    font-weight: 700;
}

@keyframes livePulse {
    50% {
        transform: scale(1.3);
        opacity: 0.62;
    }
}

.mini-stat-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.4rem;
}

.mini-stat-row span {
    padding: 0.55rem 0.7rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.28);
    color: var(--muted-strong);
    font-size: 0.86rem;
    font-weight: 800;
}

.timeline {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
}

.timeline-card {
    min-height: 18rem;
    padding: 1.2rem;
}

.story-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.story-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 0.65rem;
    background: var(--panel);
}

.story-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.story-card div {
    padding: 1.1rem;
}

.legends-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(18rem, 1.1fr);
    gap: 1rem;
    align-items: stretch;
}

.legend-photo {
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 0.65rem;
    background: var(--panel);
}

.legend-photo img {
    width: 100%;
    height: 100%;
    min-height: 34rem;
    object-fit: cover;
}

.legend-photo figcaption {
    padding: 0.9rem 1rem 1rem;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 700;
}

.legend-list {
    display: grid;
    gap: 1px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 0.65rem;
    background: var(--line);
}

.legend-list article {
    display: grid;
    grid-template-columns: minmax(10rem, 0.45fr) minmax(0, 1fr);
    gap: 1rem;
    align-items: center;
    padding: 1.05rem 1.1rem;
    background: rgba(18, 18, 22, 0.94);
}

.legend-list strong {
    font-size: 1.05rem;
}

.circuit-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.circuit-grid article {
    min-height: 13rem;
    padding: 1.15rem;
}

.gallery-teaser {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(20rem, 0.9fr);
    gap: clamp(1rem, 3vw, 2rem);
    align-items: center;
    margin-top: clamp(4rem, 8vw, 7rem);
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 0.75rem;
    background: var(--panel);
}

.gallery-teaser img {
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 0.55rem;
    object-fit: cover;
}

.gallery-teaser div {
    padding: clamp(0.5rem, 2vw, 1.5rem);
}

.subhero {
    min-height: 58vh;
    display: grid;
    align-items: end;
    padding: 9rem 0 4rem;
}

.subhero h1 {
    margin-bottom: 1rem;
    font-size: clamp(4rem, 12vw, 9rem);
}

.subhero p {
    max-width: 720px;
    font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    padding-bottom: clamp(4rem, 8vw, 7rem);
}

.gallery-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 0.65rem;
    background: var(--panel);
}

.gallery-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.gallery-card div {
    padding: 1.15rem;
}

.gallery-card h2 {
    margin-bottom: 0.75rem;
    font-size: clamp(1.35rem, 2.4vw, 2rem);
    line-height: 1.05;
}

.site-footer {
    width: min(var(--max), calc(100% - 2rem));
    margin: 0 auto;
    padding: 2.5rem 0;
    border-top: 1px solid var(--line);
    color: var(--muted);
    text-align: center;
    font-weight: 700;
}

.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 520ms ease, transform 520ms ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 980px) {
    .quick-facts,
    .timeline,
    .circuit-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-heading,
    .feature-grid,
    .legends-layout,
    .gallery-teaser {
        grid-template-columns: 1fr;
    }

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

    .race-control-layout {
        grid-template-columns: 1fr;
    }

    .track-map-layout {
        grid-template-columns: 1fr;
    }

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

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

    .feature-panel-wide {
        min-height: 24rem;
    }
}

@media (max-width: 720px) {
    .site-header {
        padding: 0.8rem 1rem;
    }

    .nav-toggle {
        display: block;
    }

    .main-nav {
        position: fixed;
        top: 4.4rem;
        right: 1rem;
        left: 1rem;
        display: grid;
        gap: 0.35rem;
        padding: 0.75rem;
        border: 1px solid var(--line);
        border-radius: 0.65rem;
        background: rgba(10, 10, 12, 0.96);
        box-shadow: var(--shadow);
        transform: translateY(-0.7rem);
        opacity: 0;
        pointer-events: none;
        transition: opacity 180ms ease, transform 180ms ease;
    }

    .main-nav.is-open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .main-nav a {
        padding: 0.85rem;
    }

    .hero {
        min-height: 88vh;
        padding: 8rem 1rem 4rem;
    }

    .hero-overlay {
        background:
            linear-gradient(180deg, rgba(9, 9, 10, 0.18) 0%, rgba(9, 9, 10, 0.82) 54%, var(--bg) 100%),
            linear-gradient(90deg, rgba(9, 9, 10, 0.82), rgba(9, 9, 10, 0.28));
    }

    h1 {
        font-size: clamp(3.7rem, 19vw, 6.4rem);
    }

    .quick-facts,
    .story-grid,
    .gallery-grid,
    .live-news-grid {
        grid-template-columns: 1fr;
    }

    .live-news-head {
        flex-direction: column;
    }

    .race-control-hero {
        flex-direction: column;
    }

    .race-live-pill {
        width: 100%;
        justify-content: center;
    }

    .race-status-grid,
    .entity-groups,
    .race-live-grid {
        grid-template-columns: 1fr;
    }

    .race-live-dashboard {
        padding-top: 6rem;
    }

    .race-live-shell .race-control-hero h1 {
        font-size: clamp(2.2rem, 13vw, 3.6rem);
        line-height: 0.94;
    }

    .live-news-date {
        width: 100%;
        text-align: center;
    }

    .quick-facts article {
        min-height: auto;
    }

    .section {
        padding-top: 4.5rem;
    }

    .timeline-card,
    .circuit-grid article {
        min-height: auto;
    }

    .legend-photo img {
        min-height: 24rem;
    }

    .legend-list article {
        grid-template-columns: 1fr;
        gap: 0.4rem;
    }

    .subhero {
        min-height: 48vh;
        padding-top: 7.5rem;
    }
}

@media (max-width: 440px) {
    .brand span:last-child {
        display: none;
    }

    .button,
    .hero-actions {
        width: 100%;
    }

    .mini-stat-row span {
        width: 100%;
        border-radius: 0.45rem;
    }
}

@media (max-width: 760px) and (max-height: 520px) {
    .site-header {
        padding-block: 0.55rem;
    }

    .brand-mark,
    .nav-toggle {
        width: 2.2rem;
        height: 2.2rem;
    }

    .hero {
        min-height: 100vh;
        align-items: center;
        padding: 4.7rem 1rem 1.1rem;
    }

    h1 {
        margin-bottom: 0.55rem;
        font-size: clamp(2.85rem, 18vw, 4.2rem);
        line-height: 0.86;
    }

    .hero-lead {
        margin-bottom: 0.9rem;
        font-size: 0.95rem;
        line-height: 1.38;
    }

    .hero-actions {
        gap: 0.5rem;
    }

    .button {
        width: auto;
        min-height: 2.45rem;
        padding: 0.65rem 0.8rem;
        font-size: 0.84rem;
    }
}
