/**
 * Live courts TV display — large-screen / signage only.
 * Shortcode: [pb_live_courts_tv]
 */

.pb-live-courts-tv-page .site-header,
.pb-live-courts-tv-page .site-footer,
.pb-live-courts-tv-page #wpadminbar,
.pb-live-courts-tv-page .pb-bottom-nav {
    display: none !important;
}

.pb-live-courts-tv-page .site-content,
.pb-live-courts-tv-page .entry-content,
.pb-live-courts-tv-page main {
    margin: 0 !important;
    padding: 0 !important;
    max-width: none !important;
}

.pb-live-courts-tv-page,
.pb-live-courts-tv-page body {
    overflow: hidden !important;
    height: 100% !important;
    max-height: 100vh;
    max-height: 100dvh;
}

.pb-live-courts-tv-page .site,
.pb-live-courts-tv-page #page,
.pb-live-courts-tv-page .site-content,
.pb-live-courts-tv-page .entry-content,
.pb-live-courts-tv-page main {
    width: 100% !important;
    max-width: none !important;
}

.pb-live-courts-tv-page .pb-next-alert {
    z-index: 100000;
}

/* ── Root shell ── */
.pb-live-courts-tv {
    --pb-lctv-navy: var(--pb-emotion-navy, #0a1628);
    --pb-lctv-navy-mid: var(--pb-emotion-navy-mid, #0f2140);
    --pb-lctv-green: var(--pb-emotion-green, #2d8a5e);
    --pb-lctv-green-deep: var(--pb-emotion-green-deep, #1e563c);
    --pb-lctv-lime: var(--pb-emotion-lime, #d4f94c);
    --pb-lctv-purple: var(--pb-emotion-purple, #5b4a9e);
    --pb-lctv-glass: rgba(10, 22, 40, 0.88);
    --pb-lctv-glass-light: rgba(255, 255, 255, 0.06);
    --pb-lctv-glass-border: rgba(255, 255, 255, 0.1);
    --pb-lctv-text: #ffffff;
    --pb-lctv-muted: rgba(255, 255, 255, 0.58);
    --pb-lctv-radius: 22px;
    --pb-lctv-card-radius: 16px;
    --pb-lctv-ease: var(--pb-emotion-ease-soft, cubic-bezier(0.22, 1, 0.36, 1));
    --pb-lctv-ease-bounce: var(--pb-emotion-ease, cubic-bezier(0.34, 1.56, 0.64, 1));
    --pb-lctv-fit-scale: 1;
    --pb-lctv-topbar-height: clamp(56px, 6.5vmin, 72px);
    --pb-lctv-footer-clearance: clamp(58px, 7.5vmin, 84px);
    --pb-lctv-fs-xs: clamp(0.72rem, 1.35vmin, 0.95rem);
    --pb-lctv-fs-sm: clamp(0.85rem, 1.55vmin, 1.1rem);
    --pb-lctv-fs-md: clamp(1rem, 1.85vmin, 1.35rem);
    --pb-lctv-fs-lg: clamp(1.15rem, 2.2vmin, 1.75rem);
    --pb-lctv-fs-xl: clamp(1.35rem, 2.8vmin, 2.5rem);
    --pb-lctv-fs-clock: clamp(1.15rem, 2.75vmin, 2.4rem);
    --pb-lctv-muted-strong: rgba(255, 255, 255, 0.78);

    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100vw;
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    box-sizing: border-box;
    padding: clamp(6px, 0.85vmin, 14px);
    padding-top: calc(var(--pb-lctv-topbar-height) + clamp(4px, 0.6vmin, 8px));
    padding-bottom: var(--pb-lctv-footer-clearance);
    overflow: hidden;
    background:
        radial-gradient(ellipse 100% 60% at 12% -8%, rgba(212, 249, 76, 0.18) 0%, transparent 52%),
        radial-gradient(ellipse 80% 55% at 92% 8%, rgba(91, 74, 158, 0.14) 0%, transparent 48%),
        radial-gradient(ellipse 70% 50% at 50% 100%, rgba(45, 138, 94, 0.12) 0%, transparent 55%),
        linear-gradient(168deg, #f4f7fb 0%, #e8eef6 38%, #dce5f0 100%);
    color: var(--pb-lctv-text);
    font-family: var(--pb-font-sans, "Poppins", sans-serif);
}

/* ── Ambient orbs ── */
.pb-lctv__ambient {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.pb-lctv__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.55;
}

.pb-lctv__orb--lime {
    width: min(42vw, 520px);
    height: min(42vw, 520px);
    top: -12%;
    left: -8%;
    background: rgba(212, 249, 76, 0.35);
}

.pb-lctv__orb--green {
    width: min(36vw, 440px);
    height: min(36vw, 440px);
    bottom: -10%;
    right: -6%;
    background: rgba(45, 138, 94, 0.28);
}

.pb-lctv__orb--purple {
    width: min(28vw, 340px);
    height: min(28vw, 340px);
    top: 38%;
    right: 18%;
    background: rgba(91, 74, 158, 0.22);
}

.pb-lctv__watermark {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-repeat: no-repeat;
    background-position: center 62%;
    background-size: min(28vw, 320px);
    opacity: 0.055;
    filter: saturate(0.7);
    z-index: 0;
}

/* ── Top bar ── */
.pb-lctv__topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(10px, 1.5vw, 16px);
    min-height: var(--pb-lctv-topbar-height);
    height: var(--pb-lctv-topbar-height);
    box-sizing: border-box;
    padding: 0 clamp(14px, 2vw, 36px);
    background: rgba(10, 22, 40, 0.96);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.pb-lctv__topbar-brand {
    display: flex;
    align-items: center;
    gap: clamp(8px, 1.2vw, 12px);
    min-width: 0;
    flex: 1 1 auto;
}

.pb-lctv__topbar-logo {
    width: auto;
    max-width: min(22vw, 132px);
    height: clamp(22px, 2.6vw, 32px);
    flex-shrink: 0;
    object-fit: contain;
    background: transparent;
    border-radius: 6px;
}

.pb-lctv__topbar-title {
    font-size: clamp(0.95rem, 1.65vw, 1.35rem);
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pb-lctv__topbar-live {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 0 0 auto;
    min-height: 0;
}

.pb-lctv__live-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: clamp(28px, 4vmin, 36px);
    padding: 0 clamp(10px, 1.4vw, 16px);
    border-radius: var(--pb-emotion-radius-pill, 999px);
    font-size: clamp(0.72rem, 1.1vw, 0.95rem);
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    line-height: 1;
    white-space: nowrap;
    color: var(--pb-lctv-lime);
    background: linear-gradient(135deg, rgba(30, 107, 71, 0.55) 0%, rgba(10, 22, 40, 0.85) 100%);
    border: 1px solid rgba(212, 249, 76, 0.35);
}

/* ── Grid ── */
.pb-lctv__grid {
    position: relative;
    z-index: 1;
    flex: 1 1 auto;
    min-height: 0;
    min-width: 0;
    display: grid;
    gap: clamp(8px, 1vmin, 18px);
    grid-template-columns: repeat(var(--pb-lctv-cols, 2), minmax(0, 1fr));
    grid-auto-rows: 1fr;
    align-content: stretch;
    align-items: stretch;
    overflow: hidden;
    padding-bottom: clamp(6px, 1vmin, 12px);
    transform: scale(var(--pb-lctv-fit-scale, 1));
    transform-origin: top center;
}

.pb-lctv__loading,
.pb-lctv__empty {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40vh;
    font-size: clamp(1rem, 1.8vw, 1.4rem);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--pb-emotion-navy-text, #0f2942);
    opacity: 0.65;
}

.pb-lctv__session-ended {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(10px, 1.4vmin, 18px);
    min-height: 48vh;
    padding: clamp(24px, 4vmin, 48px);
    text-align: center;
    border-radius: var(--pb-lctv-radius, 18px);
    background:
        linear-gradient(165deg, rgba(248, 250, 252, 0.92) 0%, rgba(241, 245, 249, 0.88) 100%);
    border: 1px solid rgba(100, 116, 139, 0.28);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.pb-lctv__session-ended-icon {
    width: clamp(14px, 1.6vmin, 20px);
    height: clamp(14px, 1.6vmin, 20px);
    border-radius: 50%;
    background: #ef4444;
    box-shadow: 0 0 0 8px rgba(239, 68, 68, 0.14);
}

.pb-lctv__session-ended-title {
    margin: 0;
    font-size: clamp(1.6rem, 4.2vmin, 3.4rem);
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--pb-emotion-navy-text, #0f2942);
    line-height: 1.1;
}

.pb-lctv__session-ended-detail {
    margin: 0;
    max-width: 28ch;
    font-size: clamp(0.95rem, 1.8vmin, 1.35rem);
    font-weight: 600;
    line-height: 1.45;
    color: rgba(15, 41, 66, 0.72);
}

.pb-live-courts-tv.is-session-ended .pb-lctv__live-chip {
    background: rgba(100, 116, 139, 0.18);
    border-color: rgba(100, 116, 139, 0.35);
    color: #334155;
}

/* One or two courts: use a 2x2 grid so panels keep quarter-viewport proportions. */
.pb-lctv__grid--quad {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
}

/* One ball rallies between the four portrait positions in each court. */
.pb-lctv-court__match {
    position: relative;
}

.pb-lctv-court-ball {
    position: absolute;
    left: 25%;
    top: 25%;
    z-index: 2;
    width: clamp(20px, 3vmin, 36px);
    aspect-ratio: 1;
    pointer-events: none;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.4));
    animation: pb-lctv-ball-bounce var(--pb-ball-duration, 18s) linear infinite;
    animation-delay: var(--pb-ball-delay, 0s);
    animation-direction: var(--pb-ball-direction, normal);
}

.pb-lctv-court-ball--trail {
    z-index: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 249, 76, 0.8) 0%, rgba(45, 138, 94, 0.35) 45%, transparent 72%);
    filter: blur(3px);
    animation-delay: calc(var(--pb-ball-delay, 0s) + var(--pb-ball-lag, 0.16s));
}

.pb-lctv-court-ball__spin {
    display: block;
    width: 100%;
    height: 100%;
    animation: pb-lctv-ball-spin 3s linear infinite;
}

@keyframes pb-lctv-ball-bounce {
    0%, 100% { left: 25%; top: 25%; transform: translate(-50%, -50%) scale(1.1, 0.9); }
    12.5% { left: 50%; top: 45%; transform: translate(-50%, -50%) scale(1); }
    25% { left: 75%; top: 75%; transform: translate(-50%, -50%) scale(1.1, 0.9); }
    37.5% { left: 75%; top: 45%; transform: translate(-50%, -50%) scale(1); }
    50% { left: 75%; top: 25%; transform: translate(-50%, -50%) scale(1.1, 0.9); }
    62.5% { left: 50%; top: 45%; transform: translate(-50%, -50%) scale(1); }
    75% { left: 25%; top: 75%; transform: translate(-50%, -50%) scale(1.1, 0.9); }
    87.5% { left: 25%; top: 45%; transform: translate(-50%, -50%) scale(1); }
}

@keyframes pb-lctv-ball-spin {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .pb-lctv-court-ball,
    .pb-lctv-court-ball__spin { animation: none; }
    .pb-lctv-court-ball { transform: translate(-50%, -50%); }
    .pb-lctv-court-ball--trail { display: none; }
}

/* ── Court panel ── */
.pb-lctv-court {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: 100%;
    border-radius: var(--pb-lctv-radius);
    background:
        linear-gradient(165deg, rgba(255, 255, 255, 0.04) 0%, transparent 40%),
        var(--pb-lctv-glass);
    border: 1px solid var(--pb-lctv-glass-border);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    overflow: hidden;
    container-type: size;
    container-name: lctv-court;
}

.pb-lctv-court__accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, var(--pb-lctv-lime) 35%, var(--pb-lctv-green) 65%, transparent 100%);
    opacity: 0.85;
    z-index: 2;
}

.pb-lctv-court.is-warmup .pb-lctv-court__accent {
    background: linear-gradient(90deg, transparent 0%, #fbbf24 40%, #f59e0b 60%, transparent 100%);
}

.pb-lctv-court.is-paused .pb-lctv-court__accent {
    background: linear-gradient(90deg, transparent 0%, #94a3b8 50%, transparent 100%);
    opacity: 0.6;
}

/* Special match — priority guest / admin match */
.pb-lctv-court--special {
    border: 2px solid rgba(230, 126, 34, 0.72);
    box-shadow:
        0 0 0 1px rgba(230, 126, 34, 0.18),
        0 10px 36px rgba(230, 126, 34, 0.22),
        inset 0 0 48px rgba(230, 126, 34, 0.07);
}

.pb-lctv-court--special .pb-lctv-court__accent {
    height: 4px;
    background: linear-gradient(90deg, transparent 0%, #e67e22 22%, #f5b041 50%, #e67e22 78%, transparent 100%);
    opacity: 1;
}

.pb-lctv-court--special.is-paused .pb-lctv-court__accent {
    background: linear-gradient(90deg, transparent 0%, #e67e22 30%, #94a3b8 50%, #e67e22 70%, transparent 100%);
    opacity: 0.85;
}

.pb-lctv-court__status-row {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: clamp(4px, 0.55vmin, 6px);
    margin: 0;
    flex-shrink: 0;
}

.pb-lctv-court__status-row .pb-lctv-court__status {
    margin-bottom: 0;
}

.pb-lctv-court__title-wrap > .pb-lctv-court__status {
    margin-bottom: 0;
}

.pb-lctv-court__special-badge {
    display: inline-flex;
    align-items: center;
    padding: clamp(4px, 0.6vmin, 6px) clamp(10px, 1.2vmin, 12px);
    border-radius: var(--pb-emotion-radius-pill, 999px);
    font-size: var(--pb-lctv-fs-xs);
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 2px 10px rgba(230, 126, 34, 0.35);
}

.pb-lctv-court--open .pb-lctv-court__accent {
    background: linear-gradient(90deg, transparent 0%, rgba(212, 249, 76, 0.5) 50%, transparent 100%);
    opacity: 0.75;
}

.pb-lctv-court__head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: clamp(8px, 1vmin, 14px);
    flex: 0 0 auto;
    z-index: 3;
    padding: clamp(8px, 1.1vmin, 14px) clamp(10px, 1.3vmin, 18px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(10, 22, 40, 0.98) 0%, rgba(10, 22, 40, 0.92) 100%);
}

.pb-lctv-court__title-wrap {
    min-width: 0;
}

.pb-lctv-court__title-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: clamp(6px, 0.85vmin, 10px);
    min-width: 0;
}

.pb-lctv-court__status {
    display: inline-flex;
    align-items: center;
    margin-bottom: 0;
    padding: clamp(4px, 0.65vmin, 6px) clamp(10px, 1.2vmin, 12px);
    border-radius: var(--pb-emotion-radius-pill, 999px);
    font-size: var(--pb-lctv-fs-xs);
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    white-space: nowrap;
}

.pb-lctv-court__status--live {
    color: var(--pb-lctv-lime);
    background: rgba(212, 249, 76, 0.12);
    border: 1px solid rgba(212, 249, 76, 0.3);
}

.pb-lctv-court__status--warmup {
    color: #fcd34d;
    background: rgba(251, 191, 36, 0.12);
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.pb-lctv-court__status--paused {
    color: #cbd5e1;
    background: rgba(148, 163, 184, 0.12);
    border: 1px solid rgba(148, 163, 184, 0.25);
}

.pb-lctv-court__status--open {
    color: var(--pb-lctv-lime);
    background: rgba(212, 249, 76, 0.1);
    border: 1px solid rgba(212, 249, 76, 0.28);
}

.pb-lctv-court__title {
    margin: 0;
    font-size: var(--pb-lctv-fs-lg);
    font-weight: 800;
    letter-spacing: 0.03em;
    line-height: 1.15;
    text-transform: uppercase;
    color: #fff;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pb-lctv-court__subtitle {
    display: block;
    margin-top: 0.2em;
    font-size: 0.68em;
    font-weight: 700;
    letter-spacing: 0.1em;
    opacity: 0.82;
    color: var(--pb-lctv-muted);
}

.pb-lctv-court__timer {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: clamp(3px, 0.55vmin, 6px);
    flex: 0 0 auto;
    flex-shrink: 0;
    min-width: 0;
    max-width: none;
}

.pb-lctv-court__timer-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    min-width: 7em;
    padding: clamp(6px, 1vmin, 10px) clamp(12px, 1.5vmin, 18px);
    border-radius: var(--pb-emotion-radius-pill, 999px);
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.pb-lctv-court__clock {
    font-size: var(--pb-lctv-fs-clock);
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
    color: #fff;
    white-space: nowrap;
}

.pb-lctv-court__clock-label {
    font-size: var(--pb-lctv-fs-xs);
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--pb-lctv-muted-strong);
    text-align: right;
    white-space: nowrap;
    line-height: 1.2;
}

/* ── Match layout ── */
.pb-lctv-court__match {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: stretch;
    gap: clamp(4px, 0.75vmin, 10px);
    padding: clamp(8px, 1.1vmin, 14px) clamp(8px, 1.1vmin, 16px) clamp(10px, 1.2vmin, 16px);
    overflow: hidden;
}

.pb-lctv-team {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(4px, 0.75vmin, 8px);
    align-content: stretch;
    align-items: stretch;
    min-width: 0;
    min-height: 0;
    height: 100%;
}

.pb-lctv-vs {
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    flex-shrink: 0;
    width: clamp(34px, 3.8vmin, 52px);
    height: clamp(34px, 3.8vmin, 52px);
    border-radius: 50%;
    background: linear-gradient(145deg, rgba(212, 249, 76, 0.18) 0%, rgba(45, 138, 94, 0.22) 100%);
    border: 1px solid rgba(212, 249, 76, 0.35);
}

.pb-lctv-vs__text {
    font-size: var(--pb-lctv-fs-sm);
    font-weight: 900;
    letter-spacing: 0.06em;
    color: var(--pb-lctv-lime);
}

/* ── Player card (sports-card style) ── */
.pb-lctv-player {
    position: relative;
    min-width: 0;
    min-height: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.pb-lctv-player__frame {
    position: relative;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    flex: 1 1 auto;
    width: 100%;
    height: 100%;
    min-height: 0;
    border-radius: var(--pb-lctv-card-radius);
    overflow: hidden;
    background: #0c1424;
    border: 2px solid var(--pb-lctv-accent, rgba(255, 255, 255, 0.18));
    transition: border-color 0.4s var(--pb-lctv-ease);
    container-type: size;
    container-name: lctv-player;
}

.pb-lctv-player__badge-row {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    min-height: 0;
    padding: clamp(4px, 1vmin, 7px) clamp(5px, 0.9vmin, 8px);
    background: rgba(10, 22, 40, 0.96);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.pb-lctv-player__tier-pill {
    position: static;
    top: auto;
    left: auto;
    z-index: 1;
    justify-self: start;
    max-width: 100%;
    min-width: 0;
    padding: clamp(2px, 0.45vmin, 4px) clamp(5px, 0.85vmin, 7px);
    border-radius: var(--pb-emotion-radius-pill, 999px);
    font-size: var(--pb-lctv-fs-xs);
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1.2;
    color: #fff;
    background: var(--pb-lctv-accent, #64748b);
    border: 1px solid rgba(255, 255, 255, 0.2);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pb-lctv-player--unrated .pb-lctv-player__tier-pill {
    color: var(--pb-emotion-navy-text, #0f2942);
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(255, 255, 255, 0.5);
}

.pb-lctv-player__team-tag {
    position: static;
    top: auto;
    right: auto;
    z-index: 1;
    max-width: 100%;
    min-width: 0;
    padding: clamp(3px, 0.55vmin, 5px) clamp(6px, 1vmin, 9px);
    font-size: var(--pb-lctv-fs-xs);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1.2;
    text-align: center;
    color: var(--pb-lctv-lime);
    background: linear-gradient(135deg, rgba(10, 22, 40, 0.95) 0%, rgba(30, 86, 60, 0.9) 100%);
    border-radius: var(--pb-emotion-radius-pill, 999px);
    border: 1px solid rgba(212, 249, 76, 0.25);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pb-lctv-player__photo-wrap {
    position: relative;
    width: 100%;
    min-height: 0;
    height: 100%;
    overflow: hidden;
    background: #0c1424;
}

.pb-lctv-player__photo-wrap--default {
    background: transparent;
}

.pb-lctv-player__photo-wrap--default::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background-color: transparent;
    background-image: var(--pb-lctv-default-photo);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 42% auto;
}

.pb-lctv-player__photo {
    position: relative;
    z-index: 0;
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
    object-position: center top;
    background: #0c1424;
}

.pb-lctv-player__photo--fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: clamp(2.2rem, 4.5vw, 3.2rem);
    font-weight: 800;
    color: rgba(255, 255, 255, 0.18);
    background:
        radial-gradient(circle at 30% 20%, rgba(212, 249, 76, 0.08) 0%, transparent 50%),
        linear-gradient(155deg, #1e2d4a 0%, #0c1424 100%);
}

.pb-lctv-player__name-bar {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    z-index: 2;
    flex-shrink: 0;
    padding: clamp(5px, 1vmin, 9px) clamp(5px, 0.9vmin, 8px);
    background: linear-gradient(180deg, rgba(10, 22, 40, 0.92) 0%, rgba(10, 22, 40, 0.98) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    pointer-events: none;
}

.pb-lctv-player__name {
    display: block;
    font-size: var(--pb-lctv-fs-sm);
    font-weight: 800;
    letter-spacing: 0.04em;
    text-align: center;
    line-height: 1.15;
    color: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pb-lctv-player__name-first {
    text-transform: uppercase;
}

.pb-lctv-player__name-nick {
    text-transform: none;
    letter-spacing: 0.02em;
}

@container lctv-player (max-width: 150px) {
    .pb-lctv-player__badge-row {
        justify-content: center;
    }

    .pb-lctv-player__tier-pill,
    .pb-lctv-player__team-tag {
        text-align: center;
    }
}

@container lctv-player (max-height: 180px) {
    .pb-lctv-player__badge-row {
        padding: 4px 6px;
    }
}

@container lctv-court (max-height: 260px) {
    .pb-lctv-court__head {
        padding-top: clamp(8px, 1vmin, 12px);
        padding-bottom: clamp(8px, 1vmin, 12px);
    }

    .pb-lctv-court__match {
        padding-top: clamp(6px, 0.9vmin, 10px);
        gap: clamp(3px, 0.55vmin, 6px);
    }
}

@supports not (font-size: 1cqh) {
    .pb-lctv-court__status {
        font-size: var(--pb-lctv-fs-xs);
    }

    .pb-lctv-court__title {
        font-size: var(--pb-lctv-fs-lg);
    }

    .pb-lctv-court__clock {
        font-size: var(--pb-lctv-fs-clock);
    }

    .pb-lctv-court__clock-label {
        font-size: var(--pb-lctv-fs-xs);
    }
}

/* ── Empty slot ── */
.pb-lctv-player--empty .pb-lctv-player__frame {
    border-style: dashed;
    border-color: rgba(212, 249, 76, 0.22);
    background: rgba(255, 255, 255, 0.03);
}

.pb-lctv-player__empty-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: inherit;
    padding: 20px;
}

.pb-lctv-player__empty-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.4rem;
    font-weight: 300;
    line-height: 1;
    color: rgba(212, 249, 76, 0.65);
    background: rgba(212, 249, 76, 0.08);
    border: 1px dashed rgba(212, 249, 76, 0.35);
}

.pb-lctv-player--empty .pb-lctv-player__name {
    font-size: clamp(0.72rem, 1.05vw, 0.88rem);
    color: var(--pb-lctv-muted);
    text-transform: uppercase;
}

/* ── Open court state ── */
.pb-lctv-court--open .pb-lctv-court__match {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
}

.pb-lctv-court__open-inner {
    text-align: center;
    padding: 28px 24px;
}

.pb-lctv-court__open-icon {
    display: inline-flex;
    width: 64px;
    height: 64px;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    border-radius: 50%;
    color: var(--pb-lctv-lime);
    background: linear-gradient(145deg, rgba(212, 249, 76, 0.16) 0%, rgba(45, 138, 94, 0.2) 100%);
    border: 1px solid rgba(212, 249, 76, 0.4);
}

.pb-lctv-court__open-title {
    margin: 0 0 8px;
    font-size: clamp(1.15rem, 2.1vw, 1.7rem);
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #fff;
}

.pb-lctv-court__open-sub {
    margin: 0;
    font-size: clamp(0.82rem, 1.2vw, 1rem);
    font-weight: 600;
    color: var(--pb-lctv-muted);
    letter-spacing: 0.02em;
}

/* ── Footer ── */
.pb-lctv__footer {
    position: fixed;
    left: 50%;
    bottom: 0;
    z-index: 4;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 24px 10px;
    border-radius: 16px 16px 0 0;
    background: linear-gradient(180deg, rgba(10, 22, 40, 0.96) 0%, rgba(10, 22, 40, 0.88) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: none;
    pointer-events: none;
}

.pb-lctv__footer-label {
    font-size: var(--pb-lctv-fs-xs);
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--pb-lctv-muted);
}

.pb-lctv__footer-brand {
    position: relative;
    font-size: var(--pb-lctv-fs-sm);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
}

.pb-lctv__footer-brand::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 8px;
    border-radius: 2px;
    background: linear-gradient(135deg, var(--pb-lctv-green) 0%, var(--pb-lctv-lime) 100%);
    vertical-align: middle;
}

@media (max-width: 900px) {
    .pb-lctv__footer {
        justify-content: center;
        width: max-content;
        max-width: calc(100% - 24px);
        box-sizing: border-box;
        gap: 8px;
        padding: 8px 14px calc(10px + env(safe-area-inset-bottom, 0px));
        white-space: nowrap;
        text-align: center;
    }

    .pb-lctv__footer-label,
    .pb-lctv__footer-brand {
        display: inline-flex;
        align-items: center;
        line-height: 1;
    }

    .pb-lctv__footer-label { font-size: 10px; }
    .pb-lctv__footer-brand { font-size: 12px; }
    .pb-lctv__footer-brand::before { flex: 0 0 8px; }
}

/* ── Skill accent tokens ── */
.pb-lctv-player--skill-newbie {
    --pb-lctv-accent: #9b59b6;
    --pb-lctv-accent-glow: rgba(155, 89, 182, 0.32);
}

.pb-lctv-player--skill-novice {
    --pb-lctv-accent: #3498db;
    --pb-lctv-accent-glow: rgba(52, 152, 219, 0.32);
}

.pb-lctv-player--skill-inter-low,
.pb-lctv-player--skill-inter-high {
    --pb-lctv-accent: #e67e22;
    --pb-lctv-accent-glow: rgba(230, 126, 34, 0.38);
}

.pb-lctv-player--skill-advanced {
    --pb-lctv-accent: #d35400;
    --pb-lctv-accent-glow: rgba(211, 84, 0, 0.35);
}

.pb-lctv-player--skill-expert {
    --pb-lctv-accent: #c0392b;
    --pb-lctv-accent-glow: rgba(192, 57, 43, 0.35);
}

.pb-lctv-player--unrated {
    --pb-lctv-accent: rgba(255, 255, 255, 0.3);
    --pb-lctv-accent-glow: rgba(255, 255, 255, 0.06);
}

.pb-lctv-player--neutral {
    --pb-lctv-accent: rgba(255, 255, 255, 0.3);
    --pb-lctv-accent-glow: rgba(255, 255, 255, 0.06);
}

/* ── TV breakpoints ── */
@media (max-width: 1024px) {
    .pb-lctv__grid {
        gap: clamp(6px, 0.85vmin, 12px);
    }

    .pb-lctv-court__head {
        padding: clamp(8px, 1vmin, 12px) clamp(8px, 1.1vmin, 14px);
    }
}

@media (max-width: 900px) {
    .pb-live-courts-tv-page,
    .pb-live-courts-tv-page body {
        overflow-x: hidden !important;
        overflow-y: auto !important;
        height: auto !important;
        min-height: 100dvh;
        max-height: none !important;
    }

    .pb-live-courts-tv-page .site,
    .pb-live-courts-tv-page #page,
    .pb-live-courts-tv-page .site-content,
    .pb-live-courts-tv-page main {
        height: auto !important;
        min-height: 100dvh;
        overflow: visible !important;
    }

    .pb-live-courts-tv {
        --pb-lctv-topbar-height: clamp(50px, 7.5vw, 58px);
        height: auto;
        min-height: 100dvh;
        max-height: none;
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding-left: clamp(6px, 1.5vw, 10px);
        padding-right: clamp(6px, 1.5vw, 10px);
        padding-bottom: calc(var(--pb-lctv-footer-clearance) + 12px);
    }

    .pb-lctv__grid {
        --pb-lctv-cols: 1;
        flex: none;
        width: 100%;
        grid-auto-rows: max-content;
        align-content: start;
        align-items: start;
        overflow: visible;
        transform: none !important;
        zoom: 1 !important;
        gap: clamp(12px, 3vw, 18px);
        padding-bottom: clamp(12px, 3vw, 20px);
    }

    .pb-lctv-court {
        height: auto;
        min-height: 0;
        container-type: normal;
    }

    .pb-lctv-court__head {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-rows: auto;
        align-items: center;
        gap: clamp(8px, 2vw, 12px);
        padding: clamp(10px, 2.5vw, 14px) clamp(12px, 3vw, 16px);
    }

    .pb-lctv-court__title-row {
        align-items: center;
        flex-wrap: nowrap;
    }

    .pb-lctv-court__timer {
        flex-direction: column;
        align-items: flex-end;
        justify-content: center;
        flex-shrink: 0;
        gap: 3px;
    }

    .pb-lctv-court__timer-pill {
        min-width: 6.5em;
        padding: clamp(6px, 1.5vw, 8px) clamp(12px, 3vw, 16px);
    }

    .pb-lctv-court__clock-label {
        text-align: right;
        flex-shrink: 0;
        letter-spacing: 0.08em;
    }

    .pb-lctv-court__match {
        flex: none;
        height: auto;
        min-height: 0;
        overflow: visible;
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        gap: clamp(10px, 2.5vw, 14px);
        padding: clamp(10px, 2.5vw, 14px) clamp(10px, 2.5vw, 14px) clamp(14px, 3.5vw, 18px);
    }

    .pb-lctv-team {
        height: auto;
        min-height: 0;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: stretch;
        gap: clamp(8px, 2vw, 12px);
    }

    .pb-lctv-player {
        display: flex;
        flex-direction: column;
        height: 100%;
        min-height: 0;
    }

    .pb-lctv-player__frame {
        flex: 1 1 auto;
        width: 100%;
        height: 100%;
        min-height: clamp(168px, 44vw, 220px);
        container-type: normal;
        grid-template-rows: auto minmax(0, 1fr) auto;
    }

    .pb-lctv-player__photo-wrap {
        flex: none;
        height: clamp(108px, 31vw, 148px);
        min-height: clamp(108px, 31vw, 148px);
        max-height: clamp(108px, 31vw, 148px);
    }

    .pb-lctv-player__photo-wrap--default {
        background: transparent;
    }

    .pb-lctv-player__photo,
    .pb-lctv-player__photo--fallback {
        height: 100%;
        min-height: 100%;
    }

    .pb-lctv-player__badge-row {
        justify-content: center;
        padding: clamp(5px, 1.2vw, 7px) clamp(6px, 1.5vw, 8px);
    }

    .pb-lctv-player__tier-pill,
    .pb-lctv-player__team-tag {
        text-align: center;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
        line-height: 1.15;
        font-size: clamp(0.62rem, 2.8vw, 0.78rem);
        letter-spacing: 0.05em;
        padding: clamp(3px, 0.8vw, 5px) clamp(4px, 1vw, 6px);
    }

    .pb-lctv-player__name {
        white-space: normal;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
        font-size: clamp(0.78rem, 3.2vw, 0.95rem);
        line-height: 1.2;
    }

    .pb-lctv-player__name-bar {
        padding: clamp(6px, 1.5vw, 8px) clamp(6px, 1.5vw, 8px);
    }

    .pb-lctv-player__photo-wrap--default::before {
        background-color: transparent;
        background-position: center center;
        background-size: 42% auto;
    }

    .pb-lctv-vs {
        width: clamp(36px, 10vw, 44px);
        height: clamp(36px, 10vw, 44px);
        margin: 4px auto;
    }

    .pb-lctv__topbar {
        padding: 0 clamp(10px, 2.5vw, 16px);
        gap: 8px;
    }

    .pb-lctv__topbar-brand,
    .pb-lctv__topbar-live {
        align-items: center;
    }

    .pb-lctv__topbar-title {
        max-width: min(58vw, 16rem);
        line-height: 1.2;
    }

    .pb-lctv__live-chip {
        min-height: 28px;
        padding: 0 12px;
        font-size: clamp(0.68rem, 2.8vw, 0.85rem);
    }
}

@media (max-width: 768px) {
    .pb-lctv-court__head {
        padding: clamp(8px, 1vmin, 12px) clamp(8px, 1.1vmin, 14px);
    }
}

@media (max-width: 720px) {
    .pb-lctv-court__match {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
    }

    .pb-lctv-vs {
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .pb-live-courts-tv {
        --pb-lctv-topbar-height: 48px;
        --pb-lctv-footer-clearance: clamp(44px, 8vw, 56px);
    }

    .pb-lctv__topbar-logo {
        width: auto;
        max-width: 28vw;
        height: 20px;
        padding: 0;
    }

    .pb-lctv__topbar-title {
        font-size: clamp(0.85rem, 3.5vw, 1.05rem);
        max-width: 46vw;
    }

    .pb-lctv__live-chip {
        min-height: 26px;
        padding: 0 10px;
        font-size: clamp(0.65rem, 3vw, 0.8rem);
    }

    .pb-lctv-court__title-row {
        gap: 5px;
    }

    .pb-lctv-court__title {
        font-size: clamp(1rem, 4.5vw, 1.25rem);
    }

    .pb-lctv-court__clock {
        font-size: clamp(1rem, 4.5vw, 1.35rem);
    }

    .pb-lctv-court__clock-label {
        font-size: clamp(0.72rem, 3.2vw, 0.9rem);
    }

    .pb-lctv-player__tier-pill,
    .pb-lctv-player__team-tag {
        font-size: clamp(0.65rem, 2.8vw, 0.8rem);
    }

    .pb-lctv-player__name {
        font-size: clamp(0.78rem, 3.2vw, 1rem);
    }
}

@media (max-height: 720px) {
    .pb-live-courts-tv {
        --pb-lctv-footer-clearance: clamp(48px, 6.5vmin, 68px);
    }

    .pb-lctv-court__special-badge {
        font-size: clamp(0.46rem, 0.9vmin, 0.56rem);
        padding: 3px 8px;
    }
}

@media (max-height: 720px) and (max-width: 900px) {
    .pb-live-courts-tv {
        --pb-lctv-topbar-height: clamp(46px, 7vh, 52px);
    }
}

/* ── TV leaderboard button + modal ── */
.pb-lctv-leaderboard-btn.is-sent,
.pb-tv-leaderboard-remote-btn.is-sent {
    opacity: 0.92;
}

.pb-lctv-leaderboard-btn,
.pb-tv-leaderboard-remote-btn {
    appearance: none !important;
    background: #28a745 !important;
    background-image: none !important;
    color: #fff !important;
    border: 1px solid #28a745 !important;
    border-radius: 4px !important;
    box-shadow: none !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    letter-spacing: normal !important;
    text-transform: none !important;
    padding: 8px 15px !important;
    cursor: pointer;
}

.pb-lctv-leaderboard-btn:hover,
.pb-lctv-leaderboard-btn:focus-visible,
.pb-tv-leaderboard-remote-btn:hover,
.pb-tv-leaderboard-remote-btn:focus-visible {
    background: #218838 !important;
    color: #fff !important;
    border-color: #218838 !important;
    box-shadow: none !important;
}

.pb-lctv-leaderboard-btn.is-active,
.pb-tv-leaderboard-remote-btn.is-active {
    background: #218838 !important;
    color: #fff !important;
    border-color: #218838 !important;
}

.pb-lctv-leaderboard-btn.is-active:hover,
.pb-lctv-leaderboard-btn.is-active:focus-visible,
.pb-tv-leaderboard-remote-btn.is-active:hover,
.pb-tv-leaderboard-remote-btn.is-active:focus-visible {
    background: #1e7e34 !important;
    color: #fff !important;
    border-color: #1e7e34 !important;
}

.pb-lctv-leaderboard-btn {
    position: fixed;
    right: clamp(12px, 2vmin, 24px);
    bottom: calc(var(--pb-lctv-footer-clearance, 64px) + clamp(8px, 1.2vmin, 14px));
    z-index: 40;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
}

body.pb-lctv-leaderboard-open {
    overflow: hidden !important;
}

.pb-lctv-leaderboard-modal {
    position: fixed;
    inset: 0;
    z-index: 100010;
    display: flex;
    align-items: stretch;
    justify-content: center;
}

.pb-lctv-leaderboard-modal[hidden] {
    display: none !important;
}

.pb-lctv-leaderboard-modal__scrim {
    position: absolute;
    inset: 0;
    background: rgba(10, 22, 40, 0.72);
    backdrop-filter: blur(4px);
}

.pb-lctv-leaderboard-modal__panel {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100vw;
    height: 100%;
    max-height: 100vh;
    max-height: 100dvh;
    background:
        radial-gradient(ellipse 90% 55% at 8% -5%, rgba(212, 249, 76, 0.14), transparent 52%),
        radial-gradient(ellipse 70% 45% at 100% 100%, rgba(91, 74, 158, 0.12), transparent 48%),
        linear-gradient(168deg, #0a1628 0%, #0f2140 46%, #0a1628 100%);
    box-shadow: 0 24px 80px rgba(10, 22, 40, 0.45);
    color: #fff;
}

.pb-lctv-leaderboard-modal__head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto auto;
    gap: clamp(6px, 1vmin, 12px);
    align-items: center;
    padding: clamp(8px, 1.2vmin, 14px) clamp(12px, 1.8vmin, 20px);
    background: linear-gradient(135deg, #0a1628 0%, #122a4a 100%);
    border-bottom: 3px solid #d4f94c;
    color: #fff;
}

.pb-lctv-leaderboard-modal__head-main {
    min-width: 0;
}

.pb-lctv-leaderboard-modal__title {
    margin: 0;
    font-size: clamp(1.1rem, 2.2vmin, 1.8rem);
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.pb-lctv-leaderboard-modal__period {
    margin: 0.25rem 0 0;
    font-size: clamp(0.78rem, 1.2vmin, 0.95rem);
    color: rgba(255, 255, 255, 0.72);
}

.pb-lctv-leaderboard-modal__tabs {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.pb-lctv-leaderboard-modal__tab {
    appearance: none;
    border: none !important;
    border-radius: 999px;
    background: transparent !important;
    color: rgba(255, 255, 255, 0.78) !important;
    font: inherit;
    font-size: clamp(0.72rem, 1.1vmin, 0.88rem);
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    padding: 0.5rem 0.85rem;
    cursor: pointer;
}

.pb-lctv-leaderboard-modal__tab.is-active {
    background: linear-gradient(135deg, #d4f94c 0%, #b8e030 100%) !important;
    color: #0a1628 !important;
    box-shadow: 0 4px 14px rgba(212, 249, 76, 0.28);
}

.pb-lctv-leaderboard-modal__range {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.pb-lctv-leaderboard-modal__range[hidden] {
    display: none !important;
}

.pb-lctv-leaderboard-modal__head .pb-leaderboard__session-nav {
    flex: 1 1 100%;
    margin: 0;
}

.pb-lctv-leaderboard-modal__head .pb-leaderboard__session-nav-hint {
    display: none;
}

.pb-lctv-leaderboard-modal__head .pb-leaderboard__tabs--session {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
    max-width: 320px;
    padding: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.pb-lctv-leaderboard-modal__head button.pb-leaderboard__tab.pb-leaderboard__tab--session[type="button"] {
    appearance: none !important;
    width: auto;
    min-width: 0;
    min-height: clamp(28px, 4vmin, 34px);
    padding: clamp(4px, 0.7vmin, 6px) clamp(10px, 1.4vmin, 14px) !important;
    border: none !important;
    border-radius: 999px !important;
    background: transparent !important;
    background-image: none !important;
    color: rgba(255, 255, 255, 0.72) !important;
    box-shadow: none !important;
    font-size: clamp(0.68rem, 1.05vmin, 0.8rem);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-align: center;
    cursor: pointer;
}

.pb-lctv-leaderboard-modal__head button.pb-leaderboard__tab.pb-leaderboard__tab--session.is-active[type="button"] {
    background: linear-gradient(135deg, #d4f94c 0%, #b8e030 100%) !important;
    background-image: linear-gradient(135deg, #d4f94c 0%, #b8e030 100%) !important;
    color: #0a1628 !important;
    box-shadow: 0 4px 14px rgba(212, 249, 76, 0.28) !important;
}

.pb-lctv-leaderboard-modal__range-btn {
    appearance: none;
    width: 34px;
    height: 34px;
    border: none !important;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12) !important;
    color: #fff !important;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
}

.pb-lctv-leaderboard-modal__range-btn:disabled {
    opacity: 0.35;
    cursor: default;
}

.pb-lctv-leaderboard-modal__range-label {
    min-width: 8rem;
    text-align: center;
    font-size: clamp(0.78rem, 1.1vmin, 0.92rem);
    font-weight: 700;
}

.pb-lctv-leaderboard-modal button.pb-lctv-leaderboard-modal__close[type="button"] {
    appearance: none !important;
    background-image: none !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28) !important;
}

.pb-lctv-leaderboard-modal button.pb-lctv-leaderboard-modal__close[type="button"]:hover,
.pb-lctv-leaderboard-modal button.pb-lctv-leaderboard-modal__close[type="button"]:focus-visible {
    box-shadow: 0 6px 20px rgba(212, 249, 76, 0.35) !important;
}

.pb-lctv-leaderboard-modal__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 2px solid rgba(212, 249, 76, 0.65) !important;
    border-radius: 50%;
    background: rgba(10, 22, 40, 0.82) !important;
    background-image: none !important;
    color: #d4f94c !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28);
    cursor: pointer;
    appearance: none;
    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        transform 0.15s ease;
}

.pb-lctv-leaderboard-modal__close-icon {
    display: block;
    width: 18px;
    height: 18px;
    pointer-events: none;
}

.pb-lctv-leaderboard-modal__close:hover,
.pb-lctv-leaderboard-modal__close:focus-visible {
    background: #d4f94c !important;
    color: #0a1628 !important;
    border-color: #d4f94c !important;
    transform: scale(1.04);
}

.pb-lctv-leaderboard-modal__body {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: clamp(8px, 1.2vmin, 14px);
    background: transparent;
}

.pb-lctv-leaderboard-modal__loading {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 22, 40, 0.72);
    font-size: clamp(0.95rem, 1.5vmin, 1.15rem);
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #d4f94c;
}

.pb-lctv-leaderboard-modal__loading[hidden] {
    display: none !important;
}

.pb-leaderboard--tv-modal {
    --pb-lb-navy: #0a1628;
    --pb-lb-navy-mid: #122a4a;
    --pb-lb-lime: #d4f94c;
    --pb-lb-lime-dark: #b8e030;
    --pb-lb-white: #ffffff;
    --pb-lb-muted: rgba(255, 255, 255, 0.72);
    --pb-lb-row-border: rgba(255, 255, 255, 0.08);
    --pb-lb-col-divider: rgba(255, 255, 255, 0.1);
    --pb-lb-col-divider-header: rgba(10, 22, 40, 0.2);
    --pb-lctv-lb-visible-rows: 10;
    --pb-lctv-lb-chrome: clamp(148px, 20dvh, 220px);
    --pb-lctv-lb-row-height: calc((100dvh - var(--pb-lctv-lb-chrome)) / var(--pb-lctv-lb-visible-rows));

    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    height: 100%;
    min-height: 0;
    max-height: none;
    max-width: none;
    margin: 0;
    padding: 0;
    color: #fff;
    background:
        linear-gradient(180deg, rgba(18, 42, 74, 0.92) 0%, rgba(10, 22, 40, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: clamp(14px, 2vmin, 20px);
    box-shadow:
        0 0 0 1px rgba(212, 249, 76, 0.08),
        0 18px 42px rgba(0, 0, 0, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.pb-leaderboard--tv-modal .pb-leaderboard__content {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: clamp(6px, 1vmin, 10px);
}

.pb-leaderboard--tv-modal .pb-leaderboard__table-wrap {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: rgba(8, 18, 36, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.pb-leaderboard--tv-modal .pb-leaderboard__table {
    flex: 1 1 auto;
    height: 100%;
    min-height: 0;
    min-width: 720px;
    background: transparent !important;
}

.pb-leaderboard--tv-modal .pb-leaderboard__table thead tr {
    height: auto;
}

.pb-leaderboard--tv-modal .pb-leaderboard__table tbody tr {
    height: var(--pb-lctv-lb-row-height);
    background: transparent !important;
}

.pb-leaderboard--tv-modal .pb-leaderboard__th {
    padding: clamp(5px, 0.9vmin, 9px) clamp(8px, 1.2vmin, 12px);
    font-size: clamp(0.62rem, 1.05vmin, 0.72rem);
}

.pb-leaderboard--tv-modal .pb-leaderboard__cell {
    padding: clamp(3px, 0.65vmin, 7px) clamp(8px, 1.2vmin, 12px);
    font-size: clamp(0.76rem, 1.4vmin, 0.9rem);
    line-height: 1.2;
}

.pb-leaderboard--tv-modal .pb-leaderboard__avatar {
    width: clamp(22px, 3vmin, 28px);
    height: clamp(22px, 3vmin, 28px);
}

.pb-leaderboard--tv-modal .pb-leaderboard__avatar--initials {
    font-size: clamp(0.68rem, 1.2vmin, 0.8rem);
}

.pb-leaderboard--tv-modal .pb-leaderboard__medal {
    width: clamp(22px, 3vmin, 28px);
    height: clamp(22px, 3vmin, 28px);
}

.pb-leaderboard--tv-modal .pb-leaderboard__medal-icon {
    width: clamp(18px, 2.6vmin, 24px);
    height: clamp(18px, 2.6vmin, 24px);
}

.pb-leaderboard--tv-modal .pb-leaderboard__cell--wins {
    font-size: clamp(0.95rem, 1.65vmin, 1.15rem);
}

.pb-leaderboard--tv-modal .pb-leaderboard__row--podium .pb-leaderboard__cell--wins {
    font-size: clamp(1rem, 1.75vmin, 1.2rem);
}

.pb-leaderboard--tv-modal .pb-leaderboard__table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.03) !important;
}

.pb-leaderboard--tv-modal .pb-leaderboard__cell,
.pb-leaderboard--tv-modal .pb-leaderboard__player-name {
    color: #fff;
}

.pb-leaderboard--tv-modal .pb-leaderboard__cell--rank {
    color: rgba(255, 255, 255, 0.92);
    font-weight: 800;
}

.pb-leaderboard--tv-modal .pb-leaderboard__cell--wins {
    color: #d4f94c;
    text-shadow: 0 0 18px rgba(212, 249, 76, 0.35);
}

.pb-leaderboard--tv-modal .pb-leaderboard__cell--rate,
.pb-leaderboard--tv-modal .pb-leaderboard__cell--games,
.pb-leaderboard--tv-modal .pb-leaderboard__cell--opp {
    color: rgba(255, 255, 255, 0.92);
}

.pb-leaderboard--tv-modal .pb-leaderboard__row:nth-child(even) {
    background: rgba(255, 255, 255, 0.03) !important;
}

.pb-leaderboard--tv-modal .pb-leaderboard__row--rank-1 {
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.18) 0%, rgba(255, 215, 0, 0.04) 55%, transparent 100%) !important;
}

.pb-leaderboard--tv-modal .pb-leaderboard__row--rank-2 {
    background: linear-gradient(90deg, rgba(192, 192, 192, 0.14) 0%, transparent 55%) !important;
}

.pb-leaderboard--tv-modal .pb-leaderboard__row--rank-3 {
    background: linear-gradient(90deg, rgba(205, 127, 50, 0.16) 0%, transparent 55%) !important;
}

.pb-leaderboard--tv-modal .pb-leaderboard__empty {
    color: rgba(255, 255, 255, 0.88);
}

.pb-leaderboard--tv-modal .pb-leaderboard__empty-title {
    color: #fff;
}

.pb-leaderboard--tv-modal .pb-leaderboard__empty-sub {
    color: rgba(255, 255, 255, 0.72);
}

.pb-leaderboard--tv-modal .pb-leaderboard__row--rank-1 .pb-leaderboard__player-name {
    color: #ffe566;
    text-shadow: 0 0 12px rgba(255, 215, 0, 0.25);
}

.pb-leaderboard--tv-modal .pb-leaderboard__row--rank-2 .pb-leaderboard__player-name {
    color: #f0f0f0;
}

.pb-leaderboard--tv-modal .pb-leaderboard__row--rank-3 .pb-leaderboard__player-name {
    color: #f5d0b5;
}

.pb-leaderboard--tv-modal .pb-player-guest-tag {
    color: #f9e79f;
}

@media (max-width: 900px) {
    .pb-lctv-leaderboard-modal__head {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-rows: auto auto auto;
    }

    .pb-lctv-leaderboard-modal__tabs,
    .pb-lctv-leaderboard-modal__range {
        grid-column: 1 / -1;
        justify-self: start;
    }

    .pb-lctv-leaderboard-modal__close {
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
    }
}

/* Stacked team portraits with a central matchup divider. */
.pb-live-courts-tv .pb-lctv-court__match--stacked {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 6px;
    container-type: size;
    --pb-lctv-portrait-size: max(32px, min(46cqw, calc((100cqh - 120px) / 2), 400px));
}
.pb-lctv-court__match--stacked .pb-lctv-team {
    height: auto;
    align-items: center;
    align-content: center;
    gap: clamp(12px, 3vmin, 40px);
}
.pb-lctv-court__match--stacked .pb-lctv-player {
    height: auto;
    align-items: center;
}
.pb-lctv-court__match--stacked .pb-lctv-player__frame {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: none;
    height: auto;
    min-height: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    container-type: normal;
}
.pb-lctv-court__match--stacked .pb-lctv-player__badge-row { display: none; }
.pb-lctv-court__match--stacked .pb-lctv-player__photo-wrap {
    flex: none;
    width: var(--pb-lctv-portrait-size);
    height: var(--pb-lctv-portrait-size);
    min-height: 0;
    max-height: none;
    max-width: 100%;
    aspect-ratio: 1;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, .22);
    box-sizing: border-box;
}
.pb-lctv-court__match--stacked .pb-lctv-player__name-bar {
    width: 100%;
    padding: 6px 0 0;
    border: 0;
    background: transparent;
}
.pb-lctv-court__match--stacked .pb-lctv-team--bottom .pb-lctv-player__name-bar {
    order: -1;
    padding: 0 0 6px;
}
.pb-live-courts-tv .pb-lctv-court__match--stacked .pb-lctv-player__photo {
    position: absolute;
    inset: 0;
    display: block;
    width: 100% !important;
    height: 100% !important;
    min-height: 0;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 4px !important;
    object-fit: cover !important;
    object-position: center center !important;
}
.pb-live-courts-tv .pb-lctv-court__match--stacked .pb-lctv-player__photo--fallback { display: flex; }
.pb-lctv-court__match--stacked .pb-lctv-player__photo-wrap--default::before {
    background-color: transparent;
    background-size: 42% auto;
    background-position: center center;
}
.pb-lctv-court__match--stacked .pb-lctv-player__name {
    white-space: normal;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-height: 1.2;
    font-size: clamp(11px, 1.6vmin, 20px);
}
.pb-lctv-match-divider { display: grid; gap: 4px; min-width: 0; text-align: center; }
.pb-lctv-match-divider__team {
    font-size: clamp(11px, 1.7vmin, 22px);
    font-weight: 700;
    color: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.pb-lctv-match-divider__line { display: flex; align-items: center; gap: 8px; }
.pb-lctv-match-divider__line::before,
.pb-lctv-match-divider__line::after {
    content: '';
    flex: 1;
    height: 16px;
    background: repeating-linear-gradient(90deg, #fff 0 8px, transparent 8px 12px) center / 100% 2px no-repeat;
}
.pb-lctv-match-divider__line::before { border-left: 3px solid #fff; }
.pb-lctv-match-divider__line::after { border-right: 3px solid #fff; }
.pb-lctv-match-divider .pb-lctv-vs {
    width: auto;
    height: auto;
    margin: 0;
    padding: 2px 10px;
    border-radius: 6px;
}
.pb-lctv-court__match--stacked .pb-lctv-player--empty .pb-lctv-player__empty-inner {
    width: var(--pb-lctv-portrait-size);
    height: var(--pb-lctv-portrait-size);
    padding: 4px;
    border: 1px dashed rgba(212, 249, 76, .3);
    box-sizing: border-box;
}
@media (min-width: 901px) {
    .pb-live-courts-tv .pb-lctv-court__match--stacked {
        --pb-lctv-portrait-size: max(32px, min(calc(50cqw - 4px), calc((100cqh - 80px) / 2), 640px));
        gap: 2px;
        padding: 4px 6px;
    }
    .pb-lctv-court__match--stacked .pb-lctv-team { gap: 8px; }
    .pb-lctv-court__match--stacked .pb-lctv-player__name-bar { padding-top: 3px; }
    .pb-lctv-court__match--stacked .pb-lctv-team--bottom .pb-lctv-player__name-bar { padding: 0 0 3px; }
    .pb-lctv-match-divider { gap: 2px; }
    .pb-lctv-match-divider__team { line-height: 1.1; }
    .pb-lctv-court__match--stacked .pb-lctv-player__name {
        display: block;
        white-space: nowrap;
        text-overflow: ellipsis;
    }
}
@media (max-width: 900px) {
    .pb-live-courts-tv .pb-lctv-court__match--stacked {
        container-type: normal;
        grid-template-rows: auto auto auto;
        --pb-lctv-portrait-size: min(46vw, 400px);
        gap: 20px;
        padding: 24px 10px;
    }
}

/* The announcement ticker only reserves screen space when it contains text. */
.pb-live-courts-tv.has-announcement { padding-bottom: calc(var(--pb-lctv-footer-clearance) + 48px); }
.pb-live-courts-tv.has-announcement .pb-lctv__footer { bottom: 48px; }
.pb-lctv-ticker {
    position: fixed;
    inset: auto 0 0;
    z-index: 5;
    display: flex;
    align-items: center;
    height: 48px;
    background: #0a1628;
    border-top: 1px solid rgba(212, 249, 76, .35);
    color: #fff;
    font-size: clamp(14px, 1.8vmin, 24px);
    overflow: hidden;
}
.pb-lctv-ticker[hidden] { display: none !important; }
.pb-lctv-ticker__label {
    flex: none;
    display: flex;
    align-items: center;
    align-self: stretch;
    padding: 0 18px;
    background: #1e6b47;
    color: #d4f94c;
    font-size: .8em;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.pb-lctv-ticker__viewport { flex: 1; min-width: 0; overflow: hidden; }
.pb-lctv-ticker__text {
    display: inline-block;
    width: max-content;
    padding-left: 100vw;
    white-space: nowrap;
    animation: pb-tv-ticker-scroll var(--pb-ticker-duration, 30s) linear infinite;
}
@keyframes pb-tv-ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) {
    .pb-lctv-ticker__viewport { overflow-x: auto; }
    .pb-lctv-ticker__text { padding: 0 16px; animation: none; }
}
@media (max-width: 600px) {
    .pb-lctv-ticker__label { padding: 0 10px; font-size: 10px; }
}
