/* ==========================================================================
   FLUXTVCORE — PREMIUM GLASSMORPHIC DESIGN SYSTEM (V20.00)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    /* Color Palette */
    --flux-bg-dark: #060f21;
    --flux-gradient-deep: radial-gradient(circle at 50% 0%, #0d2347 0%, #050d1b 100%);
    --flux-gradient-card: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    
    /* Neon & Luminous Accents */
    --flux-blue: #007aff;
    --flux-blue-glow: rgba(0, 122, 255, 0.4);
    --flux-red: #ff3b30;
    --flux-red-glow: rgba(255, 59, 48, 0.4);
    --flux-green: #34c759;
    --flux-green-glow: rgba(52, 199, 89, 0.4);
    
    /* Text colors */
    --flux-text-bright: #ffffff;
    --flux-text-muted: rgba(255, 255, 255, 0.65);
    --flux-text-dim: rgba(255, 255, 255, 0.4);
    
    /* Layout Variables */
    --flux-border-radius: 28px;
    --flux-border-glass: rgba(255, 255, 255, 0.08);
    --flux-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
    
    /* Animations */
    --flux-transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   GLOBAL RESET & FONTS
   ========================================================================== */
.tv-schedule-widget,
.tv-schedule-mobile-widget,
.live-program-card-container,
.live-program-card-pc-container,
.live-program-pill-container,
.gazeta-news-carousel-wrapper,
#fluxtv-details-popup,
#apple-tv-player-root {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif !important;
    letter-spacing: -0.2px;
}

/* ==========================================================================
   WIDGETS WRAPPER STYLING
   ========================================================================== */
.tv-schedule-widget,
.tv-schedule-mobile-widget {
    background: transparent;
    padding: 0;
    margin: 40px auto;
    max-width: 900px;
    color: var(--flux-text-bright);
}

/* Tabs */
.schedule-tabs, .mobile-tabs {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: 100px !important;
    padding: 6px !important;
    gap: 4px !important;
    margin: 0 auto 35px auto !important;
    max-width: max-content;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    box-shadow: inset 0 1px 1px rgba(255,255,255,0.05), 0 10px 30px rgba(0,0,0,0.3) !important;
    scrollbar-width: none; /* Hide scrollbar for Firefox */
}

.schedule-tabs::-webkit-scrollbar, .mobile-tabs::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome/Safari */
}

.tab-link, .mobile-tab-link {
    background: transparent !important;
    border: none !important;
    color: var(--flux-text-muted) !important;
    padding: 10px 22px !important;
    border-radius: 100px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    cursor: pointer !important;
    transition: var(--flux-transition) !important;
    box-shadow: none !important;
    white-space: nowrap;
}

.tab-link:hover, .mobile-tab-link:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.05) !important;
    transform: none !important;
}

.tab-link.active, .mobile-tab-link.active {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2) !important;
}

/* ==========================================================================
   DESKTOP GRADE DE PROGRAMAÇÃO (CARDS GRID)
   ========================================================================== */
.schedule-content {
    display: none;
    animation: fluxtvFadeIn 0.5s ease forwards;
}
.schedule-content.active {
    display: block;
}

.desktop-cards-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.desktop-program-card {
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, rgba(16, 24, 48, 0.5) 0%, rgba(8, 12, 24, 0.3) 100%) !important;
    backdrop-filter: blur(28px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(28px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 20px;
    padding: 24px 35px;
    min-height: 120px !important;
    transition: var(--flux-transition);
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3) !important;
    gap: 24px;
}

.desktop-program-card:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, rgba(24, 36, 72, 0.65) 0%, rgba(12, 18, 36, 0.45) 100%) !important;
    border-color: rgba(255, 255, 255, 0.22) !important;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45), 0 0 25px rgba(0, 122, 255, 0.15) !important;
}

.desktop-program-card:active {
    transform: translateY(-1px);
}

/* EPG Card Elements Layering */
.desktop-card-time,
.desktop-card-center,
.desktop-card-right-group {
    position: relative;
    z-index: 2;
}

.desktop-card-time {
    font-size: 16px;
    font-weight: 800;
    color: #cbd5e1; /* Premium silver time */
    letter-spacing: -0.2px;
    min-width: 90px;
}

/* Center Section: Program Title */
.desktop-card-center {
    flex-grow: 1;
    display: flex;
    align-items: center;
}

.desktop-program-title {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin: 0;
}

/* Right Section: Badges & Action Circular Button */
.desktop-card-right, .desktop-badges {
    display: flex;
    align-items: center;
    gap: 16px;
}

