@font-face{font-family:'Inter';src:url('/fonts/inter/Inter-Regular.woff2') format('woff2');font-weight:400;font-display:swap}
@font-face{font-family:'Inter';src:url('/fonts/inter/Inter-Medium.woff2') format('woff2');font-weight:500;font-display:swap}
@font-face{font-family:'Inter';src:url('/fonts/inter/Inter-SemiBold.woff2') format('woff2');font-weight:600;font-display:swap}
@font-face{font-family:'Inter';src:url('/fonts/inter/Inter-Bold.woff2') format('woff2');font-weight:700;font-display:swap}

*{box-sizing:border-box}
html,body{margin:0;padding:0;width:100%;min-height:100%}
body{background:#eef1f4;color:#182433;font-family:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;-webkit-font-smoothing:antialiased}
.mobile-app{width:100%;max-width:480px;min-height:100vh;margin:0 auto;background:#eef1f4}

/* Header */

.competition-header {
    position: relative;
    overflow: hidden;

    background:
        url('/defaults/fondo.png') center center / cover no-repeat;

    color: #fff;
    padding: 10px 14px 20px;
}
.header-top{position:relative;z-index:1;min-height:46px;display:grid;grid-template-columns:42px minmax(0,1fr) auto;align-items:center;gap:8px}
.back-button,.icon-button{display:flex;align-items:center;justify-content:center;width:40px;height:40px;padding:0;border:0;border-radius:10px;background:transparent;color:#fff;text-decoration:none;cursor:pointer}
.back-button:hover,.icon-button:hover{background:rgba(255,255,255,.08)}
.back-button svg,.icon-button svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.season-selector{justify-self:start;min-width:0;max-width:190px;height:36px;display:flex;align-items:center;gap:8px;padding:0 13px;border:1px solid rgba(255,255,255,.08);border-radius:10px;background:rgba(255,255,255,.08);color:#fff;font:500 13px/1 'Inter',sans-serif;white-space:nowrap;overflow:hidden;cursor:pointer}
.season-selector span{overflow:hidden;text-overflow:ellipsis}
.season-selector svg{width:15px;height:15px;flex:0 0 15px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;opacity:.8}
.header-actions{display:flex;align-items:center;justify-content:flex-end;gap:4px}
.follow-button{height:36px;padding:0 15px;border:1px solid rgba(255,255,255,.18);border-radius:10px;background:#fff;color:#102330;font:600 13px/1 'Inter',sans-serif;white-space:nowrap;cursor:pointer}
.competition-info{position:relative;z-index:1;display:flex;align-items:center;gap:14px;padding:22px 4px 2px}
.competition-logo-switcher{
    position:relative;
    width:72px;
    height:72px;
    flex:0 0 72px;
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden;
    cursor:pointer;
    background:#fff;
    border-radius:10px;
    padding:4px;
    box-sizing:border-box;
}

.competition-logo{
    width:72px;
    height:72px;
    flex:0 0 72px;
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden;
    border:0;
    border-radius:6px;
    background:#fff;
    box-shadow:none;
    padding:0;
    position:relative;
    z-index:1;
}

.competition-logo img{
    width:100%;
    height:100%;
    display:block;
    object-fit:contain;
    background:#fff;
}
.competition-text{min-width:0}
.competition-title-line{min-width:0;display:flex;align-items:baseline;gap:8px}
.competition-title-line h1{min-width:0;flex:0 1 auto}

.competition-text h1{margin:0;color:#fff;font-size:23px;line-height:1.15;font-weight:600;letter-spacing:-.45px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.competition-tournament{
    min-width:0;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    color:rgba(255,255,255,.46);
    font-size:10.5px;
    line-height:1.15;
    font-weight:400;
}


/* Tabs */
.competition-tabs{position:relative;z-index:2;height:40px;display:flex;background:#fff;border-bottom:1px solid #dfe4e8}
.competition-tabs a{position:relative;flex:1;display:flex;align-items:center;justify-content:center;color:#7b8794;text-decoration:none;font:500 14px/1 'Inter',sans-serif}
.competition-tabs a.active{color:#162a39;font-weight:600}
.competition-tabs a.active::after{content:"";position:absolute;left:22%;right:22%;bottom:-1px;height:3px;background:#206bc4;border-radius:3px 3px 0 0}

@media (max-width:380px){
    .competition-header{padding-left:10px;padding-right:10px}
    .header-top{grid-template-columns:38px minmax(0,1fr) auto;gap:4px}
    .back-button,.icon-button{width:36px;height:36px}
    .season-selector{max-width:150px;height:34px;padding:0 10px;font-size:12px}
    .follow-button{height:34px;padding:0 12px;font-size:12px}
    .competition-info{gap:11px;padding:19px 3px 1px}
    .competition-logo-switcher{
        width:56px;
        height:56px;
        flex-basis:56px;
        border-radius:8px;
        padding:3px;
    }

    .competition-logo{
        width:56px;
        height:56px;
        flex:0 0 56px;
        flex-basis:56px;
        border-radius:5px;
        background:#fff;
        box-shadow:none;
        padding:0;
    }
    .competition-text h1{font-size:20px}
    .competition-title-line{gap:7px}
    .competition-tournament{font-size:10px}
    
    .competition-tabs{height:52px}
    .competition-tabs a{font-size:13px}
}
@media (min-width:481px){.mobile-app{box-shadow:0 0 28px rgba(22,34,46,.10)}}

.competition-league{margin-top:2px;color:rgba(255,255,255,.46);font-size:10.5px;line-height:1.15;font-weight:400;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}


/* ============================================================
   Selector de categoría / torneo
   La categoría visible es torneo.categoria.nombre.
   El select real es transparente para conservar el diseño.
   ============================================================ */

.competition-title-line{
    min-width:0;
    display:flex;
    align-items:center;
    gap:8px;
}

.category-selector{
    position:relative;
    min-width:0;
    max-width:145px;
    height:34px;
    display:inline-flex;
    align-items:center;
    gap:6px;
    padding:0 10px;
    border:1px solid rgba(255,255,255,.10);
    border-radius:10px;
    background:rgba(255,255,255,.08);
    color:#fff;
    cursor:pointer;
    flex:0 1 auto;
}

.category-selector-label{
    min-width:0;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    color:#fff;
    font:600 13px/1 'Inter',sans-serif;
}

.category-selector svg{
    width:14px;
    height:14px;
    flex:0 0 14px;
    fill:none;
    stroke:currentColor;
    stroke-width:2;
    stroke-linecap:round;
    stroke-linejoin:round;
    opacity:.8;
}

.category-selector select{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    margin:0;
    padding:0;
    opacity:0;
    z-index:5;
    border:0;
    background:transparent;
    cursor:pointer;
}

.competition-tournament{
    min-width:0;
    max-width:150px;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    color:rgba(255,255,255,.62);
    font-size:13px;
    line-height:1.15;
    font-weight:500;
}

.competition-league{
    margin-top:3px;
    color:rgba(255,255,255,.46);
    font-size:10.5px;
    line-height:1.15;
    font-weight:400;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

/* El antiguo selector superior ya no participa en el header. */
.header-top{
    grid-template-columns:42px minmax(0,1fr) auto;
}

@media (max-width:380px){
    .competition-title-line{gap:6px}
    .category-selector{
        max-width:125px;
        height:32px;
        padding:0 8px;
    }
    .category-selector-label{font-size:12px}
    .category-selector svg{
        width:13px;
        height:13px;
        flex-basis:13px;
    }
    .competition-tournament{
        max-width:105px;
        font-size:10px;
    }
    .competition-league{font-size:10px}
}
/* Header: selector de categoría integrado en la línea de competencia */
.category-selector{
    position:relative;
    min-width:0;
    max-width:145px;
    height:34px;
    display:inline-flex;
    align-items:center;
    gap:6px;
    padding:0 10px;
    border:1px solid rgba(255,255,255,.10);
    border-radius:10px;
    background:rgba(255,255,255,.08);
    color:#fff;
    cursor:pointer;
    flex:0 1 auto;
}
.category-selector-label{
    min-width:0;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    color:#fff;
    font:600 13px/1 'Inter',sans-serif;
}
.category-selector svg{
    width:14px;
    height:14px;
    flex:0 0 14px;
    fill:none;
    stroke:currentColor;
    stroke-width:2;
    stroke-linecap:round;
    stroke-linejoin:round;
    opacity:.8;
}
.category-selector select{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    margin:0;
    padding:0;
    opacity:0;
    z-index:5;
    border:0;
    background:transparent;
    cursor:pointer;
}
.competition-title-line{
    min-width:0;
    display:flex;
    align-items:center;
    gap:8px;
}
.competition-tournament{
    min-width:0;
    max-width:150px;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    color:rgba(255,255,255,.62);
    font-size:13px;
    line-height:1.15;
    font-weight:500;
}
@media (max-width:380px){
    .competition-title-line{gap:6px}
    .category-selector{max-width:125px;height:32px;padding:0 8px}
    .category-selector-label{font-size:12px}
    .category-selector svg{width:13px;height:13px;flex-basis:13px}
    .competition-tournament{max-width:105px;font-size:10px}
}


/* ============================================================
   Selector de liga sobre el logo
   ============================================================ */

.competition-logo-switcher{
    position:relative;
    cursor:pointer;
}

.competition-logo-switcher .league-select{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    margin:0;
    padding:0;
    border:0;
    opacity:0;
    cursor:pointer;
    z-index:4;
}

.competition-logo-switcher .league-switcher-icon{
    position:absolute;
    right:0;
    bottom:0;
    z-index:3;
    width:22px;
    height:22px;
    display:flex;
    align-items:center;
    justify-content:center;
    border:1px solid rgba(255,255,255,.22);
    border-radius:50%;
    background:rgba(7,25,34,.72);
    color:#fff;
    pointer-events:none;
    opacity:0;
    transform:translate(2px,2px);
    transition:opacity .16s ease;
}

.competition-logo-switcher .league-switcher-icon svg{
    width:13px;
    height:13px;
    fill:none;
    stroke:currentColor;
    stroke-width:2;
    stroke-linecap:round;
    stroke-linejoin:round;
}

@media (hover:hover) and (pointer:fine){
    .competition-logo-switcher:hover .league-switcher-icon{opacity:1}
}

.competition-logo-switcher:focus-within .league-switcher-icon{opacity:1}

@media (max-width:380px){
    .competition-logo-switcher .league-switcher-icon{
        width:19px;
        height:19px;
    }
    .competition-logo-switcher .league-switcher-icon svg{
        width:11px;
        height:11px;
    }
}


/* ============================================================
   CitySports — patrón de puntos
   Capa de puntos aplicada directamente al fondo del header.
   ============================================================ */

.competition-header{
    background:
        radial-gradient(
            circle,
            rgba(255,255,255,.18) 1px,
            transparent 1.35px
        ) 0 0 / 8px 8px,
        url('/defaults/fondo.png') center center / cover no-repeat;
}

/* No se necesita una máscara: el patrón cubre todo el header. */
.competition-header::before{
    content:none;
}

.competition-header > *{
    position:relative;
    z-index:1;
}

@media (max-width:380px){
    .competition-header{
        background:
            radial-gradient(
                circle,
                rgba(255,255,255,.17) 1px,
                transparent 1.35px
            ) 0 0 / 8px 8px,
            url('/defaults/fondo.png') center center / cover no-repeat;
    }
}


/* ============================================================
   Ajustes Page Torneos: logo pasivo y CTA "Selecciona Liga"
   ============================================================ */

/* Sin botón de regreso: el encabezado comienza con espacio flexible. */
.header-top{
    grid-template-columns:minmax(0,1fr) auto;
}

/* El escudo es únicamente informativo; no presenta cursor ni controles. */
.competition-logo{
    cursor:default;
    pointer-events:none;
}
.competition-logo-switcher,
.competition-logo-switcher .league-select,
.competition-logo-switcher .league-switcher-icon{
    display:none !important;
}

/* CTA a la derecha de la campana. */
.header-actions{
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:7px;
}
.league-selector-cta{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:7px;
    text-decoration:none;
    transform:translateY(0);
    box-shadow:0 2px 0 rgba(0,0,0,.08);
    transition:transform .18s ease, box-shadow .18s ease, background-color .18s ease;
    animation:league-cta-pulse 2.8s ease-in-out 1.2s 2;
}
.league-selector-cta svg{
    width:15px;
    height:15px;
    flex:0 0 15px;
    fill:none;
    stroke:currentColor;
    stroke-width:2;
    stroke-linecap:round;
    stroke-linejoin:round;
    transition:transform .18s ease;
}
@media (hover:hover) and (pointer:fine){
    .league-selector-cta:hover{
        background:#f1f7fb;
        transform:translateY(-2px);
        box-shadow:0 5px 12px rgba(0,0,0,.16);
    }
    .league-selector-cta:hover svg{transform:translateX(3px)}
}
.league-selector-cta:active{
    transform:translateY(0) scale(.98);
    box-shadow:0 1px 2px rgba(0,0,0,.12);
}
.league-selector-cta:focus-visible{
    outline:2px solid #fff;
    outline-offset:3px;
}
@keyframes league-cta-pulse{
    0%,100%{box-shadow:0 2px 0 rgba(0,0,0,.08)}
    50%{box-shadow:0 0 0 4px rgba(255,255,255,.20),0 4px 10px rgba(0,0,0,.13)}
}
@media (prefers-reduced-motion:reduce){
    .league-selector-cta{animation:none;transition:none}
    .league-selector-cta svg{transition:none}
}
@media (max-width:380px){
    .header-top{grid-template-columns:minmax(0,1fr) auto;gap:4px}
    .header-actions{gap:3px}
    .league-selector-cta{height:34px;padding:0 9px;font-size:11px;gap:4px}
    .league-selector-cta svg{width:13px;height:13px;flex-basis:13px}
}
