/* Championship venue TV board — felt dark, large type for projector distance. */
body.sc-tv-board-page {
    margin: 0;
    min-height: 100vh;
    overflow: hidden;
    background:
        radial-gradient(90% 55% at 50% -12%, rgba(201, 162, 39, 0.18), transparent 55%),
        radial-gradient(60% 45% at 100% 100%, rgba(16, 90, 68, 0.4), transparent 50%),
        linear-gradient(180deg, #06120e 0%, #0c241c 42%, #071510 100%);
    color: rgba(255, 255, 255, 0.94);
    font-family: "Segoe UI", system-ui, sans-serif;
}

.sc-tv {
    box-sizing: border-box;
    height: 100vh;
    max-height: 100vh;
    padding: 18px 22px 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sc-tv__header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px 24px;
    flex: 0 0 auto;
}

.sc-tv__brand {
    min-width: 0;
}

.sc-tv__brand-row {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.sc-tv__space-image {
    flex: 0 0 auto;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    object-fit: cover;
    border: 2px solid rgba(201, 162, 39, 0.35);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
    background: rgba(255, 255, 255, 0.06);
}

.sc-tv__brand-text {
    min-width: 0;
}

.sc-tv__eyebrow {
    margin: 0 0 4px;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(201, 162, 39, 0.92);
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sc-tv__title {
    margin: 0;
    font-size: clamp(22px, 2.6vw, 34px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.08;
    text-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.sc-tv__meta {
    margin: 8px 0 0;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.72);
}

.sc-tv__status {
    color: #c9a227;
    font-weight: 700;
}

.sc-tv__dot {
    margin: 0 8px;
    opacity: 0.45;
}

.sc-tv__header-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    min-width: 200px;
    max-width: min(320px, 38vw);
}

.sc-tv__link {
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    font-size: 13px;
    border-bottom: 1px solid rgba(201, 162, 39, 0.45);
}

.sc-tv__link:hover,
.sc-tv__link:focus {
    color: #fff;
}

.sc-tv__link--small {
    font-size: 12px;
}

.sc-tv__tabs {
    display: flex;
    gap: 8px;
    flex: 0 0 auto;
}

.sc-tv__tab {
    appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.72);
    border-radius: 999px;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.sc-tv__tab:hover,
.sc-tv__tab:focus {
    color: #fff;
    border-color: rgba(201, 162, 39, 0.45);
}

.sc-tv__tab.is-active {
    color: #0c241c;
    background: linear-gradient(180deg, #e8c96a 0%, #c9a227 100%);
    border-color: #c9a227;
}

.sc-tv__panels {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.sc-tv__panel {
    flex: 1 1 auto;
    min-height: 0;
    display: none;
}

.sc-tv__panel.is-active {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.sc-tv__panel--board .sc-tv__grid {
    flex: 1 1 auto;
}

.sc-tv__progress {
    width: 100%;
}

.sc-tv__progress--header {
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
}

.sc-tv__progress-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
}

.sc-tv__progress-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}

.sc-tv__progress-meta {
    margin: 6px 0 0;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.62);
    text-align: right;
    line-height: 1.35;
}

.sc-tv__progress-pct {
    font-size: clamp(22px, 2.4vw, 30px);
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: #e8c96a;
    line-height: 1;
}

.sc-tv__progress-track {
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.35);
}

.sc-tv__progress-fill {
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, #1a7a5c 0%, #c9a227 100%);
    transition: width 0.45s ease;
}

.sc-tv__progress--stage {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sc-tv__progress-head--stage {
    margin-bottom: 4px;
}

.sc-tv__progress-title--stage {
    font-size: 10px;
    letter-spacing: 0.06em;
    text-transform: none;
    color: rgba(255, 255, 255, 0.48);
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: min(100%, 220px);
}

.sc-tv__progress-pct--stage {
    font-size: 16px;
    color: rgba(232, 201, 106, 0.85);
}

.sc-tv__progress-track--stage {
    height: 5px;
    background: rgba(255, 255, 255, 0.06);
}

.sc-tv__progress-fill--stage {
    background: linear-gradient(90deg, #2a6ea8 0%, #5cb8a8 100%);
}

.sc-tv__panel--bracket {
    gap: 12px;
}

.sc-tv__bracket-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px 20px;
    flex: 0 0 auto;
}

.sc-tv__bracket-title {
    margin: 0;
    font-size: clamp(20px, 2.2vw, 28px);
    font-weight: 800;
}

.sc-tv__bracket-meta {
    margin: 4px 0 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
}

.sc-tv__bracket-host {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(6, 22, 17, 0.55);
    padding: 10px 12px 14px;
}

.sc-tv__bracket-host > .snooker-bv,
.sc-tv__bracket-host > .snooker-swiss,
.sc-tv__bracket-host > .snooker-rr {
    min-height: 100%;
}

.sc-tv__grid {
    flex: 1 1 auto;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.85fr);
    gap: 16px;
}

.sc-tv__main,
.sc-tv__aside {
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
    overflow: hidden;
}

.sc-tv__section {
    background: rgba(6, 22, 17, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 14px 16px 16px;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.sc-tv__section--live {
    flex: 1.35 1 0%;
}

.sc-tv__main > .sc-tv__section:not(.sc-tv__section--live) {
    flex: 0.85 1 0%;
}

.sc-tv__aside > .sc-tv__section {
    flex: 1 1 0%;
}

.sc-tv__section-title {
    margin: 0 0 12px;
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.62);
    font-weight: 700;
}

.sc-tv__standings-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 4px;
}

.sc-tv__standings-head .sc-tv__section-title {
    margin-bottom: 8px;
}

.sc-tv__live-grid {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 12px;
    align-content: start;
}

.sc-tv__list {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sc-tv__empty {
    margin: 0;
    padding: 18px 8px;
    text-align: center;
    color: rgba(255, 255, 255, 0.48);
    font-size: 15px;
}

.sc-tv__live-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: linear-gradient(160deg, rgba(18, 72, 54, 0.55), rgba(8, 28, 22, 0.9));
    border: 1px solid rgba(201, 162, 39, 0.28);
    border-radius: 12px;
    padding: 14px 14px 12px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.sc-tv__live-card:hover,
.sc-tv__live-card:focus {
    border-color: rgba(201, 162, 39, 0.7);
    transform: translateY(-1px);
}

.sc-tv__live-card.is-paused {
    border-color: rgba(255, 255, 255, 0.18);
    opacity: 0.92;
}

.sc-tv__live-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.sc-tv__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #ff6b6b;
}

.sc-tv__badge::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.7);
    animation: sc-tv-pulse 1.6s ease-out infinite;
}