.desktop-badge {
    padding: 4px 12px;
    font-size: 10px;
    font-weight: 800;
    border-radius: 6px;
    color: #fff;
    letter-spacing: 0.8px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.desktop-badge.live {
    background: linear-gradient(135deg, #ff3b30 0%, #ff2d55 100%) !important;
    box-shadow: 0 4px 12px rgba(255, 59, 48, 0.35) !important;
}

.desktop-badge.new {
    background: linear-gradient(135deg, #34c759 0%, #00d2c4 100%) !important;
    box-shadow: 0 4px 12px rgba(52, 199, 89, 0.3) !important;
}

.fluxtv-play-btn-circle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    opacity: 0;
    transform: translateX(10px);
    transition: var(--flux-transition);
}

.desktop-program-card:hover .fluxtv-play-btn-circle {
    opacity: 1;
    transform: translateX(0);
    background: rgba(255, 255, 255, 0.18) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

/* Remaining duration indicator label */
.fluxtv-remaining-lbl {
    font-size: 12px;
    color: var(--flux-text-muted);
    font-weight: 500;
    margin-right: 5px;
}

/* ==========================================================================
   EPG DYNAMIC GLOW EFFECTS (LIVE-NOW & IS-NEW)
   ========================================================================== */

/* Live program accent styling (Neon Red Glow Pulse) */
.desktop-program-card.live-now {
    border: 1.5px solid rgba(255, 59, 48, 0.45) !important;
    background: linear-gradient(135deg, rgba(255, 59, 48, 0.08) 0%, rgba(10, 22, 46, 0.45) 50%, rgba(10, 22, 46, 0.6) 100%) !important;
    box-shadow: 0 15px 40px rgba(255, 59, 48, 0.2), var(--flux-shadow) !important;
    animation: livePulseDesktop 3s infinite alternate;
}

.desktop-program-card.live-now .fluxtv-play-btn-circle {
    background: #ff3b30 !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(255, 59, 48, 0.4) !important;
}

@keyframes livePulseDesktop {
    0% {
        border-color: rgba(255, 59, 48, 0.35) !important;
        box-shadow: 0 10px 30px rgba(255, 59, 48, 0.15), var(--flux-shadow) !important;
    }
    100% {
        border-color: rgba(255, 59, 48, 0.7) !important;
        box-shadow: 0 15px 45px rgba(255, 59, 48, 0.3), var(--flux-shadow) !important;
    }
}

/* New program accent styling (Neon Green Glow) */
.desktop-program-card.is-new {
    border: 1.5px solid rgba(52, 199, 89, 0.4) !important;
    background: linear-gradient(135deg, rgba(52, 199, 89, 0.06) 0%, rgba(10, 22, 46, 0.45) 50%, rgba(10, 22, 46, 0.6) 100%) !important;
    box-shadow: 0 15px 40px rgba(52, 199, 89, 0.1), var(--flux-shadow) !important;
}

/* ==========================================================================
   RESPONSIVE LAYOUT OVERRIDES (MOBILE & TABLET)
   ========================================================================== */
@media (max-width: 991px) {
    .schedule-tabs {
        max-width: 100%;
        width: 100%;
        overflow-x: auto;
        justify-content: flex-start;
        border-radius: 24px !important;
        padding: 6px 12px !important;
        box-sizing: border-box;
    }

    .desktop-program-card {
        padding: 20px 24px !important;
        min-height: 110px !important;
        gap: 16px;
        border-radius: 16px;
        border-width: 1px !important;
    }

    .desktop-card-time {
        font-size: 14px;
        min-width: 65px;
        color: rgba(255, 255, 255, 0.65) !important;
    }

    .desktop-program-title {
        font-size: 15px;
        line-height: 1.3;
    }

    .desktop-card-right-group {
        gap: 8px;
        display: flex;
        align-items: center;
    }

    .desktop-badge {
        padding: 3px 8px;
        font-size: 9px;
        border-radius: 4px;
    }

    .fluxtv-play-btn-circle {
        display: none !important; /* Hide arrows on mobile completely to clean up layout */
    }

    .fluxtv-remaining-lbl {
        display: none !important; /* Hide to save horizontal space on mobile */
    }

    /* Mobile active/live pulse adjustments */
    .desktop-program-card.live-now {
        border: 1px solid rgba(255, 59, 48, 0.45) !important;
        background: linear-gradient(135deg, rgba(255, 59, 48, 0.08) 0%, rgba(10, 22, 46, 0.45) 50%, rgba(10, 22, 46, 0.6) 100%) !important;
        box-shadow: 0 10px 30px rgba(255, 59, 48, 0.15) !important;
        animation: livePulseMobile 3s infinite alternate;
    }

    @keyframes livePulseMobile {
        0% {
            border-color: rgba(255, 59, 48, 0.35) !important;
            box-shadow: 0 8px 20px rgba(255, 59, 48, 0.1) !important;
        }
        100% {
            border-color: rgba(255, 59, 48, 0.7) !important;
            box-shadow: 0 12px 30px rgba(255, 59, 48, 0.25) !important;
        }
    }

    /* Mobile new program styling */
    .desktop-program-card.is-new {
        border: 1px solid rgba(52, 199, 89, 0.4) !important;
        background: linear-gradient(135deg, rgba(52, 199, 89, 0.06) 0%, rgba(10, 22, 46, 0.45) 50%, rgba(10, 22, 46, 0.6) 100%) !important;
        box-shadow: 0 10px 30px rgba(52, 199, 89, 0.08) !important;
    }
}

/* ==========================================================================
   HERO BANNER / LIVE CARDS (PC & MOBILE)
   ========================================================================== */
.live-program-card-pc-container,
.live-program-card-container {
    width: 100% !important;
    max-width: 100% !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 5px 0 !important;
    box-sizing: border-box;
}

/* Glassmorphism premium layout banner PC (Sleek wide) */
.live-program-card-pc {
    position: relative;
    width: 100% !important;
    max-width: 100% !important;
    height: 420px !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%) !important;
    backdrop-filter: blur(28px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(28px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: var(--flux-border-radius);
    box-shadow: var(--flux-shadow);
    overflow: hidden;
    display: flex;
    transition: var(--flux-transition);
    cursor: default;
}

@media (max-width: 992px) {
    .live-program-card-pc {
        flex-direction: column-reverse !important;
        aspect-ratio: auto !important;
        max-width: 100% !important;
        height: auto !important;
    }
    .live-program-card-pc .fluxtv-hero-content {
        width: 100% !important;
        padding: 30px !important;
    }
    .live-program-card-pc .fluxtv-hero-image-wrapper {
        width: 100% !important;
        position: relative !important;
        height: 280px !important;
    }
    .live-program-card-pc .fluxtv-hero-fade-overlay {
        background: linear-gradient(0deg, #0a172e 0%, rgba(10, 23, 46, 0.9) 60%, rgba(10, 23, 46, 0) 100%) !important;
    }
    .live-program-card-pc .fluxtv-hero-title {
        font-size: 30px !important;
    }
    .live-program-card-pc .fluxtv-progress-container {
        width: 100% !important;
    }
}


/* Glassmorphism premium layout card Mobile (Blended Square) */
.live-program-card {
    position: relative;
    width: 100%;
    max-width: 420px;
    aspect-ratio: 1.1 / 1; /* Standard square ratio like image */
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%) !important;
    backdrop-filter: blur(28px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(28px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: var(--flux-border-radius);
    box-shadow: var(--flux-shadow);
    overflow: hidden;
    display: flex;
    transition: var(--flux-transition);
    cursor: default;
    box-sizing: border-box;
}

/* Blended Content overlaying the card */
.fluxtv-hero-content {
    position: relative;
    z-index: 5;
    width: 55%;
    height: 100%;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    box-sizing: border-box;
}

.live-program-card-pc .fluxtv-hero-content {
    width: 50%;
    padding: 40px 50px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.fluxtv-hero-badge-row {
    position: absolute !important;
    top: 24px;
    left: 24px;
    z-index: 10 !important;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 !important;
}

.fluxtv-live-badge-glass {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 5px 12px !important;
    border-radius: 100px !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    transition: var(--flux-transition) !important;
}

/* Class-based status styling */
.fluxtv-live-badge-glass.status-live {
    background: rgba(255, 59, 48, 0.15) !important;
    border: 1px solid rgba(255, 59, 48, 0.3) !important;
    color: #ff3b30 !important;
    box-shadow: 0 4px 12px rgba(255, 59, 48, 0.15) !important;
}
.fluxtv-live-badge-glass.status-live .fluxtv-live-dot-glow {
    background-color: #ff3b30 !important;
    box-shadow: 0 0 10px #ff3b30 !important;
}

.fluxtv-live-badge-glass.status-new {
    background: rgba(52, 199, 89, 0.15) !important;
    border: 1px solid rgba(52, 199, 89, 0.3) !important;
    color: #34c759 !important;
    box-shadow: 0 4px 12px rgba(52, 199, 89, 0.15) !important;
}
.fluxtv-live-badge-glass.status-new .fluxtv-live-dot-glow {
    background-color: #34c759 !important;
    box-shadow: 0 0 10px #34c759 !important;
}

.fluxtv-live-badge-glass.status-onair {
    background: rgba(0, 122, 255, 0.15) !important;
    border: 1px solid rgba(0, 122, 255, 0.3) !important;
    color: #007aff !important;
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.15) !important;
}
.fluxtv-live-badge-glass.status-onair .fluxtv-live-dot-glow {
    background-color: #007aff !important;
    box-shadow: 0 0 10px #007aff !important;
}

.fluxtv-live-dot-glow {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
    animation: fluxtvPulse 1.5s infinite;
}

.fluxtv-hero-status-tag {
    font-size: 11px;
    font-weight: 800;
    color: #00c6ff !important;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 6px;
    display: inline-block;
}

.fluxtv-hero-title {
    font-size: clamp(24px, 4.5vw, 40px);
    font-weight: 700 !important;
    color: #fff !important;
    margin: 0 0 8px 0 !important;
    line-height: 1.2 !important;
    letter-spacing: -0.5px !important;
    word-wrap: break-word;
    word-break: break-word;
    background: none !important;
    background-color: transparent !important;
    border: none !important;
    padding: 0 !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4) !important;
}

.live-program-card .fluxtv-hero-title {
    font-size: 24px !important;
    font-weight: 700 !important;
}

.fluxtv-hero-presenter {
    font-size: 13px !important;
    font-weight: 400 !important;
    color: rgba(255, 255, 255, 0.6) !important;
    margin: 0 0 12px 0 !important;
    letter-spacing: -0.1px !important;
}

.live-program-card .fluxtv-hero-presenter {
    font-size: 12px !important;
    margin-bottom: 8px !important;
}

.fluxtv-hero-time-range {
    font-size: 13px !important;
    font-weight: 400 !important;
    color: rgba(255, 255, 255, 0.5) !important;
    margin-bottom: 10px !important;
    display: inline-block;
    letter-spacing: 0.5px !important;
}

.live-program-card .fluxtv-hero-time-range {
    font-size: 12px !important;
    margin-bottom: 8px !important;
}

/* Progress bar Remaining */
.fluxtv-progress-container {
    width: 100%;
    height: 3px !important;
    background: rgba(255, 255, 255, 0.12) !important;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 18px !important;
}

.live-program-card-pc .fluxtv-progress-container {
    width: 80% !important;
}

.fluxtv-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #007aff 0%, #00c6ff 100%) !important;
    border-radius: 10px;
    transition: width 0.6s ease;
}

/* Description block text on left */
.fluxtv-hero-description {
    font-size: 13px;
    line-height: 1.4;
    color: var(--flux-text-muted);
    margin: 0 0 20px 0;
}

.live-program-card .fluxtv-hero-description {
    font-size: 12px !important;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Buttons actions */
.fluxtv-hero-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.fluxtv-btn-primary {
    background: linear-gradient(135deg, #1b62d8 0%, #0c43a3 100%) !important;
    color: #fff !important;
    padding: 12px 24px !important;
    border-radius: 100px !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    border: none !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    transition: var(--flux-transition) !important;
    box-shadow: 0 8px 25px rgba(27, 98, 216, 0.45) !important;
    text-transform: none !important;
    white-space: nowrap;
}

.fluxtv-btn-primary:hover {
    transform: translateY(-2px);
    background: #1a8cff;
    box-shadow: 0 12px 30px var(--flux-blue-glow);
}

.fluxtv-btn-primary:active {
    transform: translateY(0);
}

.live-program-card-pc .fluxtv-btn-primary {
    padding: 14px 28px;
    font-size: 14px;
}

/* Circle actions matching image 2 */
.fluxtv-btn-circle-action {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--flux-border-glass);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--flux-transition);
    padding: 0;
    flex-shrink: 0;
}

.fluxtv-btn-circle-action:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.08);
}

.fluxtv-btn-circle-action:active {
    transform: scale(0.95);
}

.live-program-card .fluxtv-btn-circle-action {
    width: 36px;
    height: 36px;
}

/* Right side background image overlayed */
.fluxtv-hero-image-wrapper {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 60% !important;
    height: 100% !important;
    z-index: 1 !important;
    overflow: hidden !important;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.15) 15%, rgba(0, 0, 0, 1) 75%) !important;
    mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.15) 15%, rgba(0, 0, 0, 1) 75%) !important;
}

.live-program-card-pc .fluxtv-hero-image-wrapper {
    width: 58% !important;
}

.fluxtv-hero-img {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover !important;
    object-position: center top !important;
    transition: var(--flux-transition) !important;
}

.fluxtv-hero-fade-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(to right, rgba(10, 25, 48, 0.5) 0%, rgba(10, 25, 48, 0) 100%) !important;
    pointer-events: none;
}

/* ==========================================================================
   PRÓXIMO PROGRAMA CARD
   ========================================================================== */
.fluxtv-next-section {
    margin-top: 20px !important;
    width: 100% !important;
    max-width: 100% !important;
}

.live-program-card-container .fluxtv-next-section {
    max-width: 420px !important;
}

.fluxtv-section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--flux-text-muted);
    margin: 0 0 15px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.fluxtv-next-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--flux-gradient-card) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid var(--flux-border-glass) !important;
    border-radius: 20px;
    padding: 16px 30px;
    transition: var(--flux-transition);
    cursor: pointer;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.fluxtv-next-card:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.08) !important;
}

.fluxtv-next-left {
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 0;
    flex-grow: 1;
}

.fluxtv-next-time {
    font-size: 15px !important;
    font-weight: 500 !important;
    color: rgba(255, 255, 255, 0.5) !important;
    flex-shrink: 0;
}

.fluxtv-next-thumb {
    width: 80px !important;
    height: 48px !important;
    max-height: 48px !important;
    object-fit: cover !important;
    border-radius: 8px !important;
    flex-shrink: 0;
}

.fluxtv-next-title-wrapper {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.fluxtv-next-presenter {
    font-size: 13px !important;
    color: rgba(255, 255, 255, 0.5) !important;
    margin-top: 3px !important;
    font-weight: 400 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fluxtv-next-title {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #fff !important;
    margin: 0 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fluxtv-next-right svg {
    color: var(--flux-text-muted);
    transition: var(--flux-transition);
}

.fluxtv-next-card:hover .fluxtv-next-right svg {
    color: #fff;
    transform: translateX(5px);
}

/* ==========================================================================
   LIVE PILL
   ========================================================================== */
.live-program-pill {
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.03) !important;
    backdrop-filter: blur(28px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(28px) saturate(180%) !important;
    border: 1px solid var(--flux-border-glass) !important;
    padding: 10px 24px !important;
    border-radius: 100px !important;
    transition: var(--flux-transition);
    cursor: pointer;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.live-program-pill:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(0,122,255,0.3) !important;
}

.live-program-pill .live-dot {
    width: 8px;
    height: 8px;
    background-color: var(--flux-blue);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--flux-blue);
}

.live-program-pill.status-live .live-dot {
    background-color: var(--flux-red);
    box-shadow: 0 0 10px var(--flux-red);
}

.live-program-pill.status-new .live-dot {
    background-color: var(--flux-green);
    box-shadow: 0 0 10px var(--flux-green);
}

.live-program-pill .live-label {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--flux-blue);
}

.live-program-pill.status-live .live-label { color: var(--flux-red); }
.live-program-pill.status-new .live-label { color: var(--flux-green); }

.live-program-pill .live-program {
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 250px;
}

/* ==========================================================================
   PROGRAM DETAILS POPUP (BOTTOM-UP FULL SCREEN)
   ========================================================================== */
#fluxtv-details-popup {
    position: fixed;
    inset: 0;
    z-index: 2147483640; /* High z-index but below player if player is active */
    display: flex;
    justify-content: center;
    align-items: flex-end;
    pointer-events: none;
}

#fluxtv-details-popup.active {
    pointer-events: auto;
}

.fluxtv-popup-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
}

#fluxtv-details-popup.active .fluxtv-popup-backdrop {
    opacity: 1;
}

.fluxtv-popup-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    background: rgba(6, 15, 33, 0.55) !important;
    backdrop-filter: blur(45px) saturate(200%) !important;
    -webkit-backdrop-filter: blur(45px) saturate(200%) !important;
    border-top-left-radius: 32px;
    border-top-right-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 -15px 50px rgba(0, 0, 0, 0.6) !important;
    z-index: 2;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
}

