@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&family=Manrope:wght@400;500;600;700&family=Space+Grotesk:wght@600;700;800&display=swap');

/* ==========================================================================
   TORTUGA RACING E-SPORTS DESIGN SYSTEM : APEX BROADCAST SPORT (STITCH)
   Tokens: Fontes, Cores, Bordas, Estilo de Fundo e Sombreamento
   ========================================================================== */

:root {
    /* 1. FONTES (Typography) */
    --font-heading: 'Space Grotesk', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', "SFMono-Regular", Consolas, monospace;
    --font-telemetry: 'JetBrains Mono', monospace;
    --font-sans: var(--font-body);

    /* 2. CORES (Colors : Stitch Apex Broadcast Sport) */
    /* Surfaces */
    --surface: #0d1322;
    --surface-dim: #0d1322;
    --surface-bright: #33394a;
    --surface-container-lowest: #080e1d;
    --surface-container-low: #151b2b;
    --surface-container: #191f2f;
    --surface-container-high: #242a3a;
    --surface-container-highest: #2f3445;

    /* Legacy surface mapping */
    --bg-darkest: #080e1d;
    --bg-main: #0d1322;
    --bg-panel: #191f2f;
    --bg-panel-2: #242a3a;
    --bg-surface: #191f2f;
    --bg-surface-elevated: #242a3a;
    --bg-surface-hover: #2f3445;
    --bg-card: #151b2b;
    --bg-card-hover: #191f2f;
    --bg-row-alt: #111726;

    /* Content & Typography Colors */
    --on-surface: #dde2f8;
    --on-surface-variant: #c1c6d7;
    --outline: #8b91a0;
    --outline-variant: #414754;

    --text-white: #dde2f8;
    --text-white-pure: #ffffff;
    --text-primary: #dde2f8;
    --text-secondary: #c1c6d7;
    --text-muted: #8b91a0;
    --text-dim: #414754;

    /* Primary Accent: Circuit Electric Blue */
    --primary: #abc7ff;
    --on-primary: #002f65;
    --primary-container: #438fff;
    --on-primary-container: #002959;
    --primary-fixed: #d7e3ff;
    --primary-fixed-dim: #abc7ff;
    --surface-tint: #abc7ff;
    --f1-blue-accent: #438fff;

    /* Secondary Accent: Apex Red / Broadcast Live */
    --secondary: #ffb3ad;
    --on-secondary: #68000a;
    --secondary-container: #a40217;
    --on-secondary-container: #ffaea8;
    --accent-red: #ef4444;
    --accent-red-hover: #dc2626;
    --accent-red-dark: #a40217;
    --f1-red: #ef4444;
    --f1-red-hover: #dc2626;
    --f1-red-dark: #a40217;

    /* Tertiary Accent: Telemetry Cyan / Azure */
    --tertiary: #7bd0ff;
    --on-tertiary: #00354a;
    --tertiary-container: #009bd1;
    --on-tertiary-container: #002d40;
    --tertiary-fixed: #c4e7ff;
    --accent-cyan: #38bdf8;
    --accent-cyan-soft: #7bd0ff;
    --accent-cyan-glow: rgba(56, 189, 248, 0.35);
    --f1-cyan: #38bdf8;
    --f1-cyan-soft: #7bd0ff;

    /* Status & Podiums */
    --live-green: #22c55e;
    --live-amber: #f59e0b;
    --podium-gold: #f59e0b;
    --podium-silver: #94a3b8;
    --podium-bronze: #cd7f32;

    /* 3. BORDAS (Borders & Corner Radii) */
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
    --radius-xl: 12px;
    --radius-full: 9999px;

    --border-color: rgba(139, 145, 160, 0.2);
    --border-line: rgba(65, 71, 84, 0.4);
    --border-subtle: rgba(139, 145, 160, 0.12);
    --border-highlight: rgba(67, 143, 255, 0.45);
    --border-focus: #438fff;

    /* 4. ESTILO DE FUNDO & GLASSMORPHISM */
    --glass-header: rgba(8, 14, 29, 0.92);
    --glass-card: rgba(21, 27, 43, 0.88);
    --glass-blur: 16px;
    --glass-blur-lg: 20px;

    /* 5. SOMBREAMENTO (Shading, Shadows & Glows) */
    --shadow-header: 0 4px 24px rgba(0, 0, 0, 0.5);
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.35);
    --shadow-card-hover: 0 14px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow-red: 0 0 20px rgba(164, 2, 23, 0.45);
    --shadow-glow-red-hover: 0 0 32px rgba(164, 2, 23, 0.7);
    --shadow-glow-blue: 0 0 16px rgba(67, 143, 255, 0.35);
    --shadow-glow-blue-hover: 0 0 24px rgba(67, 143, 255, 0.55);
    --shadow-inset: inset 0 2px 4px rgba(0, 0, 0, 0.35);

    --ers-max: 1360px;
}

