/* ZipNationMovies TV — Liquid Glass & Glassmorphism Theme */

.tv-page {
    position: relative;
    min-height: 100vh;
    padding-top: 1.5rem;
    padding-bottom: 4rem;
    color: #f8fafc;
}

/* Liquid Glass Cards */
.tv-glass-card {
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    border-radius: 24px;
}

.tv-glass-gold {
    background: linear-gradient(135deg, rgba(201, 162, 39, 0.08) 0%, rgba(15, 23, 42, 0.75) 100%);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(201, 162, 39, 0.3);
    box-shadow: 0 20px 50px rgba(201, 162, 39, 0.1);
    border-radius: 24px;
}

/* Live Badge Pulse */
.tv-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 9999px;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #f87171;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.tv-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #ef4444;
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    animation: tv-pulse 1.8s infinite;
}

@keyframes tv-pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* EPG Schedule Item States */
.epg-item {
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(15, 23, 42, 0.4);
}

.epg-item:hover {
    background: rgba(30, 41, 59, 0.6);
    border-color: rgba(201, 162, 39, 0.3);
    transform: translateX(4px);
}

.epg-item.on-air {
    background: linear-gradient(135deg, rgba(201, 162, 39, 0.15) 0%, rgba(15, 23, 42, 0.8) 100%);
    border-color: rgba(201, 162, 39, 0.5);
    box-shadow: 0 0 20px rgba(201, 162, 39, 0.15);
}

/* Player Frame styling */
.tv-player-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8);
}

.tv-player-container video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Commercial Break Banner */
.comm-banner {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 30;
    padding: 8px 16px;
    background: rgba(234, 179, 8, 0.2);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(234, 179, 8, 0.5);
    border-radius: 12px;
    color: #fef08a;
    font-size: 0.75rem;
    font-weight: 700;
}

/* Offline & Unavailable Stream Overlay */
.tv-offline-overlay {
    position: absolute;
    inset: 0;
    z-index: 25;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
    background: radial-gradient(circle at center, rgba(30, 41, 59, 0.9) 0%, rgba(10, 15, 30, 0.96) 100%);
    backdrop-filter: blur(12px);
    color: #f8fafc;
}

/* Autoplay Unmute Floating Overlay */
.tv-unmute-badge {
    position: absolute;
    bottom: 24px;
    left: 24px;
    z-index: 35;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(250, 204, 21, 0.5);
    border-radius: 9999px;
    color: #fef08a;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    transition: transform 0.2s, background 0.2s;
}
.tv-unmute-badge:hover {
    transform: scale(1.05);
    background: rgba(234, 179, 8, 0.25);
}

/* Big Play Overlay */
.tv-play-overlay-btn {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #facc15, #eab308);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 2rem;
    cursor: pointer;
    box-shadow: 0 0 30px rgba(250, 204, 21, 0.6);
    transition: transform 0.2s ease-out;
}
.tv-play-overlay-btn:hover {
    transform: scale(1.1);
}

/* Custom Center Play Stage */
.tv-center-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(4px);
    transition: opacity 0.25s ease;
}

.tv-center-play.hidden {
    opacity: 0;
    pointer-events: none;
}

.tv-center-play-btn {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e50914, #ff334b);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 35px rgba(229, 9, 20, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s;
}

.tv-center-play-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 45px rgba(229, 9, 20, 0.85);
}

/* TV Custom Overlay Bar */
.tv-controls-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 16px 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 70%, transparent 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 25;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.tv-player-container:hover .tv-controls-overlay,
.tv-player-container.user-active .tv-controls-overlay {
    opacity: 1;
}

.tv-controls-left,
.tv-controls-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tv-ctrl-btn {
    background: transparent;
    border: none;
    color: #f8fafc;
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s, transform 0.15s;
}

.tv-ctrl-btn:hover {
    color: #facc15;
    transform: scale(1.1);
}

.tv-live-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(239, 68, 68, 0.25);
    border: 1px solid rgba(239, 68, 68, 0.6);
    padding: 3px 10px;
    border-radius: 9999px;
    color: #ef4444;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.tv-live-pill-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ef4444;
    box-shadow: 0 0 8px #ef4444;
    animation: tv-pulse 1.5s infinite;
}

.tv-vol-wrap {
    display: flex;
    align-items: center;
    gap: 4px;
}

.tv-vol-slider {
    width: 70px;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

.tv-vol-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #facc15;
    cursor: pointer;
}

.tv-badge-hd {
    font-size: 0.7rem;
    font-weight: 800;
    color: #facc15;
    background: rgba(250, 204, 21, 0.15);
    border: 1px solid rgba(250, 204, 21, 0.4);
    padding: 3px 8px;
    border-radius: 6px;
    letter-spacing: 0.05em;
}
