/* F1-inspired Color Variables */
:root {
    --f1-red: #E10600;
    --f1-dark-red: #B80500;
    --f1-black: #15151E;
    --f1-dark: #1F1F2B;
    --f1-gray: #38383F;
    --f1-light-gray: #D1D5DB;
    --f1-white: #FFFFFF;
    --f1-silver: #E8E8E8;

    /* F1 Flag Colors */
    --f1-yellow: #E8C84D;  /* Caution/Yellow flag */
    --f1-green: #3BD66A;   /* Start/Go lights */
    --f1-blue: #00AEEF;    /* Blue flag */

    /* Checkered Flag Pattern */
    --f1-checkered: repeating-conic-gradient(
        #000 0% 25%,
        #FFF 0% 50%
    );
    --f1-checkered-size: 20px 20px;

    /* Team Colors */
    --team-redbull: #3671C6;
    --team-ferrari: #F91536;
    --team-mercedes: #27F4D2;
    --team-mclaren: #FF8700;
    --team-astonmartin: #229971;
    --team-alpine: #FF87BC;
    --team-williams: #64C4FF;
    --team-alphatauri: #5E8FAA;
    --team-alfaromeo: #C92D4B;
    --team-haas: #B6BABD;
}

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

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

body {
    font-family: 'Chakra Petch', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, var(--f1-black) 0%, var(--f1-dark) 50%, #181824 100%);
    color: var(--f1-white);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    width: 100%;
}

/* Prevent images from causing horizontal overflow */
img, picture, video, canvas, svg {
    max-width: 100%;
    height: auto;
    display: block;
}


/* Focus Visible Styles - Keyboard Accessibility */
*:focus:not(:focus-visible) {
    outline: none;
}

*:focus-visible {
    outline: 2px solid var(--f1-red);
    outline-offset: 2px;
    border-radius: 2px;
}

/* Interactive Elements - Focus Visible */
a:focus-visible,
button:focus-visible,
.nav-link:focus-visible,
.cta-btn:focus-visible,
.search-toggle:focus-visible,
.mobile-menu-toggle:focus-visible,
.category-tab:focus-visible,
.share-btn:focus-visible,
.back-to-top:focus-visible,
.submit-prediction-btn:focus-visible {
    outline: 2px solid var(--f1-red);
    outline-offset: 3px;
}

/* Form Inputs - Focus Visible */
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--f1-red);
    outline-offset: 2px;
    border-color: var(--f1-red) !important;
}

/* Visually Hidden for Screen Readers */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Animated Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 50%, rgba(225, 6, 0, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(225, 6, 0, 0.02) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 clamp(20px, 3vw, 48px);
}

/* Header */
.header {
    background: linear-gradient(135deg, var(--f1-black) 0%, var(--f1-dark) 100%);
    border-bottom: 3px solid var(--f1-red);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: none;
}

/* Reading Progress Bar - F1 Telemetry Style */
.reading-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg,
        var(--f1-red) 0%,
        var(--f1-yellow) 50%,
        var(--f1-green) 100%);
    z-index: 1001;
    transition: width 0.1s linear;
    box-shadow: 0 0 10px var(--f1-red);
}

.reading-progress-bar::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    width: 20px;
    height: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 255, 255, 0.8));
    /* animation retired (Stage 3): calm the page */
}

@keyframes progressGlow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand h1, .brand .brand-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 2.2rem;
    font-weight: 400;
    background: linear-gradient(90deg, var(--f1-white) 0%, var(--f1-red) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.subtitle {
    font-size: 0.75rem;
    color: var(--f1-light-gray);
    letter-spacing: 3px;
    margin-left: 10px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--f1-white);
    text-decoration: none;
    padding: 12px 20px;
    min-height: 44px;
    border: 2px solid var(--f1-red);
    border-radius: 5px;
    font-weight: 500;
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.nav-link:hover {
    background: var(--f1-red);
    box-shadow: none;
    transform: translateY(-2px);
}

.f1wow-logo {
    height: 30px;
    width: auto;
    object-fit: contain;
}
}

.follower-counter {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--f1-white);
    padding: 10px 20px;
    border: 2px solid var(--f1-red);
    border-radius: 5px;
    font-weight: 500;
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.follower-counter:hover {
    background: var(--f1-red);
    box-shadow: none;
    transform: translateY(-2px);
}

.follower-count {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--f1-red);
}

.follower-counter:hover .follower-count {
    color: white;
}

.follower-label {
    font-size: 0.75rem;
    color: var(--f1-light-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: 2px solid var(--f1-red);
    border-radius: 5px;
    cursor: pointer;
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: var(--f1-red);
}

.mobile-menu-toggle .hamburger-icon {
    display: block;
}

.mobile-menu-toggle .close-icon {
    display: none;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-icon {
    display: none;
}

.mobile-menu-toggle[aria-expanded="true"] .close-icon {
    display: block;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 12px;
        padding: 20px;
        background: var(--nav-bg);
        backdrop-filter: blur(10px);
        border-bottom: 1px solid var(--border-color);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }

    .nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-link,
    .follower-counter,
    .theme-toggle {
        width: 100%;
        justify-content: center;
    }

    .header {
        padding: 15px 0;
    }
}

/* Subscriber Count in Nav */
.subscriber-count {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 15px;
    background: rgba(34, 197, 94, 0.1);
    border: 2px solid var(--f1-red);
    border-radius: 5px;
    cursor: pointer;
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}

.subscriber-count:hover {
    background: rgba(34, 197, 94, 0.2);
}

.subscriber-count svg {
    flex-shrink: 0;
}

.subscriber-count span {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--f1-white);
}

/* Main Content */
.main {
    padding: 0;
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 40px 0 50px;
    overflow: hidden;
    z-index: 1;
    min-height: 450px;
}

/* F1 Car GIF Background */
.hero-car-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -2;
}

.hero-car-gif {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    filter: brightness(1.3) contrast(1.2);
}

/* Speed Lines Overlay */
.hero-speed-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

.speed-line {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(225, 6, 0, 0.4), transparent);
    left: -50%;
    animation: speedLine 2s linear infinite;
}

.speed-line:nth-child(1) {
    top: 20%;
    left: -50%;
    width: 40%;
    animation-delay: 0s;
}

.speed-line:nth-child(2) {
    top: 50%;
    left: -50%;
    width: 35%;
    animation-delay: 0.7s;
}

.speed-line:nth-child(3) {
    top: 80%;
    left: -50%;
    width: 45%;
    animation-delay: 1.4s;
}

@keyframes speedLine {
    0% { transform: translateX(0); opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { transform: translateX(300vw); opacity: 0; }
}

/* Dark overlay to make text readable */
.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(21, 21, 30, 0.88) 0%, rgba(21, 21, 30, 0.75) 50%, rgba(21, 21, 30, 0.88) 100%);
    z-index: -1;
    pointer-events: none;
}

/* Diagonal Racing Stripe Pattern */
.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 30px,
        rgba(225, 6, 0, 0.04) 30px,
        rgba(225, 6, 0, 0.04) 31px,
        transparent 31px,
        transparent 60px,
        rgba(255, 255, 255, 0.02) 60px,
        rgba(255, 255, 255, 0.02) 61px,
        transparent 61px,
        transparent 120px
    );
    /* animation retired (Stage 3): calm the page */
    z-index: -1;
    pointer-events: none;
}

@keyframes stripeMove {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    100% {
        transform: translate(50px, 50px) rotate(0deg);
    }
}

/* Asphalt Texture Overlay */
.hero-section {
    background-image:
        url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.08'/%3E%3C/svg%3E");
    background-attachment: fixed;
}

/* Red Racing Glow at Hero Bottom - Combined with Dark Overlay */
.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(180deg, rgba(21, 21, 30, 0.88) 0%, rgba(21, 21, 30, 0.75) 50%, rgba(21, 21, 30, 0.88) 100%),
        linear-gradient(90deg, transparent 0%, var(--f1-red) 20%, var(--f1-red) 80%, transparent 100%);
    background-position:
        0 0,
        0 100%;
    background-size:
        100% 100%,
        100% 4px;
    background-repeat:
        no-repeat,
        no-repeat;
    z-index: -1;
    pointer-events: none;
    box-shadow: 0 -2px 30px rgba(225, 6, 0, 0.4);
    /* animation retired (Stage 3): calm the page */
}

@keyframes heroGlow {
    0%, 100% {
        box-shadow: 0 -2px 30px rgba(225, 6, 0, 0.3);
    }
    50% {
        box-shadow: 0 -2px 50px rgba(225, 6, 0, 0.6);
    }
}

@keyframes glowPulse {
    0%, 100% {
        opacity: 0.6;
        box-shadow: 0 -2px 20px rgba(225, 6, 0, 0.4);
    }
    50% {
        opacity: 1;
        box-shadow: 0 -2px 40px rgba(225, 6, 0, 0.8);
    }
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(90deg, var(--f1-red) 0%, var(--f1-dark-red) 100%);
    color: var(--f1-white);
    padding: 6px 16px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
    position: relative;
    overflow: hidden;
}

/* Checkered Flag Decoration */
.hero-badge span {
    display: block;
}

.hero-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(3.5rem, 8vw, 6rem);
    font-weight: 800;
    line-height: 0.95;
    margin-bottom: 10px;
    color: var(--f1-white);
    text-transform: uppercase;
    letter-spacing: 0.01em;
    text-wrap: balance;
}

@keyframes shimmer {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 100% center; }
}

.hero-subtitle {
    font-size: 0.85rem;
    color: var(--f1-silver);
    margin-bottom: 8px;
    opacity: 0.9;
}

/* Social Proof */
.hero-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--f1-light-gray);
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.hero-social svg {
    color: #E10600;
}

.hero-social strong {
    color: var(--f1-red);
    font-weight: 700;
}

.hero-social .separator {
    color: rgba(255, 255, 255, 0.55);
    margin: 0 4px;
}

.hero-social a {
    color: var(--f1-white);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.hero-social a:hover {
    color: var(--f1-red);
}

/* Countdown Timer */
.countdown-container {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.countdown-item {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 6px 12px;
    min-width: 50px;
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}

.countdown-item:hover {
    transform: translateY(-2px);
    border-color: var(--f1-red);
    box-shadow: none;
}

.countdown-number {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--f1-red);
    display: block;
    line-height: 1;
}

.countdown-label {
    font-family: 'Chakra Petch', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--f1-light-gray);
}

/* Countdown Group - Centered */
.countdown-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
}

/* CTA Buttons */
.hero-cta {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 14px 22px;
    min-height: 44px;
    border-radius: 25px;
    font-family: 'Chakra Petch', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
    border: 2px solid transparent;
}

