:root {
    color-scheme: dark;
    --ink: #fff9ff;
    --muted: #c2bbca;
    --pink: #ff39d5;
    --cyan: #48f6ff;
    --lime: #d5ff52;
    --panel: rgba(18, 12, 31, .9);
    --line: rgba(255, 255, 255, .16);
    --error: #ff8cae;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    min-height: 100vh;
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at 10% 8%, rgba(255, 57, 213, .22), transparent 34rem),
        radial-gradient(circle at 90% 18%, rgba(72, 246, 255, .17), transparent 32rem),
        #08060f;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a { color: inherit; }

.topbar {
    width: min(1180px, calc(100% - 32px));
    min-height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand {
    text-decoration: none;
    font-weight: 950;
    letter-spacing: .14em;
}

.catalog-link {
    color: var(--muted);
    font-size: .9rem;
    text-underline-offset: 4px;
}

main {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 14px 0 72px;
}

.watch-hero {
    min-height: calc(100svh - 86px);
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
    align-items: start;
    gap: clamp(24px, 4vw, 54px);
}

.player-frame {
    position: relative;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 26px;
    background: #000;
    box-shadow: 0 30px 100px rgba(0, 0, 0, .48);
}

.player-frame::before {
    position: absolute;
    z-index: 1;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--pink), var(--cyan));
    content: "";
    pointer-events: none;
}

.player-frame video {
    display: block;
    width: 100%;
    height: min(68svh, 720px);
    min-height: 300px;
    background: #000;
    object-fit: contain;
}

.copy { min-width: 0; }

.eyebrow {
    margin: 0 0 14px;
    color: var(--cyan);
    font: 900 .78rem/1.25 ui-monospace, SFMono-Regular, Menlo, monospace;
    letter-spacing: .16em;
    text-transform: uppercase;
}

h1 {
    margin: 0;
    font-size: clamp(2.5rem, 6.8vw, 5.8rem);
    line-height: .9;
    letter-spacing: -.055em;
    overflow-wrap: anywhere;
}

.lead {
    margin: 24px 0 0;
    color: var(--muted);
    font-size: clamp(1rem, 1.7vw, 1.2rem);
    line-height: 1.55;
}

.facts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
}

.facts li {
    padding: 7px 11px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: #ece7f2;
    background: rgba(255, 255, 255, .045);
    font-size: .78rem;
}

.actions {
    display: grid;
    gap: 10px;
    margin-top: 26px;
}

.button {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--ink);
    background: rgba(255, 255, 255, .07);
    font: inherit;
    font-weight: 900;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: transform .15s ease, border-color .15s ease, background .15s ease;
}

.button.primary {
    border-color: var(--lime);
    color: #0b0a0e;
    background: var(--lime);
}

.button:hover:not(:disabled) {
    transform: translateY(-2px);
    border-color: var(--cyan);
    background: rgba(72, 246, 255, .12);
}

.button.primary:hover { background: #e3ff8b; }

.button:focus-visible {
    outline: 3px solid var(--pink);
    outline-offset: 3px;
}

.button:disabled {
    cursor: not-allowed;
    opacity: .48;
}

.share-note,
.status,
.inventory-note {
    color: var(--muted);
    font-size: .84rem;
    line-height: 1.45;
}

.share-note { margin: 0; }

.share-channels {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.share-channels[hidden] { display: none; }

.share-channel {
    min-width: 0;
    min-height: 44px;
    padding: 0 12px;
    font-size: .84rem;
}

.status {
    min-height: 1.4em;
    margin: 3px 0 0;
}

.status[data-kind="success"] { color: var(--lime); }
.status[data-kind="error"] { color: var(--error); }

.inventory-note {
    margin: 32px 0 0;
    padding: 14px 16px;
    border-left: 3px solid var(--pink);
    background: rgba(255, 57, 213, .07);
}

.noscript {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 32px;
    color: var(--muted);
}

footer {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 24px 0 40px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: .86rem;
}

@media (max-width: 820px) {
    .watch-hero {
        min-height: auto;
        grid-template-columns: 1fr;
        align-items: start;
        padding: 16px 0 42px;
    }

    .player-frame video {
        height: auto;
        min-height: 0;
        aspect-ratio: 16 / 9;
    }

    .copy { padding: 0 2px; }

    .share-channels { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .button { transition: none; }
}
