﻿/* ═══════════════════════════════════════════
   WATCH PAGE — Blindside Chess
   Gold on dark · Premium competitive aesthetic
   ═══════════════════════════════════════════ */

.watch-page {
    background: #0d0d0b;
    min-height: 100vh;
    color: #e8dfc8;
    font-family: 'Georgia', serif;
}

/* ── Hero ── */
.watch-hero {
    text-align: center;
    padding: 48px 24px 32px;
    border-bottom: 1px solid rgba(201,168,76,0.15);
}

.watch-hero__eyebrow {
    font-size: 10px;
    letter-spacing: 0.18em;
    color: #8a6e2f;
    text-transform: uppercase;
    font-family: sans-serif;
    margin-bottom: 10px;
}

.watch-hero__title {
    font-size: 32px;
    color: #e8c97a;
    margin: 0 0 10px;
    letter-spacing: 0.04em;
}

.watch-hero__sub {
    font-size: 13px;
    color: #7a7060;
    font-family: sans-serif;
    max-width: 480px;
    margin: 0 auto;
}

/* ── Loading / Error ── */
.watch-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 80px 24px;
}

.watch-loading__text {
    font-size: 13px;
    color: #7a7060;
    font-family: sans-serif;
}

.watch-error {
    text-align: center;
    padding: 60px 24px;
    color: #c94c4c;
    font-family: sans-serif;
    font-size: 13px;
}

/* ── Categories container ── */
.watch-categories {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 24px 64px;
    display: flex;
    flex-direction: column;
    gap: 48px;
}

/* ── Section ── */
.watch-section__header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(201,168,76,0.15);
}

.watch-section__title {
    font-size: 15px;
    color: #c9a84c;
    letter-spacing: 0.06em;
    margin: 0;
}

.watch-section__sub {
    font-size: 11px;
    color: #5a5040;
    font-family: sans-serif;
    margin-left: auto;
}

.watch-section__count {
    font-size: 11px;
    color: #5a5040;
    font-family: sans-serif;
    margin-left: auto;
}

/* Live dot */
.watch-section--live .watch-section__title {
    color: #e8c97a;
}

.watch-section__live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4caf7a;
    box-shadow: 0 0 6px #4caf7a;
    animation: pulse-live 1.8s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes pulse-live {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.85);
    }
}

/* ── Game Cards Grid ── */
.watch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 14px;
}

