/* ============================================
   HLS Video Streaming Styles
   ============================================ */

/* Video Wrapper with Status Overlay */
.video-wrapper {
    position: relative;
    background: #000;
    overflow: hidden;
    border-radius: var(--radius-md);
}

/* Loading/Status Overlay */
.video-status {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    font-weight: 600;
    font-size: 0.9375rem;
    z-index: 2;
    padding: var(--spacing-sm);
    text-align: center;
    transition: opacity var(--transition-base);
}

.video-status.hidden {
    display: none !important;
}

/* Video Error State */
.video-error {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 3;
    padding: var(--spacing-md);
    background: rgba(0, 0, 0, 0.8);
}

.video-error .error-msg {
    font-size: 0.875rem;
    margin-bottom: var(--spacing-xs);
    color: var(--color-accent-danger);
    text-align: center;
}

.video-error .retry-btn {
    margin-top: var(--spacing-sm);
    z-index: 4;
}

/* Video Element Styling */
.camera-video-container video {
    width: 100%;
    height: 100%;
    background: #000;
    display: block;
}

/* HLS Loading Spinner */
.hls-loading {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--color-accent-primary);
    border-radius: 50%;
    animation: hlsSpin 0.8s linear infinite;
    margin-bottom: var(--spacing-xs);
}

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