/* ===== LIVE TV COMING SOON OVERLAY STYLES ===== */
/* IMPORTANT: This CSS ensures the cover-up takes over the Live TV page */
.live-tv-cover-up-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9997; /* One below podcast overlay to avoid conflicts */
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    background: transparent;
    pointer-events: auto;
}

.live-tv-cover-up-page::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(-45deg, #0d1b2a, #1b263b, #415a77, #0d1b2a);
    pointer-events: none;
}

/* Remove cover-up button - visible only when needed */
.live-tv-remove-cover-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000000;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 24px;
    cursor: pointer;
    display: none;
    transition: all 0.3s ease;
    pointer-events: auto;
}

.live-tv-remove-cover-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

/* ===== COVER-UP PAGE STYLES ===== */
.live-tv-cover-up-page * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.live-tv-cover-up-page {
    --primary-color: #2196f3;
    --secondary-color: #00bcd4;
    --accent-color: #ff9800;
    --light-color: #f8f9fa;
    --dark-color: #121212;
    --animation-speed: 1.5s;
}

/* FIXED: Ensure gradient background is visible */
.live-tv-cover-container {
    width: 100%;
    min-height: 100vh;
    background: linear-gradient(-45deg, #0d1b2a, #1b263b, #415a77, #0d1b2a) !important;
    background-size: 400% 400% !important;
    animation: gradientBGLiveTV 15s ease infinite;
    color: var(--light-color);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 2rem 1rem;
    position: relative;
    z-index: 1;
    pointer-events: auto;
}

@keyframes gradientBGLiveTV {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Floating background elements */
.live-tv-floating-element {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    z-index: -1;
    animation: floatLiveTV 6s ease-in-out infinite;
}

.live-tv-floating-element:nth-child(1) {
    width: 80px;
    height: 80px;
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.live-tv-floating-element:nth-child(2) {
    width: 120px;
    height: 120px;
    top: 60%;
    right: 10%;
    animation-delay: 2s;
}

.live-tv-floating-element:nth-child(3) {
    width: 60px;
    height: 60px;
    bottom: 20%;
    left: 15%;
    animation-delay: 4s;
}

.live-tv-floating-element:nth-child(4) {
    width: 100px;
    height: 100px;
    top: 15%;
    right: 20%;
    animation-delay: 1s;
}

@keyframes floatLiveTV {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* Logo and branding */
.live-tv-logo-container {
    margin: 1.5rem 0 2rem;
    text-align: center;
    animation: fadeInDownLiveTV 1s ease-out;
    width: 100%;
    max-width: 800px;
}

.live-tv-logo {
    font-size: 3.5rem;
    color: var(--light-color);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.live-tv-logo-icon {
    color: var(--accent-color);
    animation: pulseLiveTV 2s infinite;
}

@keyframes pulseLiveTV {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.live-tv-brand-name {
    font-size: 2.2rem;
    font-weight: 700;
    background: linear-gradient(to right, #2196f3, #00bcd4);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Main content */
.live-tv-main-content {
    text-align: center;
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    padding: 1rem;
    animation: fadeInUpLiveTV 1s ease-out 0.5s both;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.live-tv-coming-soon-text {
    font-size: 4.5rem;
    font-weight: 800;
    margin: 1.5rem 0;
    position: relative;
    display: inline-block;
    line-height: 1.2;
}

.live-tv-coming-soon-text span {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: shimmerLiveTV 3s infinite linear;
    background-size: 200% auto;
}

@keyframes shimmerLiveTV {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.live-tv-coming-soon-text::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 4px;
    bottom: -10px;
    left: 0;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
    animation: widthPulseLiveTV 2s infinite;
}

@keyframes widthPulseLiveTV {
    0%, 100% { width: 100%; }
    50% { width: 80%; }
}

.live-tv-subtitle {
    font-size: 1.5rem;
    margin: 1.5rem 0 2rem;
    line-height: 1.6;
    opacity: 0.9;
    padding: 0 1rem;
}

/* Animated progress */
.live-tv-progress-container {
    width: 100%;
    max-width: 500px;
    margin: 2.5rem auto;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    height: 12px;
}

.live-tv-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
    animation: progressFillLiveTV 3s ease-in-out infinite;
}

@keyframes progressFillLiveTV {
    0%, 100% { width: 30%; }
    50% { width: 80%; }
}

/* Countdown timer */
.live-tv-countdown-container {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 2.5rem 0;
    flex-wrap: wrap;
    width: 100%;
}

.live-tv-countdown-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 1.2rem;
    min-width: 100px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeInLiveTV 1s ease-out 1s both;
    transition: transform 0.3s;
}

.live-tv-countdown-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.live-tv-countdown-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
    display: block;
}

.live-tv-countdown-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

/* Social links */
.live-tv-social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 2.5rem 0;
    animation: fadeInLiveTV 1s ease-out 2s both;
    flex-wrap: wrap;
}

.live-tv-social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    color: var(--light-color);
    font-size: 1.3rem;
    transition: all 0.3s;
    text-decoration: none;
}

.live-tv-social-link:hover {
    transform: translateY(-5px) scale(1.1);
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: white;
}

/* Footer */
.live-tv-footer {
    margin: 2rem 0 1rem;
    text-align: center;
    opacity: 0.7;
    font-size: 0.9rem;
    animation: fadeInLiveTV 1s ease-out 2.5s both;
    width: 100%;
    padding: 0 1rem;
}

/* Animations */
@keyframes fadeInDownLiveTV {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUpLiveTV {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLiveTV {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .live-tv-cover-container {
        padding: 1.5rem 1rem;
    }
    
    .live-tv-logo-container {
        margin: 1rem 0 1.5rem;
    }
    
    .live-tv-logo {
        font-size: 3rem;
        flex-direction: column;
        gap: 0.3rem;
    }
    
    .live-tv-coming-soon-text {
        font-size: 3.2rem;
        margin: 1rem 0;
    }
    
    .live-tv-brand-name {
        font-size: 1.8rem;
    }
    
    .live-tv-subtitle {
        font-size: 1.2rem;
        margin: 1rem 0 1.5rem;
    }
    
    .live-tv-countdown-item {
        min-width: 80px;
        padding: 1rem;
    }
    
    .live-tv-countdown-value {
        font-size: 2rem;
    }
    
    .live-tv-countdown-container {
        gap: 1rem;
        margin: 1.5rem 0;
    }
    
    .live-tv-social-links {
        margin: 2rem 0;
    }
    
    .live-tv-remove-cover-btn {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .live-tv-coming-soon-text {
        font-size: 2.5rem;
    }
    
    .live-tv-countdown-container {
        gap: 0.8rem;
    }
    
    .live-tv-countdown-item {
        min-width: 70px;
        padding: 0.8rem;
    }
    
    .live-tv-countdown-value {
        font-size: 1.8rem;
    }
    
    .live-tv-logo {
        font-size: 2.5rem;
    }
    
    .live-tv-brand-name {
        font-size: 1.5rem;
    }
    
    .live-tv-subtitle {
        font-size: 1.1rem;
        padding: 0 0.5rem;
    }
    
    .live-tv-social-links {
        gap: 1rem;
    }
    
    .live-tv-social-link {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
}

/* CRITICAL FIXES: Ensure proper stacking and visibility */

/* Fix z-index conflicts with existing navigation */
.live-tv-cover-up-page {
    z-index: 9997 !important; /* One below podcast overlay */
}

/* Ensure the gradient background is always visible */
.live-tv-cover-container {
    background: linear-gradient(-45deg, #0d1b2a, #1b263b, #415a77, #0d1b2a) !important;
    background-size: 400% 400% !important;
}

/* Remove any white background bleed */
.live-tv-cover-up-page,
.live-tv-cover-container,
.live-tv-main-content,
.live-tv-logo-container {
    background: transparent !important;
}

/* Ensure floating elements have the correct background */
.live-tv-floating-element {
    background: rgba(255, 255, 255, 0.05) !important;
}

/* Fix pointer events for better interaction */
.live-tv-cover-up-page.active {
    pointer-events: auto;
}

/* When cover is active, allow navigation to work */
body.live-tv-cover-active .bottom-nav {
    z-index: 10000 !important;
    position: fixed !important;
    bottom: 0 !important;
    pointer-events: auto;
}

body.live-tv-cover-active header {
    z-index: 10000 !important;
    position: sticky !important;
    pointer-events: auto;
}

body.live-tv-cover-active .top-bar {
    z-index: 10000 !important;
    position: relative !important;
    pointer-events: auto;
}

/* Ensure menu items are clickable */
body.live-tv-cover-active .nav-item,
body.live-tv-cover-active .category-btn,
body.live-tv-cover-active .user-actions button,
body.live-tv-cover-active .search-box {
    pointer-events: auto !important;
    z-index: 10001 !important;
}

/* Hide only Live TV content, not navigation */
.live-tv-cover-active #livePage .inner-header {
    display: none !important;
}

.live-tv-cover-active #livePage .live-container,
.live-tv-cover-active #livePage .live-player,
.live-tv-cover-active #livePage .live-channels,
.live-tv-cover-active #livePage h3 {
    display: none !important;
}

/* Make overlay slightly transparent at edges for visual context */
.live-tv-cover-up-page::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(-45deg, #0d1b2a, #1b263b, #415a77, #0d1b2a);
    pointer-events: none;
    z-index: -1;
}