.sc-tv__badge.is-paused {
    color: #f0c674;
}

.sc-tv__badge.is-paused::before {
    animation: none;
    background: currentColor;
}

@keyframes sc-tv-pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.55); }
    70% { box-shadow: 0 0 0 8px rgba(255, 107, 107, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 107, 107, 0); }
}

.sc-tv__live-meta {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
}

.sc-tv__side {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px 12px;
    align-items: center;
    margin: 6px 0;
}

.sc-tv__name {
    font-size: clamp(16px, 1.5vw, 20px);
    font-weight: 700;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sc-tv__name.is-active {
    color: #ffe08a;
}

.sc-tv__frames {
    font-size: clamp(22px, 2.2vw, 30px);
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    min-width: 1.4em;
    text-align: right;
}

.sc-tv__points {
    margin-top: 8px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 8px;
}

.sc-tv__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    text-decoration: none;
    color: inherit;
}

a.sc-tv__row:hover,
a.sc-tv__row:focus {
    border-color: rgba(201, 162, 39, 0.4);
}

.sc-tv__row-main {
    min-width: 0;
}

.sc-tv__row-names {
    font-size: 15px;
    font-weight: 650;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sc-tv__row-sub {
    margin-top: 3px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.sc-tv__row-score {
    font-size: 18px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.sc-tv__standings {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
}

.sc-tv__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.sc-tv__table th,
.sc-tv__table td {
    padding: 7px 6px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.sc-tv__table th {
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    font-weight: 700;
}

.sc-tv__table td.num,
.sc-tv__table th.num {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.sc-tv__table tr:first-child td {
    color: #ffe08a;
}

.sc-tv__stage-card {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 16px;
}

.sc-tv__stage-card span {
    color: rgba(255, 255, 255, 0.55);
    font-size: 13px;
}

@media (max-width: 960px) {
    body.sc-tv-board-page {
        overflow: auto;
    }

    .sc-tv {
        height: auto;
        max-height: none;
        min-height: 100vh;
    }

    .sc-tv__grid {
        grid-template-columns: 1fr;
    }

    .sc-tv__section--live,
    .sc-tv__main > .sc-tv__section:not(.sc-tv__section--live),
    .sc-tv__aside > .sc-tv__section {
        flex: none;
    }
}
