
    
    /* PREMIUM PLAYER UI */
    .premium-cover {
        position: absolute;
        top: 0; left: 0; width: 100%; height: 100%;
        background: radial-gradient(circle at center, rgba(30, 41, 59, 0.5) 0%, #0f172a 100%);
        display: flex; flex-direction: column; align-items: center; justify-content: center;
        z-index: 10; overflow: hidden;
    }
    
    .match-identity {
        text-align: center; width: 92%; max-width: 380px;
        backdrop-filter: blur(15px);
        background: rgba(15, 23, 42, 0.6);
        padding: 20px 10px; border-radius: 20px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 20px 50px rgba(0,0,0,0.8);
        display: flex; flex-direction: column; align-items: center;
    }
    .team-name {
        font-size: clamp(14px, 4.5vw, 24px); 
        font-weight: 900; color: #fff;
        text-transform: uppercase; line-height: 1.1;
        display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical;
        overflow: hidden; text-overflow: ellipsis;
        text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    }
    .teams-wrapper {
        display: grid; grid-template-columns: 1fr 40px 1fr;
        align-items: center; justify-content: center;
        gap: 5px; margin-bottom: 15px; width: 100%;
    }
    .premium-play-btn {
        width: 60px; height: 60px; background: #fff;
        border-radius: 50%; display: flex; align-items: center;
        justify-content: center; cursor: pointer;
        box-shadow: 0 0 20px rgba(255,255,255,0.2);
        transition: all 0.3s ease;
    }
    .play-icon-svg { width: 30px; height: 30px; fill: #0f172a; margin-left: 4px; }

    .live-indicator {
        margin-top: 20px; font-size: 12px; font-weight: 700;
        color: #94a3b8; display: flex; align-items: center; gap: 8px;
    }
    .dot-pulse {
        width: 8px; height: 8px; background: #ef4444;
        border-radius: 50%; animation: dot-pulse-anim 1.5s infinite;
    }
    @keyframes dot-pulse-anim { 0% { transform: scale(1); opacity: 1; } 100% { transform: scale(2.5); opacity: 0; } }

    /* RESET Y CONTENEDOR MAESTRO */
    body { margin: 0; padding: 0; background: #0f172a; font-family: 'Segoe UI', Roboto, sans-serif; }
    .ads-layout-wrapper { display: flex !important; justify-content: center !important; align-items: flex-start !important; gap: 15px !important; max-width: 1300px !important; margin: 20px auto !important; padding: 0 10px; }
    .latam-center-column { display: flex !important; flex-direction: column !important; align-items: center !important; gap: 15px !important; width: 100% !important; max-width: 480px !important; flex-shrink: 0 !important; }

    /* BANNERS LATERALES */
    .banner-lateral { width: 160px !important; min-height: 600px !important; background: rgba(255, 255, 255, 0.05) !important; display: flex !important; flex-direction: column !important; align-items: center !important; justify-content: center !important; border-radius: 10px !important; border: 1px dashed #334155 !important; }
    @media (max-width: 1024px) { .banner-lateral { display: none !important; } }

    /* TARJETA DEPORTIVA */
    .latam-sports-card { width: 100% !important; max-width: 480px !important; border-radius: 15px !important; overflow: hidden !important; border: 1px solid #334155; box-shadow: 0 10px 25px rgba(0,0,0,0.4) !important; }
    .latam-header { background: #15803d !important; padding: 15px !important; text-align: center !important; position: relative; }
    
    /* RESPONSIVE ADS */
    .desktop-ad-468-60 { display: flex !important; justify-content: center !important; width: 100% !important; }
    @media (max-width: 1024px) { .desktop-ad-468-60 { display: none !important; } }
    .native-ad-container { width: 100%; margin-top: 10px; display: flex; justify-content: center; }

    /* ANIMACIÓN PULSO "DIRECTO" */
    .latam-live { background: #ef4444 !important; color: white !important; padding: 2px 10px !important; border-radius: 4px !important; font-size: 12px !important; font-weight: bold !important; animation: pulse-red 1.5s infinite !important; }
    @keyframes pulse-red { 0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); } 70% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); } 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); } }

    /* GHOST LAYER (CAPA FANTASMA) */
    .ad-trigger-layer { position: absolute; top:0; left:0; width:100%; height:100%; z-index:999; cursor:pointer; background: transparent; }
    #live-player-container { position: relative; overflow: hidden; }

    .latam-content { padding: 20px !important; }
    .latam-match-title { font-size: 20px !important; font-weight: 800 !important; text-align: center !important; margin-bottom: 15px !important; display: flex !important; justify-content: center !important; align-items: center !important; gap: 10px !important; }

    /* ANIMACIÓN IMAGEN */
    .video-container { position: relative !important; width: 100% !important; border-radius: 10px !important; overflow: hidden !important; margin-bottom: 20px !important; cursor: pointer !important; background: #000; border: 1px solid #334155; }
    .video-img { width: 100% !important; display: block !important; transition: all 0.5s ease !important; opacity: 0.8; }
    .video-container:hover .video-img { transform: scale(1.1) rotate(1deg) !important; opacity: 1 !important; }

    /* ICONO PLAY */
    .play-overlay { position: absolute !important; top: 50% !important; left: 50% !important; transform: translate(-50%, -50%) !important; width: 70px !important; height: 70px !important; background: rgba(0, 0, 0, 0.7) !important; border-radius: 50% !important; display: flex !important; align-items: center !important; justify-content: center !important; border: 3px solid #fff !important; transition: all 0.3s !important; }
    .video-container:hover .play-overlay { background: #2563eb !important; transform: translate(-50%, -50%) scale(1.1) !important; }

    /* CUADRO DE CANALES Y HORARIOS */
    .channels-box { background: #0f172a !important; border: 1px dashed #3b82f6 !important; border-radius: 8px !important; padding: 10px !important; margin-bottom: 15px !important; font-size: 14px !important; text-align: center !important; }
    .latam-schedule { background: #0f172a !important; border-radius: 10px !important; padding: 12px !important; margin-bottom: 20px !important; }
    .schedule-grid { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 8px !important; font-size: 13px !important; }
    .schedule-item { display: flex !important; justify-content: space-between !important; border-bottom: 1px solid #334155 !important; padding: 4px 0 !important; color: #94a3b8; }

    /* CONTENEDOR DE OPCIONES Y ESTILOS RENOVADOS */
    .options-container-wrapper { width: 100%; margin-top: 0px; display: flex; flex-direction: column; align-items: center; gap: 15px; }
    
    .desktop-options-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 10px;
        width: 100%;
        max-width: 900px;
    }
    
    .btn-server {
        background: transparent; color: #9ca3af; border: 1px solid #374151;
        padding: 12px 10px; text-align: center; border-radius: 8px;
        font-size: 13px; font-weight: 700; text-decoration: none;
        transition: all 0.2s; text-transform: uppercase;
        display: flex; align-items: center; justify-content: center;
    }
    .btn-server:hover { background: rgba(255,255,255,0.05); color: #fff; }
    .btn-server.active {
        background: linear-gradient(135deg, #22c55e, #16a34a);
        color: #ffffff; border-color: #22c55e;
        box-shadow: 0 4px 15px rgba(34, 197, 94, 0.4);
    }
    body:not(.modo-oscuro) .btn-server {
        background: #ffffff; color: #475569; border: 1px solid #cbd5e1;
        box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    }
    body:not(.modo-oscuro) .btn-server:hover {
        background: #f1f5f9; color: #0f172a; border-color: #94a3b8;
    }
    .mobile-options-wrapper { display: none; width: 100%; max-width: 400px; text-align: left !important; }
    
    .mobile-options-select {
        width: 100%;
        background-color: transparent; color: #ffffff; border: 1px solid #22c55e;
        padding: 14px 20px; border-radius: 8px; font-size: 15px; font-weight: 700;
        appearance: none; outline: none; cursor: pointer; text-transform: uppercase;
        background-image: url('data:image/svg+xml;utf8,<svg fill="%23ffffff" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
        background-repeat: no-repeat; background-position-x: 95%; background-position-y: 50%;
        box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    }
    
    body:not(.modo-oscuro) .mobile-options-select {
        background-color: #ffffff;
        color: #0f172a;
        border: 1px solid #cbd5e1;
        box-shadow: 0 4px 15px rgba(0,0,0,0.05);
        background-image: url('data:image/svg+xml;utf8,<svg fill="%230f172a" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
    }
    
    .match-info-card {
        display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px;
        margin-top: 20px; padding: 15px; border-radius: 12px;
        background: transparent; border: 1px solid #374151;
    }
    body:not(.modo-oscuro) .match-info-card {
        background: #f8fafc; border: 1px solid #e2e8f0;
    }
    .match-details-inner { display: flex; align-items: center; gap: 12px; }
    .match-details-imgs { display: flex; align-items: center; gap: 5px; }
    .match-details-imgs img { width: 35px; height: 35px; object-fit: contain; }
    .match-details-text { display: flex; flex-direction: column; text-align: left; }
    .match-details-league { font-size: 11px; font-weight: 700; color: #22c55e; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 2px; }
    .match-details-title { font-size: 14px; font-weight: 800; color: #f8fafc; margin: 0; }
    body:not(.modo-oscuro) .match-details-title { color: #0f172a; }
    
    @media (max-width: 768px) {
        .desktop-options-grid { display: none; }
        .mobile-options-wrapper { display: block; }
    }

  
    /* CONTENEDORES DE ANUNCIOS MÓVILES */
    .mobile-ad-320-50 { display: none; width: 100%; justify-content: center; margin: 10px auto; min-height: 50px; }
    .mobile-ad-300-250 { display: none; width: 100%; justify-content: center; margin: 20px auto; min-height: 250px; background: rgba(255,255,255,0.03); border-radius: 8px; border: 1px dashed #334155; }
    
    @media (max-width: 1024px) {
        .mobile-ad-320-50 { display: block !important; }
        .mobile-ad-300-250 { display: block !important; }
    }

    /* ADAPTACIÓN DE COLORES Y DISEÑO PARA LANDING PAGES SEO */
    .channel-seo-landing {
        background: transparent !important;
        margin-top: 30px !important;
        border-top: 1px dashed #334155 !important;
    }
    body.modo-oscuro .channel-seo-landing,
    body.modo-oscuro .channel-seo-landing p,
    body.modo-oscuro .channel-seo-landing li,
    body.modo-oscuro .channel-seo-landing span {
        color: #cbd5e1 !important;
    }
    body:not(.modo-oscuro) .channel-seo-landing,
    body:not(.modo-oscuro) .channel-seo-landing p,
    body:not(.modo-oscuro) .channel-seo-landing li,
    body:not(.modo-oscuro) .channel-seo-landing span {
        color: #1e293b !important;
    }
    body.modo-oscuro .channel-seo-landing h1,
    body.modo-oscuro .channel-seo-landing h2 {
        color: #fbbf24 !important;
    }
    body:not(.modo-oscuro) .channel-seo-landing h1,
    body:not(.modo-oscuro) .channel-seo-landing h2 {
        color: #b45309 !important;
    }
    body:not(.modo-oscuro) .channel-seo-landing {
        border-top-color: #cbd5e1 !important;
    }
  


  #adsterra-bottom-banner { position: relative; width: 100%; background-color: transparent; text-align: center; display: flex; justify-content: center; align-items: center; margin: 0; max-height: 80px; overflow: hidden; }
  .adsterra-content { width: 100%; max-width: 728px; margin: 0 auto; overflow: hidden; display: flex; justify-content: center; align-items: center; }
  
  #adsterra-bottom-banner iframe, #adsterra-bottom-banner div[id^="container-"] { max-height: 80px !important; display: flex; justify-content: center; transform: scale(1); transform-origin: top center; }

  @media (max-width: 768px) {
    #adsterra-bottom-banner { margin: 0; max-height: 70px; }
    .adsterra-content { max-width: 95%; }
    #adsterra-bottom-banner iframe, #adsterra-bottom-banner div[id^="container-"] { max-height: 70px !important; transform: scale(0.85); }
  }
  
/* PREMIUM PLAYER INTERFACE */
.premium-cover {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: inherit;
    background: #020617;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: white;
    font-family: 'Inter', sans-serif;
}

    /* ESTILOS IAB ELIMINADOS */

.match-identity {
    z-index: 10;
    text-align: center;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.match-league-badge {
    background: rgba(37, 99, 235, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.5);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 20px;
    display: inline-block;
}

.teams-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.team-name {
    font-size: 1.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -1px;
    max-width: 140px;
    line-height: 1.1;
}

.vs-badge {
    background: white;
    color: #0f172a;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 14px;
    box-shadow: 0 0 15px rgba(255,255,255,0.3);
}

.premium-play-btn {
    width: 80px;
    height: 80px;
    background: #2563eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.7);
    animation: pulse-blue 2s infinite;
    transition: transform 0.3s ease;
}

.premium-play-btn:hover {
    transform: scale(1.1);
}

.play-icon-svg {
    width: 30px;
    height: 30px;
    fill: white;
    margin-left: 5px;
}

.live-indicator {
    position: absolute;
    bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    opacity: 0.8;
}

.fake-fullscreen {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-height: none !important;
    max-width: none !important;
    z-index: 999999 !important;
    background: #000 !important;
    border-radius: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    aspect-ratio: auto !important;
}

.exit-fullscreen-btn {
    display: none;
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(0,0,0,0.7);
    color: white;
    border: 2px solid white;
    border-radius: 50%;
    z-index: 1000000;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.fake-fullscreen .exit-fullscreen-btn {
    display: flex !important;
}

.fullscreen-tip {
    display: none;
    position: absolute;
    top: 20px;
    left: 20px;
    right: 70px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 12px;
    border-radius: 8px;
    font-size: 12px;
    z-index: 1000001;
    border: 1px solid #2563eb;
    line-height: 1.4;
}

@media (orientation: portrait) {
    .fake-fullscreen .fullscreen-tip {
        display: block;
    }
}

.dot-pulse {
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    animation: pulse-red 1.5s infinite;
}

@keyframes pulse-blue {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 20px rgba(37, 99, 235, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}

@keyframes pulse-red {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}

@media (max-width: 600px) {
    .team-name { font-size: 1.4rem; }
    .vs-badge { width: 30px; height: 30px; font-size: 12px; }
    .premium-play-btn { width: 65px; height: 65px; }
}

/* STICKY TOP NAVBAR FIXED ON SCROLL ACROSS ENTIRE PAGE */
.top-nav-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 99999 !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 12px 24px !important;
    background: rgba(15, 23, 42, 0.96) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important;
    box-sizing: border-box !important;
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease !important;
}

body:not(.modo-oscuro) .top-nav-header {
    background: rgba(255, 255, 255, 0.96) !important;
    border-bottom-color: rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
}

.ads-layout-wrapper {
    margin-top: 75px !important;
}

@media (max-width: 600px) {
    .top-nav-header {
        padding: 10px 16px !important;
    }
    .ads-layout-wrapper {
        margin-top: 65px !important;
    }
}

.nav-logo a {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    text-decoration: none !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    font-size: 1.3rem !important;
}

body:not(.modo-oscuro) .nav-logo a {
    color: #0f172a !important;
}

.nav-logo img {
    width: 32px !important;
    height: 32px !important;
    object-fit: contain !important;
}

.nav-actions {
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
}

#theme-toggle-switch {
    position: relative;
    width: 52px;
    height: 26px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    padding: 3px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-sizing: border-box;
}

body:not(.modo-oscuro) #theme-toggle-switch {
    background: rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.15);
}

.toggle-knob {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: #ffffff;
    border-radius: 50%;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

body.modo-oscuro .toggle-knob {
    transform: translateX(26px);
    background: #22c55e;
}

          

            /* TOP NAV THEME RULES */
            .top-nav-header { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 12px 24px; box-sizing: border-box; border-bottom: 1px solid #e2e8f0; background: #ffffff; transition: all 0.3s ease; position: sticky; top: 0; z-index: 11000; }
            .top-nav-header .nav-logo a { font-size: 1.4rem; font-weight: 800; color: #15803d !important; text-decoration: none; display: flex; align-items: center; gap: 8px; font-family: system-ui, -apple-system, sans-serif; white-space: nowrap; }
            .top-nav-header .nav-logo img { height: 28px; width: auto; object-fit: contain; }
            .top-nav-header .nav-actions { display: flex; align-items: center; }
            #theme-toggle-switch { width: 60px; height: 30px; background: #e2e8f0 !important; border-radius: 15px; display: flex; align-items: center; justify-content: space-between; padding: 0 6px; box-sizing: border-box; cursor: pointer; position: relative; transition: background 0.3s ease; }
            #theme-toggle-switch .toggle-knob { width: 24px; height: 24px; background: #ffffff !important; border-radius: 50%; position: absolute; left: 3px; top: 3px; transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: 0 2px 4px rgba(0,0,0,0.1); z-index: 3; transform: translateX(0); }

            /* DARK MODE OVERRIDES */
            body.modo-oscuro .top-nav-header { background: #07090e !important; border-bottom-color: #374151 !important; }
            body.modo-oscuro .top-nav-header .nav-logo a { color: #10b981 !important; }
            body.modo-oscuro #theme-toggle-switch { background: #4b5563 !important; }
            body.modo-oscuro #theme-toggle-switch .toggle-knob { transform: translateX(30px) !important; }

            @media (max-width: 480px) {
                .m-title { font-size: 11.5px !important; }
                #spa-container { border-radius: 0; border: none; box-shadow: none; margin-top: 24px !important; }
                .top-nav-header { padding: 10px 14px !important; }
                .top-nav-header .nav-logo a { font-size: 1.1rem !important; gap: 6px !important; }
                .top-nav-header .nav-logo img { height: 22px !important; }
                #theme-toggle-switch { width: 54px !important; height: 26px !important; }
                #theme-toggle-switch .toggle-knob { width: 20px !important; height: 20px !important; }
                body.modo-oscuro #theme-toggle-switch .toggle-knob { transform: translateX(25px) !important; }
            }

            /* ACCORDION WRAPPER AND ANIMATION */
            .evento-wrapper { border-radius: 8px; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); margin-bottom: 8px; border: 1px solid transparent; }
            body:not(.modo-oscuro) .evento-wrapper.activo {
                background: #f0fdf4 !important;
                border-color: #15803d !important;
                box-shadow: 0 4px 12px rgba(21, 128, 61, 0.08);
            }
            body.modo-oscuro .evento-wrapper.activo {
                background: #15231b !important;
                border-color: #10b981 !important;
                box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
            }
            body:not(.modo-oscuro) .evento-wrapper.activo .match-row { background: transparent !important; }
            body.modo-oscuro .evento-wrapper.activo .match-row { background: transparent !important; }
            
            .servidores { 
                max-height: 0; 
                opacity: 0; 
                overflow: hidden; 
                transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), padding 0.4s cubic-bezier(0.16, 1, 0.3, 1); will-change: max-height; 
                text-align: left; 
                width: 100%; 
                padding: 0 10px 0 40px; 
                box-sizing: border-box; 
                background: transparent !important; 
                border-top: 1px dashed rgba(0,0,0,0.08); 
            }
            .servidores.activo { 
                opacity: 1; 
                max-height: 450px; 
                padding: 12px 10px 12px 40px; 
            }
            body.modo-oscuro .servidores { 
                border-top-color: rgba(255,255,255,0.08); 
            }

            /* TOP NAV CUSTOM SHADOW */
            .top-nav-header { position: relative; border-bottom: none !important; }
            .top-nav-header::after {
                content: '';
                position: absolute;
                bottom: -8px;
                left: 0;
                width: 100%;
                height: 8px;
                background: linear-gradient(to bottom, rgba(0,0,0,0.06) 0%, rgba(0,0,0,0) 100%);
                pointer-events: none;
                z-index: 1000;
            }
            body.modo-oscuro .top-nav-header::after {
                background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0) 100%);
            }

            /* ENHANCED ACCORDION LAYOUT AND ANIMATION */
            .servidores a.nombre-servidor {
                display: block !important;
                padding: 12px 16px !important;
                margin: 8px 0 !important;
                font-size: 15px !important;
                font-weight: 700 !important;
                color: #222 !important;
                text-decoration: none !important;
                transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
                border-bottom: 1px solid rgba(0,0,0,0.04) !important;
                background: rgba(0, 0, 0, 0.02) !important;
                border-radius: 8px !important;
            }
            body.modo-oscuro .servidores a.nombre-servidor {
                color: #f1f5f9 !important;
                border-bottom-color: rgba(255,255,255,0.04) !important;
                background: rgba(255, 255, 255, 0.03) !important;
            }
            .servidores a.nombre-servidor:hover {
                color: #15803d !important;
                background: rgba(21, 128, 61, 0.06) !important;
                padding-left: 22px !important;
            }
            body.modo-oscuro .servidores a.nombre-servidor:hover {
                color: #10b981 !important;
                background: rgba(16, 185, 129, 0.06) !important;
            }
            
            .m-title {
                font-size: 13px !important;
                font-weight: 700 !important;
                line-height: 1.35 !important;
                white-space: normal !important;
                word-wrap: break-word !important;
                overflow: visible !important;
                text-overflow: unset !important;
            }
            @media (max-width: 600px) {
                .m-title { font-size: 12px !important; }
            }
            @media (max-width: 480px) {
                .m-title { font-size: 11px !important; }
            }
            /* DYNAMIC ROW HEIGHT FOR WRAPPED TEXT */
            .match-row {
                min-height: 44px !important;
                height: auto !important;
                overflow: visible !important;
                padding: 8px 12px !important;
            }
            .m-comp {
                white-space: normal !important;
                word-wrap: break-word !important;
            }
            /* AD BANNER AND STICKY FOOTER COLOR THEMING */
            .xbet-premium-banner, .mobile-ad-300-250, #adsterra-bottom-banner {
                transition: background 0.3s ease, border-color 0.3s ease;
            }
            body.modo-oscuro .sticky-ad-footer,
            body.modo-oscuro #adsterra-bottom-banner,
            body.modo-oscuro .xbet-premium-banner,
            body.modo-oscuro .mobile-ad-300-250 {
                background: #121212 !important;
                border-color: #333333 !important;
            }
            body:not(.modo-oscuro) .sticky-ad-footer,
            body:not(.modo-oscuro) #adsterra-bottom-banner,
            body:not(.modo-oscuro) .xbet-premium-banner,
            body:not(.modo-oscuro) .mobile-ad-300-250 {
                background: #f8fafc !important;
                border-color: #e2e8f0 !important;
            }
            body:not(.modo-oscuro) .player-agenda-title {
                color: #1f2937 !important;
            }
            body.modo-oscuro .player-agenda-title {
                color: #f1f5f9 !important;
            }
            /* BASE AND ANIMATIONS */
            #spa-container { font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; background: #0f172a; padding: 0; border-radius: 12px; border: 1px solid #1e293b; box-shadow: 0 10px 30px rgba(0,0,0,0.5); overflow: hidden; margin-top: 24px !important; }
            .latam-content { padding: 20px; }
            .latam-live { background: linear-gradient(45deg, #ef4444, #dc2626); color: white; padding: 4px 10px; border-radius: 6px; font-size: 0.75rem; font-weight: 800; text-transform: uppercase; animation: pulse 2s infinite; letter-spacing: 0.5px; box-shadow: 0 0 10px rgba(239,68,68,0.5); }
            @keyframes pulse { 0% { opacity: 1; transform:scale(1); } 50% { opacity: 0.7; transform:scale(0.95); } 100% { opacity: 1; transform:scale(1); } }
            .spinner { border: 4px solid rgba(255,255,255,0.1); border-left-color: #3b82f6; border-radius: 50%; width: 40px; height: 40px; animation: spin 1s linear infinite; margin: 0 auto 15px; }
            @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

            /* MATCH AGENDA ROWS */
            .tz-selector { background: #1e293b; color: white; border: 1px solid #334155; padding: 10px 15px; border-radius: 8px; margin-bottom: 20px; font-size: 0.95rem; width: 100%; max-width: 300px; font-weight:600; cursor:pointer; outline:none; transition: border-color 0.2s; float:right;}
            .tz-selector:focus { border-color: #3b82f6; }
            
            /* STICKY FOOTER AD */
            .sticky-ad-footer { position: fixed; bottom: 0; left: 0; width: 100%; height: 55px; background: rgba(15, 23, 42, 0.95); backdrop-filter: blur(10px); z-index: 99999; display: flex; justify-content: center; align-items: center; border-top: 2px solid #3b82f6; box-shadow: 0 -5px 20px rgba(0,0,0,0.8); }
            .mobile-only-block { display: none; }
            @media (max-width: 1024px) { 
                .pc-only-block { display: none !important; } 
                .mobile-only-block { display: block !important; }
            }
            .match-row { display: flex; align-items: center; background: linear-gradient(90deg, #1e293b, #0f172a); padding: 3px 8px; margin-bottom: 4px; border-radius: 4px; cursor: pointer; transition: all 0.3s ease; border-left: 2px solid #3b82f6; text-decoration: none; color: white; border: 1px solid #334155; box-shadow: 0 1px 2px rgba(0,0,0,0.15); min-height: 44px; height: auto !important; overflow: visible !important; padding: 6px 10px !important; }
            .match-row:hover { transform: translateX(3px); background: linear-gradient(90deg, #334155, #1e293b); border-left: 4px solid #60a5fa; }
            .hora-ovalo { background: rgba(255, 255, 255, 0.08); color: #f8fafc; padding: 4px 12px; border-radius: 999px; font-weight: 700; font-size: 0.75rem; min-width: 50px; text-align: center; display: inline-flex; align-items: center; justify-content: center; height: 22px; border: 1px solid rgba(255, 255, 255, 0.1); flex-shrink: 0; }
            .m-logos-box { display: flex; align-items: center; justify-content: center; gap: 4px; min-width: 58px; flex-shrink: 0; }
            .m-logo-team { width: 20px; height: 20px; border-radius: 4px; object-fit: contain; }
            .m-logo-single { width: 26px; height: 26px; border-radius: 4px; object-fit: contain; }
            .m-vs { font-size: 8px; font-weight: 900; color: #64748b; min-width: 14px; text-align: center; text-transform: uppercase; }
            .m-info-col { flex-grow: 1; margin-left: 10px; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
            .m-comp { font-size: 0.6rem; color: #94a3b8; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1; margin-bottom: 2px; }
            .m-title { font-weight: 700; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.2px; color: #f1f5f9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1; }

            /* 24/7 CHANNELS GRID */
            .channels-section-title { font-size: 1.1rem; margin: 0 0 5px; color: #f1f5f9; font-weight: 800; text-transform: uppercase; display: flex; align-items: center; letter-spacing: 0.5px;}
            .ch-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
            .ch-btn { background: #1e293b; color: #f1f5f9; text-align: center; padding: 15px 10px; border-radius: 12px; font-weight: 700; cursor: pointer; border: 1px solid #334155; transition: all 0.2s ease; display:flex; flex-direction: column; align-items:center; gap:10px; text-decoration:none; font-size:0.95rem; box-shadow: 0 4px 6px rgba(0,0,0,0.3);}
            .ch-btn:hover { background: #2563eb; color: white; border-color: #60a5fa; transform: translateY(-4px); box-shadow: 0 8px 20px rgba(37,99,235,0.4); }
            .ch-btn-icon { font-size: 2rem; line-height: 1;}

            /* PLAYER OPTIONS */
            .btn-premium { background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%); padding: 14px 28px; border-radius: 12px; font-weight: 800; box-shadow: 0 4px 15px rgba(239,68,68,0.4), inset 0 1px 0 rgba(255,255,255,0.2); border: 1px solid #b91c1c; color: white; text-decoration: none; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); font-size: 1rem; letter-spacing: 0.5px; display: inline-flex; align-items: center; justify-content: center; position: relative; overflow: hidden; text-transform: uppercase; }
            .btn-premium::after { content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent); transform: skewX(-20deg); transition: all 0.5s ease; }
            .btn-premium:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(239,68,68,0.6), inset 0 1px 0 rgba(255,255,255,0.3); }
            .btn-premium:hover::after { left: 150%; }
            .btn-secondary { background: rgba(30, 41, 59, 0.7); backdrop-filter: blur(10px); padding: 14px 28px; border-radius: 12px; font-weight: 700; border: 1px solid rgba(255,255,255,0.1); color: #cbd5e1; text-decoration: none; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); font-size: 1rem; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 4px 6px rgba(0,0,0,0.2); text-transform: uppercase; letter-spacing: 0.5px;}
            .btn-secondary:hover { background: rgba(51, 65, 85, 0.9); transform: translateY(-3px); color: white; border-color: rgba(255,255,255,0.3); box-shadow: 0 8px 15px rgba(0,0,0,0.3); }
            .btn-home { background:#334155; color:white; border:none; padding:16px 32px; border-radius:10px; cursor:pointer; font-weight:bold; font-size:1.5rem; transition: background 0.2s; font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
            .btn-home:hover { background:#475569; }

            /* SOCIAL SHARING BUTTONS */
            .share-container { display: flex; gap: 10px; justify-content: center; margin-top: 15px; margin-bottom: 15px; flex-wrap: wrap; }
            .share-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 8px; font-weight: 700; text-decoration: none; color: white; font-size: 0.9rem; transition: all 0.2s ease; cursor: pointer; border: none; font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
            .share-wa { background: #25d366; box-shadow: 0 4px 10px rgba(37,211,102,0.3); }
            .share-wa:hover { background: #20ba5a; transform: translateY(-2px); }
            .share-tg { background: #0088cc; box-shadow: 0 4px 10px rgba(0,136,204,0.3); }
            .share-tg:hover { background: #0077b5; transform: translateY(-2px); }
            .share-copy { background: #475569; box-shadow: 0 4px 10px rgba(71,85,105,0.3); }
            .share-copy:hover { background: #334155; transform: translateY(-2px); }


            
              
            /* RESPONSIVE AND MOBILE REFINEMENTS */
            @media (max-width: 600px) {
                #spa-container { border-radius: 0; border: none; box-shadow: none; margin-top: 0 !important; }
                .ads-layout-wrapper { padding: 0 !important; margin: 60px 0 0 0 !important; }
                .latam-header { padding: 12px 10px !important; }
                .latam-content { padding: 15px 10px !important; }
                #player-title { font-size: 0.95rem !important; }
                .btn-home { font-size: 1rem !important; padding: 10px 15px !important; }
                .match-row { padding: 3px 6px; margin-bottom: 4px; height: 40px; }
                .m-info-col { margin-left: 6px; }
                .m-comp { font-size: 0.55rem; }
                .m-title { font-size: 0.7rem; }
                .m-time-box { width: 65px; height: 20px; }
                .m-time { font-size: 0.7rem; }
                .video-container:not(.fake-fullscreen) { min-height: 0 !important; max-height: none !important; height: auto !important; aspect-ratio: 16/9 !important; }
                #dynamic-match-text { font-size: 1.3rem !important; }
                .tz-selector { font-size: 0.75rem; padding: 4px 6px; }
                .ch-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; }
                .ch-btn { padding: 10px 5px; font-size: 0.85rem; }
                .ch-btn-icon { font-size: 1.5rem; }
                .btn-premium, .btn-secondary { padding: 10px 16px; font-size: 0.85rem; }
            }

            

            /* ====== PALETA DE COLORES RE-DISEÑADA AL ESTILO FULBOFREE.XYZ ====== */

            .share-circle { width: 35px; height: 35px; border-radius: 50%; padding: 0 !important; justify-content: center; font-size: 16px !important; }
            body.modo-oscuro { background: #111 !important; color: #f5f5f5 !important; }
            body.modo-oscuro #spa-container, body.modo-oscuro .latam-sports-card { background: #1e1e1e !important; background-color: #1e1e1e !important; border: 1px solid #333 !important; box-shadow: 0 10px 30px rgba(0,0,0,0.5) !important; color: #ffffff !important; }
            body.modo-oscuro .latam-header { background: #198754 !important; border-radius: 6px 6px 0 0; }
            body.modo-oscuro .match-row { background: transparent !important; border: none !important; border-bottom: 1px solid #333 !important; color: #e5e5e5 !important; }
            body.modo-oscuro .match-row:hover { background: rgba(255,255,255,0.05) !important; border-left: none !important; }
            body.modo-oscuro .match-row.activo { background: rgba(255,255,255,0.05) !important; border-left: none !important; }
            body.modo-oscuro .servidores { background: #1a1a1a; padding: 10px; border-radius: 0 0 6px 6px; }
            body.modo-oscuro .nombre-servidor { background: #2a2a2a; color: #e5e5e5 !important; border: none !important; margin: 4px 0; border-radius: 4px; padding: 10px; font-weight: normal; }
            body.modo-oscuro .nombre-servidor:hover { background: #333; color: white !important; }
            body.modo-oscuro .channels-section-title { color: #198754 !important; text-align: center; }
            body.modo-oscuro #agenda-search { background: #1a1a1a !important; border: 1px solid #333 !important; border-radius: 4px; }
            
            body:not(.modo-oscuro) { background: #f0f2f5 !important; color: #111 !important; }
            body:not(.modo-oscuro) #spa-container, body:not(.modo-oscuro) .latam-sports-card { background: #ffffff !important; background-color: #ffffff !important; border: 1px solid #e2e8f0 !important; box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important; color: #0f172a !important; }
            body:not(.modo-oscuro) .latam-header { background: #198754 !important; border-radius: 6px 6px 0 0; color: white !important; }
            body:not(.modo-oscuro) .match-row { background: white !important; border: none !important; border-bottom: 1px solid #e5e5e5 !important; color: #111 !important; }
            body:not(.modo-oscuro) .match-row:hover { background: #f9f9f9 !important; border-left: none !important; }
            body:not(.modo-oscuro) .match-row.activo { background: #f9f9f9 !important; border-left: none !important; }
            body:not(.modo-oscuro) .servidores { background: white; padding: 10px; border-radius: 0 0 6px 6px; border: 1px solid #e5e5e5; border-top: none; }
            body:not(.modo-oscuro) .nombre-servidor { background: #f0f2f5; color: #111 !important; border: none !important; margin: 4px 0; border-radius: 4px; padding: 10px; font-weight: normal; }
            body:not(.modo-oscuro) .nombre-servidor:hover { background: #e4e6e9; color: black !important; }
            body:not(.modo-oscuro) .channels-section-title { color: #198754 !important; text-align: center; }
            body:not(.modo-oscuro) #agenda-search { background: white !important; border: 1px solid #ddd !important; border-radius: 4px; color: black !important;}
            
            /* Hide the oval class completely if it exists */
            .hora-ovalo { display: none !important; }
            
            /* Text color fixes for light mode */
            body:not(.modo-oscuro) .m-title { color: #111 !important; }
            body:not(.modo-oscuro) .m-comp { color: #666 !important; }
            body:not(.modo-oscuro) .hora-texto { color: #111 !important; }
            
            /* Add select tu servidor preferido text */
            .servidor-preferido-text { color: #dc3545; font-size: 13px; font-weight: bold; margin-bottom: 8px; padding-left: 5px; }

            
            body.modo-oscuro { background: #121212 !important; color: #f5f5f5 !important; }
            body.modo-oscuro #spa-container { background: #1e1e1e !important; border-color: #333 !important; box-shadow: 0 10px 30px rgba(0,0,0,0.5) !important; }
            body.modo-oscuro .match-row { background: #222 !important; border-color: #333 !important; color: #f1f1f1 !important; }
            body.modo-oscuro .match-row:hover { background: #2a2a2a !important; border-left-color: #60a5fa !important; }
            body.modo-oscuro .match-row.activo { background: #2a2a2a !important; border-left-color: #1ed760 !important; }
            body.modo-oscuro .hora-ovalo { background: #222222 !important; color: #fff !important; border-color: #333 !important; }
            body.modo-oscuro .m-title { color: #f1f5f9 !important; }
            body.modo-oscuro .m-title.resaltado { color: #1ed760 !important; }
            body.modo-oscuro .ch-btn { background: #1e1e1e !important; border-color: #333 !important; color: #f1f5f9 !important; }
            body.modo-oscuro .ch-btn:hover { background: #2a2a2a !important; border-color: #1ed760 !important; }
            body.modo-oscuro .tz-selector, body.modo-oscuro #agenda-search { background: #2a2a2a !important; color: #fff !important; border-color: #333 !important; }
            body.modo-oscuro .tz-selector:focus, body.modo-oscuro #agenda-search:focus { border-color: #15803d !important; }
            
            body:not(.modo-oscuro) { background: #f8fafc !important; color: #222 !important; }
            body:not(.modo-oscuro) #spa-container { background: #ffffff !important; border-color: #e2e8f0 !important; box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important; }
            body:not(.modo-oscuro) .match-row { background: #ffffff !important; border-color: #e0e0e0 !important; color: #222 !important; }
            body:not(.modo-oscuro) .match-row:hover { background: #f0fdf4 !important; border-left-color: #60a5fa !important; }
            body:not(.modo-oscuro) .match-row.activo { background: #d3ffe4 !important; border-left-color: #15803d !important; }
            body:not(.modo-oscuro) .hora-ovalo { background: #e1f5e9 !important; color: #15803d !important; border-color: #c8e6c9 !important; }
            body:not(.modo-oscuro) .m-title { color: #222 !important; }
            body:not(.modo-oscuro) .m-title.resaltado { color: #15803d !important; }
            body:not(.modo-oscuro) .ch-btn { background: #ffffff !important; border-color: #9c9b9b !important; color: #222 !important; }
            body:not(.modo-oscuro) .ch-btn:hover { background: #f0fdf4 !important; border-color: #15803d !important; color: #15803d !important; }
            body:not(.modo-oscuro) .tz-selector, body:not(.modo-oscuro) #agenda-search { background: #f1f3f4 !important; color: #000 !important; border-color: #ccc !important; }
            body:not(.modo-oscuro) .tz-selector:focus, body:not(.modo-oscuro) #agenda-search:focus { border-color: #15803d !important; }
            body:not(.modo-oscuro) .channels-section-title { color: #15803d !important; }
            body:not(.modo-oscuro) #live-player-container { background: #f1f3f4 !important; }

            

            #toggle-tema, #toggle-tema-player { background: none; border: none; cursor: pointer; padding: 8px; display: flex; align-items: center; justify-content: center; outline: none; }
            .toggle-track { width: 45px; height: 24px; background: #e0e0e0; border-radius: 12px; position: relative; transition: all 0.3s ease; display: flex; align-items: center; justify-content: space-between; padding: 0 4px; box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1); }
            .toggle-thumb { width: 18px; height: 18px; background: white; border-radius: 50%; position: absolute; top: 3px; left: 3px; transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); z-index: 1; }
            .toggle-icon { font-size: 10px; transition: all 0.3s ease; z-index: 2; pointer-events: none; }
            body:not(.modo-oscuro) .toggle-icon-left { color: #ff9500; opacity: 1; }
            body:not(.modo-oscuro) .toggle-icon-right { color: #4b5563; opacity: 0.7; }
            body:not(.modo-oscuro) #toggle-tema.activo .toggle-track, body:not(.modo-oscuro) #toggle-tema-player.activo .toggle-track { background: #15803d; }
            body:not(.modo-oscuro) #toggle-tema.activo .toggle-thumb, body:not(.modo-oscuro) #toggle-tema-player.activo .toggle-thumb { transform: translateX(21px); }
            body:not(.modo-oscuro) #toggle-tema.activo .toggle-icon-right, body:not(.modo-oscuro) #toggle-tema-player.activo .toggle-icon-right { color: white; opacity: 1; }
            body.modo-oscuro .toggle-track { background: #333; }
            body.modo-oscuro .toggle-icon-left { color: #ffb347; opacity: 0.7; }
            body.modo-oscuro .toggle-icon-right { color: #d1d5db; opacity: 1; }
            body.modo-oscuro #toggle-tema.activo .toggle-track, body.modo-oscuro #toggle-tema-player.activo .toggle-track { background: #3a3a3a; }
            body.modo-oscuro #toggle-tema.activo .toggle-thumb, body.modo-oscuro #toggle-tema-player.activo .toggle-thumb { transform: translateX(21px); background: #f5f5f5; }
            body.modo-oscuro #toggle-tema.activo .toggle-icon-right, body.modo-oscuro #toggle-tema-player.activo .toggle-icon-right { color: #fff; }

            .servidor-btn { background: #f3f4f6; color: #374151; border: 1px solid #d1d5db; padding: 10px 16px; border-radius: 8px; cursor: pointer; font-weight: 700; font-size: 14px; text-decoration: none; transition: all 0.2s ease; display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; box-sizing: border-box; max-width: 350px; margin: 0 auto; }
            .servidor-btn:hover { background: #e5e7eb; border-color: #9ca3af; transform: translateY(-2px); }
            body.modo-oscuro .servidor-btn { background: #374151; color: #e5e7eb; border: 1px solid #4b5563; }
            body.modo-oscuro .servidor-btn:hover { background: #4b5563; border-color: #6b7280; }
            .servidor-btn.option-active { background: #15803d !important; color: white !important; border-color: #15803d !important; }
            body.modo-oscuro .servidor-btn.option-active { background: #15803d !important; color: white !important; border-color: #15803d !important; }
            .cambio-texto { font-size: 10px; opacity: 0.7; text-transform: uppercase; }
            
            @media (min-width: 992px) {
                #spa-container, .latam-sports-card { max-width: 900px !important; }
            }
\n            /* STICKY MOBILE AD (TOP) */
            .sticky-mobile-ad {
                position: fixed;
                top: 0;
                left: 0;
                width: 100%;
                background: rgba(15, 23, 42, 0.98);
                border-bottom: 2px solid #2563eb;
                z-index: 10000;
                display: none;
                justify-content: center;
                align-items: center;
                padding: 10px 0;
                box-shadow: 0 5px 15px rgba(0,0,0,0.5);
            }
            .sticky-close-btn {
                position: absolute;
                bottom: -25px;
                right: 15px;
                background: #2563eb;
                color: white;
                width: 25px;
                height: 25px;
                border-radius: 50%;
                display: flex;
                align-items: center;
                justify-content: center;
                font-size: 14px;
                cursor: pointer;
                border: 2px solid #0f172a;
                font-family: sans-serif;
                font-weight: bold;
            }
            @media (min-width: 1025px) { .sticky-mobile-ad { display: none !important; } }
          
/* PREMIUM PLAYER INTERFACE */
.premium-cover {
    position: relative;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, #1e293b 0%, #020617 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: white;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    z-index: 20;
}

.match-identity {
    z-index: 10;
    text-align: center;
    width: 100%;
    padding: 0 10px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.match-league-badge {
    background: rgba(37, 99, 235, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.5);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 20px;
    display: inline-block;
}

.teams-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.team-name {
    font-size: 1.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -1px;
    max-width: 140px;
    line-height: 1.1;
}

.vs-badge {
    background: white;
    color: #0f172a;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 14px;
    box-shadow: 0 0 15px rgba(255,255,255,0.3);
}

.premium-play-btn {
    width: 80px;
    height: 80px;
    background: #2563eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.7);
    animation: pulse-blue 2s infinite;
    transition: transform 0.3s ease;
}

.premium-play-btn:hover {
    transform: scale(1.1);
}

.play-icon-svg {
    width: 30px;
    height: 30px;
    fill: white;
    margin-left: 5px;
}

.live-indicator {
    position: absolute;
    bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    opacity: 0.8;
}

.dot-pulse {
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    animation: pulse-red 1.5s infinite;
}

@keyframes pulse-blue {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 20px rgba(37, 99, 235, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}

@keyframes pulse-red {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}

@media (max-width: 600px) {
    .match-league-badge { margin-bottom: 10px !important; padding: 2px 10px !important; font-size: 9px !important; }
    .teams-wrapper { flex-direction: column; gap: 2px; margin-bottom: 5px; flex: none; }
    .team-name { font-size: 1.1rem !important; max-width: 100%; text-align: center; line-height: 1; font-weight: 700; }
    .vs-badge { width: 20px; height: 20px; font-size: 8px; margin: 1px auto; }
    .premium-play-btn { width: 45px; height: 45px; margin: 8px 0; }
    .play-icon-svg { width: 18px; height: 18px; margin-left: 2px; }
}

/* Fix #channels-grid so it is block, not grid */
#channels-grid {
    display: block !important;
    width: 100% !important;
}

/* Ocultar el texto antiguo SEO de Blogger */
#blogger-post-wrapper, .entry-content, .post-body {
    display: none !important;
}

/* FLTV CHANNELS GRID WRAPPER */
.fltv-channels-wrapper {
    position: relative;
    padding: 10px 0;
    margin-bottom: 30px;
}

.fltv-channels-title {
    font-size: 1.3rem;
    font-weight: 800;
    margin: 0 0 20px 0;
    color: #f8fafc;
}
body:not(.modo-oscuro) .fltv-channels-title {
    color: #0f172a !important;
}

.fltv-channels-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 1200px) {
    .fltv-channels-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .fltv-channels-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .fltv-channels-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
}

/* TARJETAS DE CANALES CON FONDO DE ESTADIO CONTINUO REAL */
.fltv-card {
    position: relative;
    background-image: linear-gradient(rgba(10, 24, 17, 0.82), rgba(6, 14, 10, 0.90)), url('https://futbollibretv.se/images/hero-bg.webp');
    background-size: 600% 300%;
    background-repeat: no-repeat;
    border: 1px solid rgba(34, 197, 94, 0.25);
    border-radius: 12px;
    text-decoration: none;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    height: 120px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

@media (max-width: 1200px) {
    .fltv-card { background-size: 400% 500%; }
}
@media (max-width: 768px) {
    .fltv-card { background-size: 300% 600%; }
}
@media (max-width: 480px) {
    .fltv-card { background-size: 200% 900%; }
}

.fltv-card:hover {
    border-color: #22c55e !important;
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.4);
    transform: translateY(-4px);
}

/* CAJA DE LOGO ARRIBA CON MICRO-ANIMACIÓN */
.fltv-card-logo-box {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 10px;
    background: rgba(0, 0, 0, 0.15);
}

.fltv-card-icon {
    max-height: 52px;
    max-width: 82%;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.6));
    transition: transform 0.25s ease;
}

.fltv-card:hover .fltv-card-icon {
    transform: scale(1.05);
}

/* FRANJA INFERIOR DE NOMBRE */
.fltv-card-bottom {
    background: rgba(4, 10, 7, 0.92);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 6px 10px;
    text-align: left;
    transition: background 0.25s ease;
}

.fltv-card:hover .fltv-card-bottom {
    background: rgba(8, 18, 13, 0.96);
}

.fltv-card-name {
    font-size: 0.78rem;
    font-weight: 700;
    color: #e2e8f0 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    transition: color 0.25s ease;
}

.fltv-card:hover .fltv-card-name {
    color: #22c55e !important;
}

/* BOTTOM SECTION (FAQ, FOOTER AT PAGE ROOT) */
.fltv-bottom-container {
    width: 100%;
    background: #090d16;
    border-top: 1px solid #1e293b;
    margin-top: 60px;
    clear: both;
}
body:not(.modo-oscuro) .fltv-bottom-container {
    background: #f1f5f9;
    border-top-color: #cbd5e1;
}
.fltv-faq-section {
    padding: 40px 20px;
    max-width: 900px;
    margin: 0 auto;
    box-sizing: border-box;
}
.fltv-faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.fltv-faq-item {
    background: #0f172a;
    border: 1px solid #1e293b;
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.2s ease;
}
body:not(.modo-oscuro) .fltv-faq-item {
    background: #ffffff;
    border-color: #cbd5e1;
}
.fltv-faq-item.active {
    border-color: #22c55e !important;
}
.fltv-faq-question {
    width: 100%;
    padding: 16px 20px;
    background: transparent;
    border: none;
    color: #f8fafc;
    font-weight: 700;
    font-size: 0.95rem;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
body:not(.modo-oscuro) .fltv-faq-question {
    color: #0f172a;
}
.fltv-faq-icon {
    font-size: 1.2rem;
    font-weight: 900;
    color: #22c55e;
    transition: transform 0.3s ease;
}
.fltv-faq-item.active .fltv-faq-icon {
    transform: rotate(45deg);
}
.fltv-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 20px;
    color: #94a3b8;
    font-size: 0.9rem;
    line-height: 1.6;
}
body:not(.modo-oscuro) .fltv-faq-answer {
    color: #475569;
}
.fltv-faq-item.active .fltv-faq-answer {
    max-height: 250px;
    padding: 0 20px 16px 20px;
}

.fltv-footer {
    padding: 30px 20px;
    background: #060911;
    border-top: 1px solid #1e293b;
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
}
body:not(.modo-oscuro) .fltv-footer {
    background: #e2e8f0;
    border-top-color: #cbd5e1;
}
body:not(.modo-oscuro) .fltv-footer {
    background: #f1f5f9;
    border-top-color: #cbd5e1;
}
.fltv-footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}
.fltv-footer-links a {
    color: #94a3b8;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}
body:not(.modo-oscuro) .fltv-footer-links a {
    color: #475569;
}
.fltv-footer-links a:hover {
    color: #22c55e !important;
}
.fltv-dot {
    color: #475569;
}
.fltv-copyright {
    color: #64748b;
    font-size: 0.85rem;
}

.fltv-modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(5px);
    z-index: 100000;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}
.fltv-modal-content {
    background: #0f172a;
    border: 1px solid #1e293b;
    border-radius: 16px;
    width: 100%;
    max-width: 650px;
    max-height: 80vh;
    overflow-y: auto;
    padding: 30px;
    position: relative;
    color: #e2e8f0;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
}
body:not(.modo-oscuro) .fltv-modal-content {
    background: #ffffff;
    border-color: #cbd5e1;
    color: #0f172a;
}
.fltv-modal-close {
    position: absolute;
    top: 15px; right: 20px;
    background: none; border: none;
    color: #94a3b8; font-size: 28px;
    cursor: pointer; font-weight: bold;
}
.fltv-modal-close:hover { color: #22c55e; }
#fltv-modal-title { color: #f8fafc; margin-top: 0; font-size: 1.4rem; border-bottom: 2px solid #22c55e; padding-bottom: 8px; }
body:not(.modo-oscuro) #fltv-modal-title { color: #0f172a; }
#fltv-modal-body { font-size: 0.95rem; line-height: 1.7; color: #94a3b8; margin-top: 15px; }
body:not(.modo-oscuro) #fltv-modal-body { color: #475569; }

/* LEGAL PAGES THEME COMPATIBILITY */
.legal-page-content h1 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-top: 0;
    margin-bottom: 20px;
    transition: color 0.3s ease;
}
.legal-page-content h3 {
    margin-top: 25px;
    margin-bottom: 10px;
    font-weight: 700;
    transition: color 0.3s ease;
}
.legal-page-content p {
    line-height: 1.8;
    margin-bottom: 15px;
    transition: color 0.3s ease;
}
.legal-page-content ul {
    line-height: 2;
    padding-left: 25px;
    margin-bottom: 25px;
    transition: color 0.3s ease;
}

body.modo-oscuro .legal-page-content h1 { color: #ffffff !important; }
body.modo-oscuro .legal-page-content h3 { color: #22c55e !important; }
body.modo-oscuro .legal-page-content p,
body.modo-oscuro .legal-page-content li { color: #cbd5e1 !important; }
body.modo-oscuro .legal-page-content strong { color: #ffffff !important; }

body:not(.modo-oscuro) .latam-content,
body:not(.modo-oscuro) .legal-page-content { color: #000000 !important; }
body:not(.modo-oscuro) .legal-page-content h1 { color: #000000 !important; }
body:not(.modo-oscuro) .legal-page-content h3 { color: #15803d !important; }
body:not(.modo-oscuro) .legal-page-content p,
body:not(.modo-oscuro) .legal-page-content li { color: #111827 !important; }
body:not(.modo-oscuro) .legal-page-content strong { color: #000000 !important; }


/* NAVBAR DESKTOP CHANNELS */
.desktop-nav-channels {
    display: none; /* hidden on mobile by default */
    align-items: center;
    gap: 15px;
    margin-right: 15px;
}
.nav-channel-link {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.3s ease;
    text-transform: uppercase;
}
.nav-channel-link:hover {
    color: #22c55e;
}
body:not(.modo-oscuro) .nav-channel-link {
    color: #475569;
}
body:not(.modo-oscuro) .nav-channel-link:hover {
    color: #15803d;
}

@media (min-width: 768px) {
    .desktop-nav-channels {
        display: flex;
    }
}

/* PWA INSTALL BANNER */
#pwa-install-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #0f172a;
    border-top: 1px solid #1e293b;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.6);
    display: none; /* hidden by default */
    align-items: center;
    padding: 12px 15px;
    z-index: 9999;
    color: #fff;
    box-sizing: border-box;
}
#pwa-install-banner.show-banner {
    display: flex;
}
.pwa-banner-icon {
    width: 40px;
    height: 40px;
    margin-right: 12px;
    border-radius: 8px;
}
.pwa-banner-text {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.pwa-banner-title {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 2px 0;
}
.pwa-banner-desc {
    font-size: 11px;
    color: #94a3b8;
    margin: 0;
}
.pwa-btn-install {
    background: #22c55e;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 12px;
    cursor: pointer;
    margin-right: 10px;
}
.pwa-btn-close {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
}
body:not(.modo-oscuro) #pwa-install-banner {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.15);
    color: #0f172a;
}
body:not(.modo-oscuro) .pwa-banner-desc {
    color: #475569;
}
body:not(.modo-oscuro) .pwa-btn-close {
    color: #475569;
}