@media (min-width: 992px) {
    .fluxtv-popup-container {
        width: 85vw;
        max-width: 1240px;
        height: 90vh;
        border-top-left-radius: 32px;
        border-top-right-radius: 32px;
    }
}

#fluxtv-details-popup.active .fluxtv-popup-container {
    transform: translateY(0);
    opacity: 1;
}

/* Background Radial Glow */
.fluxtv-popup-radial-glow {
    position: absolute;
    top: -100px;
    left: -100px;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    z-index: 1;
    pointer-events: none;
    transition: background 0.5s ease;
}

#fluxtv-details-popup.theme-onair .fluxtv-popup-radial-glow {
    background: radial-gradient(circle, rgba(0, 122, 255, 0.15) 0%, rgba(0, 122, 255, 0) 70%) !important;
}

#fluxtv-details-popup.theme-live .fluxtv-popup-radial-glow {
    background: radial-gradient(circle, rgba(255, 59, 48, 0.18) 0%, rgba(255, 59, 48, 0) 70%) !important;
}

#fluxtv-details-popup.theme-new .fluxtv-popup-radial-glow {
    background: radial-gradient(circle, rgba(52, 199, 89, 0.18) 0%, rgba(52, 199, 89, 0) 70%) !important;
}

/* Close & Badge Layout */
.fluxtv-close-btn {
    position: absolute;
    top: max(24px, env(safe-area-inset-top));
    left: 30px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--flux-border-glass);
    color: #fff;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--flux-transition);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.fluxtv-close-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.08);
}

.fluxtv-badge-live {
    position: absolute;
    top: max(24px, env(safe-area-inset-top));
    right: 30px;
    color: #fff !important;
    padding: 8px 18px !important;
    border-radius: 100px !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    letter-spacing: 1px !important;
    z-index: 10;
    transition: var(--flux-transition) !important;
}

.fluxtv-badge-live.status-live {
    background: #ff3b30 !important;
    box-shadow: 0 4px 15px rgba(255, 59, 48, 0.4) !important;
}

.fluxtv-badge-live.status-new {
    background: #34c759 !important;
    box-shadow: 0 4px 15px rgba(52, 199, 89, 0.4) !important;
}

.fluxtv-badge-live.status-onair {
    background: #007aff !important;
    box-shadow: 0 4px 15px rgba(0, 122, 255, 0.4) !important;
}

/* Scroll content area */
.fluxtv-popup-content-scroll {
    flex-grow: 1;
    overflow-y: auto;
    padding: 90px 40px 40px 40px;
    z-index: 5;
    position: relative;
}

@media (max-width: 991px) {
    .fluxtv-popup-content-scroll {
        padding: 90px 24px 40px 24px;
    }
}

/* Columns Grid (Desktop two-columns, Mobile single column) */
.fluxtv-popup-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

@media (min-width: 992px) {
    .fluxtv-popup-grid {
        grid-template-columns: 1fr 1.25fr;
        gap: 45px;
        margin-bottom: 45px;
        align-items: start;
    }
}

/* LEFT COLUMN: Media Cover Section */
.fluxtv-popup-left-col {
    width: 100%;
}

.fluxtv-popup-media-section {
    width: 100%;
}

.fluxtv-popup-img-container {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    position: relative;
    background: rgba(255, 255, 255, 0.02);
}

.fluxtv-popup-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fluxtv-popup-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 25, 47, 0.4) 0%, rgba(10, 25, 47, 0) 100%);
    pointer-events: none;
}

/* RIGHT COLUMN: Details Section */
.fluxtv-popup-right-col {
    display: flex;
    flex-direction: column;
}

.fluxtv-popup-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.fluxtv-meta-category {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

#fluxtv-details-popup.theme-onair .fluxtv-meta-category { color: #007aff; }
#fluxtv-details-popup.theme-live .fluxtv-meta-category { color: #ff3b30; }
#fluxtv-details-popup.theme-new .fluxtv-meta-category { color: #34c759; }

.fluxtv-meta-separator {
    color: rgba(255, 255, 255, 0.3);
    font-size: 12px;
}

.fluxtv-meta-duration {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

/* Title Row with circular glowing icon */
.fluxtv-popup-title-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.fluxtv-title-glow-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
}

.fluxtv-title-glow-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#fluxtv-details-popup.theme-onair .fluxtv-title-glow-icon {
    border: 2px solid #007aff;
    box-shadow: 0 0 15px rgba(0, 122, 255, 0.4);
}

#fluxtv-details-popup.theme-live .fluxtv-title-glow-icon {
    border: 2px solid #ff3b30;
    box-shadow: 0 0 15px rgba(255, 59, 48, 0.5);
}

#fluxtv-details-popup.theme-new .fluxtv-title-glow-icon {
    border: 2px solid #34c759;
    box-shadow: 0 0 15px rgba(52, 199, 89, 0.5);
}

.fluxtv-title {
    font-size: 32px;
    font-weight: 800;
    color: #fff;
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

@media (max-width: 768px) {
    .fluxtv-title {
        font-size: 26px;
    }
    .fluxtv-popup-title-row {
        gap: 12px;
        margin-bottom: 20px;
    }
    .fluxtv-title-glow-icon {
        width: 44px;
        height: 44px;
    }
}

/* Actions Row (Watch & Share Buttons) */
.fluxtv-popup-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 30px;
    width: 100%;
}

/* Desktop Styles for Action Buttons */
@media (min-width: 992px) {
    .fluxtv-btn-watch {
        color: #fff;
        padding: 14px 36px;
        border-radius: 50px;
        font-weight: 800;
        font-size: 14px;
        border: none;
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 8px;
        transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }

    #fluxtv-details-popup.theme-onair .fluxtv-btn-watch {
        background: linear-gradient(135deg, #007aff 0%, #0051a8 100%) !important;
        box-shadow: 0 8px 24px rgba(0, 122, 255, 0.35);
    }
    #fluxtv-details-popup.theme-onair .fluxtv-btn-watch:hover {
        background: linear-gradient(135deg, #1a8cff 0%, #0062d6 100%) !important;
        box-shadow: 0 12px 30px rgba(0, 122, 255, 0.55);
        transform: translateY(-2px);
    }

    #fluxtv-details-popup.theme-live .fluxtv-btn-watch {
        background: linear-gradient(135deg, #ff3b30 0%, #b01810 100%) !important;
        box-shadow: 0 8px 24px rgba(255, 59, 48, 0.35);
    }
    #fluxtv-details-popup.theme-live .fluxtv-btn-watch:hover {
        background: linear-gradient(135deg, #ff5e54 0%, #c41e14 100%) !important;
        box-shadow: 0 12px 30px rgba(255, 59, 48, 0.55);
        transform: translateY(-2px);
    }

    #fluxtv-details-popup.theme-new .fluxtv-btn-watch {
        background: linear-gradient(135deg, #34c759 0%, #1c7a33 100%) !important;
        box-shadow: 0 8px 24px rgba(52, 199, 89, 0.35);
    }
    #fluxtv-details-popup.theme-new .fluxtv-btn-watch:hover {
        background: linear-gradient(135deg, #4cd964 0%, #228f3d 100%) !important;
        box-shadow: 0 12px 30px rgba(52, 199, 89, 0.55);
        transform: translateY(-2px);
    }

    .fluxtv-btn-share {
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.12);
        color: #fff;
        padding: 14px 28px;
        border-radius: 50px;
        font-weight: 700;
        font-size: 13px;
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 8px;
        transition: all 0.3s ease;
    }

    .fluxtv-btn-share:hover {
        background: rgba(255, 255, 255, 0.16);
        border-color: rgba(255, 255, 255, 0.25);
        transform: translateY(-2px);
    }
}

/* Mobile Styles for Action Buttons (Stacked, watch is white, share is glass) */
@media (max-width: 991px) {
    .fluxtv-popup-actions {
        display: flex;
        flex-direction: row;
        gap: 12px;
        margin-bottom: 24px;
        width: 100%;
    }

    .fluxtv-btn-watch {
        flex: 1;
        background: #ffffff !important;
        color: #050d1b !important;
        padding: 14px 12px;
        border-radius: 50px;
        font-weight: 800;
        font-size: 14px;
        border: none;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        transition: all 0.3s ease;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    }

    .fluxtv-btn-watch:active {
        transform: scale(0.97);
    }

    .fluxtv-btn-share {
        flex: 1;
        background: rgba(255, 255, 255, 0.08) !important;
        border: 1px solid rgba(255, 255, 255, 0.15) !important;
        color: #fff !important;
        padding: 14px 12px;
        border-radius: 50px;
        font-weight: 700;
        font-size: 13px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        transition: all 0.3s ease;
    }

    .fluxtv-btn-share:active {
        transform: scale(0.97);
    }
}

/* Pulsing watches animations on themed players/buttons */
.fluxtv-btn-watch.btn-pulse-live {
    animation: pulse-live 1.8s infinite !important;
}

.fluxtv-btn-watch.btn-pulse-new {
    animation: pulse-new 1.8s infinite !important;
}

/* Unified Info Card styling (Glassmorphic Container) */
.fluxtv-popup-info-card {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 20px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.fluxtv-info-presenter-block {
    display: flex;
    align-items: center;
    gap: 16px;
}

.fluxtv-presenter-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

#fluxtv-details-popup.theme-onair .fluxtv-presenter-avatar { color: #007aff; }
#fluxtv-details-popup.theme-live .fluxtv-presenter-avatar { color: #ff3b30; }
#fluxtv-details-popup.theme-new .fluxtv-presenter-avatar { color: #34c759; }

.fluxtv-presenter-avatar svg {
    width: 20px;
    height: 20px;
}

.fluxtv-presenter-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.fluxtv-info-card-label {
    font-size: 10px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.fluxtv-info-card-value {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
}

.fluxtv-info-card-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 20px 0;
    width: 100%;
}

.fluxtv-info-about-block {
    display: flex;
    flex-direction: column;
}

.fluxtv-about-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.fluxtv-about-vertical-bar {
    width: 3px;
    height: 12px;
    border-radius: 4px;
    display: inline-block;
    transition: all 0.3s ease;
}

#fluxtv-details-popup.theme-onair .fluxtv-about-vertical-bar { background: #007aff; }
#fluxtv-details-popup.theme-live .fluxtv-about-vertical-bar { background: #ff3b30; }
#fluxtv-details-popup.theme-new .fluxtv-about-vertical-bar { background: #34c759; }

.fluxtv-info-description-text {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.75);
}

.fluxtv-info-description-text p {
    margin: 0 0 12px 0;
}

.fluxtv-info-description-text p:last-child {
    margin-bottom: 0;
}

/* Episodes Section & Horizontal Slider styling */
.fluxtv-episodes-section {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 30px;
    margin-top: 35px;
    width: 100%;
}

