/* Spectator live board — felt table, read-only. */
body.sc-live-watch-page {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(80% 50% at 50% -8%, rgba(201, 162, 39, 0.16), transparent 52%),
        radial-gradient(70% 40% at 100% 100%, rgba(16, 90, 68, 0.35), transparent 48%),
        linear-gradient(180deg, #071510 0%, #0c241c 38%, #081410 100%);
    color: rgba(255, 255, 255, 0.94);
    font-family: "Segoe UI", system-ui, sans-serif;
}

.sc-live-watch-shell {
    max-width: 980px;
    margin: 0 auto;
    padding: 18px 16px 48px;
}

body.sc-live-watch-page--stream .sc-live-watch-shell {
    max-width: 1120px;
}

.sc-watch__top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px 18px;
    margin-bottom: 18px;
    padding: 4px 2px;
}

.sc-watch__title {
    margin: 6px 0 0;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.03em;
    text-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.sc-watch__sub {
    margin: 4px 0 0;
    color: rgba(232, 214, 150, 0.72);
    font-size: 13px;
    font-weight: 600;
}

.sc-watch__back,
.sc-watch__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #7ee8c8;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.sc-watch__back:hover,
.sc-watch__link:hover {
    color: #d8f8ea;
    text-decoration: none;
}

.sc-watch__top-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.sc-watch__live-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(239, 68, 68, 0.18);
    border: 1px solid rgba(239, 68, 68, 0.5);
    color: #ff9b9b;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.sc-watch__live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ef4444;
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    animation: sc-watch-pulse 1.4s ease-out infinite;
}

.sc-watch__conn {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.48);
}

@keyframes sc-watch-pulse {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.55); }
    70% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.sc-watch-board,
.sc-watch-wait {
    position: relative;
    background:
        linear-gradient(180deg, rgba(18, 72, 54, 0.55), rgba(8, 32, 24, 0.72));
    border: 1px solid rgba(201, 162, 39, 0.28);
    border-radius: 22px;
    padding: 22px 20px 24px;
    box-shadow:
        0 0 0 6px rgba(18, 48, 36, 0.55),
        0 22px 50px rgba(0, 0, 0, 0.38);
}

.sc-watch-board::before,
.sc-watch-wait::before {
    content: "";
    position: absolute;
    inset: 10px;
    border-radius: 14px;
    border: 1px dashed rgba(126, 232, 200, 0.12);
    pointer-events: none;
}

.sc-watch-wait {
    text-align: center;
    padding: 36px 20px 28px;
}

.sc-watch-wait__pulse {
    width: 14px;
    height: 14px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: #c9a227;
    box-shadow: 0 0 0 0 rgba(201, 162, 39, 0.5);
    animation: sc-watch-pulse 1.8s ease-out infinite;
}

.sc-watch-wait__title {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.92);
}

.sc-watch-wait__hint {
    margin: 8px 0 0;
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
}

.sc-watch-score {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 14px;
    align-items: stretch;
    position: relative;
    z-index: 1;
}

.sc-watch-score--idle {
    margin-top: 28px;
    text-align: left;
}

.sc-watch-player {
    padding: 18px 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.28);
    text-align: center;
}

.sc-watch-player.is-active {
    border-color: #7ee8c8;
    background: rgba(126, 232, 200, 0.1);
    box-shadow: 0 0 0 3px rgba(126, 232, 200, 0.12);
}

.sc-watch-player img,
.sc-watch-player__avatar,
.sc-watch-player__fallback {
    width: 82px;
    height: 82px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 12px;
    display: block;
    border: 3px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
}

.sc-watch-player__fallback {
    background: #167f92;
    color: #fff;
    font-weight: 800;
    font-size: 24px;
    line-height: 76px;
    letter-spacing: 0.04em;
}

.sc-watch-player__name {
    font-weight: 800;
    font-size: 17px;
    line-height: 1.25;
}

.sc-watch-player__turn {
    margin-top: 8px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #7ee8c8;
}

.sc-watch-player__meta {
    margin-top: 6px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.52);
}

.sc-watch-player__meta strong {
    color: #f4e3a1;
}

.sc-watch-frames {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 150px;
}

.sc-watch-frames__label,
.sc-watch-section__title {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(232, 214, 150, 0.62);
    margin-bottom: 6px;
}