/* ── Game Card ── */
.watch-card {
    background: #141410;
    border: 1px solid rgba(201,168,76,0.18);
    border-radius: 8px;
    padding: 14px;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

    .watch-card:hover {
        border-color: rgba(201,168,76,0.45);
        background: #1a1a14;
    }

.watch-card--live {
    border-color: rgba(76,175,122,0.35);
}

    .watch-card--live:hover {
        border-color: rgba(76,175,122,0.6);
    }

.watch-card--elite {
    border-color: rgba(201,168,76,0.3);
}

.watch-card--blindside {
    border-color: rgba(138,76,175,0.3);
}

    .watch-card--blindside:hover {
        border-color: rgba(138,76,175,0.55);
    }

.watch-card--seen {
    opacity: 0.7;
}

.watch-card__header {
    display: flex;
    align-items: center;
    gap: 6px;
}

.watch-card__variant {
    font-size: 9px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-family: sans-serif;
    padding: 2px 6px;
    border-radius: 3px;
    border: 1px solid;
}

.variant-standard {
    color: #7a7060;
    border-color: #3a3028;
}

.variant-shadow {
    color: #7ab0e8;
    border-color: rgba(122,176,232,0.3);
}

.variant-blindside {
    color: #c97ae8;
    border-color: rgba(201,122,232,0.3);
}

.watch-card__viewers {
    font-size: 10px;
    color: #7a7060;
    font-family: sans-serif;
    margin-left: auto;
}

.watch-card__seen {
    font-size: 10px;
    color: #4caf7a;
    font-family: sans-serif;
}

.watch-card__players {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.watch-card__player {
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
}

.watch-card__player--white {
    color: #e8dfc8;
}

.watch-card__player--black {
    color: #9a9080;
}

.watch-card__vs {
    font-size: 10px;
    color: #5a5040;
    font-family: sans-serif;
}

.watch-card__result {
    font-size: 11px;
    color: #7a7060;
    font-family: sans-serif;
}

.watch-card__meta {
    display: flex;
    gap: 8px;
    font-size: 10px;
    color: #5a5040;
    font-family: sans-serif;
}

.watch-card__rated {
    color: #c9a84c;
}

.watch-card__cta {
    font-size: 11px;
    color: #8a6e2f;
    font-family: sans-serif;
    letter-spacing: 0.06em;
    margin-top: auto;
}

.watch-card:hover .watch-card__cta {
    color: #c9a84c;
}

/* Live badge */
.watch-live-badge {
    font-size: 9px;
    letter-spacing: 0.12em;
    color: #4caf7a;
    border: 1px solid rgba(76,175,122,0.4);
    border-radius: 3px;
    padding: 1px 5px;
    font-family: sans-serif;
}

/* ── All Games Table ── */
.watch-section--all .watch-section__header {
    flex-wrap: wrap;
    gap: 10px;
}

.watch-filters {
    display: flex;
    gap: 8px;
    margin-left: auto;
    flex-wrap: wrap;
}

.watch-filter-select {
    background: #1a1a16;
    border: 1px solid rgba(201,168,76,0.2);
    border-radius: 4px;
    color: #c9a84c;
    font-size: 11px;
    padding: 4px 8px;
    font-family: sans-serif;
    cursor: pointer;
}

    .watch-filter-select:focus {
        outline: none;
        border-color: rgba(201,168,76,0.4);
    }

.watch-table {
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(201,168,76,0.15);
    border-radius: 8px;
    overflow: hidden;
}

.watch-table__header {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr 0.6fr 0.6fr 0.6fr 0.8fr;
    gap: 0;
    padding: 8px 14px;
    background: #1a1a14;
    font-size: 9px;
    letter-spacing: 0.1em;
    color: #5a5040;
    text-transform: uppercase;
    font-family: sans-serif;
    border-bottom: 1px solid rgba(201,168,76,0.15);
}

.watch-table__row {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr 0.6fr 0.6fr 0.6fr 0.8fr;
    gap: 0;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(201,168,76,0.07);
    cursor: pointer;
    transition: background 0.1s;
    font-family: sans-serif;
    font-size: 12px;
    align-items: center;
}

    .watch-table__row:last-child {
        border-bottom: none;
    }

    .watch-table__row:hover {
        background: rgba(201,168,76,0.04);
    }

.watch-table__row--seen {
    opacity: 0.65;
}

.watch-table__players {
    color: #e8dfc8;
    display: flex;
    align-items: center;
    gap: 6px;
}

.watch-table__seen-badge {
    font-size: 10px;
    color: #4caf7a;
}

.watch-table__variant {
    font-size: 10px;
}

.watch-table__result {
    color: #7a7060;
    font-size: 11px;
}

.watch-table__meta,
.watch-table__elo,
.watch-table__time {
    color: #5a5040;
    font-size: 11px;
}

.watch-table__cta {
    color: #8a6e2f;
    font-size: 11px;
    letter-spacing: 0.05em;
    text-align: right;
}

.watch-table__row:hover .watch-table__cta {
    color: #c9a84c;
}

.watch-empty {
    padding: 32px;
    text-align: center;
    color: #5a5040;
    font-family: sans-serif;
    font-size: 13px;
}

.watch-tabbed-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    width: 414px;
    min-width: 414px;
    max-width: 414px;
}

.watch-tabs {
    display: flex;
    border-bottom: 1px solid rgba(213, 166, 66, 0.18);
    background: rgba(213, 166, 66, 0.04);
}

.watch-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    padding: 0.55rem 0.5rem;
    border: none;
    background: transparent;
    color: rgba(247, 234, 208, 0.4);
    font-family: 'Cinzel', serif;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 140ms ease;
    position: relative;
}

    .watch-tab:hover {
        color: rgba(247, 234, 208, 0.65);
        background: rgba(213, 166, 66, 0.04);
    }

.watch-tab--active {
    color: #ffe8a0;
    background: rgba(213, 166, 66, 0.12);
    border-bottom-color: #d5a642;
}

.watch-tab__badge {
    min-width: 16px;
    height: 16px;
    border-radius: 999px;
    background: rgba(213, 166, 66, 0.25);
    color: #d5a642;
    font-size: 0.5rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.watch-tab__watchers {
    font-size: 0.5rem;
    color: #4ecdc4;
    font-weight: 900;
    padding: 2px 6px;
    border-radius: 999px;
    background: rgba(78, 205, 196, 0.12);
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .watch-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }

    .watch-table__header,
    .watch-table__row {
        grid-template-columns: 2fr 1fr 1fr 0.8fr;
    }

        .watch-table__header span:nth-child(n+4):nth-child(-n+6),
        .watch-table__row span:nth-child(n+4):nth-child(-n+6) {
            display: none;
        }
}
