/* Compact tournament portal; existing modal and export styles remain isolated. */
.tournament-portal{--radius:7px;--radius-sm:5px;--text-3:var(--text-2)}
.tournament-portal .main{max-width:1440px;padding:0 28px 48px}
.portal-header{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:22px 0 18px;border-bottom:1px solid var(--border);scroll-margin-top:74px}
.portal-title h1{font-family:'Bricolage Grotesque',sans-serif;font-size:32px;letter-spacing:-1px;line-height:1.15;margin:5px 0 8px}
#portal-meta{color:var(--v2);font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.08em}
#portal-status{color:var(--text-2);font-size:11px}
#portal-status::before{content:'';display:inline-block;width:6px;height:6px;background:var(--o);margin-right:7px;border-radius:50%}
.portal-header .home-quickstats{display:flex;margin:0;gap:0;flex-shrink:0}
.portal-header .qs-card{background:transparent;border:0;border-left:1px solid var(--border);border-radius:0;padding:5px 24px;text-align:left}
.portal-header .qs-number{font-size:28px;font-weight:800;font-variant-numeric:tabular-nums}
.portal-header .qs-label{font-size:10px;margin-top:6px}
.tournament-portal .nav-bar{position:sticky;top:62px;z-index:90;padding:0;background:var(--bg);gap:8px}
.tournament-portal .nav-btn{font-size:12px;padding:14px 12px}
.tournament-portal .nav-btn .nav-label{display:inline}
.tournament-portal .nav-btn.active{color:var(--text);border-bottom-color:var(--b)}
.tournament-portal button:focus-visible,.tournament-portal summary:focus-visible{outline:2px solid var(--o);outline-offset:3px}
.tournament-portal .notif-panel:not(.show){visibility:hidden;pointer-events:none}
.portal-clubs{padding:14px 0 16px;border-bottom:1px solid var(--border);margin-bottom:20px;scroll-margin-top:120px}
.portal-club-label{font-size:10px;color:var(--text-2);text-transform:uppercase;letter-spacing:.08em;margin-bottom:9px}
.portal-crest-strip{display:flex;gap:7px;overflow-x:auto;padding:3px 2px 7px;scrollbar-width:thin}
.portal-crest{flex:1 0 48px;max-width:72px;height:49px;border:1px solid transparent;border-radius:5px;display:flex;align-items:center;justify-content:center;background:var(--bg2);cursor:pointer;color:var(--text);transition:background .15s,border-color .15s}
.portal-crest img{width:30px!important;height:30px!important;margin:0!important}
.portal-crest-fallback{font-size:12px;font-weight:800;color:var(--v2)}.portal-crest-fallback[hidden]{display:none}
.portal-crest:hover{border-color:var(--v2)}
.portal-crest[aria-pressed=true]{border-color:var(--b);background:var(--card2);box-shadow:inset 0 -2px var(--b)}
#portal-club-detail:not(:empty){display:flex;align-items:center;gap:18px;padding:16px;margin-top:8px;background:var(--card);border-left:3px solid var(--v);flex-wrap:wrap}
.portal-club-name{display:flex;flex-direction:column;gap:4px;min-width:140px}
.portal-club-name strong{font-size:17px}.portal-club-name span,.portal-form{font-size:11px;color:var(--text-2)}
.portal-club-values{display:flex;gap:20px}.portal-club-values div{display:flex;flex-direction:column;gap:4px}.portal-club-values b{font-size:18px}.portal-club-values span{font-size:10px;color:var(--text-2)}
.portal-profile{margin-left:auto;background:var(--v);border:0;color:white;border-radius:4px;padding:10px 14px;font-weight:700;cursor:pointer;font-size:12px}
.portal-grid{display:grid;grid-template-columns:minmax(0,42fr) minmax(0,58fr);gap:20px;align-items:start;margin-bottom:22px}
.portal-grid>*{min-width:0}.portal-side{display:flex;flex-direction:column;gap:14px}
.portal-panel,.tournament-portal #tab-posiciones,.tournament-portal #tab-goleadoras{background:var(--card);border:1px solid var(--border);border-radius:6px;min-width:0}
.portal-section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;border-bottom:1px solid var(--border)}
.portal-section-head h2,.portal-result-columns h2{font-size:13px;font-weight:800;letter-spacing:-.2px}
.portal-section-head h2::before{content:'';display:inline-block;width:3px;height:12px;background:var(--v2);margin-right:8px;vertical-align:-1px}
.portal-export{border:0;background:transparent;color:var(--v2);font-size:18px;cursor:pointer;padding:3px 6px}
.tournament-portal .section-label{margin:10px 14px;font-size:9px;letter-spacing:.04em}
.tournament-portal .table-wrap{border:0;border-radius:0;margin-bottom:0;overflow-x:auto}
.tournament-portal .data-table{font-size:11px;white-space:nowrap}
.tournament-portal .data-table td,.tournament-portal .data-table th{padding:11px 6px}
.tournament-portal .data-table td:nth-child(2){font-size:11px}
.tournament-portal .data-table .hide-mobile{display:table-cell}
.tournament-portal .data-table td img{width:19px!important;height:19px!important;margin-right:5px!important}
.tournament-portal #tab-goleadoras .table-wrap{max-height:170px;overflow:auto}
.tournament-portal .data-table thead{position:sticky;top:0;z-index:1;background:var(--bg3)}
.portal-result-columns{display:grid;grid-template-columns:1fr 1fr}
.portal-result-columns>div{min-width:0;padding:12px}
.portal-result-columns>div+div{border-left:1px solid var(--border)}
.portal-result-columns h2{margin-bottom:7px}.portal-match-list{max-height:var(--portal-match-height,140px);overflow:auto;scrollbar-width:thin}
.portal-match{display:block;text-align:left;width:100%;background:none;border:0;border-top:1px solid var(--border);padding:8px 0;color:var(--text);cursor:pointer}
.portal-match:hover{background:var(--bg3)}
.portal-match-date{font-size:9px;color:var(--text-2);display:block;margin-bottom:5px}
.portal-match-teams{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:5px;font-size:10px;line-height:1.4}
.portal-match-teams>span{display:flex;flex-direction:column;align-items:center;text-align:center;gap:4px;overflow-wrap:anywhere}
.portal-match-teams img{margin:0!important;width:19px!important;height:19px!important}.portal-match-teams b{font-size:12px;white-space:nowrap;color:var(--o2)}
.portal-empty{font-size:11px;color:var(--text-2);padding:14px 0;line-height:1.6}
.tournament-portal .stat-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:0;margin:0}
@media(min-width:801px) and (max-width:1199px){.tournament-portal .stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
.tournament-portal .stat-card{border:0;border-radius:0;background:transparent;padding:8px 10px;min-width:0;gap:5px}
.tournament-portal .stat-label{font-size:9px}.tournament-portal .stat-team{font-size:11px;overflow-wrap:anywhere;order:2}.tournament-portal .stat-value-badge{position:static;font-size:10px;max-width:100%;white-space:normal;align-self:flex-start;order:3;padding:2px 5px}
.tournament-portal .stat-card>div[style]{padding-right:0!important;min-height:27px}.tournament-portal .stat-icon{width:21px;height:21px}.tournament-portal .stat-team img{width:20px!important;height:20px!important}
.portal-charts{border-top:1px solid var(--border)}
.portal-charts summary,.portal-extra summary{font-size:12px;font-weight:700;cursor:pointer;padding:13px 14px;color:var(--v2)}
.portal-charts .chart-grid{grid-template-columns:repeat(2,minmax(0,1fr));padding:10px;margin:0}.portal-charts .chart-card{padding:12px;border-radius:4px;min-width:0}
@media(max-width:800px){.portal-charts .chart-grid{grid-template-columns:minmax(0,1fr)}}
.tournament-portal #tab-fixtures{scroll-margin-top:120px;margin-bottom:24px}
.tournament-portal #tab-fixtures>.portal-section-head{padding-left:0;border-top:2px solid var(--border);margin-bottom:12px}
.tournament-portal [id^=tab-]{scroll-margin-top:120px}
.tournament-portal .filters{margin-bottom:12px}
.portal-extra{border:1px solid var(--border);border-radius:5px;margin-top:14px;background:var(--card)}
.portal-extra[hidden]{display:none}
@media(max-width:1100px){.tournament-portal .main{padding-left:18px;padding-right:18px}.portal-grid{grid-template-columns:minmax(0,44fr) minmax(0,56fr);gap:14px}.portal-header .qs-card{padding:5px 16px}}
@media(max-width:800px){
 .tournament-portal .main{padding:0 14px 32px}.portal-header{align-items:flex-start;flex-direction:column;gap:14px;padding:18px 0 14px}.portal-title h1{font-size:27px}.portal-header .home-quickstats{width:100%;justify-content:space-between}.portal-header .qs-card{padding:0 16px;flex:1}.portal-header .qs-card:first-child{border-left:0;padding-left:0}.portal-header .qs-number{font-size:24px}
 .portal-grid{grid-template-columns:minmax(0,1fr);gap:16px}.tournament-portal .nav-bar{gap:0}.tournament-portal .nav-btn{font-size:11px;padding:12px 10px}.portal-crest{flex:0 0 48px}.portal-clubs{margin-bottom:14px}.portal-club-values{gap:17px}.portal-profile{margin-left:0}.portal-result-columns{grid-template-columns:1fr 1fr}
 .tournament-portal #tab-goleadoras .table-wrap{max-height:300px}.tournament-portal .data-table td,.tournament-portal .data-table th{padding:10px 8px}.tournament-portal .data-table{min-width:490px}.tournament-portal .table-scorers{min-width:420px}
 .tournament-portal .stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.tournament-portal .stat-label{font-size:10px}.tournament-portal .stat-team{font-size:12px}.tournament-portal .stat-value-badge{font-size:11px}.portal-match-teams{font-size:11px}
 .tournament-portal .torneo-selector-bar{padding:8px 14px!important;gap:8px!important}.tournament-portal .torneo-selector-bar>span{display:none}.tournament-portal #torneo-select{min-width:0;flex:1;font-size:11px!important;max-width:calc(100% - 48px)}.tournament-portal #btn-descargar-informe{padding:9px!important}.tournament-portal .hide-mobile-label{display:none}
 .tournament-portal .topbar{padding:0 10px}.tournament-portal .logo-name{font-size:14px}.tournament-portal .logo{gap:5px}.tournament-portal .topbar>div:last-child{gap:5px!important}.tournament-portal .lang-btn{padding:5px 6px}
}
@media(max-width:360px){.portal-result-columns{grid-template-columns:1fr}.portal-result-columns>div+div{border-left:0;border-top:1px solid var(--border)}}
@media(prefers-reduced-motion:reduce){.tournament-portal *{scroll-behavior:auto!important;transition:none!important}}

/* Ajustes de densidad, escudos y ficha completa. */
.portal-crest{height:62px;min-width:54px}
.portal-crest img{width:40px!important;height:44px!important;object-fit:contain;flex-shrink:0}
.fixtures-date-group{margin-bottom:16px}
.fixtures-date-header{font-size:12px;color:var(--text-2);font-weight:700;padding-bottom:6px;margin-bottom:8px;border-bottom:1px solid var(--border)}
.fixtures-date-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,320px),340px));gap:8px;justify-content:start;align-items:stretch}
.fixtures-date-grid .match-card{padding:9px 8px;margin:0;border-radius:5px;display:grid;grid-template-columns:minmax(0,1fr) 24px;align-items:center;gap:5px 7px}
.fixtures-date-grid .match-top{margin-bottom:3px;gap:5px}
.fixtures-date-grid .match-league,.fixtures-date-grid .badge-fin{display:none}
.fixtures-date-grid .match-top{display:contents}
.fixtures-date-grid .match-top>div{display:contents!important}
.fixtures-date-grid .match-body{grid-column:1;grid-row:1}
.fixtures-date-grid .share-btn{grid-column:2;grid-row:1}
.fixtures-date-grid .badge-prox{grid-column:1/-1;grid-row:2;justify-self:center}
.fixtures-date-grid .match-body{grid-template-columns:minmax(0,1fr) 48px minmax(0,1fr);align-items:center;gap:7px}
.fixtures-date-grid .team{display:grid;grid-template-columns:24px minmax(0,1fr);align-items:center;gap:4px;min-width:0}
.fixtures-date-grid .team:last-child{grid-template-columns:minmax(0,1fr) 24px}.fixtures-date-grid .team:last-child .team-name{grid-column:1;grid-row:1}.fixtures-date-grid .team:last-child .team-crest,.fixtures-date-grid .team:last-child .team-avatar{grid-column:2;grid-row:1}
.fixtures-date-grid .team-name{font-size:11px;line-height:1.3;text-align:right;overflow-wrap:break-word}
.fixtures-date-grid .team:last-child .team-name{text-align:left}
.fixtures-date-grid .score{font-size:20px;letter-spacing:0}
.fixtures-date-grid .team-crest,.fixtures-date-grid .team-crest img{width:24px;height:24px;min-width:0;min-height:0;object-fit:contain;flex-shrink:0}
.fixtures-date-grid .team-avatar{width:24px;height:24px;font-size:9px;flex-shrink:0}
.fixtures-date-grid .share-btn{width:24px;height:24px;font-size:12px}
.fixtures-date-grid .badge-prox{font-size:10px;padding:3px 6px;white-space:normal}
.tournament-portal .stat-card{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:4px 6px}
.tournament-portal .stat-card>div[style]{grid-column:1/-1;grid-row:1;min-height:21px}
.tournament-portal .stat-team{grid-column:1;grid-row:2;display:flex;align-items:center;gap:4px;min-width:0}
.tournament-portal .stat-value-badge{grid-column:2;grid-row:2;align-self:center;max-width:94px;line-height:1.35}
.tournament-portal .stat-card:not(:has(.stat-team)) .stat-value-badge{grid-column:1/-1;justify-self:start}
.eq-modal-main,.eq-grid-all{min-width:0}
.eq-modal-split,.eq-modal-split.sin-plantel{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(0,1fr);gap:18px}
.eq-grid-all{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;margin:0}
.eq-modal-plantel{grid-column:1/-1;border-top:1px solid var(--border);padding-top:8px}
.eq-metrics-layout{grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);gap:10px}
.eq-list-grid{grid-template-columns:minmax(0,1fr) minmax(64px,.45fr);column-gap:5px}
.eq-list-label-cell{flex-direction:column;align-items:flex-start;gap:3px}
.eq-list-label-main,.eq-list-label-sub,.eq-list-value-cell,.eq-match-teams{white-space:normal;overflow-wrap:anywhere}
.eq-match-row{flex-wrap:wrap}.eq-match-teams{min-width:100px}
.eq-plantel-grid{grid-template-columns:repeat(auto-fill,minmax(90px,1fr))}
.eq-plantel-nombre{white-space:normal;overflow:visible;overflow-wrap:anywhere;line-height:1.4}
.eq-modal-hero-info{min-width:0}.eq-modal-hero-info h2{overflow-wrap:anywhere}
@media(max-width:1100px){.eq-metrics-layout{display:flex;flex-direction:column}.eq-trio-grid{width:100%}}
@media(max-width:700px){.eq-modal-split,.eq-modal-split.sin-plantel{grid-template-columns:minmax(0,1fr)}.eq-stat-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:550px){.tournament-portal .stat-grid{grid-template-columns:minmax(0,1fr)}.tournament-portal .stat-value-badge{max-width:none}.portal-crest{flex-basis:58px}}