.cta-btn span {
    font-size: 0.9rem;
}

.cta-primary {
    background: linear-gradient(135deg, var(--f1-red) 0%, var(--f1-dark-red) 100%);
    color: var(--f1-white);
    box-shadow: none;
}

.cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: none;
}

.cta-secondary {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: var(--f1-white);
    border-color: rgba(255, 255, 255, 0.55);
}

.cta-secondary:hover {
    background: rgba(225, 6, 0, 0.3);
    border-color: var(--f1-red);
    transform: translateY(-2px);
}

/* Countdown Timer */
.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}

.next-race-name {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.9rem;
    color: var(--f1-white);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(225, 6, 0, 0.3);
    transform: translateY(-3px);
    box-shadow: none;
}

/* Main Content Padding */
.content-section {
    padding: 40px 0;
}

/* Articles Grid with improved styling */
.articles-section {
    position: relative;
    z-index: 1;
    margin-bottom: 120px;
    padding-bottom: 40px;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

/* Compact Search Wrapper */
.compact-search-wrapper {
    max-width: 700px;
    margin: 30px auto 10px;
    position: relative;
    z-index: 10;
}

.compact-search-container {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: rgba(21, 21, 30, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}

.compact-search-container:focus-within {
    border-color: rgba(225, 6, 0, 0.5);
    box-shadow: none;
}

.compact-search-container .search-icon {
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
}

.compact-search-container .search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-family: 'Chakra Petch', sans-serif;
    font-size: 0.95rem;
    color: var(--f1-white);
    padding: 0;
}

.compact-search-container .search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search-toggle {
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: rgba(255, 255, 255, 0.6);
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}

.search-toggle:hover {
    background: rgba(225, 6, 0, 0.2);
    color: var(--f1-red);
}

.search-toggle.active {
    background: var(--f1-red);
    color: white;
}

/* Search Filters - Collapsible */
.search-filters {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, margin-top 0.3s ease;
}

.search-filters.expanded {
    max-height: 100px;
    margin-top: 15px;
}

.search-filters .search-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

/* Search Section (Legacy - kept for other pages) */
.search-section {

.search-container {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    position: relative;
}

.search-icon {
    color: var(--f1-light-gray);
    display: flex;
    align-items: center;
    width: 16px;
    height: 16px;
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-family: 'Chakra Petch', sans-serif;
    font-size: 0.85rem;
    color: var(--f1-white);
    padding: 5px 0;
}

.search-input::placeholder {
    color: var(--f1-light-gray);
}

.search-clear {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--f1-light-gray);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.8rem;
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-clear:hover {
    background: var(--f1-red);
    color: var(--f1-white);
}

.search-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
    justify-content: center;
}

.search-tag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--f1-light-gray);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.search-tag:hover,
.search-tag.active {
    background: var(--f1-red);
    color: var(--f1-white);
    border-color: var(--f1-red);
}

.search-results {
    margin-top: 20px;
}

.search-no-results {
    text-align: center;
    padding: 30px;
    color: var(--f1-light-gray);
    font-style: italic;
}

/* Search Section */
.search-section {
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.search-container {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    position: relative;
}

.search-icon {
    color: var(--f1-light-gray);
    display: flex;
    align-items: center;
    width: 16px;
    height: 16px;
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-family: 'Chakra Petch', sans-serif;
    font-size: 0.85rem;
    color: var(--f1-white);
    padding: 5px 0;
}

.search-input::placeholder {
    color: var(--f1-light-gray);
}

.search-clear {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--f1-light-gray);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.8rem;
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-clear:hover {
    background: var(--f1-red);
    color: var(--f1-white);
}

.search-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
    justify-content: center;
}

.search-tag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--f1-light-gray);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.search-tag:hover,
.search-tag.active {
    background: var(--f1-red);
    color: var(--f1-white);
    border-color: var(--f1-red);
}

.search-results {
    margin-top: 20px;
}

.search-no-results {
    text-align: center;
    padding: 30px;
    color: var(--f1-light-gray);
    font-style: italic;
}
}

.prediction-bar-track {
    flex: 1;
    height: 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    overflow: hidden;
}

.prediction-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--f1-red) 0%, var(--f1-dark-red) 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 12px;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--f1-white);
    transition: width 0.5s ease;
    min-width: 40px;
}

/* Articles Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

/* Sub Header */
.sub-header {
    margin-top: 40px;
}

.sub-header h3 {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Category Tabs */
.category-tabs-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 30px 0 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.category-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.category-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    min-height: 44px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    color: rgba(255, 255, 255, 0.6);
    font-family: 'Chakra Petch', sans-serif;
    font-size: 1rem;
    cursor: pointer;
    transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* Tab ripple effect on hover */
.category-tab::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(225, 6, 0, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}

.category-tab:hover::before {
    width: 300px;
    height: 300px;
}
    font-weight: 500;
    cursor: pointer;
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.category-tab:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.55);
    color: var(--f1-white);
}

.category-tab.active {
    background: var(--f1-red);
    border-color: var(--f1-red);
    color: white;
    animation: tabActivate 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes tabActivate {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.tab-icon {
    font-size: 1rem;
}

.articles-count {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.65);
}

.articles-count span {
    font-weight: 700;
    color: var(--f1-red);
}

@media (max-width: 600px) {
    .category-tabs-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .category-tabs {
        gap: 6px;
    }

    .category-tab {
        padding: 10px 14px;
        min-height: 44px;
        font-size: 0.8rem;
    }
}

/* Featured Article */
.featured-article {
    display: flex;
    align-items: center;
    gap: 30px;
    background: linear-gradient(135deg, rgba(225, 6, 0, 0.15), rgba(21, 21, 30, 0.9));
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 35px;
    border: 2px solid rgba(225, 6, 0, 0.3);
    text-decoration: none;
    color: inherit;
    transition: color 0.4s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.4s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
    transform-style: preserve-3d;
    perspective: 1000px;
}

/* Animated Racing Stripe Border */
.featured-article::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 20px,
        rgba(225, 6, 0, 0.3) 20px,
        rgba(225, 6, 0, 0.3) 22px
    );
    transition: left 0.6s ease;
    z-index: 1;
    pointer-events: none;
}

/* Checkered Flag Pattern Overlay */
.featured-article::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: repeating-conic-gradient(
        rgba(0,0,0,0.1) 0% 25%,
        transparent 0% 50%
    );
    background-size: 20px 20px;
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 0 24px 0 0;
}

.featured-article:hover::before {
    left: 100%;
}

.featured-article:hover::after {
    opacity: 1;
}

.featured-article:hover {
    border-color: rgba(225, 6, 0, 0.8);
    transform: translateY(-8px) rotateX(2deg) scale(1.01);
    box-shadow:
        0 30px 80px rgba(225, 6, 0, 0.5),
        0 0 0 1px rgba(225, 6, 0, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.15);
}

.featured-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: linear-gradient(135deg, var(--f1-red), #ff3333);
    color: white;
    border-radius: 50px;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    flex-shrink: 0;
}

.featured-badge svg {
    width: 16px;
    height: 16px;
}

.featured-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.featured-category {
    display: inline-block;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--f1-red);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.featured-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--f1-white);
    line-height: 1.3;
}

.featured-excerpt {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
}

.featured-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.featured-date,
.featured-event,
.featured-driver {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.65);
}

.featured-divider {
    color: rgba(255, 255, 255, 0.55);
}

.featured-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(225, 6, 0, 0.2);
    border-radius: 50%;
    flex-shrink: 0;
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}

.featured-arrow svg {
    width: 24px;
    height: 24px;
    color: var(--f1-red);
}

.featured-article:hover .featured-arrow {
    background: var(--f1-red);
    transform: translateX(5px);
}

.featured-article:hover .featured-arrow svg {
    color: white;
}

/* Responsive Featured Article */
@media (max-width: 900px) {
    .featured-article {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        padding: 25px;
    }

    .featured-badge {
        align-self: flex-start;
    }

    .featured-title {
        font-size: 1.4rem;
    }

    .featured-arrow {
        align-self: flex-end;
    }
}

.article-preview-card {
    background: rgba(21, 21, 30, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-decoration: none;
    color: inherit;
    transition: color 0.4s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.4s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    position: relative;
    transform-style: preserve-3d;
    perspective: 1000px;
}

/* Racing Line Accent on Left */
.article-preview-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--f1-red) 0%, var(--f1-dark-red) 100%);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
}

/* Sweep Light Effect */
.article-preview-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(225, 6, 0, 0.15), transparent);
    transition: left 0.6s ease;
    z-index: 5;
    pointer-events: none;
}

.article-preview-card:hover::before {
    transform: scaleY(1);
}

