:root {
    --bg: #08111d;
    --panel: #0d1828;
    --panel-2: #0f1c2e;
    --line: rgba(255, 255, 255, 0.08);
    --text: #f4f7fb;
    --muted: #9eabbd;
    --gold: #d8ac43;
    --red: #ff5261;
    --shadow: 0 20px 48px rgba(0, 0, 0, 0.32);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(255, 82, 97, 0.12), transparent 22%),
        radial-gradient(circle at top right, rgba(53, 146, 255, 0.12), transparent 22%),
        linear-gradient(180deg, #070d16 0%, #091423 100%);
}

a {
    color: inherit;
    text-decoration: none;
}

.page-shell {
    width: min(1280px, calc(100% - 28px));
    margin: 0 auto;
    padding: 18px 0 32px;
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.site-header,
.site-footer,
.stream-panel,
.mini-card,
.comments-panel,
.comment-card {
    border: 1px solid var(--line);
    background: rgba(12, 22, 36, 0.92);
    box-shadow: var(--shadow);
}

.site-header,
.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 20px;
    border-radius: 20px;
    backdrop-filter: blur(12px);
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-mark {
    position: relative;
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(216, 172, 67, 0.22), rgba(255, 138, 59, 0.12));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.brand-mark-ring,
.brand-mark-core {
    position: absolute;
    inset: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.brand-mark-ring::before {
    content: "";
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid rgba(216, 172, 67, 0.45);
    box-shadow: 0 0 24px rgba(216, 172, 67, 0.18);
}

.brand-mark-core {
    color: #ffe4ad;
    font-weight: 900;
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.36);
}

.brand-copy {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.brand-copy strong {
    font-size: 1.04rem;
    letter-spacing: 0.02em;
}

.brand-copy span,
.site-footer p,
.viewer-count,
.panel-title p,
.mini-card p,
.comment-meta span,
.comment-card p {
    color: var(--muted);
}

.register-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border-radius: 999px;
    color: #08111d;
    font-weight: 800;
    background: linear-gradient(135deg, var(--gold), #ff8a3b);
    box-shadow: 0 12px 26px rgba(216, 172, 67, 0.18);
}

.register-button-subtle {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    border: 1px solid var(--line);
}

.register-button-full {
    width: 100%;
    margin-top: 14px;
}

.gate-actions {
    display: flex;
    gap: 12px;
    margin-top: 22px;
    flex-wrap: wrap;
}

.layout {
    display: grid;
    gap: 18px;
    margin-top: 18px;
}

.stream-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.65fr);
    gap: 14px;
}

.stream-panel {
    padding: 12px;
    border-radius: 22px;
}

.panel-head,
.panel-title,
.score-strip,
.video-controls,
.control-left,
.control-right,
.comments-head,
.comment-meta {
    display: flex;
    align-items: center;
}

.panel-head,
.comments-head {
    justify-content: space-between;
    gap: 16px;
}

.panel-head {
    padding: 6px 6px 12px;
}

.panel-title {
    gap: 12px;
}

.panel-title strong {
    font-size: 1.04rem;
}

.live-badge,
.overlay-live,
.overlay-hd,
.card-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.live-badge {
    gap: 7px;
    padding: 7px 12px;
    color: #ffd5da;
    background: rgba(255, 82, 97, 0.18);
}

.live-badge::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--red);
}

.card-kicker {
    padding: 7px 11px;
    color: #eaf4ff;
    background: rgba(255, 255, 255, 0.08);
}

.video-shell {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid var(--line);
    background: #000;
}

.video-shell-link,
.comment-card-link,
.mini-register-card {
    text-decoration: none;
}

.video-shell-link {
    display: block;
}

.video-overlay {
    position: absolute;
    inset: 0 0 auto 0;
    justify-content: space-between;
    padding: 11px 12px;
    z-index: 3;
    pointer-events: none;
}

.overlay-live {
    padding: 6px 10px;
    color: #ffd2d6;
    background: rgba(255, 82, 97, 0.2);
}

.overlay-hd {
    padding: 6px 10px;
    color: #d8f3ff;
    background: rgba(53, 146, 255, 0.18);
}

.video-stage {
    position: relative;
    aspect-ratio: 16 / 9;
}

.player-video,
.video-poster,
.video-poster-overlay {
    width: 100%;
    height: 100%;
}

