/* ═══════════════════════════════════════════════════════════════════════════
   watch-page.css — watch.php: the countdown, and the side panel shown to a
   viewer without access (sign in / create account, then the purchase options;
   includes/watch_side_panel.php). Nothing here styles the player.
   ═══════════════════════════════════════════════════════════════════════════ */

.min-w-0 { min-width: 0; }

/* ── Countdown ─────────────────────────────────────────────────────────── */
.countdown .pv-cd-label {
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .72);
    margin-bottom: .55rem;
}
.pv-cd {
    display: flex;
    justify-content: center;
    gap: .6rem;
}
.pv-cd-unit {
    min-width: 4.6rem;
    padding: .6rem .45rem .5rem;
    border-radius: 14px;
    background: rgba(0, 0, 0, .38);
    border: 1px solid rgba(255, 255, 255, .14);
}
.pv-cd-unit b {
    display: block;
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.pv-cd-unit span {
    display: block;
    margin-top: .35rem;
    font-size: .66rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .62);
}
.pv-cd-when {
    margin-top: .7rem;
    font-size: .98rem;
    font-weight: 500;
    color: rgba(255, 255, 255, .85);
}
.pv-cd-local {
    margin-top: .2rem;
    font-size: .85rem;
    color: rgba(255, 255, 255, .6);
}
.pv-cd-local[hidden] { display: none; }
.pv-cd-replay { font-size: 1.3rem; font-weight: 600; }
.pv-cd-ended  { font-size: 1.5rem; font-weight: 600; }
.pv-cd-live {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    font-size: 1.6rem;
    font-weight: 700;
}
.pv-cd-live::before {
    content: "";
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #ff3b3b;
    animation: pvCdPulse 1.6s ease-out infinite;
}
@keyframes pvCdPulse {
    0%   { box-shadow: 0 0 0 0 rgba(255, 59, 59, .7); }
    100% { box-shadow: 0 0 0 12px rgba(255, 59, 59, 0); }
}
.pv-cd-watch {
    display: inline-block;
    margin-left: .75rem;
    padding: .45rem 1.1rem;
    border-radius: 999px;
    background: #ff4081;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    vertical-align: middle;
}
.pv-cd-watch:hover { background: #e73370; color: #fff; }

@media (max-width: 575.98px) {
    .pv-cd { gap: .4rem; }
    .pv-cd-unit { min-width: 3.7rem; padding: .5rem .3rem .4rem; border-radius: 12px; }
    .pv-cd-unit b { font-size: 1.65rem; }
    .pv-cd-when { font-size: .9rem; }
}

/* ── Layout: countdown + side panel ────────────────────────────────────── */
.pv-watch-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 1.5rem;
    align-items: start;
}
.pv-watch-stage .hero-section { border-radius: 18px; }

/* Phones and small tablets: panel under the countdown, and the countdown drops the
   (blurred) thumbnail and its 16:9 box to save height. */