/* Base Reset & Typography */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body, button, input, select, textarea, h1, h2, h3, h4, h5, h6, p, span, a, td, th {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    position: relative;
    z-index: 0;
    background-color: var(--surface);
    background-image:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(67, 143, 255, 0.14), transparent 700px),
        radial-gradient(circle at 100% 0%, rgba(164, 2, 23, 0.08), transparent 450px),
        radial-gradient(circle at 0% 100%, rgba(0, 155, 209, 0.06), transparent 500px);
    background-attachment: fixed;
    color: var(--on-surface);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: url('../images/body-bg.jpg?v=2');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0.08;
    pointer-events: none;
    z-index: -1;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--on-surface);
    letter-spacing: -0.02em;
    text-transform: uppercase;
    font-weight: 700;
}

h1 { font-size: 36px; line-height: 1.15; }
h2 { font-size: 24px; line-height: 1.25; }
h3 { font-size: 18px; line-height: 1.35; }
h4 { font-size: 16px; line-height: 1.4; }

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

a:hover {
    color: var(--text-white-pure);
}

/* Header & Navigation (Stitch Glassmorphism & Elevation) */
.f1-header {
    background-color: var(--glass-header);
    backdrop-filter: blur(var(--glass-blur-lg));
    -webkit-backdrop-filter: blur(var(--glass-blur-lg));
    border-bottom: 1px solid var(--border-line);
    box-shadow: var(--shadow-header);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.f1-header-container {
    max-width: var(--ers-max);
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.f1-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--on-surface);
    text-transform: uppercase;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.f1-logo:hover {
    transform: translateY(-1px);
}

.f1-logo-img-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--surface-container-high);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    flex-shrink: 0;
}

.f1-logo span.telemetry-txt {
    color: var(--tertiary);
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.12em;
    font-weight: 700;
}

.f1-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.f1-nav li a {
    position: relative;
    color: var(--on-surface-variant);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.01em;
    padding: 8px 14px 10px;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: color 0.2s cubic-bezier(0.4, 0, 0.2, 1),
                background-color 0.2s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.2s cubic-bezier(0.4, 0, 0.2, 1),
                text-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Linha leve abaixo de cada texto do menu do header */
.f1-nav li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 14px;
    right: 14px;
    height: 2px;
    background-color: rgba(139, 145, 160, 0.22);
    border-radius: 9999px;
    transition: background-color 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Efeito de hover suave nos textos */
.f1-nav li a:hover {
    color: var(--on-surface);
    background-color: rgba(67, 143, 255, 0.06);
    transform: translateY(-1.5px);
    text-shadow: 0 0 10px rgba(67, 143, 255, 0.45);
}

.f1-nav li a:hover::after {
    background-color: var(--primary);
    box-shadow: 0 0 8px rgba(67, 143, 255, 0.7), 0 0 16px rgba(67, 143, 255, 0.35);
    transform: scaleX(1.06);
}

.f1-nav li.current-menu-item a,
.f1-nav li a.active {
    color: var(--on-surface);
}

.f1-nav li.current-menu-item a::after,
.f1-nav li a.active::after {
    background-color: var(--primary);
    box-shadow: 0 0 8px rgba(67, 143, 255, 0.65);
}

.f1-nav li a.nav-inscricoes {
    color: var(--tertiary);
}

.f1-nav li a.nav-inscricoes::after {
    background-color: rgba(123, 208, 255, 0.35);
}

.f1-nav li a.nav-inscricoes:hover {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(123, 208, 255, 0.6);
}

.f1-nav li a.nav-inscricoes:hover::after,
.f1-nav li a.nav-inscricoes.active::after {
    background-color: var(--tertiary);
    box-shadow: 0 0 8px rgba(123, 208, 255, 0.7);
}

.f1-header-socials {
    display: flex;
    align-items: center;
    gap: 12px;
}

.f1-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: var(--radius-lg);
    background-color: var(--secondary-container);
    color: var(--on-surface);
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    box-shadow: var(--shadow-glow-red);
    transition: all 0.2s ease;
}

