/* Loaded after the built slideshow CSS so the live TV picks up the new look without a Vite rebuild. */
:root {
    --tv-bg: #12141a;
    --tv-text: #f7f5f0;
    --tv-muted: #b7bcc6;
    --tv-red: #d51f2b;
    --tv-red-soft: #e24b54;
    --tv-red-bright: #ff5a64;
    --tv-red-deep: #8e1520;
    --tv-gold: #f6a821;
    --tv-gold-soft: #ffd27a;
    --tv-silver: #d5dbe3;
    --tv-bronze: #d4894a;
    --tv-danger: #fecaca;
    --tv-panel: rgba(255, 255, 255, 0.055);
    --tv-line: rgba(255, 255, 255, 0.1);
}

html, body.tv-body {
    font-family: 'Inter', system-ui, sans-serif;
    background: #000;
    color: var(--tv-text);
}

.tv-frame {
    background:
        radial-gradient(ellipse 70% 42% at 50% -8%, rgba(213, 31, 43, 0.22) 0%, transparent 58%),
        linear-gradient(180deg, #1c1f27 0%, #12141a 46%, #0c0e13 100%);
}

/* —— Modern club look: quiet motion, charcoal stage, site type —— */
.tv-brand-text h1,
.tv-title-headline,
.tv-title-age,
.tv-event-title,
.tv-event-countdown-num,
.tv-event-countdown-today,
.tv-event-chrome-title,
.tv-event-clock,
.tv-value-title,
.tv-value-chrome-title,
.tv-value-progress,
.tv-rankings-chrome-title,
.tv-rankings-clock,
.tv-rankings-board-head,
.tv-rankings-name,
.tv-rankings-world,
.podium-medal,
.podium-sessions,
.podium-name,
.tv-list-row .rank,
.tv-list-row .sessions,
.tv-reveal-count {
    font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-shadow: none;
}

.tv-title-burst,
.tv-title-speedlines,
.tv-event-atmosphere,
.tv-value-atmosphere,
.tv-rankings-atmosphere,
.tv-title-screen.is-playing::after {
    display: none;
}

.tv-title-screen {
    border: 0;
    border-radius: 0;
    background:
        radial-gradient(ellipse 55% 42% at 50% 36%, rgba(213, 31, 43, 0.2) 0%, transparent 62%),
        linear-gradient(180deg, #1a1d25 0%, #101218 100%);
    box-shadow: none;
}

.tv-title-logo {
    width: 20cqh;
    max-width: 18cqw;
    filter: none;
    transform: none;
}

.tv-title-kicker,
.tv-title-headline,
.tv-title-age,
.tv-title-tag {
    transform: none;
}

.tv-title-kicker {
    margin-top: 1.6cqh;
    font-size: 0;
    letter-spacing: 0;
    color: transparent;
}

.tv-title-kicker::after {
    content: '';
    display: block;
    width: 2.6cqw;
    height: 0.32cqh;
    margin: 0 auto;
    border-radius: 999px;
    background: var(--tv-red);
}

.tv-title-headline {
    font-size: 12cqh;
    text-transform: uppercase;
}

.tv-title-age {
    color: var(--tv-gold);
}

.tv-title-tag {
    letter-spacing: 0.2em;
    color: var(--tv-muted);
}

.tv-event-stage,
.tv-value-stage,
.tv-rankings-stage,
.tv-reveal-countdown,
.tv-reveal-result {
    background: linear-gradient(180deg, #1a1d25 0%, #101218 100%);
}

.tv-event-chrome-title::after,
.tv-value-chrome-title::after,
.tv-rankings-chrome-title::after {
    background: var(--tv-red);
}

.tv-event-card.from-next,
.tv-event-card.from-prev,
.tv-value-card {
    transform: translateY(1.6cqh);
    filter: none;
}

.tv-event-card.is-visible,
.tv-value-card.is-visible {
    transform: none;
    filter: none;
    transition: opacity 420ms ease, transform 420ms ease;
}

.tv-event-card.is-exit.to-prev,
.tv-event-card.is-exit.to-next,
.tv-value-card.is-exit {
    transform: translateY(-1.2cqh);
    filter: none;
}

.tv-event-title,
.tv-value-title {
    text-shadow: none;
}

.tv-event-image {
    border: 0;
    background: #1c1f27;
    box-shadow: 0 1.4cqh 3.2cqh rgba(0, 0, 0, 0.35);
}

.tv-event-image.is-empty,
.tv-rankings-photo.is-missing {
    background: #23262e;
}

.tv-event-countdown {
    background: var(--tv-gold);
    color: #1a1204;
    box-shadow: none;
    border-radius: 1.1cqh;
}

.tv-event-dot.is-active,
.tv-value-dot.is-active {
    background: var(--tv-gold);
    box-shadow: none;
}

.tv-event-updated,
.tv-rankings-updated,
.tv-footer {
    color: var(--tv-muted);
}

.podium-slot.rank-1,
.podium-slot.rank-2,
.podium-slot.rank-3 {
    background: var(--tv-panel);
    box-shadow: none;
    border-width: 0.16cqh;
}

.podium-slot.rank-1 { border-color: var(--tv-gold); }
.podium-slot.rank-2 { border-color: rgba(213, 219, 227, 0.65); }
.podium-slot.rank-3 { border-color: rgba(212, 137, 74, 0.75); }

.podium-slot.rank-1.is-champion {
    animation: none;
}

.podium-slot.rank-1 .podium-sessions { color: var(--tv-gold-soft); }
.podium-slot.rank-3 .podium-sessions { color: #f3d2b4; }

.podium-name {
    font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif;
    letter-spacing: 0.02em;
}

.tv-list-stage {
    background: var(--tv-panel);
    border: 1px solid var(--tv-line);
    box-shadow: none;
}

.tv-list-row {
    border-bottom-color: var(--tv-line);
}

.tv-list-row.is-active {
    background: linear-gradient(90deg, rgba(213, 31, 43, 0.28), transparent 72%);
    box-shadow: inset 0.32cqw 0 0 var(--tv-red);
    transform: none;
}

.tv-list-row.is-active .rank,
.tv-list-row.is-active .name {
    text-shadow: none;
    letter-spacing: 0.02em;
}

.tv-list-row.is-active .tv-list-photo {
    box-shadow: none;
    border-color: #fff;
}

.tv-value-emblem-ring {
    animation: none;
    background: var(--tv-gold);
}

.tv-value-emblem-core {
    background: #1c1f27;
    border-color: rgba(246, 168, 33, 0.4);
    box-shadow: none;
}

.tv-value-icon {
    color: var(--tv-gold);
    filter: none;
}

.tv-rankings-viewport {
    background: var(--tv-panel);
    border-color: var(--tv-line);
}

.tv-rankings-row.is-active {
    background: linear-gradient(90deg, rgba(213, 31, 43, 0.28), transparent 70%);
    box-shadow: inset 0.32cqw 0 0 var(--tv-gold);
    transform: none;
}

.tv-rankings-row.is-active .tv-rankings-world,
.tv-rankings-row.is-active .tv-rankings-photo {
    text-shadow: none;
    box-shadow: none;
}

.tv-date-panel {
    background: rgba(18, 20, 26, 0.97);
    border-color: var(--tv-line);
}

@keyframes title-burst {
    to { opacity: 0; }
}

@keyframes title-speedlines {
    to { opacity: 0; }
}

@keyframes title-flash {
    to { opacity: 0; }
}

@keyframes title-logo-slam {
    from { opacity: 0; transform: translateY(1.2cqh); }
    to { opacity: 1; transform: none; }
}

@keyframes title-headline-slam {
    from { opacity: 0; transform: translateY(1.4cqh); }
    to { opacity: 1; transform: none; }
}

@keyframes event-title-slam {
    from { opacity: 0; transform: translateY(1.2cqh); filter: none; }
    to { opacity: 1; transform: none; filter: none; }
}

@keyframes event-countdown-pop {
    from { opacity: 0; transform: translateY(0.8cqh); }
    to { opacity: 1; transform: none; }
}

@keyframes medal-pop {
    from { opacity: 0; transform: translateY(0.8cqh); }
    to { opacity: 1; transform: none; }
}

@keyframes champion-pulse {
    from, to { filter: none; }
}

@keyframes value-emblem-spin {
    to { transform: none; }
}

@keyframes value-emblem-pop {
    from { opacity: 0; transform: translateY(1cqh); }
    to { opacity: 1; transform: none; }
}

/* Large ties: three names stack, four or more leave the card and get a roster. */
.podium-portrait-stack[data-count="3"],
.podium-slot.rank-1 .podium-portrait-stack[data-count="3"] {
    height: auto;
    max-width: none;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 0.45cqw;
    padding-bottom: 0.2cqh;
}

.podium-portrait-stack[data-count="3"] .podium-photo,
.podium-slot.rank-1 .podium-portrait-stack[data-count="3"] .podium-photo,
.tv-podium.is-solo-tie .podium-portrait-stack[data-count="3"] .podium-photo {
    width: 7.4cqh;
    height: 7.4cqh;
    margin-left: 0;
}

.podium-slot.is-tied-slot[data-count="3"] .podium-name,
.podium-slot.rank-1.is-tied-slot[data-count="3"] .podium-name {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.25cqh;
    font-size: 2.7cqh;
    letter-spacing: 0.01em;
}

.podium-slot.is-tied-slot[data-count="3"] .podium-name-person {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.podium-slot.is-tied-slot[data-count="3"] .podium-sessions,
.podium-slot.rank-1.is-tied-slot[data-count="3"] .podium-sessions,
.tv-podium.is-solo-tie .podium-slot.is-tied-slot[data-count="3"] .podium-sessions {
    font-size: 8cqh;
}

.podium-slot.is-crowd {
    justify-content: center;
    align-items: center;
    gap: 0.8cqh;
}

.podium-slot.is-crowd .podium-medal {
    width: 8cqh;
    height: 8cqh;
    margin: 0;
    font-size: 4.2cqh;
}

.podium-crowd-place,
.podium-crowd-count {
    margin: 0;
}

.podium-crowd-place {
    font-size: 2.1cqh;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--tv-muted);
}

.podium-crowd-count {
    font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif;
    font-weight: 700;
    font-size: 12cqh;
    line-height: 0.85;
    color: #fff;
}

.podium-crowd-count span {
    display: block;
    margin-top: 0.35cqh;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 2cqh;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--tv-muted);
}

.podium-slot.is-crowd .podium-sessions,
.podium-slot.rank-1.is-crowd .podium-sessions {
    margin-top: 0.6cqh;
    font-size: 7cqh;
    color: #fff;
}

.tv-roster {
    height: 100%;
    min-height: 0;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 2cqh;
    padding: 3.2cqh 3.6cqw 3cqh;
    background: linear-gradient(180deg, #1a1d25 0%, #101218 100%);
}

.tv-roster-head {
    text-align: center;
}

.tv-roster-kicker,
.tv-roster-meta,
.tv-roster-page {
    margin: 0;
}

.tv-roster-kicker {
    font-size: 2.3cqh;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--tv-gold);
}

.tv-roster-title {
    margin: 0.4cqh 0 0;
    font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif;
    font-weight: 700;
    font-size: 7cqh;
    line-height: 0.95;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #fff;
}

.tv-roster-meta,
.tv-roster-page {
    margin-top: 0.5cqh;
    font-size: 2.2cqh;
    color: var(--tv-muted);
}

.tv-roster-grid {
    min-height: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-content: center;
    gap: 1.1cqh 1.4cqw;
}

.tv-roster-grid[data-columns="2"] {
    grid-template-columns: repeat(2, minmax(0, 28cqw));
    justify-content: center;
}

.tv-roster-person {
    display: flex;
    align-items: center;
    gap: 1cqw;
    min-width: 0;
    padding: 0.7cqh 1cqw;
    border-radius: 1cqh;
    background: rgba(255, 255, 255, 0.05);
}

.tv-roster-photo {
    width: 6.2cqh;
    height: 6.2cqh;
    border-radius: 999px;
    object-fit: cover;
    flex-shrink: 0;
    background: #23262e;
}

.tv-roster-photo.is-empty {
    background-color: #23262e;
    background-image:
        radial-gradient(circle at 50% 36%, rgba(255, 255, 255, 0.38) 0 17%, transparent 18%),
        radial-gradient(ellipse 62% 48% at 50% 88%, rgba(255, 255, 255, 0.32) 0 48%, transparent 49%);
    background-repeat: no-repeat;
}

.tv-roster-name {
    margin: 0;
    min-width: 0;
    font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif;
    font-weight: 700;
    font-size: 3.2cqh;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