@media (max-width: 991.98px) {
    .pv-watch-grid { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
    .hero-section--paywall {
        aspect-ratio: auto;
        border-radius: 16px;
        background: linear-gradient(135deg, #22162f 0%, #17171f 100%);
        border: 1px solid rgba(255, 255, 255, .08);
    }
    .hero-section--paywall .hero-blur { display: none; }
    .hero-section--paywall .hero-overlay {
        position: relative;
        inset: auto;
        padding: 1.1rem 1rem 1.2rem;
        background: none;
    }
    .hero-section--paywall .countdown { margin-bottom: 0; }
}

/* Phones: "Buy now" on the countdown jumps down to the panel (watch.php). */
.pv-jump-buy { display: none; }
.pv-watch-side { scroll-margin-top: 12px; }
@media (max-width: 991.98px) {
    .pv-jump-buy {
        display: inline-flex;
        align-items: center;
        gap: .45rem;
        margin-top: 1rem;
        text-decoration: none;
    }
    .pv-jump-buy[hidden] { display: none; }
}
@keyframes pvSideFlash {
    from { box-shadow: 0 0 0 0 rgba(255, 64, 129, .55); }
    to   { box-shadow: 0 0 0 14px rgba(255, 64, 129, 0); }
}
.pv-side-card.pv-side-flash { animation: pvSideFlash .9s ease-out 2; }
@media (prefers-reduced-motion: reduce) {
    .pv-side-card.pv-side-flash { animation: none; }
}

/* ── Side panel ────────────────────────────────────────────────────────── */
.pv-side-card {
    background: #17171e;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 18px;
    padding: 1.35rem 1.35rem 1.15rem;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .45);
    color: #f3f4f8;
}
.pv-side-card form[hidden], .pv-side-card [hidden] { display: none !important; }

.pv-side-steps { display: flex; gap: .4rem; margin-bottom: 1rem; }
.pv-side-steps span {
    flex: 1;
    text-align: center;
    padding: .32rem .5rem;
    border-radius: 999px;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, .05);
    color: rgba(255, 255, 255, .45);
}
.pv-side-steps .is-on   { background: rgba(255, 64, 129, .16); color: #ff9cbd; }
.pv-side-steps .is-done { background: rgba(74, 222, 128, .1);  color: #4ade80; }

.pv-side-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .7rem .85rem;
    margin-bottom: 1rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .08);
}
.pv-side-summary__title { font-weight: 700; font-size: .95rem; line-height: 1.25; }
.pv-side-summary__sub   { font-size: .8rem; color: rgba(255, 255, 255, .6); margin-top: .1rem; }
.pv-side-summary__screens { margin-top: .35rem; }
.pv-side-summary__price { font-weight: 800; font-size: 1.15rem; white-space: nowrap; }

.pv-side-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.45rem;
    font-weight: 600;
    margin: 0 0 .3rem;
    color: #fff;
}
.pv-side-sub { font-size: .93rem; line-height: 1.45; color: rgba(255, 255, 255, .7); margin: 0 0 1rem; }
.pv-side-sub strong { color: #fff; overflow-wrap: anywhere; }

.pv-side-label {
    display: block;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .62);
    margin: 0 0 .3rem;
}
.pv-side-input {
    display: block;
    width: 100%;
    padding: .7rem .9rem;
    margin-bottom: .85rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .18);
    background: rgba(255, 255, 255, .06);
    color: #fff;
    font-size: 1rem;
}
.pv-side-input::placeholder { color: rgba(255, 255, 255, .38); }
.pv-side-input:focus {
    outline: none;
    border-color: #ff4081;
    background: rgba(255, 255, 255, .08);
    box-shadow: 0 0 0 .2rem rgba(255, 64, 129, .2);
}
.pv-side-input.is-invalid { border-color: #f87171; }
.pv-code-input { font-size: 1.4rem; letter-spacing: .35em; text-align: center; font-variant-numeric: tabular-nums; }

.pv-side-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 0 .65rem; }