.f1-live-badge:hover {
    box-shadow: var(--shadow-glow-red-hover);
    transform: translateY(-1px);
    color: #ffffff;
}

/* Main Layout Containers */
.f1-main-content {
    flex: 1;
    max-width: var(--ers-max);
    width: 100%;
    margin: 0 auto;
    padding: 32px 24px 64px;
}

.f1-container {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Cards & Modules (Stitch Glass Panels) */
.f1-card,
.f1-telemetry-card {
    background-color: var(--glass-card) !important;
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-xl) !important;
    box-shadow: var(--shadow-card) !important;
    padding: 24px;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    box-sizing: border-box;
}

.f1-card:hover,
.f1-telemetry-card:hover {
    border-color: var(--border-highlight) !important;
    box-shadow: var(--shadow-card-hover) !important;
}

/* Hero Section (Stitch Broadcast Hero) */
.f1-hero,
.f1-page-hero {
    background: linear-gradient(135deg, rgba(21, 27, 43, 0.95) 0%, rgba(13, 19, 34, 0.98) 100%),
                radial-gradient(circle at top right, rgba(67, 143, 255, 0.16), transparent 500px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 40px;
    margin-bottom: 36px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.f1-hero h1,
.f1-page-hero h1 {
    font-size: 38px;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 12px;
    color: var(--on-surface);
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

.f1-hero p,
.f1-page-hero p {
    font-size: 16px;
    color: var(--on-surface-variant);
    max-width: 800px;
    line-height: 1.6;
}

/* Hero Badges Row (Alinhamento dos Retangulos na Home) */
.f1-hero-badges-row {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.f1-hero-badge,
.f1-hero-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 32px;
    padding: 0 14px;
    background: var(--surface-container-high);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--tertiary);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1;
    margin: 0;
    box-sizing: border-box;
    vertical-align: middle;
}

.f1-hero-badges-row .f1-badge-dot,
.f1-hero-badge .f1-badge-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--secondary);
    box-shadow: 0 0 6px var(--secondary);
    flex-shrink: 0;
}

/* Category Bento Grid */
.f1-telemetry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 36px;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.category-pill {
    padding: 0;
    background: transparent;
    border: none;
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    line-height: 1.2;
}

.pill-f1 {
    background: transparent;
    border: none;
    color: #38bdf8;
}

.pill-f2 {
    background: transparent;
    border: none;
    color: #e2e8f0;
}

.pill-f3 {
    background: transparent;
    border: none;
    color: #ff5449;
}

.pill-f4 {
    background: transparent;
    border: none;
    color: #4ade80;
}

.category-desc {
    color: var(--on-surface-variant);
    font-size: 14px;
    margin-bottom: 20px;
    min-height: 40px;
    line-height: 1.5;
}

/* Top 3 Podium Strip */
.top3-podium {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
    border-top: 1px solid var(--border-color);
    padding-top: 14px;
}

.podium-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: var(--surface-container-high) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-md) !important;
    font-size: 14px;
    transition: background-color 0.2s ease;
}

.podium-item:hover {
    background-color: var(--surface-container-highest) !important;
}

.podium-item .rank-badge {
    font-weight: 700;
    font-family: var(--font-mono);
    width: 28px;
    font-size: 14px;
}

.podium-item.gold .rank-badge { color: var(--podium-gold); }
.podium-item.silver .rank-badge { color: var(--podium-silver); }
.podium-item.bronze .rank-badge { color: var(--podium-bronze); }

.podium-item .name {
    flex: 1;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    color: var(--on-surface);
    padding: 0 10px;
}

.podium-item .pts {
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--primary);
    font-size: 14px;
}

/* Broadcast Timing & Telemetry Tables */
.f1-telemetry-table-wrapper,
.f1-table-responsive {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    background-color: var(--surface-container-low) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-xl) !important;
    margin-bottom: 32px;
    box-shadow: var(--shadow-card);
    box-sizing: border-box;
}

.f1-telemetry-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    white-space: nowrap;
}

.f1-telemetry-table th {
    background-color: var(--surface-container-lowest) !important;
    color: var(--outline) !important;
    padding: 12px 14px;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--border-line);
    text-align: left;
}

.f1-telemetry-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border-color);
    color: var(--on-surface);
    vertical-align: middle;
    font-family: var(--font-body);
}

.f1-telemetry-table tbody tr:nth-child(even) {
    background-color: var(--bg-row-alt);
}