.fluxtv-episodes-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.fluxtv-episodes-title {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    margin: 0;
    letter-spacing: -0.5px;
}

.fluxtv-episodes-arrow-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.fluxtv-episodes-arrow-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
}

.fluxtv-episodes-arrow-btn:active {
    transform: scale(0.95);
}

.fluxtv-episodes-slider-container {
    position: relative;
    width: 100%;
}

.fluxtv-episodes-list-slider {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 10px;
    scroll-behavior: smooth;
}

.fluxtv-episodes-list-slider::-webkit-scrollbar {
    display: none;
}

/* Episode Item Card Styles */
.fluxtv-episode-item {
    display: flex;
    flex-direction: row;
    gap: 16px;
    min-width: 330px;
    max-width: 330px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 12px;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.fluxtv-episode-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

.fluxtv-ep-thumb-wrapper {
    position: relative;
    width: 120px;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
    background: rgba(0,0,0,0.2);
}

.fluxtv-ep-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.fluxtv-episode-item:hover .fluxtv-ep-thumb {
    transform: scale(1.04);
}

/* Episode Progress Bar at Bottom of Thumb */
.fluxtv-ep-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
    z-index: 5;
}

.fluxtv-ep-progress-fill {
    height: 100%;
    transition: width 0.3s ease;
}

#fluxtv-details-popup.theme-onair .fluxtv-ep-progress-fill { background: #007aff; }
#fluxtv-details-popup.theme-live .fluxtv-ep-progress-fill { background: #ff3b30; }
#fluxtv-details-popup.theme-new .fluxtv-ep-progress-fill { background: #34c759; }

.fluxtv-ep-play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.fluxtv-episode-item:hover .fluxtv-ep-play-overlay {
    opacity: 1;
}

.fluxtv-ep-play-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.fluxtv-episode-item:hover .fluxtv-ep-play-btn {
    transform: scale(1);
}

.fluxtv-ep-info-block {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0; /* allows text truncation */
    flex-grow: 1;
}

.fluxtv-ep-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 500;
}

.fluxtv-ep-title {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Responsive details popup stack for mobile */
@media (max-width: 768px) {
    .fluxtv-popup-container {
        height: 82vh;
        border-top-left-radius: 32px;
        border-top-right-radius: 32px;
    }
    
    .fluxtv-close-btn {
        left: 20px;
        top: 20px;
    }
    
    .fluxtv-badge-live {
        right: 20px;
        top: 20px;
    }

    .fluxtv-episode-item {
        flex-direction: column;
        min-width: 200px;
        max-width: 200px;
        padding: 10px;
    }

    .fluxtv-ep-thumb-wrapper {
        width: 100%;
    }

    .fluxtv-ep-info-block {
        margin-top: 4px;
    }
}

/* ==========================================================================
   VIDEO PLAYER MODAL STYLING
   ========================================================================== */
#apple-tv-player-root {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 2147483647 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

#apple-tv-player-root.active {
    opacity: 1 !important;
    pointer-events: auto !important;
}

.apple-player-backdrop {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(16, 26, 43, 0.4) 0%, #000 100%);
    z-index: 1;
}

.apple-video-frame {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

#apple-tv-video-element {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

/* Close Player Circular Button */
.apple-premium-btn {
    position: absolute;
    top: max(30px, env(safe-area-inset-top));
    right: max(30px, env(safe-area-inset-right));
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(40, 40, 40, 0.4);
    backdrop-filter: blur(25px) saturate(200%);
    -webkit-backdrop-filter: blur(25px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--flux-transition);
    padding: 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.apple-premium-btn:hover {
    background: rgba(60, 60, 60, 0.6);
    transform: scale(1.1) rotate(90deg);
    border-color: rgba(255, 255, 255, 0.3);
}

.apple-premium-btn:active {
    transform: scale(0.9);
}

.apple-player-loader {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    background: #000;
    transition: opacity 0.5s;
}

.apple-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255,255,255,0.1);
    border-top-color: var(--flux-blue);
    border-radius: 50%;
    animation: apple-spin 1s linear infinite;
}

/* ==========================================================================
   ANIMATIONS & SKELETONS
   ========================================================================== */
@keyframes apple-spin { to { transform: rotate(360deg); } }
@keyframes fluxtvPulse {
    0% { transform: scale(1); opacity: 1; box-shadow: 0 0 10px var(--flux-red-glow); }
    50% { transform: scale(1.2); opacity: 0.6; box-shadow: 0 0 20px var(--flux-red); }
    100% { transform: scale(1); opacity: 1; box-shadow: 0 0 10px var(--flux-red-glow); }
}
@keyframes fluxtvFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.skeleton-card {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.03) 25%,
        rgba(255, 255, 255, 0.08) 50%,
        rgba(255, 255, 255, 0.03) 75%
    ) !important;
    background-size: 200% 100% !important;
    animation: skeleton-shimmer 1.5s infinite linear !important;
    border-radius: var(--flux-border-radius);
    z-index: 5;
}

@keyframes skeleton-shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.skeleton-text {
    display: inline-block;
    height: 1.2em;
    width: 60%;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

/* ==========================================================================
   TABLET & MOBILE GENERAL LAYOUT FIXES
   ========================================================================== */


/* ==========================================================================
   SECONDARY SAIBA MAIS ACTION BUTTON
   ========================================================================== */
.fluxtv-btn-secondary {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
    padding: 12px 24px !important;
    border-radius: 100px !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    transition: var(--flux-transition) !important;
    text-transform: none !important;
    white-space: nowrap;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.fluxtv-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.18) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    transform: translateY(-2px);
}

.fluxtv-btn-secondary:active {
    transform: translateY(0);
}

.live-program-card-pc .fluxtv-btn-secondary {
    padding: 14px 28px;
    font-size: 14px;
}

.fluxtv-btn-secondary svg {
    flex-shrink: 0;
}

/* ==========================================================================
   NEWS CAROUSEL WIDGET (DYNAMIC FULL CARD COVER)
   ========================================================================== */
.news-carousel-wrapper {
    margin: 40px auto;
    width: 100%;
    overflow: hidden;
}

.news-carousel-tabs-container {
    position: relative;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 8px;
    width: 100%;
}

.news-carousel-tabs-track {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    width: 100%;
    scrollbar-width: none;
    position: relative;
    padding-bottom: 4px;
}

.news-carousel-tabs-track::-webkit-scrollbar {
    display: none;
}

.news-tab-button {
    background: none !important;
    border: none !important;
    color: rgba(255, 255, 255, 0.6) !important;
    padding: 10px 20px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    border-radius: 30px !important;
    position: relative;
    white-space: nowrap;
}

.news-tab-button:hover {
    color: #ffffff !important;
}

.news-tab-button.active {
    background: rgba(0, 122, 255, 0.12) !important;
    color: #ffffff !important;
}

.news-carousel-tabs-line {
    position: absolute;
    bottom: -2px;
    left: 0;
    height: 2px;
    background: #007aff;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 2px;
    pointer-events: none;
}

.news-carousel-container {
    position: relative;
    width: 100%;
}

.news-carousel-slides {
    margin: 0 -8px;
}

/* Slick Track Flex Rules for Equal Heights */
.news-carousel-slides .slick-track {
    display: flex !important;
}

.news-carousel-slides .slick-slide {
    height: auto !important;
    display: flex !important;
    justify-content: center;
}

.news-carousel-container .slick-list {
    overflow: hidden !important;
    padding: 10px 0 !important;
}

.carousel-item {
    padding: 10px 8px;
    width: 100%;
    box-sizing: border-box;
}

/* Card covering image */
.news-card {
    position: relative;
    width: 100%;
    height: 380px !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%) !important;
    backdrop-filter: blur(28px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(28px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    cursor: pointer;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35) !important;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.news-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(0, 122, 255, 0.3) !important;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5), 0 0 15px rgba(0, 122, 255, 0.2) !important;
}

.news-card-bg {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    z-index: 1;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.news-card:hover .news-card-bg {
    transform: scale(1.05);
}

.news-card-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(to top, rgba(5, 13, 27, 0.95) 0%, rgba(5, 13, 27, 0.4) 50%, rgba(5, 13, 27, 0) 100%) !important;
}

.news-card-content {
    position: relative;
    z-index: 3;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}

.news-card-title {
    color: #ffffff !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    margin: 0 !important;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-family: 'Inter', sans-serif !important;
}

.news-card-date {
    color: rgba(255, 255, 255, 0.5) !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    font-family: 'Inter', sans-serif !important;
}

/* News Header & Controls */
.news-carousel-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 25px;
    width: 100%;
    gap: 20px;
}

.news-carousel-tabs-container {
    margin-bottom: 0 !important;
    flex-grow: 1;
}

.news-carousel-nav {
    display: flex !important;
    gap: 8px !important;
    margin-top: 0 !important;
    padding-bottom: 8px; /* Align with tab border-bottom */
    flex-shrink: 0;
}

.news-carousel-prev,
.news-carousel-next {
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    backdrop-filter: blur(28px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(28px) saturate(180%) !important;
    padding: 0 !important;
}

.news-carousel-prev:hover,
.news-carousel-next:hover {
    background: #007aff !important;
    border-color: #007aff !important;
    box-shadow: 0 0 15px rgba(0, 122, 255, 0.4) !important;
    transform: translateY(-1px) !important;
}

.news-carousel-prev svg,
.news-carousel-next svg {
    width: 16px !important;
    height: 16px !important;
}

/* ==========================================================================
   NETFLIX PROGRAMS CAROUSEL WIDGET
   ========================================================================== */
.netflix-programs-wrapper {
    margin: 40px auto;
    width: 100%;
    color: #fff;
    overflow: hidden;
}

.netflix-slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    width: 100%;
}

.netflix-slider-title {
    font-size: 24px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0 !important;
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.5px;
    text-align: left;
}

.netflix-header-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.netflix-btn-view-all {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
    padding: 8px 18px !important;
    border-radius: 20px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    font-family: 'Inter', sans-serif !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.netflix-btn-view-all:hover {
    background: #007aff !important;
    border-color: #007aff !important;
    box-shadow: 0 0 15px rgba(0, 122, 255, 0.4) !important;
    transform: translateY(-1px) !important;
}

.netflix-carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden !important;
    padding: 20px 0 !important;
}

.netflix-carousel-container .slick-list {
    overflow: visible !important;
}

.netflix-carousel-slides {
    margin: 0 -8px;
}

.netflix-carousel-slides .slick-track {
    display: flex !important;
}

.netflix-carousel-slides .slick-slide {
    height: auto !important;
    display: flex !important;
}

.netflix-slide-item {
    padding: 10px 8px;
    width: 100%;
    box-sizing: border-box;
}

.netflix-program-card {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 992px) {
    .netflix-program-card:hover {
        transform: scale(1.06) translateY(-5px);
        border-color: rgba(0, 122, 255, 0.3);
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 15px rgba(0, 122, 255, 0.2);
    }
}