.pv-pw-wrap { position: relative; }
.pv-pw-wrap .pv-side-input { padding-right: 4rem; }
.pv-pw-toggle {
    position: absolute;
    right: .5rem;
    top: .45rem;
    border: 0;
    background: none;
    color: rgba(255, 255, 255, .6);
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: .4rem .5rem;
}
.pv-pw-toggle:hover { color: #fff; }

.pv-side-turnstile { min-height: 65px; margin: 0 0 .85rem; }

.pv-side-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    width: 100%;
    padding: .8rem 1rem;
    border: 0;
    border-radius: 999px;
    background: #ff4081;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: background .15s ease, box-shadow .2s ease;
}
.pv-side-btn:hover { background: #e73370; color: #fff; box-shadow: 0 0 16px rgba(255, 64, 129, .45); }
.pv-side-btn[disabled], .pv-side-btn.is-busy { opacity: .6; pointer-events: none; }

.pv-side-link {
    border: 0;
    background: none;
    padding: 0;
    color: #ff9cbd;
    font-weight: 700;
    font-size: .88rem;
    text-decoration: none;
    white-space: nowrap;
}
.pv-side-link:hover { color: #fff; text-decoration: underline; }
.pv-side-link[disabled] { color: rgba(255, 255, 255, .4); text-decoration: none; cursor: default; }

.pv-side-row { display: flex; justify-content: space-between; gap: 1rem; margin-top: .85rem; }

.pv-side-who {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: .8rem;
    margin-bottom: .9rem;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.pv-side-who strong { display: block; overflow-wrap: anywhere; font-weight: 600; }
.pv-side-who--plain { align-items: baseline; font-size: .9rem; color: rgba(255, 255, 255, .7); }
.pv-side-who--plain strong { display: inline; color: #fff; }

.pv-method {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .35rem 0;
    font-size: 1rem;
    cursor: pointer;
}
.pv-method input { width: 1.1rem; height: 1.1rem; accent-color: #ff4081; }
.pv-method-body { margin: .25rem 0 .5rem 1.7rem; }
.pv-method-body .pv-side-input { margin-bottom: .4rem; }

.pv-side-check {
    display: flex;
    align-items: flex-start;
    gap: .55rem;
    margin: .1rem 0 1rem;
    font-size: .88rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, .78);
    cursor: pointer;
}
.pv-side-check input { margin-top: .15rem; width: 1.05rem; height: 1.05rem; flex: 0 0 auto; accent-color: #ff4081; }
.pv-side-check input.is-invalid { outline: 2px solid #f87171; outline-offset: 2px; }
.pv-side-check a, .pv-side-fine a { color: #fff; }

.pv-side-fine { font-size: .8rem; line-height: 1.45; color: rgba(255, 255, 255, .55); margin: .7rem 0 0; }
.pv-side-fine--note {
    padding: .6rem .75rem;
    border-radius: 10px;
    background: rgba(255, 209, 102, .07);
    border: 1px solid rgba(255, 209, 102, .22);
    color: rgba(255, 233, 173, .85);
}

.pv-side-alert {
    margin-bottom: .9rem;
    padding: .65rem .85rem;
    border-radius: 12px;
    font-size: .9rem;
    line-height: 1.45;
    background: rgba(255, 72, 112, .14);
    border: 1px solid rgba(255, 87, 122, .5);
    color: #ffc2d0;
}
.pv-side-alert.is-ok {
    background: rgba(74, 222, 128, .1);
    border-color: rgba(74, 222, 128, .4);
    color: #c9fff0;
}

/* Purchase options */
.pv-buy-options { display: flex; flex-direction: column; gap: .6rem; margin-bottom: 1rem; }
.pv-buy-opt {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: .2rem .75rem;
    align-items: start;
    padding: .8rem .9rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .03);
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease;
}
.pv-buy-opt:hover { border-color: rgba(255, 255, 255, .28); }
.pv-buy-opt:has(input:checked) { border-color: #ff4081; background: rgba(255, 64, 129, .09); }
.pv-buy-opt input { margin-top: .25rem; width: 1.05rem; height: 1.05rem; accent-color: #ff4081; }
.pv-buy-opt__main { display: flex; flex-direction: column; min-width: 0; }
.pv-buy-opt__title { font-weight: 700; line-height: 1.25; }
.pv-buy-opt__sub { font-size: .8rem; color: rgba(255, 255, 255, .6); margin-top: .1rem; }
.pv-buy-opt__save { font-size: .78rem; font-weight: 700; color: #4ade80; margin-top: .3rem; }
.pv-buy-opt__promo {
    display: flex; align-items: center; flex-wrap: wrap; gap: .35rem;
    margin-top: .35rem; font-size: .72rem; font-weight: 700; color: #ffd166;
}
.pv-buy-opt__promo-label {
    border-radius: 999px; padding: .05rem .5rem;
    background: rgba(255, 209, 102, .16); border: 1px solid rgba(255, 209, 102, .45);
    text-transform: uppercase; letter-spacing: .07em; font-size: .62rem;
}
.pv-buy-opt__price { text-align: right; white-space: nowrap; }
.pv-buy-opt__was { display: block; font-size: .78rem; text-decoration: line-through; color: rgba(255, 255, 255, .45); }
.pv-buy-opt__now { display: block; font-size: 1.15rem; font-weight: 800; line-height: 1.15; }
.pv-buy-badge {
    display: inline-block;
    margin-left: .3rem;
    padding: .08rem .45rem;
    border-radius: 999px;
    background: rgba(74, 222, 128, .15);
    color: #4ade80;
    font-size: .64rem;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
    vertical-align: .1em;
}

@media (max-width: 991.98px) {
    .pv-side-card { padding: 1.2rem 1.1rem 1.05rem; border-radius: 16px; }
}