/* Selector de jornada compacto, junto al título del fixture. */
#tab-fixtures>.portal-section-head{flex-wrap:wrap;justify-content:flex-start}
#tab-fixtures>.portal-section-head h2{margin-right:auto}
.fixture-round-controls{width:240px;max-width:100%;gap:6px!important;margin-bottom:0!important}
.fixture-round-controls select{min-width:0;width:160px;padding:6px 8px!important;font-size:12px!important;border-radius:4px!important}
.fixture-round-controls button{width:28px!important;height:28px!important;border-radius:4px!important}
@media(max-width:550px){#tab-fixtures>.portal-section-head .fixture-round-controls{margin-left:auto}}

/* Partidos y posiciones comparten la primera fila del portal. */
 .tournament-portal #torneo-stats .stat-grid{gap:10px;padding:12px}
.tournament-portal #torneo-stats .stat-card{background:var(--bg3);border:0;border-radius:7px;padding:8px 10px;box-shadow:0 2px 5px rgba(0,0,0,.08)}
.tournament-portal #torneo-stats .stat-card>div[style]{justify-content:flex-end;text-align:right;gap:6px!important;margin-bottom:5px}
.tournament-portal #torneo-stats .stat-label{font-size:10px;line-height:1.4}
.tournament-portal #torneo-stats .stat-team{font-size:12px}
.tournament-portal #torneo-stats .stat-value-badge{font-size:11px}
.tournament-portal #torneo-stats .stat-icon{flex-shrink:0}
.tournament-portal #torneo-stats .stat-team img{object-fit:contain;flex-shrink:0}
.tournament-portal .portal-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px}
.tournament-portal .portal-side{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;margin-bottom:22px;align-items:start}
.tournament-portal .portal-side>#tab-estadisticas{grid-column:1/-1}
.tournament-portal .fixtures-date-grid{grid-template-columns:minmax(0,340px)}
@media(max-width:800px){.tournament-portal .portal-grid,.tournament-portal .portal-side{grid-template-columns:minmax(0,1fr)}}

