/* ======================================================================
   v4: barra superior, navegación por secciones, barra inferior en el móvil
   y bloques nuevos (escenarios, dificultad, tendencia, comparador, ayuda).
   Sin min()/max()/clamp(): html2canvas (botón Compartir) no los entiende.
   ====================================================================== */
:root {
    --brand: #2c3e50;
    --brand-2: #34618a;
    --accent: #3498db;
    --radius: 12px;
    --shadow: 0 1px 3px rgba(0, 0, 0, .08), 0 4px 14px rgba(0, 0, 0, .05);
}
body.dark-mode { --brand: #1b2733; --brand-2: #25435f; --shadow: 0 1px 3px rgba(0, 0, 0, .5); }

body { padding: 0; background: var(--bg-color); }
#app { min-height: 100vh; }
.container { margin: 16px auto 24px; border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- Barra superior ---------- */
.app-bar { position: sticky; top: 0; z-index: 500; color: #fff;
    background: linear-gradient(120deg, var(--brand), var(--brand-2)); box-shadow: 0 2px 10px rgba(0, 0, 0, .25); }
.app-bar-in { max-width: 1500px; margin: 0 auto; padding: 10px 20px; display: flex; align-items: center; gap: 14px; }
.app-brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.2rem; white-space: nowrap; }
.brand-ball { font-size: 1.5rem; }
.league-btn { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; text-align: left;
    background: rgba(255, 255, 255, .14); color: #fff; border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 10px; padding: 7px 12px; font-weight: 600; }
.league-btn:hover, .league-btn.open { background: rgba(255, 255, 255, .24); }
.league-btn-l { font-size: .65rem; text-transform: uppercase; letter-spacing: .08em; opacity: .75; }
.league-btn-n { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .95rem; }
.league-btn .caret { opacity: .8; transition: transform .2s; }
.league-btn.open .caret { transform: rotate(180deg); }
.app-actions { display: flex; align-items: center; gap: 8px; }
.bar-btn { width: 40px; height: 40px; padding: 0; border-radius: 50%; font-size: 1.05rem;
    background: rgba(255, 255, 255, .14); color: #fff; border: 1px solid rgba(255, 255, 255, .25); }
.bar-btn:hover { background: rgba(255, 255, 255, .28); }
.app-bar .settings-panel { color: var(--text-color); font-weight: 400; }

/* ---------- Panel de ligas ---------- */
.league-drawer { border: 1px solid var(--border-color); border-radius: var(--radius); padding: 14px;
    margin-bottom: 14px; background: var(--th-bg); }
.league-drawer[hidden] { display: none; }
.drawer-title { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; opacity: .7; margin: 4px 0 8px; }
.league-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.league-chip { display: inline-flex; align-items: stretch; border: 1px solid var(--border-color); border-radius: 999px;
    background: var(--card-bg); overflow: hidden; max-width: 100%; }
.league-chip.active { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.league-chip .chip-main { background: transparent; color: var(--text-color); font-weight: 600; padding: 8px 6px 8px 14px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.league-chip.active .chip-main { color: var(--accent); }
.league-chip .chip-x { background: transparent; color: var(--text-color); opacity: .5; padding: 8px 12px 8px 6px; font-weight: 400; }
.league-chip .chip-x:hover { opacity: 1; color: #e74c3c; background: transparent; }
.league-chip .chip-main:hover { background: var(--hover-bg); }
.league-drawer .rffm-selector { background: var(--card-bg); margin-bottom: 4px; }

/* ---------- Resumen de la liga ---------- */
.league-info { border-left: none; border-radius: var(--radius); padding: 10px 14px; }
.li-stats { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .9rem; }
.li-progress { height: 6px; border-radius: 3px; background: rgba(127, 140, 141, .25); margin: 8px 0 4px; overflow: hidden; }
.li-progress span { display: block; height: 100%; background: var(--accent); border-radius: 3px; }
.li-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.li-action { flex: 1 1 260px; min-width: 0; display: flex; align-items: center; gap: 12px; text-align: left; text-decoration: none;
    padding: 12px 16px; border-radius: 10px; font-size: 1rem; line-height: 1.25; cursor: pointer; box-sizing: border-box; }
.li-action-ico { font-size: 1.6rem; line-height: 1; }
.li-action-txt { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.li-action-txt b { font-size: 1.05rem; }
.li-action-txt small { font-size: .8rem; font-weight: 400; opacity: .9; }
.li-refresh { background: var(--accent); color: #fff; border: 1px solid var(--accent); box-shadow: var(--shadow); }
.li-refresh:hover { background: #2980b9; }
.li-refresh.stale { background: #e67e22; border-color: #e67e22; }
.li-rffm { background: var(--card-bg); color: var(--text-color); border: 1px solid var(--border-color); }
.li-rffm:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Resultados nuevos ---------- */
.li-fresh { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: rgba(39, 174, 96, .12); border: 1px solid rgba(39, 174, 96, .45); font-size: .9rem; }
.li-fresh-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.li-fresh-close { background: transparent; color: var(--text-color); opacity: .6; padding: 2px 8px; font-size: 1rem; font-weight: 400; }
.li-fresh-close:hover { background: transparent; opacity: 1; }
.li-fresh-list { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px 18px; }
.li-fresh-list li { flex: 1 1 280px; min-width: 0; overflow-wrap: anywhere; }
.li-fresh-list li.mine { font-weight: 700; }
.lf-j { display: inline-block; min-width: 26px; font-size: .75rem; opacity: .65; }
.li-fresh-moves { margin-top: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.lf-move { padding: 1px 8px; border-radius: 10px; background: var(--card-bg); border: 1px solid var(--border-color); font-size: .8rem; }
.lf-move.up { color: #27ae60; } .lf-move.down { color: #e74c3c; } .lf-move.mine { font-weight: 700; }
.mc-tag.new, .new-badge { background: #27ae60; color: #fff; }
.new-badge { display: inline-block; font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 1px 6px; border-radius: 10px; vertical-align: middle; }
.match-card.is-new { border-color: #27ae60; box-shadow: 0 0 0 1px #27ae60 inset; }
tr.row-moved td:first-child { box-shadow: inset 4px 0 0 #27ae60; }

/* ---------- Enlaces a la RFFM ---------- */
.rffm-line { margin: 8px 0 14px; text-align: right; }
.rffm-link[hidden] { display: none; }
.dash-main .rffm-link { display: inline-block; margin-top: 8px; white-space: normal; }

/* ---------- Deslizar para actualizar ---------- */
html, body { overscroll-behavior-y: contain; }
.ptr { position: fixed; top: -48px; left: 50%; width: 220px; margin-left: -110px; z-index: 900; box-sizing: border-box;
    display: flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 12px; border-radius: 999px;
    background: var(--brand); color: #fff; font-size: .85rem; font-weight: 600; box-shadow: 0 4px 14px rgba(0, 0, 0, .3);
    opacity: 0; pointer-events: none; }
.ptr.show { opacity: 1; }
.ptr.ready { background: #27ae60; }
.ptr-ico { display: inline-block; transition: transform .15s; }
.ptr.ready .ptr-ico { transform: rotate(180deg); }

/* ---------- Navegación: secciones ---------- */
.main-nav { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 14px 0 12px; }
.nav-btn { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 8px;
    background: var(--th-bg); color: var(--text-color); border: 1px solid var(--border-color);
    border-radius: var(--radius); font-size: 1rem; font-weight: 700; }
.nav-btn:hover { background: var(--hover-bg); }
.nav-btn.active { background: var(--brand); color: #fff; border-color: var(--brand); box-shadow: var(--shadow); }
.nav-ico { font-size: 1.25rem; }
.bottom-nav { display: none; }

/* Pestañas de cada sección: píldoras */
.tabs { box-shadow: none; gap: 8px; margin-bottom: 16px; padding-bottom: 2px; }
.tabs[hidden] { display: none; }
.tab-btn, .tab-btn.active { border: 1px solid var(--border-color); border-radius: 999px; padding: 8px 16px;
    background: var(--card-bg); opacity: 1; font-size: .9rem; margin: 0; }
.tab-btn:hover { background: var(--hover-bg); }
.tab-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------- Tarjetas y títulos ---------- */
.dash-card, .chart-box, .stat-card, .match-card { border-radius: var(--radius); }
.dash-card { box-shadow: var(--shadow); }
.section-head h3, .tab-content > h3 { padding-left: 10px; border-left: 4px solid var(--accent); }

/* ---------- Tendencia en la clasificación ---------- */
.pos-cell { white-space: nowrap; }
.pos-n { display: inline-block; min-width: 18px; }
.trend { font-size: .68rem; font-weight: 700; margin-left: 3px; }
.trend.up { color: #27ae60; }
.trend.down { color: #e74c3c; }
.trend.same { color: #95a5a6; }

/* ---------- Escenarios de la próxima jornada ---------- */
.scn-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 6px; }
.scn { border: 1px solid var(--border-color); border-top: 5px solid #95a5a6; border-radius: var(--radius);
    padding: 12px; text-align: center; background: var(--card-bg); }
.scn-win { border-top-color: #27ae60; }
.scn-draw { border-top-color: #f1c40f; }
.scn-loss { border-top-color: #e74c3c; }
.scn-label { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; opacity: .7; }
.scn-pos { font-size: 2rem; font-weight: 800; line-height: 1.2; }
.scn-pos .trend { font-size: .8rem; vertical-align: middle; }
.scn-pts { font-weight: 600; }
.scn-prob { font-size: .8rem; opacity: .7; }

/* ---------- Dificultad del calendario ---------- */
.dif-strip { display: flex; flex-wrap: wrap; gap: 6px; }
.dif { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; width: 44px; height: 44px;
    border-radius: 8px; font-size: .72rem; font-weight: 700; color: #1d2b36; cursor: default; }
.dif-v { font-weight: 400; opacity: .8; }
.dif-easy { background: #7fd1a1; }
.dif-mid { background: #f5d76e; }
.dif-hard { background: #f1948a; }
.dif-na { background: var(--border-color); }
.dif-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 8px; }
.dif-dot { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -1px; }

/* ---------- Comparador ---------- */
.compare-bar select { flex: 1; min-width: 0; }
.compare-bar .vs { font-weight: 800; opacity: .6; }
.cmp-head { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: center; margin-bottom: 6px; }
.cmp-team { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; min-width: 0; }
.cmp-mid { text-align: center; min-width: 240px; }
.cmp-score { font-size: 1.8rem; font-weight: 800; color: var(--accent); }
#h2h_info { border-left: none; border-radius: var(--radius); padding: 14px; }

/* ---------- Bienvenida y ayuda ---------- */
.welcome { text-align: center; padding: 26px 10px; }
.welcome-ball { font-size: 3rem; }
.welcome h2 { margin: 6px 0; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 20px auto; max-width: 820px; }
.step { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 16px 12px;
    border: 1px solid var(--border-color); border-radius: var(--radius); background: var(--th-bg); }
.step-n { width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800;
    display: flex; align-items: center; justify-content: center; }
.welcome .btn-success { padding: 12px 26px; font-size: 1rem; border-radius: 999px; }
.help-list { padding-left: 20px; line-height: 1.6; font-size: .92rem; }
.glossary { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: .9rem; margin: 0; }
.glossary dt { font-weight: 700; white-space: nowrap; }
.glossary dd { margin: 0; }
#modal_body h4 { margin: 16px 0 6px; }

/* ---------- Tablet ---------- */
@media (max-width: 900px) {
    .cmp-head { grid-template-columns: 1fr 1fr; }
    .cmp-mid { grid-column: 1 / -1; grid-row: 2; min-width: 0; }
}

/* ---------- Móvil ---------- */
@media (max-width: 768px) {
    body { padding-bottom: 68px; }
    .container { margin: 0; border-radius: 0; box-shadow: none; }
    .app-bar-in { padding: 8px 10px; gap: 8px; }
    .brand-name { display: none; }
    .bar-btn { width: 38px; height: 38px; }
    .app-actions { gap: 6px; }
    /* Las secciones pasan a una barra fija abajo, como en una app */
    .main-nav { display: none; }
    .bottom-nav { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 600;
        background: var(--card-bg); border-top: 1px solid var(--border-color); box-shadow: 0 -2px 10px rgba(0, 0, 0, .12); }
    .bottom-nav .nav-btn { flex-direction: column; gap: 2px; padding: 8px 2px 10px; border: none; border-radius: 0;
        background: transparent; font-size: .68rem; font-weight: 600; opacity: .65; box-shadow: none; }
    .bottom-nav .nav-btn.active { background: transparent; color: var(--accent); opacity: 1; box-shadow: inset 0 3px 0 var(--accent); }
    .bottom-nav .nav-ico { font-size: 1.35rem; }
    .tabs { margin-top: 12px; }
    #toasts { bottom: 78px; }
    .scn-grid { gap: 8px; }
    .scn { padding: 10px 4px; }
    .scn-pos { font-size: 1.5rem; }
    .scn-prob { font-size: .7rem; }
    .steps { grid-template-columns: 1fr; }
    .glossary { grid-template-columns: 1fr; gap: 2px; }
    .glossary dd { margin-bottom: 8px; }
    .compare-bar .vs { flex: 1 1 100%; text-align: center; }
    .compare-bar button { flex: 1; }
    .dif { width: 40px; height: 40px; }
}

/* ---------- Globo de ayuda (rachas) ---------- */
.tip { position: fixed; left: 0; top: 0; z-index: 10001; max-width: 280px; box-sizing: border-box; padding: 6px 10px; border-radius: 6px;
    background: #2c3e50; color: #fff; font-size: .8rem; font-weight: 600; line-height: 1.3; text-align: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .35); pointer-events: none; }
.tip[hidden] { display: none; }
body.dark-mode .tip { background: #ecf0f1; color: #1b2733; }
.form-badge[data-tip] { cursor: help; }

/* Globos de resultado nuevo: saltan arriba, centrados, la primera vez que se ve un resultado */
#balloons { position: fixed; top: 62px; left: 0; right: 0; z-index: 10000; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 0 12px; pointer-events: none; }
.balloon { position: relative; box-sizing: border-box; width: 340px; max-width: 100%; padding: 10px 34px 10px 14px; border-radius: 16px; cursor: pointer; pointer-events: auto;
    background: var(--card-bg); color: var(--text-color); border: 2px solid var(--accent); box-shadow: 0 8px 26px rgba(0, 0, 0, .28);
    animation: balloon-pop .55s cubic-bezier(.2, 1.5, .4, 1) both; transition: opacity .3s, transform .3s; }
.balloon.mine { border-color: #f1c40f; }
.balloon.hide { opacity: 0; transform: translateY(-14px) scale(.9); }
.balloon:last-child::after { content: ''; position: absolute; left: 28px; bottom: -9px; width: 14px; height: 14px; background: var(--card-bg);
    border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(45deg); }
.balloon.mine:last-child::after { border-color: #f1c40f; }
.bl-head { display: flex; flex-wrap: wrap; gap: 2px 8px; align-items: baseline; font-size: .78rem; font-weight: 700; color: var(--accent); margin-bottom: 4px; }
.bl-league { font-weight: 400; color: var(--text-color); opacity: .65; }
.bl-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 2px 0; font-size: .92rem; }
.bl-team { display: flex; align-items: center; gap: 6px; min-width: 0; }
.bl-team span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bl-team .crest { width: 20px; height: 20px; object-fit: contain; flex: none; }
.bl-row b { font-size: 1.15rem; opacity: .75; }
.bl-row b.win { opacity: 1; color: #27ae60; }
.bl-note { margin-top: 4px; font-size: .72rem; opacity: .7; }
.bl-close { position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; padding: 0; border: none; border-radius: 50%; background: transparent; color: inherit; opacity: .6; font-size: .9rem; cursor: pointer; box-shadow: none; }
@keyframes balloon-pop { 0% { opacity: 0; transform: translateY(-40px) scale(.5); } 60% { opacity: 1; transform: translateY(6px) scale(1.06); } 100% { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .balloon { animation: none; } }

/* ---------- Scouting ---------- */
.sc-head { display: flex; align-items: center; margin: 6px 0 12px; }
.sc-head h3 { margin: 0 0 2px; }
.sc-wait { padding: 30px 0; }
.sc-keys { list-style: none; margin: 6px 0 12px; padding: 0; font-size: .9rem; }
.sc-keys li { display: flex; gap: 8px; padding: 6px 0; border-bottom: 1px dashed var(--border-color); line-height: 1.35; }
.sc-keys li > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.sc-ico { flex: none; width: 22px; text-align: center; }
#scout_table td { white-space: nowrap; }
#scout_table .sc-name { font-weight: 600; }
.sc-flag { cursor: help; margin-left: 2px; }
.sc-dot { display: inline-flex; justify-content: center; align-items: center; box-sizing: border-box; width: 20px; height: 20px; border-radius: 3px;
    font-size: .7rem; font-weight: 700; color: #fff; }
.sc-dot[data-tip] { cursor: help; }
.sc-t { background: #27ae60; }
.sc-s { background: #e67e22; }
.sc-u { background: transparent; color: #e67e22; box-shadow: inset 0 0 0 1.5px #e67e22; }
.sc-n { background: transparent; color: var(--text-color); opacity: .45; box-shadow: inset 0 0 0 1px var(--border-color); }
.sc-g { box-shadow: 0 0 0 2px #f1c40f; }
.sc-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 12px; }
.sc-chip { background: var(--bg-color); color: var(--text-color); border: 1px solid var(--border-color); border-radius: 16px; padding: 5px 12px; font-size: .82rem; font-weight: 600; }
.sc-chip small { font-weight: 400; opacity: .7; }
.sc-times { max-width: 520px; margin: 6px 0 14px; }
.sc-time { display: flex; align-items: center; gap: 10px; padding: 3px 0; font-size: .82rem; }
.sc-min { flex: none; width: 62px; text-align: right; opacity: .75; }
.sc-tracks { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sc-track { display: flex; align-items: center; gap: 6px; height: 12px; }
.sc-track b { font-size: .75rem; }
.sc-bar { display: block; height: 10px; border-radius: 3px; }
.sc-bar.gf, .sc-key.gf { background: #27ae60; }
.sc-bar.ga, .sc-key.ga { background: #e74c3c; }
.sc-key { display: inline-block; width: 10px; height: 10px; border-radius: 2px; }
.sc-player h3 { margin: 4px 30px 10px 0; }
.sc-is-key { color: #d4880f; }
.sc-is-hot { color: #e74c3c; }
body.dark-mode .sc-is-key { color: #f5b041; }
body.dark-mode .sc-is-hot { color: #ff7b6b; }
#scout_table .sc-why { font-size: .72rem; font-weight: 400; opacity: .8; white-space: normal; max-width: 260px; line-height: 1.25; margin-top: 1px; }
.sc-pitch { max-width: 440px; margin: 8px 0 6px; padding: 14px 6px; border-radius: 10px; display: flex; flex-direction: column; gap: 12px;
    background: repeating-linear-gradient(180deg, #2e8b57 0, #2e8b57 36px, #339966 36px, #339966 72px); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .55); }
.sc-line { display: flex; justify-content: space-around; gap: 4px; }
.sc-pl { flex: 0 1 76px; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 3px; cursor: pointer; }
.sc-shirt { width: 30px; height: 30px; border-radius: 50%; background: #fff; color: #1b2733; font-weight: 800; font-size: .8rem;
    display: flex; align-items: center; justify-content: center; box-shadow: 0 1px 3px rgba(0, 0, 0, .4); }
.sc-shirt.gk { background: #f1c40f; }
.sc-pn { font-size: .66rem; font-weight: 600; line-height: 1.15; text-align: center; background: rgba(255, 255, 255, .92); color: #1b2733;
    border-radius: 4px; padding: 1px 4px; max-width: 100%; box-sizing: border-box; overflow-wrap: anywhere; }
.sc-pitch .sc-pn.sc-is-key { background: #f5b041; color: #1b2733; }
.sc-pitch .sc-pn.sc-is-hot { background: #ff8a7a; color: #1b2733; }
.sc-up { color: #27ae60; font-weight: 700; }
.sc-down { color: #e74c3c; font-weight: 700; }
.sc-cmp th { white-space: normal; font-size: .8rem; }
.sc-cmp td b { color: var(--accent); }
.sc-why-box { margin: -4px 0 10px; font-size: .85rem; padding: 6px 10px; border-radius: 8px; background: rgba(241, 196, 15, .12); }
.sc-player .kpi small { font-size: .9rem; opacity: .6; }

.modal-box { box-sizing: border-box; }

/* ---------- Jornada de descanso ---------- */
#standings_table.no-rests .rest-cell { display: none; }
.rest-cell { white-space: nowrap; }
.rest-chip { display: inline-block; padding: 1px 5px; margin: 1px; border-radius: 4px; font-size: .72rem; font-weight: 700; cursor: help; }
.rest-chip.done { background: rgba(39, 174, 96, .15); color: #1e8449; }
.rest-chip.todo { border: 1px solid #95a5a6; color: inherit; opacity: .85; }
body.dark-mode .rest-chip.done { color: #58d68d; }
tr.rest-row td { opacity: .7; font-style: italic; }
@media (max-width: 768px) {
    .rest-chip.old { display: none; }
}

/* ---------- Situación matemática ---------- */
.math-badge { margin-right: 4px; cursor: help; }

/* ---------- Tiempo del partido ---------- */
.mc-wx:empty { display: none; }
.mc-wx { margin: 6px 0 2px; padding: 6px 8px; border-radius: 8px; background: var(--hover-bg); font-size: .85rem; }
.wx-line { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; cursor: help; }
.wx-icon { font-size: 1.15rem; }
.wx-desc { opacity: .8; }
.wx-more { margin-left: auto; opacity: .75; white-space: nowrap; }
.wx-alerts { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.wx-alert { padding: 2px 7px; border-radius: 10px; font-size: .74rem; font-weight: 700; color: #fff; background: #7f8c8d; }
.wx-storm { background: #8e44ad; }
.wx-snow { background: #2e86c1; }
.wx-rain { background: #2471a3; }
.wx-rain-maybe { background: #5d6d7e; }
.wx-cold { background: #1a5276; }
.wx-cool { background: #566573; }
.wx-hot { background: #c0392b; }
.wx-warm { background: #ca6f1e; }
.wx-wind { background: #117a65; }
.wx-fog { background: #717d7e; }

/* ---------- Rivales pendientes de mi equipo ---------- */
#standings_table.no-vs .vs-cell { display: none; }
.vs-cell { white-space: nowrap; }
.vs-badge { margin: 0 1px; font-size: .85rem; cursor: help; }