/* Team Color Accents - recolor the racing-line accent per team */
.article-preview-card[data-team="mercedes"]::before { background: linear-gradient(180deg, var(--team-mercedes) 0%, #1a9c8a 100%); }
.article-preview-card[data-team="ferrari"]::before { background: linear-gradient(180deg, var(--team-ferrari) 0%, #b80f28 100%); }
.article-preview-card[data-team="mclaren"]::before { background: linear-gradient(180deg, var(--team-mclaren) 0%, #cc6c00 100%); }
.article-preview-card[data-team="redbull"]::before { background: linear-gradient(180deg, var(--team-redbull) 0%, #244a8a 100%); }
.article-preview-card[data-team="astonmartin"]::before { background: linear-gradient(180deg, var(--team-astonmartin) 0%, #18634a 100%); }
.article-preview-card[data-team="alpine"]::before { background: linear-gradient(180deg, var(--team-alpine) 0%, #cc6c95 100%); }
.article-preview-card[data-team="racingbulls"]::before { background: linear-gradient(180deg, #6692FF 0%, #244a8a 100%); }

.article-preview-card:hover::after {
    left: 100%;
}

.article-preview-card:hover {
    transform: translateY(-8px) rotateX(3deg) scale(1.02);
    border-color: rgba(225, 6, 0, 0.5);
    box-shadow:
        0 20px 60px rgba(225, 6, 0, 0.4),
        0 0 0 1px rgba(225, 6, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.article-preview-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 2px solid var(--f1-red);
}

.article-preview-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-preview-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 0.75rem;
}

.preview-category {
    background: var(--f1-gray);
    color: var(--f1-white);
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.75rem;
    position: relative;
    overflow: hidden;
}

/* Breaking News - Yellow with Flash */
.preview-category.breaking {
    background: var(--f1-yellow);
    color: #000;
    /* animation retired (Stage 3): calm the page */
    font-weight: 700;
}

@keyframes breakingFlash {
    0%, 100% {
        background: var(--f1-yellow);
        box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    }
    50% {
        background: #FFA500;
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
    }
}

/* Race Report - Green (Start/Go) */
.preview-category:where([data-category="race"], .race-report) {
    background: var(--f1-green);
    color: #000;
    font-weight: 700;
}

/* Technical - Blue */
.preview-category:where([data-category="technical"], .technical) {
    background: var(--f1-blue);
    color: #FFF;
}

.preview-date {
    color: var(--f1-light-gray);
}

.article-preview-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.3rem;
    font-weight: 400;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
    color: var(--f1-white);
}

.article-preview-excerpt {
    font-size: 0.9rem;
    color: var(--f1-silver);
    line-height: 1.6;
    margin-bottom: 15px;
    flex: 1;
}

.article-preview-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.75rem;
}

.preview-driver {
    color: var(--f1-red);
    font-weight: 500;
}

.preview-event {
    color: var(--f1-light-gray);
}

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

/* Section Headers */
.section-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    position: relative;
}

.section-header::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--f1-red) 0%, transparent 100%);
}

.section-header h2 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 2.2rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 5px;
    background: linear-gradient(135deg, var(--f1-white) 0%, var(--f1-silver) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.live-badge {
    background: var(--f1-green);
    color: #000;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: livePulse 2s infinite;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Live indicator dot */
.live-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #000;
    border-radius: 50%;
    animation: liveDot 1s ease-in-out infinite;
}

@keyframes livePulse {
    0%, 100% {
        box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
    }
    50% {
        box-shadow: 0 0 25px rgba(0, 255, 0, 0.8);
    }
}

@keyframes liveDot {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(0.7); }
}

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

/* Article Card */
.article-card {
    background: var(--f1-black);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--f1-gray);
    margin-bottom: 40px;
}

.article-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-bottom: 3px solid var(--f1-red);
}

.article-content {
    padding: 30px;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 0.85rem;
    color: var(--f1-light-gray);
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.article-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.3;
    color: var(--f1-white);
}

.article-quote {
    background: linear-gradient(135deg, rgba(225, 6, 0, 0.1) 0%, rgba(0, 0, 0, 0.3) 100%);
    border-left: 4px solid var(--f1-red);
    padding: 20px 25px;
    margin: 20px 0;
    font-style: italic;
    font-size: 1.1rem;
    color: var(--f1-silver);
    position: relative;
}

.article-quote::before {
    content: '"';
    font-size: 4rem;
    color: var(--f1-red);
    position: absolute;
    top: -10px;
    left: 10px;
    opacity: 0.3;
    font-family: Georgia, serif;
}

.quote-text {
    margin: 0;
    position: relative;
    z-index: 1;
    line-height: 1.6;
}

.quote-attribution {
    display: block;
    margin-top: 15px;
    font-size: 0.9rem;
    color: var(--f1-red);
    font-style: normal;
    font-weight: 500;
}

.article-source {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--f1-gray);
    font-size: 0.9rem;
    color: var(--f1-light-gray);
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.tag {
    background: var(--f1-gray);
    color: var(--f1-white);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}

.tag:hover {
    background: var(--f1-red);
    transform: translateY(-2px);
}

.article-placeholder {
    padding: 40px;
    text-align: center;
    color: var(--f1-light-gray);
}

/* Article Body Content */
.article-body {
    margin-top: 25px;
}

.article-paragraph {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--f1-silver);
    margin-bottom: 20px;
}

.article-subheading {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--f1-white);
    margin-top: 30px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--f1-red);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.article-list {
    list-style: none;
    padding-left: 0;
    margin: 20px 0;
}

.article-list li {
    padding: 12px 0 12px 30px;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--f1-silver);
    line-height: 1.6;
}

.article-list li:last-child {
    border-bottom: none;
}

.article-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--f1-red);
    font-weight: 700;
    font-size: 1.2rem;
}

.article-inline-quote {
    background: linear-gradient(135deg, rgba(225, 6, 0, 0.08) 0%, rgba(0, 0, 0, 0.2) 100%);
    border-left: 3px solid var(--f1-red);
    padding: 20px 25px;
    margin: 25px 0;
    border-radius: 0 8px 8px 0;
}

.article-inline-quote p {
    font-size: 1.05rem;
    font-style: italic;
    color: var(--f1-white);
    margin: 0;
    line-height: 1.6;
}

.article-inline-quote cite {
    display: block;
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--f1-red);
    font-style: normal;
    font-weight: 500;
}

.article-source a {
    color: var(--f1-red);
    text-decoration: none;
    font-weight: 500;
}

.article-source a:hover {
    text-decoration: underline;
}

/* Standings Section */
.standings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
}

.standings-card {
    background: rgba(21, 21, 30, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}

.standings-card:hover {
    border-color: rgba(225, 6, 0, 0.3);
    transform: translateY(-3px);
    box-shadow: none;
}

.standings-card h3 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    padding: 20px 25px;
    background: linear-gradient(135deg, var(--f1-dark-red) 0%, var(--f1-red) 100%);
    text-transform: uppercase;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.year {
    font-size: 0.8rem;
    opacity: 0.8;
}

.standings-list {
    padding: 15px 0;
}

.loading {
    text-align: center;
    padding: 40px;
    color: var(--f1-light-gray);
    font-style: italic;
}

/* Standing Item */
.standing-item {
    display: grid;
    grid-template-columns: 40px 50px 1fr auto;
    align-items: center;
    gap: 15px;
    padding: 12px 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
    cursor: pointer;
}

.team-logo {
    width: 55px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    position: relative;
    overflow: hidden;
}

.team-logo::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 50%);
}

