/* =========================================================================
   Analizador de plantillas
   Todo cuelga de .mpo-an (el shortcode) o .mpo-an-modal (el buscador de
   jugadores, que se cuelga del <body> para que ningún contenedor de la
   página lo recorte).
   ========================================================================= */

.mpo-an {
    --an-electric: #0047FF;
    --an-electric-2: #0A7BFF;
    --an-cyan: #7CF0FF;
    --an-lime: #5CFFB0;
    --an-amber: #FFD84D;
    --an-rose: #FF8FA3;
    margin: 0 0 24px;
}
.mpo-an *, .mpo-an *::before, .mpo-an *::after { box-sizing: border-box; }
.mpo-an .mpo-an-sub {
    margin: -8px 0 14px;
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--mpo-slate, #64748B);
}

/* ---------- Botones (reseteados para que el tema no los toque) ---------- */
.mpo-an button,
.mpo-an-modal button {
    -webkit-appearance: none;
    appearance: none;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    text-transform: none;
    letter-spacing: normal;
    box-shadow: none;
    text-shadow: none;
    margin: 0;
    min-width: 0;
    min-height: 0;
}

/* ---------- Selector de estrategia ---------- */
.mpo-an .mpo-an-forms {
    position: relative;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 2px 10px;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}
.mpo-an .mpo-an-chip {
    flex: 0 0 auto;
    padding: 9px 15px;
    border-radius: 999px;
    border: 1.5px solid var(--mpo-border, #E7EAEC);
    background: var(--mpo-card, #fff);
    color: var(--mpo-navy, #0B1220);
    font-family: 'Sora', 'Inter', sans-serif;
    font-weight: 700;
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease;
}
.mpo-an .mpo-an-chip:hover { transform: translateY(-1px); box-shadow: 0 6px 14px rgba(11, 18, 32, .1); background: var(--mpo-card, #fff); color: var(--mpo-navy, #0B1220); }
.mpo-an .mpo-an-chip.is-active,
.mpo-an .mpo-an-chip.is-active:hover {
    background: linear-gradient(135deg, #0F7A4C, #1FAF6E);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 8px 18px rgba(15, 122, 76, .3);
}
.mpo-an .mpo-an-chip.is-suggest { border-color: var(--an-electric); box-shadow: 0 0 0 3px rgba(0, 71, 255, .14); }

/* ---------- Selector de plataforma de fantasy ("Puntos según") ---------- */
.mpo-an .mpo-an-platwrap { margin: -6px 0 14px; }
.mpo-an .mpo-an-platlabel {
    display: block;
    margin: 0 0 6px 2px;
    font-family: 'Sora', 'Inter', sans-serif;
    font-weight: 700;
    font-size: 12px;
    color: var(--mpo-slate, #64748B);
}
.mpo-an .mpo-an-forms--plat { padding: 4px 2px 4px; }
.mpo-an .mpo-an-chip--plat { padding: 7px 13px; font-size: 12.5px; }
.mpo-an .mpo-an-chip--plat.is-active,
.mpo-an .mpo-an-chip--plat.is-active:hover {
    background: linear-gradient(135deg, var(--an-electric), var(--an-electric-2));
    border-color: transparent;
    color: #fff;
    box-shadow: 0 8px 18px rgba(0, 71, 255, .28);
}
.mpo-an .mpo-an-forms-note {
    margin: 0 0 10px;
    padding: 8px 12px;
    border-radius: 10px;
    background: #EEF4FF;
    color: #1B3FA8;
    font-size: 12.5px;
    line-height: 1.4;
}

/* ---------- Campo ---------- */
.mpo-an .mpo-an-pitchbox { display: flex; justify-content: center; }
.mpo-an .mpo-an-pitch {
    position: relative;
    width: 100%;
    max-width: 440px;
    aspect-ratio: 2 / 3;
    border-radius: 22px;
    overflow: hidden;
    background: linear-gradient(175deg, #1FAF6E 0%, #0F7A4C 55%, #0B5C39 100%);
    box-shadow: 0 14px 34px rgba(11, 18, 32, .18);
    container-type: inline-size;
}
.mpo-an .mpo-an-pitch-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(1.05) saturate(1.05);
    pointer-events: none;
    margin: 0;
    max-width: none;
}
.mpo-an .mpo-an-pitch-tag {
    position: absolute;
    top: 10px;
    left: 12px;
    z-index: 3;
    padding: 6px 11px;
    border-radius: 999px;
    background: rgba(11, 18, 32, .72);
    color: #fff;
    font-family: 'Sora', 'Inter', sans-serif;
    font-weight: 800;
    font-size: 12px;
    letter-spacing: .04em;
}
.mpo-an .mpo-an-slots { position: absolute; inset: 0; }

.mpo-an .mpo-an-slot {
    position: absolute;
    width: 15.5%;
    transform: translate(-50%, -50%);
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    cursor: pointer;
    line-height: 1;
    z-index: 2;
    -webkit-tap-highlight-color: transparent;
    transition: transform .2s ease;
}
.mpo-an .mpo-an-slot:hover,
.mpo-an .mpo-an-slot:focus-visible { transform: translate(-50%, -50%) scale(1.08); z-index: 5; background: none; }
.mpo-an .mpo-an-slot:focus-visible { outline: none; }
.mpo-an .mpo-an-slot:focus-visible .mpo-an-disc { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--an-electric); }

.mpo-an .mpo-an-disc {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    border-radius: 50%;
    overflow: hidden;
    border: 2px dashed rgba(255, 255, 255, .85);
    background: rgba(11, 18, 32, .28);
    box-shadow: 0 3px 10px rgba(0, 0, 0, .28);
}
.mpo-an .mpo-an-disc img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin: 0;
    max-width: none;
    border-radius: 50%;
}
.mpo-an .mpo-an-plus {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: clamp(18px, 7cqw, 30px);
    font-weight: 300;
    line-height: 1;
}
.mpo-an .mpo-an-slot.is-filled .mpo-an-disc {
    border: 2px solid rgba(255, 255, 255, .92);
    background: #fff;
}
.mpo-an .mpo-an-slot.is-next .mpo-an-disc { animation: mpoAnPulse 1.8s ease-in-out infinite; }
@keyframes mpoAnPulse {
    0%, 100% { box-shadow: 0 3px 10px rgba(0, 0, 0, .28), 0 0 0 0 rgba(255, 255, 255, .55); }
    50% { box-shadow: 0 3px 10px rgba(0, 0, 0, .28), 0 0 0 9px rgba(255, 255, 255, 0); }
}
.mpo-an .mpo-an-crest {
    position: absolute;
    right: -8%;
    bottom: -4%;
    width: 40%;
    aspect-ratio: 1;
    padding: 2px;
    border-radius: 50%;
    background: #fff;
    object-fit: contain;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .35);
    z-index: 2;
    margin: 0;
    max-width: none;
}
.mpo-an .mpo-an-warn {
    position: absolute;
    left: -6%;
    top: -4%;
    width: 36%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: #E8A33D;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .35);
    z-index: 2;
}
.mpo-an .mpo-an-label {
    position: absolute;
    top: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%);
    max-width: 62px;
    padding: 3px 7px;
    border-radius: 999px;
    background: rgba(11, 18, 32, .82);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}
.mpo-an .mpo-an-label--pos { background: rgba(255, 255, 255, .88); color: #0B1220; letter-spacing: .05em; }
@supports (width: 1cqw) {
    .mpo-an .mpo-an-label { max-width: 17cqw; font-size: clamp(8.5px, 2.7cqw, 11px); }
}

/* ---------- Barra de acciones ---------- */
.mpo-an .mpo-an-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    max-width: 440px;
    margin: 14px auto 0;
}
.mpo-an .mpo-an-count { font-size: 13px; color: var(--mpo-slate, #64748B); }
.mpo-an .mpo-an-count b { font-family: 'Sora', sans-serif; font-size: 20px; color: var(--mpo-navy, #0B1220); margin-right: 2px; }
.mpo-an .mpo-an-actions { display: flex; gap: 8px; flex: 1 1 auto; justify-content: flex-end; }
.mpo-an .mpo-an-btn {
    padding: 12px 18px;
    border-radius: 13px;
    border: 0;
    font-weight: 800;
    font-size: 14px;
    line-height: 1.1;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.mpo-an .mpo-an-btn--ghost { background: #EEF1F3; color: var(--mpo-navy, #0B1220); }
.mpo-an .mpo-an-btn--ghost:hover { background: #E2E7EA; color: var(--mpo-navy, #0B1220); }
.mpo-an .mpo-an-btn--go {
    flex: 1 1 auto;
    color: #fff;
    background: linear-gradient(135deg, #0033FF 0%, #0A7BFF 100%);
    box-shadow: 0 10px 24px rgba(0, 71, 255, .38), 0 0 0 1px rgba(255, 255, 255, .18) inset;
}
.mpo-an .mpo-an-btn--go:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(0, 71, 255, .5), 0 0 0 1px rgba(255, 255, 255, .25) inset; color: #fff; background: linear-gradient(135deg, #0033FF 0%, #0A7BFF 100%); }
.mpo-an .mpo-an-btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.mpo-an .mpo-an-btn:focus-visible { outline: 3px solid var(--an-electric); outline-offset: 2px; }

/* =========================================================================
   RESULTADO: panel azul eléctrico
   ========================================================================= */
.mpo-an .mpo-an-out {
    position: relative;
    margin-top: 22px;
    padding: 22px 18px 18px;
    border-radius: 24px;
    color: #fff;
    background:
        radial-gradient(90% 70% at 0% 0%, rgba(80, 150, 255, .75) 0%, rgba(80, 150, 255, 0) 60%),
        radial-gradient(80% 70% at 100% 100%, rgba(0, 208, 255, .65) 0%, rgba(0, 208, 255, 0) 62%),
        linear-gradient(135deg, #0022FF 0%, #0047FF 48%, #0A7BFF 100%);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .2) inset, 0 26px 60px rgba(0, 71, 255, .4), 0 0 44px rgba(0, 140, 255, .35);
    overflow: hidden;
    animation: mpoAnIn .5s ease both;
}
.mpo-an .mpo-an-out::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
    background-size: 34px 34px;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(180deg, #000, transparent 70%);
    mask-image: linear-gradient(180deg, #000, transparent 70%);
}
.mpo-an .mpo-an-out > * { position: relative; }
.mpo-an .mpo-an-out[hidden] { display: none; }
.mpo-an .mpo-an-out.is-stale > .mpo-an-res { opacity: .55; filter: saturate(.7); transition: opacity .2s ease; }
@keyframes mpoAnIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes mpoAnRise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.mpo-an .mpo-an-stale {
    margin: 0 0 14px;
    padding: 10px 13px;
    border-radius: 12px;
    background: rgba(255, 216, 77, .18);
    border: 1px solid rgba(255, 216, 77, .6);
    color: #FFF3B8;
    font-size: 13px;
    font-weight: 600;
}
.mpo-an .mpo-an-loading { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 34px 10px; font-weight: 700; }
.mpo-an .mpo-an-spin {
    width: 42px; height: 42px; border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, .28);
    border-top-color: #fff;
    animation: mpoAnSpin .8s linear infinite;
}
@keyframes mpoAnSpin { to { transform: rotate(360deg); } }
.mpo-an .mpo-an-err { padding: 22px 8px; text-align: center; font-weight: 700; }

/* Cabecera del veredicto */
.mpo-an .mpo-an-hero { display: flex; align-items: center; gap: 18px; margin-bottom: 16px; }
.mpo-an .mpo-an-ring { position: relative; flex: 0 0 auto; width: 118px; height: 118px; }
.mpo-an .mpo-an-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.mpo-an .mpo-an-ring circle { fill: none; stroke-width: 10; stroke-linecap: round; }
.mpo-an .mpo-an-ring .bg { stroke: rgba(255, 255, 255, .22); }
.mpo-an .mpo-an-ring .fg { stroke: #fff; filter: drop-shadow(0 0 8px rgba(124, 240, 255, .95)); transition: stroke-dashoffset 1.1s cubic-bezier(.2, .8, .2, 1); }
.mpo-an .mpo-an-ring-num { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.mpo-an .mpo-an-ring-num b { font-family: 'Sora', sans-serif; font-weight: 800; font-size: 36px; line-height: 1; text-shadow: 0 0 18px rgba(124, 240, 255, .8); }
.mpo-an .mpo-an-ring-num span { font-size: 11px; font-weight: 700; opacity: .8; letter-spacing: .06em; margin-top: 2px; }
.mpo-an .mpo-an-hero-txt { min-width: 0; }
.mpo-an .mpo-an-eyebrow { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--an-cyan); margin-bottom: 4px; }
.mpo-an .mpo-an-out h4.mpo-an-title { margin: 0 0 6px; font-family: 'Sora', sans-serif; font-weight: 800; font-size: 22px; line-height: 1.15; color: #fff; }
.mpo-an .mpo-an-lead { margin: 0; font-size: 14px; line-height: 1.45; color: rgba(255, 255, 255, .95); }

/* Píldoras */
.mpo-an .mpo-an-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.mpo-an .mpo-an-pill {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 5px 10px; border-radius: 999px;
    background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .28);
    font-size: 12px; font-weight: 700; color: #fff;
}
.mpo-an .mpo-an-pill--good { background: rgba(92, 255, 176, .2); border-color: rgba(92, 255, 176, .6); color: #CFFFE7; }
.mpo-an .mpo-an-pill--mid { background: rgba(255, 216, 77, .2); border-color: rgba(255, 216, 77, .6); color: #FFF3B8; }
.mpo-an .mpo-an-pill--bad { background: rgba(255, 143, 163, .22); border-color: rgba(255, 143, 163, .65); color: #FFD9E0; }

.mpo-an .mpo-an-incompleto {
    margin-bottom: 14px; padding: 10px 13px; border-radius: 12px;
    background: rgba(255, 216, 77, .18); border: 1px solid rgba(255, 216, 77, .55);
    color: #FFF3B8; font-size: 13px; font-weight: 600;
}

/* KPIs */
.mpo-an .mpo-an-kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; margin-bottom: 16px; }
.mpo-an .mpo-an-kpi {
    padding: 12px 13px; border-radius: 14px;
    background: rgba(255, 255, 255, .13); border: 1px solid rgba(255, 255, 255, .22);
    backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
    animation: mpoAnRise .5s ease both;
}
.mpo-an .mpo-an-kpi small { display: block; font-size: 10.5px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--an-cyan); margin-bottom: 4px; }
.mpo-an .mpo-an-kpi b { display: block; font-family: 'Sora', sans-serif; font-weight: 800; font-size: 21px; line-height: 1.1; }
.mpo-an .mpo-an-kpi span { display: block; margin-top: 3px; font-size: 11.5px; opacity: .85; }

/* Secciones */
.mpo-an .mpo-an-sec { margin: 0 0 16px; animation: mpoAnRise .5s ease both; }
.mpo-an .mpo-an-out h5.mpo-an-h {
    margin: 0 0 9px; font-family: 'Sora', sans-serif; font-weight: 800; font-size: 14px;
    letter-spacing: .02em; color: #fff; display: flex; align-items: center; gap: 7px;
}
.mpo-an .mpo-an-card {
    padding: 13px 14px; border-radius: 16px;
    background: rgba(255, 255, 255, .13); border: 1px solid rgba(255, 255, 255, .22);
    backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.mpo-an .mpo-an-card p { margin: 0; font-size: 13.5px; line-height: 1.5; color: #fff; }

/* Titulares: contadores */
.mpo-an .mpo-an-tcount { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 11px; }
.mpo-an .mpo-an-tc { text-align: center; padding: 9px 4px; border-radius: 12px; background: rgba(255, 255, 255, .12); }
.mpo-an .mpo-an-tc b { display: block; font-family: 'Sora', sans-serif; font-size: 20px; line-height: 1; }
.mpo-an .mpo-an-tc span { display: block; margin-top: 4px; font-size: 10.5px; font-weight: 700; opacity: .9; }
.mpo-an .mpo-an-tc--fijo b { color: var(--an-lime); }
.mpo-an .mpo-an-tc--duda b { color: var(--an-amber); }
.mpo-an .mpo-an-tc--riesgo b { color: #FFB27A; }
.mpo-an .mpo-an-tc--baja b { color: var(--an-rose); }

/* Líneas */
.mpo-an .mpo-an-lines { display: grid; gap: 9px; margin-top: 11px; }
.mpo-an .mpo-an-line { display: grid; grid-template-columns: 82px 1fr 32px; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 700; }
.mpo-an .mpo-an-bar-track { height: 9px; border-radius: 999px; background: rgba(255, 255, 255, .2); overflow: hidden; }
.mpo-an .mpo-an-bar-fill { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, #7CF0FF, #fff); box-shadow: 0 0 10px rgba(124, 240, 255, .9); transition: width .9s cubic-bezier(.2, .8, .2, 1); }
.mpo-an .mpo-an-bar-fill.is-low { background: linear-gradient(90deg, #FF8FA3, #FFD84D); box-shadow: 0 0 10px rgba(255, 143, 163, .8); }
.mpo-an .mpo-an-line em { font-style: normal; text-align: right; font-family: 'Sora', sans-serif; }

/* Listas de fortalezas / alertas / mejoras */
.mpo-an .mpo-an-grid2 { display: grid; grid-template-columns: 1fr; gap: 12px; margin-bottom: 16px; }
.mpo-an .mpo-an-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.mpo-an .mpo-an-list li { position: relative; padding: 0 0 0 26px; margin: 0; font-size: 13.5px; line-height: 1.5; color: #fff; }
.mpo-an .mpo-an-list li::before { position: absolute; left: 0; top: 0; font-size: 15px; }
.mpo-an .mpo-an-list--ok li::before { content: '✅'; }
.mpo-an .mpo-an-list--warn li::before { content: '⚠️'; }
.mpo-an .mpo-an-list--fix li::before { content: '🛠️'; }
.mpo-an .mpo-an-try {
    margin-top: 12px; padding: 10px 14px; border-radius: 12px; border: 0; cursor: pointer;
    background: #fff; color: #0033CC; font-weight: 800; font-size: 13px;
}
.mpo-an .mpo-an-try:hover { background: #E8F0FF; color: #0033CC; }

/* Cambios recomendados */
.mpo-an .mpo-an-swap { margin-bottom: 12px; }
.mpo-an .mpo-an-swap-h { font-size: 12.5px; font-weight: 700; margin: 0 0 8px; opacity: .95; }
.mpo-an .mpo-an-alts { display: grid; gap: 8px; }
.mpo-an .mpo-an-alt { display: flex; align-items: center; gap: 11px; padding: 10px 11px; border-radius: 14px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .24); }
.mpo-an .mpo-an-alt-info { flex: 1 1 auto; min-width: 0; }
.mpo-an .mpo-an-alt-name { font-weight: 800; font-size: 14px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mpo-an .mpo-an-alt-meta { font-size: 11.5px; opacity: .9; margin-top: 2px; }
.mpo-an .mpo-an-do {
    flex: 0 0 auto; padding: 9px 13px; border-radius: 10px; border: 0; cursor: pointer;
    background: #fff; color: #0033CC; font-weight: 800; font-size: 12.5px;
}
.mpo-an .mpo-an-do:hover { background: #E8F0FF; color: #0033CC; }

/* Foto + escudo (resultados) */
.mpo-an .mpo-an-ph { position: relative; flex: 0 0 auto; width: 46px; height: 46px; }
.mpo-an .mpo-an-ph img.mpo-an-ph-foto {
    display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover;
    background: #fff; border: 2px solid rgba(255, 255, 255, .9); margin: 0; max-width: none;
}
.mpo-an .mpo-an-ph .mpo-an-ph-crest, .mpo-an .mpo-an-ph a.mpo-team-link { position: absolute; right: -6px; bottom: -4px; z-index: 2; }
.mpo-an .mpo-an-ph img.mpo-an-ph-crest-img {
    display: block; width: 22px; height: 22px; padding: 2px; border-radius: 50%; background: #fff;
    object-fit: contain; box-shadow: 0 2px 6px rgba(0, 0, 0, .35); margin: 0; max-width: none;
}

/* Jugador a jugador */
.mpo-an .mpo-an-rows { display: grid; gap: 8px; }
.mpo-an .mpo-an-row {
    display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px;
    background: rgba(255, 255, 255, .13); border: 1px solid rgba(255, 255, 255, .22);
    cursor: pointer; animation: mpoAnRise .5s ease both;
    transition: background-color .15s ease, transform .15s ease;
}
.mpo-an .mpo-an-row:hover, .mpo-an .mpo-an-row:focus-visible { background: rgba(255, 255, 255, .22); outline: none; transform: translateX(2px); }
.mpo-an .mpo-an-row-info { flex: 1 1 auto; min-width: 0; }
.mpo-an .mpo-an-row-top { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.mpo-an .mpo-an-row-name { font-weight: 800; font-size: 14.5px; line-height: 1.2; }
.mpo-an .mpo-an-row-pos { font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 2px 7px; border-radius: 999px; background: rgba(255, 255, 255, .2); }
.mpo-an .mpo-an-row-sub { margin-top: 3px; font-size: 11.5px; opacity: .88; line-height: 1.35; }
.mpo-an .mpo-an-prob { margin-top: 7px; display: flex; align-items: center; gap: 8px; }
.mpo-an .mpo-an-prob .mpo-an-bar-track { flex: 1 1 auto; height: 7px; }
.mpo-an .mpo-an-prob small { font-size: 11px; font-weight: 800; min-width: 74px; text-align: right; }
.mpo-an .mpo-an-nivel { font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 999px; }
.mpo-an .mpo-an-nivel--fijo, .mpo-an .mpo-an-nivel--probable { background: rgba(92, 255, 176, .22); color: #CFFFE7; }
.mpo-an .mpo-an-nivel--fijo_riesgo { background: rgba(255, 210, 120, .24); color: #FFEBC2; }
.mpo-an .mpo-an-nivel--duda { background: rgba(255, 216, 77, .22); color: #FFF3B8; }
.mpo-an .mpo-an-nivel--riesgo { background: rgba(255, 178, 122, .25); color: #FFE0C8; }
.mpo-an .mpo-an-nivel--baja { background: rgba(255, 143, 163, .28); color: #FFD9E0; }
.mpo-an .mpo-an-bar-fill.n-fijo, .mpo-an .mpo-an-bar-fill.n-probable { background: linear-gradient(90deg, #5CFFB0, #CFFFE7); box-shadow: 0 0 8px rgba(92, 255, 176, .8); }
.mpo-an .mpo-an-bar-fill.n-fijo_riesgo { background: linear-gradient(90deg, #FFD27A, #FFEBC2); box-shadow: 0 0 8px rgba(255, 210, 120, .75); }
.mpo-an .mpo-an-bar-fill.n-duda { background: linear-gradient(90deg, #FFD84D, #FFF3B8); box-shadow: 0 0 8px rgba(255, 216, 77, .7); }
.mpo-an .mpo-an-bar-fill.n-riesgo { background: linear-gradient(90deg, #FF9A57, #FFD0A8); box-shadow: 0 0 8px rgba(255, 154, 87, .7); }
.mpo-an .mpo-an-bar-fill.n-baja { background: linear-gradient(90deg, #FF6B81, #FFB3BF); box-shadow: 0 0 8px rgba(255, 107, 129, .7); }
.mpo-an .mpo-an-row-media { flex: 0 0 auto; text-align: center; min-width: 44px; }
.mpo-an .mpo-an-row-media b { display: block; font-family: 'Sora', sans-serif; font-size: 18px; line-height: 1; }
.mpo-an .mpo-an-row-media small { display: block; margin-top: 3px; font-size: 9.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--an-cyan); }

/* Consejo del míster */
.mpo-an .mpo-an-coach {
    display: flex; gap: 12px; align-items: flex-start; padding: 15px 16px; border-radius: 18px;
    background: #fff; color: #0B1220; box-shadow: 0 10px 26px rgba(0, 20, 120, .35);
    animation: mpoAnRise .5s ease both;
}
.mpo-an .mpo-an-coach-ico { font-size: 28px; line-height: 1; }
.mpo-an .mpo-an-coach b { display: block; font-family: 'Sora', sans-serif; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: #0033CC; margin-bottom: 3px; }
.mpo-an .mpo-an-coach p { margin: 0; font-size: 14px; line-height: 1.5; color: #0B1220; }
.mpo-an .mpo-an-foot { margin: 12px 2px 0; font-size: 11px; opacity: .8; line-height: 1.4; text-align: center; }

/* Manual */
.mpo-an .mpo-an-manual { margin-top: 18px; border: 1px solid var(--mpo-border, #E7EAEC); border-radius: 14px; background: var(--mpo-card, #fff); }
.mpo-an .mpo-an-manual summary { cursor: pointer; padding: 13px 16px; font-weight: 700; font-size: 14px; }
.mpo-an .mpo-an-manual-body { padding: 0 18px 14px; font-size: 13.5px; line-height: 1.55; color: var(--mpo-slate, #64748B); }
.mpo-an .mpo-an-manual-body ul { margin: 0; padding-left: 18px; }
.mpo-an .mpo-an-manual-body li { margin-bottom: 6px; }

@media (min-width: 640px) {
    .mpo-an .mpo-an-out { padding: 26px 26px 22px; }
    .mpo-an .mpo-an-kpis { grid-template-columns: repeat(4, 1fr); }
    .mpo-an .mpo-an-grid2 { grid-template-columns: 1fr 1fr; }
    .mpo-an .mpo-an-ring { width: 136px; height: 136px; }
    .mpo-an .mpo-an-out h4.mpo-an-title { font-size: 26px; }
}
@media (max-width: 420px) {
    .mpo-an .mpo-an-hero { flex-direction: column; text-align: center; }
    .mpo-an .mpo-an-pills { justify-content: center; }
    .mpo-an .mpo-an-line { grid-template-columns: 74px 1fr 30px; }
}

/* =========================================================================
   BUSCADOR DE JUGADORES (hoja modal)
   ========================================================================= */
.mpo-an-modal {
    position: fixed; left: 0; width: 100%; z-index: 999990; display: none;
    font-family: 'Inter', system-ui, sans-serif; color: #0B1220;
    /* --mpo-an-top / --mpo-an-h los actualiza el JS con visualViewport para
       que la hoja no quede tapada (ni "hundida") por el teclado en móvil;
       100dvh/0px son el valor de respaldo si el navegador no lo soporta. */
    top: var(--mpo-an-top, 0px);
    height: var(--mpo-an-h, 100dvh);
}
.mpo-an-modal.is-open { display: block; }
.mpo-an-modal *, .mpo-an-modal *::before, .mpo-an-modal *::after { box-sizing: border-box; }
.mpo-an-modal .mpo-an-back { position: absolute; inset: 0; background: rgba(6, 12, 40, .6); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); animation: mpoAnFade .2s ease both; }
.mpo-an-modal .mpo-an-sheet {
    position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
    width: 100%; max-width: 520px; max-height: 88%; display: flex; flex-direction: column;
    background: #fff; border-radius: 22px 22px 0 0; box-shadow: 0 -18px 50px rgba(0, 20, 120, .35);
    animation: mpoAnSheet .28s cubic-bezier(.2, .8, .2, 1) both;
}
/* max-height va en % (no vh) porque .mpo-an-modal ya tiene la altura real
   visible (descontando el teclado) puesta por el JS; así la hoja siempre
   queda pegada justo encima del teclado, tenga uno o muchos resultados. */
@keyframes mpoAnFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes mpoAnSheet { from { transform: translate(-50%, 40px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }
@media (min-width: 640px) {
    .mpo-an-modal .mpo-an-sheet { bottom: auto; top: 50%; border-radius: 22px; max-height: 80%; animation: mpoAnPop .25s cubic-bezier(.2, .8, .2, 1) both; transform: translate(-50%, -50%); }
    @keyframes mpoAnPop { from { transform: translate(-50%, -46%); opacity: 0; } to { transform: translate(-50%, -50%); opacity: 1; } }
}
.mpo-an-modal .mpo-an-sheet-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 18px 6px; }
.mpo-an-modal .mpo-an-sheet-t { font-family: 'Sora', sans-serif; font-weight: 800; font-size: 17px; line-height: 1.2; }
.mpo-an-modal .mpo-an-x { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; border: 0; background: #EEF1F3; color: #0B1220; font-size: 15px; cursor: pointer; line-height: 1; padding: 0; }
.mpo-an-modal .mpo-an-x:hover { background: #E2E7EA; color: #0B1220; }
.mpo-an-modal .mpo-an-sheet-b { padding: 6px 18px 12px; }
.mpo-an-modal .mpo-an-q {
    width: 100%; padding: 13px 16px; border: 1.5px solid #E7EAEC; border-radius: 13px;
    font-family: 'Inter', sans-serif; font-size: 16px; font-weight: 600; color: #0B1220; background: #fff; margin: 0;
}
.mpo-an-modal .mpo-an-q:focus { outline: none; border-color: #0047FF; box-shadow: 0 0 0 4px rgba(0, 71, 255, .14); }
.mpo-an-modal .mpo-an-filters { display: flex; align-items: center; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.mpo-an-modal .mpo-an-tog { padding: 7px 12px; border-radius: 999px; border: 1.5px solid #E7EAEC; background: #fff; color: #0B1220; font-weight: 700; font-size: 12px; cursor: pointer; }
.mpo-an-modal .mpo-an-tog:hover { background: #fff; color: #0B1220; }
.mpo-an-modal .mpo-an-tog.is-on, .mpo-an-modal .mpo-an-tog.is-on:hover { background: #0047FF; border-color: #0047FF; color: #fff; }
.mpo-an-modal .mpo-an-hint { font-size: 11.5px; color: #64748B; margin-left: auto; }
.mpo-an-modal .mpo-an-cur { display: flex; gap: 8px; padding: 0 18px 8px; }
.mpo-an-modal .mpo-an-cur button { flex: 1 1 0; padding: 10px 12px; border-radius: 11px; border: 0; cursor: pointer; font-weight: 800; font-size: 13px; }
.mpo-an-modal .mpo-an-cur .rm { background: #FDECEC; color: #B4332E; }
.mpo-an-modal .mpo-an-cur .rm:hover { background: #FBD9D8; color: #B4332E; }
.mpo-an-modal .mpo-an-cur .fi { background: #EEF4FF; color: #1B3FA8; }
.mpo-an-modal .mpo-an-cur .fi:hover { background: #DCE8FF; color: #1B3FA8; }
.mpo-an-modal .mpo-an-list-res { flex: 1 1 auto; overflow-y: auto; padding: 0 10px 18px; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.mpo-an-modal .mpo-an-sec-t { padding: 8px 10px 4px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #64748B; }
.mpo-an-modal .mpo-an-r {
    display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 10px; border: 0; border-radius: 13px;
    background: transparent; color: #0B1220; text-align: left; cursor: pointer;
}
.mpo-an-modal .mpo-an-r:hover, .mpo-an-modal .mpo-an-r.is-active { background: #EEF4FF; color: #0B1220; }
.mpo-an-modal .mpo-an-r[disabled] { opacity: .4; cursor: not-allowed; }
.mpo-an-modal .mpo-an-r-ph { position: relative; flex: 0 0 auto; width: 46px; height: 46px; }
.mpo-an-modal .mpo-an-r-ph img.f { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: #EEF1F3; margin: 0; max-width: none; }
.mpo-an-modal .mpo-an-r-ph img.c { position: absolute; right: -6px; bottom: -4px; width: 22px; height: 22px; padding: 2px; border-radius: 50%; background: #fff; object-fit: contain; box-shadow: 0 2px 6px rgba(11, 18, 32, .3); margin: 0; max-width: none; }
.mpo-an-modal .mpo-an-r-t { flex: 1 1 auto; min-width: 0; }
.mpo-an-modal .mpo-an-r-n { display: block; font-weight: 800; font-size: 14.5px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mpo-an-modal .mpo-an-r-s { display: block; margin-top: 2px; font-size: 12px; color: #64748B; }
.mpo-an-modal .mpo-an-r-rank {
    flex: 0 0 auto; width: 22px; text-align: center; font-family: 'Sora', sans-serif;
    font-weight: 800; font-size: 12px; color: #94A3B8;
}
.mpo-an-modal .mpo-an-r:nth-child(1) .mpo-an-r-rank,
.mpo-an-modal button.mpo-an-r[data-pk-i="0"] .mpo-an-r-rank { color: #E8A33D; }
.mpo-an-modal button.mpo-an-r[data-pk-i="1"] .mpo-an-r-rank { color: #94A3B8; }
.mpo-an-modal button.mpo-an-r[data-pk-i="2"] .mpo-an-r-rank { color: #B08D57; }
.mpo-an-modal .mpo-an-r-m { flex: 0 0 auto; text-align: right; font-size: 11px; color: #64748B; line-height: 1.3; min-width: 58px; }
.mpo-an-modal .mpo-an-r-m b { display: block; font-family: 'Sora', sans-serif; font-size: 15px; color: #0B1220; line-height: 1.15; }
.mpo-an-modal .mpo-an-r-m small { display: block; font-size: 10.5px; font-weight: 600; color: #64748B; white-space: nowrap; }
.mpo-an-modal .mpo-an-r-m-txt { font-size: 11px; font-weight: 700; color: #64748B; }
.mpo-an-modal .mpo-an-empty { padding: 26px 14px; text-align: center; font-size: 14px; color: #64748B; }

@media (prefers-reduced-motion: reduce) {
    .mpo-an .mpo-an-out, .mpo-an .mpo-an-kpi, .mpo-an .mpo-an-sec, .mpo-an .mpo-an-row, .mpo-an .mpo-an-coach,
    .mpo-an-modal .mpo-an-back, .mpo-an-modal .mpo-an-sheet { animation: none; }
    .mpo-an .mpo-an-slot.is-next .mpo-an-disc { animation: none; }
    .mpo-an .mpo-an-ring .fg, .mpo-an .mpo-an-bar-fill { transition: none; }
}

/* Correcciones de [hidden] y de marcadores sin imagen */
.mpo-an-modal .mpo-an-cur[hidden], .mpo-an-modal .mpo-an-tog[hidden] { display: none; }
.mpo-an-modal .mpo-an-r-ph span.f { display: block; width: 100%; height: 100%; border-radius: 50%; background: #DDE3E8; }
.mpo-an .mpo-an-ph span.mpo-an-ph-foto { display: block; width: 100%; height: 100%; border-radius: 50%; background: rgba(255, 255, 255, .35); border: 2px solid rgba(255, 255, 255, .9); }
.mpo-an .mpo-an-slot.is-filled .mpo-an-plus { color: #0B1220; font-weight: 800; font-size: clamp(14px, 6cqw, 24px); }
.mpo-an .mpo-an-forms-note[hidden] { display: none; }