.f1-telemetry-table tr:hover td {
    background-color: var(--surface-container-high) !important;
}

.f1-telemetry-table .pos-col,
.f1-telemetry-table .pos-cell {
    text-align: center;
    width: 60px;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 14px;
    color: var(--on-surface);
}

.f1-telemetry-table .num-col {
    text-align: center;
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--on-surface-variant);
}

.f1-telemetry-table .pts-cell {
    text-align: center;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 15px;
    color: var(--primary);
    background: rgba(67, 143, 255, 0.12);
    min-width: 64px;
}

.f1-telemetry-table th.th-pts {
    background: rgba(67, 143, 255, 0.22) !important;
    color: var(--primary-fixed) !important;
    text-align: center;
}

.f1-telemetry-table .driver-cell {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--on-surface);
    vertical-align: middle;
}

.f1-telemetry-table .driver-cell .f1-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    vertical-align: middle;
}

.f1-telemetry-table tr.podium-gold td.pos-cell { color: var(--podium-gold); font-size: 15px; }
.f1-telemetry-table tr.podium-silver td.pos-cell { color: var(--podium-silver); font-size: 15px; }
.f1-telemetry-table tr.podium-bronze td.pos-cell { color: var(--podium-bronze); font-size: 15px; }

.f1-telemetry-table tr.podium-gold { background-color: rgba(245, 158, 11, 0.04); }
.f1-telemetry-table tr.podium-silver { background-color: rgba(148, 163, 184, 0.04); }
.f1-telemetry-table tr.podium-bronze { background-color: rgba(205, 127, 50, 0.04); }

/* Badges & Tags */
.badge-fastest-lap {
    display: inline-block;
    background: rgba(123, 208, 255, 0.18);
    border: 1px solid var(--tertiary);
    color: var(--tertiary);
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    margin-left: 8px;
    font-family: var(--font-mono);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.badge-reclassified {
    display: inline-block;
    background: rgba(245, 158, 11, 0.18);
    border: 1px solid var(--podium-gold);
    color: #fde68a;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    margin-left: 8px;
    font-family: var(--font-mono);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.text-bonus {
    color: var(--tertiary);
    font-weight: 700;
    font-family: var(--font-mono);
}

.text-penalty {
    color: var(--secondary);
    font-weight: 700;
    font-family: var(--font-mono);
}

.f1-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* Buttons (Stitch Apex Broadcast Style) */
.button,
.btn-f1-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--surface-container-high);
    color: var(--on-surface);
    border: 1px solid var(--border-color);
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    padding: 12px 22px;
    border-radius: var(--radius-lg);
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    transition: all 0.2s ease;
}

.button:hover,
.btn-f1-secondary:hover {
    background-color: var(--surface-container-highest);
    color: #ffffff;
    border-color: var(--border-highlight);
    transform: translateY(-1px);
}

.button.button-primary,
.btn-f1-primary {
    background: linear-gradient(135deg, #ef4444 0%, #a40217 100%) !important;
    border: 1px solid rgba(255, 179, 173, 0.3) !important;
    color: #ffffff !important;
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 0.04em;
    box-shadow: var(--shadow-glow-red) !important;
}

.button.button-primary:hover,
.btn-f1-primary:hover {
    box-shadow: var(--shadow-glow-red-hover) !important;
    transform: translateY(-1px);
}

.button.button-outline,
.btn-f1-outline {
    background: rgba(67, 143, 255, 0.1) !important;
    border: 1px solid var(--primary-container) !important;
    color: var(--tertiary) !important;
    box-shadow: var(--shadow-glow-blue) !important;
}

.button.button-outline:hover,
.btn-f1-outline:hover {
    background: rgba(67, 143, 255, 0.22) !important;
    color: #ffffff !important;
    box-shadow: var(--shadow-glow-blue-hover) !important;
}

/* Stats Ribbon */
.telemetry-stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.stat-box {
    background-color: var(--surface-container-high);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 16px;
    text-align: center;
    box-shadow: var(--shadow-inset);
}

.stat-box .val {
    display: block;
    font-size: 24px;
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--on-surface);
    line-height: 1.1;
}

.stat-box .lbl {
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    color: var(--outline);
    font-weight: 600;
    letter-spacing: 0.06em;
    margin-top: 6px;
}

.stat-box.gold .val { color: var(--podium-gold); }
.stat-box.red .val { color: var(--accent-red); }
.stat-box.cyan .val { color: var(--tertiary); }