/* Fixture y goleadoras a la izquierda; posiciones y resumen a la derecha. */
.portal-fixture-column,.portal-standings-column{display:flex;flex-direction:column;gap:16px;min-width:0}
.portal-fixture-column #torneo-stats .stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.portal-side:empty{display:none}
.tournament-portal .portal-fixture-column #tab-fixtures{margin-bottom:0}
.tournament-portal .fixtures-date-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.tournament-portal .portal-fixture-column #tab-goleadoras .table-wrap{max-height:500px}
.tournament-portal .portal-side{display:block}
@media(max-width:1100px) and (min-width:801px){.tournament-portal .fixtures-date-grid{grid-template-columns:minmax(0,1fr)}}
@media(max-width:550px){.tournament-portal .fixtures-date-grid{grid-template-columns:minmax(0,1fr)}}

.club-mark{display:inline-flex;align-items:center;justify-content:center;vertical-align:middle;margin-right:8px;flex-shrink:0}
.club-mark img{object-fit:contain;margin:0!important}
.club-mark-fallback{display:flex;width:100%;height:100%;align-items:center;justify-content:center;border-radius:50%;background:var(--grad);font-size:9px;font-weight:800;color:#fff}
.club-mark-fallback[hidden]{display:none}

.fixtures-date-grid .badge-live{grid-column:1/-1;grid-row:2;justify-self:center;font-size:10px;color:var(--o);padding:3px 6px;border-radius:4px;background:rgba(255,138,0,.09)}

.scorers-source{font-size:10px;color:var(--t2);padding:0 12px 8px;margin:0}.scorers-source a{color:inherit}