.sc-watch-frames__score {
    font-size: 58px;
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.sc-watch-frames__score span {
    margin: 0 6px;
    color: #c9a227;
}

.sc-watch-frames__vs {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #c9a227;
}

.sc-watch-frames__best {
    margin-top: 8px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
}

.sc-watch-frames__done {
    margin-top: 8px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #9ee6b8;
}

.sc-watch-points {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    margin: 18px 6px 2px;
    font-size: 28px;
    font-weight: 800;
    color: #f4e3a1;
    font-variant-numeric: tabular-nums;
}

.sc-watch-points span:first-child {
    text-align: left;
}

.sc-watch-points span:last-child {
    text-align: right;
}

.sc-watch-points__label {
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(232, 214, 150, 0.62);
}

.sc-watch-table,
.sc-watch-potted,
.sc-watch-games,
.sc-watch-event {
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
    z-index: 1;
}

.sc-watch-balls,
.sc-watch-potted__list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sc-watch-ball {
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    color: #fff;
    font-weight: 800;
    font-size: 12px;
    box-shadow:
        inset 0 -4px 0 rgba(0, 0, 0, 0.22),
        0 4px 10px rgba(0, 0, 0, 0.25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.sc-watch-ball--red { background: #c0392b; }
.sc-watch-ball--yellow { background: #f1c40f; color: #3a3208; }
.sc-watch-ball--green { background: #27ae60; }
.sc-watch-ball--brown { background: #8d6e63; }
.sc-watch-ball--blue { background: #2980b9; }
.sc-watch-ball--pink { background: #e91e63; }
.sc-watch-ball--black { background: #1a1a1a; }
.sc-watch-ball--plain { background: #5a6a7a; }
.sc-watch-ball--n1 { background: #f1c40f; color: #3a3208; }
.sc-watch-ball--n2 { background: #2980b9; }
.sc-watch-ball--n3 { background: #c0392b; }
.sc-watch-ball--n4 { background: #8e44ad; }
.sc-watch-ball--n5 { background: #e67e22; }
.sc-watch-ball--n6 { background: #27ae60; }
.sc-watch-ball--n7 { background: #7f3f1a; }
.sc-watch-ball--n8 { background: #1a1a1a; }
.sc-watch-ball--n9 { background: #f1c40f; color: #3a3208; }
.sc-watch-ball--n10 { background: #2980b9; }
.sc-watch-ball--n11 { background: #c0392b; }
.sc-watch-ball--n12 { background: #8e44ad; }
.sc-watch-ball--n13 { background: #e67e22; }
.sc-watch-ball--n14 { background: #27ae60; }
.sc-watch-ball--n15 { background: #7f3f1a; }

.sc-watch-potted {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.sc-watch-potted__name {
    font-weight: 700;
    margin-bottom: 8px;
}

.sc-watch-empty {
    margin: 0;
    color: rgba(255, 255, 255, 0.4);
    font-size: 13px;
}

.sc-watch-games__list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sc-watch-games__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    font-size: 13px;
}

.sc-watch-games__item.is-live {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.28);
}

.sc-watch-games__idx {
    color: rgba(232, 214, 150, 0.8);
    font-weight: 800;
    min-width: 28px;
}

.sc-watch-games__names {
    flex: 1;
}

.sc-watch-games__names em {
    font-style: normal;
    color: #c9a227;
    margin: 0 4px;
    font-weight: 800;
}

.sc-watch-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.sc-watch-tag--live {
    color: #ff8a8a;
    background: rgba(239, 68, 68, 0.16);
}

.sc-watch-tag--done {
    color: #9ee6b8;
    background: rgba(39, 174, 96, 0.16);
}

.sc-watch-event strong {
    display: block;
    margin-top: 4px;
}

.sc-watch-stream {
    margin-top: 18px;
    border-radius: 18px;
    overflow: hidden;
    background: #050b09;
    border: 1px solid rgba(201, 162, 39, 0.28);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.32);
}

.sc-watch-stream__head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.04);
    font-size: 13px;
}

.sc-watch-stream__live {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ef4444;
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.55);
    animation: sc-watch-pulse 1.4s ease-out infinite;
}

.sc-watch-stream__open {
    margin-left: auto;
    color: #7ee8c8;
    font-weight: 700;
    font-size: 12px;
    text-decoration: none;
}

.sc-watch-stream__open:hover {
    color: #d8f8ea;
    text-decoration: none;
}

.sc-watch-stream__frame {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: #000;
}

.sc-watch-stream__frame iframe,
.sc-watch-stream__fallback {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.sc-watch-stream__fallback {
    display: flex;
    align-items: center;
    justify-content: center;
}

.sc-watch-stream__cta {
    display: inline-flex;
    align-items: center;
    padding: 12px 18px;
    border-radius: 999px;
    background: #c9a227;
    color: #1a1404;
    font-weight: 800;
    text-decoration: none;
}

.sc-watch-stream__cta:hover {
    color: #1a1404;
    text-decoration: none;
    filter: brightness(1.08);
}

@media (max-width: 640px) {
    .sc-watch__title {
        font-size: 22px;
    }
    .sc-watch-score {
        grid-template-columns: 1fr;
    }
    .sc-watch-frames {
        order: -1;
        padding-bottom: 4px;
        min-width: 0;
    }
    .sc-watch-potted,
    .sc-watch-points {
        grid-template-columns: 1fr;
    }
    .sc-watch-points span,
    .sc-watch-points span:last-child {
        text-align: center;
    }
    .sc-watch-frames__score {
        font-size: 44px;
    }
    .sc-watch-player img,
    .sc-watch-player__avatar,
    .sc-watch-player__fallback {
        width: 68px;
        height: 68px;
    }
    .sc-watch-player__fallback {
        line-height: 62px;
        font-size: 20px;
    }
}
