* { box-sizing: border-box; }

html, body {
    margin: 0;
    height: 100%;
    background: #000;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

.stage {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    background: #000;
}

#video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

/* ---- Play overlay (the click-to-watch gate) ---- */
.overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    background: rgba(0, 0, 0, 0.28);
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    transition: opacity 0.25s ease;
}

.overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.play-btn {
    width: 72px;
    height: 72px;
    border: none;
    border-radius: 50%;
    background: rgba(20, 20, 20, 0.55);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    display: grid;
    place-items: center;
    cursor: pointer;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
    transition: transform 0.15s ease, background 0.15s ease;
}

.play-btn:hover  { transform: scale(1.05); background: rgba(30, 30, 30, 0.7); }
.play-btn:active { transform: scale(0.95); }

.play-btn svg {
    width: 30px;
    height: 30px;
    margin-left: 3px; /* optically centre the triangle */
    fill: #fff;
}

.play-label {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.2px;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}

/* ---- "Redirecting in Ns" heads-up (final seconds only) ---- */
.notice {
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.62);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.2px;
    white-space: nowrap;
    pointer-events: none;   /* never blocks the native controls */
    z-index: 5;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.notice[hidden] { display: none; }
