/* =========================================================
   FRONT PAGE - RACE WEEKEND BOX
========================================================= */

.front-race-weekend{
    position: relative;
    z-index: 5;
    margin: 0;
    padding: 2px 0 0;
}

.front-race-weekend .container-wide{
    position: relative;
}

/* =========================================================
   MAIN BOX
========================================================= */

.race-weekend-box{
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 8px 20px 14px;
    border-radius: 20px;
    overflow: hidden;
    background:
        radial-gradient(circle at 12% 18%, rgba(255,255,255,.04) 0%, rgba(255,255,255,0) 24%),
        radial-gradient(circle at 88% 18%, rgba(255,255,255,.03) 0%, rgba(255,255,255,0) 22%),
        linear-gradient(180deg, rgba(255,255,255,.03) 0%, rgba(255,255,255,.01) 100%),
        linear-gradient(135deg, #050607 0%, #090b10 48%, #10131a 100%);
    border: 1px solid rgba(255,255,255,.08);
    box-shadow:
        0 16px 38px rgba(0,0,0,.30),
        inset 0 1px 0 rgba(255,255,255,.05);
}

.race-weekend-box::before{
    display: none;
}

.race-weekend-box::after{
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(255,255,255,.02) 0%, rgba(255,255,255,0) 18%, rgba(255,255,255,0) 82%, rgba(255,255,255,.02) 100%);
    mix-blend-mode: screen;
}

/* =========================================================
   TOP AREA
========================================================= */

.race-weekend-top{
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, 370px);
    gap: 18px;
    align-items: start;
}

.race-weekend-left,
.race-weekend-right{
    position: relative;
    min-width: 0;
}

/* =========================================================
   LEFT SIDE
========================================================= */

.race-weekend-left{
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 4px;
    padding-top: 0;
}

.race-weekend-status{
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0 0 2px;
    color: #fff;
    font-size: 16px;
    line-height: 1.1;
    font-weight: 800;
}

.race-weekend-status-icon{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 10px;
    height: 10px;
    font-size: 10px;
    line-height: 1;
}

.race-weekend-status-text{
    color: rgba(255,255,255,.96);
}

.race-weekend-headline{
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 0;
}

.race-weekend-series-line{
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    line-height: 1.08;
    flex-wrap: wrap;
}

.race-weekend-series{
    color: #ff2a2f;
    font-size: 20px;
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: -.02em;
    text-transform: uppercase;
}

.race-weekend-series-separator{
    color: rgba(255,255,255,.28);
    font-size: 26px;
    line-height: 1;
    font-weight: 400;
}

.race-weekend-race-name{
    color: #fff;
    font-size: 22px;
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -.03em;
}

.race-weekend-meta{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 10px;
    margin-top: 2px;
}

.race-weekend-meta-item{
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.race-weekend-meta-text,
.race-weekend-meta-sep{
    color: rgba(255,255,255,.88);
    font-size: 13px;
    line-height: 1.22;
    font-weight: 700;
}

.race-weekend-meta-sep{
    color: rgba(255,255,255,.22);
}

.race-weekend-icon{
    font-size: 12px;
    line-height: 1;
}

.race-weekend-flag{
    display: block;
    border-radius: 3px;
    box-shadow: 0 0 0 1px rgba(255,255,255,.08);
}

/* =========================================================
   RIGHT PANEL
========================================================= */

.race-weekend-right{
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 12px 16px;
    border-radius: 16px;
    background:
        radial-gradient(circle at 100% 0%, rgba(177,18,23,.10) 0%, rgba(177,18,23,0) 34%),
        linear-gradient(180deg, rgba(255,255,255,.02) 0%, rgba(255,255,255,.01) 100%),
        linear-gradient(135deg, #040506 0%, #08090c 55%, #0c0e12 100%);
    border: 1px solid rgba(255,255,255,.06);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.03),
        inset 0 0 0 1px rgba(255,255,255,.015),
        0 10px 22px rgba(0,0,0,.22);
}

/* =========================================================
   NEXT SESSION
========================================================= */

.race-weekend-next{
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.race-weekend-next-label{
    margin: 0;
    color: rgba(255,255,255,.66);
    font-size: 11px;
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.race-weekend-next-session{
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
}

.race-weekend-next-main{
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 15px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: .01em;
}

.race-weekend-next-series{
    color: #fff;
    font-weight: 700;
}

.race-weekend-next-session-name{
    color: #ff2d2d !important;
    font-weight: 800;
}

.race-weekend-next-main-sep,
.race-weekend-next-inline-sep{
    color: rgba(255,255,255,.58);
    font-weight: 700;
}

.race-weekend-next-day,
.race-weekend-next-clock{
    color: #fff !important;
    font-weight: 600;
}

.race-weekend-next-count-inline{
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 1px;
}

.race-weekend-next-count-label{
    color: rgba(255,255,255,.72);
    font-size: 12px;
    line-height: 1.25;
    font-weight: 700;
}

.race-weekend-next-session.is-empty{
    color: rgba(255,255,255,.70);
    font-size: 15px;
    line-height: 1.35;
    font-weight: 700;
}

/* =========================================================
   COUNTDOWN
========================================================= */

.race-weekend-countdown-value{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255,255,255,.04) 0%, rgba(255,255,255,.02) 100%), rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.03), 0 6px 14px rgba(0,0,0,.16);
    color: #ffffff;
    font-size: 11px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: .01em;
    white-space: nowrap;
}

.race-weekend-next.race-weekend-live .race-weekend-countdown-value{
    background: linear-gradient(180deg, rgba(177,18,23,.22) 0%, rgba(177,18,23,.14) 100%), rgba(177,18,23,.14);
    border-color: rgba(177,18,23,.34);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.03), 0 8px 18px rgba(177,18,23,.14);
}

