/* Evita pantallazo blanco en móviles al recargar */
    html:not(.loaded),
    body:not(.loaded) {
      background-color: #000000 !important; /* Fondo negro mientras carga */
      color: rgb(255, 255, 255) !important;          /* Textos blancos, por si se filtran */
      visibility: hidden !important;    /* Oculta contenido hasta que cargue */
    }

    html.ocultando-eventos,
    body.ocultando-eventos {
        display: none;
    }

    html.loaded,
    body.loaded {
        display: block;
    }

    .t {
        display: none;
    }

    body {
        font-size: 100%;
        background: #111111;
        color: #fff;
        font-family: 'Segoe UI', Tahoma, sans-serif;
    }

    a {
        text-decoration: none;
        color: #ffffff;
        transition: all 0.2s ease;
    }

    a:hover {
        color: #ff3e3e;
    }

    ul,
    ul ul {
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .menu > li > ul {
        display: none;
        animation: fadeIn 0.3s ease-in-out;
    }

    @keyframes fadeIn {
        from { opacity: 0; transform: translateY(-5px); }
        to { opacity: 1; transform: translateY(0); }
    }

    #wraper {
        width: 100%;
        margin: 0 auto;
        font-size: 0.9em;
    }

    .menu {
        width: auto;
        height: auto;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
        border-radius: 8px;
        overflow: hidden;
    }

    .menu>li>a {
        background: linear-gradient(to bottom, #2d2d2d, #1a1a1a); /*fondo de los eventos*/
        border-left: 4px solid #ff0000;
        width: 100%;
        height: 3em;
        line-height: 3em;
        text-indent: 7.9em;
        display: block;
        position: relative;
        font-family: 'Segoe UI', Arial, sans-serif;
        font-weight: 600;
        color: #ffffff; /*letras de los eventos */
        font-size: 1em;
        text-shadow: 0 1px 1px rgba(0, 0, 0, 0.4);
        transition: all 0.2s ease;
    }

    .menu ul li a {
        background: #0f0f0f;
        border-bottom: 1px solid #424242;
        width: 100%;
        height: 3em;
        line-height: 3em;
        text-indent: 3.75em;
        display: block;
        position: relative;
        font-family: 'Segoe UI', Arial, sans-serif;
        font-size: 1em;
        font-weight: 400;
        color: #f0f0f0;
        transition: all 0.2s ease;
    }

    .menu ul li:last-child a {
        border-bottom: 1px solid #424242;
    }

    .menu>li>a:hover,
    .menu>li>a.active {
        background: linear-gradient(to bottom, #262626, #000000);/*color al pasar cursos por el evento*/
        color: #ffffff; /*cambio de color de letra de eventos al pasar el cursor*/
        border-left: 4px solid #ff3e3e;
    }

    .menu ul li a:hover {
        background: #414141;
        color: #ff3e3e;
    }

    .menu>li>a.active {
        border-bottom: 0;
    }

    @media only screen and (max-width: 600px) {
    .menu>li>a:before {
        left: 22px;
        }
    }

    .menu>li>a:before {
        content: '';
        background-repeat: no-repeat;
        background-size: contain;
        background-position: center;
        font-size: 36px;
        height: 0.8em;
        width: 1.7em;
        position: absolute;
        left: 50px;
        top: 50%;
        margin: -.45em 0 0;
    }

    .menu>li>a span {
        font-size: .95em;
        display: inline-block;
        position: absolute;
        left: .3em;
        top: 50%;
        background: #ffffff;
        line-height: 1em;
        height: 1em;
        padding: .3em .3em; /*tamaño de las horas*/
        margin: -.8em 0 0;
        color: #000000;
        font-weight: 500;
        text-indent: 0;
        text-align: center;
        border-radius: .569em;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
        text-shadow: none;
    }

    .menu>li>a:hover span,
    .menu>li a.active span {
        background: #ff0000;
        color: #ffffff;
    }

    .menu>li>ul li a:before {
        content: '\25BA';
        font-size: 9px;
        color: #ff0000;
        position: absolute;
        width: 1em;
        height: 1em;
        top: 0;
        left: -2.7em
    }

    .menu>li>ul li:hover a,
    /*.menu>li>ul li:hover a span,*/
    .menu>li>ul li:hover a:before {
        color: #ff3e3e;
    }

    .menu ul>li>a span {
        font-size: .857em;
        display: inline-block;
        position: absolute;
        right: 1em;
        top: 50%;
        background: #ff0000;
        border: none;
        line-height: 1em;
        height: 1em;
        padding: 0.4em 0.7em;
        margin: -0.9em 0 0;
        color: #ffffff;
        text-indent: 0;
        text-align: center;
        border-radius: 0.769em;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
        font-weight: 500;
        text-shadow: 0 1px 0 rgba(0, 0, 0, 0.5);
        transition: all 0.2s ease;
    }

    .menu ul>li>a:hover span {
        background: #ff3e3e;
        transform: scale(1.05);
    }

    div.sombreada_css3 {
        background: linear-gradient(to right, #ff0000, #cc0000);
        width: 100%;
        padding: 15px;
        color: #ffffff;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
        border-radius: 8px 8px 0 0;
        text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
    }

    /* Flag icons - mantening compatibility with all existing flags */
    .TUR>a:before { background-image: url(//partidosenvivo.net/flags/tr.webp); }
    .ENG>a:before { background-image: url(//partidosenvivo.net/flags/en.webp); }
    .ALE>a:before { background-image: url(//partidosenvivo.net/flags/de.webp); }
    .FRA>a:before { background-image: url(//partidosenvivo.net/flags/fr.webp); }
    .HOL>a:before { background-image: url(//partidosenvivo.net/flags/nl.webp); }
    .POR>a:before { background-image: url(//partidosenvivo.net/flags/pt.webp); }
    .MEX>a:before { background-image: url(//partidosenvivo.net/flags/mx.png); }
    .ES>a:before { background-image: url(//partidosenvivo.net/flags/es.png); }
    .IT>a:before { background-image: url(//partidosenvivo.net/flags/it.png); }
    .BEL>a:before { background-image: url(//partidosenvivo.net/flags/be.webp); }
    .COSTARICA>a:before { background-image: url(//partidosenvivo.net/flags/cr.webp); }
    .ESC>a:before { background-image: url(//partidosenvivo.net/flags/sx.webp); }
    .BOL>a:before { background-image: url(//partidosenvivo.net/flags/bo.png); }
    .USA>a:before { background-image: url(//partidosenvivo.net/flags/us.png); }
    .FUT>a:before { background-image: url(//partidosenvivo.net/flags/international.webp); }
    .COL>a:before { background-image: url(//partidosenvivo.net/flags/co.webp); }
    .ATP>a:before { background-image: url(//partidosenvivo.net/flags/atp.webp); }
    .PARAG>a:before { background-image: url(//partidosenvivo.net/flags/py.webp); }
    .AR>a:before { background-image: url(//partidosenvivo.net/flags/ar.webp); }
    .PE>a:before { background-image: url(//partidosenvivo.net/flags/pe.webp); }
    .PY>a:before { background-image: url(//partidosenvivo.net/flags/py.webp); }
    .RUGBY>a:before { background-image: url(//partidosenvivo.net/flags/rugby-union.webp); }
    .URU>a:before { background-image: url(//partidosenvivo.net/flags/uru.webp); }
    .BRA>a:before { background-image: url(//partidosenvivo.net/flags/br.webp); }
    .VEN>a:before { background-image: url(//partidosenvivo.net/flags/ven.webp); }
    .ARA>a:before { background-image: url(//partidosenvivo.net/flags/ara.webp); }
    .CH>a:before { background-image: url(//partidosenvivo.net/flags/ch.webp); }
    .CHA>a:before { background-image: url(//partidosenvivo.net/flags/chaa.png); }
    .ECUA>a:before { background-image: url(//partidosenvivo.net/flags/ec.webp); }
    .MOTOGP>a:before { background-image: url(//partidosenvivo.net/flags/motogp.webp); }
    .MOTO2>a:before { background-image: url(//partidosenvivo.net/flags/moto2.webp); }
    .MOTO3>a:before { background-image: url(//partidosenvivo.net/flags/moto3.webp); }
    .INDYCAR>a:before { background-image: url(//partidosenvivo.net/flags/indycar.webp); }
    .WTA>a:before { background-image: url(//partidosenvivo.net/flags/wta.webp); }
    .GRE>a:before { background-image: url(//partidosenvivo.net/flags/gr.png); }
    .GOLF>a:before { background-image: url(//partidosenvivo.net/flags/golf.svg); }
    .UCI>a:before { background-image: url(//partidosenvivo.net/flags/uci.png); }
    .PADEL>a:before { background-image: url(//partidosenvivo.net/flags/padel.jpg); }
    .HN>a:before { background-image: url(//partidosenvivo.net/flags/hn.png); }
    .GT>a:before { background-image: url(//partidosenvivo.net/flags/gt.png); }

    /* League-specific icons (maintaining compatibility with all existing icons) */
    .menu>li.NHL>a:before { background-image: url(//partidosenvivo.net/flags/nhl.png); }
    .menu>li.NBA>a:before { background-image: url(//partidosenvivo.net/flags/nba.png); }
    .menu>li.VNL>a:before { background-image: url(//partidosenvivo.net/flags/vnl.png); }
    .menu>li.WWE>a:before { background-image: url(//partidosenvivo.net/flags/wwe.png); }
    .menu>li.BOX>a:before { background-image: url(//partidosenvivo.net/flags/BOXEO.png); }
    .menu>li.AFCCUP>a:before { background-image: url(//partidosenvivo.net/flags/afccup.png); }
    .menu>li.AFCCHA>a:before { background-image: url(//partidosenvivo.net/flags/afccha.png); }
    .menu>li.KINGSLEAGUE>a:before { background-image: url(//partidosenvivo.net/flags/kingsleague.png); }
    .menu>li.EUROLEAGUEBASKET>a:before { background-image: url(//partidosenvivo.net/flags/euroleaguebasket.png); }
    .menu>li.LMB>a:before { background-image: url(//partidosenvivo.net/flags/lmb.png); }
    .menu>li.HANDBALL>a:before { background-image: url(//partidosenvivo.net/flags/handball.png); }
    .menu>li.ENDESA>a:before { background-image: url(//partidosenvivo.net/flags/endesa.png); }
    .menu>li.NBB>a:before { background-image: url(//partidosenvivo.net/flags/NBB.png); }
    .menu>li.UFC>a:before { background-image: url(//partidosenvivo.net/flags/UFC.png); }
    .menu>li.NFL>a:before { background-image: url(//partidosenvivo.net/flags/nfl.png); }
    .menu>li.UEFA_NATIONS>a:before { background-image: url(//partidosenvivo.net/flags/nationsleague.png); }
    .menu>li.EURO_COPA>a:before { background-image: url(//partidosenvivo.net/flags/eurocopa.png); }
    .menu>li.COPA_AMERICA>a:before { background-image: url(//partidosenvivo.net/flags/copa_america.png); }
    .menu>li.AEW>a:before { background-image: url(//partidosenvivo.net/flags/aewusa.jpg); }
    .menu>li.AFR>a:before { background-image: url(//partidosenvivo.net/flags/afr.png); }
    .menu>li.FIFA>a:before { background-image: url(//partidosenvivo.net/flags/fifa.webp); }
    .menu>li.COSQUIN>a:before { background-image: url(//partidosenvivo.net/flags/cosquin.png); }
    .menu>li.PREOLIMPICO>a:before { background-image: url(//partidosenvivo.net/flags/preolimpico.png); }
    .menu>li.LIB>a:before { background-image: url(//partidosenvivo.net/flags/lib.png); }
    .menu>li.UYL>a:before { background-image: url(//partidosenvivo.net/flags/uyl.png); }
    .menu>li.LCC>a:before { background-image: url(//partidosenvivo.net/flags/concachampions.png); }
    .menu>li.CONCACAF-F>a:before { background-image: url(//partidosenvivo.net/flags/concacaf-f.png); }
    .menu>li.SERIECARIBE>a:before { background-image: url(//partidosenvivo.net/flags/seriecaribe.png); }
    .menu>li.CICLISMO>a:before { background-image: url(//partidosenvivo.net/flags/ciclismo.png); }
    .menu>li.CAF>a:before { background-image: url(//partidosenvivo.net/flags/cafa.png); }
    .menu>li.NCAA>a:before { background-image: url(//partidosenvivo.net/flags/ncaa.webp); }
    .menu>li.UCL>a:before { background-image: url(//partidosenvivo.net/flags/conferecen.png); }
    .menu>li.UE>a:before { background-image: url(//partidosenvivo.net/flags/uelogo.png); }
    .menu>li.MFP>a:before { background-image: url(//partidosenvivo.net/flags/MFP.png); }
    .menu>li.GOLDCUP>a:before { background-image: url(//partidosenvivo.net/flags/COPAOROM.png); }
    .menu>li.RECOPA-SUD>a:before { background-image: url(//partidosenvivo.net/flags/sud}.png); }
    .menu>li.FIBAAMERICA>a:before { background-image: url(//partidosenvivo.net/flags/fiba.png); }
    .menu>li.EUROBASKET>a:before { background-image: url(//partidosenvivo.net/flags/eurocopabaske.png); }
    .menu>li.OLIMPICOS>a:before { background-image: url(//partidosenvivo.net/flags/olimpicos2.png); }
    .menu>li.ELIMINATORIAS_CONMEBOL>a:before { background-image: url(//partidosenvivo.net/flags/sudamerica.png); }
    .menu>li.MLB>a:before { background-image: url(//partidosenvivo.net/flags/mlb.png); }
    .menu>li.NCAAMARCH>a:before { background-image: url(//partidosenvivo.net/flags/ncaamarchusa.png); }
    .menu>li.SUD>a:before { background-image: url(//partidosenvivo.net/flags/sud.png); }
    .menu>li.BASKET>a:before { background-image: url(//partidosenvivo.net/flags/basket.png); }
    .menu>li.NATIONS-F>a:before { background-image: url(//partidosenvivo.net/flags/nationsfemenil.png); }
    .menu>li.F2>a:before { background-image: url(//partidosenvivo.net/flags/f2.png); }
    .menu>li.F3>a:before { background-image: url(//partidosenvivo.net/flags/f3.png); }
    .menu>li.F1>a:before { background-image: url(//partidosenvivo.net/flags/f1.png); }
    .menu>li.LEAGUESCUP>a:before { background-image: url(//partidosenvivo.net/flags/leaguescup.png); }
    .menu>li.OSCARS>a:before { background-image: url(//partidosenvivo.net/flags/oscars.png); }
    .menu>li.CONCACAFLIGAD>a:before { background-image: url(//partidosenvivo.net/flags/concachampions.png); }
    .menu>li.EUROELIMINATORIAS>a:before { background-image: url(//partidosenvivo.net/flags/eliminatoriaseuro.png); }
    .menu>li.MMA>a:before { background-image: url(//partidosenvivo.net/flags/mma.png); }
    .menu>li.WNBA>a:before { background-image: url(//partidosenvivo.net/flags/wnba1.webp); }
    .menu>li.UEFA_SUPERCOPA>a:before { background-image: url(//partidosenvivo.net/flags/uefasupercopa.png); }

    @media only screen and (max-width: 600px) {
        body {
            font-size: 70%;
        }
        .menu>li>a:before {
            height: 0.91em;
            width: 0.50em;
        }
        .sombreada_css3 {
            font-size: 0.95rem;
            padding: 10px;
        }
        /* All icon position adjustments condensed for mobile */
        .menu>li.NHL>a:before,
        .menu>li.NBA>a:before,
        .menu>li.VNL>a:before,
        .menu>li.AFCCUP>a:before,
        .menu>li.KINGSLEAGUE>a:before,
        .menu>li.HANDBALL>a:before,
        .menu>li.UFC>a:before,
        .menu>li.ENDESA>a:before,
        .menu>li.NBB>a:before,
        .menu>li.CICLISMO>a:before,
        .menu>li.NFL>a:before,
        .menu>li.CONCACAF-F>a:before,
        .menu>li.CAF>a:before,
        .menu>li.SERIECARIBE>a:before,
        .menu>li.AEW>a:before,
        .menu>li.AFR>a:before,
        .menu>li.FIFA>a:before,
        .menu>li.CONCACAFLIGAD>a:before,
        .menu>li.LMB>a:before,
        .menu>li.NCAA>a:before,
        .menu>li.PREOLIMPICO>a:before,
        .menu>li.LIB>a:before,
        .menu>li.EURO_COPA>a:before,
        .menu>li.COPA_AMERICA>a:before,
        .menu>li.UYL>a:before,
        .menu>li.LCC>a:before,
        .menu>li.UEFA_NATIONS>a:before,
        .menu>li.AFCCHA>a:before,
        .menu>li.UE>a:before,
        .menu>li.UCL>a:before,
        .menu>li.MFP>a:before,
        .menu>li.GOLDCUP>a:before,
        .menu>li.FIBAAMERICA>a:before,
        .menu>li.EUROBASKET>a:before,
        .menu>li.ELIMINATORIAS_CONMEBOL>a:before,
        .menu>li.LEAGUESCUP>a:before,
        .menu>li.OSCARS>a:before,
        .menu>li.RECOPA-SUD>a:before,
        .menu>li.NATIONS-F>a:before,
        .menu>li.F2>a:before,
        .menu>li.F3>a:before,
        .menu>li.SUD>a:before,
        .menu>li.BASKETCHA>a:before,
        .menu>li.F1>a:before,
        .menu>li.MLB>a:before,
        .menu>li.NCAAMARCH>a:before,
        .menu>li.EUROELIMINATORIAS>a:before,
        .menu>li.EUROLEAGUEBASKET>a:before,
        .menu>li.MMA>a:before,
        .menu>li.WNBA>a:before,
        .menu>li.UEFA_SUPERCOPA>a:before {
            height: 1em;
            width: 0.6em;
            left: 45px;
            top: 50%;
            margin: -0.5em 0 0;
        }
        
        /* Special cases with specific sizes and positions */
        .menu>li.WWE>a:before {
            height: 1.0em;
            width: 0.6em;
            left: 45px;
            top: 51%;
        }
        
        .menu>li.BOX>a:before {
            height: 0.95em;
            width: 0.6em;
            left: 45px;
        }
        
        .menu>li.OLIMPICOS>a:before {
            height: 0.6em;
            width: 0.6em;
            left: 45px;
            top: 50%;
        }
        
        .menu>li.COSQUIN>a:before {
            height: 0.95em;
            width: 0.51em;
            left: 49px;
        }
    }