.tsl-race-livebar {
    --tsl-live-bg: #10151d;
    --tsl-live-bg-2: #171d27;
    --tsl-live-panel: rgba(255,255,255,.055);
    --tsl-live-border: rgba(255,255,255,.09);
    --tsl-live-text: #f6f7f9;
    --tsl-live-muted: #979fac;
    --tsl-live-red: #e12038;
    --tsl-live-red-bright: #ff334e;
    --tsl-live-green: #49d681;
    position: relative;
    width: 100%;
    overflow: hidden;
    border: 1px solid var(--tsl-live-border);
    border-radius: 14px;
    color: var(--tsl-live-text);
    background:
        radial-gradient(circle at 92% -25%, rgba(225,32,56,.23), transparent 31%),
        linear-gradient(115deg, #171d27 0%, #10151d 54%, #0c1016 100%);
    box-shadow: 0 14px 34px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.025);
    font-family: inherit;
}

.tsl-race-livebar::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--tsl-live-red-bright), var(--tsl-live-red) 38%, transparent 85%);
    z-index: 3;
}

.tsl-race-livebar__top {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(220px, 1.05fr) minmax(420px, 2.2fr) minmax(220px, .95fr);
    align-items: stretch;
    min-height: 82px;
}

.tsl-race-livebar__live {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 17px 20px;
    border-right: 1px solid var(--tsl-live-border);
}

.tsl-race-livebar__pulse {
    width: 11px;
    height: 11px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--tsl-live-red-bright);
    box-shadow: 0 0 0 5px rgba(255,51,78,.12), 0 0 16px rgba(255,51,78,.58);
    animation: tslRacePulse 1.45s ease-in-out infinite;
}

@keyframes tslRacePulse {
    0%,100% { transform: scale(.92); opacity: .78; }
    50% { transform: scale(1.08); opacity: 1; }
}

.tsl-race-livebar__kicker {
    display: block;
    margin-bottom: 5px;
    color: var(--tsl-live-red-bright);
    font-size: 9px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: .17em;
    text-transform: uppercase;
}

.tsl-race-livebar__championship {
    display: block;
    color: var(--tsl-live-text);
    font-size: 17px;
    line-height: 1.12;
    font-weight: 900;
    text-transform: uppercase;
}

.tsl-race-livebar__facts {
    display: grid;
    grid-template-columns: minmax(180px, 1.5fr) minmax(80px, .55fr) minmax(190px, 1.2fr);
    background: rgba(255,255,255,.018);
}

.tsl-race-fact {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    padding: 14px 18px;
    border-right: 1px solid var(--tsl-live-border);
}

.tsl-race-fact__label {
    margin-bottom: 6px;
    color: var(--tsl-live-muted);
    font-size: 8px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: .17em;
    text-transform: uppercase;
}

.tsl-race-fact strong {
    display: block;
    min-width: 0;
    color: var(--tsl-live-text);
    font-size: 14px;
    line-height: 1.2;
    font-weight: 850;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tsl-race-livebar__broadcast {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
    padding: 14px 18px;
    color: #fff !important;
    text-decoration: none !important;
    background: linear-gradient(110deg, rgba(225,32,56,.18), rgba(225,32,56,.07));
    transition: background .18s ease, transform .18s ease;
}

.tsl-race-livebar__broadcast:hover,
.tsl-race-livebar__broadcast:focus {
    color: #fff !important;
    background: linear-gradient(110deg, rgba(225,32,56,.28), rgba(225,32,56,.11));
}

.tsl-race-livebar__broadcast.is-disabled {
    opacity: .55;
}

.tsl-race-livebar__broadcast-dot {
    width: 8px;
    height: 8px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--tsl-live-red-bright);
    box-shadow: 0 0 12px rgba(255,51,78,.65);
}

.tsl-race-livebar__broadcast small,
.tsl-race-livebar__broadcast strong {
    display: block;
}

.tsl-race-livebar__broadcast small {
    margin-bottom: 4px;
    color: #ff8798;
    font-size: 8px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: .16em;
}

.tsl-race-livebar__broadcast strong {
    font-size: 12px;
    line-height: 1.15;
    font-weight: 850;
}

.tsl-race-livebar__arrow {
    margin-left: auto;
    color: var(--tsl-live-red-bright);
    font-size: 18px;
}

.tsl-race-livebar__ticker-row {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 190px minmax(0,1fr) auto;
    min-height: 46px;
    border-top: 1px solid var(--tsl-live-border);
    background: #090d12;
}