.netflix-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.netflix-program-card:hover .netflix-card-img {
    transform: scale(1.05);
}

.netflix-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(5, 13, 27, 0.95) 0%, rgba(5, 13, 27, 0.3) 60%, rgba(5, 13, 27, 0) 100%);
    z-index: 2;
}

.netflix-card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.netflix-card-category {
    font-size: 10px;
    font-weight: 800;
    color: var(--flux-blue);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.netflix-card-title {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.netflix-card-presenter {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin: 2px 0 0 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Nav arrows for Netflix */
.netflix-carousel-nav {
    display: flex !important;
    gap: 8px !important;
    margin-top: 0 !important;
}

.netflix-carousel-prev,
.netflix-carousel-next {
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    backdrop-filter: blur(28px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(28px) saturate(180%) !important;
    padding: 0 !important;
}

.netflix-carousel-prev:hover,
.netflix-carousel-next:hover {
    background: #007aff !important;
    border-color: #007aff !important;
    box-shadow: 0 0 15px rgba(0, 122, 255, 0.4) !important;
    transform: translateY(-1px) !important;
}

.netflix-carousel-prev svg,
.netflix-carousel-next svg {
    width: 16px !important;
    height: 16px !important;
}

/* ==========================================================
   ALL PROGRAMS POPUP (Ver Tudo Modal Grid)
   ========================================================== */
.fluxtv-all-programs-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.fluxtv-all-programs-popup.active {
    opacity: 1;
    pointer-events: auto;
}

.fluxtv-all-programs-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.fluxtv-all-programs-container {
    position: relative;
    z-index: 10;
    width: 85vw;
    max-width: 1240px;
    height: 85vh;
    max-height: 800px;
    background: rgba(6, 15, 33, 0.75) !important;
    backdrop-filter: blur(45px) saturate(200%) !important;
    -webkit-backdrop-filter: blur(45px) saturate(200%) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 20px;
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(40px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.fluxtv-all-programs-popup.active .fluxtv-all-programs-container {
    transform: translateY(0);
}

.fluxtv-all-programs-hdr {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.fluxtv-all-programs-hdr h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.5px;
}

.fluxtv-all-programs-close {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 0 !important;
}

.fluxtv-all-programs-close:hover {
    background: #ff3b30 !important;
    border-color: #ff3b30 !important;
    transform: scale(1.05);
}

.fluxtv-all-programs-close svg {
    width: 18px;
    height: 18px;
}

.fluxtv-all-programs-grid {
    flex-grow: 1;
    overflow-y: auto;
    padding: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.fluxtv-grid-program-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.fluxtv-grid-program-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(0, 122, 255, 0.3);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.fluxtv-grid-program-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.fluxtv-grid-program-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.fluxtv-grid-program-card:hover .fluxtv-grid-program-img-wrapper img {
    transform: scale(1.08);
}

.fluxtv-grid-program-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fluxtv-grid-program-card:hover .fluxtv-grid-program-overlay {
    opacity: 1;
}

.fluxtv-play-btn-circle-small {
    width: 32px;
    height: 32px;
    background: #007aff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.4);
}

.fluxtv-grid-program-card:hover .fluxtv-play-btn-circle-small {
    transform: scale(1);
}

.fluxtv-grid-program-info {
    padding: 12px 15px;
}

.fluxtv-grid-program-category {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: #007aff;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 4px;
    font-family: 'Inter', sans-serif;
}

.fluxtv-grid-program-title {
    margin: 0 0 4px 0;
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fluxtv-grid-program-presenter {
    margin: 0;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fluxtv-all-programs-grid::-webkit-scrollbar {
    width: 6px;
}

.fluxtv-all-programs-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
}

.fluxtv-all-programs-grid::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.fluxtv-all-programs-grid::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
    .fluxtv-all-programs-container {
        width: 95vw;
        height: 90vh;
    }
    .fluxtv-all-programs-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        padding: 15px;
        gap: 12px;
    }
    .fluxtv-grid-program-info {
        padding: 8px 10px;
    }
    .fluxtv-grid-program-title {
        font-size: 12px;
    }
    .fluxtv-grid-program-presenter {
        font-size: 10px;
    }
}

/* ==========================================================================
   DYNAMIC STATUS THEMES (LIVE & NEW)
   ========================================================================== */

@keyframes pulse-live {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.6);
    }
    70% {
        box-shadow: 0 0 0 12px rgba(255, 59, 48, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 59, 48, 0);
    }
}

@keyframes pulse-new {
    0% {
        box-shadow: 0 0 0 0 rgba(52, 199, 89, 0.6);
    }
    70% {
        box-shadow: 0 0 0 12px rgba(52, 199, 89, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(52, 199, 89, 0);
    }
}

/* Red / Live theme modifier for hero banners */
.live-program-card-pc.theme-live,
.live-program-card.theme-live {
    border-color: rgba(255, 59, 48, 0.3) !important;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.7), 0 0 30px rgba(255, 59, 48, 0.15) !important;
}


/* Green / New theme modifier for hero banners */
.live-program-card-pc.theme-new,
.live-program-card.theme-new {
    border-color: rgba(52, 199, 89, 0.3) !important;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.7), 0 0 30px rgba(52, 199, 89, 0.15) !important;
}


/* Play button pulsing overrides */
.btn-pulse-live {
    background: #ff3b30 !important;
    border-color: #ff3b30 !important;
    color: #ffffff !important;
    animation: pulse-live 1.8s infinite !important;
    box-shadow: 0 4px 15px rgba(255, 59, 48, 0.4) !important;
}
.btn-pulse-live:hover {
    background: #e02d23 !important;
    border-color: #e02d23 !important;
    box-shadow: 0 6px 20px rgba(255, 59, 48, 0.6) !important;
}

.btn-pulse-new {
    background: #34c759 !important;
    border-color: #34c759 !important;
    color: #ffffff !important;
    animation: pulse-new 1.8s infinite !important;
    box-shadow: 0 4px 15px rgba(52, 199, 89, 0.4) !important;
}
.btn-pulse-new:hover {
    background: #2cb04e !important;
    border-color: #2cb04e !important;
    box-shadow: 0 6px 20px rgba(52, 199, 89, 0.6) !important;
}

/* ==========================================================================
   CINEMATIC PLAYER THEMATIC OUTLINES
   ========================================================================== */
#apple-tv-player-root.theme-live {
    border: none !important;
    box-shadow: inset 0 0 60px rgba(255, 59, 48, 0.4) !important;
}
#apple-tv-player-root.theme-live .apple-spinner {
    border-top-color: #ff3b30 !important;
}
#apple-tv-player-root.theme-live .apple-premium-btn {
    border-color: rgba(255, 59, 48, 0.5) !important;
    color: #ff3b30 !important;
}

#apple-tv-player-root.theme-new {
    border: none !important;
    box-shadow: inset 0 0 60px rgba(52, 199, 89, 0.4) !important;
}
#apple-tv-player-root.theme-new .apple-spinner {
    border-top-color: #34c759 !important;
}
#apple-tv-player-root.theme-new .apple-premium-btn {
    border-color: rgba(52, 199, 89, 0.5) !important;
    color: #34c759 !important;
}

/* ==========================================================================
   POPUP LAYOUT ENHANCEMENTS
   ========================================================================== */
.fluxtv-popup-handle {
    width: 45px;
    height: 5px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    margin: 12px auto;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 12;
}

.fluxtv-popup-container {
    background: rgba(10, 25, 47, 0.92) !important;
    backdrop-filter: blur(40px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(40px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 -15px 50px rgba(0, 0, 0, 0.6) !important;
}

/* ==========================================================================
   SHARING TOAST NOTIFICATION
   ========================================================================== */
.fluxtv-toast {
    position: fixed;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    padding: 12px 28px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    z-index: 2147483647;
    display: none;
    letter-spacing: 0.5px;
}

/* ==========================================================================
   WIDGET WIDTH FORCE STRETCH (PC)
   ========================================================================== */
.elementor-widget-live_program_card_pc .elementor-widget-container {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
}

/* ==========================================================================
   NETFLIX WIDGET DETAILS POLISHING
   ========================================================================== */
.netflix-programs-wrapper {
    margin-bottom: 30px;
}

.netflix-slider-title {
    font-size: 26px !important;
    font-weight: 800 !important;
    color: #fff !important;
    letter-spacing: -0.5px !important;
    margin-bottom: 20px !important;
    position: relative;
    padding-left: 15px;
}

.netflix-slider-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 4px;
    background: var(--flux-blue);
    border-radius: 4px;
}

/* ==========================================================================
   FLUXTV ALL EPISODES POPUP (GRID OVERLAY) STYLING
   ========================================================================== */
#fluxtv-all-episodes-popup {
    position: fixed;
    inset: 0;
    z-index: 2147483645; /* Above details popup */
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}

#fluxtv-all-episodes-popup.active {
    pointer-events: auto;
}

.fluxtv-all-eps-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

#fluxtv-all-episodes-popup.active .fluxtv-all-eps-backdrop {
    opacity: 1;
}

.fluxtv-all-eps-container {
    position: relative;
    width: 85vw;
    max-width: 1100px;
    height: 80vh;
    background: rgba(6, 15, 33, 0.55) !important;
    backdrop-filter: blur(45px) saturate(200%) !important;
    -webkit-backdrop-filter: blur(45px) saturate(200%) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 24px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6);
    z-index: 2;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: scale(0.9) translateY(30px);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

#fluxtv-all-episodes-popup.active .fluxtv-all-eps-container {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.fluxtv-all-eps-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 35px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.fluxtv-all-eps-title {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    margin: 0;
    letter-spacing: -0.5px;
}

.fluxtv-all-eps-close-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.fluxtv-all-eps-close-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: scale(1.05);
}

.fluxtv-all-eps-content {
    flex-grow: 1;
    overflow-y: auto;
    padding: 35px;
}

.fluxtv-all-episodes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(265px, 1fr));
    gap: 24px;
}

@media (max-width: 768px) {
    .fluxtv-all-eps-container {
        width: 95vw;
        height: 85vh;
        border-radius: 20px;
    }
    .fluxtv-all-eps-header {
        padding: 20px 24px;
    }
    .fluxtv-all-eps-content {
        padding: 24px;
    }
    .fluxtv-all-episodes-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .fluxtv-all-episodes-grid .fluxtv-episode-item {
        flex-direction: row !important;
        min-width: 100% !important;
        max-width: 100% !important;
    }
    .fluxtv-all-episodes-grid .fluxtv-ep-thumb-wrapper {
        width: 100px !important;
    }
}

/* ==========================================================================
   NETFLIX STYLE DETAILS POPUP OVERRIDES
   ========================================================================== */

/* Remove top padding so the hero banner fits perfectly to the borders */
.fluxtv-popup-content-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 0 0 40px 0 !important;
    z-index: 2;
    position: relative;
}

