/**
 * RAJU TV — Video Player & Cinema Mode Styles
 */

.player-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.7);
    border: 1px solid var(--border-color);
}

@media (max-width: 767px) {
    .player-wrapper {
        border-radius: 10px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
        margin-bottom: 0.85rem !important;
    }
}

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

.player-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Custom Overlay for Buffering / Loading */
.player-loading-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 20;
    backdrop-filter: blur(4px);
}

.player-loading-overlay.active {
    display: flex;
}

.player-spinner {
    width: 54px;
    height: 54px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 1rem;
}

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

/* Status Overlays: Offline & Maintenance */
.player-status-screen {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, #161f33 0%, #080c14 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    z-index: 25;
}

.status-icon-badge {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    margin-bottom: 1.25rem;
}

.status-icon-offline {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 2px solid rgba(239, 68, 68, 0.3);
}

.status-icon-maintenance {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border: 2px solid rgba(245, 158, 11, 0.3);
}

/* Theater Mode */
body.theater-mode .main-content-row {
    flex-direction: column;
}

body.theater-mode .player-col {
    max-width: 100% !important;
    width: 100% !important;
}

body.theater-mode .player-wrapper {
    max-height: 85vh;
    border-radius: 0;
}

/* Quality Level Select Badge */
.player-quality-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 15;
    backdrop-filter: blur(4px);
}