.player-video {
    display: block;
    object-fit: cover;
    background: #000;
}

.video-poster,
.video-poster-overlay {
    background-position: center;
    background-size: cover;
}

.video-poster.is-fallback,
.video-poster-overlay {
    position: absolute;
    inset: 0;
}

.video-poster-overlay {
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.video-poster-overlay::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.1) 42%, rgba(0, 0, 0, 0.28));
}

.video-poster-overlay.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.play-pulse {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;
    width: 86px;
    height: 86px;
    border: 0;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.16);
    box-shadow: 0 0 0 12px rgba(255, 255, 255, 0.08);
    cursor: pointer;
}

.play-pulse::before {
    content: "";
    position: absolute;
    left: 35px;
    top: 25px;
    border-top: 18px solid transparent;
    border-bottom: 18px solid transparent;
    border-left: 26px solid #ffffff;
}

.poster-copy {
    position: absolute;
    left: 16px;
    bottom: 66px;
    z-index: 2;
    max-width: 62%;
}

.poster-tag {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.1);
}

.poster-copy strong {
    display: block;
    margin-top: 10px;
    font-size: clamp(1.4rem, 3vw, 2.3rem);
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 800;
}

.poster-copy p {
    margin: 8px 0 0;
    color: rgba(244, 247, 251, 0.84);
}

.score-strip {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 12px;
    justify-content: space-between;
    gap: 12px;
    z-index: 2;
}

.score-team,
.score-box {
    padding: 8px 14px;
    border-radius: 13px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(7, 15, 26, 0.78);
}

.score-team strong,
.score-box {
    font-weight: 900;
}

.score-box {
    font-size: 1.15rem;
}

.video-controls {
    justify-content: space-between;
    gap: 14px;
    padding: 10px 12px;
    background: rgba(8, 8, 8, 0.98);
    font-size: 0.76rem;
}

.control-left,
.control-right {
    gap: 10px;
}

.control-button {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.09);
    position: relative;
}

.control-button::before {
    content: "";
    position: absolute;
    left: 13px;
    top: 9px;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 12px solid #ffffff;
}

.progress-bar {
    flex: 1;
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    overflow: hidden;
}

.progress-bar span {
    display: block;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--red), var(--gold));
}

.sidebar-panel {
    display: grid;
    gap: 12px;
}

.mini-card {
    padding: 18px;
    border-radius: 18px;
}

.mini-card h3 {
    margin: 12px 0 6px;
}

.mini-register-card {
    background: linear-gradient(180deg, rgba(19, 31, 49, 0.98), rgba(11, 20, 33, 0.98));
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.mini-register-card:hover,
.mini-register-card:focus-visible,
.comment-card-link:hover,
.comment-card-link:focus-visible,
.video-shell-link:hover,
.video-shell-link:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(216, 172, 67, 0.28);
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.36);
}

.comments-panel {
    padding: 20px;
    border-radius: 22px;
}

.comments-head h2 {
    margin: 12px 0 0;
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 800;
}

.comments-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.comment-card {
    padding: 18px;
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(15, 27, 43, 0.98), rgba(10, 19, 31, 0.98)),
        linear-gradient(135deg, rgba(216, 172, 67, 0.05), transparent 38%);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.comment-top,
.comment-author,
.comment-actions {
    display: flex;
    align-items: center;
}

.comment-top {
    justify-content: space-between;
    gap: 12px;
}

.comment-author {
    gap: 12px;
}

.comment-avatar {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #07111a;
    font-weight: 900;
    background: linear-gradient(135deg, var(--gold), #ff8a3b);
}

.comment-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
}

.comment-meta strong {
    font-size: 0.96rem;
}

.comment-status,
.comment-actions span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-size: 0.78rem;
}

.comment-status::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #21d07a;
}

.comment-card p {
    margin: 12px 0 0;
    line-height: 1.7;
}

.comment-actions {
    gap: 16px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.site-footer {
    margin-top: 18px;
    justify-content: center;
    text-align: center;
}

.footer-copy span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
}

.access-gate {
    position: fixed;
    inset: 0;
    z-index: 50;
}

.access-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 8, 16, 0.76);
    backdrop-filter: blur(8px);
}