@media (max-width: 991px) {
    .fluxtv-popup-content-scroll {
        padding: 0 0 30px 0 !important;
    }
}

/* Hero Section */
.fluxtv-popup-hero {
    position: relative;
    width: 100%;
    height: 480px; /* High PC height like Netflix */
    overflow: hidden;
    margin-bottom: 30px;
    border-top-left-radius: 32px;
    border-top-right-radius: 32px;
}

@media (max-width: 991px) {
    .fluxtv-popup-hero {
        height: 340px; /* Mobile height */
        margin-bottom: 20px;
        border-top-left-radius: inherit;
        border-top-right-radius: inherit;
    }
}

.fluxtv-popup-hero-img-wrapper {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.fluxtv-popup-hero-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.fluxtv-popup-hero-fade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, 
        rgba(6, 15, 33, 1) 0%, 
        rgba(6, 15, 33, 0.85) 12%, 
        rgba(6, 15, 33, 0.4) 45%, 
        rgba(6, 15, 33, 0) 100%) !important;
    z-index: 2;
}

.fluxtv-popup-hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 50px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    pointer-events: none; /* Let clicks pass through if empty */
}

.fluxtv-popup-hero-content * {
    pointer-events: auto; /* Enable pointer events for contents */
}

@media (max-width: 991px) {
    .fluxtv-popup-hero-content {
        padding: 20px 24px;
    }
}

/* Body Content Area */
.fluxtv-popup-body-content {
    padding: 0 50px;
    position: relative;
    z-index: 3;
}

@media (max-width: 991px) {
    .fluxtv-popup-body-content {
        padding: 0 24px;
    }
}

/* Info card below the banner */
.fluxtv-popup-info-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 40px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

@media (max-width: 991px) {
    .fluxtv-popup-info-card {
        padding: 18px;
        margin-bottom: 30px;
    }
}

/* Adjust title to be clean and large */
.fluxtv-title {
    font-size: 38px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 20px 0;
    line-height: 1.15;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
    .fluxtv-title {
        font-size: 28px;
        margin-bottom: 15px;
    }
}

/* ==========================================================================
   PC OVERLAY HERO BANNER & FLOATING NEXT WIDGET (V36.00)
   ========================================================================== */
@media (min-width: 992px) {
    .live-program-card-pc-container {
        position: relative !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        display: block !important;
    }

    .live-program-card-pc {
        width: 100% !important;
        height: 480px !important; /* Increased from 420px */
        margin-bottom: 0 !important;
    }

    /* Vertical alignment for PC details at the bottom of the card */
    .live-program-card-pc .fluxtv-hero-content {
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-end !important; /* Align details to the bottom border */
        padding: 40px 50px 25px 25px !important; /* Reduces bottom padding to 25px, aligns left to 25px */
        width: 55% !important;
        height: 100% !important;
        box-sizing: border-box !important;
    }

    /* Larger program title */
    .live-program-card-pc .fluxtv-hero-title {
        font-size: clamp(30px, 5vw, 46px) !important;
        margin-bottom: 12px !important;
    }

    /* Larger status badge positioned closer to borders */
    .live-program-card-pc .fluxtv-hero-badge-row {
        top: 15px !important;
        left: 15px !important;
    }

    .live-program-card-pc .fluxtv-live-badge-glass {
        font-size: 13px !important;
        padding: 7px 16px !important;
    }

    /* Bigger action buttons on PC */
    .live-program-card-pc .fluxtv-btn-primary {
        padding: 16px 36px !important;
        font-size: 15px !important;
    }
    .live-program-card-pc .fluxtv-btn-secondary {
        padding: 16px 36px !important;
        font-size: 15px !important;
    }

    /* Floating Overlay PC Widget with 45px blur */
    .live-program-card-pc-container .fluxtv-next-section {
        position: absolute !important;
        bottom: 25px !important;
        right: 25px !important;
        width: auto !important; /* auto width for single-line pill */
        max-width: 380px !important;
        z-index: 15 !important;
        margin-top: 0 !important;
    }

    .live-program-card-pc-container .fluxtv-next-card {
        display: flex !important;
        flex-direction: row !important; /* Everything on a single line */
        align-items: center !important;
        justify-content: center !important;
        background: rgba(10, 23, 46, 0.45) !important;
        backdrop-filter: blur(45px) saturate(200%) !important; /* Increased blur */
        -webkit-backdrop-filter: blur(45px) saturate(200%) !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
        border-radius: 100px !important; /* Perfect Pill */
        padding: 16px 36px !important; /* Identical padding to buttons */
        height: 52px !important; /* Same thickness as buttons */
        box-sizing: border-box !important;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5) !important;
        gap: 6px !important;
    }

    .live-program-card-pc-container .fluxtv-section-title {
        font-size: 11px !important;
        font-weight: 800 !important;
        color: rgba(255, 255, 255, 0.5) !important;
        text-transform: uppercase !important;
        letter-spacing: 1.5px !important;
        margin: 0 !important;
        text-shadow: none !important;
        display: inline-block !important;
    }

    .live-program-card-pc-container .fluxtv-next-left {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 6px !important;
        margin: 0 !important;
        width: auto !important;
    }

    .live-program-card-pc-container .fluxtv-next-thumb {
        display: none !important; /* No image in the next widget */
    }

    .live-program-card-pc-container .fluxtv-next-time {
        display: none !important; /* No time badge in pill */
    }

    .live-program-card-pc-container .fluxtv-next-title-wrapper {
        margin: 0 !important;
        min-width: 0 !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 4px !important;
    }

    .live-program-card-pc-container .fluxtv-next-title-wrapper::before {
        content: "•" !important;
        color: rgba(255, 255, 255, 0.4) !important;
        font-size: 11px !important;
        margin-right: 4px !important;
    }

    .live-program-card-pc-container .fluxtv-next-title {
        font-size: 12px !important;
        font-weight: 600 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        color: #fff !important;
        margin: 0 !important;
    }

    .live-program-card-pc-container .fluxtv-next-presenter {
        display: none !important; /* Hide presenter for clean layout */
    }

    .live-program-card-pc-container .fluxtv-next-right {
        display: none !important;
    }
}

/* ==========================================================================
   MOBILE HERO CARD & NESTED DISCREET NEXT WIDGET (V35.00)
   ========================================================================== */
@media (max-width: 991px) {
    /* Mobile layout base adjustments */
    .live-program-card {
        position: relative;
        width: 100%;
        max-width: 480px !important; /* Increased from 420px */
        height: 450px !important; /* Stretched taller height (vertical rectangle) */
        aspect-ratio: auto !important;
        margin: 0 auto;
    }

    /* Adjust content area spacing and padding to bottom of card */
    .live-program-card .fluxtv-hero-content {
        padding: 20px 15px 20px 15px !important;
        width: 100% !important; /* Spans full card for correct positioning */
        justify-content: flex-end !important; /* Align elements to bottom border */
        height: 100% !important;
        box-sizing: border-box !important;
        display: flex !important;
        flex-direction: column !important;
    }

    /* Center text elements vertically on the left side */
    .live-program-card .fluxtv-hero-title {
        margin-top: auto !important; /* Push block down from top */
    }
    .live-program-card .fluxtv-progress-container {
        margin-bottom: auto !important; /* Push actions down, centering block */
        height: 6px !important; /* Thicker progress bar */
        border-radius: 10px !important;
    }

    /* Keep text elements on the left side to avoid overlapping background image */
    .live-program-card .fluxtv-hero-title,
    .live-program-card .fluxtv-hero-presenter,
    .live-program-card .fluxtv-hero-time-range {
        max-width: 60% !important;
    }

    /* Mobile Status Badge position and size adjustments */
    .live-program-card .fluxtv-hero-badge-row {
        top: 15px !important;
        left: 15px !important;
    }

    .live-program-card .fluxtv-live-badge-glass {
        padding: 6px 14px !important;
        font-size: 12px !important;
    }

    /* Mobile Action Buttons row aligned to bottom borders (Assistir on left, Saiba Mais on right) */
    .live-program-card .fluxtv-hero-actions {
        display: flex !important;
        justify-content: space-between !important; /* Assistir on left, Saiba Mais on right */
        align-items: center !important;
        width: 100% !important;
        margin-top: 15px !important;
        gap: 10px !important;
    }

    .live-program-card .fluxtv-hero-actions .fluxtv-btn-primary {
        padding: 10px 20px !important;
        font-size: 12px !important;
        flex-grow: 1 !important; /* Wider button stretching towards info button */
        justify-content: center !important;
    }

    .live-program-card .fluxtv-hero-actions .fluxtv-btn-secondary {
        padding: 10px 20px !important;
        font-size: 12px !important;
        flex-shrink: 0 !important;
        margin: 0 !important;
    }

    /* Next program section at absolute top-right aligned with status badge */
    .live-program-card .fluxtv-next-section {
        position: absolute !important;
        top: 15px !important;
        right: 15px !important;
        z-index: 10 !important;
        width: auto !important;
        margin: 0 !important;
        text-align: right !important;
        display: block !important;
    }

    .live-program-card .fluxtv-section-title {
        font-size: 9px !important;
        font-weight: 800 !important;
        color: rgba(255, 255, 255, 0.4) !important;
        margin: 0 0 3px 0 !important;
        letter-spacing: 1px !important;
        text-transform: uppercase !important;
        text-align: right !important;
        display: block !important;
    }

    .live-program-card .fluxtv-next-card {
        background: transparent !important;
        border: none !important;
        padding: 0 !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        cursor: default !important;
        pointer-events: none !important;
        gap: 0 !important;
    }

    .live-program-card .fluxtv-next-left {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 4px !important;
        width: auto !important;
    }

    .live-program-card .fluxtv-next-thumb {
        display: none !important; /* No image */
    }

    .live-program-card .fluxtv-next-time {
        order: 1 !important;
        font-size: 11px !important;
        font-weight: 700 !important;
        color: #007aff !important; /* Blue theme color */
        background: none !important;
        border: none !important;
        padding: 0 !important;
        margin: 0 !important;
        flex-shrink: 0 !important;
    }

    .live-program-card .fluxtv-next-title-wrapper {
        order: 2 !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 4px !important;
        margin: 0 !important;
        min-width: 0 !important;
    }

    .live-program-card .fluxtv-next-title-wrapper::before {
        content: "•" !important;
        color: rgba(255, 255, 255, 0.4) !important;
        font-size: 11px !important;
    }

    .live-program-card .fluxtv-next-title {
        font-size: 11px !important;
        font-weight: 600 !important;
        color: rgba(255, 255, 255, 0.8) !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        margin: 0 !important;
        max-width: 120px !important;
    }

    .live-program-card .fluxtv-next-presenter {
        display: none !important; /* Hide presenter in discrete view */
    }

    .live-program-card .fluxtv-next-right {
        display: none !important; /* Hide chevron */
    }
}

/* Global status tag styling: hide 'Agora' globally (V36.00) */
.fluxtv-hero-status-tag {
    display: none !important;
}