/* =========================================================
   PROGRAM STRIP
========================================================= */

.race-weekend-strip{
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 0;
    overflow-x: auto;
    white-space: nowrap;
    flex-wrap: nowrap;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255,255,255,.02) 0%, rgba(255,255,255,.01) 100%), rgba(0,0,0,.20);
    border: 1px solid rgba(255,255,255,.06);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
}

.race-weekend-strip::-webkit-scrollbar{
    height: 4px;
}

.race-weekend-strip::-webkit-scrollbar-thumb{
    background: rgba(255,255,255,.20);
    border-radius: 10px;
}

.race-weekend-strip-day,
.race-weekend-strip-action{
    position: relative;
    min-width: 0;
    flex-shrink: 0;
}

.race-weekend-strip-day{
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    white-space: nowrap;
}

.race-weekend-strip-day:not(:last-child)::after,
.race-weekend-strip-action::before{
    content: "";
    position: absolute;
    top: 10px;
    bottom: 10px;
    width: 1px;
    background: rgba(255,255,255,.08);
}

.race-weekend-strip-day:not(:last-child)::after{
    right: 0;
}

.race-weekend-strip-action::before{
    left: 0;
}

.race-weekend-strip-day-label{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    height: 22px;
    line-height: 22px;
    color: rgba(255,255,255,.76);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.race-weekend-strip-day-label::before{
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ff3b30;
    box-shadow: 0 0 0 4px rgba(255,59,48,.08);
    flex: 0 0 7px;
}

.race-weekend-strip-items{
    display: flex;
    align-items: center;
    gap: 10px;
    height: 22px;
    margin: 0;
    padding: 0;
    white-space: nowrap;
    flex-wrap: nowrap;
}

.race-weekend-strip-item{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 22px;
    line-height: 22px;
    margin: 0;
    padding: 0;
    white-space: nowrap;
}

.race-weekend-strip-item:not(:last-child)::after{
    content: "";
    width: 1px;
    height: 16px;
    background: rgba(177,18,23,.26);
    margin-left: 2px;
}

.race-weekend-strip-session,
.race-weekend-strip-session-time{
    display: inline-flex;
    align-items: center;
    height: 22px;
    line-height: 22px;
    margin: 0;
    padding: 0;
    font-size: 13px;
    white-space: nowrap;
}

.race-weekend-strip-session{
    color: #fff;
    font-weight: 700;
}

.race-weekend-strip-session-time{
    color: rgba(255,255,255,.78);
    font-weight: 600;
}

.race-weekend-strip-action{
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    min-width: 132px;
    padding: 10px 14px;
}

/* =========================================================
   ACTIONS
========================================================= */

.race-weekend-actions{
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.race-weekend-actions-single{
    padding-top: 0;
}

.race-weekend-button{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 7px;
    font-size: 10px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease, filter .18s ease, background .18s ease, border-color .18s ease;
    text-align: center;
    white-space: nowrap;
}

.race-weekend-button-primary{
    background: linear-gradient(135deg, #b11217 0%, #8f0f14 100%);
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 8px 18px rgba(177,18,23,.18), inset 0 1px 0 rgba(255,255,255,.08);
    color: #fff;
}

.race-weekend-button-primary:hover{
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(177,18,23,.22), inset 0 1px 0 rgba(255,255,255,.08);
    filter: brightness(1.03);
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 991px){
    .front-race-weekend{
        padding-top: 6px;
    }

    .race-weekend-box{
        gap: 12px;
        padding: 14px 16px;
        border-radius: 18px;
    }

    .race-weekend-top{
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .race-weekend-right{
        padding: 14px;
        border-radius: 14px;
    }

    .race-weekend-strip{
        flex-direction: column;
        align-items: stretch;
        overflow: hidden;
    }

    .race-weekend-strip-day,
    .race-weekend-strip-action{
        width: 100%;
    }

    .race-weekend-strip-day:not(:last-child)::after,
    .race-weekend-strip-action::before{
        top: auto;
        left: 14px;
        right: 14px;
        bottom: 0;
        width: auto;
        height: 1px;
    }

    .race-weekend-strip-action{
        justify-content: center;
        min-width: 0;
        padding: 12px 14px;
    }

    .race-weekend-button{
        width: auto;
        min-width: 140px;
    }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 640px){
    .front-race-weekend{
        padding-top: 4px;
    }

    .race-weekend-box{
        padding: 12px;
        border-radius: 16px;
    }

    .race-weekend-left{
        gap: 5px;
    }

    .race-weekend-status{
        font-size: 14px;
    }

    .race-weekend-series-line{
        gap: 10px;
    }

    .race-weekend-series{
        font-size: 17px;
    }

    .race-weekend-series-separator{
        font-size: 22px;
    }

    .race-weekend-race-name{
        font-size: 19px;
    }

    .race-weekend-meta-text,
    .race-weekend-meta-sep{
        font-size: 12px;
    }

    .race-weekend-right{
        padding: 12px;
    }

    .race-weekend-next-main{
        font-size: 14px;
        gap: 7px;
    }

    .race-weekend-next-count-label{
        font-size: 11px;
    }

    .race-weekend-countdown-value{
        min-height: 26px;
        font-size: 11px;
    }

    .race-weekend-strip-day{
        padding: 10px 12px;
    }

    .race-weekend-strip-session,
    .race-weekend-strip-session-time{
        font-size: 12px;
    }

    .race-weekend-button{
        min-height: 30px;
        font-size: 10px;
        padding: 0 11px;
    }
}
.race-weekend-box{
    padding:6px 14px;
    gap:5px;
}

.race-weekend-right{
    padding:5px 9px;
}

.race-weekend-strip-day{
    padding:5px 9px;
}