.access-dialog {
    position: relative;
    width: min(520px, calc(100% - 24px));
    margin: min(16vh, 120px) auto 0;
    padding: 24px;
    border-radius: 24px;
    border: 1px solid var(--line);
    background:
        linear-gradient(180deg, rgba(18, 30, 47, 0.98), rgba(9, 18, 30, 0.98)),
        linear-gradient(135deg, rgba(216, 172, 67, 0.08), transparent 40%);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

.access-dialog h2 {
    margin: 16px 0 12px;
    font-size: clamp(1.4rem, 3vw, 2.1rem);
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 800;
}

.access-dialog p {
    margin: 0;
    color: var(--muted);
    line-height: 1.75;
}

.gate-close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    color: var(--text);
    font-size: 1.3rem;
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
}

@media (max-width: 980px) {
    .stream-grid,
    .comments-list {
        grid-template-columns: 1fr;
    }

    .poster-copy {
        max-width: 78%;
    }
}

@media (max-width: 760px) {
    .page-shell {
        width: min(100% - 16px, 1280px);
        padding: 10px 0 22px;
    }

    .site-header,
    .site-footer,
    .comments-head,
    .panel-head,
    .video-controls,
    .gate-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .site-header,
    .site-footer,
    .stream-panel,
    .mini-card,
    .comments-panel,
    .comment-card {
        border-radius: 18px;
    }

    .site-header,
    .site-footer {
        padding: 14px 16px;
    }

    .brand {
        gap: 12px;
    }

    .brand-mark {
        width: 46px;
        height: 46px;
        border-radius: 15px;
    }

    .brand-mark-ring::before {
        width: 32px;
        height: 32px;
    }

    .brand-copy strong {
        font-size: 0.96rem;
    }

    .brand-copy span {
        font-size: 0.84rem;
    }

    .register-button,
    .register-button-subtle {
        width: 100%;
    }

    .layout {
        gap: 14px;
        margin-top: 14px;
    }

    .stream-grid {
        gap: 12px;
    }

    .stream-panel {
        padding: 10px;
    }

    .poster-copy {
        left: 14px;
        right: 14px;
        bottom: 60px;
        max-width: none;
    }

    .poster-copy strong {
        font-size: clamp(1.15rem, 6vw, 1.85rem);
    }

    .poster-copy p {
        font-size: 0.8rem;
    }

    .poster-tag {
        font-size: 0.68rem;
        padding: 5px 9px;
    }

    .play-pulse {
        width: 72px;
        height: 72px;
        box-shadow: 0 0 0 9px rgba(255, 255, 255, 0.08);
    }

    .play-pulse::before {
        left: 29px;
        top: 20px;
        border-top-width: 16px;
        border-bottom-width: 16px;
        border-left-width: 23px;
    }

    .score-strip {
        left: 10px;
        right: 10px;
        bottom: 10px;
        gap: 8px;
    }

    .score-team,
    .score-box {
        padding: 8px 10px;
        border-radius: 11px;
    }

    .score-team strong,
    .score-box {
        font-size: 0.92rem;
    }

    .video-controls {
        gap: 10px;
        padding: 10px;
        font-size: 0.72rem;
    }

    .control-left,
    .control-right {
        width: 100%;
        justify-content: space-between;
    }

    .control-button {
        width: 32px;
        height: 32px;
    }

    .control-button::before {
        left: 12px;
        top: 8px;
    }

    .mini-card,
    .comments-panel {
        padding: 16px;
    }

    .comments-head h2 {
        font-size: clamp(1.05rem, 5vw, 1.45rem);
        line-height: 1.25;
    }

    .comment-card {
        padding: 14px;
    }

    .comment-top {
        align-items: flex-start;
    }

    .comment-author {
        min-width: 0;
    }

    .comment-meta strong,
    .comment-card p {
        word-break: break-word;
    }

    .comment-status {
        font-size: 0.72rem;
    }

    .access-dialog {
        width: calc(100% - 16px);
        margin-top: 72px;
        padding: 18px;
        border-radius: 20px;
    }

    .access-dialog h2 {
        font-size: clamp(1.2rem, 6vw, 1.65rem);
        line-height: 1.18;
    }

    .access-dialog p {
        font-size: 0.92rem;
    }

    .gate-close {
        top: 10px;
        right: 14px;
        width: 34px;
        height: 34px;
    }
}
