/* Página de jugador: perfil a dos columnas, más grande */
.playerpage { max-width: 1180px; margin: 0 auto; }
.playerpage .pp-back, .mpage .pp-back { width: auto; height: 44px; padding: 0 18px; border-radius: 999px; font-size: 1rem; font-weight: 800; margin-bottom: 14px; }
.playerpage .pp-back::after, .mpage .pp-back::after { content: " Volver"; font-size: .95rem; }
.playerpage .ficha { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; font-size: 1.06rem; }
.playerpage .ficha-side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
@media (min-width: 900px) { .playerpage .ficha { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }
.playerpage .pp-status { padding: 8px 12px; }
.playerpage .pp-status-v { font-size: .98rem; }
.playerpage .ficha-head-center { background: var(--card-solid, rgba(255,255,255,.04)); border: 1px solid var(--border); border-radius: 22px; padding: 22px 16px 20px; gap: 6px; margin: 0; }
.playerpage .ficha-head-center .mcard-photo { width: 116px; height: 116px; margin: 0 auto 10px; }
.playerpage .ficha-head-center .mcard-img { width: 100%; height: 100%; }
.playerpage .ficha-name { font-size: 2.1rem; line-height: 1.1; }
.playerpage .ficha-team { font-size: 1.05rem; }
.playerpage .ficha-team img { width: 26px; height: 26px; }
.playerpage .ficha-val { font-size: 1.9rem; font-weight: 800; margin-top: 8px; }
.playerpage .cmp-trend { font-size: 1.05rem; }
.ficha-next { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; margin-top: 12px; text-align: left; }
.ficha-next .fn-box { background: rgba(34,197,94,.08); border: 1px solid var(--border); border-radius: 14px; padding: 10px 12px; }
.ficha-next .fn-k { font-size: .62rem; font-weight: 800; letter-spacing: .05em; color: var(--muted); }
.ficha-next .fn-v { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 1.1rem; margin-top: 2px; }
.playerpage .ficha-stats { gap: 12px; margin: 0; }
.playerpage .ficha-stat { padding: 16px 10px; border-radius: 16px; }
.playerpage .fs-val { font-size: 1.6rem; }
.playerpage .fs-lab { font-size: .85rem; }
.playerpage .ficha-pct { font-size: .95rem; }
.playerpage .estado-title { font-size: 1.15rem; }
.playerpage .fm-row { font-size: 1rem; padding: 6px 0; }
.playerpage .fv-trow, .playerpage .fv-thead { font-size: .95rem; }
/* Listas de jugadores un poco más grandes en toda la web */
.merc-row { font-size: .98rem; padding: 9px 0; gap: 12px; }
.merc-row-photo, .merc-row-img { width: 46px; height: 46px; }
.merc-row-meta { font-size: .82rem; }
.merc-row-crest { width: 17px; height: 17px; }

/* Demarcación */
.ficha-dem { width: 100%; background: var(--soft, rgba(127,127,127,.1)); border-radius: 14px; padding: 10px 12px; margin-top: 12px; }
.ficha-dem-k { font-weight: 800; font-size: .8rem; text-align: center; margin-bottom: 6px; }
.ficha-dem-bar { display: flex; gap: 6px; align-items: stretch; height: 30px; }
.ficha-dem-main { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; border-radius: 9px; color: #fff; font-weight: 800; font-size: .82rem; background: #de1b1b; }
.ficha-dem-ab { font-size: .7rem; opacity: .9; }
.ficha-dem-sec { display: flex; align-items: center; justify-content: center; width: 34px; border-radius: 9px; color: #fff; font-weight: 800; font-size: .7rem; background: #10af00; }
.ficha-dem-main.posb-por, .ficha-dem-sec.posb-por { background: #16a34a; }
.ficha-dem-main.posb-def, .ficha-dem-sec.posb-def { background: #b45309; }
.ficha-dem-main.posb-med, .ficha-dem-sec.posb-med { background: #0891b2; }
.ficha-dem-main.posb-del, .ficha-dem-sec.posb-del { background: #be123c; }
/* Próximos partidos */
.ficha-fix { width: 100%; background: var(--soft, rgba(127,127,127,.1)); border-radius: 14px; padding: 10px 8px; margin-top: 10px; }
.ficha-fix-k { font-weight: 800; font-size: .8rem; text-align: center; margin-bottom: 8px; }
.ficha-fix-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.ficha-fix-it { text-align: center; }
.ffx-d { font-size: .68rem; color: var(--muted); font-weight: 700; margin-bottom: 4px; }
.ffx-r { display: flex; align-items: center; justify-content: center; gap: 5px; }
.ffx-ha { font-size: 1.05rem; }
.ffx-j { background: #0f172a; color: #fff; font-weight: 800; font-size: .72rem; border-radius: 6px; padding: 3px 6px; }
.ffx-r img { width: 26px; height: 26px; object-fit: contain; }
@media (max-width: 420px) { .ffx-r { gap: 3px; } .ffx-r img { width: 22px; height: 22px; } .ffx-d { font-size: .62rem; } }
/* Noticias */
.ficha-news { grid-column: 1 / -1; margin-top: 6px; }
.ficha-news-h { font-family: 'Bricolage Grotesque', sans-serif; font-size: 1.15rem; margin: 6px 0 10px; }
.ficha-news-grid { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .ficha-news-grid { grid-template-columns: 1.4fr 1fr 1fr; } .ficha-news-grid a:first-child { grid-row: span 2; } }
.ficha-news-it { position: relative; display: block; min-height: 150px; border-radius: 16px; overflow: hidden; color: #fff; text-decoration: none; background: #222; }
.ficha-news-it img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.55); }
.ficha-news-t { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px; font-weight: 800; font-size: .92rem; line-height: 1.2; background: linear-gradient(0deg, rgba(0,0,0,.78), transparent); }
.ficha-news-t small { display: block; font-weight: 600; opacity: .8; margin-top: 4px; }

.ffx-ha{display:inline-block;font:700 9px/1 inherit;letter-spacing:.04em;padding:3px 6px;border-radius:999px;vertical-align:middle}
.ffx-ha.h{background:rgba(22,163,74,.16);color:#16a34a}
.ffx-ha.a{background:rgba(99,102,241,.16);color:#6366f1}
.fm-pend{opacity:.8;font-style:italic}

svg.ffx-ha{width:20px;height:20px;padding:3px;box-sizing:border-box;border-radius:50%;vertical-align:middle;margin-right:2px;font-size:0;letter-spacing:0}
svg.ffx-ha path{fill:currentColor}
svg.ffx-ha.h{background:rgba(22,163,74,.16);color:#16a34a}
svg.ffx-ha.a{background:rgba(99,102,241,.16);color:#6366f1}

.ficha-pron-pct{display:inline-block;margin-left:8px;padding:2px 9px;border-radius:999px;background:rgba(34,197,94,.16);color:#16a34a;font-weight:800;font-size:.9em;vertical-align:middle}

/* Próximos partidos: que los 4 quepan siempre dentro del recuadro */
.ficha-fix { box-sizing: border-box; overflow: hidden; }
.ficha-fix-row { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.ficha-fix-it { min-width: 0; }
.ffx-d { white-space: nowrap; letter-spacing: -.01em; }
.ffx-r { gap: 2px; min-width: 0; }
.ffx-r svg.ffx-ha { width: 16px; height: 16px; padding: 2px; margin-right: 0; flex: none; }
.ffx-j { padding: 3px 4px; font-size: .68rem; }
.ffx-r img { width: 20px; height: 20px; flex: none; }
@media (max-width: 420px) { .ffx-d { font-size: .56rem; } .ffx-r img { width: 18px; height: 18px; } .ffx-j { font-size: .62rem; padding: 3px 3px; } .ffx-r svg.ffx-ha { width: 14px; height: 14px; } }

/* Próximos 4 partidos: 2×2, cada uno con rival bien legible */
.ficha-fix-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ficha-fix-it { background: var(--card-solid, #fff); border: 1px solid var(--border); border-radius: 14px; padding: 8px 10px; text-align: left; }
.ffx-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.ffx-top .ffx-j { font-size: .72rem; padding: 3px 7px; }
.ffx-top svg.ffx-ha { width: 22px; height: 22px; padding: 3px; margin: 0; }
.ffx-mid { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ffx-mid img { width: 28px; height: 28px; flex: none; object-fit: contain; }
.ffx-rival { font: 800 .86rem/1.1 'Bricolage Grotesque', sans-serif; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ficha-fix-it .ffx-d { margin: 6px 0 0; font-size: .7rem; white-space: nowrap; }
@media (max-width: 420px) { .ficha-fix-it .ffx-d { font-size: .66rem; } .ffx-rival { font-size: .8rem; } }

/* === Ficha compacta (v-compact): posición en píldora fina + próximos partidos en una tira === */
.ficha-dem { background: none; padding: 0; margin-top: 8px; width: auto; }
.ficha-dem-bar { height: 26px; gap: 4px; justify-content: center; }
.ficha-dem-main { flex: 0 0 auto; padding: 0 14px; font-size: .76rem; border-radius: 999px; }
.ficha-dem-sec { width: 30px; border-radius: 999px; font-size: .66rem; }
.ficha-fix { background: none; padding: 0; margin-top: 8px; }
.ficha-fix-k { display: none; }
.ficha-fix-row { gap: 5px; }
.ficha-fix-it { background: var(--soft, rgba(127,127,127,.1)); border-radius: 12px; padding: 6px 2px 5px; display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 0; }
.ffx-top { display: flex; align-items: center; justify-content: center; gap: 4px; }
.ffx-top .ffx-j { font-size: .62rem; padding: 2px 5px; }
.ffx-top svg.ffx-ha { width: 16px; height: 16px; margin: 0; padding: 2px; }
.ffx-mid { display: flex; align-items: center; justify-content: center; max-width: 100%; }
.ffx-mid img { width: 26px; height: 26px; object-fit: contain; }
.ffx-mid .ffx-rival { display: none; }
.ficha-fix-it .ffx-d { font-size: .6rem; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.ficha-fix-row { grid-template-columns: repeat(4, minmax(0,1fr)) !important; }
@media (max-width: 420px) { .ficha-fix-it .ffx-d { font-size: .54rem; } .ficha-fix-row { gap: 4px; } }

.ficha-fix-it .ffx-d { white-space: normal; display: flex; flex-direction: column; align-items: center; line-height: 1.2; text-overflow: clip; }
.ficha-fix-it .ffx-d .ffx-h { font-weight: 800; color: var(--text, inherit); font-size: .66rem; }
.ficha-fix-it .ffx-d { text-align: center; width: 100%; }

/* ===== Ficha: próximos partidos, estadísticas y títulos de sección más visuales ===== */
.ficha-fix-k { display: block !important; font-size: .7rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); text-align: center; margin: 4px 0 8px; }
.playerpage .ficha-stats { gap: 10px; }
.playerpage .ficha-stat { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 16px 8px 14px; border-radius: 18px; border: 1px solid rgba(127,127,127,.22); }
.playerpage .ficha-stat::before { content: ""; position: absolute; inset: 0; opacity: .9; pointer-events: none; }
.playerpage .ficha-stat > * { position: relative; }
.playerpage .fs-val { font-family: 'Bricolage Grotesque', sans-serif; font-size: 2rem; font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.playerpage .fs-lab { font-size: .66rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.playerpage .fs-p::before { background: linear-gradient(160deg, rgba(34,197,94,.22), rgba(34,197,94,.03) 70%); }
.playerpage .fs-p .fs-val { color: #22c55e; }
.playerpage .fs-a::before { background: linear-gradient(160deg, rgba(245,158,11,.24), rgba(245,158,11,.03) 70%); }
.playerpage .fs-a .fs-val { color: #f59e0b; }
.playerpage .fs-m::before { background: linear-gradient(160deg, rgba(59,130,246,.24), rgba(59,130,246,.03) 70%); }
.playerpage .fs-m .fs-val { color: #3b82f6; }
.playerpage .dash-sect, .playerpage .estado-title { display: flex; align-items: center; gap: 10px; font-family: 'Bricolage Grotesque', sans-serif; font-size: 1.05rem; font-weight: 800; letter-spacing: -.01em; margin: 22px 0 10px; }
.playerpage .dash-sect::before, .playerpage .estado-title::before { content: ""; flex: none; width: 5px; height: 20px; border-radius: 3px; background: linear-gradient(180deg, #22c55e, #0f7a37); }
.playerpage .dash-sect::after, .playerpage .estado-title::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(127,127,127,.35), transparent); }
.playerpage .vchips { display: flex; gap: 8px; justify-content: center; margin-top: 10px; flex-wrap: wrap; }
.vchip { display: flex; flex-direction: column; align-items: center; padding: 6px 12px; border-radius: 12px; min-width: 92px; background: rgba(127,127,127,.12); }
.vchip .vc-l { font-size: .68rem; text-transform: uppercase; letter-spacing: .04em; opacity: .7; }
.vchip .vc-v { font-size: .9rem; }
.vchip.up { background: rgba(34,197,94,.16); color: #16a34a; }
.vchip.down { background: rgba(239,68,68,.16); color: #dc2626; }
.vchip.flat { color: var(--text-muted, #888); }

.fm-evs { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 5px; }
.fm-ev { font-size: .74rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: rgba(127,127,127,.14); white-space: nowrap; }
.fm-ev.ev-g, .fm-ev.ev-a { background: rgba(34,197,94,.18); color: #16a34a; }
.fm-ev.ev-cs { background: rgba(59,130,246,.16); color: #2563eb; }
.fm-ev.ev-bad { background: rgba(239,68,68,.16); color: #dc2626; }
.fm-ev.ev-rt { background: rgba(245,158,11,.18); color: #b45309; }

/* Comparador de jugadores (usa también .cmp2-* de mercado.css) */
.cmpx-panel .cmp2 { margin-top: 4px; }
.cmpx-slot { font: inherit; color: inherit; cursor: pointer; width: 100%; min-width: 0; min-height: 132px; justify-content: center; -webkit-tap-highlight-color: transparent; }
.cmpx-slot .cmp2-name { font-size: .95rem; line-height: 1.15; overflow-wrap: anywhere; }
.cmpx-slot.empty { border-style: dashed; background: transparent; gap: 4px; }
.cmpx-plus { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.7rem; font-weight: 700; color: var(--accent); background: rgba(34,197,94,.14); }
.cmpx-note { min-height: 0; margin: 6px 0 0; font-size: .82rem; font-weight: 700; color: var(--amber); text-align: center; }
.cmpx-note:empty { display: none; }
.cmpx-hint { text-align: center; margin: 14px 0; }
.cmpx-panel .cmp2-stats { margin-top: 8px; }
.cmpx-panel .cmp2-cell { font-size: .84rem; min-width: 0; overflow-wrap: anywhere; }
.cmpx-head { margin-top: 12px; padding: 0 2px 4px; font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--border); }
.cmpx-up { color: var(--accent); }
.cmpx-dn { color: var(--red); }
.cmpx-chips { display: inline-flex; flex-wrap: nowrap; gap: 2px; }
.cmp2-cell.right .cmpx-chips { justify-content: flex-end; }
.cmpx-chips .ficha-chip { padding: 2px 3px; min-width: 18px; justify-content: center; font-size: .7rem; border-radius: 6px; }
.cmpx-na { background: rgba(127,127,127,.18); color: var(--muted); }
.cmpx-warn { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; padding: 8px 12px; border-radius: 12px; background: rgba(245,158,11,.14); font-size: .8rem; font-weight: 700; }
.cmpx-retry { font: inherit; font-weight: 800; font-size: .8rem; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border); background: transparent; color: inherit; cursor: pointer; white-space: nowrap; }
.cmpx-src { text-align: center; margin: 8px 0 0; }
.cmpx-save { display: block; width: 100%; margin-top: 12px; padding: 12px; border-radius: 14px; border: 1px solid var(--border); background: rgba(34,197,94,.12); color: inherit; font: inherit; font-weight: 800; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.cmpx-save.on { background: rgba(127,127,127,.12); }
.cmpx-sv { display: flex; align-items: stretch; gap: 6px; margin-top: 8px; }
.cmpx-sv-open { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 14px; border: 1px solid var(--border); background: rgba(127,127,127,.08); color: inherit; font: inherit; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.cmpx-sv-ph { width: 30px; height: 30px; border-radius: 50%; overflow: hidden; flex: 0 0 auto; background: rgba(0,0,0,.25); display: flex; }
.cmpx-sv-ph img { width: 100%; height: 100%; object-fit: cover; }
.cmpx-sv-name { flex: 1; min-width: 0; font-size: .84rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmpx-sv-vs { font-size: .7rem; font-weight: 800; color: var(--muted); }
.cmpx-sv-del { width: 44px; flex: 0 0 auto; border-radius: 14px; border: 1px solid var(--border); background: transparent; color: var(--muted); font: inherit; font-size: 1rem; cursor: pointer; }

/* Comparador: legible en claro y oscuro + escudos + barras */
.pick-list .cmp-sugrow { color: inherit; border-top-color: var(--border); }
.pick-list { border-color: var(--border); }
@media (hover: hover) and (pointer: fine) { .pick-list .cmp-sugrow:hover { background: rgba(127,127,127,.12); } }
.pick-list .cmp-sugphoto { background: rgba(127,127,127,.18); }
.pick-list .cmp-sugname { color: inherit; }
.cmp-sugteam { display: flex; align-items: center; gap: 5px; }
.cmp-sugcrest { width: 15px; height: 15px; object-fit: contain; flex: 0 0 auto; }
.cmp-sugright { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; flex: 0 0 auto; }
.cmp-suginfo { font-size: .7rem; color: var(--muted); white-space: nowrap; }
.cmp-sug .cmp-sugrow { color: #e9eef6; }
.cmpx-photowrap { position: relative; }
.cmpx-crestbadge { position: absolute; right: -6px; bottom: -2px; width: 26px; height: 26px; padding: 2px; object-fit: contain; border-radius: 50%; background: #fff; border: 1px solid rgba(127,127,127,.35); box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.cmpx-slotval { margin-top: 6px; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 800; background: rgba(34,197,94,.14); color: var(--accent); }
.cmpx-team { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.cmp2-cell.right .cmpx-team { flex-direction: row-reverse; }
.cmpx-teamcrest { width: 20px; height: 20px; object-fit: contain; flex: 0 0 auto; }
.cmpx-teamname { min-width: 0; overflow-wrap: anywhere; }
.cmpx-panel .cmp2-cell.hasbar { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.cmpx-panel .cmp2-cell.hasbar.right { align-items: flex-end; }
.cmpx-bar { display: block; width: 100%; height: 4px; border-radius: 4px; background: rgba(127,127,127,.18); overflow: hidden; }
.cmpx-bar i { display: block; height: 100%; border-radius: 4px; background: rgba(127,127,127,.55); }
.cmpx-bar.win i { background: var(--accent); }
.cmp2-cell.right .cmpx-bar i { margin-left: auto; }
.cmpx-sv-crest { width: 20px; height: 20px; object-fit: contain; flex: 0 0 auto; }
.cmpx-sv-name { white-space: normal; line-height: 1.1; overflow-wrap: anywhere; }
.cmpx-sv-open { gap: 5px; padding: 8px; }
.cmpx-sv-ph { width: 28px; height: 28px; }
.cmpx-new { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--border); background: rgba(127,127,127,.1); color: inherit; font: inherit; font-weight: 800; font-size: .8rem; white-space: nowrap; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.cmpx-mhead { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 8px; }
.cmpx-range { font: inherit; font-size: .82rem; font-weight: 700; text-transform: none; letter-spacing: 0; padding: 7px 10px; border-radius: 10px; border: 1px solid var(--border); background: rgba(127,127,127,.08); color: inherit; }
.cmpx-matches { margin-top: 14px; }
.cmpx-mrow { grid-template-columns: 1fr 38px 1fr; align-items: start; }
.cmpx-mj { font-weight: 800; font-size: .8rem; color: var(--muted); align-self: center; }
.cmpx-panel .cmp2-cell.cmpx-mcell { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; font-weight: 600; }
.cmpx-panel .cmp2-cell.cmpx-mcell.right { align-items: flex-end; text-align: right; }
.cmpx-mrival { display: inline-flex; align-items: center; gap: 5px; font-size: .72rem; color: var(--muted); }
.cmp2-cell.right .cmpx-mrival { flex-direction: row-reverse; }
.cmpx-mcrest { width: 16px; height: 16px; object-fit: contain; flex: 0 0 auto; }
.cmpx-mline { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.cmp2-cell.right .cmpx-mline { flex-direction: row-reverse; }
.cmpx-mline .ficha-chip { padding: 2px 7px; min-width: 24px; justify-content: center; font-size: .8rem; border-radius: 8px; }
.cmpx-calc { font-style: italic; opacity: .85; }
.cmpx-mtag { font-size: .76rem; font-weight: 700; }
.cmpx-mtag.in { color: var(--accent); }
.cmpx-mtag.out { color: var(--red); }
.cmpx-mev { font-size: .72rem; color: var(--muted); font-weight: 600; }
.cmpx-mna { color: var(--muted); }
.cmpx-evs { display: flex; flex-wrap: wrap; gap: 5px; }
.cmp2-cell.right .cmpx-evs { justify-content: flex-end; }
.cmpx-evc { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font-size: .78rem; font-weight: 800; background: rgba(127,127,127,.14); }
.cmpx-evc.g { background: rgba(34,197,94,.18); }
.cmpx-evc.a { background: rgba(59,130,246,.18); }
.cmpx-evc.y { background: rgba(250,204,21,.24); }
.cmpx-evc.r { background: rgba(239,68,68,.18); }
.cmpx-sum { margin-top: 14px; }
.cmpx-sumblock { display: flex; gap: 10px; padding: 10px 0; border-top: 1px solid var(--border); }
.cmpx-sum .cmpx-head + .cmpx-sumblock { border-top: none; }
.cmpx-sumph { width: 34px; height: 34px; border-radius: 50%; overflow: hidden; flex: 0 0 auto; background: rgba(127,127,127,.2); display: flex; }
.cmpx-sumph img { width: 100%; height: 100%; object-fit: cover; }
.cmpx-sumbody { flex: 1; min-width: 0; }
.cmpx-sumname { font-weight: 800; font-size: .9rem; }
.cmpx-sumline { display: flex; gap: 8px; align-items: flex-start; margin-top: 5px; font-size: .84rem; line-height: 1.3; }
.cmpx-sumico { flex: 0 0 auto; width: 1.1em; text-align: center; }
.cmpx-head-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cmpx-head-row h2 { margin: 0; }
.cmpx-evc { padding: 4px 10px; font-size: .82rem; border: 1px solid transparent; }
.cmpx-evc .gi { width: 1.35em; height: 1.35em; vertical-align: -.3em; }
.cmpx-evc .gi.card { width: 1.05em; height: 1.35em; }
.cmpx-evc.g { background: rgba(34,197,94,.2); border-color: rgba(34,197,94,.45); }
.cmpx-evc.a { background: rgba(59,130,246,.2); border-color: rgba(59,130,246,.5); }
.cmpx-evc.y { background: rgba(250,204,21,.28); border-color: rgba(202,138,4,.55); }
.cmpx-evc.r { background: rgba(239,68,68,.2); border-color: rgba(239,68,68,.55); }
.cmpx-evc.g .gi { color: #15803d; } .cmpx-evc.a .gi { color: #2563eb; }
.cmpx-evs { gap: 6px; }
.cmpx-evc { padding: 3px 8px; font-size: .78rem; gap: 4px; }
.cmpx-evc .gi { width: 1.25em; height: 1.25em; }
.cmpx-evs { gap: 5px; }
.cmpx-fx { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; font-size: .8rem; font-weight: 800; background: rgba(59,130,246,.14); border: 1px solid rgba(59,130,246,.4); }
.cmpx-fx.done { background: rgba(127,127,127,.14); border-color: var(--border); color: var(--muted); }
.cmpx-fx .gi { width: 1.15em; height: 1.15em; vertical-align: -.2em; }
.cmpx-mj { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.cmpx-mj small { font-size: .6rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); }
.cmpx-mrow.cmpx-next { background: rgba(59,130,246,.05); border-radius: 10px; }
.cmpx-mrival.club-link, .cmpx-mrival .club-link, .cmpx-team.club-link, .cmpx-crestbadge.club-link { cursor: pointer; }
.cmpx-team.club-link:hover .cmpx-teamname { text-decoration: underline; }
.cmpx-fx { white-space: nowrap; font-size: .76rem; padding: 4px 9px; border-radius: 12px; }

.ficha-cmp { display:inline-flex; align-items:center; gap:6px; margin:10px auto 0; padding:8px 16px; border-radius:999px; border:1px solid var(--line,#d0d5dd); background:transparent; color:inherit; font:600 14px/1 inherit; cursor:pointer; }
.ficha-cmp:active { opacity:.7; }

/* Selector de jugador */
.pk-title { margin: 0 36px 12px 0; font-size: 18px; font-weight: 800; color: inherit; }
.pk-search { width: 100%; box-sizing: border-box; height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--border, rgba(127,127,127,.35)); background: rgba(127,127,127,.1); color: inherit; font: 500 16px/1 inherit; outline: none; -webkit-appearance: none; }
.pk-search:focus { border-color: #16a34a; background: transparent; }
.pk-chips { display: flex; gap: 6px; margin: 10px 0 4px; overflow-x: auto; }
.pk-chip { flex: 1 1 auto; padding: 8px 6px; border-radius: 999px; border: 1px solid var(--border, rgba(127,127,127,.35)); background: transparent; color: inherit; font: 700 13px/1 inherit; cursor: pointer; }
.pk-chip.on { background: #16a34a; border-color: #16a34a; color: #fff; }
.pk-list { max-height: 58vh; overflow-y: auto; margin: 4px -4px 0; -webkit-overflow-scrolling: touch; }
.pk-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 4px; border: 0; border-bottom: 1px solid rgba(127,127,127,.18); background: transparent; color: inherit; text-align: left; font: inherit; cursor: pointer; }
.pk-row:active { background: rgba(127,127,127,.14); }
@media (hover: hover) and (pointer: fine) { .pk-row:hover { background: rgba(127,127,127,.1); } }
.pk-photo { position: relative; flex: 0 0 46px; width: 46px; height: 46px; }
.pk-photo > img:first-child { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; background: rgba(127,127,127,.2); display: block; }
.pk-crest { position: absolute; right: -4px; bottom: -2px; width: 20px; height: 20px; object-fit: contain; background: #fff; border-radius: 50%; padding: 2px; box-sizing: border-box; box-shadow: 0 0 0 1px rgba(0,0,0,.12); }
.pk-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.pk-name { font-size: 16px; font-weight: 700; line-height: 1.15; color: inherit; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pk-sub { display: flex; align-items: center; gap: 6px; font-size: 13px; opacity: .8; min-width: 0; }
.pk-pos { flex: 0 0 auto; padding: 2px 6px; border-radius: 5px; font-size: 11px; font-weight: 800; line-height: 1.2; }
.pk-team { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pk-right { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.pk-val { font-size: 15px; font-weight: 800; color: inherit; }
.pk-info { font-size: 12px; opacity: .7; }
.pk-empty { padding: 24px 0; text-align: center; opacity: .7; }
.pk-pos { color: #fff; }
.pk-pos.posb-por { background: #16a34a; } .pk-pos.posb-def { background: #b45309; } .pk-pos.posb-med { background: #0891b2; } .pk-pos.posb-del { background: #be123c; }
.pk-head { padding: 12px 4px 6px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; opacity: .6; }

/* Comparador: dos tarjetas con buscador desplegable */
.cmpx-panel .cmp2 { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
.cmpx-panel .cmp2-vs { align-self: center; margin: -8px 0; z-index: 2; width: 36px; height: 36px; padding: 0; display: flex; align-items: center; justify-content: center; font-size: .8rem; background: #111827; color: #fff; border: 3px solid var(--card-solid, #fff); }
.cmpx-slot2 { position: relative; display: flex; align-items: center; gap: 14px; padding: 14px; border: 1px solid var(--border, rgba(127,127,127,.3)); border-radius: 16px; background: rgba(127,127,127,.06); }
.cmpx-slot2.open { z-index: 5; border-color: #16a34a; }
.cmpx-s-b.empty .cmpx-s2ph { background: #ea580c; }
.cmpx-s2photo { flex: 0 0 64px; width: 64px; height: 64px; }
.cmpx-s2photo .cmp2-photo { width: 64px; height: 64px; }
.cmpx-s2ph { width: 64px; height: 64px; border-radius: 16px; background: #16a34a; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; font-weight: 900; }
.cmpx-s2body { flex: 1 1 auto; min-width: 0; text-align: left; }
.cmpx-s2k { font-size: .68rem; font-weight: 800; letter-spacing: .08em; color: #16a34a; }
.cmpx-s-b .cmpx-s2k { color: #ea580c; }
.cmpx-s2name { margin: 2px 0 6px; font-size: 1.02rem; font-weight: 800; line-height: 1.15; overflow-wrap: anywhere; }
.cmpx-s2sub { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: -2px 0 8px; font-size: .82rem; }
.cmpx-s2team { opacity: .8; }
.cmpx-s2val { font-weight: 800; }
.cmpx-s2box { display: flex; align-items: stretch; height: 40px; }
.cmpx-s2inp { flex: 1 1 auto; min-width: 0; padding: 0 12px; border: 1px solid var(--border, rgba(127,127,127,.4)); border-right: 0; border-radius: 10px 0 0 10px; background: rgba(127,127,127,.08); color: inherit; font: 500 16px/1 inherit; outline: none; }
.cmpx-s2inp:focus { background: transparent; border-color: #16a34a; }
.cmpx-s2arrow { flex: 0 0 40px; border: 1px solid var(--border, rgba(127,127,127,.4)); border-radius: 0 10px 10px 0; background: rgba(127,127,127,.08); color: #16a34a; font-size: 14px; cursor: pointer; }
.cmpx-dd { display: none; position: absolute; left: 0; right: 0; top: calc(100% + 6px); max-height: 340px; overflow-y: auto; padding: 4px 10px; border: 1px solid var(--border, rgba(127,127,127,.3)); border-radius: 14px; background: var(--card-solid, #fff); box-shadow: 0 12px 32px rgba(0,0,0,.28); -webkit-overflow-scrolling: touch; }
.cmpx-slot2.open .cmpx-dd { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cmpx-dd { background: #0f1722; } }
:root[data-theme="dark"] .cmpx-dd { background: #0f1722; }
.cmpx-dd .pk-row:last-child { border-bottom: 0; }
.cmpx-panel { overflow: visible; }
.cmpx-dd { color: var(--text, inherit); }
.cmpx-dd .pk-name, .cmpx-dd .pk-val { color: var(--text, inherit); }

/* Jugador 1 a la izquierda y 2 a la derecha; el desplegable ocupa todo el ancho */
.cmpx-panel .cmp2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: relative; align-items: start; }
.cmpx-panel .cmp2-vs { position: absolute; left: 50%; top: 42px; transform: translateX(-50%); margin: 0; }
.cmpx-slot2 { position: static; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 14px 8px 12px; min-width: 0; }
.cmpx-slot2.open { border-color: #16a34a; }
.cmpx-s2body { width: 100%; text-align: center; }
.cmpx-s2sub { justify-content: center; margin: 0 0 8px; }
.cmpx-s2name { font-size: .95rem; }
.cmpx-s2ph { width: 64px; height: 64px; }
.cmpx-s2inp { padding: 0 8px; font-size: 15px; }
.cmpx-s2arrow { flex-basis: 32px; }
.cmpx-dd { left: 0; right: 0; top: 100%; margin-top: 6px; z-index: 10; }
.pk-byclub { display: flex; align-items: center; gap: 8px; width: 100%; margin: 6px 0 2px; padding: 12px; border: 1px dashed var(--border, rgba(127,127,127,.5)); border-radius: 12px; background: transparent; color: inherit; font: 700 14px/1 inherit; cursor: pointer; }
.pk-back { margin: 4px 0 0; padding: 8px 4px; border: 0; background: transparent; color: #16a34a; font: 800 14px/1 inherit; cursor: pointer; }
.pk-clubs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; padding-bottom: 6px; }
.pk-club { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 8px; border: 1px solid var(--border, rgba(127,127,127,.3)); border-radius: 10px; background: rgba(127,127,127,.06); color: inherit; font: 600 13px/1.15 inherit; text-align: left; cursor: pointer; }
.pk-club span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pk-club-img { width: 24px; height: 24px; object-fit: contain; flex: 0 0 24px; }

/* ===== Comparador (Edu, 01/11/2026): tarjetas alineadas, selector a pantalla completa, resumen moderno ===== */
.cmpx-panel .cmp2 { align-items: stretch; }
.cmpx-slot2 { height: 100%; justify-content: flex-start; }
.cmpx-s2body { display: flex; flex-direction: column; flex: 1 1 auto; }
.cmpx-s2name { min-height: 2.3em; display: flex; align-items: center; justify-content: center; }
.cmpx-s2box { margin-top: auto; }
.cmpx-s2inp { text-align: left; cursor: pointer; color: var(--muted, inherit); font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmpx-s2arrow { display: flex; align-items: center; justify-content: center; font-size: 18px; }

.cmpov { position: fixed; left: 0; right: 0; top: 0; height: 100dvh; z-index: 3000; display: flex; flex-direction: column; background: var(--card-solid, #fff); color: var(--text, inherit); overscroll-behavior: contain; }
:root[data-theme="dark"] .cmpov { background: #0f1722; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cmpov { background: #0f1722; } }
.cmpov-bar { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--border, rgba(127,127,127,.3)); }
.cmpov-back { flex: 0 0 44px; height: 44px; border-radius: 12px; border: 1px solid var(--border, rgba(127,127,127,.35)); background: transparent; color: inherit; font-size: 22px; cursor: pointer; }
.cmpov-inp { flex: 1 1 auto; min-width: 0; height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid #16a34a; background: transparent; color: inherit; font: 500 16px/1 inherit; outline: none; -webkit-appearance: none; }
.cmpov-list { flex: 1 1 auto; overflow-y: auto; padding: 0 12px 28px; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.cmpov .pk-back { position: sticky; top: 0; z-index: 2; display: block; width: 100%; text-align: left; padding: 14px 4px; background: inherit; }
.cmpov .pk-row .pk-name { font-size: 16px; }

.cmpx-sum { margin-top: 18px; display: grid; gap: 10px; }
.cmpx-sum .cmpx-sumblock { padding: 14px; border: 1px solid var(--border, rgba(127,127,127,.3)); border-left: 4px solid var(--sc, #16a34a); border-radius: 14px; background: rgba(127,127,127,.05); gap: 12px; }
.cmpx-sum .cmpx-head + .cmpx-sumblock { border-top: 1px solid var(--border, rgba(127,127,127,.3)); }
.cmpx-sum-a { --sc: #16a34a; }
.cmpx-sum-b { --sc: #ea580c; }
.cmpx-sum .cmpx-sumph { width: 44px; height: 44px; }
.cmpx-sum .cmpx-sumname { font-size: 1rem; }
.cmpx-sum .cmpx-sumline { gap: 10px; margin-top: 8px; font-size: .88rem; line-height: 1.35; }
.cmpx-sum .cmpx-sumico { flex: 0 0 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--sc, #16a34a); margin-top: .5em; font-size: 0; }
.cmpx-sum .cmpx-sumtx b { color: var(--sc, inherit); }

/* iPhone: si un campo de texto tiene letra menor de 16 px, Safari hace zoom al tocarlo. Aquí `font: ... inherit` era inválido y se ignoraba, y el campo se quedaba pequeño (Edu 02/11) */
.cmpov-inp, .pk-search { font-family: inherit; font-size: 16px; font-weight: 500; line-height: 1.2; }
@media (pointer: coarse) {
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="button"]):not([type="submit"]):not([type="color"]):not([type="file"]),
  select, textarea { font-size: max(16px, 1em) !important; }
}

/* Comparador: desplegable normal para elegir jugador (Edu 02/11) */
.cmpx-s2box { height: auto; }
.cmpx-s2sel { width: 100%; min-width: 0; height: 44px; padding: 0 10px; border: 1px solid var(--border, rgba(127,127,127,.4)); border-radius: 10px; background: rgba(127,127,127,.08); color: inherit; font-family: inherit; font-size: 16px; font-weight: 600; outline: none; }
.cmpx-s2sel:focus { border-color: #16a34a; }

/* Comparador: campo escribible + lista con foto y escudo, debajo de los dos jugadores (Edu 02/11) */
#cmpxPick { position: relative; }
.cmpx-slot2 { position: static !important; }
.cmpx-s2box { display: flex; align-items: stretch; height: 44px; width: 100%; }
.cmpx-s2in { flex: 1 1 auto; min-width: 0; width: 100%; padding: 0 10px; border: 1px solid var(--border, rgba(127,127,127,.4)); border-right: 0; border-radius: 10px 0 0 10px; background: rgba(127,127,127,.08); color: inherit; font-family: inherit; font-size: 16px; font-weight: 600; outline: none; -webkit-appearance: none; appearance: none; }
.cmpx-s2in:focus { border-color: #16a34a; background: transparent; }
.cmpx-s2box .cmpx-s2arrow { display: flex; align-items: center; justify-content: center; flex: 0 0 38px; border: 1px solid var(--border, rgba(127,127,127,.4)); border-radius: 0 10px 10px 0; background: rgba(127,127,127,.08); color: #16a34a; font-size: 16px; cursor: pointer; padding: 0; }
.cmpx-pop { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 30; max-height: 46vh; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: 2px 12px 10px; border: 1px solid #16a34a; border-radius: 16px; background: var(--card-solid, var(--card, #0f172a)); box-shadow: 0 16px 40px rgba(0,0,0,.45); text-align: left; }
.cmpx-pop[hidden] { display: none; }
.cmpx-pop .pk-row .pk-name { font-size: 16px; }

/* Dentro de un club: el botón de volver se queda fijo ARRIBA de la lista, aunque bajes por los jugadores (Edu 02/11) */
.cmpx-pop .pk-back, .pk-list .pk-back { position: sticky; top: 0; z-index: 3; display: block; width: 100%; text-align: left; padding: 14px 4px; margin: 0; font-size: 15px; background: var(--card-solid, var(--card, #0f172a)); border-bottom: 1px solid rgba(127,127,127,.22); }
.cmpx-pop { padding-top: 0; }