@media (max-width: 480px) {
    .live-program-card {
        height: 450px !important; /* Keep stretched vertical height */
        aspect-ratio: auto !important;
    }
    .fluxtv-hero-title {
        font-size: 20px !important;
    }
    .fluxtv-hero-time-range {
        font-size: 13px !important;
    }
    .fluxtv-hero-presenter {
        font-size: 12px !important;
    }
    .fluxtv-hero-actions {
        gap: 8px !important;
        margin-top: 10px !important;
    }
    .fluxtv-hero-actions button {
        padding: 8px 12px !important;
        font-size: 11px !important;
    }
}

/* ==========================================================================
   FLUXTV COBERTURA NACIONAL DASHBOARD (V45.00)
   ========================================================================== */
.fluxtv-coverage-dashboard {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%;
    max-width: 100%;
    margin: 40px auto;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.fluxtv-coverage-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* State Search Bar */
.fluxtv-state-search-container {
    margin-bottom: 5px;
    width: 100%;
    max-width: 100%; /* Changed from 420px to span full width and align perfectly */
}

.fluxtv-state-search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.fluxtv-state-search-input {
    width: 100%;
    background: rgba(6, 15, 33, 0.55) !important; /* Same background as cards */
    border: 1px solid rgba(255, 255, 255, 0.12) !important; /* Same border as cards */
    backdrop-filter: blur(45px) saturate(200%);
    -webkit-backdrop-filter: blur(45px) saturate(200%);
    border-radius: 14px !important;
    padding: 12px 16px 12px 42px !important;
    color: #fff !important;
    font-size: 13px !important;
    box-sizing: border-box !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.fluxtv-state-search-input:focus {
    border-color: rgba(0, 122, 255, 0.4) !important;
    background: rgba(255, 255, 255, 0.04) !important;
    box-shadow: 0 0 20px rgba(0, 122, 255, 0.12) !important;
    outline: none !important;
}

.fluxtv-state-search-wrapper .fluxtv-search-icon {
    position: absolute;
    left: 15px;
    color: rgba(255, 255, 255, 0.25);
    pointer-events: none;
    transition: color 0.3s;
    z-index: 1;
}

.fluxtv-state-search-input:focus ~ .fluxtv-search-icon {
    color: #007aff;
}

.fluxtv-coverage-header {
    margin-bottom: 5px;
}

.fluxtv-coverage-title {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 8px 0;
    letter-spacing: -0.5px;
}

.fluxtv-coverage-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.45);
    margin: 0;
}

/* Metrics Row */
.fluxtv-coverage-metrics-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.fluxtv-coverage-metric-card {
    background: rgba(6, 15, 33, 0.55) !important; /* Match sidebar background */
    backdrop-filter: blur(45px) saturate(200%);
    -webkit-backdrop-filter: blur(45px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.12) !important; /* Match sidebar border */
    border-radius: 20px;
    padding: 16px 20px;
    display: flex;
    flex-direction: row; /* Icon on the left side */
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    min-height: 85px; /* Compact aligned height */
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
}

.fluxtv-coverage-metric-card:hover {
    background: rgba(6, 15, 33, 0.75) !important;
    border-color: rgba(0, 122, 255, 0.45) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.fluxtv-metric-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(0, 122, 255, 0.1);
    border: 1px solid rgba(0, 122, 255, 0.2);
    color: #007aff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-bottom: 2px;
}

.fluxtv-metric-icon svg {
    width: 22px;
    height: 22px;
}

.fluxtv-metric-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Align text info to the left */
    gap: 2px;
}

.fluxtv-metric-value {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.fluxtv-metric-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.45);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Grid of State Cards */
.fluxtv-coverage-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.fluxtv-coverage-card {
    background: rgba(6, 15, 33, 0.55) !important; /* Match sidebar background */
    backdrop-filter: blur(45px) saturate(200%);
    -webkit-backdrop-filter: blur(45px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.12) !important; /* Match sidebar border */
    border-radius: 20px;
    padding: 16px 20px;
    display: flex;
    flex-direction: row-reverse; /* Horizontal row-reverse globally! */
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 105px; /* Compact uniform height */
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
}

.fluxtv-coverage-card:hover {
    background: rgba(6, 15, 33, 0.75) !important;
    border-color: rgba(0, 122, 255, 0.45) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2); /* Softened/reduced shadow */
}

.fluxtv-coverage-card.active {
    background: rgba(0, 122, 255, 0.12) !important;
    border-color: #007aff !important;
    box-shadow: 0 0 20px rgba(0, 122, 255, 0.2), inset 0 0 10px rgba(0, 122, 255, 0.1) !important;
}

.fluxtv-card-svg-wrapper {
    height: 45px;
    width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.25);
    transition: color 0.35s;
}

.fluxtv-coverage-card:hover .fluxtv-card-svg-wrapper {
    color: rgba(0, 122, 255, 0.7);
}

.fluxtv-coverage-card.active .fluxtv-card-svg-wrapper {
    color: #007aff;
}

.fluxtv-card-state-svg {
    height: 100%;
    width: 100%;
    display: block;
}

.fluxtv-card-state-svg path {
    stroke: currentColor;
    fill: rgba(255, 255, 255, 0.02);
    transition: fill 0.35s, stroke 0.35s;
}

.fluxtv-coverage-card.active .fluxtv-card-state-svg path {
    fill: rgba(0, 122, 255, 0.15);
}

.fluxtv-card-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    flex: 1;
}

.fluxtv-card-text-group {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.fluxtv-card-state-name {
    font-size: 15px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.2px;
    line-height: 1.2;
}

.fluxtv-card-cities-count {
    font-size: 12px;
    color: #007aff;
    font-weight: 700;
}

.fluxtv-card-operator-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 4px 10px;
    border-radius: 100px;
    width: fit-content;
}

.fluxtv-operator-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
}

.fluxtv-operator-name {
    font-size: 10px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.65);
    letter-spacing: 0.2px;
}

/* Empty/Fallback State */
.fluxtv-coverage-empty-state {
    grid-column: 1 / -1;
    padding: 60px 20px;
    text-align: center;
    background: rgba(255, 255, 255, 0.01);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 14px;
}

/* RIGHT COLUMN: Sidebar details */
.fluxtv-coverage-sidebar-column {
    width: 100%;
}

.fluxtv-coverage-sidebar {
    position: relative;
    background: rgba(6, 15, 33, 0.55);
    backdrop-filter: blur(45px) saturate(200%);
    -webkit-backdrop-filter: blur(45px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 28px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25); /* Softened/reduced shadow */
    padding: 30px;
    box-sizing: border-box;
    overflow: hidden;
}

.fluxtv-sidebar-radial-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(0, 122, 255, 0.08) 0%, transparent 60%);
    pointer-events: none;
    z-index: 1;
}

.fluxtv-sidebar-container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.fluxtv-sidebar-handle {
    display: none; /* Mobile only */
}

.fluxtv-coverage-sidebar .fluxtv-sidebar-close {
    display: none !important; /* Hide on desktop */
}

.fluxtv-sidebar-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 18px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.fluxtv-sidebar-state-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.fluxtv-sidebar-uf-badge {
    background: #007aff;
    color: #fff;
    padding: 5px 10px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 122, 255, 0.3);
}

.fluxtv-sidebar-state-svg-wrapper .fluxtv-sidebar-uf-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 5;
}

.fluxtv-sidebar-state-name {
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    margin: 0;
    letter-spacing: -0.5px;
}

.fluxtv-sidebar-subtitle {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.35);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.fluxtv-sidebar-body {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Big Glowing State SVG */
.fluxtv-sidebar-state-svg-wrapper {
    height: 160px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    padding: 20px;
    overflow: hidden;
}

.fluxtv-sidebar-state-svg {
    height: 100%;
    max-width: 100%;
    display: block;
    filter: drop-shadow(0 0 15px rgba(0, 122, 255, 0.35));
}

.fluxtv-sidebar-state-svg path {
    stroke: #007aff;
    fill: rgba(0, 122, 255, 0.05);
}

.fluxtv-sidebar-state-overlay-text {
    position: absolute;
    font-size: 32px;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.05);
    pointer-events: none;
    user-select: none;
    letter-spacing: -0.5px;
}

/* Sidebar Local Metrics */
.fluxtv-sidebar-local-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.fluxtv-local-metric-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 12px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
}

.fluxtv-local-metric-label {
    font-size: 9px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.35);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.fluxtv-local-metric-value {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    word-break: break-word;
}

/* Cities List Section */
.fluxtv-sidebar-cities-section {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.fluxtv-sidebar-cities-title {
    font-size: 14px;
    font-weight: 800;
    color: #fff;
    margin: 0;
}

/* Cities Search Input */
.fluxtv-sidebar-search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.fluxtv-sidebar-search-input {
    width: 100%;
    background: rgba(6, 15, 33, 0.55) !important; /* Same background as cards */
    border: 1px solid rgba(255, 255, 255, 0.12) !important; /* Same border as cards */
    backdrop-filter: blur(45px) saturate(200%);
    -webkit-backdrop-filter: blur(45px) saturate(200%);
    border-radius: 12px !important;
    padding: 10px 16px 10px 38px !important;
    color: #fff !important;
    font-size: 13px !important;
    box-sizing: border-box !important;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.fluxtv-sidebar-search-input:focus {
    border-color: rgba(0, 122, 255, 0.4) !important;
    box-shadow: 0 0 15px rgba(0, 122, 255, 0.15) !important;
    outline: none !important;
}

.fluxtv-search-icon {
    position: absolute;
    left: 14px;
    color: rgba(255, 255, 255, 0.3);
    pointer-events: none;
    transition: color 0.3s;
}

.fluxtv-sidebar-search-input:focus ~ .fluxtv-search-icon {
    color: #007aff;
}

/* Cities List Items */
.fluxtv-sidebar-cities-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 280px;
    overflow-y: auto;
    padding-right: 6px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.12) transparent;
}

.fluxtv-sidebar-cities-list::-webkit-scrollbar {
    width: 4px;
}

.fluxtv-sidebar-cities-list::-webkit-scrollbar-track {
    background: transparent;
}

.fluxtv-sidebar-cities-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 10px;
}

.fluxtv-sidebar-city-item {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    transition: background-color 0.25s;
}

.fluxtv-sidebar-city-item:hover {
    background: rgba(255, 255, 255, 0.025);
}

.fluxtv-city-name-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.fluxtv-city-pin-icon {
    color: rgba(255, 255, 255, 0.25);
    flex-shrink: 0;
}

.fluxtv-city-name {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
}

.fluxtv-city-channel {
    font-size: 11px;
    font-weight: 700;
    color: #007aff;
    background: rgba(0, 122, 255, 0.1);
    padding: 3px 8px;
    border-radius: 6px;
    border: 1px solid rgba(0, 122, 255, 0.15);
    white-space: nowrap;
}