.team-logo.logo-rbr { background: linear-gradient(135deg, #3671C6 0%, #1B4B8C 100%); }
.team-logo.logo-fer { background: linear-gradient(135deg, #F91536 0%, #C91229 100%); }
.team-logo.logo-mer { background: linear-gradient(135deg, #27F4D2 0%, #00A89C 100%); color: #000; text-shadow: none; }
.team-logo.logo-mcl { background: linear-gradient(135deg, #FF8700 0%, #CC6D00 100%); }
.team-logo.logo-ast { background: linear-gradient(135deg, #229971 0%, #1A7A5A 100%); }
.team-logo.logo-alp { background: linear-gradient(135deg, #FF87BC 0%, #CC6A97 100%); }
.team-logo.logo-wil { background: linear-gradient(135deg, #64C4FF 0%, #509ECC 100%); color: #000; text-shadow: none; }
.team-logo.logo-rbt { background: linear-gradient(135deg, #5E8FAA 0%, #4A7388 100%); }
.team-logo.logo-sau { background: linear-gradient(135deg, #52E252 0%, #3CB343 100%); }
.team-logo.logo-aud { background: linear-gradient(135deg, #1E1E1E 0%, #000000 100%); border: 1px solid #444; }
.team-logo.logo-haas { background: linear-gradient(135deg, #B6BABD 0%, #929597 100%); color: #000; text-shadow: none; }
.team-logo.logo-cad { background: linear-gradient(135deg, #E6000F 0%, #B8000C 100%); }

.standing-item:last-child {
    border-bottom: none;
}

.standing-item:hover {
    background: rgba(225, 6, 0, 0.1);
}

.standing-position {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--f1-light-gray);
    width: 30px;
    text-align: center;
}

.standing-item:first-child .standing-position,
.standing-item:nth-child(2) .standing-position,
.standing-item:nth-child(3) .standing-position {
    color: var(--f1-white);
}

.standing-item:first-child .standing-position {
    color: #FFD700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.standing-item:nth-child(2) .standing-position {
    color: #C0C0C0;
}

.standing-item:nth-child(3) .standing-position {
    color: #CD7F32;
}

.standing-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.team-color {
    width: 8px;
    height: 30px;
    border-radius: 4px;
}

.standing-name {
    font-weight: 500;
    font-size: 0.95rem;
}

.standing-points {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    color: var(--f1-red);
    font-size: 1rem;
}

/* Subscribe Section */
.subscribe-section {
    margin-top: 100px;
    padding: 60px 0;
    background: linear-gradient(135deg, rgba(225, 6, 0, 0.08) 0%, rgba(225, 6, 0, 0.03) 100%);
    border-top: 1px solid rgba(225, 6, 0, 0.2);
    border-bottom: 1px solid rgba(225, 6, 0, 0.2);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.subscribe-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--f1-red), transparent);
    /* animation retired (Stage 3): calm the page */
}

/* duplicate @keyframes shimmer removed (Stage 3) */

.subscribe-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
}

.subscribe-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: rgba(225, 6, 0, 0.15);
    border-radius: 50%;
    color: var(--f1-red);
}

.subscribe-section h2 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 2rem;
    color: var(--f1-white);
    margin-bottom: 15px;
}

.subscribe-section > p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 30px;
    line-height: 1.6;
}

.subscribe-form {
    max-width: 500px;
    margin: 0 auto 25px;
}

.subscribe-input-group {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.subscribe-input {
    flex: 1;
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--f1-white);
    font-size: 1rem;
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
    font-family: 'Chakra Petch', sans-serif;
}

.subscribe-input:focus {
    outline: none;
    border-color: var(--f1-red);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(225, 6, 0, 0.1);
}

.subscribe-input:focus-visible {
    outline: 2px solid var(--f1-red);
    outline-offset: 2px;
}

.subscribe-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.subscribe-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    background: var(--f1-red);
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
    white-space: nowrap;
    font-family: 'Chakra Petch', sans-serif;
}

.subscribe-btn:hover {
    background: #ff1a1a;
    transform: translateY(-2px);
    box-shadow: none;
}

.subscribe-btn:active {
    transform: translateY(0);
}

.subscribe-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.subscribe-btn .btn-icon {
    transition: transform 0.3s ease;
}

.subscribe-btn:hover .btn-icon {
    transform: translateX(4px);
}

.subscribe-note {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 25px;
}

.subscribe-social {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 30px;
    color: var(--f1-white);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(220, 35, 70, 0.4);
}

/* Subscribe Notification */
.subscribe-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 28px;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    border-radius: 14px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.4);
    z-index: 10000;
    font-weight: 500;
    font-size: 0.95rem;
    animation: slideInRight 0.4s ease;
}

.subscribe-notification.error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.subscribe-notification.info {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.subscribe-notification.hiding {
    animation: slideOutRight 0.3s ease forwards;
}

.subscribe-notification svg {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
}

@keyframes slideInRight {
    from {
        transform: translateX(120%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(120%);
        opacity: 0;
    }
}

/* Admin Panel */
.admin-panel {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 500px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border: 1px solid rgba(225, 6, 0, 0.3);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    z-index: 10000;
}

.admin-panel.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

.admin-content {
    padding: 30px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-header h3 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.3rem;
    color: var(--f1-white);
    margin: 0;
}

.admin-close {
    background: none;
    border: none;
    color: #D1D5DB;
    font-size: 28px;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: color 0.2s, background-color 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}

.admin-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.admin-stats {
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
}

.admin-stat {
    text-align: center;
    padding: 20px 30px;
    background: rgba(225, 6, 0, 0.1);
    border-radius: 15px;
    border: 1px solid rgba(225, 6, 0, 0.2);
}

.stat-value {
    display: block;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--f1-red);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--f1-light-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.admin-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}

.admin-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--f1-white);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}

.admin-btn:hover {
    background: rgba(225, 6, 0, 0.2);
    border-color: var(--f1-red);
}

.notify-btn:hover {
    background: var(--f1-red);
    border-color: var(--f1-red);
}

.export-btn:hover {
    background: #22c55e;
    border-color: #22c55e;
}

.clear-btn:hover {
    background: #ef4444;
    border-color: #ef4444;
}

.admin-article-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-input {
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--f1-white);
    font-size: 0.9rem;
}

.admin-input:focus {
    outline: none;
    border-color: var(--f1-red);
}

.admin-input:focus-visible {
    outline: 2px solid var(--f1-red);
    outline-offset: 2px;
}

.send-btn {
    background: linear-gradient(135deg, var(--f1-red), #ff3333);
    border: none;
}

.send-btn:hover {
    transform: translateY(-2px);
    box-shadow: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@media (max-width: 600px) {
    .admin-panel {
        width: 95%;
        max-width: none;
    }

    .admin-content {
        padding: 20px;
    }
}

/* Footer */
.footer {
    background: var(--f1-black);
    border-top: 2px solid var(--f1-gray);
    padding: 30px 0;
    margin-top: 50px;
    text-align: center;
}

.footer p {
    color: var(--f1-light-gray);
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--f1-red);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--f1-white);
}

/* Schedule Section */
.schedule-section {
    margin-top: 40px;
}

.race-count {
    background: var(--f1-gray);
    color: var(--f1-white);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.race-card {
    background: rgba(21, 21, 30, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 15px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: color 0.4s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.4s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
}

.race-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(225, 6, 0, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.race-card:hover::after {
    opacity: 1;
}

.race-card:hover {
    border-color: rgba(225, 6, 0, 0.4);
    transform: translateY(-3px) scale(1.02);
    box-shadow: none;
}

.race-card.completed {
    border-left: 3px solid var(--f1-red);
}

.race-card.next-race {
    border: 2px solid var(--f1-red);
    background: linear-gradient(135deg, rgba(225, 6, 0, 0.15) 0%, rgba(0, 0, 0, 0.3) 100%);
}

.race-card.upcoming {
    border-left: 3px solid var(--f1-light-gray);
    opacity: 0.7;
}

.race-round {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--f1-red);
    min-width: 50px;
    text-align: center;
}

.race-info {
    flex: 1;
}

.race-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--f1-white);
    margin-bottom: 4px;
}

.race-date {
    font-size: 0.75rem;
    color: var(--f1-light-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.race-badge {
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 10px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
}

.race-badge.completed {
    background: var(--f1-red);
    color: var(--f1-white);
}

.race-badge.next {
    background: #FFD700;
    color: var(--f1-black);
    /* animation retired (Stage 3): calm the page */
}

.race-badge.upcoming {
    background: var(--f1-gray);
    color: var(--f1-light-gray);
}

.race-card.cancelled {
    border-left: 3px solid #666;
    opacity: 0.5;
}

.race-badge.cancelled {
    background: #666;
    color: var(--f1-white);
}

/* Responsive Design */
@media (max-width: 768px) {
    .brand h1, .brand .brand-title {
        font-size: 1.3rem;
    }

    .subtitle {
        display: none;
    }

    .article-title {
        font-size: 1.3rem;
    }

    .article-image {
        height: 250px;
    }

    .standings-grid {
        grid-template-columns: 1fr;
    }

    .standing-item {
        grid-template-columns: 35px 1fr auto;
        padding: 10px 15px;
        gap: 10px;
    }

    .nav-link span {
        display: none;
    }
}

    .nav-link {
        padding: 12px 15px;
        min-height: 44px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .article-content {
        padding: 20px;
    }

    .article-quote {
        padding: 15px 20px;
        font-size: 1rem;
    }

    .standings-card h3 {
        font-size: 0.95rem;
        padding: 15px 20px;
    }
}

/* Race Results Page Styles */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.results-card {
    background: var(--f1-black);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--f1-gray);
}

.results-card h3 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    padding: 20px 25px;
    background: linear-gradient(135deg, var(--f1-dark-red) 0%, var(--f1-red) 100%);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.sprint-card h3 {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: var(--f1-black);
}

.results-table {
    padding: 0;
}

.result-row {
    display: grid;
    grid-template-columns: 40px 1fr auto auto;
    align-items: center;
    gap: 15px;
    padding: 12px 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}

.result-row:last-child {
    border-bottom: none;
}

.result-row:hover {
    background: rgba(225, 6, 0, 0.1);
}

.result-row.result-header {
    background: rgba(255, 255, 255, 0.05);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
    color: var(--f1-light-gray);
}

.result-row.result-header:hover {
    background: rgba(255, 255, 255, 0.05);
}

.result-pos {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--f1-light-gray);
}

.result-pos.gold {
    color: #FFD700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.result-pos.silver {
    color: #C0C0C0;
}

.result-pos.bronze {
    color: #CD7F32;
}

.result-driver {
    font-weight: 500;
    color: var(--f1-white);
}

.result-team {
    font-size: 0.8rem;
    color: var(--f1-light-gray);
}

.result-gap, .result-points {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    color: var(--f1-red);
    font-size: 0.9rem;
}

.result-row.winner {
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.1) 0%, rgba(0, 0, 0, 0) 100%);
}

.result-row.winner .result-driver {
    font-weight: 700;
}

/* Fastest Lap Banner */
.fastest-lap-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background: linear-gradient(135deg, rgba(225, 6, 0, 0.15) 0%, rgba(0, 0, 0, 0.3) 100%);
    border-left: 4px solid var(--f1-red);
}

.driver-info {
    display: flex;
    flex-direction: column;
}

.fastest-lap-driver {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--f1-white);
}

.fastest-lap-team {
    font-size: 0.85rem;
    color: var(--f1-light-gray);
}

.lap-time {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--f1-red);
}

.lap-points {
    background: var(--f1-red);
    color: var(--f1-white);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

@media (max-width: 600px) {
    .results-grid {
        grid-template-columns: 1fr;
    }

    .result-row {
        grid-template-columns: 30px 1fr auto;
        gap: 10px;
        padding: 10px 15px;
    }

    .result-team, .result-gap {
        display: none;
    }

    .fastest-lap-banner {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

/* Team Colors for Standings */
.team-redbull { background: linear-gradient(180deg, #3671C6 0%, #1B4B8C 100%); }
.team-ferrari { background: linear-gradient(180deg, #F91536 0%, #C91229 100%); }
.team-mercedes { background: linear-gradient(180deg, #27F4D2 0%, #1FA89C 100%); }
.team-mclaren { background: linear-gradient(180deg, #FF8700 0%, #CC6D00 100%); }
.team-astonmartin { background: linear-gradient(180deg, #229971 0%, #1A7A5A 100%); }
.team-alpine { background: linear-gradient(180deg, #FF87BC 0%, #CC6A97 100%); }
.team-williams { background: linear-gradient(180deg, #64C4FF 0%, #509ECC 100%); }
.team-alphatauri { background: linear-gradient(180deg, #5E8FAA 0%, #4A7388 100%); }
.team-alfaromeo { background: linear-gradient(180deg, #C92D4B 0%, #A1243C 100%); }
.team-haas { background: linear-gradient(180deg, #B6BABD 0%, #929597 100%); }

/* ============================================
   UX IMPROVEMENTS
   ============================================ */

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--f1-red) 0%, var(--f1-dark-red) 100%);
    border: none;
    border-radius: 50%;
    color: var(--f1-white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
    z-index: 999;
    box-shadow: none;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: none;
}

.back-to-top:active {
    transform: translateY(-1px);
}

/* Loading Skeleton */
.skeleton {
    background: linear-gradient(90deg, rgba(255,255,255,0.03) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.03) 75%);
    background-size: 200% 100%;
    /* animation retired (Stage 3): calm the page */
    border-radius: 8px;
}

/* duplicate @keyframes shimmer removed (Stage 3) */

.skeleton-text {
    height: 16px;
    margin-bottom: 8px;
}

.skeleton-text.short { width: 60%; }
.skeleton-text.medium { width: 80%; }
.skeleton-text.long { width: 100%; }

.skeleton-title {
    height: 28px;
    width: 70%;
    margin-bottom: 12px;
}

.skeleton-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 25px;
}

.skeleton-standing-item {
    display: grid;
    grid-template-columns: 35px 1fr auto auto;
    align-items: center;
    gap: 15px;
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.skeleton-standing-item .skeleton {
    height: 20px;
}

/* Scroll Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation for multiple elements */
.fade-in.stagger-1 { transition-delay: 0.1s; }
.fade-in.stagger-2 { transition-delay: 0.2s; }
.fade-in.stagger-3 { transition-delay: 0.3s; }
.fade-in.stagger-4 { transition-delay: 0.4s; }
.fade-in.stagger-5 { transition-delay: 0.5s; }

/* Loading text replacement */
.loading {
    text-align: center;
    padding: 40px;
    color: var(--f1-light-gray);
    font-style: italic;
}

.loading-skeleton {
    padding: 0;
}

/* Mobile responsive for back to top */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }

    .back-to-top svg {
        width: 18px;
        height: 18px;
    }
}

/* ============================================
   ARTICLE SHARE BUTTONS
   ============================================ */

.article-share {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--f1-gray);
}

.article-share h3 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--f1-light-gray);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
    cursor: pointer;
    border: none;
}

.share-btn.copy-link {
    background: var(--f1-dark);
    color: var(--f1-white);
    border: 2px solid var(--f1-gray);
}

.share-btn.copy-link:hover {
    border-color: var(--f1-red);
    background: var(--f1-red);
}

.share-btn.copy-link.copied {
    background: #27F4D2;
    border-color: #27F4D2;
    color: var(--f1-black);
}

.share-btn.whatsapp {
    background: #25D366;
    color: var(--f1-white);
}

.share-btn.whatsapp:hover {
    background: #20bd5a;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

.share-btn.facebook {
    background: #1877F2;
    color: var(--f1-white);
}

.share-btn.facebook:hover {
    background: #0d65d9;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(24, 119, 242, 0.4);
}

.share-btn.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: var(--f1-white);
}

.share-btn.instagram:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(225, 48, 108, 0.4);
}

.share-btn.twitter {
    background: #000;
    color: var(--f1-white);
}

.share-btn.twitter:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.share-btn.linkedin {
    background: #0077b5;
    color: var(--f1-white);
}

.share-btn.linkedin:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 119, 181, 0.4);
}

.share-btn svg {
    flex-shrink: 0;
}

@media (max-width: 600px) {
    .share-buttons {
        flex-direction: column;
    }

    .share-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   PREDICTOR GAME STYLES
   ============================================ */

/* Tab Navigation */
.tab-navigation {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 20px 0;
    background: linear-gradient(180deg, var(--f1-black) 0%, var(--f1-dark) 100%);
    border-bottom: 2px solid var(--f1-gray);
    position: sticky;
    top: 73px;
    z-index: 99;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 30px;
    background: transparent;
    border: 2px solid var(--f1-gray);
    border-radius: 30px;
    color: var(--f1-light-gray);
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 2px;
    cursor: pointer;
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
    text-transform: uppercase;
}

.tab-btn:hover {
    border-color: var(--f1-red);
    color: var(--f1-white);
    transform: translateY(-2px);
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--f1-red) 0%, var(--f1-dark-red) 100%);
    border-color: var(--f1-red);
    color: var(--f1-white);
    box-shadow: none;
}

.tab-btn svg {
    width: 20px;
    height: 20px;
}

/* Tab Content */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Predictor Section */
.predictor-section {
    padding: 40px 0;
}

.predictor-header {
    text-align: center;
    margin-bottom: 40px;
}

.predictor-header h2 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 10px;
    background: linear-gradient(90deg, var(--f1-white) 0%, var(--f1-red) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.predictor-header p {
    color: var(--f1-light-gray);
    font-size: 1rem;
}

/* Predictor Card */
.predictor-card {
    background: var(--f1-black);
    border-radius: 20px;
    border: 1px solid var(--f1-gray);
    overflow: hidden;
    margin-bottom: 30px;
}

.predictor-card-header {
    background: linear-gradient(135deg, var(--f1-dark-red) 0%, var(--f1-red) 100%);
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.predictor-card-header h3 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.user-points-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.3);
    padding: 8px 20px;
    border-radius: 20px;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
}

.user-points-badge svg {
    width: 20px;
    height: 20px;
    color: #FFD700;
}

.user-points-count {
    color: #FFD700;
    font-size: 1.1rem;
}

.predictor-card-body {
    padding: 30px;
}

/* Race Selector */
.race-selector {
    margin-bottom: 30px;
}

.race-selector label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--f1-light-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
}

.race-select {
    width: 100%;
    padding: 15px 20px;
    background: var(--f1-dark);
    border: 2px solid var(--f1-gray);
    border-radius: 10px;
    color: var(--f1-white);
    font-family: 'Chakra Petch', sans-serif;
    font-size: 1rem;
    cursor: pointer;
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}

.race-select:focus {
    outline: none;
    border-color: var(--f1-red);
    box-shadow: 0 0 0 3px rgba(225, 6, 0, 0.2);
}

.race-select:focus-visible {
    outline: 2px solid var(--f1-red);
    outline-offset: 2px;
}

/* Race Info Banner */
.race-info-banner {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    margin-bottom: 30px;
    background: linear-gradient(135deg, rgba(225, 6, 0, 0.15) 0%, rgba(21, 21, 30, 0.6) 100%);
    border: 2px solid rgba(225, 6, 0, 0.3);
    border-radius: 12px;
}

.race-flag {
    font-size: 2rem;
    flex-shrink: 0;
}

.race-info-text {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.race-info-label {
    font-size: 0.75rem;
    color: var(--f1-light-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.race-info-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--f1-white);
    font-family: 'Barlow Condensed', sans-serif;
}

.race-select option {
    background: var(--f1-dark);
    color: var(--f1-white);
    padding: 15px;
}

.podium-select option {
    background: rgba(0, 0, 0, 0.9);
    color: var(--f1-white);
}

/* Podium Predictor */
.podium-predictor {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 30px;
    margin: 40px 0;
    padding: 40px 20px;
    background: linear-gradient(180deg, rgba(225, 6, 0, 0.05) 0%, rgba(0, 0, 0, 0.2) 100%);
    border-radius: 15px;
    flex-wrap: wrap;
}

.podium-position {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.podium-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    border-radius: 10px 10px 0 0;
    padding: 25px 30px;
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}

.podium-step.first {
    width: 350px;
    height: 200px;
    background: linear-gradient(180deg, #FFD700 0%, #FFA500 100%);
    order: 2;
}

.podium-step.second {
    width: 300px;
    height: 160px;
    background: linear-gradient(180deg, #C0C0C0 0%, #9A9A9A 100%);
    order: 1;
}

.podium-step.third {
    width: 300px;
    height: 130px;
    background: linear-gradient(180deg, #CD7F32 0%, #A06428 100%);
    order: 3;
}

.podium-position-label {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--f1-white);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.podium-step.first .podium-position-label {
    font-size: 2rem;
}

.podium-select {
    width: 100%;
    min-width: 200px;
    padding: 10px 8px;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: var(--f1-white);
    font-family: 'Chakra Petch', sans-serif;
    font-size: 1rem;
    cursor: pointer;
    text-align: center;
    margin-top: auto;
}

.podium-select:focus {
    outline: none;
    border-color: var(--f1-white);
}

.podium-select:focus-visible {
    outline: 2px solid var(--f1-white);
    outline-offset: 2px;
}

/* Submit Button */
.submit-prediction-btn {
    width: 100%;
    padding: 18px 40px;
    background: linear-gradient(135deg, var(--f1-red) 0%, var(--f1-dark-red) 100%);
    border: none;
    border-radius: 10px;
    color: var(--f1-white);
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    cursor: pointer;
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.submit-prediction-btn:hover {
    transform: translateY(-2px);
    box-shadow: none;
}

.submit-prediction-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.submit-prediction-btn svg {
    width: 24px;
    height: 24px;
}

/* Previous Predictions */
.previous-predictions {
    margin-top: 40px;
}

.previous-predictions h3 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--f1-light-gray);
}

.prediction-item {
    background: var(--f1-dark);
    border: 1px solid var(--f1-gray);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}

.prediction-item:hover {
    border-color: var(--f1-red);
    transform: translateX(5px);
}

.prediction-item.correct {
    border-color: #27F4D2;
    background: linear-gradient(90deg, rgba(39, 244, 210, 0.1) 0%, var(--f1-dark) 100%);
}

.prediction-item.partial {
    border-color: #FFD700;
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.1) 0%, var(--f1-dark) 100%);
}

.prediction-race {
    flex: 1;
}

.prediction-race-name {
    font-weight: 600;
    color: var(--f1-white);
    margin-bottom: 5px;
}

.prediction-username {
    font-size: 0.85rem;
    color: #27F4D2;
    font-weight: 500;
    margin-bottom: 5px;
}

.prediction-drivers {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: var(--f1-light-gray);
}

.prediction-drivers span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.prediction-drivers .medal {
    width: 16px;
    height: 16px;
}

.prediction-points {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: #FFD700;
}

.prediction-status {
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.prediction-status.pending {
    background: var(--f1-gray);
    color: var(--f1-light-gray);
}

.prediction-status.correct {
    background: #27F4D2;
    color: var(--f1-black);
}

.prediction-status.partial {
    background: #FFD700;
    color: var(--f1-black);
}

/* Leaderboard */
.leaderboard {
    margin-top: 40px;
}

.leaderboard h3 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--f1-light-gray);
    display: flex;
    align-items: center;
    gap: 10px;
}

.leaderboard h3 svg {
    width: 24px;
    height: 24px;
    color: #FFD700;
}

.leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--f1-dark);
    border: 1px solid var(--f1-gray);
    border-radius: 12px;
    padding: 15px 20px;
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}

.leaderboard-item:hover {
    border-color: var(--f1-red);
}

.leaderboard-item.current-user {
    border-color: #FFD700;
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.1) 0%, var(--f1-dark) 100%);
}

.leaderboard-position {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    width: 35px;
    text-align: center;
}

.leaderboard-position.gold {
    color: #FFD700;
    font-size: 1.4rem;
}

.leaderboard-position.silver {
    color: #C0C0C0;
}

.leaderboard-position.bronze {
    color: #CD7F32;
}

.leaderboard-name {
    flex: 1;
    font-weight: 500;
}

.leaderboard-name.current {
    font-weight: 700;
}

.leaderboard-points {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    color: #FFD700;
}

/* Username Input */
.username-input-container {
    margin-bottom: 30px;
}

.username-input-container label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--f1-light-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
}

.username-input {
    width: 100%;
    padding: 15px 20px;
    background: var(--f1-dark);
    border: 2px solid var(--f1-gray);
    border-radius: 10px;
    color: var(--f1-white);
    font-family: 'Chakra Petch', sans-serif;
    font-size: 1rem;
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}

.username-input:focus {
    outline: none;
    border-color: var(--f1-red);
    box-shadow: 0 0 0 3px rgba(225, 6, 0, 0.2);
}

.username-input:focus-visible {
    outline: 2px solid var(--f1-red);
    outline-offset: 2px;
}

.username-input::placeholder {
    color: var(--f1-light-gray);
}

/* Username Input Wrapper */
.username-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.username-status {
    font-size: 1.2rem;
    color: var(--f1-red);
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}

.username-status.available {
    color: #2ecc71;
}

.username-hint {
    display: block;
    margin-top: 8px;
    font-size: 0.8rem;
    color: var(--f1-light-gray);
}

.username-input.taken {
    border-color: #e74c3c !important;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.2) !important;
}

/* Scoring Info */
.scoring-info {
    background: rgba(39, 244, 210, 0.1);
    border: 1px solid #27F4D2;
    border-radius: 12px;
    padding: 20px;
    margin-top: 30px;
}

.scoring-info h4 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #27F4D2;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.scoring-info ul {
    list-style: none;
    padding: 0;
}

.scoring-info li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    color: var(--f1-light-gray);
    font-size: 0.9rem;
}

.scoring-info li svg {
    width: 18px;
    height: 18px;
    color: #FFD700;
    flex-shrink: 0;
}

/* Responsive for Predictor */
@media (max-width: 768px) {
    .tab-navigation {
        padding: 15px 0;
        gap: 10px;
        top: 60px;
    }

    .tab-btn {
        padding: 10px 20px;
        font-size: 0.75rem;
        letter-spacing: 1px;
        gap: 8px;
    }

    .tab-btn span {
        display: inline;
    }

    .predictor-header h2 {
        font-size: 1.5rem;
    }

    .podium-predictor {
        gap: 15px;
        padding: 20px 10px;
    }

    .podium-step.first {
        width: 200px;
        height: 160px;
    }

    .podium-step.second {
        width: 170px;
        height: 130px;
    }

    .podium-step.third {
        width: 170px;
        height: 110px;
    }

    .podium-step {
        padding: 15px 20px;
    }

    .podium-position-label {
        font-size: 1rem;
    }

    .podium-step.first .podium-position-label {
        font-size: 1.2rem;
    }

    .podium-select {
        font-size: 0.85rem;
        padding: 10px;
        min-width: 150px;
    }

    .prediction-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .prediction-drivers {
        flex-direction: column;
        gap: 8px;
    }

    .leaderboard-item {
        padding: 12px 15px;
    }
}

/* ============================================
   CHAMPIONSHIP GRAPH
   ============================================ */

/* Quick Navigation Buttons */
.quick-nav {
    padding: 20px 0;
}

.quick-nav-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: linear-gradient(135deg, #1a1a2e, #16162a);
    color: #ffffff !important;
    text-decoration: none !important;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.quick-nav-btn:hover {
    background: linear-gradient(135deg, #2a2a4e, #26264a);
    border-color: #e10600;
    transform: translateY(-3px);
    box-shadow: none;
}

.quick-nav-btn:active {
    transform: translateY(-1px);
}

.quick-nav-btn.primary {
    background: linear-gradient(135deg, #e10600, #ff1e1e);
    border-color: #e10600;
    /* animation retired (Stage 3): calm the page */
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: none;
    }
    50% {
        box-shadow: none;
    }
}

.quick-nav-btn.primary:hover {
    background: linear-gradient(135deg, #ff1e1e, #e10600);
    box-shadow: none;
}

.quick-nav-btn svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.championship-graph-section {
    padding: 40px 0;
}

.championship-graph-card {
    background: var(--f1-black);
    border-radius: 20px;
    border: 1px solid var(--f1-gray);
    overflow: hidden;
    margin-bottom: 30px;
}

.championship-graph-header {
    background: linear-gradient(135deg, var(--f1-dark-red) 0%, var(--f1-red) 100%);
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.championship-graph-header h3 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
}

.graph-type-toggle {
    display: flex;
    gap: 10px;
}

.graph-type-btn {
    padding: 8px 20px;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    color: var(--f1-white);
    font-family: 'Chakra Petch', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}

.graph-type-btn:hover {
    border-color: var(--f1-white);
}

.graph-type-btn.active {
    background: var(--f1-white);
    color: var(--f1-red);
    border-color: var(--f1-white);
}

.championship-graph-body {
    padding: 30px;
}

.graph-controls {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.graph-control-group {
    flex: 1;
    min-width: 200px;
}

.graph-control-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--f1-light-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.75rem;
}

.graph-select {
    width: 100%;
    padding: 12px 15px;
    background: var(--f1-dark);
    border: 2px solid var(--f1-gray);
    border-radius: 8px;
    color: var(--f1-white);
    font-family: 'Chakra Petch', sans-serif;
    font-size: 0.9rem;
    cursor: pointer;
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}

.graph-select:focus {
    outline: none;
    border-color: var(--f1-red);
}

.graph-select:focus-visible {
    outline: 2px solid var(--f1-red);
    outline-offset: 2px;
}

.graph-container {
    position: relative;
    background: var(--f1-dark);
    border-radius: 15px;
    padding: 30px 20px 50px 60px;
    min-height: 400px;
}

/* SVG Graph */
.championship-svg {
    width: 100%;
    height: 400px;
    overflow: visible;
}

.graph-axis-line {
    stroke: var(--f1-gray);
    stroke-width: 1;
}

.graph-grid-line {
    stroke: rgba(255, 255, 255, 0.05);
    stroke-width: 1;
    stroke-dasharray: 4 4;
}

.graph-axis-text {
    fill: var(--f1-light-gray);
    font-family: 'Chakra Petch', sans-serif;
    font-size: 0.75rem;
}

.graph-line {
    fill: none;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: stroke-dashoffset 1s ease, stroke-width 0.3s ease, filter 0.3s ease;
    cursor: pointer;
}

.graph-line:hover {
    stroke-width: 5;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
}

.graph-line.animate {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawLine 2s ease forwards;
}

@keyframes drawLine {
    to {
        stroke-dashoffset: 0;
    }
}

/* ========================================
   STEP 8: PAGE LOAD RACE-IN ANIMATIONS
   Cars entering the track effect
   ======================================== */

/* Race from left - like cars from pit lane */
@keyframes raceInLeft {
    0% {
        transform: translateX(-100px) skewX(-5deg);
        opacity: 0;
        filter: blur(8px);
    }
    60% {
        filter: blur(2px);
    }
    100% {
        transform: translateX(0) skewX(0);
        opacity: 1;
        filter: blur(0);
    }
}

/* Race from right - like cars from main straight */
@keyframes raceInRight {
    0% {
        transform: translateX(100px) skewX(5deg);
        opacity: 0;
        filter: blur(8px);
    }
    60% {
        filter: blur(2px);
    }
    100% {
        transform: translateX(0) skewX(0);
        opacity: 1;
        filter: blur(0);
    }
}

/* Speed burst - explode outward from center */
@keyframes speedBurst {
    0% {
        transform: scale(0.8) translateY(20px);
        opacity: 0;
        filter: blur(4px);
    }
    50% {
        transform: scale(1.02) translateY(-2px);
        filter: blur(0);
    }
    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

/* Diagonal race in - from top left like fast corner entry */
@keyframes raceInDiagonal {
    0% {
        transform: translate(-50px, -50px) rotate(-2deg);
        opacity: 0;
        filter: blur(10px);
    }
    50% {
        filter: blur(3px);
    }
    100% {
        transform: translate(0, 0) rotate(0);
        opacity: 1;
        filter: blur(0);
    }
}

/* Turbo rev - scale up with energy */
@keyframes turboRev {
    0% {
        transform: scale(0.5);
        opacity: 0;
        filter: brightness(0.5);
    }
    70% {
        transform: scale(1.05);
        filter: brightness(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
        filter: brightness(1);
    }
}

/* Drift in - slide with slight rotation */
@keyframes driftIn {
    0% {
        transform: translateX(80px) rotate(3deg);
        opacity: 0;
    }
    60% {
        transform: translateX(-5px) rotate(-0.5deg);
    }
    100% {
        transform: translateX(0) rotate(0);
        opacity: 1;
    }
}

/* Apply animations to header elements */
.header {
    animation: raceInLeft 0.6s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

.brand {
    animation: speedBurst 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s forwards;
    opacity: 0; /* Start hidden */
}

.nav-link, .follower-counter {
    animation: driftIn 0.5s cubic-bezier(0.23, 1, 0.32, 1) 0.4s forwards;
    opacity: 0; /* Start hidden */
}

.nav-link:nth-child(2) {
    animation-delay: 0.5s;
}

/* Hero section animations */
.hero-section {
    animation: raceInDiagonal 0.8s cubic-bezier(0.23, 1, 0.32, 1) 0.3s forwards;
    opacity: 0; /* Start hidden */
}

.hero-car-bg {
    animation: turboRev 1s cubic-bezier(0.34, 1.56, 0.64, 1) 0.5s forwards;
    opacity: 0; /* Start hidden */
}

.hero-badge {
    animation: speedBurst 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.7s forwards;
    opacity: 0; /* Start hidden */
}

.hero-title {
    animation: raceInLeft 0.7s cubic-bezier(0.23, 1, 0.32, 1) 0.8s forwards;
    opacity: 0; /* Start hidden */
}

.hero-subtitle {
    animation: raceInRight 0.7s cubic-bezier(0.23, 1, 0.32, 1) 0.9s forwards;
    opacity: 0; /* Start hidden */
}

.hero-cta {
    animation: speedBurst 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 1s forwards;
    opacity: 0; /* Start hidden */
}

/* Category tabs slide in */
.category-tabs-wrapper {
    animation: driftIn 0.6s cubic-bezier(0.23, 1, 0.32, 1) 1.1s forwards;
    opacity: 0; /* Start hidden */
}

/* Article cards race in with stagger */
.article-preview-card {
    opacity: 0; /* Start hidden */
    animation: raceInDiagonal 0.6s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

/* Stagger each card like cars in formation lap */
.article-preview-card:nth-child(1) { animation-delay: 1.2s; }
.article-preview-card:nth-child(2) { animation-delay: 1.3s; }
.article-preview-card:nth-child(3) { animation-delay: 1.4s; }
.article-preview-card:nth-child(4) { animation-delay: 1.5s; }
.article-preview-card:nth-child(5) { animation-delay: 1.6s; }
.article-preview-card:nth-child(6) { animation-delay: 1.7s; }
.article-preview-card:nth-child(7) { animation-delay: 1.8s; }
.article-preview-card:nth-child(8) { animation-delay: 1.9s; }
.article-preview-card:nth-child(9) { animation-delay: 2s; }
.article-preview-card:nth-child(10) { animation-delay: 2.1s; }
.article-preview-card:nth-child(11) { animation-delay: 2.2s; }
.article-preview-card:nth-child(12) { animation-delay: 2.3s; }

/* Alternating directions for visual interest */
.article-preview-card:nth-child(odd) {
    animation-name: raceInLeft;
}

.article-preview-card:nth-child(even) {
    animation-name: raceInRight;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .header,
    .brand,
    .nav-link,
    .follower-counter,
    .hero-section,
    .hero-car-bg,
    .hero-badge,
    .hero-title,
    .hero-subtitle,
    .hero-cta,
    .category-tabs-wrapper,
    .article-preview-card {
        animation: none;
        opacity: 1;
    }
}

.graph-point {
    fill: var(--f1-black);
    stroke-width: 2;
    cursor: pointer;
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}

.graph-point:hover {
    r: 8;
    stroke-width: 3;
}

.graph-point-label {
    fill: var(--f1-white);
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    text-anchor: middle;
    pointer-events: none;
}

.graph-tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.95);
    border: 1px solid var(--f1-red);
    border-radius: 8px;
    padding: 12px 16px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 100;
    min-width: 150px;
    pointer-events: none;
}

.graph-tooltip.visible {
    opacity: 1;
}

.graph-tooltip-race {
    font-weight: 600;
    color: var(--f1-white);
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.graph-tooltip-entries {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.graph-tooltip-entry {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
}

.graph-tooltip-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.graph-tooltip-name {
    color: var(--f1-light-gray);
}

.graph-tooltip-points {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    color: var(--f1-red);
    margin-left: auto;
}

.graph-tooltip-header {
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 8px;
}

.graph-tooltip-team {
    color: var(--f1-light-gray);
    font-size: 0.85rem;
}

.graph-tooltip-label {
    color: var(--f1-light-gray);
    font-size: 0.8rem;
}

.graph-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
    justify-content: center;
}

.graph-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background: var(--f1-dark);
    border-radius: 20px;
    cursor: pointer;
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
    border: 2px solid transparent;
}

.graph-legend-item:hover {
    border-color: var(--f1-gray);
}

.graph-legend-item.hidden {
    opacity: 0.4;
}

.graph-legend-color {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    flex-shrink: 0;
}

.graph-legend-name {
    color: var(--f1-white);
    font-size: 0.85rem;
    font-weight: 500;
}

/* Team colors for graph */
.graph-color-mercedes { fill: #27F4D2; stroke: #27F4D2; }
.graph-color-ferrari { fill: #F91536; stroke: #F91536; }
.graph-color-redbull { fill: #3671C6; stroke: #3671C6; }
.graph-color-mclaren { fill: #FF8700; stroke: #FF8700; }
.graph-color-astonmartin { fill: #229971; stroke: #229971; }
.graph-color-alpine { fill: #FF87BC; stroke: #FF87BC; }
.graph-color-williams { fill: #64C4FF; stroke: #64C4FF; }
.graph-color-rb { fill: #5E8FAA; stroke: #5E8FAA; }
.graph-color-sauber { fill: #C92D4B; stroke: #C92D4B; }
.graph-color-haas { fill: #B6BABD; stroke: #B6BABD; }

/* Responsive */
@media (max-width: 768px) {
    .championship-graph-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .graph-controls {
        flex-direction: column;
    }

    .graph-control-group {
        min-width: 100%;
    }

    .graph-container {
        padding: 20px 10px 40px 50px;
    }

    .championship-svg {
        height: 300px;
    }

    .graph-legend {
        gap: 10px;
    }

    .graph-legend-item {
        padding: 6px 10px;
        font-size: 0.75rem;
    }

    .graph-tooltip {
        font-size: 0.75rem;
        min-width: 120px;
    }
}

/* Instagram Embed Styles - for official Instagram embeds */
.instagram-embed-container {
    margin: 30px 0;
    max-width: 658px;
    margin-left: auto;
    margin-right: auto;
}

/* Style Instagram's official embed to match dark theme */
.instagram-embed-container blockquote.instagram-media {
    background: #1a1a2e !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
}

/* Make Instagram embeds responsive */
.instagram-embed-container blockquote.instagram-media {
    max-width: 100% !important;
    width: 100% !important;
    min-width: auto !important;
}

/* Responsive Instagram Embed */
@media (max-width: 768px) {
    .instagram-embed-container {
        margin: 20px 0;
    }
}

/* Reduced Motion Support - WCAG 2.1.2 */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    html {
        scroll-behavior: auto;
    }

    /* Disable specific animations */
    .slide-in,
    .fade-in,
    .slide-up,
    .zoom-in,
    .pulse {
        animation: none !important;
    }

    /* Remove hover transitions */
    .nav-link:hover,
    .article-card:hover,
    .btn-primary:hover,
    .btn-secondary:hover,
    .share-btn:hover {
        transform: none !important;
        transition: none !important;
    }
}

/* Accessibility: Screen Reader Only Content */
.sr-only,
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Allow screen reader content to be focusable when needed */
.sr-only-focusable:focus,
.visually-hidden:focusable:focus {
    position: static;
    width: auto;
    height: auto;
    padding: inherit;
    margin: inherit;
    overflow: visible;
    clip: auto;
    white-space: normal;
}

/* ============================================
   FOOTER (site-wide, added 2026-07-18)
   ============================================ */
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 30px;
    padding: 40px 0 30px;
    text-align: left;
}
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-brand {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--f1-white);
}
.footer-tagline { color: rgba(255, 255, 255, 0.6); font-size: 0.9rem; line-height: 1.5; }
.footer-heading {
    font-weight: 600;
    color: var(--f1-white);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
    margin-bottom: 4px;
}
.footer-col a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}
.footer-col a:hover { color: var(--f1-red); }
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
}
.footer-bottom p { color: rgba(255, 255, 255, 0.45); font-size: 0.8rem; line-height: 1.6; margin: 0; }
@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* Legal / info pages */
.legal-content {
    max-width: 760px;
    margin: 40px auto 60px;
    padding: 0 20px;
}
.legal-content h1 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 2rem;
    margin-bottom: 8px;
    color: var(--f1-white);
}
.legal-updated { color: rgba(255, 255, 255, 0.65); font-size: 0.85rem; margin-bottom: 30px; }
.legal-content h2 { font-size: 1.25rem; margin: 32px 0 12px; color: var(--f1-white); }
.legal-content p, .legal-content li { color: rgba(255, 255, 255, 0.87); line-height: 1.8; margin-bottom: 14px; }
.legal-content ul { padding-left: 22px; }
.legal-content a { color: var(--f1-red); }

/* Contact form */
.contact-form { display: flex; flex-direction: column; gap: 8px; margin: 10px 0 20px; }
.contact-form label { font-weight: 600; color: var(--f1-white); margin-top: 10px; font-size: 0.9rem; }
.contact-form input, .contact-form select, .contact-form textarea {
    background: var(--f1-dark);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 12px 14px;
    color: var(--f1-white);
    font-family: inherit;
    font-size: 1rem;
}
.contact-form input:focus-visible, .contact-form select:focus-visible, .contact-form textarea:focus-visible {
    outline: 2px solid var(--f1-red);
    outline-offset: 2px;
}
.contact-form button { margin-top: 16px; align-self: flex-start; }

/* Cookie consent banner */
.cookie-banner {
    position: fixed;
    left: 16px; right: 16px; bottom: 16px;
    z-index: 10000;
    background: var(--f1-dark);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    max-width: 720px;
    margin: 0 auto;
}
.cookie-banner p { color: rgba(255, 255, 255, 0.87); font-size: 0.9rem; line-height: 1.5; margin: 0; flex: 1 1 300px; }
.cookie-banner a { color: var(--f1-red); }
.cookie-banner-actions { display: flex; gap: 10px; }
.cookie-btn {
    border-radius: 8px;
    padding: 10px 18px;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    min-height: 44px;
}
.cookie-btn.accept { background: var(--f1-red); border: 1px solid var(--f1-red); color: #fff; }
.cookie-btn.decline { background: transparent; border: 1px solid rgba(255, 255, 255, 0.3); color: rgba(255, 255, 255, 0.87); }
.cookie-btn:hover { filter: brightness(1.15); }

/* ============================================
   HEADER REFINEMENT (2026-07-18)
   Masthead lockup + quiet nav. Overrides the
   legacy button-style nav above.
   ============================================ */
.header {
    padding: 12px 0;
}
.brand {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}
.brand h1, .brand .brand-title {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    background: none;
    -webkit-background-clip: initial;
    -webkit-text-fill-color: initial;
    color: var(--f1-white);
    margin: 0;
}
.brand .brand-accent {
    color: var(--f1-red);
}
.subtitle {
    margin-left: 0;
    margin-top: 3px;
    font-size: 0.62rem;
    letter-spacing: 3.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
}
/* Quiet text link instead of chunky button */
.header .nav {
    display: flex;
    align-items: center;
    gap: 22px;
}
.header .nav-link {
    padding: 6px 2px;
    min-height: 0;
    background: none;
    border: none;
    border-radius: 0;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.85);
    position: relative;
}
.header .nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    right: 100%;
    bottom: 0;
    height: 2px;
    background: var(--f1-red);
    transition: right 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
.header .nav-link:hover {
    background: none;
    box-shadow: none;
    transform: none;
    color: var(--f1-white);
}
.header .nav-link:hover::after {
    right: 0;
}
/* Instagram: compact circular icon button */
.header .nav-link-social {
    width: 38px;
    height: 38px;
    padding: 0;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.85);
}
.header .nav-link-social::after {
    display: none;
}
.header .nav-link-social:hover {
    background: var(--f1-red);
    border-color: var(--f1-red);
    color: #fff;
    box-shadow: none;
}
/* Two-item nav fits every viewport: no hamburger needed */
.mobile-menu-toggle {
    display: none !important;
}
@media (max-width: 768px) {
    .header .nav {
        position: static;
        flex-direction: row;
        transform: none;
        opacity: 1;
        visibility: visible;
        background: none;
        padding: 0;
        gap: 16px;
        box-shadow: none;
        border: none;
        width: auto;
    }
    .header .nav-link {
        width: auto;
        justify-content: center;
    }
    .brand h1, .brand .brand-title {
        font-size: 1.25rem;
    }
    .subtitle {
        letter-spacing: 2.5px;
    }
}
@media (max-width: 420px) {
    .subtitle {
        display: none;
    }
}
@media (prefers-reduced-motion: reduce) {
    .header .nav-link::after {
        transition: none;
    }
}

/* Related articles (shared - was per-file inline) */
.related-articles { padding: 40px 0; background: rgba(255, 255, 255, 0.02); margin-top: 60px; }
.related-articles h2 { font-size: 1.5rem; margin-bottom: 24px; text-align: center; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.related-card { display: block; background: var(--f1-dark); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 12px; padding: 18px; text-decoration: none; transition: transform 0.25s ease, border-color 0.25s ease; }
.related-card:hover { transform: translateY(-3px); border-color: var(--f1-red); }
.related-card h4 { color: var(--f1-white); font-size: 0.95rem; line-height: 1.4; margin-top: 8px; }
.related-category { display: inline-block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; color: var(--f1-red); font-weight: 600; }
.related-category.breaking { color: var(--f1-yellow); }

/* Brand is a home link */
.brand-link { text-decoration: none; color: inherit; display: flex; flex-direction: column; }
.brand-link:hover .brand-title { opacity: 0.85; }
.author-link { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.author-link:hover { color: var(--f1-red); }

/* Skip to content (visible on keyboard focus only) */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 10001;
    background: var(--f1-red);
    color: #fff;
    padding: 10px 18px;
    border-radius: 0 0 8px 0;
    text-decoration: none;
    font-weight: 600;
}
.skip-link:focus { left: 0; }

/* Skeleton loading state (replaces plain "Loading..." text) */
.loading {
    color: transparent !important;
    position: relative;
    min-height: 220px;
    overflow: hidden;
}
.loading::before {
    content: '';
    position: absolute;
    inset: 10px 20px;
    background: repeating-linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.06) 0px,
        rgba(255, 255, 255, 0.06) 34px,
        transparent 34px,
        transparent 46px
    );
    border-radius: 8px;
}
.loading::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    animation: skeletonSweep 1.4s ease-in-out infinite;
}
@keyframes skeletonSweep {
    from { transform: translateX(-100%); }
    to { transform: translateX(100%); }
}
@media (prefers-reduced-motion: reduce) {
    .loading::after { animation: none; }
}

/* Trending strip */
.trending-strip { margin: 30px 0 10px; }
.trending-strip-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}
.trending-strip-head h2 { font-size: 1.2rem; letter-spacing: 1px; text-transform: uppercase; }
.trending-flame { color: var(--f1-red); }
.trending-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 12px;
}
.trending-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: var(--f1-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 14px 16px;
    text-decoration: none;
    transition: transform 0.25s ease, border-color 0.25s ease;
}
.trending-item:hover { transform: translateY(-2px); border-color: var(--f1-red); }
.trending-rank {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--f1-red);
    line-height: 1;
}
.trending-item h3 { color: var(--f1-white); font-size: 0.9rem; line-height: 1.4; font-weight: 500; }

/* Breadcrumb */
.breadcrumb {
    max-width: 900px;
    margin: 18px auto 0;
    padding: 0 20px;
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.55);
}
.breadcrumb a { color: rgba(255, 255, 255, 0.75); text-decoration: none; }
.breadcrumb a:hover { color: var(--f1-red); }
.breadcrumb span[aria-current] { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Reading measure: 900px -> 760px for comfortable line length */
.article-content { max-width: 760px; }

/* Race Hub */
.hub-section { margin: 40px 0; }
.hub-tz-note { color: rgba(255, 255, 255, 0.55); font-size: 0.85rem; margin: -6px 0 16px; }
.hub-sessions { display: flex; flex-direction: column; gap: 10px; max-width: 800px; }
.hub-session {
    display: flex; align-items: center; gap: 16px;
    background: var(--f1-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px; padding: 14px 18px;
}
.hub-session-race { border-color: var(--f1-red); }
.hub-session.done { opacity: 0.6; }
.hub-session-name { font-weight: 600; min-width: 150px; }
.hub-session-time { color: rgba(255, 255, 255, 0.75); }
.hub-session-done { margin-left: auto; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; color: rgba(255, 255, 255, 0.55); }
.hub-podium { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; max-width: 800px; }
.hub-podium-item {
    background: var(--f1-dark); border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px; padding: 16px; display: flex; flex-direction: column; gap: 4px;
}
.hub-podium-item.pos-1 { border-color: var(--f1-yellow); }
.hub-podium-pos { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; color: var(--f1-red); }
.hub-podium-item.pos-1 .hub-podium-pos { color: var(--f1-yellow); }
.hub-podium-name { font-weight: 600; }
.hub-podium-team { font-size: 0.85rem; color: rgba(255, 255, 255, 0.65); }
.hub-links { display: flex; gap: 12px; flex-wrap: wrap; }

/* ============================================
   STAGE 1 — BROADCAST EDITORIAL TYPE & DISCIPLINE
   ============================================ */
/* Display voice: condensed signage, committed scale */
.section-header h2 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(2.2rem, 4.5vw, 3.2rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.015em;
    line-height: 0.95;
    text-wrap: balance;
}
.article-title-full, .article-title {
    font-family: 'Barlow Condensed', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    font-weight: 800;
    line-height: 1.02;
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    text-wrap: balance;
}
.brand .brand-title {
    font-family: 'Barlow Condensed', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 800;
    font-size: 1.7rem;
}
/* Metadata: light weight, wide tracking — the contrast axis */
.preview-date, .article-date, .countdown-label, .subtitle, .hub-tz-note {
    font-weight: 300;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.75rem;
}
/* Data reads professional when digits line up */
.countdown-number, .standing-points, .standing-position,
.graph-axis-text, .hub-session-time, .trending-rank,
.race-round, .related-category {
    font-variant-numeric: tabular-nums;
}
.countdown-number {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    font-size: clamp(2.2rem, 4vw, 3.2rem);
}
/* Red as structure: hairline rule + kerb-ready underline on section titles */
.section-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding-bottom: 14px;
    position: relative;
}
.section-header::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 96px;
    height: 4px;
    background: repeating-linear-gradient(90deg, var(--f1-red) 0 12px, #f4f4f4 12px 24px);
}
/* Calm the surfaces: hairlines, no drama */
.article-preview-card:hover, .race-card:hover, .related-card:hover, .trending-item:hover {
    box-shadow: none;
    border-color: rgba(225, 6, 0, 0.6);
}
body { font-size: 1rem; }

/* ============================================
   STAGE 2A-R — BROADCAST RACE STRIP (below hero)
   ============================================ */
.race-strip {
    background: #101016;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.race-strip-inner {
    display: flex;
    align-items: center;
    gap: 22px;
    padding-top: 12px;
    padding-bottom: 12px;
    flex-wrap: wrap;
}
.race-strip-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--f1-red);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.72rem;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
    padding-right: 22px;
    white-space: nowrap;
}
.live-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--f1-red);
    animation: liveDotPulse 2s ease-in-out infinite;
}
@keyframes liveDotPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.race-strip .next-race-name {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1.15rem;
    letter-spacing: 0.03em;
}
.race-strip .countdown-container { display: flex; gap: 16px; margin-left: auto; }
.race-strip .countdown-item { display: flex; flex-direction: column; align-items: center; min-width: 42px; background: none; border: none; padding: 0; }
.race-strip .countdown-number { font-size: 1.5rem; line-height: 1.1; }
.race-strip .countdown-label { font-size: 0.6rem; }
.race-strip-link {
    color: var(--f1-white);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    border-bottom: 2px solid var(--f1-red);
    padding-bottom: 2px;
}
.race-strip-link:hover { color: var(--f1-red); }
@media (max-width: 768px) {
    .race-strip .countdown-container { margin-left: 0; }
    .race-strip-label { border-right: none; padding-right: 0; }
}
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }

/* ============================================
   STAGE 2B — TIMING-TOWER STORY ROWS
   ============================================ */
.articles-grid {
    display: flex !important;
    flex-direction: column;
    gap: 0;
    counter-reset: story;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
}
.articles-grid .article-preview-card {
    counter-increment: story;
    flex-direction: row !important;
    align-items: center;
    gap: 18px;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0;
    padding: 16px 20px;
    background: var(--f1-dark);
    transition: background 0.2s ease;
}
.articles-grid .article-preview-card:last-child { border-bottom: none; }
.articles-grid .article-preview-card:hover {
    background: #22222c;
    transform: none;
    box-shadow: none;
}
.articles-grid .article-preview-card::before {
    content: counter(story, decimal-leading-zero);
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--f1-red);
    background: rgba(225, 6, 0, 0.08);
    border: 1px solid rgba(225, 6, 0, 0.35);
    border-radius: 6px;
    min-width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-variant-numeric: tabular-nums;
}
.articles-grid .article-preview-content { display: flex; flex-direction: column; gap: 4px; }
.articles-grid .article-preview-title { font-size: 1.05rem; line-height: 1.35; }
.articles-grid .preview-excerpt, .articles-grid .article-preview-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.88rem;
    line-height: 1.55;
    margin-top: 2px;
}
@media (max-width: 600px) {
    .articles-grid .preview-excerpt, .articles-grid .article-preview-excerpt { -webkit-line-clamp: 2; }
}
@media (max-width: 600px) {
    .articles-grid .article-preview-card { padding: 13px 14px; gap: 12px; }
    .articles-grid .article-preview-card::before { min-width: 38px; height: 38px; font-size: 1.05rem; }
}

/* ============================================
   STAGE 2B — CHAMPIONSHIP BATTLE BAND (live)
   ============================================ */
.battle-band { margin: 44px 0; }
.battle-band-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding-bottom: 12px;
    margin-bottom: 16px;
    position: relative;
}
.battle-band-head::after {
    content: '';
    position: absolute;
    left: 0; bottom: -1px;
    width: 96px; height: 4px;
    background: repeating-linear-gradient(90deg, var(--f1-red) 0 12px, #f4f4f4 12px 24px);
}
.battle-band-head h2 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(2.2rem, 4.5vw, 3.2rem);
    font-weight: 800;
    text-transform: uppercase;
    line-height: 0.95;
}
.battle-band-link { color: var(--f1-white); text-decoration: none; font-weight: 600; font-size: 0.9rem; border-bottom: 2px solid var(--f1-red); padding-bottom: 2px; white-space: nowrap; }
.battle-band-link:hover { color: var(--f1-red); }
.battle-rows { display: flex; flex-direction: column; gap: 10px; }
.battle-row {
    display: grid;
    grid-template-columns: 46px 1fr auto;
    align-items: center;
    gap: 16px;
}
.battle-pos {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--f1-white);
    background: var(--f1-dark);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-variant-numeric: tabular-nums;
}
.battle-info { min-width: 0; }
.battle-name {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1.15rem;
    letter-spacing: 0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.battle-bar-track { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.08); margin-top: 6px; overflow: hidden; }
.battle-bar { height: 100%; border-radius: 3px; transition: width 1s cubic-bezier(0.22, 1, 0.36, 1); }
.battle-pts {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    font-size: 1.6rem;
    font-variant-numeric: tabular-nums;
}
.battle-pts span { font-size: 0.7rem; font-weight: 300; letter-spacing: 0.1em; color: rgba(255, 255, 255, 0.6); margin-left: 4px; }

/* ============================================
   STAGE 3 — MICRO-INTERACTION CONSISTENCY
   ============================================ */
/* Every button responds the same way to press */
.cta-btn:active, .cta-button:active, .quick-nav-btn:active,
.category-tab:active, .share-btn:active, .cookie-btn:active {
    transform: translateY(0) scale(0.985);
}
/* Consistent text-link affordance in prose */
.article-section a, .legal-content a {
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
    text-decoration-color: rgba(225, 6, 0, 0.6);
    transition: text-decoration-color 0.2s ease, color 0.2s ease;
}
.article-section a:hover, .legal-content a:hover {
    text-decoration-color: var(--f1-red);
}
/* Footer top edge carries the kerb, closing the brand loop */
.footer {
    border-top: none;
    position: relative;
}
.footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: repeating-linear-gradient(90deg, var(--f1-red) 0 12px, #f4f4f4 12px 24px);
    opacity: 0.55;
}