.tsl-race-livebar__ticker-label {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 9px;
    min-width: 0;
    padding: 0 20px;
    border-right: 1px solid var(--tsl-live-border);
    white-space: nowrap;
}

.tsl-race-livebar__ticker-label span {
    padding: 4px 6px;
    border-radius: 4px;
    color: #fff;
    background: var(--tsl-live-red);
    font-size: 8px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: .1em;
}

.tsl-race-livebar__ticker-label strong {
    color: #b7bec9;
    font-size: 9px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: .13em;
}

.tsl-race-livebar__ticker-window {
    min-width: 0;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 10px;
}

.tsl-race-livebar__ticker-window::before,
.tsl-race-livebar__ticker-window::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 46px;
    z-index: 2;
    pointer-events: none;
}

.tsl-race-livebar__ticker-window::before {
    left: 0;
    background: linear-gradient(90deg, #090d12 0%, #090d12 22%, rgba(9,13,18,.84) 52%, transparent 100%);
}

.tsl-race-livebar__ticker-window::after {
    right: 0;
    background: linear-gradient(270deg, #090d12 0%, rgba(9,13,18,.84) 46%, transparent 100%);
}

.tsl-race-livebar__ticker {
    display: flex;
    align-items: center;
    height: 100%;
    width: max-content;
    min-width: 100%;
    animation: tslTickerScroll 28s linear infinite;
    will-change: transform;
}

.tsl-race-livebar__ticker-window:hover .tsl-race-livebar__ticker {
    animation-play-state: paused;
}

@keyframes tslTickerScroll {
    0%, 14% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.tsl-race-ticker-item {
    display: flex;
    align-items: center;
    align-self: stretch;
    gap: 8px;
    min-width: max-content;
    min-height: 46px;
    padding: 0 14px;
    border-right: 1px solid rgba(255,255,255,.07);
}

.tsl-race-ticker-item__pos {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    color: #fff;
    background: #252c37;
    font-size: 10px;
    font-weight: 900;
}

.tsl-race-ticker-item:first-child .tsl-race-ticker-item__pos {
    background: var(--tsl-live-red);
}

.tsl-race-ticker-item__name {
    color: #eef1f4;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.tsl-race-ticker-item__gap {
    color: #8e97a5;
    font-size: 9px;
    font-weight: 800;
}

.tsl-race-livebar__timing-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 16px;
    border-left: 1px solid var(--tsl-live-border);
    color: #fff !important;
    background: rgba(225,32,56,.11);
    text-decoration: none !important;
    white-space: nowrap;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .12em;
}

.tsl-race-livebar__timing-link span {
    color: var(--tsl-live-red-bright);
    font-size: 15px;
}

.tsl-race-livebar__timing-link:hover,
.tsl-race-livebar__timing-link:focus {
    background: rgba(225,32,56,.19);
}

.tsl-race-livebar__timing-link.is-disabled {
    opacity: .45;
}

@media (max-width: 1100px) {
    .tsl-race-livebar__top {
        grid-template-columns: minmax(210px, .9fr) minmax(420px, 2fr);
    }
    .tsl-race-livebar__broadcast {
        grid-column: 1 / -1;
        border-top: 1px solid var(--tsl-live-border);
    }
}

@media (max-width: 760px) {
    .tsl-race-livebar__top {
        grid-template-columns: 1fr;
    }
    .tsl-race-livebar__live {
        border-right: 0;
        border-bottom: 1px solid var(--tsl-live-border);
    }
    .tsl-race-livebar__facts {
        grid-template-columns: 1.3fr .7fr;
    }
    .tsl-race-fact.is-weather {
        grid-column: 1 / -1;
        border-top: 1px solid var(--tsl-live-border);
    }
    .tsl-race-livebar__ticker-row {
        grid-template-columns: 1fr auto;
    }
    .tsl-race-livebar__ticker-label {
        display: none;
    }
}

@media (max-width: 500px) {
    .tsl-race-livebar__facts {
        grid-template-columns: 1fr;
    }
    .tsl-race-fact {
        border-right: 0;
        border-bottom: 1px solid var(--tsl-live-border);
    }
    .tsl-race-fact.is-weather {
        grid-column: auto;
        border-top: 0;
    }
    .tsl-race-livebar__timing-link {
        padding: 0 10px;
    }
}
