/**
 * F1 Predictor - Public Styles
 */

:root {
    --f1-red: #E10600;
    --f1-dark: #15151E;
    --f1-carbon: #1a1a2e;
    --f1-gold: #FFD700;
    --f1-silver: #C0C0C0;
    --f1-white: #FFFFFF;
    --f1-gray: #888888;
}

/* Driver Card */
.f1-driver-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.f1-driver-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(225, 6, 0, 0.3);
}

/* Team Card */
.f1-team-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.f1-team-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(225, 6, 0, 0.3);
}

/* Next Race Countdown */
.f1-next-race {
    position: relative;
    overflow: hidden;
}

.f1-next-race::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect fill="rgba(255,255,255,0.03)" x="0" y="0" width="50" height="50"/><rect fill="rgba(255,255,255,0.03)" x="50" y="50" width="50" height="50"/></svg>');
    background-size: 20px 20px;
    opacity: 0.5;
    pointer-events: none;
}

/* Standings Table */
.f1-standings tr:hover {
    background: rgba(225, 6, 0, 0.1);
}

/* =====================================================
   F1 DRIVER STANDINGS TABLE
   ===================================================== */

.f1-driver-standings {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Header Row */
.f1-driver-standings__header {
    display: grid;
    grid-template-columns: 60px 1fr 80px 80px 80px 200px 60px;
    gap: 16px;
    padding: 12px 24px;
    background: #15151E;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Driver Rows */
.f1-driver-standings__row {
    display: grid;
    grid-template-columns: 60px 1fr 80px 80px 80px 200px 60px;
    gap: 16px;
    padding: 16px 24px;
    background: linear-gradient(135deg, #15151E 0%, #1a1a2e 100%);
    border-radius: 12px;
    align-items: center;
    border-left: 4px solid var(--team-color, #E10600);
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    overflow: hidden;
    /* Keep car inside */
}

.f1-driver-standings__row:hover {
    transform: translateX(4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.05);
}

/* Car Image */
.f1-driver-standings__car {
    position: absolute;
    right: 300px;
    /* Shifted for larger size */
    height: 140px;
    /* Much larger for background effect */
    bottom: -30px;
    z-index: 0;
    pointer-events: none;
    opacity: 0.15;
    /* Transparent background style */
    transform: rotate(-5deg);
    transition: transform 0.4s ease, opacity 0.4s;
    filter: grayscale(100%);
    /* Make it monochrome for better background blend */
}

.f1-driver-standings__row:hover .f1-driver-standings__car {
    transform: rotate(0deg) scale(1.05) translateX(-10px);
}

.f1-driver-standings__car img {
    height: 100%;
    width: auto;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
}

/* Column Alignment */
/* Main Standings Grid (Drivers) */
.f1-driver-standings {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Race List Mod (Grid Override) */
.f1-race-list .f1-driver-standings__header {
    grid-template-columns: 50px 80px 1fr 150px 80px 60px;
    /* Rnd Date Race Circuit Time Act */
}

.f1-race-list .f1-driver-standings__row {
    grid-template-columns: 50px 80px 1fr 150px 80px 60px;
}

/* Team Standings Mod (Grid Override) */
.f1-team-standings .f1-driver-standings__header {
    grid-template-columns: 60px 1fr 120px 60px 80px 80px 60px;
    /* Pos Team Drvs Title Pts Wins Act */
}

.f1-team-standings .f1-driver-standings__row {
    grid-template-columns: 60px 1fr 120px 60px 80px 80px 60px;
    background: linear-gradient(90deg, rgba(var(--team-color-rgb, 21, 21, 30), 0.15) 0%, rgba(21, 21, 30, 0.4) 40%, rgba(21, 21, 30, 0.8) 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    /* Base subtle border */
    border-left: 4px solid var(--team-color);
    /* Retain accent */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    /* For gradient/car clip */
}

/* Hover Effect: Glow Border */
.f1-team-standings .f1-driver-standings__row:hover {
    border-color: var(--team-color);
    box-shadow: 0 8px 32px rgba(var(--team-color-rgb, 255, 255, 255), 0.1);
    transform: translateY(-2px);
}

.f1-driver-standings__col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    z-index: 1;
    z-index: 1;
    /* Text above car */
    box-sizing: border-box;
    /* Ensure padding doesn't expand width */
}

.f1-driver-standings__col--pos,
.f1-driver-standings__col--number,
.f1-driver-standings__col--points,
.f1-driver-standings__col--wins,
.f1-driver-standings__col--action {
    align-items: center;
    justify-content: center;
}

/* Position */
.f1-driver-standings__pos {
    font-size: 20px;
    font-weight: 800;
    color: #888;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.f1-driver-standings__pos--gold {
    color: #FFD700;
    background: rgba(255, 215, 0, 0.15);
}

.f1-driver-standings__pos--silver {
    color: #C0C0C0;
    background: rgba(192, 192, 192, 0.15);
}

.f1-driver-standings__pos--bronze {
    color: #CD7F32;
    background: rgba(205, 127, 50, 0.15);
}

/* Driver Info */
.f1-driver-standings__driver {
    display: flex;
    align-items: center;
    gap: 16px;
}

.f1-driver-standings__image-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid;
    flex-shrink: 0;
    background: #222;
    display: flex;
    align-items: center;
    justify-content: center;
}

.f1-driver-standings__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.f1-driver-standings__image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.4);
    font-size: 14px;
    font-weight: 700;
}

.f1-driver-standings__name-block {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.f1-driver-standings__name {
    display: flex;
    align-items: baseline;
    gap: 6px;
    text-decoration: none;
    color: #fff;
    transition: color 0.2s;
}

.f1-driver-standings__name:hover {
    color: var(--team-color, #E10600);
}

.f1-driver-standings__firstname {
    font-size: 14px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
}

.f1-driver-standings__lastname {
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.5);
    /* 3D Effect */
}

.f1-driver-standings__nationality {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.f1-driver-standings__flag {
    font-size: 16px;
}

/* Team Column */
.f1-driver-standings__team {
    display: flex;
    align-items: center;
    gap: 12px;
}

.f1-driver-standings__team-logo-wrapper {
    width: 40px;
    height: 40px;
    /* geometric style */
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    /* Sharper */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    flex-shrink: 0;
}

.f1-driver-standings__team-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.f1-driver-standings__team-name {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.2s;
}

.f1-driver-standings__team-name:hover {
    color: var(--team-color, #E10600);
}

/* Driver Number */
.f1-driver-standings__number {
    font-size: 28px;
    font-weight: 900;
    font-style: italic;
    text-shadow: 3px 3px 0px rgba(0, 0, 0, 0.3);
    /* 3D Effect */
}

/* Stats Columns */
.f1-driver-standings__stat-value {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
}

.f1-driver-standings__stat-value--points {
    color: #E10600;
    font-size: 24px;
}

.f1-driver-standings__stat-value--titles {
    color: #FFD700;
}

.f1-driver-standings__stat-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 2px;
}

/* Profile Button */
.f1-driver-standings__profile-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: all 0.2s;
}

.f1-driver-standings__profile-btn:hover {
    background: var(--team-color, #E10600);
    color: #fff;
    transform: translateX(4px);
}

/* Responsive - Tablet */
@media (max-width: 1200px) {
    .f1-driver-standings__header {
        grid-template-columns: 50px 1fr 70px 70px 70px 160px 50px;
    }

    .f1-driver-standings__row {
        grid-template-columns: 50px 1fr 70px 70px 70px 160px 50px;
    }

    .f1-driver-standings__number {
        font-size: 20px;
    }

    .f1-driver-standings__car {
        right: 180px;
        height: 60px;
    }
}

/* Responsive - Medium screens (1024px) */
@media (max-width: 1024px) {
    .f1-driver-standings__header {
        display: none;
    }

    .f1-driver-standings__row {
        display: grid;
        grid-template-columns: 50px 1fr 100px 80px;
        /* Tablet Grid */
        grid-template-rows: auto auto;
        gap: 12px;
        padding: 20px;
    }

    /* Team Standings Tablet Override */
    .f1-team-standings .f1-driver-standings__row {
        /* Row layout adjustment needed?
            Let's stick to 2 Rows:
            Row 1: Pos(1), Team(2), Action(5) -> Cols: 50 1fr ... 50
            Row 2: Drivers(1), Titles(2), Pts(3), Wins(4)
         */
        grid-template-columns: 50px 1fr 60px 80px 80px;
    }

    .f1-team-standings .f1-driver-standings__col--team-main {
        grid-column: 2;
        grid-row: 1;
        padding-left: 0;
    }

    .f1-team-standings .f1-driver-standings__col--action {
        grid-column: 5;
        grid-row: 1;
    }

    .f1-team-standings .f1-driver-standings__col--drivers {
        grid-column: 1 / 3;
        grid-row: 2;
        /* existing styles */
        display: flex;
        align-items: center;
        background: rgba(0, 0, 0, 0.2);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 4px;
        padding: 8px;
        margin-right: 8px;
        box-sizing: border-box;
    }

    .f1-team-standings .f1-driver-standings__col--titles {
        grid-column: 3;
        grid-row: 2;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        background: rgba(0, 0, 0, 0.2);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 4px;
        padding: 6px 4px;
        height: 100%;
        margin-right: 8px;
        box-sizing: border-box;
    }

    .f1-team-standings .f1-driver-standings__col--points {
        grid-column: 4;
        grid-row: 2;
        margin-right: 8px;
    }

    .f1-team-standings .f1-driver-standings__col--wins {
        grid-column: 5;
        grid-row: 2;
    }

    /* Row 1: Identity */
    .f1-driver-standings__col--pos {
        grid-column: 1;
        grid-row: 1;
        justify-self: start;
    }

    .f1-driver-standings__col--driver {
        grid-column: 2;
        grid-row: 1;
        padding-left: 0;
    }

    .f1-driver-standings__col--number {
        grid-column: 3;
        grid-row: 1;
        display: flex !important;
        justify-content: flex-end;
        padding-right: 12px;
    }

    .f1-driver-standings__col--action {
        grid-column: 4;
        grid-row: 1;
        justify-content: center;
        align-self: center;
    }

    /* Row 2: Team & Stats */
    .f1-driver-standings__col--team {
        grid-column: 1 / 3;
        grid-row: 2;
        width: 100%;
        margin: 0;
        margin-right: 8px;
        padding-left: 0;
        order: unset;
        /* Reset order */

        /* Block Style */
        display: flex;
        align-items: center;
        gap: 12px;
        background: rgba(0, 0, 0, 0.2);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 4px;
        padding: 8px 12px;
        box-sizing: border-box;
    }

    .f1-driver-standings__col--points {
        grid-column: 3;
        grid-row: 2;
        margin: 0;
    }

    .f1-driver-standings__col--wins {
        grid-column: 4;
        grid-row: 2;
        margin: 0;
    }

    /* Geometric Stats for Tablet */
    .f1-driver-standings__col--points,
    .f1-driver-standings__col--wins {
        display: flex !important;
        flex-direction: column;
        background: rgba(0, 0, 0, 0.2);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 4px;
        padding: 6px 4px;
        align-items: center;
        justify-content: center;
        height: 100%;
        box-sizing: border-box;
    }

    .f1-driver-standings__col--points {
        border-color: rgba(225, 6, 0, 0.3);
        background: linear-gradient(180deg, rgba(225, 6, 0, 0.1) 0%, rgba(0, 0, 0, 0) 100%);
    }

    .f1-driver-standings__car {
        right: 0;
        bottom: 0;
        height: 100px;
        opacity: 0.1;
        z-index: 0;
    }

}

/* Responsive - Mobile (3 Rows Layout) */
@media (max-width: 768px) {
    .f1-driver-standings__header {
        display: none;
    }

    .f1-driver-standings__row {
        display: grid;
        grid-template-columns: 40px minmax(0, 1fr) 75px 65px;
        /* minmax allow shrink */
        grid-template-rows: auto auto;
        /* 2 Rows */
        gap: 8px;
        padding: 12px;
    }

    /* Disable hover shift on mobile for fluidity */
    .f1-driver-standings__row:hover {
        transform: none;
        box-shadow: none;
    }

    /* --- Row 1: Identity --- */
    /* Pos | Photo+Name | Num | Action */
    .f1-driver-standings__col--pos {
        grid-row: 1;
        grid-column: 1;
        justify-self: start;
    }

    .f1-driver-standings__col--driver {
        grid-row: 1;
        grid-column: 2;
        padding-left: 0;
    }

    .f1-driver-standings__col--number {
        display: flex !important;
        grid-row: 1;
        grid-column: 3;
        justify-content: flex-end;
        padding-right: 8px;
    }

    .f1-driver-standings__col--action {
        grid-row: 1;
        grid-column: 4;
        justify-content: center;
        align-self: center;
        margin-bottom: 0;
    }

    /* --- Row 2: Team & Stats --- */
    /* Blocks: Team(1-2), Pts(3), Wins(4) */

    .f1-driver-standings__col--team {
        grid-row: 2;
        grid-column: 1 / 3;
        /* Block Style */
        display: flex;
        align-items: center;
        justify-content: center;
        /* Center content in block */
        gap: 10px;
        background: rgba(0, 0, 0, 0.2);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 4px;
        padding: 4px 8px;
        margin: 0;
        margin-right: 4px;
        /* Force excessive gap */
        height: 100%;
        /* Fill height */
        overflow: hidden;
        /* Prevent spill */
        max-width: 100%;
        /* Ensure it doesn't exceed grid cell */
        min-width: 0;
        /* CRITICAL: Allows grid item to shrink below content width */
    }

    .f1-driver-standings__team-logo-wrapper {
        border: none;
        background: none;
        padding: 0;
        width: 32px;
        /* Bigger */
        height: 32px;
        /* Bigger */
        flex-shrink: 0;
    }

    .f1-driver-standings__team-name {
        display: block !important;
        font-size: 12px;
        /* Smaller to fit */
        font-weight: 700;
        /* Bold */
        color: #fff;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .f1-driver-standings__number {
        font-size: 20px;
        opacity: 0.8;
    }

    /* Unhide Nationality if it serves the layout */
    .f1-driver-standings__nationality {
        display: flex;
    }

    .f1-driver-standings__col--titles {
        grid-column: 4;
    }

    /* Geometric Stats Blocks - Unified Height */
    .f1-driver-standings__col--points,
    .f1-driver-standings__col--wins {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        background: rgba(0, 0, 0, 0.2);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 4px;
        /* Match Team Block */
        padding: 4px 2px;
        height: 100%;
        min-width: 0;
        /* Allow shrinking if needed, though fixed col prevents it */
        z-index: 2;
        /* Ensure above team if overlap happens */
    }

    .f1-driver-standings__col--points {
        grid-row: 2;
        grid-column: 3;
        border-color: rgba(225, 6, 0, 0.3);
        background: linear-gradient(180deg, rgba(225, 6, 0, 0.1) 0%, rgba(0, 0, 0, 0) 100%);
    }

    .f1-driver-standings__col--wins {
        grid-row: 2;
        grid-column: 4;
    }

    /* Team Standings Mobile Override */
    .f1-team-standings .f1-driver-standings__row {
        /* Wait, 5 cols fits? 375px is tight.
           Row 1: Pos(1), Team(2-3), Action(5)
           Row 2: Drivers(1-2), Titles(3), Pts(4), Wins(5)
           Cols: 40px 1fr 50px 60px 60px
        */
        grid-template-columns: 40px 1fr 50px 60px 55px;
    }

    .f1-team-standings .f1-driver-standings__col--team-main {
        grid-row: 1;
        grid-column: 2 / 5;
        /* Span wide */
        padding-left: 0;
    }

    .f1-team-standings .f1-driver-standings__col--action {
        grid-row: 1;
        grid-column: 5;
    }

    .f1-team-standings .f1-driver-standings__col--drivers {
        grid-row: 2;
        grid-column: 1 / 3;
        /* Wide block */
        /* existing styles */
        display: flex;
        align-items: center;
        justify-content: center;
        /* Center avatars */
        background: rgba(0, 0, 0, 0.2);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 4px;
        padding: 4px 8px;
        margin-right: 4px;
        /* Maintain gap */
        height: 100%;
        overflow: hidden;
        min-width: 0;
        box-sizing: border-box;
    }

    .f1-team-standings .f1-driver-standings__col--titles {
        grid-row: 2;
        grid-column: 3;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        background: rgba(0, 0, 0, 0.2);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 4px;
        padding: 4px 2px;
        height: 100%;
        margin-right: 4px;
    }

    .f1-team-standings .f1-driver-standings__col--points {
        grid-row: 2;
        grid-column: 4;
        margin-right: 4px;
    }

    .f1-team-standings .f1-driver-standings__col--wins {
        grid-row: 2;
        grid-column: 5;
    }

    /* Enhance Car BG visibility on Team rows */
    .f1-team-standings .f1-driver-standings__car {
        opacity: 0.15;
        right: -20px;
        top: 50%;
        transform: translateY(-50%);
        height: 120%;
        /* Fill vertical */
        z-index: 0;
        pointer-events: none;
    }

    /* Driver Link Hover */
    .f1-team-driver-link:hover {
        transform: scale(1.1);
        z-index: 10 !important;
    }

    /* Hide Team column in Team view (handled by team-main) */
    .f1-team-standings .f1-driver-standings__col--team {
        display: none;
    }

    .f1-team-standings .f1-driver-standings__col--team-main {
        grid-row: 1;
        grid-column: 2;
        /* Main subject spot */
        padding-left: 0;
    }

    .f1-driver-standings__stat-value {
        font-size: 14px;
    }

    .f1-driver-standings__stat-value--points {
        font-size: 16px;
    }

    .f1-driver-standings__stat-label {
        display: block;
        font-size: 9px;
    }

    /* Action moved to Row 1 */

    /* Hide the pseudo element hack */
    .f1-driver-standings__row::after {
        display: none;
    }

    /* Mobile Car Image */
    .f1-driver-standings__car {
        right: 0;
        bottom: 55px;
        /* Behind middle row */
        left: auto;
        transform: rotate(-5deg);
        height: 80px;
        /* Larger */
        opacity: 0.12;
        /* Very subtle */
        z-index: 0;
        filter: grayscale(100%);
    }

    /* Mobile adjustments */
    .f1-driver-standings__image-wrapper {
        width: 42px;
        height: 42px;
    }

    .f1-driver-standings__firstname {
        font-size: 12px;
    }

    .f1-driver-standings__lastname {
        font-size: 16px;
    }

    .f1-driver-standings__team-logo-wrapper {
        width: 24px;
        height: 24px;
    }

    .f1-driver-standings__team-name {
        font-size: 13px;
        font-family: monospace;
        /* Tech feel */
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
}

/* Very small screens */
@media (max-width: 480px) {
    .f1-driver-standings__row {
        padding: 12px;
        gap: 6px 10px;
    }

    .f1-driver-standings__pos {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }

    .f1-driver-standings__image-wrapper {
        width: 38px;
        height: 38px;
    }

    .f1-driver-standings__lastname {
        font-size: 13px;
    }

    .f1-driver-standings__team-logo-wrapper {
        width: 24px;
        height: 24px;
    }

    .f1-driver-standings__profile-btn {
        width: 32px;
        height: 32px;
    }

    .f1-driver-standings__car {
        height: 70px;
        bottom: 5px;
    }
}

/* =====================================================
   DRIVER PROFILE STYLES
   ===================================================== */

.f1-driver-profile {
    max-width: 1200px;
    margin: 0 auto;
    color: #fff;
}

/* Hero Section */
.f1-driver-hero {
    position: relative;
    background: linear-gradient(135deg, var(--team-color, #E10600) 0%, #15151E 60%, #15151E 100%);
    border-radius: 20px;
    padding: 48px 40px;
    overflow: hidden;
    margin-bottom: 0;
}

.f1-driver-hero__bg-number {
    position: absolute;
    top: 50%;
    right: 40px;
    transform: translateY(-50%);
    font-size: clamp(150px, 25vw, 300px);
    font-weight: 900;
    color: rgba(255, 255, 255, 0.05);
    line-height: 1;
    pointer-events: none;
    z-index: 0;
}

.f1-driver-hero__content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 40px;
}

.f1-driver-hero__image-wrapper {
    flex-shrink: 0;
}

.f1-driver-hero__image {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.f1-driver-hero__image-placeholder {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid rgba(255, 255, 255, 0.2);
}

.f1-driver-hero__image-placeholder span {
    font-size: 48px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.5);
}

.f1-driver-hero__info {
    flex: 1;
}

.f1-driver-hero__number {
    display: inline-block;
    font-size: 48px;
    font-weight: 900;
    color: var(--team-color, #E10600);
    background: rgba(0, 0, 0, 0.3);
    padding: 4px 20px;
    border-radius: 8px;
    margin-bottom: 12px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.f1-driver-hero__name {
    margin: 0 0 12px;
    line-height: 1.1;
}

.f1-driver-hero__firstname {
    display: block;
    font-size: 24px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.f1-driver-hero__lastname {
    display: block;
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.f1-driver-hero__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 16px;
}

.f1-driver-hero__flag {
    font-size: 24px;
}

.f1-driver-hero__divider {
    color: rgba(255, 255, 255, 0.3);
}

.f1-driver-hero__team {
    color: var(--team-color, #E10600);
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.2s;
}

.f1-driver-hero__team:hover {
    opacity: 0.8;
}

.f1-driver-hero__position {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(0, 0, 0, 0.4);
    padding: 8px 16px;
    border-radius: 8px;
}

.f1-driver-hero__position-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.6);
}

.f1-driver-hero__position-value {
    font-size: 24px;
    font-weight: 800;
    color: #FFD700;
}

/* Stats Bar */
.f1-driver-stats-bar {
    display: flex;
    justify-content: center;
    gap: 24px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 24px 40px;
    border-radius: 0 0 20px 20px;
    margin-bottom: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.f1-driver-stat {
    text-align: center;
    min-width: 100px;
}

.f1-driver-stat__value {
    display: block;
    font-size: 36px;
    font-weight: 900;
    color: #fff;
    line-height: 1;
    margin-bottom: 4px;
}

.f1-driver-stat__label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.5);
}

/* Car Banner */
.f1-driver-car-banner {
    background: linear-gradient(180deg, #15151E 0%, #1a1a2e 100%);
    padding: 40px;
    border-radius: 20px;
    margin-bottom: 32px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.f1-driver-car-banner::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--team-color, #E10600), transparent);
}

.f1-driver-car-banner__image {
    max-width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
}

/* Info Grid */
.f1-driver-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.f1-driver-info-card {
    background: linear-gradient(135deg, #15151E 0%, #1a1a2e 100%);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.f1-driver-info-card__title {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.5);
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.f1-driver-info-card__content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.f1-driver-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.f1-driver-info-row:last-child {
    border-bottom: none;
}

.f1-driver-info-row__label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

.f1-driver-info-row__value {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

.f1-driver-info-row__link {
    font-size: 14px;
    color: #E10600;
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.2s;
}

.f1-driver-info-row__link:hover {
    opacity: 0.8;
}

/* Team Card */
.f1-driver-team-card {
    background: linear-gradient(135deg, #15151E 0%, #1a1a2e 100%);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.f1-driver-team-card__header {
    background: var(--team-color, #E10600);
    padding: 12px 24px;
}

.f1-driver-team-card__label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #fff;
    font-weight: 600;
}

.f1-driver-team-card__content {
    padding: 24px;
    text-align: center;
}

.f1-driver-team-card__logo {
    max-width: 180px;
    max-height: 80px;
    margin-bottom: 16px;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.f1-driver-team-card__name {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 16px;
}

.f1-driver-team-card__link {
    display: inline-block;
    background: var(--team-color, #E10600);
    color: #fff;
    text-decoration: none;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.f1-driver-team-card__link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(225, 6, 0, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .f1-driver-hero {
        padding: 32px 24px;
    }

    .f1-driver-hero__content {
        flex-direction: column;
        text-align: center;
    }

    .f1-driver-hero__bg-number {
        right: 50%;
        transform: translate(50%, -50%);
        font-size: 120px;
    }

    .f1-driver-hero__image,
    .f1-driver-hero__image-placeholder {
        width: 140px;
        height: 140px;
    }

    .f1-driver-hero__number {
        font-size: 36px;
    }

    .f1-driver-hero__meta {
        flex-wrap: wrap;
        justify-content: center;
    }

    .f1-driver-stats-bar {
        flex-wrap: wrap;
        padding: 20px;
        gap: 16px;
    }

    .f1-driver-stat {
        min-width: 80px;
    }

    .f1-driver-stat__value {
        font-size: 28px;
    }

    .f1-driver-info-grid {
        grid-template-columns: 1fr;
    }

    .f1-driver-car-banner {
        padding: 24px;
    }

    .f1-driver-car-banner__image {
        max-height: 120px;
    }
}

/* Rich Race Card & List Adjustments */
.f1-race-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.f1-race-card--rich {
    background: linear-gradient(135deg, #15151E 0%, #1a1a2e 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .f1-race-card--rich>div:last-child {
        grid-template-columns: 1fr !important;
    }

    .f1-race-card--rich>div:last-child>div:first-child {
        border-right: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
}