/* Form Controls & Inputs */
select,
input[type="text"],
input[type="email"],
input[type="number"],
input[type="url"],
textarea {
    background-color: var(--surface-container-lowest);
    border: 1px solid var(--border-color);
    color: var(--on-surface);
    font-family: var(--font-body);
    font-size: 14px;
    padding: 10px 14px;
    border-radius: var(--radius-lg);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

select:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
input[type="url"]:focus,
textarea:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 2px rgba(67, 143, 255, 0.25);
}

/* Footer (Stitch Minimal Broadcast Footer) */
.f1-footer {
    background-color: var(--surface-container-lowest);
    border-top: 1px solid var(--border-line);
    padding: 48px 0 24px;
    margin-top: auto;
    font-size: 13px;
    color: var(--outline);
}

.f1-footer-container {
    max-width: var(--ers-max);
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px;
}

/* Footer Partners */
.f1-footer-partners {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
}

.f1-partner-tile {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 8px 12px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    text-decoration: none;
    box-sizing: border-box;
}

.f1-partner-tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(67, 143, 255, 0.2);
    border-color: var(--border-highlight);
}

.f1-partner-tile img {
    max-height: 44px;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.f1-footer-bottom {
    max-width: var(--ers-max);
    margin: 36px auto 0;
    padding: 24px 24px 0;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    font-size: 12px;
    color: var(--outline);
}

/* Responsive Overrides */
@media (max-width: 900px) {
    .f1-header-container {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "logo socials"
            "nav  nav";
        align-items: center;
        row-gap: 8px;
        column-gap: 12px;
        padding: 10px 14px 4px;
        max-width: 100vw;
        box-sizing: border-box;
    }

    .f1-logo {
        grid-area: logo;
        justify-self: start;
        gap: 8px;
        font-size: 16px;
    }

    .f1-logo-img-wrap {
        width: 36px;
        height: 36px;
    }

    .f1-logo span.telemetry-txt {
        font-size: 10px;
    }

    .f1-header-socials {
        grid-area: socials;
        justify-self: end;
        gap: 8px;
    }

    .f1-live-badge {
        padding: 5px 10px;
        font-size: 11px;
        gap: 6px;
    }

    .f1-header-socials a[title="Instagram Oficial"] {
        width: 30px !important;
        height: 30px !important;
    }

    .f1-header-socials a[title="Instagram Oficial"] svg {
        width: 14px;
        height: 14px;
    }

    /* Container de navegacao com rolagem horizontal fluida lado a lado */
    .f1-header-container nav,
    .f1-header-nav {
        grid-area: nav;
        width: 0;
        min-width: 100%;
        max-width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding: 4px 0 8px;
        margin: 0;
        display: flex;
    }

    .f1-header-container nav::-webkit-scrollbar,
    .f1-header-nav::-webkit-scrollbar {
        display: none;
    }

    .f1-nav {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: flex-start;
        gap: 4px;
        margin: 0;
        padding: 0;
        width: max-content;
        list-style: none;
    }

    .f1-nav li {
        flex: 0 0 auto;
    }

    .f1-nav li a {
        display: inline-flex;
        align-items: center;
        white-space: nowrap;
        font-size: 13px;
        padding: 8px 12px 10px;
        min-height: 40px;
    }

    .f1-nav li a::after {
        left: 10px;
        right: 10px;
    }

    .f1-hero, .f1-page-hero {
        padding: 24px 20px;
    }
    .f1-hero h1, .f1-page-hero h1 {
        font-size: 28px;
    }
    .f1-telemetry-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .f1-logo span.telemetry-txt {
        display: none;
    }
}

@media (max-width: 600px) {
    .f1-hero-stats {
        flex-direction: column;
        gap: 16px;
    }
    .f1-footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

.f1-champions-table {
    table-layout: fixed !important;
    width: 100% !important;
    min-width: 0 !important;
    white-space: normal !important;
}

.f1-champions-table th,
.f1-champions-table td {
    box-sizing: border-box;
}

@media (min-width: 769px) {
    .f1-champions-table th:nth-child(1),
    .f1-champions-table td:nth-child(1) {
        width: 72px !important;
    }
    .f1-champions-table th:nth-child(3),
    .f1-champions-table td:nth-child(3) {
        width: 62% !important;
        text-align: center !important;
    }
}

@media (max-width: 600px) {
    .f1-main-content {
        padding: 20px 12px 48px;
    }
    .f1-champions-table th {
        font-size: 10px !important;
        letter-spacing: 0.04em !important;
    }
}
