/* Mercado · Futmondo EduMR */
.merc-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 12px 0 18px; }
.merc-col { background: var(--card-solid, rgba(255,255,255,0.04)); border: 1px solid var(--border); border-radius: 14px; padding: 12px; }
.merc-col-title { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 0.95rem; margin-bottom: 8px; }
.merc-col-title.up { color: var(--accent); }
.merc-col-title.down { color: var(--red); }
.merc-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 0.86rem; border: 0; border-top: 1px solid var(--border); background: none; color: var(--text); width: 100%; text-align: left; cursor: pointer; font-family: inherit; transition: color 0.15s ease; }
.merc-row-name { transition: color 0.15s ease; }
.merc-row:first-of-type { border-top: none; }
@media (hover: hover) and (pointer: fine) { .merc-row:hover .merc-row-name { color: var(--accent); } }
.merc-row-photo { position: relative; flex: 0 0 auto; width: 36px; height: 36px; }
.merc-row-img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: var(--bg-surface); }
.merc-row-role { position: absolute; left: -2px; bottom: -2px; font-size: 0.42rem; font-weight: 800; padding: 0 4px; line-height: 1.45; border-radius: 4px; letter-spacing: 0.02em; }
.merc-row-info { flex: 1 1 auto; min-width: 0; }
.merc-row-name { display: block; color: var(--text); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.merc-row-meta { display: flex; align-items: center; gap: 4px; font-size: 0.72rem; color: var(--muted); }
.merc-row-meta span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.merc-row-crest { width: 14px; height: 14px; object-fit: contain; flex: 0 0 auto; }
.merc-row-val { font-weight: 700; white-space: nowrap; }
.merc-row-val.up { color: var(--accent); }
.merc-row-val.down { color: var(--red); }

.estado-sec { margin-bottom: 22px; }
.estado-title { font-family: 'Bricolage Grotesque', sans-serif; font-size: 1.05rem; margin: 4px 0 10px; }

.cmp-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 10px 0 14px; }
.cmp-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cmp-side { background: var(--card-solid, rgba(255,255,255,0.04)); border: 1px solid var(--border); border-radius: 14px; padding: 14px; text-align: center; }
.cmp-side .mcard-photo { margin: 0 auto 10px; }
.cmp-name { font-weight: 700; margin-bottom: 2px; }
.cmp-val { font-weight: 700; margin-top: 6px; }
.cmp-trend { font-weight: 700; font-size: 0.9rem; }
.cmp-trend.up { color: var(--accent); }
.cmp-trend.down { color: var(--red); }
.cmp-trend.flat { color: var(--text-muted, #888); }
.cmp-status { margin-top: 6px; font-size: 0.85rem; color: var(--text-muted, #aaa); }

@media (max-width: 560px) {
  .merc-cols { grid-template-columns: 1fr; }
}

/* Filtros del mercado */
.merc-filters { margin: 6px 0 12px; display: grid; gap: 10px; }
.merc-filters-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.merc-select { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--card-solid, rgba(255,255,255,0.04)); color: var(--text); font-size: 0.92rem; }
.merc-range { display: grid; gap: 6px; }
.merc-range input[type="range"] { width: 100%; accent-color: var(--accent); }
.merc-seg { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 14px; }
.merc-segbtn { padding: 9px 14px; border-radius: 999px; border: 1px solid var(--border); background: transparent; color: var(--text); font-weight: 700; font-size: 0.85rem; cursor: pointer; }
.merc-segbtn.active { background: var(--accent); border-color: var(--accent); color: #05130a; }
.mcard-roles { display: flex; gap: 5px; margin: 3px 0 4px; }
.mcard-role { font-size: 0.62rem; font-weight: 800; padding: 2px 7px; border-radius: 6px; letter-spacing: 0.03em; }

/* Fila de escudos arriba */
.merc-clubs { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; -webkit-overflow-scrolling: touch; }
.merc-club { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); background: var(--card-solid, rgba(255,255,255,0.04)); padding: 4px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.merc-club-img { width: 100%; height: 100%; object-fit: contain; }
.merc-club.active { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(34,197,94,0.35); }

/* Noticias */
.news-item { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--border); }
.news-item:first-child { border-top: none; }
.news-img { width: 92px; height: 62px; object-fit: cover; border-radius: 10px; flex: 0 0 auto; }
.news-body { flex: 1; min-width: 0; }
.news-title { font-weight: 700; margin-bottom: 3px; }
.news-sum { color: var(--muted); font-size: 0.88rem; line-height: 1.5; }
.news-date { color: var(--muted); font-size: 0.72rem; margin-top: 5px; }
.news-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.news-avatar { width: 24px; height: 24px; border-radius: 50%; }
.news-user { font-weight: 700; }
.news-head .news-date { margin: 0; margin-left: auto; }
.news-link { text-decoration: none; color: inherit; }
@media (hover: hover) and (pointer: fine) { .news-link:hover .news-title { color: var(--accent); } }
.news-ico { width: 26px; height: 26px; flex: 0 0 auto; object-fit: contain; margin-top: 2px; }
.merc-clubs-hint { font-size: 0.86rem; color: var(--muted); margin: 2px 0 6px; }

/* Modal / ficha / lector */
.ficha-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.62); z-index: 200; display: flex; align-items: flex-start; justify-content: center; padding: 18px; overflow-y: auto; overscroll-behavior: contain; }
html.no-scroll, body.no-scroll { overflow: hidden !important; }
.ficha-modal { position: relative; width: 100%; max-width: 1000px; background: var(--bg-card-solid, #0f1620); border: 1px solid var(--border); border-radius: 16px; padding: 24px; margin: auto; box-shadow: 0 20px 60px rgba(0,0,0,0.55); }
.ficha-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 30px; }
.ficha-col { min-width: 0; }
@media (max-width: 780px) { .ficha-cols { grid-template-columns: 1fr; gap: 0; } }
.ficha-col > .estado-title:first-child { margin-top: 0; }
.ficha-chart { border: 1px solid var(--border); padding: 6px; }
.fx-lab { fill: var(--muted); font-size: 11px; font-family: 'Bricolage Grotesque', sans-serif; }
.fv-thead { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; font-size: 0.72rem; font-weight: 800; color: var(--muted); padding: 6px 0; border-bottom: 1px solid var(--border); margin-top: 10px; text-align: center; }

.fv-table { max-height: 280px; overflow-y: auto; }
.fv-trow { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; font-size: 0.8rem; padding: 5px 0; border-top: 1px solid var(--border); align-items: center; text-align: center; }
.fv-trow:first-child { border-top: none; }
.fv-td { color: inherit; white-space: nowrap; text-align: center; }
.fv-td.up { color: var(--accent); }
.fv-td.down { color: var(--red); }

.fv-tval { font-weight: 700; text-align: center; }
.ficha-close { position: absolute; top: 10px; right: 12px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border); background: transparent; color: var(--text); font-size: 1.05rem; cursor: pointer; z-index: 6; }
.mcard.clickable, .news-link { cursor: pointer; }
.ficha-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 12px; padding-right: 34px; }
.ficha-name { font-family: 'Bricolage Grotesque', sans-serif; font-size: 1.3rem; }
.ficha-val { font-weight: 700; margin-top: 6px; }
.ficha-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 12px 0; }
.ficha-stat { background: rgba(255,255,255,0.05); border: 1px solid var(--border); border-radius: 12px; padding: 10px; text-align: center; }
.fs-val { font-weight: 800; font-size: 1.15rem; }
.fs-lab { font-size: 0.72rem; color: var(--muted); }
.ficha-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.ficha-chip { background: rgba(34,197,94,0.16); color: var(--accent); font-weight: 700; padding: 4px 12px; border-radius: 8px; font-size: 0.85rem; }
.ficha-matches { display: grid; gap: 2px; }
.fm-row { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto auto; gap: 8px; padding: 7px 0; border-top: 1px solid var(--border); font-size: 0.88rem; }
.fm-row:first-child { border-top: none; }
.fm-j { color: var(--muted); font-weight: 700; }
.fm-match { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fm-tag { color: var(--muted); font-weight: 700; font-size: 0.7rem; white-space: nowrap; }
.fm-tag.fm-in { color: var(--primary); }
.fm-tag.fm-out { color: #dc2626; }
.fm-pts { font-weight: 800; min-width: 34px; padding: 3px 8px; border-radius: 8px; text-align: center; display: inline-block; color: #ffffff !important; }
.art-lead { font-size: 1.02rem; font-weight: 600; margin: 6px 0 12px; }
.art-body { line-height: 1.7; }
.art-body img { max-width: 100%; height: auto; border-radius: 10px; margin: 10px 0; }
.art-body p { margin: 10px 0; }
.art-body a { color: var(--accent); }

/* Analiza tu equipo */
.an-file { margin: 10px 0; color: var(--text); }
.an-preview { max-width: 100%; max-height: 340px; border-radius: 12px; border: 1px solid var(--border); margin: 10px auto; display: block; }
.an-form { font-weight: 800; margin: 8px 0; }
.an-leido { font-size: 0.78rem; color: var(--muted); margin-bottom: 8px; line-height: 1.5; }
.an-list { display: grid; gap: 4px; margin: 0 auto 8px; max-width: 620px; }
.an-row { display: flex; align-items: center; gap: 8px; padding: 7px 12px; border: 1px solid var(--border); border-radius: 10px; font-size: 0.82rem; }
.an-row:first-child { border-top: 1px solid var(--border); }
.an-main { flex: 1; min-width: 0; display: flex; flex-direction: column; overflow: hidden; }
.an-pos { font-weight: 800; color: var(--muted); }
.an-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.an-team { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.an-st { font-size: 0.68rem; font-weight: 800; text-align: center; }
.an-st.st-ok { color: var(--accent); }
.an-st.st-inj { color: var(--red); }
.an-st.st-red { color: #f97316; }
.an-st.st-doubt { color: #eab308; }
.an-ha { font-size: 0.76rem; text-align: center; }
.an-pts { text-align: right; font-weight: 700; }
.an-text p { margin: 8px 0; line-height: 1.6; }

/* Ficha: forzar contraste correcto (fondo oscuro + texto claro) */
.ficha-overlay .ficha-modal { background: #0d131d; color: #e9eef6; border-color: rgba(255,255,255,0.14); }
.ficha-modal .ficha-name, .ficha-modal .fs-val, .ficha-modal .fm-pts, .ficha-modal h2 { color: #ffffff; }
.ficha-modal .muted, .ficha-modal .fs-lab, .ficha-modal .cmp-status, .ficha-modal .fm-j { color: var(--muted); }
.ficha-modal .fm-match { color: #e9eef6; }
.ficha-modal .ficha-stat { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.12); }
.ficha-modal .fm-row { border-top-color: rgba(255,255,255,0.10); }
.ficha-modal .ficha-close { color: #ffffff; border-color: rgba(255,255,255,0.22); }
.ficha-modal a { color: var(--accent); }
.ficha-modal .art-body, .ficha-modal .art-body p, .ficha-modal .art-lead { color: #dfe6ef; }
[data-theme="light"] .ficha-overlay .ficha-modal { background: #ffffff; color: #1a1d21; border-color: #e2e6ea; }
[data-theme="light"] .ficha-modal .ficha-name,
[data-theme="light"] .ficha-modal .fs-val,
[data-theme="light"] .ficha-modal .fm-pts,
[data-theme="light"] .ficha-modal .fv-tval,
[data-theme="light"] .ficha-modal .fv-td,
[data-theme="light"] .ficha-modal h2,
[data-theme="light"] .ficha-modal .estado-title { color: #111827; }
[data-theme="light"] .ficha-modal .muted,
[data-theme="light"] .ficha-modal .fs-lab,
[data-theme="light"] .ficha-modal .cmp-status,
[data-theme="light"] .ficha-modal .fm-j,
[data-theme="light"] .ficha-modal .fv-thead { color: #69727d; }
[data-theme="light"] .ficha-modal .fm-match { color: #1a1d21; }
[data-theme="light"] .ficha-modal .fv-td.up { color: var(--primary); }
[data-theme="light"] .ficha-modal .fv-td.down { color: #dc2626; }
[data-theme="light"] .ficha-modal .ficha-stat { background: #f1f5f9; border-color: #e2e8f0; }
[data-theme="light"] .ficha-modal .fm-row, [data-theme="light"] .ficha-modal .fv-trow { border-top-color: #eef2f7; }
[data-theme="light"] .ficha-modal .ficha-close { color: #111827; border-color: #d0d7de; }
[data-theme="light"] .ficha-modal .fx-lab { fill: #69727d; }
[data-theme="light"] .ficha-modal .ficha-chart { background: #ffffff; }
[data-theme="light"] .ficha-modal .art-body, [data-theme="light"] .ficha-modal .art-body p, [data-theme="light"] .ficha-modal .art-lead { color: #334155; }

/* Comparador: buscador con foto */
.cmp-pick { position: relative; }
.cmp-sug { position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 60; background: #0d131d; border: 1px solid rgba(255,255,255,0.14); border-radius: 12px; max-height: 300px; overflow-y: auto; box-shadow: 0 12px 30px rgba(0,0,0,0.5); }
.cmp-sugrow { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; background: transparent; border: none; border-top: 1px solid rgba(255,255,255,0.06); color: #e9eef6; text-align: left; cursor: pointer; transition: background 0.15s ease; }
.cmp-sugrow:first-child { border-top: none; }
@media (hover: hover) and (pointer: fine) { .cmp-sugrow:hover { background: rgba(255,255,255,0.06); } }
.cmp-sugphoto { width: 34px; height: 34px; border-radius: 50%; overflow: hidden; background: rgba(255,255,255,0.08); flex: 0 0 auto; display: flex; align-items: center; justify-content: center; font-size: 0.72rem; font-weight: 700; color: var(--muted); }
.cmp-sugphoto img { width: 100%; height: 100%; object-fit: cover; }
.cmp-sugbody { flex: 1; min-width: 0; display: flex; flex-direction: column; overflow: hidden; }
.cmp-sugname { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmp-sugteam { font-size: 0.74rem; color: var(--muted); }
.cmp-sugval { font-size: 0.8rem; font-weight: 700; white-space: nowrap; }

/* Corrección del equipo + histórico + pronóstico */
.an-row { gap: 8px; }
.an-main { display: flex; flex-direction: column; overflow: hidden; }
.an-sub { font-size: 0.66rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.an-edit { cursor: pointer; text-align: center; font-size: 0.9rem; }
.an-add { margin-top: 8px; }
.an-tools { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; margin: 10px 0; }
.an-stale { font-size: 0.82rem; color: #eab308; }
.pick-list { margin-top: 10px; border: 1px solid rgba(255,255,255,0.12); border-radius: 12px; max-height: 52vh; overflow-y: auto; }
.ficha-pron { font-weight: 700; margin-top: 4px; }
.ficha-vals { display: grid; gap: 2px; margin: 6px 0 10px; }
.fv-row { display: grid; grid-template-columns: 76px 1fr auto; gap: 8px; padding: 5px 0; border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.86rem; align-items: center; }
.fv-row:first-child { border-top: none; }
.fv-label { color: var(--muted); }
.fv-diff { font-weight: 700; font-size: 0.82rem; }
.fv-diff.up { color: var(--accent); }
.fv-diff.down { color: var(--red); }
.fv-val { font-weight: 700; text-align: right; }
.fv-streak { display: inline-block; font-size: 0.82rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; margin: 0 0 4px; }
.fv-streak.up { color: var(--primary); background: rgba(34,197,94,0.12); }
.fv-streak.down { color: #dc2626; background: rgba(239,68,68,0.12); }
.fv-season { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 10px; background: rgba(255,255,255,0.04); border: 1px solid var(--border); margin-bottom: 8px; }
.fvs-label { font-weight: 800; font-size: 0.85rem; }
.fvs-diff { font-weight: 800; font-size: 0.86rem; }
.fvs-diff.up { color: var(--accent); }
.fvs-diff.down { color: var(--red); }
.fvs-range { font-size: 0.72rem; color: var(--muted); text-align: right; }
.ficha-pct { text-align: center; font-size: 0.8rem; color: var(--muted); margin: 2px 0 6px; }
.merc-besthead { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 14px 0 6px; }
.mbh-t { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 1rem; }
.mbh-s { font-size: 0.72rem; color: var(--muted); }
.merc-bestrow { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scroll-behavior: smooth; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.mbc { flex: 0 0 auto; width: 122px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 6px; border-radius: 12px; border: 1px solid var(--border); background: var(--card-solid); color: var(--text); cursor: pointer; transition: border-color 0.15s ease, transform 0.15s ease; }
@media (hover: hover) and (pointer: fine) { .mbc:hover { border-color: var(--border-hover); transform: translateY(-2px); } }
.mbc-img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; background: var(--bg-surface); }
.mbc-photo { position: relative; width: 46px; height: 46px; }
.mbc-photo .mcard-badge { width: 15px; height: 15px; font-size: 10px; border-width: 1.5px; right: 0; bottom: 0; }
.mbc-photo .mcard-badge.st-red { width: 10px; height: 14px; }
.mbc-name { font-size: 0.74rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.mbc-role { font-size: 0.56rem; font-weight: 800; padding: 1px 5px; border-radius: 5px; }
.mbc-exp { font-size: 0.78rem; font-weight: 800; color: #15803d; background: rgba(34,197,94,0.12); padding: 1px 8px; border-radius: 999px; }
.mbc-rival { font-size: 0.62rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.mbc-team { display: flex; align-items: center; gap: 4px; font-size: 0.64rem; color: var(--muted); white-space: nowrap; overflow: hidden; max-width: 100%; }
.mbc-team span { overflow: hidden; text-overflow: ellipsis; }
.mbc-crest { width: 13px; height: 13px; object-fit: contain; flex: 0 0 auto; }
.mbc-val { font-size: 0.74rem; font-weight: 800; color: var(--text); }
.mbc-last { font-size: 0.6rem; color: #cbd5e1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.mbc-last5 { display: flex; gap: 3px; margin-top: 2px; }
.mbc-last5 .ficha-chip { font-size: 0.58rem; padding: 1px 5px; }
.news-updated { font-size: 0.72rem; font-weight: 600; color: var(--muted); }
.wa-chat { max-width: none; background: transparent; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); }
.wa-top { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: #075e54; color: #fff; }
[data-theme="light"] .wa-top { background: #008069; }
.wa-top-av { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; background: rgba(255,255,255,0.25); }
.wa-top-txt { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.wa-top-txt b { font-size: 0.92rem; font-weight: 800; }
.wa-top-txt span { font-size: 0.7rem; opacity: 0.85; }
.wa-body { display: flex; flex-direction: column; gap: 8px; padding: 16px 12px; background: #0b141a; }
[data-theme="light"] .wa-body { background: #e9edef; }
.wa-pin { background: #182229; border-left: 3px solid #06cf9c; border-radius: 8px; padding: 10px 12px; margin-bottom: 6px; }
[data-theme="light"] .wa-pin { background: #ffffff; box-shadow: 0 1px 1px rgba(11,20,26,0.13); }
.wa-pin-head { color: #06cf9c; font-weight: 800; font-size: 0.72rem; margin-bottom: 6px; letter-spacing: 0.02em; }
[data-theme="light"] .wa-pin-head { color: #008069; }
.wa-pin-txt { font-size: 0.82rem; line-height: 1.5; color: #e9edef; }
[data-theme="light"] .wa-pin-txt { color: #111b21; }
.wa-pin-txt b { font-weight: 800; }
.wa-day { align-self: center; background: rgba(11,20,26,0.55); color: #fff; font-size: 0.68rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; margin: 6px 0 2px; }
.wa-msg { display: flex; align-items: flex-end; gap: 8px; }
.wa-avatar { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; background: #1f2c34; }
[data-theme="light"] .wa-avatar { background: #dfe5e7; }
.wa-bubble { background: #202c33; border-radius: 8px 8px 8px 2px; padding: 7px 11px; max-width: 78%; box-shadow: 0 1px 1px rgba(0,0,0,0.35); }
[data-theme="light"] .wa-bubble { background: #ffffff; box-shadow: 0 1px 0.5px rgba(11,20,26,0.13); }
.wa-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 2px; }
.wa-name { font-weight: 800; font-size: 0.8rem; }
.wa-time { font-size: 0.64rem; color: #8696a0; margin-left: auto; white-space: nowrap; }
[data-theme="light"] .wa-time { color: #667781; }
.wa-text { font-size: 0.88rem; line-height: 1.45; color: #e9edef; }
[data-theme="light"] .wa-text { color: #111b21; }
.wa-text b, .wa-text strong { font-weight: 800; color: #ffffff; }
[data-theme="light"] .wa-text b, [data-theme="light"] .wa-text strong { color: #111b21; }

/* Anillo de multiposición (color por posición) */
.posring { display: inline-flex; border-radius: 50%; padding: 2.5px; background: conic-gradient(from 180deg, var(--c1) 0 50%, var(--c2) 50% 100%); }
.posring > img { border-radius: 50%; object-fit: cover; display: block; }
.posring-clip { padding: 2px !important; border-color: transparent !important; background: conic-gradient(from 180deg, var(--c1) 0 50%, var(--c2) 50% 100%) !important; }
.posring-clip > img { border-radius: 50%; }
.posring.single { background: var(--c1); }
.posring-clip.single { background: var(--c1) !important; }
.mcard-photo > .posring, .mbc-photo > .posring { position: absolute; inset: -2.5px; }
.mcard-photo > .posring > img, .mbc-photo > .posring > img { width: 100%; height: 100%; }
.mcard-roles { justify-content: center; }
/* Mismo criterio que en Clausulazo: nada de 3 cajas con borde iguales,
   los datos van en línea y solo PTS (el dato por el que se ordena) destaca
   en color. */
.mcard-stats { display: flex; justify-content: center; flex-wrap: wrap; row-gap: 2px; column-gap: 13px; width: 100%; margin-top: 6px; }
.mstat { flex: none; display: flex; flex-direction: row; align-items: baseline; gap: 4px; padding: 0; border: none; background: none; }
.mstat b { font-family: 'Bricolage Grotesque', sans-serif; font-size: 0.86rem; font-weight: 700; color: var(--text); line-height: 1; white-space: nowrap; }
.mstat small { font-size: 0.64rem; font-weight: 600; letter-spacing: 0; color: var(--muted); text-transform: none; white-space: nowrap; }
.mstat.pts b { color: var(--accent); }
.ficha-head-center { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 3px; margin-bottom: 16px; }
.ficha-head-center .mcard-photo { margin: 4px auto 8px; }
.ficha-team { display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--muted); font-size: 0.9rem; }
.ficha-team img { width: 18px; height: 18px; object-fit: contain; }
/* Página de jugador: botón de volver sutil (solo una flecha) y caja de
   estado arriba, como en Comuniate. */
.pp-back { width: 38px; height: 38px; border-radius: 50%; padding: 0; font-size: 1.15rem; line-height: 1; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 10px; opacity: 0.75; }
@media (hover: hover) and (pointer: fine) { .pp-back:hover { opacity: 1; } }
.pp-status { display: flex; align-items: center; gap: 10px; border: 1px solid rgba(34, 197, 94, 0.4); background: rgba(34, 197, 94, 0.1); border-radius: 14px; padding: 10px 14px; margin-bottom: 14px; }
.pp-status-ico { width: 30px; height: 30px; border-radius: 50%; background: #16a34a; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 0.95rem; flex: 0 0 auto; }
.pp-status.bad { border-color: rgba(220, 38, 38, 0.4); background: rgba(220, 38, 38, 0.1); }
.pp-status.bad .pp-status-ico { background: #dc2626; }
.pp-status.warn { border-color: rgba(234, 179, 8, 0.45); background: rgba(234, 179, 8, 0.12); }
.pp-status.warn .pp-status-ico { background: #ca8a04; }
.pp-status-k { font-size: 0.6rem; font-weight: 800; letter-spacing: 0.05em; color: var(--muted); }
.pp-status-v { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 1rem; color: #16a34a; }
.pp-status.bad .pp-status-v { color: #dc2626; }
.pp-status.warn .pp-status-v { color: #ca8a04; }
[data-theme="light"] .pp-status-v { color: #15803d; }
[data-theme="light"] .pp-status.bad .pp-status-v { color: #b91c1c; }
[data-theme="light"] .pp-status.warn .pp-status-v { color: #a16207; }
/* Las tarjetas del banquillo van sobre el fondo normal de la página (no
   sobre el verde del campo), así que NO pueden heredar los textos en
   blanco con sombra de .pitch-player (en tema claro quedaban invisibles,
   "blanco sobre blanco"). Cada tarjeta lleva su propio fondo (var(--card))
   y colores de tema para que se lea siempre. */
.pitch-bench { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; padding: 12px; border: 1px dashed var(--border); border-radius: 14px; }
.pitch-bench .pitch-player { width: 84px; background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 8px 6px 7px; }
.pitch-bench .pitch-photo { width: 44px; height: 44px; }
.pitch-bench .pitch-name { max-width: 76px; color: var(--text); text-shadow: none; }
.pitch-bench .pitch-ha { color: var(--muted); text-shadow: none; max-width: 76px; }
.pitch-bench .pitch-when { color: var(--muted); text-shadow: none; }
.pitch-bench .pitch-pts { color: var(--text); text-shadow: none; }
.an-name-row { display: flex; align-items: center; gap: 6px; min-width: 0; }
.an-crest { width: 15px; height: 15px; object-fit: contain; flex: 0 0 auto; }
.pitch-when { font-size: 0.56rem; color: rgba(255,255,255,0.85); }
.an-clause-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; margin-top: 8px; }
.an-clause-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 3px; padding: 10px 8px; border-radius: 12px; border: 1px solid rgba(245,158,11,0.35); background: rgba(245,158,11,0.06); }
.an-clause-photo { position: relative; width: 46px; height: 46px; }
.an-clause-photo img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.an-clause-name { font-size: 0.78rem; font-weight: 700; }
.an-clause-cl { font-size: 0.8rem; font-weight: 800; color: #fbbf24; }
.an-clause-vl { font-size: 0.68rem; color: var(--muted); }
.an-ai { display: flex; flex-direction: column; gap: 12px; }
.an-sec { background: linear-gradient(180deg, var(--card) 0%, var(--card-solid) 100%); border: 1px solid var(--border); border-radius: 16px; padding: 14px 14px 12px; box-shadow: 0 4px 14px rgba(0,0,0,0.10); }
.an-sec-head { display: flex; align-items: center; gap: 9px; margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px dashed var(--border); }
.an-sec-ic { font-size: 1.25rem; line-height: 1; }
.an-sec-t { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text); }
.an-sec-body { display: flex; flex-wrap: wrap; gap: 8px; }
.an-sec-body-col { flex-direction: column; gap: 8px; }
.an-chip { background: var(--card-solid); border: 1px solid var(--border); border-radius: 999px; padding: 5px 12px; font-size: 0.83rem; color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.an-chip b { color: var(--accent); }
.an-ai-line { color: var(--muted); font-size: 0.9rem; line-height: 1.5; width: 100%; }
.an-ai-line b { color: var(--accent); }
.an-mp-row { display: flex; align-items: flex-start; gap: 10px; background: var(--card-solid); border: 1px solid var(--border); border-radius: 12px; padding: 9px 11px; width: 100%; }
.an-mp-photo { width: 36px; height: 36px; border-radius: 50%; overflow: hidden; background: var(--card); border: 2px solid rgba(96,165,250,0.5); flex: 0 0 auto; display: flex; align-items: center; justify-content: center; font-size: 1rem; }
.an-mp-photo img { width: 100%; height: 100%; object-fit: cover; }
.an-mp-text { flex: 1 1 auto; min-width: 0; }
.an-mp-name { font-weight: 800; font-size: 0.82rem; margin-bottom: 2px; }
.an-mp-reason { font-size: 0.78rem; color: var(--muted); line-height: 1.45; }
.an-mp-reason b { color: var(--accent); }
.hl-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 24px 0 10px; padding-top: 16px; border-top: 1px solid var(--border); }
.hl-title { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 1.02rem; }
.hl-seg { display: flex; gap: 6px; margin: 0; flex-wrap: wrap; }
.hl-btn { font-size: 0.82rem; font-weight: 700; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--card-solid); color: var(--text); cursor: pointer; }
.hl-btn.active { background: rgba(34,197,94,0.16); border-color: rgba(34,197,94,0.5); color: var(--accent); }
.merc-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 4px; }
.mchip { font-size: 0.74rem; font-weight: 700; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--border); background: var(--card-solid); color: var(--text); cursor: pointer; }
.mchip.active { background: rgba(34,197,94,0.16); border-color: rgba(34,197,94,0.5); color: var(--accent); }
.an-nota { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--border); background: var(--card-solid); margin-bottom: 10px; }
.an-nota-num { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 1.6rem; color: var(--accent); }
.an-nota-txt { font-size: 0.82rem; color: var(--muted); }
.an-nota-info { flex-basis: 100%; font-size: 0.72rem; color: var(--muted); line-height: 1.4; }
.an-capitan { padding: 12px 14px; border-radius: 14px; border: 1px solid rgba(250,204,21,0.45); background: rgba(250,204,21,0.08); margin-bottom: 10px; }
.an-capitan-t { font-weight: 800; font-size: 0.88rem; margin-bottom: 8px; }
.an-cap-pick { display: flex; align-items: center; gap: 10px; }
.an-cap-photo { width: 52px; height: 52px; border-radius: 50%; overflow: hidden; background: var(--card-solid); border: 2px solid rgba(250,204,21,0.6); flex: 0 0 auto; }
.an-cap-photo img { width: 100%; height: 100%; object-fit: cover; }
.an-cap-body { flex: 1 1 auto; min-width: 0; }
.an-cap-name { font-weight: 800; font-size: 0.95rem; }
.an-cap-why { font-size: 0.74rem; color: var(--muted); margin-top: 2px; }
.an-cap-warn { font-size: 0.72rem; color: #d97706; margin-top: 4px; }
.an-cap-info { font-size: 0.72rem; color: #16a34a; margin-top: 4px; }
.an-cap-score { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 1.1rem; color: var(--amber); flex: 0 0 auto; }
.an-cap-alts { margin-top: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 0.74rem; }
.an-cap-altslabel { color: var(--muted); }
.an-cap-altchip { background: var(--card-solid); border: 1px solid var(--border); border-radius: 999px; padding: 3px 9px; font-weight: 700; }
.an-clauses { padding: 12px 14px; border-radius: 14px; border: 1px solid rgba(245,158,11,0.4); background: rgba(245,158,11,0.06); margin-bottom: 4px; }
.an-clauses-t { font-weight: 800; font-size: 0.88rem; margin-bottom: 4px; }
.an-clauses-info { font-size: 0.72rem; color: var(--muted); margin-bottom: 6px; line-height: 1.4; }
.an-clause { font-size: 0.84rem; }
.an-pchip { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 62px; text-align: center; }
.an-pchip-photo { width: 42px; height: 42px; border-radius: 50%; overflow: hidden; background: var(--card-solid); border: 2px solid rgba(250,204,21,0.45); box-shadow: 0 2px 6px rgba(0,0,0,0.15); }
.an-pchip-photo img { width: 100%; height: 100%; object-fit: cover; }
.an-pchip-name { font-size: 0.66rem; font-weight: 700; color: var(--text); max-width: 62px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Plan de cambios por horario: tarjetas gráficas titular -> recambio */
.swap-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.swap-card { position: relative; display: flex; flex-direction: column; gap: 8px; background: linear-gradient(180deg, var(--card) 0%, var(--card-solid) 100%); border: 1px solid var(--border); border-radius: 16px; padding: 14px 10px 10px; cursor: pointer; box-shadow: 0 3px 10px rgba(0,0,0,0.08); transition: border-color .15s, transform .15s; }
@media (hover: hover) and (pointer: fine) { .swap-card:hover { border-color: var(--accent); transform: translateY(-1px); } }
.swap-pos { position: absolute; top: 8px; left: 10px; font-size: 0.64rem; font-weight: 800; color: var(--muted); letter-spacing: 0.04em; }
.swap-row { display: flex; align-items: flex-start; justify-content: center; gap: 10px; margin-top: 8px; }
.swap-side { display: flex; flex-direction: column; align-items: center; gap: 4px; flex: 1 1 0; min-width: 0; }
.swap-photo { width: 48px; height: 48px; border-radius: 50%; overflow: hidden; background: var(--card-solid); border: 2px solid var(--border); box-shadow: 0 2px 6px rgba(0,0,0,0.15); }
.swap-tit .swap-photo { border-color: rgba(250,204,21,0.55); }
.swap-sub .swap-photo { border-color: rgba(34,197,94,0.55); }
.swap-photo img { width: 100%; height: 100%; object-fit: cover; }
.swap-name { font-size: 0.72rem; font-weight: 700; max-width: 84px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center; }
.swap-time { font-size: 0.62rem; color: var(--muted); }
.swap-arrow { font-size: 1.15rem; flex: 0 0 auto; margin-top: 12px; }
.swap-est { text-align: center; font-size: 0.64rem; color: var(--muted); border-top: 1px dashed var(--border); padding-top: 7px; }
.pitch-team { display: flex; align-items: center; justify-content: center; gap: 4px; font-size: 0.6rem; color: var(--muted); text-shadow: none; max-width: 76px; margin-top: 1px; }
.pitch-team .pitch-crest { width: 12px; height: 12px; object-fit: contain; }
.pitch-team span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ficha-chart { width: 100%; height: auto; margin-top: 8px; background: rgba(255,255,255,0.03); border-radius: 10px; }

/* Colores por puntuación */
.pt-hi { color: var(--accent); }
.pt-mid { color: var(--amber); }
.pt-lo { color: var(--red); }
.ficha-chip { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 5px 10px; }
.ficha-chip .chip-rival { font-size: 0.58rem; font-weight: 600; color: rgba(255,255,255,0.78); white-space: nowrap; }
.ficha-chip .chip-pts { font-size: 1rem; font-weight: 800; }
.ficha-chip.pt-hi { background: rgba(34,197,94,0.16); }
.ficha-chip.pt-mid { background: rgba(245,158,11,0.18); }
.ficha-chip.pt-lo { background: rgba(239,68,68,0.18); }
.ficha-chip.pt-hi .chip-pts { color: var(--accent); }
.ficha-chip.pt-mid .chip-pts { color: var(--amber); }
.ficha-chip.pt-lo .chip-pts { color: var(--red); }
.fm-pts.pt-hi { background: var(--primary) !important; }
.fm-pts.pt-mid { background: var(--amber) !important; }
.fm-pts.pt-lo { background: #dc2626 !important; }
.fm-pts-info { background: transparent !important; color: var(--muted) !important; font-weight: 700; font-size: 0.72rem; }
.fm-pts.pt-st { background: rgba(127, 127, 127, 0.18) !important; color: var(--muted) !important; font-weight: 800; }

/* Comparador v2 */
.cmp2 { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; margin: 10px 0 14px; }
.cmp2-card { display: flex; flex-direction: column; align-items: center; text-align: center; background: rgba(127,127,127,0.08); border: 1px solid var(--border); border-radius: 14px; padding: 12px 8px; }
.cmp2-photo { width: 64px; height: 64px; border-radius: 50%; overflow: hidden; background: rgba(0,0,0,0.3); border: 2px solid rgba(127,127,127,0.4); display: flex; align-items: center; justify-content: center; }
.cmp2-photo img { width: 100%; height: 100%; object-fit: cover; }
.cmp2-name { font-weight: 800; margin-top: 8px; font-family: 'Bricolage Grotesque', sans-serif; text-align: center; }
.cmp2-team { font-size: 0.78rem; color: var(--muted); margin-top: 3px; }
.cmp2-vs { font-weight: 900; font-size: 1rem; color: var(--accent); padding: 4px 8px; border-radius: 999px; background: rgba(34,197,94,0.14); }
.cmp2-stats { display: grid; gap: 2px; }
.cmp2-row { display: grid; grid-template-columns: 1fr 96px 1fr; align-items: center; gap: 6px; padding: 8px 0; border-top: 1px solid var(--border); font-size: 0.88rem; }
.cmp2-row:first-child { border-top: none; }
.cmp2-cell { font-weight: 700; }
.cmp2-cell.right { text-align: right; }
.cmp2-cell.win { color: var(--accent); }
.cmp2-lab { text-align: center; font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.03em; }

/* Noticias en tarjetas con miniatura */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.news-day { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; margin: 12px 0 2px; color: var(--muted); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.news-day:first-child { margin-top: 0; }
.news-day::before, .news-day::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.news-day-txt { white-space: nowrap; }
.newscard { animation: newsIn 0.3s ease both; }
@keyframes newsIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- Mercado de fichajes ---------- */
.fich-day { display: flex; align-items: center; gap: 10px; margin: 16px 0 8px; color: var(--muted); font-size: 0.74rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.03em; }
.fich-day:first-child { margin-top: 4px; }
.fich-day::before, .fich-day::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.fich-card { display: flex; gap: 12px; background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 12px; margin-bottom: 10px; animation: newsIn 0.3s ease both; }
.fich-photo { flex: 0 0 auto; width: 56px; height: 56px; border-radius: 10px; overflow: hidden; background: var(--bg-surface, #e2e8f0); }
.fich-photo img { width: 100%; height: 100%; object-fit: cover; }
.fich-thumb { flex: 0 0 auto; width: 86px; height: 66px; border-radius: 10px; overflow: hidden; background: var(--bg-surface, #e2e8f0); }
.fich-thumb img { width: 100%; height: 100%; object-fit: cover; }
.fich-body { min-width: 0; flex: 1; }
.fich-title { font-weight: 800; font-size: 0.96rem; margin-bottom: 5px; }
.fich-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.fich-badge { font-size: 0.64rem; font-weight: 800; padding: 2px 9px; border-radius: 999px; color: #fff; }
.fich-badge.of { background: var(--primary); }
.fich-badge.neg { background: var(--amber); }
.fich-badge.rum, .fich-badge.ot { background: #64748b; }
.fich-ruta { display: flex; align-items: center; gap: 6px; font-size: 0.78rem; font-weight: 700; }
.fich-arrow { color: var(--muted); }
.fich-time { font-size: 0.68rem; color: var(--muted); margin-left: auto; }
.fich-extract { font-size: 0.82rem; color: var(--muted); line-height: 1.4; }
.fich-link { margin-top: 8px; background: none; border: none; color: var(--accent, var(--primary)); font: inherit; font-weight: 800; font-size: 0.8rem; cursor: pointer; padding: 0; }
@media (hover: hover) and (pointer: fine) { .fich-link:hover { text-decoration: underline; } }
@media (max-width: 560px) { .fich-card { gap: 10px; padding: 10px; } .fich-photo { width: 46px; height: 46px; } .fich-title { font-size: 0.88rem; } }

/* ---------- Alineaciones probables ---------- */
.once-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 10px; }
.once-team { background: linear-gradient(180deg, #1f8347, #0f5a30); border-radius: 14px; padding: 12px 10px; color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,0.18); }
.once-head { display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 800; font-size: 0.95rem; margin-bottom: 6px; }
.once-crest { width: 26px; height: 26px; object-fit: contain; }
.once-line { display: flex; justify-content: center; gap: 8px; margin: 12px 2px; flex-wrap: wrap; }
.once-p { display: flex; flex-direction: column; align-items: center; width: 60px; }
.once-p img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; background: #fff; border: 2px solid rgba(255,255,255,0.55); }
.once-p span { font-size: 0.6rem; text-align: center; margin-top: 3px; line-height: 1.12; font-weight: 700; }
.once-gk { margin-top: 14px; }
@media (max-width: 640px) { .once-wrap { grid-template-columns: 1fr; } }

/* ---------- Pestaña Alineaciones (campo moderno) ---------- */
.alin-jbar { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 2px 0 12px; }
.alin-nav { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--border); background: var(--card); color: var(--text); cursor: pointer; font-size: 0.7rem; transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease, opacity 0.15s ease; }
@media (hover: hover) and (pointer: fine) { .alin-nav:hover:not(:disabled) { border-color: var(--accent, var(--primary)); color: var(--accent, var(--primary)); } }
.alin-nav:disabled { opacity: 0.35; cursor: default; }
.alin-jtitle { font-weight: 800; font-family: 'Bricolage Grotesque', sans-serif; }
.alin-jgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 6px; }
.alin-jcard { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 6px; padding: 6px 8px; border: 1px solid var(--border); border-radius: 10px; background: var(--card); cursor: pointer; font-family: inherit; transition: border-color 0.15s ease; }
@media (hover: hover) and (pointer: fine) { .alin-jcard:hover { border-color: var(--accent, var(--primary)); } }
.alin-jcard.active { border-color: var(--accent, var(--primary)); box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.28); }
.alin-jteam { display: flex; align-items: center; gap: 6px; }
.alin-jteam img { width: 24px; height: 24px; object-fit: contain; }
.alin-jteam-r { justify-content: flex-end; }
.alin-jmid { display: flex; flex-direction: column; align-items: center; }
.alin-jtv { height: 12px; width: auto; max-width: 46px; object-fit: contain; margin-bottom: 1px; }
.alin-jmid b { font-size: 0.7rem; color: var(--text); }
.alin-jtime { font-size: 0.62rem; color: var(--muted); }
.alin-detail { margin-top: 14px; }
.alin-card { border: 1px solid var(--border); border-radius: 16px; background: var(--card); padding: 12px; margin-bottom: 14px; }
.alin-mhead { text-align: center; padding: 4px 4px 10px; }
.alin-mtitle { font-weight: 800; font-size: 0.95rem; }
.alin-mtv { display: flex; justify-content: center; align-items: center; gap: 10px; margin: 6px 0; }
.alin-mtv img { height: 18px; width: auto; max-width: 72px; object-fit: contain; }
.alin-mteams { display: flex; align-items: center; justify-content: center; gap: 26px; margin: 8px 0 4px; }
.alin-mteam { display: flex; flex-direction: column; align-items: center; gap: 5px; font-weight: 800; font-size: 0.9rem; }
.alin-mteam img { width: 46px; height: 46px; object-fit: contain; }
.alin-mvs { color: var(--muted); font-weight: 700; font-size: 0.8rem; }
.alin-mwhen { font-size: 0.72rem; color: var(--muted); }
.alin-pitches { display: flex; flex-direction: column; gap: 28px; margin-top: 10px; align-items: center; }
.alin-pitch { position: relative; aspect-ratio: 2 / 3; border-radius: 14px; overflow: hidden; background-color: #0f6b39; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 150' preserveAspectRatio='none'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.4' stroke-width='0.7'%3E%3Crect x='4' y='4' width='92' height='142'/%3E%3Cline x1='4' y1='75' x2='96' y2='75'/%3E%3Ccircle cx='50' cy='75' r='14'/%3E%3Crect x='26' y='4' width='48' height='17'/%3E%3Crect x='40' y='4' width='20' height='7'/%3E%3Crect x='26' y='129' width='48' height='17'/%3E%3Crect x='40' y='139' width='20' height='7'/%3E%3C/g%3E%3C/svg%3E"), linear-gradient(180deg, #1a8a4c 0%, #0f6b39 55%, #0a4e2a 100%); background-size: 100% 100%, 100% 100%; background-repeat: no-repeat; }
.alin-pteam { position: absolute; top: 3px; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; background: rgba(0,0,0,0.55); color: #fff; font-weight: 800; font-size: 0.66rem; white-space: nowrap; }
.alin-pteam img { width: 16px; height: 16px; object-fit: contain; }
.alin-line { position: absolute; left: 2%; right: 2%; display: flex; justify-content: center; gap: 2px; }
.alin-line-fwd { top: 8%; }
.alin-teamcol { display: flex; flex-direction: column; width: 100%; max-width: 640px; }
.alin-teamcol + .alin-teamcol { border-top: 2px solid var(--border); padding-top: 24px; }
.alin-tcolhead { display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 800; font-size: 1.05rem; margin-bottom: 10px; }
.alin-tcolhead img { width: 28px; height: 28px; object-fit: contain; }
.alin-form { font-size: 0.74rem; font-weight: 800; color: var(--muted); background: var(--bg-surface, #eef2f7); border-radius: 7px; padding: 1px 7px; }
.alin-pl { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; width: 112px; cursor: pointer; z-index: 2; }
.alin-pimg { position: relative; width: 108px; height: 108px; display: flex; align-items: center; justify-content: center; }
.alin-pl img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.45)); }
.alin-pl .alin-pname { font-size: 0.8rem; font-weight: 800; text-transform: uppercase; color: #fff; text-align: center; line-height: 1.05; margin-top: 3px; text-shadow: 0 1px 3px rgba(0,0,0,0.9); white-space: nowrap; max-width: 122px; }
.alin-palt { font-size: 0.6rem; font-weight: 700; text-transform: uppercase; color: rgba(255,255,255,0.72); text-align: center; line-height: 1.05; margin-top: 1px; text-shadow: 0 1px 3px rgba(0,0,0,0.9); white-space: nowrap; max-width: 122px; overflow: hidden; text-overflow: ellipsis; }
.alin-pct { position: absolute; top: 58%; left: -14%; transform: translateY(-50%); background: #0a0e13; color: #fff; font-weight: 900; font-size: 0.7rem; padding: 1px 7px; border-radius: 8px; border: 2px solid var(--accent); white-space: nowrap; line-height: 1.3; z-index: 3; }
.alin-pl-tight { width: 92px; }
.alin-pl-tight .alin-pimg { width: 88px; height: 88px; }
.alin-pl-tight .alin-pname { font-size: 0.68rem; max-width: 100px; }
.alin-pl-tight .alin-palt { font-size: 0.52rem; max-width: 100px; }
.alin-pl-tight .alin-pct { font-size: 0.6rem; padding: 1px 6px; }
.alin-pl-semi { width: 104px; }
.alin-pl-semi .alin-pimg { width: 100px; height: 100px; }
.alin-pl-semi .alin-pname { font-size: 0.75rem; max-width: 112px; }
.alin-pl-semi .alin-palt { font-size: 0.56rem; max-width: 112px; }
.alin-pl-semi .alin-pct { font-size: 0.66rem; padding: 1px 7px; }
.alin-bench { margin-top: 10px; }
.alin-bench-h { font-weight: 800; font-size: 0.8rem; margin-bottom: 6px; }
.alin-bench-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(60px, 1fr)); gap: 6px; }
.alin-bp { display: flex; flex-direction: column; align-items: center; cursor: pointer; background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 6px 2px 5px; }
.alin-bimg img { width: 40px; height: 40px; object-fit: contain; }
.alin-bprob { font-weight: 900; font-size: 0.58rem; color: #fff; background: rgba(0,0,0,0.78); border: 2px solid #2f9be0; border-radius: 7px; padding: 0 5px; margin-top: -8px; }
.alin-bname { font-size: 0.54rem; font-weight: 800; text-transform: uppercase; text-align: center; margin-top: 3px; line-height: 1.05; }
@media (max-width: 680px) {
  .alin-pimg { width: 86px; height: 86px; }
  .alin-pl { width: 94px; }
  .alin-pl .alin-pname { font-size: 0.68rem; max-width: 104px; }
  .alin-palt { font-size: 0.54rem; max-width: 104px; }
  .alin-pct { font-size: 0.6rem; padding: 1px 6px; }
  .alin-pl-tight { width: 72px; }
  .alin-pl-tight .alin-pimg { width: 68px; height: 68px; }
  .alin-pl-tight .alin-pname { font-size: 0.58rem; max-width: 80px; }
  .alin-pl-tight .alin-palt { font-size: 0.46rem; max-width: 80px; }
  .alin-pl-tight .alin-pct { font-size: 0.52rem; padding: 1px 5px; }
  .alin-pl-semi { width: 80px; }
  .alin-pl-semi .alin-pimg { width: 76px; height: 76px; }
  .alin-pl-semi .alin-pname { font-size: 0.62rem; max-width: 90px; }
  .alin-pl-semi .alin-palt { font-size: 0.48rem; max-width: 90px; }
  .alin-pl-semi .alin-pct { font-size: 0.56rem; padding: 1px 5px; }
}
.newscard { border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: var(--cx-surface, #fff); cursor: pointer; transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 4px 14px rgba(15, 23, 42, 0.05); }
@media (hover: hover) and (pointer: fine) { .newscard:hover { border-color: var(--border-hover, var(--accent)); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12); } }
.newscard-thumb { width: 100%; aspect-ratio: 16 / 9; background: rgba(127, 127, 127, 0.12); overflow: hidden; }
.newscard-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.newscard-thumb.ball img { object-fit: contain; padding: 22px; }
.newscard-body { padding: 9px 11px 11px; }
.newscard .news-title { font-weight: 700; font-size: 0.82rem; line-height: 1.25; }
.newscard .news-date { color: var(--muted); font-size: 0.68rem; margin-top: 5px; }
@media (hover: hover) and (pointer: fine) { .newscard:hover .news-title { color: var(--accent); } }

/* ---------- Inicio: feed de noticias tipo comuniate (grande + pequeñas apiladas) ---------- */
.feat-hero { position: relative; border-radius: 16px; overflow: hidden; cursor: pointer; aspect-ratio: 4 / 3; background: rgba(127, 127, 127, 0.12); margin-bottom: 10px; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 4px 14px rgba(15, 23, 42, 0.08); transition: transform 0.2s ease, box-shadow 0.2s ease; }
@media (hover: hover) and (pointer: fine) { .feat-hero:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(15, 23, 42, 0.16); } }
.feat-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.feat-hero-overlay { position: absolute; left: 0; right: 0; bottom: 0; padding: 46px 16px 16px; background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.82) 100%); color: #fff; }
.feat-hero-title { font-weight: 800; font-size: 1.3rem; line-height: 1.28; text-shadow: 0 1px 3px rgba(0,0,0,0.6); }
.feat-hero-date { font-size: 0.74rem; color: rgba(255,255,255,0.78); margin-top: 7px; font-weight: 600; }

.feat-sub { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.feat-card-sm { position: relative; border-radius: 14px; overflow: hidden; cursor: pointer; aspect-ratio: 16 / 7; background: rgba(127, 127, 127, 0.12); box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 3px 10px rgba(15, 23, 42, 0.07); transition: transform 0.2s ease, box-shadow 0.2s ease; }
@media (hover: hover) and (pointer: fine) { .feat-card-sm:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(15, 23, 42, 0.14); } }
.feat-card-sm img { width: 100%; height: 100%; object-fit: cover; display: block; }
.feat-card-sm-overlay { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 13px 10px; background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.78) 100%); color: #fff; }
.feat-card-sm-title { font-weight: 700; font-size: 0.86rem; line-height: 1.25; text-shadow: 0 1px 3px rgba(0,0,0,0.6); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.feat-card-sm-date { font-size: 0.64rem; color: rgba(255,255,255,0.75); margin-top: 4px; font-weight: 600; }

@media (max-width: 480px) { .feat-hero { aspect-ratio: 4 / 3.4; } .feat-hero-title { font-size: 1.1rem; } .feat-card-sm { aspect-ratio: 16 / 8; } }

/* Scrollbar visible en la tabla de mercado (la única que no tiene ya su
   propia barrita dibujada aparte). */
.mkt-wrap { scrollbar-width: thin; scrollbar-color: rgba(34, 197, 94, 0.55) transparent; }
.mkt-wrap::-webkit-scrollbar { height: 9px; }
.mkt-wrap::-webkit-scrollbar-thumb { background: rgba(34, 197, 94, 0.5); border-radius: 9px; }
.mkt-wrap::-webkit-scrollbar-track { background: rgba(127, 127, 127, 0.12); border-radius: 9px; }
[data-theme="light"] .mkt-wrap::-webkit-scrollbar-thumb { background: rgba(22, 163, 74, 0.6); }
/* .merc-bestrow y .cx-strip-track ya tienen su propia barrita (.cx-scrollbar)
   dibujada debajo: se oculta su scrollbar nativo para no tener dos. */
.merc-bestrow, .cx-strip-track { scrollbar-width: none; -ms-overflow-style: none; }
.merc-bestrow::-webkit-scrollbar, .cx-strip-track::-webkit-scrollbar { display: none; height: 0; }
.mkt-hint { font-size: 0.72rem; color: var(--muted); font-weight: 600; margin-top: 3px; }
@media (max-width: 560px) { .news-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; } .newscard .news-title { font-size: 0.74rem; } }
.noti-back { margin-bottom: 16px; }
#noticiaView .ficha-name { margin-bottom: 10px; }

/* Campo: info clara + arrastre */
.pitch-player { width: 86px; cursor: grab; }
.pitch-name { max-width: 86px; font-size: 0.74rem; }
.pitch-info { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; margin-top: 3px; }
.pc-prob { font-size: 0.6rem; font-weight: 800; color: #eaf2ff; background: rgba(0,0,0,0.42); padding: 1px 6px; border-radius: 6px; }
.pc-bad { font-size: 0.58rem; font-weight: 800; background: var(--red); color: #fff; padding: 1px 6px; border-radius: 6px; }
.pitch-ha { font-size: 0.58rem; color: rgba(255,255,255,0.95); margin-top: 2px; max-width: 86px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pitch-pts { font-size: 0.66rem; font-weight: 800; color: #fff; margin-top: 1px; }
.pitch-player.dragging { opacity: 0.45; }
.pitch-player.clickable, .pitch-player { cursor: grab; }
.merc-club.merc-club-all { width: auto; padding: 0 12px; border-radius: 999px; font-size: 0.82rem; font-weight: 700; color: var(--text); }

/* Banquillo de "Analiza tu equipo" (el campo en sí reutiliza .alin-pitch/.alin-pl,
   el mismo motor que "Alineaciones probables", para que no quede descuadrado). */
.pitch-player { display: flex; flex-direction: column; align-items: center; width: 64px; }
.pitch-photo { width: 46px; height: 46px; border-radius: 50%; overflow: hidden; background: rgba(0,0,0,0.35); border: 2px solid rgba(255,255,255,0.9); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.8rem; color: #fff; }
.pitch-photo img { width: 100%; height: 100%; object-fit: cover; }
.pitch-name { font-size: 0.7rem; font-weight: 700; color: #fff; text-align: center; margin-top: 3px; text-shadow: 0 1px 3px rgba(0,0,0,0.8); max-width: 64px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pitch-tag { font-size: 0.62rem; font-weight: 800; padding: 1px 6px; border-radius: 6px; margin-top: 2px; }
.pitch-tag.ok { background: rgba(255,255,255,0.22); color: #fff; }
.pitch-tag.inj { background: var(--red); color: #fff; }
.pitch-tag.doubt { background: #eab308; color: #1a1a1a; }
.pitch-tag.red { background: #f97316; color: #fff; }
.pitch-ha { font-size: 0.58rem; color: rgba(255,255,255,0.9); margin-top: 1px; }
.an-text p { margin: 8px 0; line-height: 1.65; }
.an-text strong { color: var(--accent, var(--accent)); }

/* ---------- Rachas (Futmondo Social) ---------- */
.rachas-sub { color: var(--muted); font-size: 0.76rem; font-weight: 600; }
.rachas-table { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.rachas-empty { color: var(--muted); font-size: 0.85rem; padding: 14px 4px; }
.racha-row {
  display: grid;
  grid-template-columns: 38px minmax(110px, 1fr) auto auto auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px 12px;
  cursor: pointer;
  transition: color 0.16s ease, background-color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease, opacity 0.16s ease;
  font-family: inherit;
}
@media (hover: hover) and (pointer: fine) { .racha-row:hover { border-color: var(--accent); transform: translateY(-1px); } }
.racha-photo { position: relative; width: 38px; height: 38px; flex: 0 0 auto; }
.racha-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; background: var(--bg-surface, #e2e8f0); }
.racha-info { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.racha-name { font-weight: 700; font-size: 0.9rem; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.racha-meta { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 0.74rem; }
.racha-crest { width: 16px; height: 16px; object-fit: contain; }
.racha-role { font-size: 0.62rem; font-weight: 800; padding: 1px 6px; border-radius: 6px; }
.racha-scores { display: flex; gap: 5px; }
.racha-chip { display: flex; flex-direction: column; align-items: center; min-width: 30px; border-radius: 8px; overflow: hidden; background: #64748b; }
.racha-chip i { font-style: normal; font-size: 0.54rem; font-weight: 800; color: rgba(255, 255, 255, 0.9); background: rgba(0, 0, 0, 0.25); width: 100%; text-align: center; padding: 1px 0; letter-spacing: 0.02em; }
.racha-chip b { font-size: 0.82rem; font-weight: 800; color: #fff; padding: 2px 6px; line-height: 1.15; }
.racha-chip.hi { background: var(--primary); }
.racha-chip.mid { background: #0891b2; }
.racha-chip.lo { background: #64748b; }
.racha-chip.zero { background: #334155; }
.racha-chip.zero i { color: rgba(255, 255, 255, 0.5); }
.racha-stats { display: flex; align-items: center; gap: 14px; }
.rs-pts { display: flex; flex-direction: column; align-items: center; font-family: 'Bricolage Grotesque', sans-serif; font-size: 1.15rem; font-weight: 800; color: var(--text); line-height: 1; }
.rs-pts small { font-family: 'Figtree', sans-serif; font-size: 0.52rem; font-weight: 800; color: var(--muted); letter-spacing: 0.06em; margin-top: 2px; }
.rs-media { display: flex; flex-direction: column; align-items: flex-start; }
.rs-media b { font-size: 0.92rem; color: var(--accent); font-weight: 800; line-height: 1; }
.rs-media b small { font-size: 0.52rem; color: var(--muted); font-weight: 800; letter-spacing: 0.05em; margin-left: 4px; }
.rs-bar { width: 56px; height: 4px; border-radius: 3px; background: var(--border); overflow: hidden; margin-top: 4px; }
.rs-bar-fill { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--accent), #10b981); }
.racha-val { display: flex; flex-direction: column; align-items: flex-end; font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 0.84rem; color: var(--text); white-space: nowrap; line-height: 1.15; }
.racha-val small { font-family: 'Figtree', sans-serif; font-size: 0.56rem; font-weight: 700; color: var(--muted); text-transform: uppercase; }
.racha-val.up span { color: var(--accent); }
.racha-val.down span { color: var(--red); }

@media (max-width: 640px) {
  .racha-row {
    grid-template-columns: 34px 1fr auto;
    grid-template-areas: "ph info stats" "ph scores val";
    row-gap: 6px;
    column-gap: 10px;
    padding: 8px 10px;
  }
  .racha-photo { grid-area: ph; }
  .racha-info { grid-area: info; }
  .racha-scores { grid-area: scores; }
  .racha-stats { grid-area: stats; justify-self: end; }
  .racha-val { grid-area: val; justify-self: end; }
  .racha-chip { min-width: 26px; }
  .racha-chip i { font-size: 0.5rem; }
  .racha-chip b { font-size: 0.76rem; }
  .rs-bar { width: 46px; }
}

/* Evita que la pagina salte al buscar/filtrar */
html { overflow-anchor: none; }
.market-grid { overflow-anchor: none; }

/* ---------- Clausulazo jugoso ---------- */
.claus-filters { display: flex; flex-direction: column; gap: 6px; margin: 12px 0 2px; }
.claus-frow { display: flex; flex-wrap: wrap; gap: 6px; }
.claus-chip { font: inherit; font-size: 0.72rem; font-weight: 700; padding: 4px 11px; border-radius: 999px; border: 1px solid var(--border); background: var(--card); color: var(--muted); cursor: pointer; transition: color 0.14s ease, background-color 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease, transform 0.14s ease, opacity 0.14s ease; }
@media (hover: hover) and (pointer: fine) { .claus-chip:hover { border-color: var(--accent); color: var(--text); } }
.claus-chip.active { background: var(--accent); border-color: var(--accent); color: #05130a; }
.claus-trend { font-size: 0.68rem; font-weight: 800; margin-top: 5px; }
.claus-trend.down { color: var(--primary); }
.claus-trend.up { color: #dc2626; }
.claus-newowner { font-size: 0.62rem; font-weight: 800; color: #2563eb; margin-top: 4px; }
.claus-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin-top: 12px; }
.claus-card { display: flex; gap: 10px; align-items: center; background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 10px; cursor: pointer; transition: color 0.16s ease, background-color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease, opacity 0.16s ease; }
@media (hover: hover) and (pointer: fine) { .claus-card:hover { border-color: var(--accent); transform: translateY(-1px); } }
.claus-photo { width: 46px; height: 46px; flex: 0 0 auto; border-radius: 50%; overflow: hidden; background: var(--bg-surface, #e2e8f0); }
.claus-img { width: 100%; height: 100%; object-fit: cover; }
.claus-card .mcard-body { min-width: 0; }
.claus-card .mcard-name { font-weight: 700; font-size: 0.88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.claus-owner { display: inline-flex; align-items: center; justify-content: center; gap: 4px; font-size: 0.7rem; color: var(--muted); font-weight: 600; }
.claus-ownav { width: 16px; height: 16px; border-radius: 50%; object-fit: cover; background: var(--bg-surface, #e2e8f0); }
.claus-clause { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 0.9rem; color: var(--accent); margin-top: 2px; }
.claus-exp { font-size: 0.72rem; color: var(--text); font-weight: 700; }
.claus-lock { font-size: 0.68rem; color: var(--amber); font-weight: 700; margin-top: 3px; }
.claus-free { font-size: 0.68rem; color: var(--primary); font-weight: 700; margin-top: 3px; }

/* Clausulazo (apartado) */
.claus-card2 { display: flex; flex-direction: column; align-items: center; text-align: center; background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 12px 10px; cursor: pointer; transition: color 0.16s ease, background-color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease, opacity 0.16s ease; }
@media (hover: hover) and (pointer: fine) { .claus-card2:hover { border-color: var(--accent); transform: translateY(-2px); } }
.claus-photo2 { position: relative; width: 60px; height: 60px; margin-bottom: 6px; }
.claus-photo2 .claus-img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; background: var(--bg-surface, #e2e8f0); }
.claus-body2 { width: 100%; }
.claus-name2 { font-weight: 800; font-family: 'Bricolage Grotesque', sans-serif; font-size: 1.08rem; }
.mbh-sub { font-size: 0.72rem; color: var(--muted); font-weight: 600; margin-left: 8px; }
.mbh-hint { font-size: 0.7rem; color: var(--muted); font-weight: 700; margin-left: auto; white-space: nowrap; }
.claus-pos { display: flex; justify-content: center; gap: 4px; margin: 4px 0 2px; }
.claus-team { display: flex; align-items: center; justify-content: center; gap: 5px; color: var(--muted); font-size: 0.76rem; }
.claus-owner { color: var(--muted); font-size: 0.74rem; margin-top: 1px; }
.claus-fitwrap { margin-top: 8px; width: 100%; }
.claus-fitlabel { font-size: 0.62rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.claus-fit-scores { justify-content: center; flex-wrap: wrap; }
/* Antes cada dato (PTS/Media/Cláusula) iba en su propia caja con borde,
   las tres igual de peso visual → se veía recargado. Ahora solo la Media
   (el número por el que se ordena el ranking) lleva una píldora de color;
   PTS y Cláusula son texto plano, discreto, en la misma línea. */
.claus-stats { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; row-gap: 4px; column-gap: 10px; margin: 9px 0; max-width: 100%; }
.claus-stat { background: none; border: none; padding: 0; display: flex; flex-direction: row; align-items: baseline; gap: 4px; min-width: 0; }
.claus-stat b { font-family: 'Bricolage Grotesque', sans-serif; font-size: 0.86rem; font-weight: 700; color: var(--text); white-space: nowrap; }
.claus-stat small { font-size: 0.66rem; color: var(--muted); text-transform: none; font-weight: 600; white-space: nowrap; }
.claus-stat.clause b { color: var(--accent); font-size: 0.86rem; white-space: nowrap; }
.claus-stat.media { background: var(--primary); border-radius: 999px; padding: 4px 12px; }
.claus-stat.media b { color: #fff; font-size: 0.98rem; line-height: 1; }
.claus-stat.media small { color: rgba(255, 255, 255, 0.85); text-transform: uppercase; font-size: 0.58rem; font-weight: 700; }
.claus-val b { font-weight: 800; }
.claus-above { color: #dc2626; font-size: 0.72rem; font-weight: 800; }
.claus-histrow { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.claus-hist { display: flex; flex-direction: column; align-items: center; gap: 1px; background: var(--card-solid); border: 1px solid var(--border); border-radius: 10px; padding: 3px 9px; line-height: 1.2; }
.claus-hist b { font-family: 'Bricolage Grotesque', sans-serif; font-size: 0.74rem; font-weight: 800; }
.claus-hist small { font-size: 0.6rem; color: var(--muted); font-weight: 600; }
.claus-hist.up b { color: var(--accent); }
.claus-hist.down b { color: var(--red); }
.claus-hist.flat b { color: var(--muted); }
.claus-played { font-size: 0.74rem; color: var(--muted); margin-top: 3px; }
.fm-nojugo { color: var(--muted); font-style: italic; }

/* Dashboard participación (ficha) */
.dash { margin: 14px 0; }
.dash-card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 16px; }
.dash-kicker { color: var(--primary); font-size: 0.68rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.dash-title { font-family: 'Bricolage Grotesque', sans-serif; font-size: 1.2rem; margin: 2px 0 8px; }
.dash-legend { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; font-size: 0.7rem; color: var(--muted); margin-bottom: 12px; }
.dash-lg { display: inline-flex; align-items: center; gap: 5px; }
.dash-lg .dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.dot.blue { background: #2563eb; }
.dot.green { background: var(--primary); }
.dot.yellow { background: var(--amber); }
.dash-media { margin-left: auto; color: #dc2626; font-weight: 700; }
.dash-chart { position: relative; height: 190px; }
.dash-chart::before { content: ''; position: absolute; left: 24px; right: 0; bottom: 20px; height: 1px; background: var(--border); }
.dash-yaxis { position: absolute; left: 0; top: 0; bottom: 20px; width: 20px; display: flex; flex-direction: column; justify-content: space-between; font-size: 0.56rem; color: var(--muted); text-align: right; }
.dash-avg { position: absolute; left: 24px; right: 0; border-top: 1px dashed #dc2626; }
.dash-avglab { position: absolute; right: 0; top: -13px; font-size: 0.6rem; color: #dc2626; font-weight: 700; }
.dash-bars { position: absolute; inset: 0; display: flex; align-items: flex-end; gap: 6px; padding-bottom: 20px; padding-left: 24px; }
.dash-col { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; justify-content: flex-end; }
.dash-barwrap { width: 100%; flex: 1; display: flex; align-items: flex-end; justify-content: center; }
.dash-bar { position: relative; width: 62%; max-width: 28px; border-radius: 6px 6px 0 0; }
.dash-min { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); font-size: 0.55rem; color: var(--muted); font-weight: 700; white-space: nowrap; }
.dash-bar.completo { background: #2563eb; }
.dash-bar.sustituido { background: var(--primary); }
.dash-bar.banquillo { background: var(--amber); }
.dash-bar.none { height: 4px !important; background: var(--border); border-radius: 3px; }
.dash-x { font-size: 0.62rem; color: var(--muted); }
.dash-sect { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 0.92rem; margin: 16px 0 8px; color: var(--text); }
.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dash-m { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 12px; }
.dash-mh { display: flex; align-items: center; justify-content: space-between; }
.dash-mt { font-size: 0.74rem; color: var(--muted); font-weight: 700; }
.dash-ico { width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.68rem; color: #fff; }
.dash-ico.green { background: var(--primary); }
.dash-ico.blue { background: #2563eb; }
.dash-ico.purple { background: #7c3aed; }
.dash-ico.orange { background: #ea580c; }
.dash-mb { display: flex; align-items: baseline; gap: 5px; margin-top: 6px; }
.dash-mb b { font-family: 'Bricolage Grotesque', sans-serif; font-size: 1.45rem; color: var(--text); }
.dash-ms { font-size: 0.7rem; color: var(--muted); }
.dash-pb { height: 6px; border-radius: 4px; background: var(--border); margin-top: 8px; overflow: hidden; }
.dash-pf { display: block; height: 100%; border-radius: 4px; background: var(--primary); }
.dash-pf.blue { background: #2563eb; }
.dash-avail { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 12px; text-align: center; }
.dash-al { font-size: 0.72rem; color: var(--muted); font-weight: 700; }
.dash-av { font-family: 'Bricolage Grotesque', sans-serif; font-size: 1.4rem; font-weight: 800; color: var(--text); }
.dash-as { font-size: 0.68rem; color: var(--primary); font-weight: 700; }
.claus-val { display: flex; flex-direction: column; gap: 2px; font-size: 0.8rem; }
.claus-val .claus-diff { color: var(--muted); font-size: 0.72rem; }
.claus-status { display: inline-block; font-size: 0.68rem; font-weight: 800; padding: 1px 8px; border-radius: 6px; margin-top: 6px; color: #fff; background: var(--primary); }
.claus-status.inj { background: var(--red); }
.claus-status.red { background: #f97316; }
.claus-status.doubt { background: #eab308; color: #1a1a1a; }
.claus-status.ok { background: var(--primary); }
.claus-why { font-size: 0.74rem; color: var(--muted); margin-top: 6px; }

/* Estado en jugadores en racha */
.racha-status { display: inline-block; font-size: 0.6rem; font-weight: 800; padding: 0 6px; border-radius: 6px; margin-top: 2px; color: #fff; background: var(--primary); }
.racha-status.inj { background: var(--red); }
.racha-status.red { background: #f97316; }
.racha-status.doubt { background: #eab308; color: #1a1a1a; }

/* Ficha: icono mas grande, nombre completo y multiposicion */
.ficha-head-center .mcard-photo { width: 104px; height: 104px; }
.ficha-head-center .mcard-img { width: 100%; height: 100%; object-fit: cover; }
.ficha-head-center .ficha-name { font-size: 1.55rem; margin-top: 4px; }
.ficha-multi { font-size: 0.82rem; font-weight: 700; color: var(--accent); margin-top: 4px; }
.fv-val { display: flex; align-items: center; gap: 5px; }
.fv-crest { width: 16px; height: 16px; object-fit: contain; flex: 0 0 auto; }
.merc-best { margin-bottom: 20px; }
.ficha-fichaje { font-size: 0.82rem; color: var(--muted); margin-top: 4px; }

/* ---------- Analiza: subida de archivo ---------- */
.an-desc { background: rgba(127, 127, 127, 0.06); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; margin: 8px 0 16px; }
.an-desc > b { display: block; margin-bottom: 6px; }
.an-desc ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.an-desc li { font-size: 0.85rem; color: var(--text); }
.an-drop { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; padding: 26px 18px; border: 2px dashed var(--border-hover, var(--accent)); border-radius: 16px; background: rgba(34, 197, 94, 0.06); cursor: pointer; transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, opacity 0.2s ease; margin-bottom: 14px; }
@media (hover: hover) and (pointer: fine) { .an-drop:hover { border-color: var(--accent); background: rgba(34, 197, 94, 0.12); } }
.an-drop-ico { font-size: 1.8rem; }
.an-drop-t { font-weight: 700; font-family: 'Bricolage Grotesque', sans-serif; }
.an-drop-s { font-size: 0.8rem; color: var(--muted); }
.an-file { display: none !important; }

/* ---------- Tabla de jugadores (mercado) ---------- */
.mkt-headline { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 1.05rem; margin: 18px 0 10px; }
.mkt-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 18px 0 10px; }
.mkt-top .mkt-headline { margin: 0; }
.mkt-wrap { overflow-x: auto; }
.mkt-table { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 12px; min-width: 980px; }
.mkt-row > :first-child { position: sticky; left: 0; z-index: 1; background: var(--cx-surface, #fff); box-shadow: 6px 0 8px -7px rgba(0, 0, 0, 0.25); }
.mkt-head > :first-child { z-index: 3; background: #0b0e13; }
.mkt-row { display: grid; grid-template-columns: minmax(180px, 1.7fr) 1fr 1fr 1.1fr 0.8fr 0.62fr 2.1fr; align-items: center; gap: 10px; padding: 10px 14px; border-top: 1px solid var(--border); background: transparent; color: var(--text); text-align: left; cursor: pointer; font-family: inherit; font-size: 0.86rem; width: 100%; border-left: 0; border-right: 0; border-bottom: 0; transition: background 0.15s ease; }
@media (hover: hover) and (pointer: fine) { .mkt-row:not(.mkt-head):hover { background: rgba(127, 127, 127, 0.06); } }
.mkt-head { background: #0b0e13; color: #fff; font-weight: 800; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.03em; border-top: none; cursor: default; border-radius: 12px 12px 0 0; }
.mkt-head .mkt-h:nth-child(2), .mkt-head .mkt-h:nth-child(3), .mkt-head .mkt-h:nth-child(4) { text-align: right; }
.mkt-head .mkt-h:nth-child(5), .mkt-head .mkt-h:nth-child(6) { text-align: center; }
.mkt-head .mkt-h.active { color: var(--accent); }
.mkt-h { white-space: nowrap; }
.mkt-arrow { font-size: 0.72rem; opacity: 0.55; }
.mkt-h.active .mkt-arrow { opacity: 1; }
.mkt-jug { display: flex; align-items: center; gap: 8px; min-width: 0; }
.mkt-photo { position: relative; width: 34px; height: 34px; flex: 0 0 auto; }
.mkt-img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; background: var(--bg-surface, #e2e8f0); }
.mkt-pos { position: absolute; left: 50%; transform: translateX(-50%); bottom: -5px; font-size: 0.38rem; padding: 0 2px; line-height: 1.3; border-radius: 4px; letter-spacing: 0; white-space: nowrap; }
.mkt-jname { display: flex; flex-direction: column; min-width: 0; }
.mkt-jname b { font-weight: 700; font-size: 0.8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mkt-jteam { display: flex; align-items: center; gap: 4px; color: var(--muted); font-size: 0.7rem; }
.mkt-jteam img { width: 14px; height: 14px; object-fit: contain; }
.mkt-dif { display: flex; align-items: center; justify-content: flex-end; gap: 4px; font-weight: 800; }
.mkt-lens { font-size: 0.8rem; opacity: 0.6; }
.mkt-dif.up, .mkt-pct.up, .mkt-tend.up { color: var(--primary); }
.mkt-dif.down, .mkt-pct.down, .mkt-tend.down { color: #dc2626; }
.mkt-pct, .mkt-acel { text-align: center; font-weight: 700; }
.mkt-tend { font-weight: 700; text-align: center; }
.mkt-rival { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; font-size: 0.72rem; overflow: visible; }
.mkt-rival b { background: var(--card-solid); border: 1px solid var(--border); border-radius: 6px; padding: 0 5px; font-size: 0.64rem; }
.mkt-rv { color: var(--muted); white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.15; }
.mkt-prob { background: var(--accent); color: #05130a; border-radius: 6px; padding: 0 5px; font-weight: 800; font-size: 0.64rem; }
.mkt-val { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; text-align: right; white-space: nowrap; }
.mkt-vant { color: var(--muted); font-weight: 600; text-align: right; white-space: nowrap; }
@media (max-width: 820px) { .mkt-table { min-width: 980px; } }

.ff-health-warn { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 10px 0; padding: 10px 14px; border-radius: 12px; border: 1px solid rgba(220,38,38,0.4); background: rgba(220,38,38,0.1); color: #dc2626; font-size: 0.82rem; font-weight: 600; }
.ff-health-x { background: none; border: none; color: inherit; font-size: 1rem; cursor: pointer; padding: 0 2px; line-height: 1; flex: 0 0 auto; }

.an-caphist { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--border); }
.cap-hist-summary { font-size: 0.8rem; font-weight: 700; color: var(--accent); margin-bottom: 10px; }
.cap-hist-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 10px; margin-bottom: 6px; background: var(--card-solid); }
.cap-hist-j { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 0.74rem; color: var(--muted); width: 26px; flex: 0 0 auto; }
.cap-hist-photo { width: 32px; height: 32px; border-radius: 50%; overflow: hidden; background: var(--card); flex: 0 0 auto; }
.cap-hist-photo img { width: 100%; height: 100%; object-fit: cover; }
.cap-hist-body { flex: 1 1 auto; min-width: 0; }
.cap-hist-name { font-weight: 700; font-size: 0.86rem; }
.cap-hist-alts { font-size: 0.68rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cap-hist-pts { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 0.82rem; flex: 0 0 auto; white-space: nowrap; }
.cap-hist-pts.win { color: var(--accent); }
.cap-hist-pts.pending { color: var(--muted); font-weight: 600; }




@media (max-width: 640px) {
  .claus-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .claus-card2 { padding: 10px 8px; border-radius: 12px; }
  .claus-photo2 { width: 48px; height: 48px; margin-bottom: 4px; }
  .claus-name2 { font-size: 0.9rem; }
  .claus-stats { gap: 7px; margin: 7px 0; flex-wrap: wrap; }
  .claus-stat b { font-size: 0.78rem; }
  .claus-stat small { font-size: 0.6rem; }
  .claus-stat.media { padding: 3px 9px; }
  .claus-stat.media b { font-size: 0.88rem; }
  .claus-stat.clause b { font-size: 0.78rem; }
}

/* Escala de probabilidad de jugar (botón "?" + panel desplegable) */
.prob-legend-wrap { margin: 6px 0 2px; }
.prob-legend-btn { background: none; border: 1px dashed var(--border); border-radius: 999px; padding: 4px 11px; font-size: 0.72rem; font-weight: 700; color: var(--muted); cursor: pointer; font-family: inherit; }
@media (hover: hover) and (pointer: fine) { .prob-legend-btn:hover { border-color: var(--accent); color: var(--accent); } }
.prob-legend-panel { margin-top: 8px; display: flex; flex-direction: column; gap: 3px; background: var(--card-solid); border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; }
.prob-legend-row { display: flex; align-items: baseline; gap: 8px; font-size: 0.76rem; }
.prob-legend-pct { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; min-width: 34px; flex: 0 0 auto; }
.prob-legend-txt { color: var(--muted); line-height: 1.35; }

/* ---------- Página de partido ---------- */
.mpage { max-width: 860px; margin: 0 auto; font-family: "Fira Sans Condensed", "Segoe UI", Arial, sans-serif; }
.mpage-top { border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; background: var(--card); }
.mpage-topline { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mpage-comp { font-family: "Poppins", "Fira Sans Condensed", sans-serif; font-weight: 900; font-size: 0.78rem; letter-spacing: 0.03em; text-transform: uppercase; color: #078a55; }
.mpage-tv { display: flex; align-items: center; gap: 8px; }
.mpage-tv img { height: 16px; width: auto; max-width: 60px; object-fit: contain; }
.mpage-teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin: 12px 0 4px; }
.mpage-team { display: flex; flex-direction: column; align-items: center; gap: 6px; font-weight: 800; }
.mpage-team img { width: 48px; height: 48px; object-fit: contain; }
.mpage-mid { text-align: center; }
.mpage-state { font-weight: 800; font-size: 0.72rem; color: #16a34a; text-transform: uppercase; letter-spacing: 0.04em; }
.mpage-score { font-family: 'Fira Sans Condensed', 'Bricolage Grotesque', sans-serif; font-size: 2.6rem; font-weight: 900; line-height: 1.05; }
.mpage-goals { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 22px; margin: 10px 0 2px; font-size: 0.8rem; }
.mpage-gcol { display: flex; flex-direction: column; min-width: 0; }
.mpage-gcol.away { text-align: right; }
.mpage-grow { display: flex; justify-content: space-between; gap: 8px; padding: 2px 0; }
.mpage-gcol.away .mpage-grow { justify-content: flex-end; }
.mpage-gname { font-weight: 700; }
.mpage-gmin { color: var(--muted); font-weight: 700; }
.mpage-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 24px; margin-top: 12px; }
.mpage-col { display: flex; flex-direction: column; }
.mpage-row { display: flex; align-items: center; gap: 8px; padding: 6px 9px; margin-top: 4px; border: 1px solid var(--border); border-radius: 10px; background: linear-gradient(135deg, rgba(7,138,85,0.06), rgba(7,138,85,0.015)); }
.mpage-face { width: 24px; height: 24px; border-radius: 50%; overflow: hidden; background: var(--bg-surface, #e2e8f0); flex: 0 0 auto; }
.mpage-face.empty { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2394a3b8'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c0-4 4-6 8-6s8 2 8 6z'/%3E%3C/svg%3E"); background-size: 66%; background-position: center 62%; background-repeat: no-repeat; }
.mpage-face img { width: 100%; height: 100%; object-fit: cover; }
.mpage-pos { flex: 0 0 auto; width: 24px; text-align: center; font-size: 0.6rem; font-weight: 800; color: #fff; border-radius: 6px; padding: 1.5px 0; }
.mpage-pos.pt { background: #0ea958; } .mpage-pos.df { background: #2687e8; } .mpage-pos.md { background: #f39c12; } .mpage-pos.dl { background: #e94242; } .mpage-pos.x { background: transparent; }
.mpage-name { flex: 1 1 auto; min-width: 0; font-family: "Poppins", "Fira Sans Condensed", sans-serif; font-weight: 600; font-size: 0.84rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mpage-pts { flex: 0 0 auto; font-weight: 800; font-size: 0.9rem; }
.mpage-pts.top { background: #eab308; color: #111; border-radius: 5px; padding: 1px 7px; }
@media (max-width: 640px) { .mpage-cols { grid-template-columns: 1fr; gap: 0 0 18px; } }
/* ---------- Página de partido: meta, eventos y leyenda ---------- */
.mpage-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; margin-top: 8px; font-size: 0.78rem; color: var(--muted); }
.mpage-mi { white-space: nowrap; }
.mpage-ev { display: flex; align-items: center; gap: 3px; margin-left: 6px; }
.mpage-evb { font-size: 0.54rem; font-weight: 800; color: #fff; border-radius: 4px; padding: 0 4px; line-height: 1.55; }
.mpage-evb.goal { background: #16a34a; }
.mpage-evb.own { background: #dc2626; }
.mpage-evb.miss { background: #b91c1c; }
.mpage-evb.assist { background: #0891b2; }
.mpage-evb.yel { background: #eab308; color: #1a1a1a; }
.mpage-evb.red { background: #dc2626; }
.mpage-evb.in { background: #16a34a; }
.mpage-evb.out { background: #ef4444; }
.mpage-evb.ideal { background: #f59e0b; color: #1a1a1a; }
.mpage-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 16px; font-size: 0.66rem; color: var(--muted); }
.mpage-lg { display: flex; align-items: center; gap: 4px; }

/* ---------- Página de partido: campo con la alineación ---------- */
.mpage-xi { margin-top: 14px; }
.mpage-xi-h { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0 0 8px; flex-wrap: wrap; }
.mpage-xi-title { font-family: "Poppins", "Fira Sans Condensed", sans-serif; font-weight: 900; font-size: 0.95rem; letter-spacing: 0.04em; text-transform: uppercase; color: #078a55; }
[data-theme="light"] .mpage-xi-title { color: #067a4b; }
.mpage-xipitches { margin-top: 4px; }
.mpage-xi-team { max-width: none; }
.mpage-xi-head { font-family: "Poppins", "Fira Sans Condensed", sans-serif; }
.mpage-xiimg { position: relative; }
/* Sin recuadro: el jugador va tal cual (recorte con transparencia) sobre el
   césped, como en Comuniate. Solo los que no tienen foto llevan un círculo
   gris con la silueta. */
.mpage-xi .alin-pimg.empty {
  width: 64px; height: 64px;
  margin: 0 auto;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.22);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff' fill-opacity='0.7'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c0-4 4-6 8-6s8 2 8 6z'/%3E%3C/svg%3E");
  background-size: 60%;
  background-position: center 62%;
  background-repeat: no-repeat;
}
.mpage-xpts {
  position: absolute; bottom: 4px; right: 4px; z-index: 3;
  min-width: 20px; text-align: center;
  background: #0b3d22; color: #fff;
  font-weight: 900; font-size: 0.7rem; line-height: 1.5;
  border-radius: 8px; padding: 0 5px;
  border: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 2px 6px rgba(0,0,0,0.35);
}
.mpage-xpts.top { background: #eab308; color: #111; }
.mpage-xev { display: flex; justify-content: center; margin-top: 2px; }
.mpage-xev .mpage-evb { font-size: 0.5rem; padding: 0 3px; }
.mpage-xmin { color: #ff7b7b; font-weight: 900; font-size: 0.6rem; margin-top: 1px; text-shadow: 0 1px 3px rgba(0,0,0,0.9); }
@media (max-width: 560px) {
  .mpage-xi .alin-pname { font-size: 0.72rem; max-width: 96px; }
  .mpage-xi .alin-pl-tight .alin-pname { font-size: 0.62rem; max-width: 84px; }
  .mpage-xi .alin-pl-semi .alin-pname { font-size: 0.68rem; max-width: 92px; }
}
/* Alternativas del once probable: caja gris con texto negro, justo debajo
   del campo (pedido por Edu). Solo en la alineación probable. */
.mpage-xi .alin-bench { background: #dde1e6; border-radius: 10px; padding: 10px 12px; margin-top: 12px; box-shadow: inset 0 0 0 1px #c6cbd2; }
.mpage-xi .alin-bench-h { color: #16191d; font-weight: 800; font-size: 0.74rem; letter-spacing: 0.03em; text-transform: uppercase; margin-bottom: 8px; }
.mpage-xi .alin-bench-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.mpage-xi .alin-bench .alin-bp { flex-direction: row; align-items: center; gap: 6px; background: #fff; border: 1px solid #c6cbd2; border-radius: 6px; padding: 3px 8px 3px 4px; }
.mpage-xi .alin-bench .alin-bp .alin-bimg img { width: 26px; height: 26px; }
.mpage-xi .alin-bench .alin-bprob { position: static; margin: 0; background: #16191d; color: #fff; border: none; font-size: 0.56rem; padding: 1px 5px; }
.mpage-xi .alin-bench .alin-bname { color: #16191d; font-size: 0.64rem; margin: 0; max-width: none; white-space: nowrap; }
/* Suplentes que salieron en la segunda parte: debajo del campo de SU equipo */
.mpage-subs-block { margin-top: 10px; }
.mpage-subs-h { font-weight: 800; font-size: 0.78rem; margin-bottom: 6px; color: var(--text); }
.mpage-subs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 6px; }
.mpage-subpts {
  font-weight: 900; font-size: 0.62rem;
  background: #0b3d22; color: #fff;
  border-radius: 6px; padding: 0 5px;
}
/* En móvil el campo va a todo el ancho de la pantalla (como la captura de
   Comuniate): se quita el padding del panel y del main solo en la página de
   partido/ficha, y las tarjetas de arriba recuperan su margen. */
@media (max-width: 720px) {
  .quiniela-main.mpage-open { padding-left: 0; padding-right: 0; }
  .quiniela-main.mpage-open .mpage.panel { padding-left: 0; padding-right: 0; border-radius: 0; }
  .quiniela-main.mpage-open .mpage-top { margin: 0 12px; }
  .quiniela-main.mpage-open .mpage-meta,
  .quiniela-main.mpage-open .mpage-goals,
  .quiniela-main.mpage-open .mpage-xi-h,
  .quiniela-main.mpage-open .mpage-legend,
  .quiniela-main.mpage-open .mpage-cols { margin-left: 12px; margin-right: 12px; }
  .quiniela-main.mpage-open .mpage-xi-team .mpage-subs-block { margin-left: 12px; margin-right: 12px; }
  .quiniela-main.mpage-open .mpage-xipitches { margin-left: 0; margin-right: 0; }
  .quiniela-main.mpage-open .mpage-xi-team .alin-pitch { border-radius: 0; }
}
/* Todos los jugadores: más grande */
@media (min-width: 821px){ .quiniela-main:has(.mkt-table){max-width:1400px} }
.mkt-table{min-width:1100px}
.mkt-row{padding:14px 18px;font-size:1rem;gap:14px;grid-template-columns:minmax(230px,1.8fr) 1fr 1fr 1.15fr .8fr .7fr 2fr}
.mkt-head{font-size:.78rem}
.mkt-photo{width:52px;height:52px}
.mkt-pos{font-size:.46rem;bottom:-6px}
.mkt-jname b{font-size:1rem}
.mkt-jteam{font-size:.82rem}
.mkt-jteam img{width:18px;height:18px}
.mkt-rival{font-size:.84rem}
.mkt-rival b,.mkt-prob{font-size:.76rem;padding:1px 6px}
.mkt-lens{font-size:.95rem}
@media (max-width:820px){.mkt-table{min-width:1100px}}

/* Móvil: tabla más estrecha (sin "Valor ant.") para ver tendencia y rival */
@media (max-width:820px){
  .mkt-table{min-width:660px}
  .mkt-row{grid-template-columns:150px 92px 104px 66px 58px 120px;padding:10px 10px;gap:8px;font-size:.88rem}
  .mkt-row > :nth-child(3){display:none}
  .mkt-photo{width:40px;height:40px}
  .mkt-jname b{font-size:.84rem}
  .mkt-jteam{font-size:.7rem}
  .mkt-jteam img{width:14px;height:14px}
  .mkt-head{font-size:.64rem}
  .mkt-rival{font-size:.72rem}
  .mkt-rival b,.mkt-prob{font-size:.64rem}
  /* Buscador: más aire, y al escribir queda fijo arriba con las sugerencias */
  .merc-filters{display:flex;flex-direction:column;gap:10px}
  .merc-search-hero:focus-within{position:sticky;top:112px;z-index:40;background:var(--cx-surface,var(--card-solid,#fff));padding:10px;margin:0 -6px;border-radius:16px;box-shadow:0 10px 26px rgba(0,0,0,.22)}
  .merc-search-hero .market-search{font-size:16px;margin:0}
  .merc-search-hero .mj-suggest{margin:8px 0 0}
  .mj-sug-row{padding:12px 14px;gap:14px}
  .mj-sug-row img{width:46px;height:46px}
  .mj-sug-tx b{font-size:1rem}
  .mj-sug-tx small{font-size:.8rem;opacity:.8}
  .merc-range{margin-top:12px}
  .merc-seg{margin-top:14px;margin-bottom:14px}
}

/* Buscador protagonista */
.merc-search-hero{margin:14px 0 18px;padding:16px;border-radius:20px;border:1px solid rgba(34,197,94,.45);background:linear-gradient(135deg,rgba(34,197,94,.14),rgba(34,197,94,.04));box-shadow:0 8px 24px rgba(34,197,94,.12)}
.msh-lab{display:block;font:800 .95rem/1.2 'Bricolage Grotesque',sans-serif;margin:0 0 10px}
.merc-search-hero .market-search{width:100%;box-sizing:border-box;height:54px;font-size:1.05rem;border-radius:16px;border:2px solid rgba(34,197,94,.55);margin:0}
.merc-search-hero .mj-suggest{margin:10px 0 0}
.merc-filters{margin-top:6px}
/* Cada jugador en su recuadro */
.mkt-table{border:0;gap:8px;background:transparent}
.mkt-row:not(.mkt-head){border:1px solid var(--border);border-radius:14px;background:var(--cx-surface,#fff)}
.mkt-row:not(.mkt-head) > :first-child{background:var(--cx-surface,#fff);box-shadow:none;border-radius:14px 0 0 14px}
@media (hover: hover) and (pointer: fine) { .mkt-row:not(.mkt-head):hover{border-color:rgba(34,197,94,.6)} }
.mkt-head{border-radius:12px}

/* ===== Mercado rediseñado ===== */
.mx-feat{margin:6px 0 18px;border:1px solid var(--border);border-radius:20px;padding:12px 12px 6px;background:var(--cx-surface,var(--card-solid,#fff))}
.mx-tabs{display:flex;gap:6px;padding:4px;border-radius:14px;background:rgba(127,127,127,.12);margin-bottom:8px}
.mx-tab{flex:1;border:0;background:transparent;color:var(--muted);font:800 .88rem/1 inherit;padding:11px 8px;border-radius:11px;cursor:pointer;transition:.18s}
.mx-tab.active{background:linear-gradient(135deg,#16a34a,#22c55e);color:#fff;box-shadow:0 4px 14px rgba(34,197,94,.35)}
.mx-pane.hidden{display:none}
.mx-feat .hl-head{margin-top:6px;padding-top:0;border-top:0}
.mx-feat .merc-best{margin-bottom:10px}
.mx-filters{margin:0 0 16px;border:1px solid var(--border);border-radius:20px;padding:14px;display:grid;gap:14px;background:var(--cx-surface,var(--card-solid,#fff))}
.mx-row{display:flex;flex-direction:column;gap:8px}
.mx-lab{font:800 .68rem/1 inherit;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.mx-chips{display:flex;gap:8px;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;margin:0;padding:2px 0}
.mx-chips::-webkit-scrollbar{display:none}
.mx-chip,.merc-segbtn.mx-chip{flex:0 0 auto;border:1.5px solid var(--border);background:transparent;color:var(--text);font:700 .86rem/1 inherit;padding:10px 15px;border-radius:999px;cursor:pointer;transition:.15s;white-space:nowrap}
.mx-chip:active{transform:scale(.96)}
.mx-chip.active,.merc-segbtn.mx-chip.active{background:linear-gradient(135deg,#16a34a,#22c55e);border-color:transparent;color:#fff;box-shadow:0 4px 12px rgba(34,197,94,.3)}
/* Periodo: control segmentado */
.hl-seg{background:rgba(127,127,127,.12);padding:4px;border-radius:14px;gap:2px;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}
.hl-seg::-webkit-scrollbar{display:none}
.hl-btn{border:0;background:transparent;color:var(--muted);padding:8px 13px;border-radius:10px;white-space:nowrap}
.hl-btn.active{background:var(--cx-surface,#fff);color:#16a34a;box-shadow:0 2px 8px rgba(0,0,0,.16)}
.mkt-top{margin:6px 0 12px}
@media (max-width:560px){.mkt-top{flex-direction:column;align-items:stretch}.hl-seg{width:100%}.hl-btn{flex:1}}

/* Móvil: chips que se ajustan en vez de cortarse; rol con punto de color */
.mx-chips{flex-wrap:wrap;overflow:visible}
.mx-chip{padding:9px 14px}
#mxRole .mx-chip:not([data-role=""])::before{content:"";display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:7px;background:var(--rc,#64748b)}
#mxRole .r-por{--rc:#f59e0b}#mxRole .r-def{--rc:#3b82f6}#mxRole .r-med{--rc:#22c55e}#mxRole .r-del{--rc:#ef4444}
#mxRole .mx-chip.active::before{background:#fff}
.racha-kind{display:inline-block;align-self:flex-start;font:800 .6rem/1 inherit;letter-spacing:.05em;text-transform:uppercase;padding:3px 7px;border-radius:999px;margin-bottom:3px}
.racha-kind.racha{background:rgba(249,115,22,.15);color:#ea580c}
.racha-kind.best{background:rgba(234,179,8,.18);color:#a16207}
.rk-best{border-color:rgba(234,179,8,.45)}
/* separador entre bloques de Destacados */
.racha-row.rk-best:first-of-type{margin-top:0}

/* Todos los botones de filtro iguales */
#mxRole .mx-chip::before{display:none!important}
.mx-filters .mx-chip,.mx-filters .merc-segbtn.mx-chip{min-width:84px;height:40px;display:inline-flex;align-items:center;justify-content:center;padding:0 16px;font:700 .86rem/1 inherit}

/* Reglas del once ideal */
.an-rules { margin: 8px 0 14px; border: 1px solid var(--border); border-radius: 12px; padding: 8px 12px; background: var(--card); }
.an-rules summary { cursor: pointer; font-weight: 700; font-size: 0.88rem; }
.an-rules-row { font-size: 0.8rem; line-height: 1.5; margin-top: 6px; }
#anOut .al { margin: 10px auto 6px; max-width: 520px; }

/* Once ideal de la IA: bloque aparte, estilo distinto al campo normal */
.an-ideal { margin: 26px 0 18px; padding: 16px 12px 14px; border-radius: 24px; color: #fff; background: radial-gradient(120% 90% at 0% 0%, #4338ca 0%, #1e1b4b 55%, #0b1020 100%); border: 1px solid rgba(165,180,252,.35); box-shadow: 0 20px 44px rgba(30,27,75,.45); }
.an-ideal-head { text-align: center; margin-bottom: 12px; }
.an-ideal-badge { display: inline-block; padding: 4px 12px; border-radius: 999px; font: 800 .68rem 'Figtree', sans-serif; letter-spacing: .08em; text-transform: uppercase; background: linear-gradient(90deg, #a78bfa, #38bdf8); color: #0b1020; }
.an-ideal-t { margin-top: 8px; font: 800 1.45rem/1.1 'Bricolage Grotesque', sans-serif; }
.an-ideal-s { margin-top: 4px; font-size: .78rem; color: rgba(255,255,255,.72); }
.an-ideal .al { background: linear-gradient(160deg, #312e81, #4338ca 60%, #6366f1); box-shadow: none; border: 1px solid rgba(255,255,255,.18); }
.an-ideal .al .pitch { background-color: #3730a3; }
.an-ideal .al .pitch::before { content: ""; position: absolute; inset: 0; background: #6366f1; mix-blend-mode: color; opacity: .9; pointer-events: none; }
.an-ideal .al-head { display: none; }
.an-ideal-diff { margin: 14px 4px 6px; padding: 16px 12px; font-size: 1.35rem; font-weight: 800; line-height: 1.2; color: #fff; text-align: center; background: rgba(34,197,94,.22); border: 1.5px solid rgba(34,197,94,.55); border-radius: 14px; }
.an-ideal .an-rules { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); color: #fff; }
.an-ideal .an-rules .muted { color: rgba(255,255,255,.7); }

/* Puntuación probable */
.an-proj { margin: 12px 0; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--border); background: var(--card); }
.an-proj-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.an-proj-k { font: 800 .86rem 'Bricolage Grotesque', sans-serif; }
.an-proj-n { font: 800 1.6rem/1 'Bricolage Grotesque', sans-serif; color: #16a34a; white-space: nowrap; }
.an-proj-r, .an-proj-vs, .an-proj-l { margin-top: 6px; font-size: .78rem; line-height: 1.4; }
.an-proj-vs { font-weight: 800; }
.an-proj-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.an-proj-chip { font-size: .72rem; font-weight: 800; padding: 3px 9px; border-radius: 999px; background: rgba(127,127,127,.14); }
.an-proj-note { margin-top: 8px; font-size: .68rem; opacity: .7; }
.an-proj-dark { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); color: #fff; }
.an-proj-dark .an-proj-n { color: #a5f3fc; }

/* Elegir capitán */
.an-cap-pickt { margin-top: 12px; font-size: .76rem; font-weight: 800; color: var(--muted); }
.an-cap-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.an-cap-opt { display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: 12px; border: 2px solid var(--border); background: var(--card-solid, var(--card)); color: inherit; text-align: left; cursor: pointer; font-family: inherit; }
.an-cap-opt.sel { border-color: #f59e0b; background: rgba(245,158,11,.14); }
.an-cap-opt-ph { width: 38px; height: 38px; border-radius: 50%; overflow: hidden; flex: none; background: rgba(127,127,127,.15); }
.an-cap-opt-ph img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.an-cap-opt-n { font-weight: 800; font-size: .82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.an-cap-opt-s { font-size: .68rem; color: var(--muted); }
.an-cap-opt-tx { min-width: 0; flex: 1; }
.an-rules-g { margin-top: 10px; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; opacity: .75; }
.an-rules-row.out { opacity: .8; }
.an-rules-d { font-size: .72rem; opacity: .8; font-weight: 400; }
.an-ideal .al-bench { background: linear-gradient(180deg, #1e1b4b, #312e81 55%, #4338ca); border-top-color: rgba(255,255,255,.2); }

/* Capitán y cláusulas: más compactos */
.an-capitan { padding: 9px 11px; margin-bottom: 8px; }
.an-capitan-t { font-size: .8rem; margin-bottom: 6px; }
.an-cap-photo { width: 40px; height: 40px; }
.an-cap-name { font-size: .86rem; }
.an-cap-why { font-size: .68rem; }
.an-cap-score { font-size: .95rem; }
.an-cap-pickt { margin-top: 8px; font-size: .7rem; }
.an-cap-opts { gap: 6px; margin-top: 6px; }
.an-cap-opt { padding: 6px; gap: 6px; }
.an-cap-opt-ph { width: 30px; height: 30px; }
.an-cap-opt-n { font-size: .76rem; }
.an-cap-opt-s { font-size: .62rem; }
.an-clauses { padding: 9px 11px; }
.an-clauses-t { font-size: .8rem; }
.an-clauses-info { font-size: .66rem; margin-bottom: 4px; }
.an-clause-grid { grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 7px; margin-top: 6px; }
.an-clause-card { padding: 7px 6px; gap: 2px; }
.an-clause-photo { width: 36px; height: 36px; }
.an-clause-name { font-size: .7rem; }
.an-clause-cl { font-size: .72rem; }
.an-clause-vl { font-size: .62rem; }

/* Racha / a la baja / dudas */
.an-tr-group { margin-top: 10px; padding: 8px 10px; border-radius: 14px; border: 1px solid rgba(127,127,127,.25); }
.an-tr-group.hot { background: linear-gradient(135deg, rgba(34,197,94,.16), rgba(34,197,94,.04)); border-color: rgba(34,197,94,.4); }
.an-tr-group.cold { background: linear-gradient(135deg, rgba(56,189,248,.16), rgba(56,189,248,.04)); border-color: rgba(56,189,248,.4); }
.an-tr-group.risk { background: linear-gradient(135deg, rgba(250,204,21,.18), rgba(250,204,21,.04)); border-color: rgba(250,204,21,.45); }
.an-tr-h { font: 800 .72rem 'Bricolage Grotesque', sans-serif; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 6px; }
.an-tr-row { display: flex; flex-wrap: wrap; gap: 6px; }
.an-tr-chip { display: flex; align-items: center; gap: 7px; padding: 4px 10px 4px 4px; border-radius: 999px; background: rgba(127,127,127,.14); min-width: 0; }
.an-tr-ph { width: 30px; height: 30px; border-radius: 50%; overflow: hidden; flex: none; background: rgba(127,127,127,.2); }
.an-tr-ph img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.an-tr-tx { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.an-tr-tx b { font-size: .78rem; }
.an-tr-tx small { font-size: .64rem; opacity: .75; }

/* Entra / sale del once ideal */
.an-sw { margin: 14px 0 4px; display: flex; flex-direction: column; gap: 6px; }
.an-sw-h { font: 800 .72rem 'Bricolage Grotesque', sans-serif; letter-spacing: .06em; text-transform: uppercase; opacity: .8; }
.an-sw-row { display: flex; align-items: center; gap: 9px; padding: 6px 10px 6px 8px; border-radius: 14px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); }
.an-sw-row.in { border-left: 4px solid #22c55e; }
.an-sw-row.out { border-left: 4px solid #ef4444; }
.an-sw-ar { font-size: .9rem; font-weight: 800; width: 16px; text-align: center; }
.an-sw-row.in .an-sw-ar { color: #4ade80; }
.an-sw-row.out .an-sw-ar { color: #f87171; }
.an-sw-ph { width: 34px; height: 34px; border-radius: 50%; overflow: hidden; flex: none; background: rgba(255,255,255,.15); }
.an-sw-ph img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.an-sw-tx { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; flex: 1; }
.an-sw-tx b { font-size: .84rem; }
.an-sw-tx small { font-size: .66rem; opacity: .8; }

/* Forma de tus jugadores */
.an-forma { margin-top: 20px; }
.an-fm-list { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.an-fm-card { padding: 9px 10px; border-radius: 14px; border: 1px solid var(--border); background: var(--card); }
.an-fm-card.bench { opacity: .88; }
.an-fm-head { display: flex; align-items: center; gap: 9px; }
.an-fm-ph { width: 34px; height: 34px; border-radius: 50%; overflow: hidden; flex: none; background: rgba(127,127,127,.15); }
.an-fm-ph img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.an-fm-tx { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; flex: 1; }
.an-fm-tx b { font-size: .86rem; }
.an-fm-tx small, .an-fm-rt small { font-size: .64rem; color: var(--muted); }
.an-fm-rt { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; flex: none; }
.an-fm-rt b { font: 800 .9rem 'Bricolage Grotesque', sans-serif; color: #16a34a; }
.an-fm-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; margin-top: 8px; }
.an-fm-chip { border-radius: 10px; padding: 4px 2px 5px; text-align: center; background: rgba(127,127,127,.12); border: 1px solid transparent; }
.an-fm-chip.high { background: rgba(34,197,94,.18); border-color: rgba(34,197,94,.5); }
.an-fm-chip.low { background: rgba(239,68,68,.15); border-color: rgba(239,68,68,.45); }
.an-fm-chip.none { opacity: .55; }
.an-fm-j { font: 800 .62rem 'Bricolage Grotesque', sans-serif; color: var(--muted); }
.an-fm-op { display: flex; align-items: center; justify-content: center; gap: 3px; height: 18px; margin: 2px 0; }
.an-fm-op img { width: 15px; height: 15px; object-fit: contain; }
.an-fm-op svg.ffx-ha { width: 12px; height: 12px; margin: 0; }
.an-fm-v { font: 800 .98rem/1 'Bricolage Grotesque', sans-serif; }
.an-tr-group.irr { background: linear-gradient(135deg, rgba(168,85,247,.16), rgba(168,85,247,.04)); border-color: rgba(168,85,247,.4); }
.an-fm-irr { margin-top: 7px; font-size: .68rem; color: var(--muted); }

/* Cómo puntúa tu liga */
.an-quote { margin: 4px 0 12px; }
.an-quote summary { cursor: pointer; font-weight: 800; font-size: .86rem; padding: 6px 0; }
.an-quote blockquote { margin: 6px 0 0; padding: 8px 12px; border-left: 4px solid #6366f1; border-radius: 0 12px 12px 0; background: rgba(99,102,241,.1); }
.an-quote blockquote p { margin: 4px 0; font-size: .76rem; line-height: 1.45; }
.an-quote blockquote small { display: block; margin-top: 6px; font-size: .64rem; color: var(--muted); }
.an-fm-chip.tap { cursor: pointer; }
.an-fm-chip.sel { outline: 2px solid #6366f1; outline-offset: -1px; }
.an-fm-hint { margin-top: 6px; font-size: .62rem; color: var(--muted); text-align: center; }
.an-fm-det { margin-top: 8px; padding: 8px 10px; border-radius: 12px; background: rgba(99,102,241,.08); border: 1px solid rgba(99,102,241,.3); font-size: .74rem; }
.an-fm-dt { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.an-fm-dt b { font: 800 .9rem 'Bricolage Grotesque', sans-serif; }
.an-fm-dt small { font-size: .64rem; color: var(--muted); }
.an-fm-dr { display: flex; justify-content: space-between; gap: 8px; padding: 2px 0; }
.an-fm-dr b { font: 800 .8rem 'Bricolage Grotesque', sans-serif; flex: none; }
.an-fm-dr.pos b { color: #16a34a; }
.an-fm-dr.neg b { color: #dc2626; }
.an-fm-dn { margin-top: 5px; font-size: .6rem; color: var(--muted); line-height: 1.3; }
.an-sw-ex { margin-left: auto; flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; min-width: 78px; }
.an-sw-n { font: 800 1.35rem/1 'Bricolage Grotesque', sans-serif; letter-spacing: -.02em; }
.an-sw-n span { font-size: .62rem; font-weight: 700; opacity: .7; letter-spacing: 0; }
.an-sw-row.in .an-sw-n { color: #4ade80; }
.an-sw-row.out .an-sw-n { color: #f87171; }
.an-sw-bar { width: 78px; height: 5px; border-radius: 99px; background: rgba(127,127,127,.25); overflow: hidden; }
.an-sw-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #22c55e, #86efac); }
.an-sw-row.out .an-sw-bar i { background: linear-gradient(90deg, #ef4444, #fca5a5); }
.an-sw-ex small { font-size: .56rem; opacity: .6; text-transform: uppercase; letter-spacing: .05em; }
.an-fm-det { padding: 6px; background: rgba(15,23,42,.92); border-color: rgba(255,255,255,.12); }
.an-fm-bar { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 9px 12px; color: #fff; font-size: .8rem; margin-bottom: 2px; }
.an-fm-bar:first-child { border-radius: 10px 10px 0 0; }
.an-fm-bar:last-of-type { border-radius: 0 0 10px 10px; }
.an-fm-bar b { font: 800 .95rem 'Bricolage Grotesque', sans-serif; flex: none; }
.an-fm-bl { font-weight: 700; letter-spacing: .02em; }
.an-fm-bar.pts { background: #4caf50; font-size: .88rem; }
.an-fm-bar.pts b { font-size: 1.05rem; }
.an-fm-bar.as { background: #c0261b; }
.an-fm-bar.marca { background: #c0261b; }
.an-fm-bar.as .an-fm-bl { font: 900 1.05rem 'Bricolage Grotesque', sans-serif; letter-spacing: .01em; }
.an-fm-bar.marca .an-fm-bl { font: 900 .95rem 'Bricolage Grotesque', sans-serif; text-transform: uppercase; letter-spacing: .01em; }
.an-fm-bar.ss { background: #22559c; }
.an-fm-bar.min { background: #111827; border-left: 3px solid #4caf50; }
.an-fm-bar.extra { background: #1f2937; }
.an-fm-bar.extra.pos b { color: #4ade80; }
.an-fm-bar.extra.neg b { color: #f87171; }
.an-fm-det .an-fm-dn { color: rgba(255,255,255,.65); padding: 6px 4px 2px; }
.an-tr-chip { border-radius: 18px; padding: 5px 12px 5px 5px; }
.an-tr-st { display: flex; gap: 6px; margin-top: 3px; }
.an-tr-s { display: flex; flex-direction: column; align-items: center; line-height: 1.05; padding: 3px 8px; border-radius: 10px; background: rgba(255,255,255,.1); min-width: 46px; }
.an-tr-tx .an-tr-s b { font: 800 .95rem 'Bricolage Grotesque', sans-serif; }
.an-tr-s span { font-size: .5rem; text-transform: uppercase; letter-spacing: .06em; opacity: .7; margin-top: 2px; white-space: nowrap; }
.an-tr-s.up { background: rgba(34,197,94,.2); color: #4ade80; }
.an-tr-s.down { background: rgba(239,68,68,.2); color: #f87171; }
.an-tr-s.wide span { white-space: normal; text-align: center; max-width: 130px; line-height: 1.2; }
.an-fm-det { color: #fff; }

/* Sugerencias del buscador: más info */
.mj-sug-row .mj-sug-ph{flex:none}
.mj-sug-tx{flex:1;gap:2px}
.mj-sug-l1{display:flex;align-items:center;gap:6px;min-width:0}

.mj-sug-l2{display:flex;align-items:center;gap:5px}
.mj-sug-row img.mj-sug-crest{width:16px;height:16px;border-radius:0;background:none;object-fit:contain}
.mj-sug-l3{display:flex;flex-wrap:wrap;gap:3px 8px;font-size:.72rem;color:var(--muted)}
.mj-sug-l3 i{font-style:normal}
.mj-sug-l3 i.bad{color:#c0261b;font-weight:700}
.mj-sug-l3 i.mid{color:#d97706;font-weight:700}
.mj-sug-r{display:flex;align-items:baseline;gap:8px;white-space:nowrap}
.mj-sug-r b{font-size:.92rem}
.mj-sug-r small{font-size:.72rem;font-weight:700}
.mj-sug-r small.up{color:#2e9b4f}
.mj-sug-r small.down{color:#c0261b}
.mj-sug-row{align-items:flex-start}

/* Ordenar: misma fuente que el resto de botones, en normal */
.mx-filters .mx-chip,.mx-filters .merc-segbtn.mx-chip,.mx-filters .merc-segbtn{font-family:inherit;font-weight:400;font-size:.86rem;line-height:1}
.mkt-reset{display:block;width:100%;margin:0 0 12px;padding:11px 14px;border-radius:14px;font-weight:600}

/* Botón Volver unificado (partido, jugador, club, equipos) */
.pp-back{width:auto;height:44px;padding:0 18px 0 14px;border-radius:999px;font-size:1.05rem;font-weight:700;opacity:1;margin-bottom:12px;gap:2px;-webkit-tap-highlight-color:transparent;transition:transform .12s,background .15s}
.pp-back::after{content:" Volver";font-size:.95rem;font-weight:700}
.pp-back:active{transform:scale(.95)}
.pp-back:focus-visible{outline:2px solid #22c55e;outline-offset:2px}
.eq-backbar{display:flex;align-items:center;gap:14px;margin:0 0 6px;flex-wrap:wrap}
.eq-backbar .pp-back{margin-bottom:6px}
.eq-backbar .eq-back{margin:0 0 6px}


/* ===== Puntuación probable: rediseño ===== */
.an-lines{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;margin-top:12px}
.an-line{padding:9px 11px;border-radius:14px;background:rgba(127,127,127,.1)}
.an-line-h{display:flex;justify-content:space-between;align-items:baseline;gap:6px;font-size:.76rem;font-weight:700}
.an-line-h b{font:800 1.05rem/1 'Bricolage Grotesque',sans-serif}
.an-line-bar{height:5px;border-radius:999px;background:rgba(127,127,127,.2);margin-top:7px;overflow:hidden}
.an-line-bar i{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,#16a34a,#4ade80)}
.an-tg{--ac:#16a34a;margin-top:14px;padding:12px;border-radius:18px;border:1px solid rgba(127,127,127,.22);border-left:4px solid var(--ac);background:rgba(127,127,127,.06)}
.an-tg.irr{--ac:#9333ea}
.an-tg.risk{--ac:#d97706}
.an-tg-pill{display:inline-block;padding:4px 11px;border-radius:999px;font:800 .78rem 'Bricolage Grotesque',sans-serif;color:#fff;background:var(--ac)}
.an-tg-d{margin:7px 0 4px;font-size:.76rem;line-height:1.35;opacity:.75}
.an-ti{display:flex;align-items:center;gap:11px;padding:9px 0;border-top:1px solid rgba(127,127,127,.18)}
.an-tg-d + .an-ti{border-top:0}
.an-ti-ph{width:44px;height:44px;border-radius:50%;overflow:hidden;flex:none;background:rgba(127,127,127,.2);border:2px solid var(--ac)}
.an-ti-ph img{width:100%;height:100%;object-fit:cover;object-position:top}
.an-ti-tx{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.an-ti-tx b{font-size:.95rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.an-ti-tx small{font-size:.72rem;opacity:.7;line-height:1.25}
.an-ti-bar{height:5px;border-radius:999px;background:rgba(127,127,127,.22);overflow:hidden;margin-top:3px;max-width:150px}
.an-ti-bar i{display:block;height:100%;border-radius:999px;background:var(--ac)}
.an-ti-m{display:flex;flex-direction:column;align-items:flex-end;flex:none;text-align:right;line-height:1.1}
.an-ti-m b{font:800 1.35rem/1 'Bricolage Grotesque',sans-serif;color:var(--ac)}
.an-ti-m span{margin-top:3px;font-size:.62rem;font-weight:700;opacity:.7;max-width:96px}

/* ===== Base de cálculo + temporada completa ===== */
.an-base{margin:12px 0;padding:12px;border-radius:16px;border:1px solid var(--border);background:rgba(127,127,127,.06)}
.an-base-k{font:800 .78rem 'Bricolage Grotesque',sans-serif;margin-bottom:8px}
.an-base-seg{display:flex;gap:6px;padding:4px;border-radius:14px;background:rgba(127,127,127,.14)}
.an-base-b{flex:1;border:0;border-radius:11px;padding:10px 6px;background:transparent;color:inherit;font:600 .82rem inherit;cursor:pointer}
.an-base-b.on{background:linear-gradient(135deg,#16a34a,#22c55e);color:#fff;font-weight:700;box-shadow:0 3px 10px rgba(34,197,94,.3)}
.an-base-d{margin-top:8px;font-size:.72rem;line-height:1.4;opacity:.75}
.an-ss-btn{display:block;width:100%;margin-top:8px;padding:10px;border-radius:12px;border:1.5px solid var(--border);background:transparent;color:inherit;font:700 .8rem inherit;cursor:pointer}
.an-ss{margin-top:8px;padding:10px;border-radius:14px;background:rgba(127,127,127,.1);font-size:.8rem}
.an-ss-sum{display:flex;flex-direction:column;gap:2px;margin-bottom:8px}
.an-ss-sum span{font-size:.72rem;opacity:.75}
.an-ss-r{display:grid;grid-template-columns:30px 1fr 36px 34px 32px 42px 36px;gap:3px;align-items:center;padding:6px 2px;border-top:1px solid rgba(127,127,127,.18);font-size:.74rem;text-align:right}
.an-ss-r span:first-child,.an-ss-r .rv{text-align:left}
.an-ss-r .rv{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.an-ss-r.hd{border-top:0;font-size:.62rem;font-weight:800;opacity:.6;letter-spacing:.04em}
.an-ss-r.none{opacity:.45}
.an-ss-r.avg{font-weight:800;border-top:2px solid rgba(127,127,127,.3)}
.an-ss-r .pt{font-weight:800;color:#16a34a}.an-ss-r .nd{opacity:.45;font-size:.62rem}
.an-ss-r{font-size:.7rem}

/* Multiposición y claves: arriba y más visible */
.an-ai-top .an-sec { border-color: rgba(96,165,250,.55); background: linear-gradient(135deg, rgba(96,165,250,.14), var(--card-solid)); }
.an-ai-top .an-mp-row { padding: 11px 12px; }
.an-ai-top .an-mp-photo { width: 44px; height: 44px; }
.an-ai-top .an-mp-name { font-size: .95rem; }
.an-ai-top .an-mp-reason { font-size: .84rem; color: var(--text); opacity: .85; }
.an-sw-tx small { display: block; }
.an-sw-tx small.an-sw-why { margin-top: 3px; font-size: .7rem; opacity: .85; }
.an-sw-tx small.an-sw-near { margin-top: 3px; font-size: .7rem; color: var(--accent); opacity: 1; }

/* Noticias v2: portada + tarjetas */
#newsAnuncios.news-grid { display: flex; flex-direction: column; gap: 12px; }
#newsAnuncios .news-day { margin: 16px 0 0; }
#newsAnuncios .news-day-txt { padding: 5px 14px; border-radius: 999px; background: linear-gradient(135deg, #16a34a, #22c55e); color: #fff; border: 0; font-size: .74rem; letter-spacing: .05em; box-shadow: 0 4px 12px rgba(34,197,94,.35); }
#newsAnuncios .newscard { display: flex; flex-direction: row; align-items: center; gap: 12px; padding: 10px; border-radius: 18px; border: 1px solid var(--border); background: var(--card-solid, #fff); box-shadow: 0 2px 10px rgba(15,23,42,.06); overflow: hidden; }
#newsAnuncios .newscard:active { transform: scale(.985); }
#newsAnuncios .newscard-thumb { flex: 0 0 96px; width: 96px; height: 96px; aspect-ratio: auto; min-height: 0; border-radius: 14px; background-size: cover; background-position: center top; background-repeat: no-repeat; background-color: rgba(127,127,127,.15); }
#newsAnuncios .newscard-thumb.ball { background-size: 50%; background-position: center; }
#newsAnuncios .newscard-body { flex: 1 1 auto; min-width: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
#newsAnuncios .newscard .news-title { font-size: .92rem; font-weight: 800; line-height: 1.25; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
#newsAnuncios .newscard .news-date { margin: 0; font-size: .7rem; color: var(--muted); font-weight: 600; }
#newsAnuncios .news-hero { display: block; position: relative; padding: 0; min-height: 300px; border: 0; border-radius: 22px; box-shadow: 0 16px 36px rgba(15,23,42,.30); }
#newsAnuncios .news-hero .newscard-thumb { position: absolute; inset: 0; width: 100%; height: 100%; flex: none; border-radius: 0; background-position: center 20%; transition: transform .6s ease; }
@media (hover: hover) and (pointer: fine) { #newsAnuncios .news-hero:hover .newscard-thumb { transform: scale(1.05); } }
#newsAnuncios .news-hero .newscard-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 70px 16px 16px; gap: 8px; background: linear-gradient(180deg, transparent 0%, rgba(2,6,23,.80) 60%, rgba(2,6,23,.95) 100%); }
#newsAnuncios .news-hero .news-title { color: #fff; font-size: 1.25rem; line-height: 1.18; }
#newsAnuncios .news-hero .news-date { color: rgba(255,255,255,.8); }
#newsAnuncios .news-badge { align-self: flex-start; font-size: .68rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: #ef4444; color: #fff; box-shadow: 0 4px 12px rgba(239,68,68,.45); }
@media (min-width: 760px) {
  #newsAnuncios.news-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  #newsAnuncios .news-hero, #newsAnuncios .news-day { grid-column: 1 / -1; }
}

.racha-chip.neg { background: #dc2626; }
.racha-chip.neg i { color: rgba(255,255,255,.8); }
.racha-chip.z0 { background: #475569; }

/* Clausulazos v2: tarjetas más cuidadas */
.claus-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.claus-grid .claus-card2 { position: relative; padding: 0; overflow: hidden; border-radius: 22px; border: 1px solid var(--border); background: var(--card-solid, var(--card)); box-shadow: 0 8px 22px rgba(15,23,42,.10); }
.claus-grid .claus-card2::before { content: ""; display: block; height: 70px; background: linear-gradient(135deg, #0f766e 0%, #16a34a 55%, #84cc16 100%); }
.claus-grid .claus-photo2 { width: 84px; height: 84px; margin: -46px auto 6px; border-radius: 50%; border: 4px solid var(--card-solid, #fff); background: #fff; box-shadow: 0 6px 16px rgba(15,23,42,.25); z-index: 1; position: relative; }
.claus-grid .claus-photo2 .claus-img { border-radius: 50%; }
.claus-grid .claus-body2 { padding: 0 12px 14px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.claus-grid .claus-name2 { font-size: 1.12rem; line-height: 1.1; }
.claus-grid .claus-pos { margin: 0; }
.claus-grid .claus-team, .claus-grid .claus-owner { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: rgba(127,127,127,.10); color: var(--text); font-weight: 600; margin: 0; }
.claus-grid .claus-fitwrap { margin: 4px 0 0; padding: 8px 6px 6px; border-radius: 14px; background: rgba(127,127,127,.07); }
.claus-grid .claus-stats { display: grid; grid-template-columns: 1fr 1fr 1.35fr; gap: 6px; width: 100%; margin: 4px 0 0; }
.claus-grid .claus-stat { flex-direction: column; align-items: center; gap: 1px; padding: 7px 2px; border-radius: 12px; background: rgba(127,127,127,.10); }
.claus-grid .claus-stat b { font-size: 1rem; }
.claus-grid .claus-stat small { font-size: .6rem; text-transform: uppercase; letter-spacing: .05em; }
.claus-grid .claus-stat.media b { color: var(--accent); }
.claus-grid .claus-stat.clause { background: linear-gradient(135deg, #f59e0b, #fcd34d); }
.claus-grid .claus-stat.clause b { color: #1f1300; font-size: 1rem; }
.claus-grid .claus-stat.clause small { color: rgba(31,19,0,.75); }
.claus-grid .claus-val { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; margin: 2px 0 0; }
.claus-grid .claus-val b { font-size: .86rem; }
.claus-grid .claus-above { display: inline-block; padding: 3px 10px; border-radius: 999px; background: rgba(220,38,38,.12); color: #dc2626; font-size: .7rem; font-weight: 800; line-height: 1.25; }
.claus-grid .claus-histrow { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.claus-grid .claus-played { font-size: .72rem; color: var(--muted); }
.claus-grid .claus-lock { width: 100%; text-align: center; padding: 7px 10px; border-radius: 12px; background: rgba(245,158,11,.14); border: 1px dashed rgba(245,158,11,.55); margin: 4px 0 0; font-size: .74rem; }
.claus-grid .claus-newowner { margin: 0; padding: 3px 10px; border-radius: 999px; background: rgba(37,99,235,.12); }
@media (max-width: 560px) { .claus-grid { grid-template-columns: 1fr 1fr; gap: 10px; } .claus-grid .claus-photo2 { width: 72px; height: 72px; margin-top: -40px; } .claus-grid .claus-card2::before { height: 58px; } .claus-grid .claus-name2 { font-size: 1rem; } .claus-grid .claus-body2 { padding: 0 8px 12px; } .claus-grid .claus-stat b { font-size: .9rem; } }

.claus-grid .claus-stat.media { background: linear-gradient(135deg, #16a34a, #22c55e); border-radius: 12px; padding: 7px 2px; }
.claus-grid .claus-stat.media b { color: #fff; font-size: 1rem; }
.claus-grid .claus-stat.media small { color: rgba(255,255,255,.92); }
.claus-grid .claus-lastup { font-size: .74rem; font-weight: 700; color: var(--muted); padding: 5px 12px; border-radius: 999px; background: rgba(127,127,127,.10); }
.claus-grid .claus-lastup.yes { color: #b45309; background: rgba(245,158,11,.14); }
.claus-grid .claus-lastup { white-space: nowrap; font-size: .7rem; padding: 6px 10px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; text-align: center; }
.claus-grid .claus-lastup { font-size: .6rem; padding: 6px 6px; letter-spacing: -.01em; width: 100%; box-sizing: border-box; }

/* Fichajes v2 */
#fichOut .fich-day { margin: 18px 0 10px; }
#fichOut .fich-day-txt { padding: 5px 14px; border-radius: 999px; background: linear-gradient(135deg, #16a34a, #22c55e); color: #fff; font-size: .74rem; letter-spacing: .05em; box-shadow: 0 4px 12px rgba(34,197,94,.35); white-space: nowrap; }
.fich2-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 760px) { .fich2-grid { grid-template-columns: 1fr 1fr; } }
.fich2 { position: relative; overflow: hidden; border-radius: 22px; border: 1px solid var(--border); background: var(--card-solid, var(--card)); box-shadow: 0 8px 22px rgba(15,23,42,.10); animation: newsIn .3s ease both; }
.fich2-ban { position: relative; height: 128px; background-size: cover; background-position: center 25%; background-color: #0f766e; }
.fich2-ban.empty { background-image: linear-gradient(135deg, #0f766e 0%, #16a34a 55%, #84cc16 100%); }
.fich2-ban::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(2,6,23,.35) 0%, transparent 45%, rgba(2,6,23,.45) 100%); pointer-events: none; }
.fich2-badge { position: absolute; z-index: 1; top: 10px; left: 12px; font-size: .66rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; padding: 4px 11px; border-radius: 999px; color: #fff; box-shadow: 0 4px 12px rgba(0,0,0,.3); }
.fich2-badge.of { background: #16a34a; }
.fich2-badge.neg { background: #f59e0b; }
.fich2-badge.rum, .fich2-badge.ot { background: #64748b; }
.fich2-time { position: absolute; z-index: 1; top: 10px; right: 12px; font-size: .68rem; font-weight: 700; color: #fff; padding: 4px 10px; border-radius: 999px; background: rgba(2,6,23,.55); backdrop-filter: blur(4px); }
.fich2-photo { position: absolute; z-index: 2; top: 84px; left: 14px; width: 66px; height: 66px; border-radius: 50%; overflow: hidden; border: 4px solid var(--card-solid, #fff); background: #fff; box-shadow: 0 6px 16px rgba(15,23,42,.28); }
.fich2-photo img { width: 100%; height: 100%; object-fit: cover; }
.fich2-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 9px; }
.fich2-body.has-ph { padding-top: 40px; }
.fich2-title { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 1.02rem; line-height: 1.22; }
.fich2-ruta { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.fich2-club { padding: 4px 12px; border-radius: 999px; background: rgba(127,127,127,.12); font-size: .76rem; font-weight: 700; }
.fich2-arrow { color: #16a34a; font-weight: 800; }
.fich2-extract { font-size: .84rem; color: var(--muted); line-height: 1.42; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.fich2-link { align-self: flex-start; margin-top: 2px; border: 0; cursor: pointer; padding: 7px 16px; border-radius: 999px; background: linear-gradient(135deg, #16a34a, #22c55e); color: #fff; font: inherit; font-size: .78rem; font-weight: 800; box-shadow: 0 4px 12px rgba(34,197,94,.35); }
.fich2-of { border-top: 3px solid #16a34a; }
.fich2-neg { border-top: 3px solid #f59e0b; }

.eq-stat-go { cursor: pointer; font: inherit; color: inherit; border: 1px solid rgba(34,197,94,.5); box-shadow: 0 0 0 2px rgba(34,197,94,.12); }
.eq-stat-go small { color: var(--accent); font-weight: 700; }
.eq-stat-go:active { transform: scale(.97); }

/* Fichajes: banner de marca */
.fich2-ban.empty { background-color: #0f766e; }
.fich2-bc { position: absolute; z-index: 0; top: 50%; width: 150px; height: 150px; transform: translateY(-50%); display: grid; place-items: center; font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 3.4rem; letter-spacing: -.04em; color: rgba(255,255,255,.28); pointer-events: none; }
.fich2-bc.l { left: -34px; -webkit-mask-image: linear-gradient(90deg, #000 30%, transparent); mask-image: linear-gradient(90deg, #000 30%, transparent); }
.fich2-bc.r { right: -34px; -webkit-mask-image: linear-gradient(270deg, #000 30%, transparent); mask-image: linear-gradient(270deg, #000 30%, transparent); }
.fich2-bc img { width: 100%; height: 100%; object-fit: contain; opacity: .5; filter: drop-shadow(0 6px 16px rgba(0,0,0,.35)); }
.fich2-ban.empty::after { background: linear-gradient(180deg, rgba(2,6,23,.28) 0%, transparent 50%, rgba(2,6,23,.4) 100%); }

/* Clausulazo: cabecera */
.claus-hero { margin-bottom: 14px; }
.claus-hero-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.claus-hero-top h2 { margin: 0; }
.claus-upd { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 999px; font-size: .74rem; font-weight: 700; color: var(--muted); background: rgba(127,127,127,.12); border: 1px solid var(--border); }
.claus-upd::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,.22); }
.claus-hero-sub { margin: 8px 0 12px; font-size: .95rem; font-weight: 600; color: var(--text); line-height: 1.35; text-wrap: balance; }
.claus-how { list-style: none; display: grid; gap: 8px; padding: 0; margin: 0; }
.claus-how li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: rgba(34,197,94,.08); border: 1px solid rgba(34,197,94,.25); }
.claus-how b { flex: none; min-width: 52px; text-align: center; padding: 5px 10px; border-radius: 10px; font-family: 'Bricolage Grotesque', sans-serif; font-size: .8rem; font-weight: 800; color: #052e16; background: linear-gradient(145deg, #4ade80, #22c55e); }
.claus-how span { font-size: .82rem; line-height: 1.3; color: var(--muted); }

/* Temporada del jugador: más grande y clara */
.an-ss-sum b{font-size:1.05rem}
.an-ss-sum span{font-size:.82rem;opacity:.8}
.an-ss-r{grid-template-columns:34px 1fr 42px 38px 36px 48px 40px;padding:10px 2px;font-size:.88rem}
.an-ss-r.hd{font-size:.7rem;opacity:.65;text-transform:uppercase}
.an-ss-r .pt{font-size:1rem}
.an-ss-r .nd{font-size:.88rem}
.an-ss-r.avg{font-size:.9rem}
.an-ss-r{grid-template-columns:28px minmax(0,1fr) 34px 28px 28px 42px 34px;gap:2px;font-size:.84rem}
.an-ss-r .rv{white-space:normal;overflow:visible;text-overflow:clip;line-height:1.15}
.an-ss-r.hd{font-size:.62rem}

/* Pestaña Plantillas */

/* Sin rayas laterales de color */
.an-sw-row.in { border-left: 0; background: rgba(34,197,94,.08); }
.an-sw-row.out { border-left: 0; background: rgba(239,68,68,.08); }
.an-tg { border-left: 1px solid rgba(127,127,127,.22); }
/* Tarjeta única: igual que el resto de la web */
.an-sec { background: var(--card-solid); box-shadow: none; border-radius: 16px; }
.merc-search-hero { border-radius: 16px; border: 1px solid var(--border); background: var(--card-solid); box-shadow: none; }
.merc-search-hero .market-search { border-width: 1px; }
/* En racha: nada se sale de la tarjeta (valor de subida y media) */
.racha-row { overflow: hidden; box-sizing: border-box; }
@media (max-width: 640px) {
  .racha-row { grid-template-columns: 34px minmax(0, 1fr) auto; column-gap: 8px; }
  .racha-info, .racha-scores { min-width: 0; }
  .racha-scores { gap: 3px; }
  .racha-chip { min-width: 0; flex: 1 1 0; max-width: 28px; }
  .racha-val { font-size: 0.78rem; flex: 0 0 auto; }
  .racha-stats { gap: 8px; }
}
/* Clausulazo: últimos partidos siempre en UNA fila y la cláusula dentro de su cuadro */
.claus-grid .claus-fit-scores { flex-wrap: nowrap; gap: 3px; }
.claus-grid .claus-fit-scores .racha-chip { min-width: 0; flex: 1 1 0; max-width: 30px; }
.claus-grid .claus-fit-scores .racha-chip b { padding: 2px 0; font-size: .74rem; }
.claus-grid .claus-stats { grid-template-columns: minmax(0,.8fr) minmax(0,1fr) minmax(0,1.5fr); gap: 5px; }
.claus-grid .claus-stat { min-width: 0; overflow: hidden; }
.claus-grid .claus-stat b { font-size: .86rem; letter-spacing: -.02em; }
.claus-grid .claus-stat.clause b { font-size: .8rem; }
.claus-grid .claus-stat small { font-size: .52rem; }


/* ---------- Plantillas ---------- */
.plt-panel { padding: 12px; }
.plt-clubwrap { position: relative; margin-bottom: 10px; }
.plt-clubs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; padding: 2px 0; }
.plt-clubs::-webkit-scrollbar { display: none; }
.plt-row-btns { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-bottom: 10px; }
.plt-row-btns[hidden] { display: none; }
.plt-lbl { font-size: .72rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-right: 2px; }
.plt-btn { flex: 0 0 auto; height: 36px; min-width: 36px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 999px; border: 1px solid var(--border); background: var(--card-solid); color: var(--text); font: inherit; font-size: .82rem; font-weight: 700; cursor: pointer; scroll-snap-align: start; transition: background-color .16s var(--ease, cubic-bezier(.23,1,.32,1)), border-color .16s, color .16s, transform .16s; }
.plt-btn.plt-club { padding: 0; width: 36px; }
.plt-btn.plt-club img { width: 22px; height: 22px; object-fit: contain; }
.plt-btn.on { background: rgba(34,197,94,.16); border-color: rgba(34,197,94,.5); color: var(--accent); }
.plt-per { padding: 4px; background: rgba(127,127,127,.12); border-radius: 14px; gap: 2px; display: flex; flex-wrap: nowrap; }
.plt-per .plt-btn { flex: 1; height: 32px; border: 0; background: transparent; color: var(--muted); border-radius: 10px; }
.plt-per .plt-btn.on { background: var(--card-solid); color: #16a34a; box-shadow: 0 2px 8px rgba(0,0,0,.16); }
@media (hover:hover) and (pointer:fine) { .plt-btn:hover:not(.on) { border-color: rgba(34,197,94,.4); } }

.plt-arrow { position: absolute; top: 50%; width: 28px; height: 28px; margin-top: -14px; border-radius: 50%; border: 1px solid var(--border); background: var(--card-solid); color: var(--text); font-size: 1.05rem; line-height: 1; padding: 0 0 2px; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 2; box-shadow: 0 2px 8px rgba(0,0,0,.25); opacity: 0; pointer-events: none; transition: opacity .16s; }
.plt-arrow.l { left: -4px; }
.plt-arrow.r { right: -4px; }
.plt-clubwrap.can-l .plt-arrow.l, .plt-clubwrap.can-r .plt-arrow.r { opacity: 1; pointer-events: auto; }
.plt-clubwrap::before, .plt-clubwrap::after { content: ""; position: absolute; top: 0; bottom: 0; width: 26px; z-index: 1; pointer-events: none; opacity: 0; transition: opacity .16s; }
.plt-clubwrap::before { left: 0; background: linear-gradient(90deg, var(--card-solid), transparent); }
.plt-clubwrap::after { right: 0; background: linear-gradient(270deg, var(--card-solid), transparent); }
.plt-clubwrap.can-l::before, .plt-clubwrap.can-r::after { opacity: 1; }

.plt-list { display: flex; flex-direction: column; }
.plt-row { display: grid; grid-template-columns: auto minmax(0,1fr) auto; grid-template-areas: "ph mid rt" "ph side side"; gap: 2px 12px; align-items: center; padding: 12px 2px; border-top: 1px solid var(--border); cursor: pointer; }
.plt-row:first-child { border-top: 0; }
.plt-phw { grid-area: ph; position: relative; width: 56px; height: 56px; }
.plt-ph { width: 56px; height: 56px; border-radius: 50%; overflow: hidden; background: rgba(127,127,127,.18); border: 2px solid var(--border); box-sizing: border-box; }
.plt-ph.posring-clip { padding: 2px; }
.plt-ph img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 50%; display: block; }
.plt-crest { position: absolute; left: -3px; bottom: -3px; width: 20px; height: 20px; padding: 2px; border-radius: 50%; background: var(--card-solid); border: 1px solid var(--border); object-fit: contain; box-sizing: border-box; }
.plt-st { position: absolute; top: -4px; right: -4px; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #fff; box-sizing: border-box; display: flex; align-items: center; justify-content: center; color: #fff; font-size: .8rem; font-weight: 800; line-height: 1; box-shadow: 0 1px 4px rgba(0,0,0,.35); }
.plt-st.st-inj { background: #dc2626; }
.plt-st.st-doubt { background: #eab308; }
.plt-st.st-red { background: #dc2626; border-radius: 4px; width: 14px; height: 19px; border-width: 1.5px; right: -2px; }
.plt-mid { grid-area: mid; min-width: 0; }
.plt-name { font-weight: 800; font-size: .98rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plt-val { font-size: .8rem; color: var(--muted); font-weight: 600; }
.plt-chg { font-size: .74rem; font-weight: 700; }
.plt-chg.up { color: #16a34a; } .plt-chg.down { color: #dc2626; } .plt-chg.flat { color: var(--muted); }
.plt-side { grid-area: side; display: flex; align-items: center; gap: 10px; min-width: 0; margin-top: 6px; }
.plt-fit { display: flex; gap: 4px; }
.plt-fit .racha-chip { min-width: 30px; }
.plt-own { font-size: .72rem; font-weight: 700; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.plt-rt { grid-area: rt; display: flex; gap: 6px; }
.plt-pts, .plt-avg { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 46px; padding: 6px 4px; border-radius: 12px; background: rgba(127,127,127,.12); }
.plt-pts b, .plt-avg b { font-family: var(--font-display, inherit); font-size: 1.05rem; font-weight: 800; line-height: 1.1; }
.plt-pts small, .plt-avg small { font-size: .55rem; font-weight: 700; color: var(--muted); letter-spacing: .04em; }
.plt-pts { background: rgba(34,197,94,.16); } .plt-pts b { color: #16a34a; }
@media (max-width: 400px) { .plt-pts, .plt-avg { min-width: 40px; } .plt-fit .racha-chip { min-width: 27px; } }
#pltPos, #pltSort { flex-wrap: nowrap; }
#pltPos .plt-btn, #pltSort .plt-btn { flex: 1 1 0; min-width: 0; padding: 0 6px; font-size: .78rem; }
.plt-lbl { display: none; }

/* Plantillas: cabecera gris oscura + filas blancas (estilo anterior) */
.plt-panel { padding: 0; overflow: hidden; background: #fff; border-radius: 16px; }
.plt-clubwrap { margin: 0; background: #1d2b33; padding: 10px 6px 8px; }
.plt-clubs { gap: 8px; padding: 0 4px; }
.plt-clubwrap::before { background: linear-gradient(90deg, #1d2b33, transparent); }
.plt-clubwrap::after { background: linear-gradient(270deg, #1d2b33, transparent); }
.plt-arrow { background: #3a4a52; border-color: rgba(255,255,255,.18); color: #fff; }
.plt-arrow.l { left: 2px; } .plt-arrow.r { right: 2px; }
.plt-row-btns { background: #1d2b33; margin: 0; padding: 0 6px; gap: 0; }
#pltPos { padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,.08); }
.plt-btn { height: auto; border: 0; border-radius: 4px; background: none; color: #aebcc3; font-weight: 700; padding: 11px 6px; }
.plt-btn.on { background: #5b6b73; color: #fff; border: 0; }
.plt-btn.plt-all { padding: 0 12px; height: 38px; background: #3a4a52; color: #cfd8dc; border-radius: 10px; }
.plt-btn.plt-all.on { background: rgba(255,255,255,.22); color: #fff; }
.plt-btn.plt-club { width: 38px; height: 38px; padding: 0; border-radius: 10px; background: none; }
.plt-btn.plt-club.on { background: rgba(255,255,255,.18); }
.plt-btn.plt-club img { width: 30px; height: 30px; }
#pltSort { gap: 0; }
#pltSort .plt-btn { background: none; border-radius: 0; padding: 12px 4px; }
#pltSort .plt-btn.on { background: none; color: #fff; box-shadow: inset 0 -2px 0 #22c55e; }
.plt-row-btns.plt-per { margin: 0; padding: 0 6px 10px; background: #1d2b33; border-radius: 0; gap: 4px; }
.plt-per .plt-btn { height: 32px; padding: 0; border-radius: 8px; background: rgba(255,255,255,.08); color: #aebcc3; }
.plt-per .plt-btn.on { background: #5b6b73; color: #fff; box-shadow: none; }
@media (hover:hover) and (pointer:fine) { .plt-btn:hover:not(.on) { border: 0; color: #fff; } }
.plt-list { background: #fff; }
.plt-row { background: #fff; border-top: 0; border-bottom: 3px solid #e3e8ea; padding: 10px 10px; gap: 4px 12px; color: #14181a; }
.plt-row:first-child { border-top: 0; }
.plt-ph { border: 0; background: #d9e0e3; padding: 3px; }
.plt-ph.posring-clip { padding: 3px !important; }
.plt-in { width: 100%; height: 100%; border-radius: 50%; overflow: hidden; background: #eef1f2; }
.plt-in img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.plt-crest { background: none; border: 0; padding: 0; width: 22px; height: 22px; right: -4px; left: auto; bottom: -2px; }
.plt-nm { display: flex; align-items: center; gap: 6px; min-width: 0; }
.plt-name { color: #14181a; font-weight: 600; min-width: 0; }
.plt-val { color: #16a34a; font-weight: 700; font-size: 1.1rem; }
.plt-fit { gap: 3px; }
.plt-fit .racha-chip { border-radius: 4px; min-width: 32px; }
.plt-rt { flex-direction: column; gap: 4px; }
.plt-pts, .plt-avg { min-width: 54px; padding: 3px 6px 2px; border-radius: 6px; }
.plt-pts { background: #14181a; } .plt-pts b { color: #fff; } .plt-pts small { color: rgba(255,255,255,.6); }
.plt-avg { background: #22c55e; } .plt-avg b { color: #fff; } .plt-avg small { color: rgba(255,255,255,.85); }
.plt-side { margin-top: 4px; }
.plt-phc { grid-area: ph; display: flex; flex-direction: column; align-items: center; gap: 5px; align-self: start; width: 62px; }
.plt-phc .plt-phw { grid-area: auto; }
.plt-row { grid-template-areas: "ph mid rt" "ph side side"; }
.plt-phc { width: 64px; }
.racha-chip.live { background: #fff; box-shadow: inset 0 0 0 1.5px #ef4444; }
.racha-chip.live i { background: #ef4444; color: #fff; }
.racha-chip.live b { color: #ef4444; animation: pltLive 1.6s ease-in-out infinite; }
@keyframes pltLive { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .racha-chip.live b { animation: none; } }
.plt-row-btns.plt-per { padding-top: 10px; }

/* Etiqueta de posición: un color por posición; las multiposición se parten en dos tramos duros (igual que el anillo de la foto) */
.posb { text-transform: uppercase; letter-spacing: .07em; font-weight: 800; }
.posb.posb-dual { display: inline-flex; padding: 0; gap: 2px; background: transparent !important; overflow: hidden; border-radius: 7px; }
.posb.posb-dual > span { padding: 2px 6px; line-height: 1.45; color: #fff; }
.plt-pill { flex: none; font-size: .58rem; padding: 2px 8px; line-height: 1.5; border-radius: 7px; white-space: nowrap; box-shadow: 0 1px 0 rgba(0,0,0,.12); }
.plt-pill.posb-dual { padding: 0; }
.plt-pill.posb-dual > span { padding: 2px 7px; }
.plt-panel { overflow: visible; }
.plt-head { position: sticky; top: var(--plt-top, 109px); z-index: 20; background: #1d2b33; border-radius: 16px 16px 0 0; box-shadow: 0 6px 12px -8px rgba(0,0,0,.45); }
.plt-list { border-radius: 0 0 16px 16px; overflow: hidden; }
.plt-arrow { background: none; border: 0; box-shadow: none; border-radius: 0; width: 24px; color: #fff; font-size: 1.7rem; font-weight: 300; padding: 0 0 4px; text-shadow: 0 0 6px #1d2b33, 0 0 6px #1d2b33; }
.fm-pts.fm-live { background: #fff !important; color: #ef4444 !important; box-shadow: inset 0 0 0 1.5px #ef4444; animation: pltLive 1.6s ease-in-out infinite; }
.fm-pend { font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .fm-pts.fm-live { animation: none; } }

/* Destacados (inicio): una sola lista con racha + mejores fichajes */
.dest-panel { margin-top: 14px; }
.dest-head { background: #1d2b33; padding: 14px 12px 12px; display: flex; flex-direction: column; gap: 10px; border-radius: 16px 16px 0 0; }
.dest-title { color: #fff; font-family: var(--font-display, inherit); font-size: 1.15rem; font-weight: 800; letter-spacing: -.01em; }
.dest-seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.dest-seg .plt-btn { height: 34px; padding: 0 6px; border-radius: 8px; background: rgba(255,255,255,.08); color: #aebcc3; font-size: .8rem; }
.dest-seg .plt-btn.on { background: #5b6b73; color: #fff; }
.dest-empty { padding: 18px 12px; text-align: center; color: #5b6b73; }
.plt-tag { font-size: .6rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1px; }
.plt-tag.racha { color: #ea580c; }
.plt-tag.best { color: #16a34a; }
.dest-head { background: #fff; padding: 16px 14px 6px; display: block; border-radius: 16px 16px 0 0; }
.dest-title { color: #14181a; }
.plt-row.has-why { grid-template-areas: "ph mid rt" "ph side side" "ph why why"; }
.plt-why { grid-area: why; font-size: .78rem; line-height: 1.4; color: #4b5b63; margin-top: 4px; }
.dest-head { padding: 16px 14px 10px; display: flex; flex-direction: column; gap: 2px; }
.dest-sub { color: #5b6b73; font-size: .8rem; font-weight: 600; }
.dest-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 4px 10px 14px; background: #fff; border-radius: 0 0 16px 16px; }
.dest-card { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 5px; padding: 14px 6px 12px; border: 1px solid #e3e8ea; border-radius: 14px; background: #fff; color: #14181a; cursor: pointer; min-width: 0; }
.dest-card .plt-phw { margin-bottom: 4px; }
.dest-rank { position: absolute; top: 6px; left: 8px; font-family: var(--font-display, inherit); font-weight: 800; font-size: .8rem; color: #16a34a; }
.dest-name { font-weight: 700; font-size: .85rem; line-height: 1.15; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dest-price { font-weight: 700; font-size: .9rem; color: #16a34a; }
.dest-ratio { display: flex; flex-direction: column; align-items: center; background: #22c55e; color: #fff; border-radius: 8px; padding: 3px 10px 2px; line-height: 1.05; }
.dest-ratio b { font-family: var(--font-display, inherit); font-size: 1.05rem; }
.dest-ratio small { font-size: .55rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; opacity: .9; }
.dest-why { font-size: .68rem; line-height: 1.3; color: #4b5b63; }
.dest-trend { width: 100%; display: flex; flex-direction: column; gap: 1px; }
.dt-row { display: flex; justify-content: space-between; gap: 4px; font-size: .66rem; color: #5b6b73; }
.dt-row b { font-weight: 700; }
.dt-row.up b { color: #16a34a; } .dt-row.down b { color: #dc2626; } .dt-row.flat b { color: #5b6b73; }
.dest-trend { min-height: 2.5em; justify-content: flex-start; }

/* Destacados en pantallas anchas: 6 tarjetas en una fila (o 3 en tablet) y el cambio de precio pegado en vez de abierto de lado a lado */
.dest-trend { max-width: 200px; margin-left: auto; margin-right: auto; }
@media (min-width: 1100px) {
  .dest-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; padding: 6px 16px 18px; }
  .dest-card { padding: 16px 10px 14px; }
  .dest-name { font-size: .95rem; }
  .dest-price { font-size: 1rem; }
  .dt-row { font-size: .72rem; }
  .dest-why { font-size: .72rem; }
}
@media (min-width: 700px) and (max-width: 1099px) {
  .dest-grid { gap: 12px; padding: 6px 16px 18px; }
}

/* Botones "Volver" más pequeños */
.pp-back, .playerpage .pp-back, .mpage .pp-back, .eq-backbar .pp-back { height: 32px !important; padding: 0 12px 0 10px !important; font-size: .85rem !important; margin-bottom: 8px !important; }
.pp-back::after, .playerpage .pp-back::after, .mpage .pp-back::after { font-size: .8rem !important; }
/* Partido en juego: cabecera comprimida */
.mpage-top.mpage-top-live { min-height: 0 !important; padding: 8px 12px 10px !important; }
.mpage-top-live .mpage-teams { margin: 4px 0 0 !important; }
.mpage-top-live .mpage-team { transform: none !important; font-size: .95rem !important; }
.mpage-top-live .mpage-score { font-size: clamp(1.6rem, 8vw, 2.2rem) !important; }
.mpage-top-live .mpage-bgcrest { width: min(120px, 34vw) !important; }
.mpage-top-live .mpage-bgcrest.left { left: calc(min(120px, 34vw) / -2.6) !important; }
.mpage-top-live .mpage-bgcrest.right { right: calc(min(120px, 34vw) / -2.6) !important; }
.mpage-top-live .mpage-topline { margin-bottom: 0; }

/* Botón central "Ver partido en directo" */
.mpage-livebtn-wrap { display: flex; justify-content: center; margin: 12px 0 6px; }
.mpage-livebtn { display: inline-flex; align-items: center; gap: 10px; padding: 12px 22px; border-radius: 999px; font-family: var(--font-display, inherit); font-weight: 800; font-size: 1rem; letter-spacing: .01em; text-decoration: none; color: #fff; background: linear-gradient(135deg, #ef4444, #b91c1c); box-shadow: 0 6px 18px rgba(220,38,38,.35), inset 0 1px 0 rgba(255,255,255,.25); -webkit-tap-highlight-color: transparent; transition: transform .12s ease, box-shadow .15s ease; }
.mpage-livebtn:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .mpage-livebtn:hover { box-shadow: 0 8px 22px rgba(220,38,38,.48), inset 0 1px 0 rgba(255,255,255,.25); } }
.mlb-dot { width: 9px; height: 9px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 0 rgba(255,255,255,.7); animation: mlbPulse 1.5s ease-out infinite; }
@keyframes mlbPulse { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.7); } 70% { box-shadow: 0 0 0 8px rgba(255,255,255,0); } 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); } }
.mlb-go { font-size: 1.3rem; line-height: 1; margin-left: 2px; }
.mpage-livebtn.off { background: var(--surface-2, #e8ecee); color: #6b7a82; box-shadow: none; font-size: .9rem; padding: 10px 18px; }
.mpage-livebtn.off .mlb-dot { background: #9aa8af; animation: none; }
@media (prefers-reduced-motion: reduce) { .mlb-dot { animation: none; } }
/* Página del directo */
.livepage .lv-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; padding: 12px 8px; border-radius: 16px; background: var(--surface-2, #f1f4f5); margin-bottom: 12px; }
.lv-team { display: flex; flex-direction: column; align-items: center; gap: 4px; font-weight: 800; font-size: .9rem; text-align: center; }
.lv-team img { width: 42px; height: 42px; object-fit: contain; }
.lv-mid { text-align: center; }
.lv-state { font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #6b7a82; }
.lv-state.on { color: #ef4444; }
.lv-score { font-family: var(--font-display, inherit); font-size: 2rem; font-weight: 900; line-height: 1.1; white-space: nowrap; }
.lv-note { text-align: center; padding: 18px 8px; font-weight: 700; }
.lv-list { display: flex; flex-direction: column; gap: 2px; }
.lv-row { display: grid; grid-template-columns: 44px 22px 1fr; gap: 8px; align-items: start; padding: 9px 8px; border-radius: 10px; font-size: .88rem; line-height: 1.3; }
.lv-row:nth-child(odd) { background: rgba(127,140,148,.07); }
.lv-min { font-weight: 800; color: #6b7a82; font-variant-numeric: tabular-nums; }
.lv-row.lv-goal { background: rgba(34,197,94,.14); font-weight: 700; }
.lv-row.lv-red { background: rgba(239,68,68,.12); }
.lv-row.lv-mark { font-weight: 700; }
.lv-src { margin-top: 12px; text-align: center; font-size: .72rem; color: #6b7a82; }

.lv-tabs { display: flex; gap: 6px; margin-bottom: 10px; }
.lv-tab { flex: 1; padding: 9px 6px; border: 0; border-radius: 999px; background: var(--surface-2, #f1f4f5); color: inherit; font: inherit; font-weight: 800; font-size: .82rem; cursor: pointer; }
.lv-tab.on { background: #0f766e; color: #fff; }
.lv-half { text-align: center; font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #6b7a82; padding: 8px 0; }
.lv-ev.away .lv-tx { text-align: right; }
.lv-ev.away { grid-template-columns: 44px 22px 1fr; }
.lv-stats { display: flex; flex-direction: column; gap: 12px; }
.lv-stat-top { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; font-size: .86rem; }
.lv-stat-top b:last-child { text-align: right; }
.lv-stat-top span { color: #6b7a82; font-weight: 700; text-align: center; }
.lv-stat-bar { display: flex; gap: 3px; height: 6px; margin-top: 4px; }
.lv-stat-bar i { display: block; border-radius: 3px; }
.lv-stat-bar i:first-child { background: #0f766e; }
.lv-stat-bar i:last-child { background: #94a3b8; }

/* Directo v2: secciones separadas */
.livepage .lv-sec { margin-top: 18px; padding: 14px 10px; border-radius: 16px; background: var(--surface, #fff); border: 1px solid rgba(127,140,148,.22); }
.lv-h { margin: 0 0 12px; font-size: 1rem; font-weight: 900; }
.lv-ptop { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }
.lv-pitch { position: relative; width: 100%; aspect-ratio: 68 / 110; border-radius: 14px; overflow: hidden; background: repeating-linear-gradient(180deg, #17a05a 0 9%, #139552 9% 18%); border: 2px solid rgba(255,255,255,.55); }
.lv-mid-line { position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: rgba(255,255,255,.55); }
.lv-circle { position: absolute; left: 50%; top: 50%; width: 22%; aspect-ratio: 1; transform: translate(-50%, -50%); border: 2px solid rgba(255,255,255,.55); border-radius: 50%; }
.lv-pl { position: absolute; transform: translate(-50%, -50%); width: 20%; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.lv-ph { position: relative; width: 38px; height: 38px; border-radius: 50%; background: #e5ecef; display: flex; align-items: center; justify-content: center; }
.lv-ph img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.lv-ini { font-weight: 900; color: #44535b; }
.lv-rt { position: absolute; top: -5px; right: -12px; font-style: normal; font-size: .62rem; font-weight: 900; color: #fff; padding: 1px 4px; border-radius: 8px; }
.lv-rt.g { background: #16a34a; } .lv-rt.o { background: #f59e0b; } .lv-rt.r { background: #ef4444; }
.lv-so { position: absolute; top: -9px; left: -14px; font-style: normal; font-size: .58rem; font-weight: 800; color: #fff; background: #dc2626; padding: 1px 4px; border-radius: 8px; }
.lv-cd { position: absolute; bottom: -2px; left: -6px; width: 9px; height: 12px; border-radius: 2px; background: #facc15; }
.lv-cd.red { background: #dc2626; }
.lv-gl { position: absolute; bottom: -6px; right: -8px; font-style: normal; font-size: .7rem; }
.lv-nm { font-size: .64rem; font-weight: 800; color: #fff; text-align: center; text-shadow: 0 1px 2px rgba(0,0,0,.6); white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.lv-bench { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.lv-bcol h4 { margin: 0 0 6px; font-size: .76rem; color: #6b7a82; }
.lv-brow { display: flex; justify-content: space-between; gap: 4px; font-size: .78rem; padding: 3px 0; }
.lv-brow em { font-style: normal; color: #16a34a; font-weight: 800; white-space: nowrap; }
.lv-evs { display: flex; flex-direction: column; gap: 10px; }
.lv-evr { display: grid; grid-template-columns: 1fr 52px 1fr; align-items: center; gap: 6px; }
.lv-evm { justify-self: center; min-width: 40px; text-align: center; padding: 6px 0; border-radius: 999px; background: rgba(127,140,148,.16); font-weight: 800; font-size: .8rem; font-variant-numeric: tabular-nums; }
.lv-evr.goal .lv-evm { background: #16a34a; color: #fff; }
.lv-evl { text-align: right; } .lv-evr2 { text-align: left; }
.lv-evb { display: flex; flex-direction: column; gap: 1px; font-size: .84rem; line-height: 1.25; }
.lv-evb small { color: #6b7a82; font-size: .72rem; }
.lv-evl .lv-evb { align-items: flex-end; } .lv-evr2 .lv-evb { align-items: flex-start; }
.lv-sq { display: inline-block; width: 10px; height: 14px; border-radius: 2px; background: #facc15; margin-bottom: 2px; }
.lv-sq.red { background: #dc2626; }
.lv-in { color: #16a34a; font-weight: 800; } .lv-out { color: #dc2626; font-weight: 700; }
.lv-half { text-align: center; font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #6b7a82; padding: 6px 0; border-top: 1px dashed rgba(127,140,148,.4); border-bottom: 1px dashed rgba(127,140,148,.4); }
.lv-table { display: flex; flex-direction: column; font-size: .78rem; }
.lv-trow { display: grid; grid-template-columns: 26px 1fr 22px 22px 22px 22px 46px 28px 32px; gap: 2px; align-items: center; padding: 6px 2px; border-bottom: 1px solid rgba(127,140,148,.14); text-align: center; font-variant-numeric: tabular-nums; }
.lv-trow.me { background: rgba(15,118,110,.14); font-weight: 800; border-radius: 8px; }
.lv-thead { font-weight: 800; color: #6b7a82; font-size: .7rem; }
.lv-tn { display: flex; align-items: center; gap: 6px; text-align: left; justify-content: flex-start; min-width: 0; }
.lv-tn img { width: 18px; height: 18px; object-fit: contain; }
.lv-tn em { font-style: normal; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lv-pts { font-weight: 900; }
.lv-tp { padding: 2px 0; }
@media (max-width: 420px) { .lv-trow { grid-template-columns: 24px 1fr 18px 18px 18px 18px 40px 26px 28px; font-size: .72rem; } .lv-ph { width: 34px; height: 34px; } }

/* Directo v3: campo y puntos como en nuestras alineaciones */
.lv-ptop { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.lv-pt { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 14px; background: var(--surface-2, #f1f4f5); min-width: 0; }
.lv-pt.a { flex-direction: row-reverse; text-align: right; }
.lv-pt img { width: 34px; height: 34px; object-fit: contain; flex: none; }
.lv-pt-tx { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.lv-pt-tx b { font-size: .86rem; line-height: 1.1; }
.lv-chips { display: flex; gap: 5px; flex-wrap: wrap; }
.lv-pt.a .lv-chips { justify-content: flex-end; }
.lv-chip { font: 800 .72rem 'Bricolage Grotesque', sans-serif; padding: 2px 8px; border-radius: 999px; background: #10151c; color: #fff; }
.lv-rate { background: #fff; color: #10151c; border: 1.5px solid #16a34a; }
.lv-rate.on { background: #16a34a; color: #fff; } .lv-rate.top { background: #facc15; color: #10151c; border-color: #facc15; } .lv-rate.neg { background: #ef4444; color: #fff; border-color: #ef4444; }
.lv-pitch { position: relative; width: 100%; aspect-ratio: 5 / 12.2; border-radius: 16px; overflow: hidden; background: #139245 url(/futmondo/campo.svg) center / cover no-repeat; border: 0; }
.lv-pitch .lv-mid-line, .lv-pitch .lv-circle { border-color: rgba(255,255,255,.7); }
.lv-pitch .pl.lv-abs { position: absolute; transform: translate(-50%, -50%); width: 22%; max-width: 92px; }
.lv-pitch .pl-ph { width: 46px; height: 46px; }
.lv-pitch .pl-nm { font-size: .64rem; margin-top: 3px; }
.lv-pitch .pl-pts { min-width: 20px; height: 20px; font-size: .68rem; right: -10px; top: -6px; }
.lv-pitch .pl-sw { font-size: .6rem; }
.pl-yel { position: absolute; left: 2px; bottom: 2px; width: 13px; height: 18px; border-radius: 3px; background: #facc15; border: 1.5px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,.5); }
.lv-ptag { position: absolute; left: 8px; display: flex; align-items: center; gap: 6px; padding: 3px 10px 3px 4px; border-radius: 999px; background: rgba(0,0,0,.45); color: #fff; font: 800 .7rem 'Figtree', sans-serif; z-index: 2; max-width: 60%; }
.lv-ptag.h { top: 8px; } .lv-ptag.a { bottom: 8px; }
.lv-ptag img { width: 20px; height: 20px; object-fit: contain; }
.lv-ptag span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lv-sec.hidden { display: none; }
.livepage .lv-sec .lv-h { display: none; }
.livepage .lv-sec { margin-top: 0; }
.lv-tabs { margin-top: 4px; }
.lv-tab { font-size: .76rem; padding: 9px 2px; }
.lv-benchbox { border-radius: 14px; margin-top: 12px; }
.lv-benchbox .pl-ph { width: 46px; height: 46px; }
.lv-benchbox .pl-pts { min-width: 20px; height: 20px; font-size: .68rem; right: -10px; top: -6px; }
.lv-benchbox .pl-nm { font-size: .64rem; }
.lv-benchbox .pl.lv-unused .pl-ph img { opacity: .6; filter: grayscale(.5); }

/* Directo v4: Hechos + Cara a cara */
.lv-srctop { margin: 0 0 8px; text-align: center; font-size: .74rem; font-weight: 700; color: #6b7a82; }
.lv-card { margin-top: 12px; padding: 14px 12px; border-radius: 16px; background: var(--surface, #fff); border: 1px solid rgba(127,140,148,.22); }
.lv-card-h { margin: 0 0 12px; text-align: center; font-size: .96rem; font-weight: 900; }
.lv-pos-l { text-align: center; font-weight: 700; font-size: .84rem; margin-bottom: 6px; }
.lv-pos { display: flex; gap: 3px; margin-bottom: 14px; }
.lv-pos b { padding: 8px 12px; color: #fff; font-size: .82rem; font-weight: 800; min-width: 0; }
.lv-pos b.h { background: #0f766e; border-radius: 999px 0 0 999px; text-align: left; }
.lv-pos b.a { background: #10151c; border-radius: 0 999px 999px 0; text-align: right; }
.lv-tsr { display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; margin-top: 10px; font-size: .84rem; }
.lv-tsl { text-align: center; font-weight: 700; }
.lv-tsv { font-weight: 800; padding: 3px 10px; border-radius: 999px; width: fit-content; }
.lv-tsv:last-child { justify-self: end; }
.lv-tsv.win.h { background: #0f766e; color: #fff; } .lv-tsv.win.a { background: #10151c; color: #fff; }
.lv-potm { display: flex; align-items: center; gap: 12px; }
.lv-potm img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; background: #e5ecef; }
.lv-potm-tx { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.lv-potm-tx span { color: #6b7a82; font-size: .78rem; font-weight: 700; }
.lv-potm-r { background: #2f8cf5; color: #fff; font-weight: 900; padding: 5px 11px; border-radius: 999px; font-size: .86rem; }
.pl-pts.mvp { background: #2f8cf5; color: #fff; border-color: #fff; }
.lv-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lv-fcol { display: flex; flex-direction: column; gap: 8px; align-items: center; }
.lv-frow { display: flex; align-items: center; gap: 8px; }
.lv-frow img { width: 24px; height: 24px; object-fit: contain; }
.lv-fp { min-width: 52px; text-align: center; padding: 4px 8px; border-radius: 6px; color: #fff; font-weight: 800; font-size: .8rem; font-variant-numeric: tabular-nums; }
.lv-fp.w { background: #16a34a; } .lv-fp.l { background: #ef4444; } .lv-fp.d { background: #8a949b; }
.lv-inf { display: flex; flex-direction: column; margin-bottom: 8px; }
.lv-inf span { color: #6b7a82; font-size: .8rem; font-weight: 700; }
.lv-kv { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-top: 1px solid rgba(127,140,148,.18); font-size: .86rem; }
.lv-kv span { color: #6b7a82; font-weight: 700; }
.lv-kv b { text-align: right; }
.lv-ref { padding: 10px 0; border-top: 1px solid rgba(127,140,148,.18); display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; font-size: .84rem; }
.lv-ref-n { font-weight: 700; color: #6b7a82; }
.lv-ref-bar { grid-column: 1 / -1; height: 6px; border-radius: 3px; background: rgba(127,140,148,.25); overflow: hidden; }
.lv-ref-bar i { display: block; height: 100%; background: #f97316; border-radius: 3px; }
.lv-ref small { grid-column: 1 / -1; color: #6b7a82; font-weight: 700; }
.lv-next { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; padding: 10px 0; border-top: 1px solid rgba(127,140,148,.18); }
.lv-next:first-of-type { border-top: 0; }
.lv-ns { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; font-size: .78rem; font-weight: 700; }
.lv-ns img { width: 34px; height: 34px; object-fit: contain; }
.lv-nm2 { display: flex; flex-direction: column; align-items: center; }
.lv-nm2 b { font-size: 1.05rem; } .lv-nm2 small { color: #6b7a82; font-weight: 700; }
.lv-hl { position: relative; display: block; border-radius: 12px; overflow: hidden; background: #10151c; aspect-ratio: 16 / 9; }
.lv-hl img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lv-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 54px; height: 54px; border-radius: 50%; background: rgba(255,255,255,.92); color: #10151c; display: grid; place-items: center; font-size: 1.3rem; padding-left: 4px; box-sizing: border-box; }
.lv-hl-src { margin: 8px 0 0; text-align: center; font-size: .72rem; color: #6b7a82; }
.lv-h2sum { display: grid; grid-template-columns: 40px 1fr 1fr 1fr 40px; align-items: center; gap: 6px; text-align: center; padding-bottom: 12px; border-bottom: 1px solid rgba(127,140,148,.18); }
.lv-h2sum img { width: 36px; height: 36px; object-fit: contain; }
.lv-h2c { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: .74rem; }
.lv-h2n { min-width: 40px; padding: 5px 0; border-radius: 999px; font-weight: 900; border: 1.5px solid rgba(127,140,148,.35); }
.lv-h2n.h { background: #0f766e; color: #fff; border-color: #0f766e; } .lv-h2n.a { background: #10151c; color: #fff; border-color: #10151c; }
.lv-h2r { padding: 10px 0; border-bottom: 1px solid rgba(127,140,148,.14); }
.lv-h2top { display: flex; justify-content: space-between; font-size: .72rem; color: #6b7a82; font-weight: 700; margin-bottom: 6px; }
.lv-h2m { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; font-size: .82rem; font-weight: 700; }
.lv-h2t { display: flex; align-items: center; gap: 6px; min-width: 0; }
.lv-h2t.l { justify-content: flex-end; } .lv-h2t img { width: 20px; height: 20px; object-fit: contain; flex: none; }
.lv-h2t em { font-style: normal; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lv-h2s { min-width: 44px; text-align: center; font-variant-numeric: tabular-nums; }
.lv-tabs { overflow-x: auto; scrollbar-width: none; } .lv-tabs::-webkit-scrollbar { display: none; }
.lv-tab { flex: 0 0 auto; padding: 9px 12px; }
/* En pantallas anchas el campo no se estira: mismo tamaño que en móvil, centrado */
@media (min-width: 600px) {
  .lv-ptop, .lv-pitch, .lv-benchbox { max-width: 480px; margin-left: auto; margin-right: auto; }
  .lv-ptop { margin-bottom: 10px; }
}
.dest-upd { color: #6b7a82; font-size: .74rem; font-weight: 700; }

/* Directo v5 */
.lv-when { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 16px; background: linear-gradient(135deg, #0f766e, #115e59); color: #fff; border: 0; }
.lv-when-chips { display: flex; gap: 6px; margin-bottom: 8px; flex-wrap: wrap; }
.lv-wchip { font-size: .7rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; background: rgba(255,255,255,.18); }
.lv-wchip.alt { background: #fff; color: #115e59; }
.lv-when-d { font-size: 1.02rem; font-weight: 800; line-height: 1.2; }
.lv-when-t { font-family: var(--font-display, inherit); font-size: 2rem; font-weight: 900; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.lv-fhead { display: flex; align-items: center; gap: 6px; font-weight: 800; font-size: .8rem; margin-bottom: 4px; }
.lv-fhead img { width: 20px; height: 20px; object-fit: contain; }
.lv-fd { font-size: .68rem; font-weight: 700; color: #6b7a82; min-width: 38px; }
.lv-fcol { align-items: stretch; }
.lv-std-r { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-top: 1px solid rgba(127,140,148,.18); }
.lv-std-r:first-of-type { border-top: 0; padding-top: 2px; }
.lv-std-ic { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 10px; background: rgba(127,140,148,.14); font-size: 1.05rem; }
.lv-std-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; font-size: .88rem; }
.lv-std-s { color: #6b7a82; font-weight: 700; font-size: .8rem; }
.lv-kv2 { display: flex; justify-content: space-between; gap: 10px; }
.lv-kv2 span { color: #6b7a82; font-weight: 700; }
.lv-std-map { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(127,140,148,.3); text-decoration: none; }
.lv-att { position: relative; height: 6px; margin: 6px 0 14px; border-radius: 3px; background: rgba(127,140,148,.22); }
.lv-att i { display: block; height: 100%; border-radius: 3px; background: #16a34a; }
.lv-att em { position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-style: normal; font-size: .7rem; font-weight: 900; color: #fff; background: #16a34a; padding: 2px 8px; border-radius: 999px; }
.lv-ref-top { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.lv-ref-top img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: #e5ecef; border: 2px solid rgba(127,140,148,.25); }
.lv-ref-id { display: flex; flex-direction: column; }
.lv-ref-id span { color: #6b7a82; font-size: .8rem; font-weight: 700; }
.lv-ref-grid { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid rgba(127,140,148,.25); border-radius: 12px; overflow: hidden; }
.lv-ref-c { padding: 12px; display: flex; flex-direction: column; gap: 6px; }
.lv-ref-c + .lv-ref-c { border-left: 1px solid rgba(127,140,148,.25); }
.lv-ref-h { display: flex; align-items: center; gap: 6px; font-size: .78rem; }
.lv-ref-v strong { font-size: 1.5rem; font-weight: 900; } .lv-ref-v small { color: #6b7a82; font-weight: 700; }
.lv-ref-bar { position: relative; height: 6px; border-radius: 3px; background: rgba(127,140,148,.25); margin: 6px 0 4px; }
.lv-ref-bar i { display: block; height: 100%; border-radius: 3px; background: #f97316; }
.lv-ref-bar u { position: absolute; top: 50%; width: 12px; height: 12px; border-radius: 50%; background: #f97316; transform: translate(-50%, -50%); border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.lv-ref-bar s { position: absolute; top: -3px; width: 2px; height: 12px; background: #6b7a82; transform: translateX(-50%); }
.lv-ref-l { font-size: .74rem; font-weight: 800; color: #6b7a82; } .lv-ref-l.hi, .lv-ref-l.lo { color: #f97316; }
.lv-ref-foot { margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(127,140,148,.18); font-size: .78rem; font-weight: 800; color: #6b7a82; }
.lv-nw { display: flex; gap: 12px; padding: 10px 0; border-top: 1px solid rgba(127,140,148,.18); text-decoration: none; color: inherit; align-items: center; }
.lv-nw:first-of-type { border-top: 0; padding-top: 0; }
.lv-nw img { width: 78px; height: 54px; object-fit: cover; border-radius: 8px; flex: none; background: #e5ecef; }
.lv-nw-t { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.lv-nw-t b { font-size: .84rem; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.lv-nw-t small { color: #6b7a82; font-weight: 700; }
.lv-next { display: block; padding: 10px 0; border-top: 1px solid rgba(127,140,148,.18); }
.lv-next:first-of-type { border-top: 0; padding-top: 0; }
.lv-next-lg { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: .74rem; font-weight: 700; color: #6b7a82; }
.lv-lgchip { font-weight: 900; color: #fff; background: #4f46e5; padding: 3px 10px; border-radius: 999px; letter-spacing: .02em; }
.lv-next-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }
.lv-hl-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.72)); }
.lv-play { width: 62px; height: 62px; background: rgba(255,255,255,.22); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border: 2px solid rgba(255,255,255,.85); padding: 0; transition: transform .16s cubic-bezier(.23,1,.32,1); }
.lv-play i { width: 0; height: 0; margin-left: 4px; border-style: solid; border-width: 11px 0 11px 18px; border-color: transparent transparent transparent #fff; }
@media (hover: hover) and (pointer: fine) { .lv-hl:hover .lv-play { transform: translate(-50%, -50%) scale(1.07); } }
.lv-hl:active .lv-play { transform: translate(-50%, -50%) scale(.96); }
.lv-hl-cap { position: absolute; left: 14px; bottom: 12px; display: flex; flex-direction: column; color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.lv-hl-cap small { opacity: .85; font-weight: 700; }
.lv-pitch { aspect-ratio: 5 / 14.6; }
.lv-pitch a.pl { text-decoration: none; }
.lv-benchbox { margin-top: 22px; position: relative; }
.lv-benchbox.h { border-top: 4px solid #0f766e; } .lv-benchbox.a { border-top: 4px solid #10151c; }
.lv-bench-h { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 12px; }
.lv-bench-h img { width: 34px; height: 34px; object-fit: contain; filter: drop-shadow(0 2px 4px rgba(0,0,0,.35)); }
.lv-bench-t { display: flex; flex-direction: column; color: #fff; text-align: left; }
.lv-bench-t small { font-size: .66rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; opacity: .85; }
.lv-bench-t b { font-size: 1rem; font-weight: 900; }
.lv-benchbox .al-bench-h { display: none; }
.lv-stat-g { margin: 18px 0 2px; font-size: .74rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: #0f766e; }
.lv-stat-g:first-child { margin-top: 0; }

.lv-fhead { justify-content: center; }
.lv-fcol { align-items: center; }
.lv-frow { justify-content: center; }
.lv-fd { min-width: 42px; text-align: right; font-size: .72rem; font-weight: 700; color: #6b7a82; }
.lv-std-map { color: #0ea5a4; background: rgba(14,165,164,.1); border-color: rgba(14,165,164,.35); }
.lv-next-lg { flex-direction: column; justify-content: center; gap: 4px; text-align: center; }

/* Modo oscuro del directo: las tarjetas usan las variables de la web (antes caían a blanco) */
.livepage { --surface: var(--cx-surface, #fff); --surface-2: var(--cx-surface-2, #f1f4f5); }
:root:not([data-theme="light"]) .lv-pos b.a, :root:not([data-theme="light"]) .lv-tsv.win.a, :root:not([data-theme="light"]) .lv-h2n.a, :root:not([data-theme="light"]) .lv-chip { background: #3b4656; color: #fff; border-color: #3b4656; }
:root:not([data-theme="light"]) .lv-benchbox.a { border-top-color: #64748b; }

.lv-svg { display: inline-flex; align-items: center; justify-content: center; line-height: 0; }
.lv-std-ic { color: #0f766e; font-size: 0; }
.lv-svg.sm svg { width: 16px; height: 16px; }
.lv-wx { display: inline-flex; align-items: center; gap: 6px; }
.lv-ycard { display: inline-block; width: 11px; height: 15px; border-radius: 2px; background: #facc15; }
.lv-ref-h > .lv-svg { color: #6b7a82; }
:root:not([data-theme="light"]) .lv-std-ic { color: #2dd4bf; background: rgba(45,212,191,.12); }
:root:not([data-theme="light"]) .lv-ref-h > .lv-svg { color: #94a3b8; }

.lv-ref-bar { margin-top: 22px; }
.lv-ref-bar s { top: -5px; height: 16px; width: 3px; border-radius: 2px; background: #10151c; box-shadow: 0 0 0 1px rgba(255,255,255,.7); }
.lv-ref-bar em { position: absolute; bottom: 14px; transform: translateX(-50%); font-style: normal; font-size: .68rem; font-weight: 800; color: #10151c; background: rgba(127,140,148,.22); padding: 1px 6px; border-radius: 6px; white-space: nowrap; }
:root:not([data-theme="light"]) .lv-ref-bar s { background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.6); }
:root:not([data-theme="light"]) .lv-ref-bar em { color: #e8edf2; background: rgba(255,255,255,.12); }
.lv-ref-bar { overflow: visible; }

.lv-when.top { margin: 0 0 12px; }
.lv-livebox { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.lv-livepill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: rgba(239,68,68,.14); color: #ef4444; font-size: .66rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.lv-livepill i { width: 7px; height: 7px; border-radius: 50%; background: #ef4444; animation: lvpulse 1.4s ease-in-out infinite; }
@keyframes lvpulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.7); } }
.lv-liveline { display: flex; align-items: baseline; gap: 6px; color: #6b7a82; font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.lv-liveline b { color: #ef4444; font-size: 1.05rem; font-variant-numeric: tabular-nums; letter-spacing: 0; }
@media (prefers-reduced-motion: reduce) { .lv-livepill i { animation: none; } }

a.lv-potm { color: inherit; text-decoration: none; cursor: pointer; }
.lv-ns.club-link, .lv-frow img.club-link { cursor: pointer; }

/* Fecha integrada en la parte de abajo de la tarjeta del marcador */
.livepage .lv-head { align-items: start; }
.lv-when.in { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 10px; margin: 4px 0 0; padding: 10px 4px 0; border: 0; border-top: 1px solid rgba(127,140,148,.25); border-radius: 0; background: none; color: inherit; }
.lv-when.in .lv-when-l { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; }
.lv-when.in .lv-when-chips { margin: 0; }
.lv-when.in .lv-wchip { background: rgba(15,118,110,.14); color: #0f766e; font-size: .66rem; padding: 2px 8px; }
.lv-when.in .lv-wchip.alt { background: #0f766e; color: #fff; }
.lv-when.in .lv-when-d { font-size: .8rem; font-weight: 700; color: #6b7a82; }
.lv-when.in .lv-when-t { font-size: .95rem; font-weight: 900; letter-spacing: 0; }
.lv-when.in .lv-when-t::before { content: "·"; margin-right: 10px; color: #6b7a82; font-weight: 700; }
:root:not([data-theme="light"]) .lv-when.in .lv-wchip { background: rgba(45,212,191,.16); color: #5eead4; }
:root:not([data-theme="light"]) .lv-when.in .lv-wchip.alt { background: #0f766e; color: #fff; }

/* Boton "Volver": pastilla pequeña y moderna (chevron + texto), sin hueco de mas arriba */
.pp-back, .playerpage .pp-back, .mpage .pp-back, .eq-backbar .pp-back, .noti-back.pp-back {
  height: 28px !important; min-height: 0 !important; padding: 0 11px 0 7px !important; gap: 3px !important;
  font-size: 0 !important; line-height: 1 !important; margin: 0 0 6px !important;
  border-radius: 999px !important; opacity: 1 !important;
  background: rgba(127,140,148,.12) !important; border: 1px solid rgba(127,140,148,.28) !important;
  color: inherit !important; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: transform .12s ease, background .15s ease, border-color .15s ease !important;
}
.pp-back::before, .playerpage .pp-back::before, .mpage .pp-back::before {
  content: ""; width: 7px; height: 7px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: translateX(1px) rotate(45deg); border-radius: 1px; flex: none;
}
.pp-back::after, .playerpage .pp-back::after, .mpage .pp-back::after { content: "Volver" !important; font-size: .76rem !important; font-weight: 800 !important; letter-spacing: .01em; }
@media (hover: hover) and (pointer: fine) { .pp-back:hover { background: rgba(15,118,110,.16) !important; border-color: rgba(15,118,110,.45) !important; } }
.pp-back:active { transform: scale(.94) !important; }
.mpage > .pp-back:first-child, .eq-backbar { margin-top: 0; }
.mpage.panel, .playerpage.panel { padding-top: 10px; }

/* Notas de la alineación: rojo <7, amarillo 7-8, verde fuerte 8+ */
.pl-pts.rt-lo, .lv-rate.rt-lo { background: #ef4444; color: #fff; border-color: #fff; }
.pl-pts.rt-mid, .lv-rate.rt-mid { background: #facc15; color: #10151c; border-color: #fff; }
.pl-pts.rt-hi, .lv-rate.rt-hi { background: #15803d; color: #fff; border-color: #fff; }
.lv-rate.rt-lo { border-color: #ef4444; } .lv-rate.rt-mid { border-color: #facc15; } .lv-rate.rt-hi { border-color: #15803d; }
/* Evento de VAR */
.lv-var { display: flex; align-items: center; gap: 9px; }
.lv-evl .lv-var { flex-direction: row-reverse; text-align: right; }
.lv-varb { flex: none; display: inline-flex; align-items: center; justify-content: center; padding: 3px 7px 4px; border-radius: 6px; background: #1e293b; color: #fff; font: 900 .62rem 'Bricolage Grotesque', sans-serif; letter-spacing: .08em; box-shadow: inset 0 -2px 0 #38bdf8; }
.lv-var-t { display: flex; flex-direction: column; min-width: 0; }
.lv-evl .lv-var, .lv-evr2 .lv-var { align-items: center; }
.lv-evl .lv-var-t { align-items: flex-end; } .lv-evr2 .lv-var-t { align-items: flex-start; }

.lv-ht { display: flex; flex-direction: column; align-items: center; gap: 1px; margin-top: 4px; }
.lv-ht b { font-family: var(--font-display, inherit); font-size: 1.05rem; font-weight: 900; font-variant-numeric: tabular-nums; color: #0f766e; }
.lv-ht span { font-size: .66rem; font-weight: 800; letter-spacing: .02em; color: #6b7a82; text-transform: uppercase; }
:root:not([data-theme="light"]) .lv-ht b { color: #5eead4; }

/* Varios goles: un solo balon con el numero, para que no tape la nota */
.pl-evs { letter-spacing: 0; align-items: center; gap: 1px; }
.pl-evs i { font-style: normal; font-size: .58rem; font-weight: 900; line-height: 1; background: #0f172a; color: #fff; border-radius: 6px; padding: 1px 4px; margin-left: -2px; align-self: flex-end; }

.mpage-top,.livepage .lv-head{position:relative}
.pp-refresh{position:absolute;top:-52px;right:0;z-index:2;width:40px;height:40px;border-radius:50%;border:1px solid var(--cx-line,rgba(255,255,255,.16));background:rgba(22,28,36,.6);color:inherit;display:inline-grid;place-items:center;padding:0;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:transform .2s cubic-bezier(.23,1,.32,1),background .2s}
.pp-refresh svg{width:18px;height:18px;display:block;transition:transform .5s cubic-bezier(.23,1,.32,1)}
.pp-refresh:active{transform:scale(.92)}
.pp-refresh.spin svg{transform:rotate(360deg)}
:root[data-theme="light"] .pp-refresh{background:#fff;border-color:rgba(0,0,0,.1);color:#1f2933}
@media (hover:hover) and (pointer:fine){.pp-refresh:hover{background:#16a34a;color:#fff}}
@media (prefers-reduced-motion:reduce){.pp-refresh svg{transition:none}}

/* ===== Plantilla del club: buscador, filtros y filas compactas ===== */
.sq2-tools{margin:0 -2px 6px;padding:4px 2px 10px;display:grid;gap:8px}
.sq2-search{display:flex;align-items:center;gap:8px;height:44px;padding:0 14px;border-radius:12px;border:1px solid var(--border);background:var(--card-solid,var(--cx-surface,#fff));color:var(--muted)}
.sq2-search:focus-within{border-color:#16a34a;box-shadow:0 0 0 3px rgba(22,163,74,.18)}
.sq2-search svg{width:18px;height:18px;flex:none}
.sq2-search input{flex:1;min-width:0;border:0;outline:0;background:transparent;color:inherit;font:inherit;font-size:1rem;-webkit-appearance:none;appearance:none}
.sq2-search input::placeholder{color:var(--muted)}
.sq2-search input::-webkit-search-cancel-button{-webkit-appearance:none}
.sq2-chips{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none}
.sq2-chips::-webkit-scrollbar{display:none}
.sq2-chip{flex:none;height:36px;padding:0 13px;border-radius:999px;border:1px solid var(--border);background:transparent;color:inherit;font:inherit;font-size:.82rem;font-weight:800;display:inline-flex;align-items:center;gap:6px;cursor:pointer;-webkit-tap-highlight-color:transparent}
.sq2-chip em{font-style:normal;font-weight:700;font-size:.72rem;opacity:.55}
.sq2-chip.on{background:#16a34a;border-color:#16a34a;color:#fff}
.sq2-chip.on em{opacity:.85}
.sq2-sort{display:flex;align-items:center;gap:4px;font-size:.78rem}
.sq2-sortl{color:var(--muted);font-weight:700;margin-right:4px}
.sq2-s{border:0;background:transparent;color:var(--muted);font:inherit;font-weight:700;padding:6px 8px;border-radius:8px;cursor:pointer}
.sq2-s.on{color:inherit;background:rgba(127,127,127,.16)}
.sq2-list{border-top:1px solid var(--border)}
.sq2-row{display:flex;align-items:center;gap:10px;padding:9px 2px;border-bottom:1px solid var(--border);text-decoration:none;color:inherit;-webkit-tap-highlight-color:transparent}
.sq2-row:active{background:rgba(127,127,127,.1)}
.sq2-img{width:40px;height:40px;border-radius:50%;object-fit:cover;object-position:top;flex:none;background:rgba(127,127,127,.15)}
.sq2-mid{flex:1;min-width:0}
.sq2-name{display:flex;align-items:center;gap:6px;min-width:0}
.sq2-name b{font-size:.95rem;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sq2-st{flex:none;font-size:.62rem;font-weight:800;padding:1px 6px;border-radius:999px;color:#fff;background:#d97706}
.sq2-st.st-red{background:#dc2626}
.sq2-sub{display:flex;align-items:center;gap:6px;margin-top:2px;font-size:.74rem;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sq2-pos{flex:none;font-size:.6rem;font-weight:800;padding:1px 5px;border-radius:5px;color:#fff;background:#64748b}
.sq2-pos.posb-por{background:#16a34a}.sq2-pos.posb-def{background:#b45309}.sq2-pos.posb-med{background:#0891b2}.sq2-pos.posb-del{background:#be123c}
.sq2-dots{display:flex;gap:3px;flex:none}
.sq2-dot{width:18px;height:18px;border-radius:50%;display:grid;place-items:center;font-style:normal;font-size:.62rem;font-weight:800;color:#fff;background:#334155}
.sq2-dot.hi{background:#16a34a}.sq2-dot.mid{background:#0891b2}.sq2-dot.lo{background:#64748b}.sq2-dot.neg{background:#dc2626}.sq2-dot.z0{background:#475569}
.sq2-key{flex:none;width:46px;text-align:right;line-height:1.1}
.sq2-key b{display:block;font-size:1.05rem;font-weight:800;font-variant-numeric:tabular-nums}
.sq2-key small{font-size:.62rem;color:var(--muted);font-weight:700}
.sq2-empty{padding:18px 4px}
@media(max-width:380px){.sq2-dots{display:none}}

/* ===== Plantilla del club: barra de posiciones + filas con cara grande ===== */
.sq4-bar{display:flex;gap:6px;padding:6px;border-radius:18px;background:rgba(127,127,127,.14);margin-bottom:10px}
.sq4-seg{display:flex;align-items:center;justify-content:center;gap:10px;height:46px;min-width:54px;padding:0 12px;border:0;border-radius:14px;color:#fff;font:inherit;font-weight:800;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:flex .25s cubic-bezier(.23,1,.32,1)}
.sq4-seg.on{flex:1}
.sq4-seg .sq4-code{font-size:.82rem;font-weight:800;opacity:.85}
.sq4-seg.on .sq4-code{opacity:.8}
.sq4-seg b{font-size:1rem;font-weight:800;white-space:nowrap}
.sq4-POR{background:#16a34a}.sq4-DEF{background:#c2570c}.sq4-MC{background:#3f8fae}.sq4-DL{background:#ae2a40}
.sq4-seg:not(.on){opacity:.9}
.sq3-row{display:flex;align-items:center;gap:12px;padding:8px 10px;margin-bottom:8px;border-radius:14px;border:1px solid var(--border);background:var(--card-solid,var(--cx-surface,#fff));text-decoration:none;color:inherit;-webkit-tap-highlight-color:transparent}
.sq3-row:active{background:rgba(127,127,127,.12)}
.sq3-img{width:68px;height:68px;border-radius:50%;object-fit:cover;object-position:top;flex:none;background:rgba(127,127,127,.15)}
.sq3-mid{flex:1;min-width:0}
.sq3-name{display:flex;align-items:center;gap:6px;min-width:0}
.sq3-name b{font-size:1rem;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sq3-st{flex:none;font-size:.6rem;font-weight:800;padding:1px 6px;border-radius:999px;color:#fff;background:#d97706}
.sq3-st.st-red{background:#dc2626}
.sq3-sub{margin-top:1px;font-size:.74rem;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sq3-pts{display:flex;gap:4px;margin-top:6px}
.sq3-pt{flex:1;max-width:38px;display:flex;flex-direction:column;align-items:center;padding:2px 0 3px;border-radius:8px;color:#fff;background:#334155;line-height:1.1}
.sq3-pt i{font-style:normal;font-size:.5rem;font-weight:700;opacity:.8;min-height:.6rem}
.sq3-pt b{font-size:.82rem;font-weight:800;font-variant-numeric:tabular-nums}
.sq3-pt.hi{background:#16a34a}.sq3-pt.mid{background:#0891b2}.sq3-pt.lo{background:#64748b}.sq3-pt.neg{background:#dc2626}.sq3-pt.z0{background:#475569}

/* Esqueleto de carga del partido (en vez del texto "Cargando partido…") */
.mpage-skel{display:grid;gap:12px;padding:14px 0}
.mpage-skel i{display:block;height:76px;border-radius:18px;background:linear-gradient(100deg,rgba(127,127,127,.12) 30%,rgba(127,127,127,.24) 50%,rgba(127,127,127,.12) 70%);background-size:200% 100%;animation:mpskel 1.2s linear infinite}
.mpage-skel i.h{height:150px}.mpage-skel i.s{height:44px;width:70%}
@keyframes mpskel{from{background-position:200% 0}to{background-position:-200% 0}}
@media (prefers-reduced-motion:reduce){.mpage-skel i{animation:none}}

/* ===== Destacados: título centrado y tarjetas de jugador más limpias ===== */
.dest-panel .dest-head { align-items: center; text-align: center; gap: 6px; padding: 24px 14px 10px; background: transparent; }
.dest-panel .dest-title { font-size: 2rem; line-height: 1; font-weight: 800; letter-spacing: -.035em; color: #0f172a; }
.dest-panel .dest-upd { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 999px; background: #f1f5f2; color: #526057; font-size: .72rem; font-weight: 700; }
.dest-dot { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34,197,94,.55); animation: destPulse 2s ease-out infinite; }
@keyframes destPulse { 0% { box-shadow: 0 0 0 0 rgba(34,197,94,.55); } 80%, 100% { box-shadow: 0 0 0 7px rgba(34,197,94,0); } }
.dest-panel .dest-grid { gap: 10px; padding: 8px 10px 16px; }
.dest-panel .dest-card { border: 0; border-radius: 20px; padding: 16px 6px 12px; gap: 6px; background: linear-gradient(180deg, rgba(34,197,94,.13), rgba(34,197,94,0) 42%), #fff; box-shadow: 0 1px 0 rgba(15,23,42,.04), 0 10px 24px rgba(15,40,25,.11); transition: transform .18s cubic-bezier(.23,1,.32,1), box-shadow .18s; -webkit-tap-highlight-color: transparent; }
.dest-panel .dest-card:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .dest-panel .dest-card:hover { transform: translateY(-3px); box-shadow: 0 1px 0 rgba(15,23,42,.04), 0 16px 30px rgba(15,40,25,.16); } }
.dest-panel .dest-name { font-size: .92rem; font-weight: 800; letter-spacing: -.01em; }
.dest-panel .dest-price { font-size: 1.05rem; font-weight: 800; color: #0f172a; letter-spacing: -.02em; }
.dest-panel .dest-trend { gap: 3px; margin-top: 2px; }
.dest-panel .dt-row { font-size: .64rem; padding: 2px 6px; border-radius: 7px; background: rgba(15,23,42,.045); }
.dest-panel .dt-row.up { background: rgba(34,197,94,.12); } .dest-panel .dt-row.down { background: rgba(220,38,38,.1); }
.dest-panel .dest-ratio { margin-top: 4px; width: calc(100% - 10px); padding: 6px 4px 5px; border-radius: 12px; background: #0f1d16; color: #fff; }
.dest-panel .dest-ratio b { font-size: 1.3rem; line-height: 1; color: #4ade80; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.dest-panel .dest-ratio small { font-size: .55rem; letter-spacing: .1em; opacity: .75; }
.dest-panel .dest-why { font-size: .62rem; color: #6b7a72; }
@media (prefers-reduced-motion: reduce) { .dest-dot { animation: none; } .dest-panel .dest-card { transition: none; } }

/* ===== Noticias: sin emojis, cabeceras de día sobrias, "Lo último" discreto ===== */
.ic { width: 1em; height: 1em; flex: none; vertical-align: -.14em; }
#newsAnuncios .news-day { margin: 18px 0 0; }
#newsAnuncios .news-day-txt { padding: 0; background: none; color: var(--muted); box-shadow: none; font-size: .72rem; font-weight: 800; letter-spacing: .08em; }
#newsAnuncios .newscard { border: 0; border-radius: 16px; box-shadow: 0 0 0 1px var(--border); gap: 14px; padding: 8px; }
#newsAnuncios .newscard-thumb { flex-basis: 92px; width: 92px; height: 92px; border-radius: 11px; }
#newsAnuncios .newscard .news-title { font-weight: 700; font-size: .93rem; letter-spacing: -.005em; }
#newsAnuncios .newscard .news-date, #newsAnuncios .news-hero .news-date { display: inline-flex; align-items: center; gap: 5px; font-weight: 500; }
#newsAnuncios .news-hero { border-radius: 18px; min-height: 280px; box-shadow: 0 12px 30px rgba(15,23,42,.22); }
#newsAnuncios .news-badge { display: inline-flex; align-items: center; gap: 5px; background: rgba(255,255,255,.16); color: #fff; box-shadow: none; border: 1px solid rgba(255,255,255,.28); backdrop-filter: blur(6px); letter-spacing: .06em; padding: 4px 10px 4px 8px; }

/* ===== Club: cabecera limpia con "entrada" al próximo partido ===== */
.eq-hero { flex-wrap: wrap; gap: 14px; padding: 18px 16px 16px; border-radius: 22px; background: var(--card-solid, #fff); border: 0; box-shadow: 0 0 0 1px var(--border); }
.eq-hero .eq-hero-bg { display: none; }
.eq-hero .eq-htxt { display: contents; }
.eq-hero .eq-crest { width: 64px; height: 64px; filter: none; }
.eq-hero .eq-h1 { flex: 1; min-width: 0; font-size: 1.9rem; line-height: 1.02; letter-spacing: -.035em; }
.eq-ticket { flex: 1 0 100%; display: block; text-decoration: none; color: #fff; background: #0f1d16; border-radius: 16px; padding: 12px 14px 12px; -webkit-tap-highlight-color: transparent; transition: transform .15s; }
.eq-ticket:active { transform: scale(.985); }
.eq-ticket.live { background: #3a1212; box-shadow: 0 0 0 1.5px #ef4444; }
.eq-tk-top { display: flex; justify-content: space-between; align-items: center; font-size: .7rem; font-weight: 700; color: rgba(255,255,255,.7); }
.eq-tk-ha { padding: 2px 8px; border-radius: 999px; border: 1px solid rgba(255,255,255,.25); }
.eq-tk-vs { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; margin: 12px 0; }
.eq-tk-side { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; text-align: center; }
.eq-tk-side img { width: 42px; height: 42px; object-fit: contain; }
.eq-tk-side b { font: 800 .82rem/1.1 'Bricolage Grotesque', sans-serif; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eq-tk-x { font-size: .72rem; font-weight: 700; color: rgba(255,255,255,.5); text-transform: uppercase; }
.eq-tk-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.12); }
.eq-tk-when { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .76rem; font-weight: 600; color: rgba(255,255,255,.85); }
.ic-txt { display: inline-flex; align-items: center; gap: 5px; }
.eq-tk-go { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: #4ade80; color: #0f1d16; font-size: .78rem; font-weight: 800; white-space: nowrap; }
.eq-tk-go .ic { width: 15px; height: 15px; }
.eq-stats { gap: 0; margin-top: 10px; border-radius: 18px; box-shadow: 0 0 0 1px var(--border); background: var(--card-solid, #fff); overflow: hidden; }
.eq-stats .eq-stat { border: 0; border-radius: 0; background: none; box-shadow: none; padding: 12px 4px; }
.eq-stats .eq-stat + .eq-stat { border-left: 1px solid var(--border); }
.eq-stats { grid-template-columns: repeat(2, 1fr); }
:root:not([data-theme="light"]) .dest-panel .dest-title { color: #f1f5f9; }
:root:not([data-theme="light"]) .dest-panel .dest-card { background: linear-gradient(180deg, rgba(34,197,94,.16), rgba(34,197,94,0) 42%), #17211b; box-shadow: 0 10px 24px rgba(0,0,0,.35); }
:root:not([data-theme="light"]) .dest-panel .dest-price { color: #f1f5f9; }
:root:not([data-theme="light"]) .dest-panel .dest-upd { background: rgba(255,255,255,.07); color: #a7b5ac; }

/* Noticias: cabecera moderna (título grande + subtítulo con estado en vivo) */
#tab-noticias > .panel > h2 { font-size: 2rem; line-height: 1; font-weight: 800; letter-spacing: -.04em; margin: 4px 0 8px; }
#tab-noticias .estado-title { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 16px; font-family: inherit; font-size: .86rem; font-weight: 600; color: var(--muted); }
#tab-noticias .news-updated { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; background: rgba(127,127,127,.12); font-size: .7rem; font-weight: 700; color: var(--muted); }
#tab-noticias .news-updated::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34,197,94,.55); animation: destPulse 2s ease-out infinite; }
#tab-noticias .news-updated:empty { display: none; }
/* Lo último: tarjeta destacada más editorial */
#newsAnuncios .news-hero { min-height: 320px; border-radius: 22px; }
#newsAnuncios .news-hero .newscard-body { padding: 90px 18px 18px; gap: 10px; background: linear-gradient(180deg, transparent 0%, rgba(2,6,23,.72) 45%, rgba(2,6,23,.94) 100%); }
#newsAnuncios .news-hero .news-title { font-size: 1.4rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.12; }
#newsAnuncios .news-badge { padding: 5px 12px 5px 9px; font-size: .66rem; letter-spacing: .1em; background: rgba(255,255,255,.14); }
#newsAnuncios .news-badge .ic { color: #fbbf24; }
@media (prefers-reduced-motion: reduce) { #tab-noticias .news-updated::before { animation: none; } }

/* Web: fila de clubes centrada (si no cabe, se desplaza desde el principio) */
@media (min-width: 761px) { .plt-clubs, .plt-row-btns { justify-content: safe center; } }

/* ===== Fichajes: lista editorial, sin banners ni degradados ===== */
#tab-fichajes .panel-head { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-bottom: 6px; }
#tab-fichajes .panel-head h2 { font-size: 2rem; line-height: 1; font-weight: 800; letter-spacing: -.04em; margin: 0; }
#tab-fichajes #fichUpdated { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; background: rgba(127,127,127,.12); font-size: .7rem; font-weight: 700; }
#tab-fichajes #fichUpdated:not(:empty)::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #22c55e; animation: destPulse 2s ease-out infinite; }
.fx-date { margin: 26px 0 4px; font: 800 1.25rem 'Bricolage Grotesque', sans-serif; letter-spacing: -.02em; text-transform: capitalize; }
.fx-list { display: flex; flex-direction: column; }
.fx { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 16px 0; border-bottom: 1px solid var(--border); animation: newsIn .3s ease both; }
.fx:last-child { border-bottom: 0; }
.fx-photo { width: 52px; height: 52px; border-radius: 50%; overflow: hidden; background: rgba(127,127,127,.15); margin-top: 2px; }
.fx-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.fx:not(:has(.fx-photo)) { grid-template-columns: minmax(0, 1fr) auto; }
.fx-body { min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.fx-meta { display: flex; align-items: center; gap: 12px; font-size: .72rem; font-weight: 700; color: var(--muted); }
.fx-st { display: inline-flex; align-items: center; gap: 6px; color: var(--text); text-transform: uppercase; letter-spacing: .06em; font-size: .66rem; }
.fx-dot { width: 7px; height: 7px; border-radius: 50%; background: #94a3b8; }
.fx-of .fx-dot { background: #22c55e; } .fx-neg .fx-dot { background: #f59e0b; }
.fx-time { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; }
.fx-title { margin: 0; font: 800 1.08rem/1.2 'Bricolage Grotesque', sans-serif; letter-spacing: -.015em; }
.fx-ruta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; }
.fx-club { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 700; }
.fx-club img { width: 20px; height: 20px; object-fit: contain; }
.fx-arr { width: 14px; height: 14px; color: var(--muted); }
.fx-extract { margin: 0; font-size: .86rem; line-height: 1.45; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.fx-link { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; color: var(--text); font: inherit; font-size: .8rem; font-weight: 800; cursor: pointer; border-bottom: 2px solid #22c55e; padding-bottom: 1px; }
.fx-link .ic { width: 14px; height: 14px; transition: transform .15s; }
@media (hover: hover) and (pointer: fine) { .fx-link:hover .ic { transform: translateX(3px); } }
.fx-thumb { width: 88px; height: 88px; border-radius: 12px; background-size: cover; background-position: center top; background-color: rgba(127,127,127,.15); }
@media (max-width: 420px) { .fx { gap: 12px; } .fx-thumb { width: 72px; height: 72px; } .fx-photo { width: 44px; height: 44px; } .fx-title { font-size: 1rem; } }
@media (prefers-reduced-motion: reduce) { #tab-fichajes #fichUpdated::before { animation: none; } }

/* ===== Fichajes · ajustes: medida de lectura, estados, contenedor, contraste y carácter ===== */
#tab-fichajes { --fx-ok: #15803d; --fx-wip: #b45309; --fx-mute: #475569; --fx-no: #b91c1c; --fx-sub: #334155; --fx-hover: rgba(15,23,42,.045); }
:root:not([data-theme="light"]) #tab-fichajes { --fx-ok: #4ade80; --fx-wip: #fbbf24; --fx-mute: #a8b3c4; --fx-no: #f87171; --fx-sub: #c3cdda; --fx-hover: rgba(255,255,255,.06); }
/* 3 · contenedor centrado, miniatura pegada al texto */
#tab-fichajes .fx-day { max-width: 780px; margin-inline: auto; }
#tab-fichajes .fx { padding-inline: 12px; margin-inline: -12px; border-radius: 14px; transition: background-color .18s ease; }
#tab-fichajes .fx-list .fx:last-child { border-bottom: 0; }
/* 1 · medida de lectura ~66 caracteres, alineado a la izquierda */
#tab-fichajes .fx-body { max-width: 68ch; text-align: left; }
#tab-fichajes .fx-title { max-width: 40ch; text-wrap: balance; }
#tab-fichajes .fx-extract { max-width: 66ch; }
/* 2 · color de estado: punto + etiqueta */
#tab-fichajes .fx-st { color: var(--fx-mute); }
#tab-fichajes .fx-st .fx-dot { background: currentColor; }
#tab-fichajes .fx-t-ok .fx-st { color: var(--fx-ok); }
#tab-fichajes .fx-t-wip .fx-st { color: var(--fx-wip); }
#tab-fichajes .fx-t-mute .fx-st { color: var(--fx-mute); }
#tab-fichajes .fx-t-no .fx-st { color: var(--fx-no); }
/* 4 · tamaños y grises con contraste AA */
#tab-fichajes .fx-st { font-size: .74rem; font-weight: 800; letter-spacing: .07em; }
#tab-fichajes .fx-dot { width: 8px; height: 8px; }
#tab-fichajes .fx-time { font-size: .8rem; font-weight: 600; color: var(--fx-sub); }
#tab-fichajes .fx-extract { font-size: .95rem; line-height: 1.5; color: var(--fx-sub); }
#tab-fichajes .fx-club { font-size: .86rem; }
#tab-fichajes .fx-arr { color: var(--fx-sub); }
#tab-fichajes .fx-link { font-size: .86rem; }
/* 5 · carácter: Fira Sans Condensed (ya cargada en la página) para titulares y cabeceras de día */
#tab-fichajes .fx-date { margin: 34px 0 6px; padding-top: 10px; border-top: 3px solid var(--text); font: 900 2rem/1 'Fira Sans Condensed', 'Bricolage Grotesque', sans-serif; letter-spacing: .005em; text-transform: uppercase; color: var(--text); }
#tab-fichajes .fx-day:first-of-type .fx-date { margin-top: 18px; }
#tab-fichajes .fx-title { font: 700 1.38rem/1.1 'Fira Sans Condensed', 'Bricolage Grotesque', sans-serif; letter-spacing: 0; }
@media (hover: hover) and (pointer: fine) { #tab-fichajes .fx:hover { background-color: var(--fx-hover); } }
@media (max-width: 420px) { #tab-fichajes .fx-date { font-size: 1.7rem; } #tab-fichajes .fx-title { font-size: 1.22rem; } #tab-fichajes .fx { padding-inline: 8px; margin-inline: -8px; } }
@media (prefers-reduced-motion: reduce) { #tab-fichajes .fx { transition: none; } }

/* Móvil: escudos de clubes del filtro más grandes */
@media (max-width: 760px) { .plt-btn.plt-club { width: 46px; height: 46px; } .plt-btn.plt-club img { width: 32px; height: 32px; } .plt-clubs { gap: 8px; } }
/* Cabecera alineada con el contenedor centrado de la lista */
#tab-fichajes .panel-head { max-width: 780px; margin-inline: auto; }

/* Móvil/app: escudos algo más grandes y botones "Todos" más pequeños */
@media (max-width: 760px) {
  .plt-btn.plt-club { width: 50px; height: 50px; }
  .plt-btn.plt-club img { width: 36px; height: 36px; }
  .plt-btn.plt-all { height: 32px; min-width: 0; padding: 0 11px; font-size: .74rem; }
  #pltPos .plt-btn { height: 28px; padding: 0 10px; font-size: .74rem; }
}

/* Mercado: botones "Todos" y posiciones rediseñados (compactos, píldora fina, activo en verde) */
.plt-panel .plt-btn.plt-all { height: 26px; min-width: 0; padding: 0 10px; border-radius: 999px; background: transparent; border: 1px solid rgba(255,255,255,.22); color: #b7c4cb; font-size: .7rem; font-weight: 700; letter-spacing: .02em; }
.plt-panel .plt-btn.plt-all.on { background: rgba(34,197,94,.18); border-color: rgba(34,197,94,.55); color: #4ade80; }
.plt-panel #pltPos { gap: 4px; padding: 0 8px 10px; }
.plt-panel #pltPos .plt-btn { height: 26px; padding: 0 8px; border-radius: 999px; background: transparent; border: 1px solid transparent; color: #aebcc3; font-size: .72rem; font-weight: 700; }
.plt-panel #pltPos .plt-btn.on { background: rgba(34,197,94,.18); border-color: rgba(34,197,94,.55); color: #4ade80; }
@media (hover: hover) and (pointer: fine) { .plt-panel #pltPos .plt-btn:not(.on):hover, .plt-panel .plt-btn.plt-all:not(.on):hover { color: #fff; border-color: rgba(255,255,255,.35); } }
.plt-panel #pltPos .plt-btn:active, .plt-panel .plt-btn.plt-all:active { transform: scale(.96); }
/* Escudos de clubes más juntos */
.plt-panel .plt-clubs { gap: 1px; }
.plt-panel .plt-btn.plt-club { width: 44px; }
.plt-panel .plt-clubs { align-items: center; }
.plt-panel .plt-btn.plt-all { align-self: center; margin-right: 4px; }

/* ===== Clausulazo jugoso: filtros modernos (control segmentado) y estado integrado en la cláusula ===== */
.claus-filters { gap: 8px; align-items: flex-start; }
.claus-frow { display: inline-flex; flex-wrap: nowrap; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(127,127,127,.14); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.claus-frow::-webkit-scrollbar { display: none; }
.claus-chip { border: 0; background: transparent; color: var(--muted); padding: 6px 13px; font-size: .76rem; font-weight: 700; white-space: nowrap; border-radius: 999px; transition: background-color .18s ease, color .18s ease, box-shadow .18s ease, transform .12s ease; }
.claus-chip.active { background: var(--card-solid, #fff); color: var(--text); border: 0; box-shadow: 0 1px 3px rgba(15,23,42,.18), 0 0 0 1px rgba(34,197,94,.55); }
.claus-chip:active { transform: scale(.96); }
@media (hover: hover) and (pointer: fine) { .claus-chip:not(.active):hover { color: var(--text); border: 0; } }
:root:not([data-theme="light"]) .claus-chip.active { background: rgba(255,255,255,.14); box-shadow: 0 0 0 1px rgba(74,222,128,.6); }
.claus-grid .claus-status { display: inline-flex; align-items: center; gap: 6px; margin: 2px 0 0; padding: 3px 10px; border-radius: 999px; font-size: .7rem; font-weight: 800; color: var(--text); background: rgba(127,127,127,.14); }
.claus-st-dot { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; flex: none; }
.claus-status.inj .claus-st-dot { background: #ef4444; } .claus-status.red .claus-st-dot { background: #f97316; } .claus-status.doubt .claus-st-dot { background: #eab308; }
.claus-grid .claus-status.ok, .claus-grid .claus-status.inj, .claus-grid .claus-status.red, .claus-grid .claus-status.doubt { color: var(--text); }

/* Clausulazo jugoso: cabecera centrada y moderna + filtros centrados */
#tab-clausulazos .claus-hero { text-align: center; padding: 6px 0 4px; }
#tab-clausulazos .claus-hero-top { display: flex; flex-direction: column; align-items: center; gap: 10px; }
#tab-clausulazos .claus-hero h2 { margin: 0; font-size: 2.1rem; line-height: 1; font-weight: 800; letter-spacing: -.04em; }
#tab-clausulazos .claus-upd { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 999px; background: rgba(127,127,127,.14); color: var(--muted); font-size: .72rem; font-weight: 700; }
#tab-clausulazos .claus-upd::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #22c55e; animation: destPulse 2s ease-out infinite; }
#tab-clausulazos .claus-hero-sub { margin: 12px auto 0; max-width: 32ch; font-size: .95rem; line-height: 1.45; color: var(--muted); text-wrap: balance; }
#tab-clausulazos .claus-filters { align-items: center; margin: 18px 0 6px; gap: 10px; }
#tab-clausulazos .claus-frow { justify-content: center; }
@media (prefers-reduced-motion: reduce) { #tab-clausulazos .claus-upd::before { animation: none; } }

/* Clausulazo: filtros de posición con el color de cada posición */
#clausPos .claus-chip[data-pos="portero"] { --pc: #16a34a; }
#clausPos .claus-chip[data-pos="defensa"] { --pc: #b45309; }
#clausPos .claus-chip[data-pos="centrocampista"] { --pc: #0891b2; }
#clausPos .claus-chip[data-pos="delantero"] { --pc: #be123c; }
#clausPos .claus-chip[data-pos]:not([data-pos=""]) { color: var(--pc); font-weight: 800; }
#clausPos .claus-chip[data-pos]:not([data-pos=""]).active { background: var(--pc); color: #fff; box-shadow: 0 2px 8px color-mix(in srgb, var(--pc) 45%, transparent); }
:root:not([data-theme="light"]) #clausPos .claus-chip[data-pos="portero"] { --pc: #22c55e; }
:root:not([data-theme="light"]) #clausPos .claus-chip[data-pos="defensa"] { --pc: #f59e0b; }
:root:not([data-theme="light"]) #clausPos .claus-chip[data-pos="centrocampista"] { --pc: #22d3ee; }
:root:not([data-theme="light"]) #clausPos .claus-chip[data-pos="delantero"] { --pc: #fb7185; }
:root:not([data-theme="light"]) #clausPos .claus-chip[data-pos]:not([data-pos=""]).active { color: #0b1220; }

/* Clausulazo: posiciones como las etiquetas DEL/MED de las tarjetas (relleno sólido, texto blanco) */
#clausPos .claus-chip[data-pos]:not([data-pos=""]), :root:not([data-theme="light"]) #clausPos .claus-chip[data-pos]:not([data-pos=""]) { background: var(--pc); color: #fff; font-weight: 800; letter-spacing: .03em; margin: 0 1px; padding: 6px 12px; box-shadow: none; opacity: .88; }
#clausPos .claus-chip[data-pos="portero"], :root:not([data-theme="light"]) #clausPos .claus-chip[data-pos="portero"] { --pc: #16a34a; }
#clausPos .claus-chip[data-pos="defensa"], :root:not([data-theme="light"]) #clausPos .claus-chip[data-pos="defensa"] { --pc: #b45309; }
#clausPos .claus-chip[data-pos="centrocampista"], :root:not([data-theme="light"]) #clausPos .claus-chip[data-pos="centrocampista"] { --pc: #0891b2; }
#clausPos .claus-chip[data-pos="delantero"], :root:not([data-theme="light"]) #clausPos .claus-chip[data-pos="delantero"] { --pc: #be123c; }
#clausPos .claus-chip[data-pos]:not([data-pos=""]).active, :root:not([data-theme="light"]) #clausPos .claus-chip[data-pos]:not([data-pos=""]).active { opacity: 1; color: #fff; box-shadow: 0 0 0 2px var(--card-solid, #fff), 0 0 0 4px var(--pc); }

/* ===== Iconos SVG (icons.js) ===== */
.gi { display: inline-block; width: 1.05em; height: 1.05em; vertical-align: -.2em; flex: none; }
.gi.tri { width: .62em; height: .62em; vertical-align: .02em; stroke-width: 1px; }
.gi.card { width: .8em; height: 1.05em; stroke: none; }
.gi.card.red { color: #ef4444; } .gi.card.yellow { color: #facc15; }
.gi.star { color: #f59e0b; } .gi.flame { color: #f97316; }
.gi.up, .up > .gi:not(.tri) { color: #22c55e; } .gi.down { color: #ef4444; }
.gi.ok { color: #22c55e; } .gi.ko { color: #ef4444; } .gi.warn { color: #f59e0b; }
.gi.dot { width: .8em; height: .8em; } .gi.orange { color: #f59e0b; }
.gi.dim { opacity: .55; } .gi.flip { transform: scaleY(-1); }
.cx-more-ico .gi { width: 1.2em; height: 1.2em; }

/* ===== Botón Volver: pastilla clara, un solo estilo en todas las vistas ===== */
.bk { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px 0 10px; margin: 0 0 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--card-solid); color: var(--text); font: inherit; font-size: .84rem; font-weight: 700; line-height: 1; cursor: pointer; text-decoration: none; -webkit-tap-highlight-color: transparent; transition: transform .12s ease, border-color .15s ease, background .15s ease; }
.bk .gi { width: 16px; height: 16px; vertical-align: 0; }
.bk:active { transform: scale(.96); }
.bk:focus-visible { outline: 2px solid #22c55e; outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .bk:hover { border-color: rgba(34,197,94,.55); background: rgba(34,197,94,.08); } }
.bk-link { margin-left: 0; color: var(--muted); }
.bk-link .gi { display: none; }
.eq-backbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 8px; }
.eq-backbar .bk { margin: 0; }
.pl-evs .gi, .mpage-ev-ico .gi { width: 15px; height: 15px; color: #fff; filter: drop-shadow(0 0 1px rgba(0,0,0,.8)); }
.pl-evs .gi.card.red { color: #ef4444; } .pl-evs .gi.card.yellow { color: #facc15; }

/* ===== Ficha · puntos por jornada: casa/fuera y "No jugó" rediseñados ===== */
.fm-row { grid-template-columns: 40px minmax(0, 1fr) auto !important; align-items: center; gap: 10px !important; padding: 9px 0 !important; }
.fm-j { font-size: .78rem; font-weight: 800; letter-spacing: .02em; display: inline-flex; align-items: center; justify-content: center; height: 26px; border-radius: 8px; background: rgba(127,140,148,.14); }
.fm-body { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.fm-rival { font-weight: 700; font-size: .95rem; line-height: 1.15; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ficha-modal .fm-rival { color: #e9eef6; }
[data-theme="light"] .ficha-modal .fm-rival { color: #1a1d21; }
.fm-chips { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.fm-venue, .fm-min { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 8px; border-radius: 999px; font-size: .68rem; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; white-space: nowrap; }
.fm-venue .ffx-ha { width: 11px; height: 11px; fill: currentColor; }
.fm-venue.h { background: rgba(34,197,94,.16); color: #16a34a; }
.fm-venue.a { background: rgba(99,102,241,.16); color: #6366f1; }
:root:not([data-theme="light"]) .fm-venue.h { color: #4ade80; }
:root:not([data-theme="light"]) .fm-venue.a { color: #a5b4fc; }
.fm-min { background: rgba(127,140,148,.14); color: var(--muted); text-transform: none; letter-spacing: 0; font-weight: 700; }
.fm-min.fm-in { background: rgba(34,197,94,.14); color: #16a34a; }
.fm-min.fm-out { background: rgba(239,68,68,.12); color: #dc2626; }
.fm-pts { min-width: 42px; padding: 6px 10px; border-radius: 10px; font-size: 1rem; }
.fm-pts.pt-calc { box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.75); outline: 2px dotted rgba(127,140,148,.7); outline-offset: 1px; }
.fm-legend { margin: 8px 0 0; font-size: .72rem; color: var(--muted); }

/* No jugó: fila apagada con etiqueta propia */
.fm-row-no { opacity: .72; }
.fm-nojugo { display: inline-flex; align-items: center; gap: 7px; height: 24px; padding: 0 10px; border-radius: 999px; border: 1px dashed rgba(127,140,148,.55); color: var(--muted); font-style: normal; font-size: .76rem; font-weight: 700; width: max-content; }
.fm-nj-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .6; }
.fm-pend { border-style: solid; border-color: rgba(245,158,11,.5); color: #d97706; }
.fm-pts-no { background: transparent !important; color: var(--muted) !important; box-shadow: none; }

/* === Analiza v278: claves, forma desplegable, cláusulas en fila === */
.an-clause-grid { grid-template-columns: 1fr 1fr; gap: 6px; }
.an-clause-card { flex-direction: row; align-items: center; text-align: left; gap: 7px; padding: 6px 8px; }
.an-clause-photo { flex: 0 0 34px; width: 34px; height: 34px; }
.an-clause-photo img { width: 34px; height: 34px; object-fit: cover; object-position: top; background: rgba(255,255,255,.06); }
.an-clause-tx { min-width: 0; flex: 1; }
.an-clause-name { font-size: .74rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.an-clause-vl { font-size: .62rem; }
.an-clause-rt { text-align: right; flex: 0 0 auto; }
.an-clause-rt .an-clause-cl { font-size: .72rem; }
.an-clause-x { font-size: .62rem; font-weight: 800; color: #f59e0b; }
.an-claves { display: flex; flex-direction: column; gap: 6px; }
.an-cl-row { display: flex; gap: 9px; align-items: center; padding: 7px 9px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07); }
.an-cl-ph { flex: 0 0 36px; width: 36px; height: 36px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: rgba(255,255,255,.07); }
.an-cl-ph img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.an-cl-tx { min-width: 0; flex: 1; }
.an-cl-n { display: block; font-size: .8rem; margin-bottom: 3px; }
.an-cl-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.an-cl-chip { font-size: .68rem; line-height: 1.25; padding: 2px 8px; border-radius: 999px; background: rgba(34,197,94,.13); color: inherit; }
.an-fg { margin-top: 8px; border-radius: 14px; border: 1px solid rgba(255,255,255,.09); background: rgba(255,255,255,.03); }
.an-fg-s { display: flex; align-items: center; gap: 8px; padding: 11px 12px; cursor: pointer; list-style: none; font-weight: 800; font-size: .88rem; }
.an-fg-s::-webkit-details-marker { display: none; }
.an-fg-s::after { content: "▾"; margin-left: 6px; opacity: .6; transition: transform .2s; }
.an-fg[open] > .an-fg-s::after { transform: rotate(180deg); }
.an-fg-t { flex: 1; }
.an-fg-n { font-size: .7rem; padding: 1px 8px; border-radius: 999px; background: rgba(255,255,255,.1); }
.an-fg-sum { font-size: .68rem; font-weight: 600; opacity: .7; }
.an-fg-b { padding: 0 8px 8px; display: flex; flex-direction: column; gap: 6px; }
.an-fm-card .an-fm-body { display: none; }
.an-fm-card.open .an-fm-body { display: block; }
.an-fm-card .an-fm-head { cursor: pointer; }
.an-fm-card .an-fm-head::after { content: "▾"; opacity: .5; margin-left: 4px; transition: transform .2s; }
.an-fm-card.open .an-fm-head::after { transform: rotate(180deg); }

/* === Clausulazo v278: cabecera mínima, botones grandes, tarjeta compacta === */
.claus-hero { margin-bottom: 6px; }
.claus-hero-top h2 { font-size: 1.02rem; }
.claus-hero-sub { display: none; }
.claus-upd { font-size: .6rem; padding: 3px 9px; gap: 5px; font-weight: 600; }
.claus-upd::before { width: 5px; height: 5px; box-shadow: 0 0 0 2px rgba(34,197,94,.22); }
.claus-filters { gap: 12px; margin: 8px 0 4px; }
.claus-frow { gap: 6px; padding: 4px; width: 100%; box-sizing: border-box; }
.claus-chip { flex: 1 1 0; padding: 10px 12px; font-size: .86rem; text-align: center; }
.claus-grid .claus-card2::before { height: 30px; }
.claus-grid .claus-photo2 { width: 62px; height: 62px; margin: -26px auto 2px; border-width: 3px; }
.claus-grid .claus-body2 { gap: 4px; padding: 0 10px 11px; }
.claus-grid .claus-name2 { font-size: 1rem; }
.claus-grid .claus-meta { display: flex; width: auto; max-width: 100%; gap: 4px; padding: 3px 9px; font-size: .68rem; flex-wrap: nowrap; }
.claus-meta .claus-meta-t, .claus-meta .claus-meta-o { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.claus-meta .claus-meta-o { max-width: 70px; }
.claus-meta .claus-meta-sep { opacity: .5; font-style: normal; }
.claus-meta .racha-crest, .claus-meta .claus-ownav { width: 14px; height: 14px; flex: none; }
.claus-grid .claus-fitwrap { padding: 5px 4px; margin: 2px 0 0; }
@media (max-width: 560px) { .claus-grid .claus-photo2 { width: 56px; height: 56px; margin-top: -24px; } .claus-grid .claus-card2::before { height: 28px; } }
#tab-clausulazos .claus-hero { padding: 0 0 2px; text-align: left; margin-bottom: 4px; }
#tab-clausulazos .claus-hero-top { flex-direction: row; justify-content: space-between; align-items: center; gap: 8px; }
#tab-clausulazos .claus-hero h2 { font-size: 1.05rem; letter-spacing: -.02em; line-height: 1.1; }
#tab-clausulazos .claus-hero-sub { display: none; }
#tab-clausulazos .claus-filters { margin: 6px 0 2px; gap: 8px; }
#tab-clausulazos .claus-grid { margin-top: 8px; }
#tab-clausulazos .claus-grid .claus-status, #tab-clausulazos .claus-grid .claus-lastup { margin: 0; }


/* === Analiza v282 === */
.an-cap-cur { margin-top: 6px; font-size: .74rem; font-weight: 700; color: var(--muted); }
.an-cap-cur.ok { color: #16a34a; }
.an-base { margin: 0 0 8px; padding: 0; background: none; border: 0; display: flex; align-items: center; gap: 8px; }
.an-base-k { font-size: .7rem; font-weight: 700; color: var(--muted); }
.an-proj .an-base { padding: 6px 0 2px; }
#anOut .al-bench { padding: 6px 6px 8px; }
#anOut .al-bench-h { margin-bottom: 4px; font-size: .6rem; }
#anOut .al-bench-row { flex-wrap: nowrap; gap: 2px; }
#anOut .al-bench-row .pl { width: 25%; }
#anOut .al-bench-row .pl-ph { width: 36px; height: 36px; }
#anOut .al-bench-row .pl-ph img { border-width: 2px; }
#anOut .al-bench-row .pl-nm { font-size: .58rem; margin-top: 3px; }
#anOut .al-bench-row .pl-match, #anOut .al-bench-row .pl-plan, #anOut .al-bench-row .pl-note { display: none; }
.an-clauses { padding: 10px 12px; }
.an-cl2-list { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.an-cl2 { display: flex; align-items: center; gap: 10px; padding: 6px 10px 6px 6px; border-radius: 14px; background: rgba(127,127,127,.08); border-left: 4px solid #f59e0b; }
.an-cl2.hi { border-left-color: #ef4444; } .an-cl2.lo { border-left-color: #22c55e; }
.an-cl2-ph { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%; overflow: hidden; background: rgba(127,127,127,.2); }
.an-cl2-ph img { width: 100%; height: 100%; object-fit: cover; object-position: center 12%; }
.an-cl2-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.an-cl2-tx b { font-size: .88rem; }
.an-cl2-tx small { font-size: .68rem; color: var(--muted); }
.an-cl2-x { font: 800 .85rem 'Bricolage Grotesque', sans-serif; padding: 3px 9px; border-radius: 999px; background: rgba(245,158,11,.18); color: #b45309; }
.an-cl2.hi .an-cl2-x { background: rgba(239,68,68,.16); color: #dc2626; }
.an-cl2.lo .an-cl2-x { background: rgba(34,197,94,.16); color: #15803d; }
.an-claves { gap: 0; border-radius: 16px; border: 1px solid var(--border); background: var(--card); overflow: hidden; }
.an-cl-row { align-items: flex-start; gap: 10px; padding: 10px 12px; border: 0; border-radius: 0; background: none; border-bottom: 1px solid var(--border); }
.an-cl-row:last-child { border-bottom: 0; }
.an-cl-ph { flex: 0 0 34px; width: 34px; height: 34px; }
.an-cl-n { font-size: .84rem; margin: 0 0 2px; }
.an-cl-pt { position: relative; padding-left: 12px; font-size: .74rem; line-height: 1.35; color: var(--muted); }
.an-cl-pt::before { content: ""; position: absolute; left: 0; top: .5em; width: 5px; height: 5px; border-radius: 50%; background: #22c55e; }
.an-fg { border-radius: 16px; overflow: hidden; }
.an-fg-b { padding: 0; gap: 0; }
.an-fm-card { border: 0; border-radius: 0; border-top: 1px solid var(--border); background: none; padding: 8px 12px; }
.an-fm-mini { display: flex; gap: 2px; flex: none; }
.an-fm-mini i { font-style: normal; font: 800 .62rem 'Bricolage Grotesque', sans-serif; width: 19px; height: 19px; display: grid; place-items: center; border-radius: 6px; background: rgba(127,127,127,.18); color: var(--muted); }
.an-fm-mini i.h { background: #16a34a; color: #fff; } .an-fm-mini i.m { background: rgba(34,197,94,.3); color: inherit; } .an-fm-mini i.l { background: rgba(239,68,68,.25); color: inherit; }
.an-fm-rt b { font-size: .86rem; }
.an-fm-tx small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.an-fm-card .an-fm-head::after { margin-left: 2px; }

/* === Caja de jugador (capitán + cláusulas) === */
.an-pb { display: flex; gap: 12px; align-items: stretch; padding: 8px; border-radius: 16px; background: rgba(127,127,127,.08); border: 1px solid var(--border); }
.an-pb-cl { margin-top: 6px; border-left: 4px solid #f59e0b; }
.an-pb-cap { margin-top: 8px; border-left: 4px solid #f59e0b; background: rgba(245,158,11,.08); }
.an-pb-ph { flex: 0 0 64px; width: 64px; height: 72px; border-radius: 12px; overflow: hidden; background: linear-gradient(180deg, rgba(127,127,127,.25), rgba(127,127,127,.12)); display: flex; align-items: flex-end; justify-content: center; }
.an-pb-ph img { width: 100%; height: 100%; object-fit: cover; object-position: top; transform-origin: 50% 100%; }
.an-pb-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; justify-content: center; }
.an-pb-n { font-size: .95rem; }
.an-pb-r { display: flex; justify-content: space-between; align-items: baseline; font-size: .74rem; color: var(--muted); }
.an-pb-r b { font: 800 .86rem 'Bricolage Grotesque', sans-serif; color: var(--text); }
.an-pb-diff { font-size: .72rem; font-weight: 800; color: #dc2626; }
.an-pb-match { display: flex; align-items: center; gap: 5px; font-size: .74rem; font-weight: 700; }
.an-pb-match img { width: 16px; height: 16px; object-fit: contain; }
.an-pb-last { display: flex; align-items: center; gap: 3px; font-size: .66rem; color: var(--muted); }
.an-pb-last span { margin-right: 3px; }
.an-pb-last i { font-style: normal; font: 800 .66rem 'Bricolage Grotesque', sans-serif; width: 21px; height: 20px; display: grid; place-items: center; border-radius: 6px; background: rgba(127,127,127,.18); }
.an-pb-last i.h { background: #16a34a; color: #fff; } .an-pb-last i.m { background: rgba(34,197,94,.3); } .an-pb-last i.l { background: rgba(239,68,68,.25); }
.an-pb-why { font-size: .68rem; color: var(--muted); }
.an-cl2-list { gap: 0; }

.sq3-why { font-size: .68rem; font-weight: 700; color: #16a34a; margin-top: 2px; }
.sq3 > .eq-stats { margin: 4px 0 12px; }
.eq-tk-go { white-space: nowrap; font-size: .92rem; padding-left: 14px; padding-right: 14px; }
/* Analiza: cláusulas de dos en dos */
.an-cl2-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.an-cl2-list .an-pb { flex-direction: column; gap: 6px; margin-top: 0; padding: 6px; }
.an-cl2-list .an-pb-ph { width: 100%; flex: none; height: 86px; }
.an-cl2-list .an-pb-n { font-size: .84rem; }
.an-cl2-list .an-pb-r { font-size: .68rem; }
.an-cl2-list .an-pb-diff { font-size: .66rem; }
/* Claves: foto redonda como en Destacados */
.an-cl-ph.an-ti-ph { flex: 0 0 46px; width: 46px; height: 46px; background: rgba(127,127,127,.2); border: 2px solid #22c55e; display: block; }
.an-cl-ph.an-ti-ph img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
/* Banquillo del análisis más grande */
#anOut .al-bench-row .pl-ph { width: 48px; height: 48px; }
#anOut .al-bench-row .pl-nm { font-size: .64rem; }
/* Capitán elegido */
.an-proj-cap { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; font-size: .76rem; font-weight: 700; }
.an-proj-sel { font: 800 .78rem 'Bricolage Grotesque', sans-serif; padding: 3px 8px; border-radius: 999px; border: 1px solid var(--border); background: var(--card, #fff); color: var(--text, inherit); max-width: 50%; }
.an-proj-dark .an-proj-sel { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.25); }
.an-cl2-list .an-pb-ph { height: 92px; align-items: flex-end; justify-content: center; }
.an-cl2-list .an-pb-ph img { width: auto; max-width: 100%; height: 100%; margin: 0 auto; object-fit: contain; object-position: bottom center; }
.an-pb-when { font-size: .7rem; color: var(--muted); line-height: 1.3; }
.an-pb-lastj { gap: 4px; }
.an-pb-lastj i { width: 30px !important; height: 34px !important; flex-direction: column; align-content: center; line-height: 1.1; }
.an-pb-lastj i em { font: 700 .5rem 'Figtree', sans-serif; font-style: normal; opacity: .75; display: block; }
.an-pb-lastj i { display: flex !important; align-items: center; justify-content: center; }
/* Situación en LaLiga (página de club) */
.eq-tb-top { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; border: 1px solid var(--border); background: var(--card-solid, rgba(127,127,127,.06)); }
.eq-tb-pos { flex: none; width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; align-content: center; background: rgba(127,127,127,.14); }
.eq-tb-pos b { font: 800 1.5rem 'Bricolage Grotesque', sans-serif; line-height: 1; }
.eq-tb-pos small { font-size: .6rem; color: var(--muted); }
.eq-tb-pos.up { background: rgba(34,197,94,.18); color: #15803d; }
.eq-tb-pos.dn { background: rgba(239,68,68,.16); color: #dc2626; }
.eq-tb-st { flex: 1; display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; text-align: center; }
.eq-tb-st b { display: block; font: 800 .95rem 'Bricolage Grotesque', sans-serif; }
.eq-tb-st small { font-size: .56rem; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.eq-tb { margin-top: 8px; border-radius: 16px; border: 1px solid var(--border); overflow: hidden; }
.eq-tb-row { display: flex; align-items: center; gap: 8px; padding: 7px 12px; font-size: .8rem; border-top: 1px solid var(--border); }
.eq-tb-row:first-child { border-top: 0; }
.eq-tb-row.me { background: rgba(34,197,94,.12); font-weight: 800; }
.eq-tb-row img, .eq-tb-row i { width: 20px; height: 20px; object-fit: contain; flex: none; }
.eq-tb-p { width: 18px; text-align: center; color: var(--muted); font-weight: 700; }
.eq-tb-n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eq-tb-d { color: var(--muted); font-size: .72rem; }
.eq-tb-pt { width: 28px; text-align: right; font-family: 'Bricolage Grotesque', sans-serif; }
.eq-tb-head { font-size: .62rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 800; padding-top: 5px; padding-bottom: 5px; }
.eq-tb-lg { width: 20px; flex: none; }
.eq-tb-j { width: 22px; text-align: center; color: var(--muted); font-size: .74rem; }
.eq-tb-d { width: 30px; text-align: center; }
.eq-tb-all { margin-top: 8px; }
.eq-tb-all > summary { cursor: pointer; font-weight: 800; font-size: .8rem; color: var(--accent, #16a34a); padding: 6px 2px; list-style: none; }
.eq-tb-all > summary::-webkit-details-marker { display: none; }
.eq-tb-all .eq-tb { margin-top: 4px; }
.eq-tb-src { font-size: .62rem; color: var(--muted); margin-top: 6px; text-align: right; }
/* Capitán: chips de local/visitante y fecha */
.an-pb-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0; }
.an-pb-chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; background: rgba(127,127,127,.14); font-size: .72rem; font-weight: 700; white-space: nowrap; }
.an-pb-chip.home { background: rgba(34,197,94,.18); color: #15803d; }
.an-pb-chip.away { background: rgba(99,102,241,.16); color: #4f46e5; }
.an-pb-chip svg.ffx-ha { width: 14px; height: 14px; margin: 0; }
/* Cláusulas: igual que Clausulazo jugoso (diferencia en rojo + cuándo se libera) */
.an-pb-diff { display: inline-block; align-self: flex-start; padding: 3px 10px; border-radius: 999px; background: rgba(220,38,38,.12); color: #dc2626; font-size: .7rem; font-weight: 800; }
.an-pb-lock { font-size: .68rem; font-weight: 700; line-height: 1.3; }
.an-pb-lock:empty { display: none; }
.an-pb-lock.blk { margin-top: 2px; padding: 6px 8px; border-radius: 10px; background: rgba(245,158,11,.14); border: 1px dashed rgba(245,158,11,.55); color: var(--amber, #b45309); text-align: center; }
.an-pb-lock.open { margin-top: 2px; padding: 6px 8px; border-radius: 10px; background: rgba(34,197,94,.12); color: #15803d; text-align: center; }
/* Claves de tu once: tarjetas */
.an-claves2 { display: flex; flex-direction: column; gap: 10px; border: 0 !important; background: none !important; box-shadow: none !important; padding: 0 !important; }
.an-cl-card { border-radius: 18px; border: 1px solid var(--border); background: var(--card-solid, rgba(127,127,127,.06)); padding: 12px; }
.an-cl-hd { display: flex; align-items: center; gap: 12px; }
.an-cl-htx { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.an-cl-htx .an-cl-n { font: 800 1.05rem 'Bricolage Grotesque', sans-serif; }
.an-cl-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.an-cl-chip { padding: 3px 9px; border-radius: 999px; background: rgba(127,127,127,.14); font-size: .7rem; font-weight: 800; }
.an-cl-chip.pos { background: rgba(99,102,241,.14); color: #4f46e5; }
.an-cl-chip.ok { background: rgba(34,197,94,.18); color: #15803d; }
.an-cl-chip.mid { background: rgba(245,158,11,.2); color: #b45309; }
.an-cl-chip.low { background: rgba(239,68,68,.16); color: #dc2626; }
.an-cl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.an-cl-it { padding: 9px 10px; border-radius: 14px; background: rgba(127,127,127,.09); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.an-cl-it.wide { grid-column: 1 / -1; }
.an-cl-it.easy { background: rgba(34,197,94,.14); box-shadow: inset 0 0 0 1px rgba(34,197,94,.45); }
.an-cl-it small { font-size: .58rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.an-cl-it b { font: 800 .98rem 'Bricolage Grotesque', sans-serif; }
.an-cl-it span { font-size: .72rem; color: var(--muted); line-height: 1.3; }
/* Forma de tus jugadores: rival y local/visitante más grandes */
.an-fm-row { gap: 6px; }
.an-fm-chip { padding: 6px 2px 7px; border-radius: 12px; min-width: 0; overflow: hidden; }
.an-fm-j { font-size: .68rem; }
.an-fm-op { height: 30px; margin: 4px 0 2px; gap: 4px; }
.an-fm-op img { width: 26px; height: 26px; }
.an-fm-op svg.ffx-ha { width: 17px; height: 17px; }
.an-fm-rv { font-size: .58rem; font-weight: 700; color: var(--muted); line-height: 1.1; margin-bottom: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 2px; }
.an-fm-v { font-size: 1.05rem; }
.an-fm-mini { gap: 3px; }
.an-fm-mini i { width: 24px; height: 31px; flex-direction: column; line-height: 1.05; font-size: .72rem; display: flex; align-items: center; justify-content: center; }
.an-fm-mini i em { font: 700 .48rem 'Figtree', sans-serif; font-style: normal; opacity: .75; }
/* Capitán: bloques separados (equipo / próximo partido / sus puntos) */
.an-pb-capv { flex-wrap: wrap; row-gap: 10px; }
.an-pb-capv .an-pb-tx { justify-content: center; }
.an-pb-capv .an-pb-n { font: 800 1.15rem 'Bricolage Grotesque', sans-serif; }
.an-pb-own { display: flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 700; color: var(--muted); }
.an-pb-own img { width: 20px; height: 20px; object-fit: contain; }
.an-pb-sec { flex: 0 0 100%; box-sizing: border-box; padding: 9px 10px; border-radius: 12px; background: rgba(127,127,127,.09); display: flex; flex-direction: column; gap: 6px; }
.an-pb-k { font-size: .58rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.an-pb-capv .an-pb-match { font-size: .88rem; }
.an-pb-capv .an-pb-match img { width: 22px; height: 22px; }
.an-pb-capv .an-cap-warn { flex: 0 0 100%; }
/* Cláusulas: columnas iguales y todo centrado */
.an-cl2-list .an-pb { align-items: stretch; }
.an-cl2-list .an-pb-tx { flex: 1; width: 100%; justify-content: flex-start; }
.an-cl2-list .an-pb-diff { align-self: center; margin-top: 4px; text-align: center; }
.an-cl2-list .an-pb-lock { margin-top: auto; padding: 7px 8px; border-radius: 10px; text-align: center; min-height: 2.6em; display: flex; align-items: center; justify-content: center; box-sizing: border-box; width: 100%; }
.an-cl2-list .an-pb-lock:empty { display: flex; visibility: hidden; }
.an-cl2-list .an-pb-lock.nd { background: rgba(127,127,127,.12); color: var(--muted); }
.an-cl2-list .an-pb-tx > .an-pb-diff + .an-pb-lock { margin-top: 8px; }
a.newscard { display: block; text-decoration: none; color: inherit; }
.news-share { margin: 0 0 10px 8px; }
.news-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.news-bar .bk, .news-bar .news-share { margin: 0; }
.an-cl-it.hard { background: rgba(239,68,68,.09); box-shadow: inset 0 0 0 1px rgba(239,68,68,.32); }

.an-cl-it.mid { background: rgba(249,115,22,.10); box-shadow: inset 0 0 0 1px rgba(249,115,22,.38); }

/* Temporada del jugador: tabla más clara */
.an-ss{padding:14px 12px}
.an-ss .an-ss-r{grid-template-columns:34px minmax(0,1fr) 40px 44px 30px 38px 34px;gap:4px;padding:11px 4px;font-size:.9rem;border-top:1px solid rgba(127,127,127,.16)}
.an-ss .an-ss-r.hd{font-size:.62rem;padding:4px 4px 8px;border-top:0}
.an-ss .an-ss-r > span:first-child{font-weight:800;opacity:.7}
.an-ss .an-ss-r .rv{font-weight:700;font-size:.95rem}
.an-ss .an-ss-r .pt{display:flex;justify-content:center}
.an-ss .an-ss-r .pt b{min-width:34px;padding:4px 0;border-radius:9px;text-align:center;font-size:1rem;font-weight:800;color:#14532d;background:rgba(34,197,94,.22)}
.an-ss .an-ss-r .pt b.h{background:#22c55e;color:#fff}
.an-ss .an-ss-r .pt b.l{background:rgba(239,68,68,.2);color:#991b1b}
.an-ss .an-ss-r > span:nth-child(n+5){opacity:.7;font-size:.82rem}
.an-ss .an-ss-r.avg{margin-top:6px;border-top:2px solid rgba(127,127,127,.3);background:rgba(34,197,94,.08);border-radius:10px}
.an-ss .an-ss-r.avg .pt{color:inherit}
.an-ss .an-ss-r.avg > span:nth-child(n+5){opacity:.85}
.an-ss .an-ss-r{grid-template-columns:34px minmax(0,1fr) 40px 44px 30px 46px 38px}
.an-ss .an-ss-r.hd > span{font-size:.6rem;opacity:.6;font-weight:800;letter-spacing:0;text-transform:uppercase;white-space:nowrap;overflow:hidden}
/* Temporada: todo centrado y en una sola línea */
.an-ss .an-ss-r{grid-template-columns:38px minmax(0,1.5fr) 44px 46px 34px 44px 38px;gap:2px;text-align:center;padding:12px 2px}
.an-ss .an-ss-r > span,.an-ss .an-ss-r.hd > span{text-align:center}
.an-ss .an-ss-r .rv{display:flex;align-items:center;justify-content:center;gap:6px;white-space:nowrap;overflow:hidden;font-size:.88rem}
.an-ss .an-ss-r .rv .nm{overflow:hidden;text-overflow:ellipsis}
.an-ss .an-ss-r .rv .ic{flex:none;display:inline-flex}
.an-ss .an-ss-r.hd .rv{justify-content:center}

/* Analiza: tres pestañas */
.an-tabs{display:flex;gap:6px;padding:5px;margin:4px 0 14px;border-radius:16px;background:rgba(127,127,127,.14)}
.an-tab{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-height:52px;padding:6px 4px;border:0;border-radius:12px;background:transparent;color:inherit;font:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:background .2s,box-shadow .2s}
.an-tab[hidden]{display:none}
.an-tab-ic{font-size:1.05rem;line-height:1}
.an-tab-t{font-size:.72rem;font-weight:800;line-height:1.1;text-align:center;opacity:.7}
.an-tab.on{background:var(--card-solid,var(--card,#fff));box-shadow:0 2px 8px rgba(0,0,0,.14)}
.an-tab.on .an-tab-t{opacity:1}
.an-tabsec{display:block}
.an-tabsec[hidden]{display:none}
.an-tabsec-a{display:flex;flex-direction:column}
.an-tabsec-a[hidden]{display:none}
.an-tab-ic{display:inline-flex;opacity:.75}.an-tab.on .an-tab-ic{opacity:1;color:var(--primary,#16a34a)}
#anOut{margin-bottom:6px}

/* Cabecera del club con la foto de su estadio */
.eq-hero.has-stadium{position:relative;overflow:hidden;isolation:isolate;background:#0b1a12;color:#fff;box-shadow:none}
.eq-hero.has-stadium::before{content:"";position:absolute;inset:0;z-index:-2;background:var(--eq-stadium) center/cover no-repeat;transform:scale(1.04)}
.eq-hero.has-stadium::after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,rgba(0,0,0,.28) 0%,rgba(0,0,0,.5) 55%,rgba(0,0,0,.72) 100%)}
.eq-hero.has-stadium .eq-h1{color:#fff;text-shadow:0 2px 14px rgba(0,0,0,.55)}
.eq-hero.has-stadium .eq-crest{filter:drop-shadow(0 4px 12px rgba(0,0,0,.55))}
.eq-hero.has-stadium .eq-hsub,.eq-hero.has-stadium .eq-hero-bg{color:#fff}
.eq-stadium-credit{position:absolute;right:10px;bottom:6px;font-size:.58rem;color:rgba(255,255,255,.7);text-decoration:none;z-index:1}
/* Con foto de estadio: la tarjeta negra pasa a cristal oscuro (se ve el estadio a través) y la foto tiene más sitio */
.eq-hero.has-stadium{padding-top:26px;padding-bottom:12px}
.eq-hero.has-stadium .eq-h1{align-self:flex-start;margin-top:6px}
.eq-hero.has-stadium .eq-crest{align-self:flex-start}
.eq-hero.has-stadium::after{background:linear-gradient(180deg,rgba(0,0,0,.08) 0%,rgba(0,0,0,.12) 45%,rgba(0,0,0,.4) 100%)}
.eq-hero.has-stadium .eq-ticket{margin-top:74px;background:rgba(8,16,12,.46);-webkit-backdrop-filter:blur(7px) saturate(1.2);backdrop-filter:blur(7px) saturate(1.2);box-shadow:inset 0 0 0 1px rgba(255,255,255,.16)}
.eq-hero.has-stadium .eq-ticket.live{background:rgba(58,18,18,.55)}
.eq-hero.has-stadium .eq-tk-k,.eq-hero.has-stadium .eq-tk-ha{color:#fff;text-shadow:0 1px 6px rgba(0,0,0,.5)}
.eq-stadium-credit{bottom:4px}

/* v3 — Cabecera de club: banner con el estadio (se difumina hacia abajo) y, aparte, la tarjeta del partido en cristal */
.eq-hero.has-stadium{background:transparent;box-shadow:none;border:0;overflow:visible;isolation:auto;padding:0;gap:0;color:inherit;align-items:flex-start}
.eq-hero.has-stadium::before{content:"";position:absolute;left:0;right:0;top:0;height:230px;z-index:0;border-radius:18px 18px 0 0;transform:none;
  background:var(--eq-stadium) center 55%/cover no-repeat;
  -webkit-mask-image:linear-gradient(#000 0%,#000 55%,transparent 100%);mask-image:linear-gradient(#000 0%,#000 55%,transparent 100%)}
.eq-hero.has-stadium::after{content:"";position:absolute;left:0;right:0;top:0;height:230px;z-index:0;border-radius:18px 18px 0 0;
  background:linear-gradient(180deg,rgba(0,0,0,.42) 0%,rgba(0,0,0,.05) 45%,transparent 100%);
  -webkit-mask-image:linear-gradient(#000 0%,#000 55%,transparent 100%);mask-image:linear-gradient(#000 0%,#000 55%,transparent 100%)}
.eq-hero.has-stadium .eq-crest{position:relative;z-index:1;margin:18px 0 0 16px;align-self:flex-start}
.eq-hero.has-stadium .eq-h1{position:relative;z-index:1;margin:26px 12px 0 14px;color:#fff;text-shadow:0 2px 14px rgba(0,0,0,.6)}
.eq-hero.has-stadium .eq-ticket{position:relative;z-index:1;overflow:hidden;flex:1 0 calc(100% - 16px);margin:96px 8px 0;border-radius:14px;background:rgba(8,16,12,.62);box-shadow:0 10px 28px rgba(0,0,0,.28),inset 0 0 0 1px rgba(255,255,255,.14);-webkit-backdrop-filter:none;backdrop-filter:none}
.eq-hero.has-stadium .eq-ticket::before{content:"";position:absolute;inset:-20px;z-index:-1;background:var(--eq-stadium) center/cover;filter:blur(16px) brightness(.55) saturate(1.15)}
.eq-hero.has-stadium .eq-ticket.live{background:rgba(58,18,18,.6)}
.eq-hero.has-stadium .eq-ticket > *{position:relative}
.eq-stadium-credit{position:absolute;right:12px;top:8px;bottom:auto;z-index:2;font-size:.58rem;color:rgba(255,255,255,.75);text-shadow:0 1px 4px rgba(0,0,0,.7)}
.eq-hero.has-stadium::before,.eq-hero.has-stadium::after{height:250px}
.eq-hero.has-stadium::before{background-position:center 70%}
.eq-hero.has-stadium .eq-ticket{margin-top:168px}

/* Últimas actualizaciones */
#tab-actualizaciones .up-day, #tab-actualizaciones .up-filters { max-width: 780px; margin-inline: auto; }
.up-filters { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 14px; scrollbar-width: none; }
.up-filters::-webkit-scrollbar { display: none; }
.up-chip { flex: none; border: 1px solid var(--border); background: transparent; color: var(--muted); font: 700 .8rem 'Inter', sans-serif; padding: 8px 14px; border-radius: 999px; cursor: pointer; }
.up-chip.on { background: var(--text); color: var(--bg, #fff); border-color: var(--text); }
.up-date { margin: 22px 0 6px; font: 800 1.5rem/1.1 'Bricolage Grotesque', sans-serif; letter-spacing: -.02em; text-transform: capitalize; }
.up-list { display: flex; flex-direction: column; }
.up-row { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.up-row:last-child { border-bottom: 0; }
.up-left { position: relative; width: 48px; height: 48px; }
.up-photo { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; object-position: top; background: rgba(127,127,127,.15); display: block; }
.up-ico { position: absolute; right: -6px; bottom: -4px; width: 22px; height: 22px; border-radius: 50%; background: var(--uc); color: #fff; display: grid; place-items: center; border: 2px solid var(--panel-bg, var(--bg, #fff)); }
.up-ico svg { width: 12px; height: 12px; }
.up-left:not(:has(.up-photo)) { background: color-mix(in srgb, var(--uc) 16%, transparent); border-radius: 50%; }
.up-body { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.up-meta { display: flex; gap: 10px; align-items: center; font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.up-cat { color: var(--uc); }
.up-time { color: var(--muted); font-weight: 600; }
.up-title { font: 700 1rem/1.25 'Bricolage Grotesque', sans-serif; }
.up-chg { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.up-pl { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; font-size: .82rem; padding: 6px 10px; border-radius: 10px; background: rgba(127,127,127,.09); }
.up-pl img { width: 24px; height: 26px; object-fit: cover; object-position: top; border-radius: 6px; }
.up-tr { color: var(--muted); font-weight: 600; white-space: pre-wrap; }

/* Botón del partido: más protagonista, con subtítulo */
.mpage-livebtn-wrap { margin: 16px 0 12px; padding-inline: 12px; }
.mpage-livebtn { width: 100%; max-width: 460px; justify-content: flex-start; gap: 14px; padding: 16px 22px; border-radius: 22px; }
.mpage-livebtn .mlb-tx { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; text-align: left; }
.mpage-livebtn .mlb-t { font-size: 1.12rem; line-height: 1.15; }
.mpage-livebtn .mlb-sub { font-size: .76rem; font-weight: 600; opacity: .88; letter-spacing: 0; }
.mpage-livebtn .mlb-go { font-size: 1.7rem; margin-left: auto; }

/* Botón de datos del partido: estilo de la web (verde), sin aspecto de "directo" */
.mpage-livebtn { background: linear-gradient(135deg, #16a34a, #0f7a37); box-shadow: 0 6px 18px rgba(22,163,74,.30), inset 0 1px 0 rgba(255,255,255,.22); }
@media (hover: hover) and (pointer: fine) { .mpage-livebtn:hover { box-shadow: 0 8px 22px rgba(22,163,74,.45), inset 0 1px 0 rgba(255,255,255,.22); } }
.mpage-livebtn .mlb-ico { width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,.18); display: grid; place-items: center; flex: none; }
.mpage-livebtn .mlb-ico svg { width: 22px; height: 22px; }
.mpage-livebtn .mlb-live { font-size: .66rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; background: #ef4444; padding: 4px 8px; border-radius: 999px; }
/* Últimas actualizaciones: texto de los cambios legible en modo oscuro */
.up-pl strong { color: var(--text); }
.up-tr { color: var(--text); opacity: .78; font-variant-numeric: tabular-nums; }

/* Destacados en modo oscuro: fondo, nombres y textos legibles */
:root:not([data-theme="light"]) .dest-panel, :root:not([data-theme="light"]) #rachasOut { background: #131a22; border-radius: 18px; }
:root:not([data-theme="light"]) .dest-panel .dest-grid { background: transparent; }
:root:not([data-theme="light"]) .dest-panel .dest-head { background: transparent; }
:root:not([data-theme="light"]) .dest-panel .dest-name { color: #f1f5f9; }
:root:not([data-theme="light"]) .dest-panel .dt-row { background: rgba(255,255,255,.06); color: #c3cec8; }
:root:not([data-theme="light"]) .dest-panel .dt-row.up { background: rgba(34,197,94,.16); }
:root:not([data-theme="light"]) .dest-panel .dt-row.down { background: rgba(239,68,68,.16); }
:root:not([data-theme="light"]) .dest-panel .dest-why { color: #a3b3aa; }
:root[data-theme="dark"] .dest-panel, :root[data-theme="dark"] #rachasOut { background: #131a22; border-radius: 18px; }
:root[data-theme="dark"] .dest-panel .dest-grid, :root[data-theme="dark"] .dest-panel .dest-head { background: transparent; }
:root[data-theme="dark"] .dest-panel .dest-name { color: #f1f5f9; }
:root[data-theme="dark"] .dest-panel .dest-title { color: #f1f5f9; }
:root[data-theme="dark"] .dest-panel .dt-row { background: rgba(255,255,255,.06); color: #c3cec8; }
:root[data-theme="dark"] .dest-panel .dest-why { color: #a3b3aa; }

/* Pestaña "Once confirmado" en los datos del partido */
.lv-tabs { flex-wrap: wrap; }
.lv-tab-xi { flex: 1 1 100% !important; justify-content: center; padding: 10px 8px !important; font-size: .8rem !important; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: #16a34a; background: linear-gradient(135deg, rgba(34,197,94,.16), rgba(34,197,94,.05)); border: 1px solid rgba(34,197,94,.45); font-weight: 800; white-space: nowrap; }
.lv-tab-xi svg { flex: none; }
:root[data-theme="dark"] .lv-tab-xi, .dark .lv-tab-xi { color: #4ade80; }

/* Jugadores de la noticia */
.news-players { margin: 22px 0 8px; padding-top: 16px; border-top: 1px solid rgba(127,127,127,.25); }
.news-players-h { margin: 0 0 12px; font-size: 1rem; font-weight: 800; }
.news-players-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.np-card { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; border: 1px solid rgba(127,127,127,.28); background: var(--card, rgba(127,127,127,.08)); color: inherit; font: inherit; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: transform .15s ease, border-color .2s ease; }
.np-card:active { transform: scale(.98); }
.np-ph { flex: none; width: 48px; height: 48px; border-radius: 50%; overflow: hidden; background: rgba(127,127,127,.18); border: 2px solid rgba(34,197,94,.55); }
.np-img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.np-tx { display: flex; flex-direction: column; min-width: 0; gap: 2px; flex: 1; }
.np-tx b { font-size: .92rem; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-tx small { font-size: .72rem; opacity: .7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-go { font-size: 1.4rem; opacity: .55; }

/* Modo oscuro: sin la raya clara que asomaba por las esquinas de la cabecera de filtros */
.plt-panel { border-color: transparent !important; box-shadow: none !important; }
.plt-panel::before, .plt-panel::after { display: none !important; }
.plt-head { margin-top: -1px; outline: 1px solid #1d2b33; }

/* Estadísticas de interés en una sola tarjeta compacta */
.dash-one { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 12px 4px; margin: 8px 0 4px; }
.dash-one .do-c { display: flex; flex-direction: column; gap: 4px; padding: 0 12px; min-width: 0; }
.dash-one .do-c + .do-c { border-left: 1px solid var(--border); }
.do-l { font-size: .66rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.do-v { display: flex; flex-direction: column; line-height: 1.1; }
.do-v b { font-family: 'Bricolage Grotesque', sans-serif; font-size: 1.3rem; font-weight: 800; color: var(--text); white-space: nowrap; }
.do-v small { font-size: .62rem; color: var(--muted); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-one .dash-pb { height: 4px; margin-top: 2px; }
.dash-pf.green { background: #16a34a; } .dash-pf.purple { background: #7c3aed; }
/* Disponibilidad & disciplina más pequeña */
.dash-avail { padding: 8px 6px !important; gap: 4px !important; border-radius: 14px; }
.dash-avail .dash-a { padding: 0 4px; text-align: center; }
.dash-avail .dash-al { font-size: .62rem; }
.dash-avail .dash-av { font-size: 1.05rem; line-height: 1.1; }
.dash-avail .dash-as { font-size: .58rem; }

/* Filtro "Titular ≥90%" */
.plt-prob { flex: none; margin-left: 8px; padding: 2px 8px; border-radius: 999px; font-size: .68rem; font-weight: 800; background: rgba(127,127,127,.16); color: inherit; white-space: nowrap; }
.plt-nm { display: flex; align-items: center; min-width: 0; }
/* % de jugar: pastilla sobre la esquina inferior izquierda de la foto */
.plt-phw .plt-prob { position: absolute; left: -10px; bottom: -4px; margin: 0; padding: 1px 7px; border-radius: 999px; background: #4ea869; color: #fff; border: 2px solid #fff; font-size: .66rem; font-weight: 800; line-height: 1.35; box-shadow: 0 2px 6px rgba(0,0,0,.3); z-index: 2; }
/* Fila de orden: pestañas iguales, todo en una línea */
#pltSort { flex-wrap: nowrap; align-items: stretch; }
#pltSort .plt-btn { white-space: nowrap; font-size: .74rem; padding: 12px 2px; }
/* Pastilla del % más pequeña, que no tape la cara */
.plt-phw .plt-prob { left: -8px; bottom: -3px; padding: 0 5px; font-size: .54rem; line-height: 1.3; border-width: 1.5px; }

/* Inicio de sesión dentro de Analiza tu equipo */
.an-login { display: flex; flex-direction: column; gap: 8px; max-width: 320px; margin: 12px auto 0; }
.an-login input { height: 44px; border-radius: 12px; border: 1px solid rgba(127,127,127,.35); background: transparent; color: inherit; padding: 0 14px; font: inherit; }
.an-login-b { height: 46px; border-radius: 12px; font-weight: 800; }
.an-login-e { min-height: 0; margin: 0; font-size: .8rem; color: #ef4444; }
.an-login-ok { margin: 6px 0 0; padding: 12px 14px; border-radius: 12px; background: rgba(34,197,94,.16); border: 1px solid rgba(34,197,94,.5); color: #16a34a; font-weight: 800; text-align: center; }

/* === Puntos por jornada: lista limpia, sin cajitas === */
.ficha-matches .fm-row, .playerpage .fm-row { grid-template-columns: 30px minmax(0, 1fr) auto !important; gap: 10px !important; padding: 11px 2px !important; margin: 0; border-radius: 0; background: none; border: 0; border-bottom: 1px solid rgba(127,140,148,.22); }
.fm-row:last-child { border-bottom: 0; }
.fm-j { background: none; height: auto; width: auto; font-size: .78rem; font-weight: 700; color: var(--muted); justify-content: flex-start; }
.fm-body { gap: 3px; }
.fm-rival { display: flex; align-items: center; gap: 8px; font-size: .98rem; }
.fm-rcrest { width: 22px; height: 22px; object-fit: contain; flex: none; }
.fm-rname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.fm-venue { height: auto; padding: 0; background: none !important; color: var(--muted) !important; font-size: .76rem; font-weight: 600; text-transform: none; letter-spacing: 0; flex: none; }
.fm-venue svg { display: none; }
.fm-venue::before { content: "·"; margin-right: 6px; }
.fm-chips { gap: 4px 10px; padding-left: 30px; }
.fm-chips .fm-min, .fm-chips .fm-ev { height: auto; padding: 0; margin: 0; background: none !important; border-radius: 0; font-size: .78rem; font-weight: 600; color: var(--muted); display: inline; }
.fm-chips .fm-min.fm-in { color: #16a34a; }
.fm-chips .fm-min.fm-out { color: var(--muted); }
.fm-chips .fm-ev.ev-g, .fm-chips .fm-ev.ev-a { color: #16a34a; }
.fm-chips .fm-ev.ev-bad { color: #dc2626; }
.fm-chips .fm-ev.ev-cs { color: #2563eb; }
:root:not([data-theme="light"]) .fm-chips .fm-ev.ev-cs { color: #60a5fa; }
.fm-ev.ev-rt small { font-size: inherit; font-weight: 600; margin-right: 4px; }
.fm-ev.ev-rt b { background: none; color: var(--text, inherit); padding: 0; font-size: .82rem; font-weight: 800; }
.fm-pts { min-width: 42px; text-align: center; font-weight: 800; border-radius: 50%; width: 42px; height: 42px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }

/* Jugadores rentables: ranking con barra de calidad-precio */
.rtb { padding: 4px 2px 24px; }
.rtb-title { font-family: var(--font-display, inherit); font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; margin: 6px 4px 2px; }
.rtb-sub { color: var(--muted); font-size: .8rem; font-weight: 600; margin: 0 4px 12px; }
.rtb-tabs { display: flex; gap: 14px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--border); padding: 0 4px; }
.rtb-tabs::-webkit-scrollbar { display: none; }
.rtb-tab { flex: 0 0 auto; background: none; border: 0; border-bottom: 3px solid transparent; margin-bottom: -1px; padding: 10px 0 9px; color: var(--muted); font: inherit; font-size: .86rem; font-weight: 700; cursor: pointer; }
.rtb-tab.on { color: var(--text); border-bottom-color: #16a34a; }
.rtb-segs { display: block; margin: 14px 4px 6px; }
.rtb-ptop { display: flex; justify-content: space-between; align-items: baseline; }
.rtb-pk { font-size: .76rem; font-weight: 700; color: var(--muted); }
.rtb-ticks { display: flex; justify-content: space-between; padding: 0 6px; font-size: .68rem; font-weight: 700; color: var(--muted); }
.rtb-plab { font-size: 1.05rem; font-weight: 800; }
.rtb-range { display: block; width: 100%; accent-color: #16a34a; height: 32px; margin: 0; }
.rtb-l3 { display: flex; gap: 6px; margin-top: 2px; }
.rtb-st { display: inline-flex; align-items: baseline; gap: 4px; padding: 3px 8px; border-radius: 7px; background: rgba(127,127,127,.13); }
.rtb-st b { font-size: .86rem; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; }
.rtb-st small { font-size: .64rem; font-weight: 700; color: var(--muted); }
.rtb-segs::-webkit-scrollbar { display: none; }
.rtb-seg { flex: 0 0 auto; height: 32px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--border); background: transparent; color: var(--muted); font: inherit; font-size: .8rem; font-weight: 700; cursor: pointer; }
.rtb-seg.on { background: var(--text); border-color: var(--text); color: var(--bg, #fff); }
.rtb-row { display: grid; grid-template-columns: 30px 48px minmax(0, 1fr) auto; align-items: center; gap: 10px; width: 100%; padding: 12px 4px; border: 0; border-bottom: 1px solid var(--border); background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.rtb-n { font-family: var(--font-display, inherit); font-size: 1.15rem; font-weight: 800; color: var(--muted); text-align: center; font-variant-numeric: tabular-nums; }
.rtb-row.top .rtb-n { font-size: 1.55rem; color: #16a34a; }
.rtb-ph { width: 48px; height: 48px; border-radius: 50%; box-sizing: border-box; padding: 3px; background: var(--border); }
.rtb-in { display: block; width: 100%; height: 100%; border-radius: 50%; overflow: hidden; background: #eef1f2; }
.rtb-in img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.rtb-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.rtb-l1 { display: flex; align-items: center; gap: 6px; min-width: 0; }
.rtb-name { font-weight: 800; font-size: .95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rtb-crest { width: 15px; height: 15px; object-fit: contain; flex: 0 0 auto; }
.rtb-l2 { display: flex; gap: 8px; font-size: .74rem; font-weight: 600; color: var(--muted); white-space: nowrap; overflow: hidden; }
.rtb-up { color: #16a34a; }
.rtb-dn { color: #dc2626; }
.rtb-bar { display: block; height: 5px; border-radius: 3px; background: var(--border); margin-top: 3px; overflow: hidden; }
.rtb-bar i { display: block; height: 100%; background: #16a34a; border-radius: 3px; }
.rtb-r { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.05; min-width: 44px; }
.rtb-r b { font-family: var(--font-display, inherit); font-size: 1.25rem; font-weight: 800; color: #16a34a; font-variant-numeric: tabular-nums; }
.rtb-r small { font-size: .62rem; font-weight: 700; color: var(--muted); }
.rtb-empty { color: var(--muted); padding: 24px 4px; }
.rtb-more { display: block; width: calc(100% - 8px); margin: 16px 4px 0; height: 44px; border-radius: 10px; border: 1px solid var(--border); background: none; color: var(--text); font: inherit; font-weight: 800; font-size: .9rem; cursor: pointer; }
@media (hover: hover) and (pointer: fine) { .rtb-row:hover .rtb-name { color: #16a34a; } }
.rtb-row:focus-visible, .rtb-tab:focus-visible, .rtb-seg:focus-visible, .rtb-more:focus-visible { outline: 2px solid #16a34a; outline-offset: 2px; }
.dest-more-wrap { padding: 2px 10px 16px; background: #fff; border-radius: 0 0 16px 16px; }
.dest-more { display: block; width: 100%; height: 44px; border-radius: 12px; border: 1px solid #e3e8ea; background: #fff; color: #14181a; font: inherit; font-weight: 800; font-size: .9rem; cursor: pointer; }

/* Histórico de minutos: botones de Mercado, línea de detalle por jugador y nota en la ficha */
.mkt-minhint { margin: 2px 2px 8px; line-height: 1.35; }
.mkt-mins { display: block; margin-top: 2px; font-size: 0.68rem; font-weight: 700; color: var(--accent); white-space: normal; line-height: 1.25; }
.dash-note { margin-top: 8px; font-size: 0.74rem; font-weight: 700; color: var(--muted); line-height: 1.35; }

/* Rentables: acabado sobrio (sin pastillas ni verde por todas partes) */
.rtb-title { font-size: 1.5rem; letter-spacing: -.03em; }
.rtb-row { grid-template-columns: 24px 48px minmax(0, 1fr) auto; gap: 12px; padding: 16px 4px; }
.rtb-n { font-size: .9rem; font-weight: 700; color: var(--muted); }
.rtb-row.top .rtb-n { font-size: .9rem; color: var(--text); }
.rtb-name { font-size: 1rem; letter-spacing: -.01em; }
.rtb-l2 { font-size: .78rem; }
.rtb-up { color: #15803d; }
.rtb-dn { color: #b91c1c; }
.rtb-l3 { gap: 0; margin: 6px 0 2px; }
.rtb-st { flex-direction: column; align-items: flex-start; gap: 1px; padding: 0 14px; background: none; border-radius: 0; border-left: 1px solid var(--border); }
.rtb-st:first-child { padding-left: 0; border-left: 0; }
.rtb-st b { font-size: 1rem; line-height: 1.1; }
.rtb-st small { font-size: .6rem; letter-spacing: .06em; text-transform: uppercase; }
.rtb-bar { height: 3px; margin-top: 8px; background: transparent; }
.rtb-bar i { background: var(--text); opacity: .75; border-radius: 0; }
.rtb-row.top .rtb-bar i { background: #16a34a; opacity: 1; }
.rtb-r b { font-size: 1.4rem; color: var(--text); letter-spacing: -.02em; }
.rtb-row.top .rtb-r b { color: #15803d; }
.rtb-r small { font-size: .6rem; letter-spacing: .06em; text-transform: uppercase; }
.rtb-tab.on { border-bottom-color: var(--text); }
.rtb-plab { font-size: .95rem; }
.rtb-range { accent-color: var(--text); }
.rtb-r { gap: 3px; } .rtb-r b { line-height: 1.1; }

/* Minutos: una sola fila que se desliza, sin saltar de línea */
.plt-mins { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.plt-mins::-webkit-scrollbar { display: none; }
.plt-mins .plt-btn { white-space: nowrap; }

.rtb-pos { flex: 0 0 auto; font-size: .66rem; font-weight: 800; letter-spacing: .05em; color: var(--muted); }
.rtb-price { font-size: 1.1rem; font-weight: 800; letter-spacing: -.02em; color: var(--text); font-variant-numeric: tabular-nums; }
.rtb-l2 { align-items: baseline; }

/* ===== Móvil (01/11/2026): texto legible y menos pared de fotos en Inicio =====
   Medido a 390 px: había textos de 6,7 px (hora del once probable), 7,4 px (pastillas
   de posición) y 8,6 px (horas del ticker). Se sube el mínimo sin tocar la estructura. */
@media (max-width: 480px) {
  .cx-ticker-when { font-size: .68rem; }
  .cx-ticker-tag { font-size: .66rem; }
  .cx-team span { font-size: .68rem; }
  .cx-prob-t, .cx-jn-statusrow { font-size: .68rem; }
  .cx-jn-nav, .cx-conf-k { font-size: .66rem; }
  .mkt-pos { font-size: .64rem; }
  .plt-pill { font-size: .64rem; }
  .dest-why, .dest-panel .dest-why, .dest-ratio, .dest-ratio span { font-size: .7rem; }
}

/* Noticias del inicio: la foto grande se queda; las dos siguientes pasan a lista
   (antes eran dos fotos más a todo el ancho y empujaban los partidos media pantalla). */
@media (max-width: 480px) {
  .feat-hero { aspect-ratio: 16 / 10; }
  .feat-sub { gap: 8px; }
  .feat-card-sm { aspect-ratio: auto; display: grid; grid-template-columns: 88px 1fr; min-height: 76px; }
  .feat-card-sm img { width: 100%; height: 100%; }
  .feat-card-sm-overlay { position: static; padding: 8px 12px; background: none; color: var(--text); display: flex; flex-direction: column; justify-content: center; }
  .feat-card-sm-title { color: var(--text); }
  .feat-card-sm-date { color: var(--muted); font-size: .7rem; }
}

/* Hoy / 7 días: cada línea en una sola fila, aunque la cifra sea larga (arreglado 01/11/2026) */
.dest-panel .dt-row { white-space: nowrap; }
.dest-panel .dt-row b { white-space: nowrap; }
@media (max-width: 480px) {
  .dest-panel .dt-row { font-size: .6rem; padding: 2px 5px; gap: 2px; }
}

/* ===== Jugadores rentables: filas más compactas (01/11/2026) ===== */
.rtb-row { grid-template-columns: 20px 40px minmax(0, 1fr) auto; gap: 9px; padding: 9px 4px; }
.rtb-n, .rtb-row.top .rtb-n { font-size: .85rem; }
.rtb-ph { width: 40px; height: 40px; padding: 2px; }
.rtb-body { gap: 1px; }
.rtb-name { font-size: .92rem; }
.rtb-price { font-size: 1rem; }
.rtb-l2 { font-size: .72rem; }
.rtb-l3 { margin: 1px 0 0; }
.rtb-st { flex-direction: row; align-items: baseline; gap: 3px; padding: 0 8px; }
.rtb-st b { font-size: .84rem; }
.rtb-st small { font-size: .64rem; letter-spacing: 0; text-transform: none; }
.rtb-bar { height: 3px; margin-top: 5px; }
.rtb-r b { font-size: 1.2rem; }
.rtb-r small { font-size: .56rem; }
.rtb-title { margin-bottom: 0; }
.rtb-sub { margin-bottom: 6px; }
.rtb-more { height: 38px; margin-top: 10px; }
/* Convocatorias y botón de alineaciones dentro de las noticias */
.cv-box { margin: 14px 0; padding: 12px; border: 1px solid var(--line, rgba(128,128,128,.25)); border-radius: 12px; }
.cv-h { font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: .78rem; margin-bottom: 8px; opacity: .8; }
.cv-grp + .cv-grp { margin-top: 10px; }
.cv-t { font-weight: 700; font-size: .85rem; margin-bottom: 5px; color: var(--accent); }
.cv-names { display: flex; flex-wrap: wrap; gap: 6px; }
.cv-names span { padding: 4px 10px; border-radius: 999px; background: rgba(128,128,128,.14); font-size: .86rem; line-height: 1.3; }
.cv-p { text-align: center; margin: 14px 0; }
.cv-btn { display: inline-block; padding: 11px 18px; border-radius: 12px; background: var(--accent); color: #fff; font-weight: 700; cursor: pointer; text-decoration: none; }

/* Inicio: foto grande a la DERECHA y "Anteriores" a la IZQUIERDA (en pantallas anchas); en móvil todo apilado (01/11/2026) */
#inicioFeatured { container-type: inline-size; }
.feat-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
.feat-grid > * { min-width: 0; }
.feat-prev { border: 1px solid var(--border); border-radius: 16px; padding: 12px 14px 4px; margin-bottom: 14px; background: var(--bg-card-solid, transparent); }
.feat-prev-title { font-size: .78rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.feat-prev-row { padding: 9px 0; border-top: 1px solid var(--border); cursor: pointer; }
.feat-prev-row:first-of-type { border-top: 0; }
.feat-prev-h { font-weight: 700; font-size: .88rem; line-height: 1.28; color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.feat-prev-m { font-size: .68rem; font-weight: 600; color: var(--muted); margin-top: 3px; }
@media (hover: hover) and (pointer: fine) { .feat-prev-row:hover .feat-prev-h { text-decoration: underline; } }
@container (max-width: 639px) { .feat-sub .feat-card-sm:nth-child(n+3) { display: none; } }
@container (min-width: 640px) {
  .feat-grid { grid-template-columns: minmax(230px, 32%) 1fr; column-gap: 14px; }
  .feat-hero { grid-column: 2; grid-row: 1; aspect-ratio: auto; height: 400px; margin-bottom: 14px; }
  .feat-hero img { position: absolute; inset: 0; }
  .feat-prev { grid-column: 1; grid-row: 1; margin-bottom: 14px; overflow: hidden; display: flex; flex-direction: column; padding-bottom: 0; }
  .feat-prev-row { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 6px 0; }
  .feat-sub { grid-column: 1 / -1; grid-row: 2; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 18px; }
  .feat-sub .feat-card-sm { aspect-ratio: 3 / 2; display: block; min-height: 0; }
  .feat-sub .feat-card-sm-overlay { position: absolute; padding: 26px 13px 10px; background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.78) 100%); color: #fff; display: block; }
  .feat-sub .feat-card-sm-title { color: #fff; }
  .feat-sub .feat-card-sm-date { color: rgba(255,255,255,0.75); }
  .feat-hero-title { font-size: 1.6rem; }
}

/* Inicio · "Últimos cambios" dentro del recuadro Anteriores (01/11/2026) */
.feat-chg { border-top: 1px solid var(--border); margin: 4px 0 0; padding: 10px 0 12px; min-height: 118px; }
.feat-chg-title { margin-bottom: 6px; }
.feat-chg-row { display: flex; align-items: center; gap: 7px; padding: 5px 0; cursor: pointer; min-width: 0; font-size: .78rem; line-height: 1.2; }
.feat-chg-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--uc, #94a3b8); }
.feat-chg-cat { flex: none; font-weight: 800; font-size: .68rem; color: var(--uc, var(--muted)); }
.feat-chg-txt { flex: 1; min-width: 0; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feat-chg-time { flex: none; font-size: .66rem; font-weight: 600; color: var(--muted); }
.feat-chg-empty { font-size: .76rem; color: var(--muted); padding: 4px 0; }
@media (hover: hover) and (pointer: fine) { .feat-chg-row:hover .feat-chg-txt { text-decoration: underline; } }
@container (min-width: 640px) { .feat-prev-row { padding: 5px 0; } .feat-chg { margin-top: 0; padding-bottom: 12px; } }

/* Anteriores más visual: miniatura de foto en cada noticia y foto del jugador en los cambios (01/11/2026) */
.feat-prev-row { display: flex; align-items: center; gap: 11px; }
.feat-prev-tx { flex: 1; min-width: 0; }
.feat-prev-img { flex: none; width: 62px; height: 62px; border-radius: 12px; object-fit: cover; background: rgba(127,127,127,.15); display: block; }
.feat-prev-h { font-size: .84rem; }
.feat-chg-ph { flex: none; width: 24px; height: 24px; border-radius: 50%; object-fit: cover; object-position: top; background: rgba(127,127,127,.18); box-shadow: 0 0 0 2px var(--uc, #94a3b8); display: block; }
.feat-chg-row { gap: 9px; }
@container (min-width: 640px) { .feat-prev-row { flex-direction: row; justify-content: flex-start; } .feat-prev-img { width: 56px; height: 56px; } }

/* === Clausulazo v279: filtros rediseñados (posición = fichas con punto de color; orden = selector compacto) === */
#tab-clausulazos .claus-filters { align-items: stretch; margin: 8px 0 4px; gap: 8px; }
#tab-clausulazos #clausPos { display: grid; grid-template-columns: 1.3fr repeat(4, 1fr); gap: 6px; padding: 0; background: none; border-radius: 0; overflow: visible; width: 100%; }
#tab-clausulazos #clausPos .claus-chip { display: flex; align-items: center; justify-content: center; gap: 6px; min-width: 0; height: 40px; margin: 0; padding: 0 4px; border-radius: 12px; border: 1px solid var(--border); background: var(--card); color: var(--text); font-size: .76rem; font-weight: 800; letter-spacing: .02em; opacity: 1; box-shadow: none; transition: background-color .16s ease, border-color .16s ease, color .16s ease, transform .12s ease; }
#tab-clausulazos #clausPos .claus-chip[data-pos]:not([data-pos=""])::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--pc); }
#tab-clausulazos #clausPos .claus-chip:active { transform: scale(.96); }
#tab-clausulazos #clausPos .claus-chip.active { background: var(--text); border-color: var(--text); color: var(--card-solid, #fff); box-shadow: none; }
#tab-clausulazos #clausPos .claus-chip[data-pos]:not([data-pos=""]).active { background: var(--pc); border-color: var(--pc); color: #fff; box-shadow: none; }
#tab-clausulazos #clausPos .claus-chip[data-pos]:not([data-pos=""]).active::before { background: #fff; }
:root:not([data-theme="light"]) #tab-clausulazos #clausPos .claus-chip[data-pos]:not([data-pos=""]).active { color: #0b1220; }
:root:not([data-theme="light"]) #tab-clausulazos #clausPos .claus-chip[data-pos]:not([data-pos=""]).active::before { background: #0b1220; }
@media (hover: hover) and (pointer: fine) { #tab-clausulazos #clausPos .claus-chip:not(.active):hover { border-color: var(--text); } }
#tab-clausulazos #clausSort { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; padding: 3px; width: 100%; box-sizing: border-box; border-radius: 12px; background: rgba(127,127,127,.14); overflow: visible; }
#tab-clausulazos #clausSort .claus-chip { height: 34px; padding: 0 8px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-size: .76rem; font-weight: 700; box-shadow: none; }
#tab-clausulazos #clausSort .claus-chip.active { background: var(--card-solid, #fff); color: var(--text); box-shadow: 0 1px 3px rgba(15,23,42,.16); }
:root:not([data-theme="light"]) #tab-clausulazos #clausSort .claus-chip.active { background: rgba(255,255,255,.14); box-shadow: none; }
:root:not([data-theme="light"]) #tab-clausulazos #clausPos .claus-chip[data-pos="portero"] { --pc: #22c55e; }
:root:not([data-theme="light"]) #tab-clausulazos #clausPos .claus-chip[data-pos="defensa"] { --pc: #f59e0b; }
:root:not([data-theme="light"]) #tab-clausulazos #clausPos .claus-chip[data-pos="centrocampista"] { --pc: #22d3ee; }
:root:not([data-theme="light"]) #tab-clausulazos #clausPos .claus-chip[data-pos="delantero"] { --pc: #fb7185; }

/* Inicio simplificado: solo la última noticia (grande, con etiqueta) + 3 anteriores en orden + últimos cambios (01/11/2026) */
.feat-badge { display: inline-block; background: #16a34a; color: #fff; font-size: .66rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; margin-bottom: 8px; text-shadow: none; }

/* ===== 01/11/2026: cabecera de pestaña igual en toda la web =====
   Mismo sitio (arriba a la izquierda), misma fuente y mismo tamaño en todas las pestañas. */
.tab-h { display: flex; align-items: baseline; gap: 10px; margin: 2px 0 14px; padding: 0 4px; }
.tab-h h2 { margin: 0; font-family: var(--font-display, inherit); font-size: 1.5rem; font-weight: 800; letter-spacing: -.025em; line-height: 1.1; color: var(--text); }
.tab-h-sub { font-size: .78rem; font-weight: 600; color: var(--muted); }
.tab-h-actions { margin-left: auto; }

/* Probabilidad de jugar: separada del resto de filtros (es un dato aparte, de FutbolFantasy) */
.mx-row-prob { border-top: 1px solid var(--border); margin-top: 4px; padding-top: 14px; }
.mx-lab-src { font-weight: 600; letter-spacing: 0; text-transform: none; opacity: .65; font-size: .62rem; margin-left: 4px; }

/* Etiqueta del tipo de noticia de alineación (probable / confirmado) */
.nk { display: inline-block; font-size: .62rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; }
.nk.ok { background: rgba(22,163,74,.15); color: #15803d; border: 1px solid rgba(22,163,74,.35); }
.nk.prob { background: rgba(14,165,233,.14); color: #0369a1; border: 1px solid rgba(14,165,233,.35); }
:root:not([data-theme="light"]) .nk.ok { color: #4ade80; }
:root:not([data-theme="light"]) .nk.prob { color: #7dd3fc; }
.nk.feat-kind { margin: 0 0 6px; align-self: flex-start; }
.nk.news-kind { margin: 6px 0 2px; }

/* "Anteriores": se marca la más reciente */
.feat-prev-top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 3px; }
.feat-prev-new { font-size: .6rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: #16a34a; }
:root:not([data-theme="light"]) .feat-prev-new { color: #4ade80; }

/* Enlaces de Últimas actualizaciones: club y partido */
.up-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.up-club { font-size: .76rem; font-weight: 700; color: var(--text); background: rgba(127,127,127,.14); padding: 5px 11px; border-radius: 999px; text-decoration: none; }
.up-club:hover { background: rgba(127,127,127,.24); }
.up-tomatch { font-size: .76rem; font-weight: 800; color: #16a34a; text-decoration: none; padding: 5px 11px; border-radius: 999px; border: 1px solid rgba(22,163,74,.4); }
:root:not([data-theme="light"]) .up-tomatch { color: #4ade80; }
.up-tolast { font-size: .74rem; font-weight: 700; color: var(--muted); text-decoration: none; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--border); }
.up-tolast:hover { color: var(--text); }

/* ===== Un solo estilo de botón de filtro en toda la web (el de Destacados) =====
   Destacados (#tab-inicio) se queda con SU estilo, que es el que gusta: aquí se
   unifican Mercado, Clausulazos, Rentables, Plantillas y Actualizaciones. */
:is(#tab-mercado, #tab-clausulazos, #tab-rentables, #tab-plantillas, #tab-actualizaciones) :is(.mx-chip, .claus-chip, .up-chip, .hl-btn) ,
:is(#tab-mercado, #tab-clausulazos, #tab-rentables, #tab-plantillas, #tab-actualizaciones) .plt-btn:not(.plt-club):not(.plt-arrow) {
  border: 0;
  background: rgba(127,127,127,.14);
  color: var(--text);
  font: 700 .84rem/1 inherit;
  padding: 9px 15px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .15s, color .15s, transform .1s;
}
:is(#tab-mercado, #tab-clausulazos, #tab-rentables, #tab-plantillas, #tab-actualizaciones) :is(.mx-chip, .claus-chip, .up-chip, .hl-btn):active,
:is(#tab-mercado, #tab-clausulazos, #tab-rentables, #tab-plantillas, #tab-actualizaciones) .plt-btn:active { transform: scale(.97); }
:is(#tab-mercado, #tab-clausulazos, #tab-rentables, #tab-plantillas, #tab-actualizaciones) :is(.mx-chip.active, .claus-chip.active, .up-chip.on, .hl-btn.active),
:is(#tab-mercado, #tab-clausulazos, #tab-rentables, #tab-plantillas, #tab-actualizaciones) .plt-btn.on {
  background: #16a34a;
  color: #fff;
  box-shadow: none;
}
/* El selector de clubes (escudos) y las flechas no son filtros de texto: se dejan como estaban. */
.plt-btn.plt-club, .plt-btn.plt-arrow { background: none; padding: 0; border-radius: 14px; }
/* La cabecera de la lista de Mercado es oscura: allí los botones van en claro.
   (Se repite el :is(#tab-…) para ganar en especificidad a la regla unificada.) */
:is(#tab-mercado, #tab-plantillas) .plt-head .plt-btn:not(.plt-club):not(.plt-arrow) { color: #e9f2ee; background: rgba(255,255,255,.14); }
:is(#tab-mercado, #tab-plantillas) .plt-head .plt-btn:not(.plt-club):not(.plt-arrow).on { background: #16a34a; color: #fff; }

/* Los filtros de Últimas actualizaciones caben en el móvil (antes el último quedaba cortado) */
.up-filters { flex-wrap: wrap; overflow-x: visible; }

/* Cinta de noticias: sin la etiqueta "Última hora", pero SIEMPRE en movimiento (Edu 01/11: se había congelado y no se veían las noticias) */
.cx-ticker-tag-hide { display: none !important; }
.cx-ticker-view { overflow: hidden; }
.cx-ticker-track { animation-play-state: running; }


/* ===== Tarjetas de la jornada más pequeñas y sin degradados (Edu, 01/11/2026) ===== */
#cxChrome .cx-jn-grid { gap: 4px; grid-auto-rows: auto; }
#cxChrome .cx-jn { padding: 3px 5px 3px; gap: 1px; border-radius: 9px; justify-content: flex-start; }
#cxChrome .cx-jn-crest { width: 28px; height: 28px; }
#cxChrome .cx-jn-score { font-size: 1.05rem; }
#cxChrome .cx-jn-time, #cxChrome .cx-jn-hora { font-size: .58rem; }
#cxChrome .cx-jn-tv { height: 10px; max-width: 40px; }
#cxChrome .cx-jn-tv-sq { height: 13px; max-width: 30px; }
#cxChrome .cx-jn-statusrow { font-size: .56rem; padding-bottom: 1px; }
#cxChrome .cx-jn .cx-jn-statusrow-prob, #cxChrome .cx-jn .cx-jn-statusrow-confirm { font-size: .52rem; padding: 2px 7px; }
#cxChrome .cx-jn-statusrow-confirm { background: #16a34a; box-shadow: none; }
#cxChrome .cx-prob-t { font-size: .52rem; }
/* Partido acabado o en juego: sin el logo de la tele (ya no hace falta) */
#cxChrome .cx-jn-isfinal .cx-jn-tvrow, #cxChrome .cx-jn-islive .cx-jn-tvrow { display: none; }

/* ===== Últimas actualizaciones: tarjetas limpias, sin barra de filtros (Edu, 01/11/2026) ===== */
#tab-actualizaciones .up-filters { display: none !important; }
#tab-actualizaciones > .panel { padding: 0; background: transparent; border: 0; box-shadow: none; }
#tab-actualizaciones .up-date { font-size: 1.05rem; margin: 18px 2px 8px; }
#tab-actualizaciones .up-list { gap: 10px; }
#tab-actualizaciones .up-row { grid-template-columns: 44px minmax(0, 1fr); gap: 12px; padding: 12px; border: 1px solid var(--border); border-radius: 16px; background: var(--card, var(--panel-bg, #fff)); }
#tab-actualizaciones .up-row:last-child { border-bottom: 1px solid var(--border); }
#tab-actualizaciones .up-left, #tab-actualizaciones .up-photo { width: 44px; height: 44px; }
#tab-actualizaciones .up-cat { background: color-mix(in srgb, var(--uc) 14%, transparent); padding: 3px 9px; border-radius: 999px; }
#tab-actualizaciones .up-title { font-size: .95rem; }
#tab-actualizaciones .up-links { flex-direction: column; gap: 6px; margin-top: 6px; }
#tab-actualizaciones .up-club { align-self: flex-start; }
#tab-actualizaciones .up-tomatch, #tab-actualizaciones .up-tolast { display: block; text-align: center; font-size: .8rem; padding: 10px 12px; border-radius: 12px; }
#tab-actualizaciones .up-tomatch { background: #16a34a; color: #fff; border-color: #16a34a; }
:root:not([data-theme="light"]) #tab-actualizaciones .up-tomatch { color: #fff; }
#tab-actualizaciones .up-chg { gap: 4px; }
#tab-actualizaciones .up-pl { padding: 4px 8px; font-size: .8rem; flex-wrap: nowrap; }
#tab-actualizaciones .up-pl .up-tr { margin-left: auto; white-space: nowrap; }

/* Mercado: botones de posición y orden iguales, planos y siempre visibles (captura 11 de Edu, 01/11) */
:is(#tab-mercado, #tab-plantillas) .plt-head .plt-row-btns { display: flex; flex-wrap: nowrap; gap: 0; padding: 0 6px; background: #1d2b33; }
:is(#tab-mercado, #tab-plantillas) .plt-head .plt-row-btns .plt-btn:not(.plt-club):not(.plt-arrow) {
  flex: 1 1 0; min-width: 0; height: auto; padding: 11px 2px; border-radius: 4px;
  background: none; color: #aebcc3; font: 700 .8rem/1 inherit; text-align: center;
}
:is(#tab-mercado, #tab-plantillas) .plt-head #pltPos .plt-btn.on { background: #5b6b73; color: #fff; }
:is(#tab-mercado, #tab-plantillas) .plt-head #pltSort .plt-btn { border-radius: 0; padding: 12px 2px; }
:is(#tab-mercado, #tab-plantillas) .plt-head #pltSort .plt-btn.on { background: none; color: #fff; box-shadow: inset 0 -2px 0 #22c55e; }
:is(#tab-mercado, #tab-plantillas) .plt-head .plt-row-btns.plt-per .plt-btn:not(.plt-club) { background: rgba(255,255,255,.08); margin: 0 2px; padding: 9px 2px; }
:is(#tab-mercado, #tab-plantillas) .plt-head .plt-row-btns.plt-per .plt-btn.on { background: #5b6b73; color: #fff; }
:is(#tab-mercado, #tab-plantillas) .plt-head #pltSort .plt-lbl, :is(#tab-mercado, #tab-plantillas) .plt-head .plt-per .plt-lbl { display: none; }

/* Mercado de fichajes con el mismo aire que el resto de la web (Edu 01/11): fecha discreta, sin rayas negras ni letra condensada */
#tab-fichajes .fx-date { margin: 20px 0 8px; padding: 0; border: 0; display: flex; align-items: center; gap: 10px; font-family: inherit; font-weight: 800; font-size: .74rem; line-height: 1; letter-spacing: .04em; color: var(--muted); }
#tab-fichajes .fx-date::before, #tab-fichajes .fx-date::after { content: ""; flex: 1; height: 1px; background: var(--border); }
#tab-fichajes .fx-day:first-of-type .fx-date { margin-top: 6px; }
#tab-fichajes .panel-head h2, #tab-fichajes .tab-h h2 { font-size: 1.5rem; letter-spacing: -.02em; }
#tab-fichajes .fx-title, #tab-fichajes .fx-date { font-family: inherit; }
#tab-fichajes .fx-title { font-size: .96rem; font-weight: 800; }

/* Notas en directo de FotMob: verde desde 7, naranja por debajo (Edu 01/11) */
.pl-pts.rt-lo, .lv-rate.rt-lo { background: #f59e0b; color: #fff; border-color: #fff; }
.lv-rate.rt-lo { border-color: #f59e0b; }
.pl-pts.rt-hi, .lv-rate.rt-hi { background: #16a34a; color: #fff; border-color: #fff; }
.lv-rate.rt-hi { border-color: #16a34a; }
.pl-pts.mvp { background: #2f8cf5; color: #fff; border-color: #fff; }

/* Noticia principal en directo: foto de jugador sobre fondo liso */
.feat-hero-live { background: #10151c; }
.feat-hero-live img { object-fit: contain; object-position: center bottom; }
.feat-live-kind { background: #dc2626; color: #fff; }

/* Todas las tarjetas de la jornada con la misma altura (Edu 01/11): el once probable no la agranda */
#cxChrome .cx-jn-grid { grid-auto-rows: 50px; }
#cxChrome .cx-jn { height: 50px; box-sizing: border-box; overflow: hidden; justify-content: center; }
#cxChrome .cx-jn .cx-jn-tvrow { display: none; }

/* Inicio en móvil como en el PC: lista a la izquierda y la noticia grande a la derecha (Edu 01/11) */
@container (max-width: 639px) {
  .feat-grid { grid-template-columns: minmax(0, 52%) minmax(0, 1fr); column-gap: 8px; align-items: stretch; }
  .feat-hero { grid-column: 2; grid-row: 1; aspect-ratio: auto; height: auto; min-height: 0; margin-bottom: 14px; }
  .feat-hero img { position: absolute; inset: 0; }
  .feat-hero-title { font-size: .9rem; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
  .feat-hero-overlay { padding: 40px 10px 10px; }
  .feat-prev { grid-column: 1; grid-row: 1; padding: 10px 9px 2px; min-width: 0; overflow: hidden; }
  .feat-prev-row { gap: 7px; }
  .feat-prev-img { width: 38px; height: 38px; border-radius: 9px; }
  .feat-prev-h { font-size: .7rem; line-height: 1.2; }
  .feat-prev-m { font-size: .58rem; }
  .feat-sub { grid-column: 1 / -1; grid-row: 2; }
}

/* Tarjetas de la jornada un poco más grandes, todas iguales (Edu 01/11) */
#cxChrome .cx-jn-grid { grid-auto-rows: 60px; gap: 5px; }
#cxChrome .cx-jn { height: 60px; padding: 4px 6px; }
#cxChrome .cx-jn-crest { width: 33px; height: 33px; }
#cxChrome .cx-jn-score { font-size: 1.2rem; }
#cxChrome .cx-jn-statusrow { font-size: .6rem; }
#cxChrome .cx-jn .cx-jn-statusrow-prob, #cxChrome .cx-jn .cx-jn-statusrow-confirm { font-size: .56rem; }
#cxChrome .cx-jn-time, #cxChrome .cx-jn-hora { font-size: .64rem; }

/* "Once probable · fecha hora" siempre entero, también en móviles estrechos */
#cxChrome .cx-jn .cx-jn-statusrow-prob { font-size: .52rem; letter-spacing: .1px; padding: 2px 5px; gap: 3px; max-width: 100%; box-sizing: border-box; }
#cxChrome .cx-jn .cx-jn-statusrow-prob .cx-prob-t { font-size: .52rem; letter-spacing: 0; }

/* Últimas actualizaciones: sin el botón con el nombre del club (Edu 01/11) */
#tab-actualizaciones .up-club { display: none; }

/* "Últimos cambios" en móvil: recuadro propio debajo, a todo el ancho */
.feat-chg.feat-chg-solo { border: 1px solid var(--border); border-radius: 16px; padding: 12px 14px 8px; margin: 0 0 14px; min-height: 0; }
.feat-chg-solo .feat-chg-title { margin-top: 0; }
.feat-chg-solo .feat-chg-ph { display: block; width: 24px; height: 24px; }
.feat-chg-solo .feat-chg-time { display: block; }

/* Inicio sin título: las noticias van pegadas a las tarjetas de la jornada */
#tab-inicio > .panel:first-of-type { margin-top: 10px; }

/* Cambio al que se llega desde "Últimos cambios" del Inicio */
#tab-actualizaciones .up-row.up-focus { box-shadow: 0 0 0 2px #16a34a; transition: box-shadow .3s; }
#tab-actualizaciones .up-row { scroll-margin-top: 130px; }

/* Inicio: "Anteriores" y "Últimos cambios" más grandes; la etiqueta, más pequeña (Edu 02/11) */
.feat-prev-title { font-size: .64rem; margin-bottom: 0; letter-spacing: .05em; }
.feat-prev-h { font-size: .92rem; }
.feat-prev-m { font-size: .74rem; }
.feat-prev-img { width: 72px; height: 72px; }
.feat-chg-ph { width: 34px; height: 34px; }
.feat-chg-row { padding: 8px 0; font-size: .9rem; gap: 10px; }
.feat-chg-cat { font-size: .78rem; }
.feat-chg-time { font-size: .76rem; }
.feat-chg-dot { width: 10px; height: 10px; }
.feat-chg-empty { font-size: .88rem; }
.feat-chg { min-height: 140px; }
@container (min-width: 640px) { .feat-prev-img { width: 68px; height: 68px; } }
@container (max-width: 639px) {
  .feat-grid { grid-template-columns: minmax(0, 60%) minmax(0, 1fr); column-gap: 8px; }
  .feat-prev { padding: 8px 8px 2px; }
  .feat-prev-row { gap: 8px; padding: 8px 0; }
  .feat-prev-img { width: 52px; height: 52px; border-radius: 10px; }
  .feat-prev-h { font-size: .8rem; line-height: 1.22; -webkit-line-clamp: 3; }
  .feat-prev-m { font-size: .66rem; }
  .feat-hero-title { font-size: .85rem; }
}
.feat-chg.feat-chg-solo { padding: 12px 14px 8px; min-height: 0; }
.feat-chg-solo .feat-chg-ph { width: 36px; height: 36px; }
.feat-chg-solo .feat-chg-txt { font-size: .92rem; }

/* Inicio: un poco más grande todavía (Edu 02/11) */
@container (max-width: 639px) {
  .feat-grid { grid-template-columns: minmax(0, 64%) minmax(0, 1fr); }
  .feat-prev-row { gap: 9px; padding: 10px 0; }
  .feat-prev-img { width: 62px; height: 62px; border-radius: 11px; }
  .feat-prev-h { font-size: .92rem; line-height: 1.22; }
  .feat-prev-m { font-size: .74rem; }
  .feat-hero-title { font-size: .8rem; }
}
.feat-prev-title { font-size: .6rem; }
.feat-chg-solo .feat-chg-row { padding: 10px 0; gap: 11px; }
.feat-chg-solo .feat-chg-ph { width: 44px; height: 44px; }
.feat-chg-solo .feat-chg-cat { font-size: .88rem; }
.feat-chg-solo .feat-chg-txt { font-size: 1rem; }
.feat-chg-solo .feat-chg-time { font-size: .86rem; }
@container (min-width: 640px) { .feat-prev-img { width: 76px; height: 76px; } .feat-prev-h { font-size: 1rem; } }

/* Inicio: Anteriores y Últimos cambios con la misma letra (negrita, mismo tamaño) y filas separadas por una línea (Edu 02/11) */
.feat-prev-h, .feat-chg .feat-chg-cat, .feat-chg .feat-chg-txt { font-size: .86rem; font-weight: 700; line-height: 1.25; }
.feat-prev-m, .feat-chg .feat-chg-time { font-size: .72rem; font-weight: 600; }
.feat-chg .feat-chg-row { border-top: 1px solid var(--border); padding: 9px 0; gap: 9px; align-items: center; }
.feat-chg .feat-chg-title + .feat-chg-row { border-top: 0; }
.feat-chg .feat-chg-ph { width: 32px; height: 32px; }
.feat-chg .feat-chg-dot { width: 9px; height: 9px; }
.feat-chg .feat-chg-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.feat-chg .feat-chg-cat { flex: none; }
.feat-chg .feat-chg-txt { flex: none; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-overflow: clip; }
.feat-chg .feat-chg-empty { font-size: .86rem; }
@container (max-width: 639px) { .feat-prev-h { font-size: .86rem; } .feat-prev-m { font-size: .72rem; } }
@container (min-width: 640px) { .feat-prev-h { font-size: .86rem; } }

/* Imágenes de Comuniate: se corta la parte de abajo, donde va su logo (Edu 02/11) */
.newscard-thumb.cm-crop-bg { background-size: auto 120% !important; background-position: 50% 0 !important; }
.cm-crop { transform: scale(1.2); transform-origin: 50% 0; }
.cm-wrap { display: block; overflow: hidden; position: relative; }
.cm-wrap .cm-in { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.2); transform-origin: 50% 0; border-radius: 0; }
.cm-detail { overflow: hidden; border-radius: 12px; margin: 8px 0; aspect-ratio: 2.09 / 1; background: rgba(127,127,127,.12); }
.cm-detail img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }

/* "Estadísticas FotMob" al final de las noticias: enlace al partido dentro de la web (Edu 02/11) */
.fm-stats-link { display: inline-block; color: #16a34a; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
:root:not([data-theme="light"]) .fm-stats-link { color: #4ade80; }

/* Miniaturas de Comuniate: recorte más suave para que no se vean tan grandes (Edu 02/11) */
.newscard-thumb.cm-crop-bg { background-size: auto 110% !important; }
.cm-crop { transform: scale(1.1); }
.cm-wrap .cm-in { transform: scale(1.1); }

/* Últimas actualizaciones: los jugadores ocupan todo el ancho de la tarjeta y cada uno, más grande (Edu 02/11) */
#tab-actualizaciones .up-chg { margin-left: -56px; margin-top: 8px; gap: 6px; }
#tab-actualizaciones .up-pl { padding: 8px 12px; font-size: .98rem; gap: 10px; border-radius: 12px; align-items: center; }
#tab-actualizaciones .up-pl img { width: 38px; height: 40px; border-radius: 8px; flex: none; }
#tab-actualizaciones .up-pl strong { font-weight: 700; }
#tab-actualizaciones .up-pl .up-tr { font-size: .95rem; font-weight: 700; }

/* Qué pasó en cada partido: siempre dos líneas (1ª: rival y casa/fuera; 2ª: minutos, eventos y nota FotMob, todo en una línea). Tarjetas con su símbolo (Edu 02/11) */
.fm-chips { flex-wrap: nowrap; gap: 3px 9px; white-space: nowrap; align-items: center; }
.fm-chips .fm-min, .fm-chips .fm-ev { font-size: .74rem; white-space: nowrap; flex: none; }
.fm-ev.ev-rt b { font-size: .78rem; }
.fm-chips.many { flex-wrap: wrap; }
.fm-card { display: inline-block; width: 9px; height: 12px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; box-shadow: 0 0 0 1px rgba(0,0,0,.18); }
.fm-card.y { background: #facc15; }
.fm-card.r { background: #ef4444; }
.fm-chips .fm-ev.ev-y { color: var(--muted); }