.fluxtv-no-cities-found {
    padding: 30px 10px;
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.35);
}

/* Expand Button */
.fluxtv-sidebar-expand-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(0, 122, 255, 0.08);
    border: 1px solid rgba(0, 122, 255, 0.15);
    color: #007aff;
    padding: 12px;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    width: 100%;
}

.fluxtv-sidebar-expand-btn:hover {
    background: rgba(0, 122, 255, 0.15);
    transform: translateY(-1px);
}

.fluxtv-sidebar-expand-btn svg {
    transition: transform 0.3s;
}

.fluxtv-sidebar-expand-btn.expanded svg {
    transform: rotate(180deg);
}

/* Desktop Sidebar Column & Sticky details */
@media (min-width: 992px) {
    .fluxtv-coverage-dashboard {
        display: grid;
        grid-template-columns: 1fr 380px;
        align-items: stretch; /* Stretch columns so sticky positioning can slide down the page */
    }
    
    .fluxtv-coverage-sidebar {
        position: sticky;
        top: 120px;
        height: auto;
    }
}

/* Responsive Scaling: Grid card columns */
@media (max-width: 1200px) {
    .fluxtv-coverage-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 991px) {
    .fluxtv-coverage-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .fluxtv-coverage-card {
        padding: 14px 16px;
        min-height: auto;
    }

    /* Transform Sidebar to Bottom-up Drawer Popup on Mobile */
    .fluxtv-coverage-sidebar {
        position: fixed;
        inset: 0;
        z-index: 2147483630;
        display: flex;
        justify-content: center;
        align-items: flex-end;
        pointer-events: none;
        opacity: 0;
        visibility: hidden;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        padding: 0 !important;
        transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.5s;
    }

    .fluxtv-coverage-sidebar.active {
        pointer-events: auto;
        opacity: 1;
        visibility: visible;
    }

    .fluxtv-sidebar-backdrop {
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.45);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        opacity: 0;
        transition: opacity 0.5s ease;
        z-index: 1;
    }

    .fluxtv-coverage-sidebar.active .fluxtv-sidebar-backdrop {
        opacity: 1;
    }

    .fluxtv-sidebar-container {
        position: relative;
        width: 100%;
        max-width: 100%;
        height: 88vh;
        background: rgba(6, 15, 33, 0.55) !important;
        backdrop-filter: blur(45px) saturate(200%) !important;
        -webkit-backdrop-filter: blur(45px) saturate(200%) !important;
        border-top-left-radius: 32px;
        border-top-right-radius: 32px;
        border: 1px solid rgba(255, 255, 255, 0.12) !important;
        box-shadow: 0 -15px 50px rgba(0, 0, 0, 0.6) !important;
        z-index: 2;
        overflow-y: auto;
        overflow-x: hidden;
        display: flex;
        flex-direction: column;
        transform: translateY(100%);
        opacity: 0;
        transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
        padding: 20px 16px;
        box-sizing: border-box;
    }

    .fluxtv-coverage-sidebar.active .fluxtv-sidebar-container {
        transform: translateY(0);
        opacity: 1;
    }

    .fluxtv-sidebar-handle {
        display: block;
        width: 45px;
        height: 5px;
        background: rgba(255, 255, 255, 0.2);
        border-radius: 10px;
        margin: 0 auto 10px auto;
        flex-shrink: 0;
    }

    .fluxtv-coverage-sidebar .fluxtv-sidebar-close {
        position: absolute;
        top: max(16px, env(safe-area-inset-top));
        left: 16px;
        width: 46px;
        height: 46px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.08);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        border: 1px solid rgba(255, 255, 255, 0.08);
        color: #fff;
        cursor: pointer;
        z-index: 10;
        display: flex !important;
        align-items: center;
        justify-content: center;
        transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    }

    .fluxtv-coverage-sidebar .fluxtv-sidebar-close:hover {
        background: rgba(255, 255, 255, 0.15);
        transform: scale(1.08);
    }

    .fluxtv-sidebar-header {
        display: none !important; /* Hide state name header on mobile */
    }

    .fluxtv-sidebar-body {
        padding-top: 50px; /* Space for the absolute close button */
    }

    .fluxtv-sidebar-state-svg-wrapper {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        height: 95px;
        padding: 8px 24px;
        box-sizing: border-box;
    }

    .fluxtv-sidebar-state-svg-wrapper .fluxtv-sidebar-uf-badge {
        position: static; /* Reset absolute positioning */
        font-size: 16px;
        padding: 6px 14px;
        margin: 0;
        z-index: auto;
    }

    .fluxtv-sidebar-state-svg {
        height: 85px;
        max-height: 100%;
        width: auto;
        transform: scale(1.22);
        transform-origin: right center;
    }

    .fluxtv-sidebar-state-overlay-text {
        display: none !important;
    }

    .fluxtv-sidebar-cities-list {
        max-height: 45vh !important; /* Increase height dynamically on mobile to prevent the cut-off feeling */
    }
}

@media (max-width: 768px) {
    .fluxtv-coverage-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .fluxtv-coverage-metrics-row {
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* 2 columns for side-by-side squares */
        gap: 10px;
    }

    /* General responsive overrides for metrics */
    .fluxtv-coverage-metric-card {
        border-radius: 16px;
        box-sizing: border-box;
    }

    .fluxtv-metric-icon {
        border-radius: 10px;
    }

    /* States & Cities: Aligned Squares, Icon Above */
    .fluxtv-coverage-metrics-row .fluxtv-metric-states,
    .fluxtv-coverage-metrics-row .fluxtv-metric-cities {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        min-height: 115px;
        padding: 14px 10px;
        gap: 8px;
    }

    .fluxtv-coverage-metrics-row .fluxtv-metric-states .fluxtv-metric-info,
    .fluxtv-coverage-metrics-row .fluxtv-metric-cities .fluxtv-metric-info {
        align-items: center;
        gap: 2px;
    }

    .fluxtv-coverage-metrics-row .fluxtv-metric-states .fluxtv-metric-value,
    .fluxtv-coverage-metrics-row .fluxtv-metric-cities .fluxtv-metric-value {
        font-size: 16px;
        letter-spacing: -0.2px;
    }

    .fluxtv-coverage-metrics-row .fluxtv-metric-states .fluxtv-metric-label,
    .fluxtv-coverage-metrics-row .fluxtv-metric-cities .fluxtv-metric-label {
        font-size: 9px;
        letter-spacing: 0px;
    }

    .fluxtv-coverage-metrics-row .fluxtv-metric-states .fluxtv-metric-icon,
    .fluxtv-coverage-metrics-row .fluxtv-metric-cities .fluxtv-metric-icon {
        width: 36px;
        height: 36px;
        margin-bottom: 0px;
    }

    .fluxtv-coverage-metrics-row .fluxtv-metric-states .fluxtv-metric-icon svg,
    .fluxtv-coverage-metrics-row .fluxtv-metric-cities .fluxtv-metric-icon svg {
        width: 18px;
        height: 18px;
    }

    /* Population: Full Width Row, Icon Left */
    .fluxtv-coverage-metrics-row .fluxtv-metric-population {
        grid-column: span 2; /* Full width row */
        flex-direction: row; /* Icon on the left */
        align-items: center;
        justify-content: flex-start;
        min-height: 75px;
        padding: 14px 18px;
        gap: 14px;
    }

    .fluxtv-coverage-metrics-row .fluxtv-metric-population .fluxtv-metric-info {
        align-items: flex-start;
        gap: 2px;
    }

    .fluxtv-coverage-metrics-row .fluxtv-metric-population .fluxtv-metric-value {
        font-size: 18px;
        letter-spacing: -0.2px;
    }

    .fluxtv-coverage-metrics-row .fluxtv-metric-population .fluxtv-metric-label {
        font-size: 11px;
        letter-spacing: 0px;
    }

    .fluxtv-coverage-metrics-row .fluxtv-metric-population .fluxtv-metric-icon {
        width: 38px;
        height: 38px;
        margin-bottom: 0px;
    }

    .fluxtv-coverage-metrics-row .fluxtv-metric-population .fluxtv-metric-icon svg {
        width: 18px;
        height: 18px;
    }
    
    .fluxtv-coverage-title {
        font-size: 24px;
    }
}

@media (max-width: 560px) {
    .fluxtv-coverage-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

/* ==========================================================================
   MINI POPUP MODAL FOR MULTIPLE OPERATORS IN A CITY (V51.00)
   ========================================================================== */
.fluxtv-city-channel.has-multiple-ops {
    cursor: pointer;
    text-decoration: underline dashed rgba(255, 255, 255, 0.4);
    text-underline-offset: 3px;
    transition: all 0.2s ease;
}

.fluxtv-city-channel.has-multiple-ops:hover {
    color: #007aff !important;
    text-decoration-color: #007aff;
}

.fluxtv-more-ops-indicator {
    display: inline-block;
    font-size: 9px;
    font-weight: 800;
    color: #fff;
    background: rgba(0, 122, 255, 0.25);
    border: 1px solid rgba(0, 122, 255, 0.4);
    padding: 1px 6px;
    border-radius: 20px;
    margin-left: 6px;
    vertical-align: middle;
    letter-spacing: 0;
}

.fluxtv-operator-popup-modal {
    position: fixed;
    inset: 0;
    z-index: 2147483645;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.fluxtv-operator-popup-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.fluxtv-operator-popup-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 300px;
    background: rgba(6, 15, 33, 0.85) !important;
    backdrop-filter: blur(45px) saturate(200%) !important;
    -webkit-backdrop-filter: blur(45px) saturate(200%) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    gap: 15px;
    animation: fluxtvFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.fluxtv-operator-popup-title {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 10px;
}

.fluxtv-operator-popup-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 200px;
    overflow-y: auto;
}

.fluxtv-operator-popup-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 8px 12px;
}

.fluxtv-operator-popup-item-name {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
}

.fluxtv-operator-popup-item-channel {
    font-size: 11px;
    font-weight: 600;
    color: #007aff;
    background: rgba(0, 122, 255, 0.1);
    padding: 2px 8px;
    border-radius: 30px;
}

.fluxtv-operator-popup-close-btn {
    background: #ffffff !important;
    color: #050d1b !important;
    border: none !important;
    padding: 10px 16px !important;
    border-radius: 50px !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    cursor: pointer !important;
    width: 100% !important;
    text-align: center !important;
    transition: all 0.2s ease !important;
}

.fluxtv-operator-popup-close-btn:hover {
    background: rgba(255, 255, 255, 0.9) !important;
    transform: translateY(-1px);
}

#sidebar-local-operator-card.has-multiple-ops {
    cursor: pointer;
    border-color: rgba(0, 122, 255, 0.25) !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

#sidebar-local-operator-card.has-multiple-ops:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(0, 122, 255, 0.5) !important;
    box-shadow: 0 4px 15px rgba(0, 122, 255, 0.15) !important;
    transform: translateY(-1px);
}

