/* Live Controls & Error Recovery Status Overlay for site */

.screen-slot {
    position: relative;
    overflow: hidden;
    background: #000;
    width: 100%;
    height: 100%;
}

.hls-video-el {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
    display: block;
}

/* ── status overlay ─────────────────────────────────────────── */
.slot-status {
    position: absolute;
    inset: 0;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: rgba(6, 6, 9, 0.78);
    backdrop-filter: blur(2px);
    z-index: 5;
    text-align: center;
    padding: 16px;
}

.slot-status.visible {
    display: flex;
}

.status-spinner {
    width: 34px;
    height: 34px;
    border: 3px solid rgba(255, 255, 255, 0.16);
    border-top-color: #e50914;
    border-radius: 50%;
    animation: spin 0.85s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.status-text {
    color: #d6d6dd;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.status-hint {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: #6f6f7a;
    font-size: 13px;
    font-weight: 600;
}

.status-hint i {
    font-size: 26px;
}

.status-fail {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    max-width: 320px;
}

.status-fail i {
    font-size: 26px;
    color: #e8a33d;
}

.status-retry {
    background: #e50914;
    color: #fff;
    border: 0;
    border-radius: 6px;
    padding: 9px 18px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
}

.status-retry:hover {
    background: #ff1f2b;
}

/* ── live control bar (desktop hover & mobile tap-active) ── */
.live-controls {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: none;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.5) 60%, rgba(0, 0, 0, 0) 100%);
    z-index: 6;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.live-controls.visible {
    display: flex;
}

.screen-slot:hover .live-controls.visible,
.live-controls.visible.touch-active,
.live-controls.visible:focus-within {
    opacity: 1;
    pointer-events: auto;
}

.lc-btn {
    background: transparent;
    border: 0;
    color: #fff;
    font-size: 15px;
    width: 36px;
    height: 36px;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, color 0.15s ease;
    touch-action: manipulation;
}

.lc-btn:hover {
    background: rgba(255, 255, 255, 0.16);
}

.lc-live {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 0;
    border-radius: 4px;
    padding: 6px 10px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.6px;
    cursor: pointer;
    color: #fff;
    transition: background 0.2s ease;
    touch-action: manipulation;
}

.lc-live.at-edge {
    background: rgba(229, 9, 20, 0.92);
}

.lc-live.behind {
    background: rgba(255, 255, 255, 0.16);
    color: #cfcfd8;
}

.lc-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}

.lc-live.at-edge .lc-dot {
    background: #fff;
    animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse {
    50% {
        opacity: 0.35;
    }
}

/* ── ultra-smooth volume slider (default standard arrow cursor) ── */
.lc-vol-wrap {
    display: flex;
    align-items: center;
    width: 85px;
    height: 36px;
    position: relative;
    cursor: default;
    touch-action: pan-y;
}

.lc-vol {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 5px;
    border-radius: 3px;
    background: linear-gradient(to right, #e50914 0%, #e50914 var(--vol-pct, 100%), rgba(255, 255, 255, 0.25) var(--vol-pct, 100%), rgba(255, 255, 255, 0.25) 100%);
    outline: none;
    cursor: default;
    transition: height 0.15s ease;
}

.lc-vol-wrap:hover .lc-vol,
.lc-vol:active {
    height: 7px;
}

/* Chrome, Edge, Safari Thumb — standard arrow cursor */
.lc-vol::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #ffffff;
    cursor: default;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
    transition: transform 0.1s cubic-bezier(0.4, 0, 0.2, 1), background 0.15s ease;
}

.lc-vol:active::-webkit-slider-thumb {
    cursor: default;
    transform: scale(1.25);
    background: #ff2a37;
}

/* Firefox Thumb — standard arrow cursor */
.lc-vol::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border: 0;
    border-radius: 50%;
    background: #ffffff;
    cursor: default;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
    transition: transform 0.1s cubic-bezier(0.4, 0, 0.2, 1), background 0.15s ease;
}

.lc-vol:active::-moz-range-thumb {
    cursor: default;
    transform: scale(1.25);
    background: #ff2a37;
}

.lc-spacer {
    flex: 1;
}

/* ── Mobile Player Controls Tuning ── */
@media (max-width: 899px) {
    .live-controls {
        padding: 8px 10px;
        gap: 8px;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.6) 60%, rgba(0, 0, 0, 0) 100%);
        bottom: 0;
        z-index: 10;
    }

    .lc-btn {
        width: 38px;
        height: 38px;
        font-size: 15px;
    }

    .lc-live {
        padding: 6px 9px;
        font-size: 11px;
    }

    .lc-vol-wrap {
        width: 75px;
    }
}
