/* ==========================================================================
   GO-LATIN 2.0 — SALÓN DE LA FAMA (/campeones)
   Todo vive dentro de [data-gl="fc"]. Tonos por categoría: Liga cian, Copa amarillo, Relámpago verde,
   Élite magenta, Mundial naranja (igual que el catálogo de torneos).
   ========================================================================== */

[data-gl="fc"] .gl-hf-page {
    display: grid;
    gap: var(--gl-space-5);
    grid-template-columns: minmax(0, 1fr);
}

[data-gl="fc"] .gl-hf-page .gl-tn-hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

[data-gl="fc"] .gl-hf-page .gl-tn-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(5, 8, 20, 0.95) 0%, rgba(5, 8, 20, 0.8) 50%, rgba(5, 8, 20, 0.4) 100%),
        url("/images/copa.webp") right 8% center / auto 140% no-repeat,
        radial-gradient(circle at 80% 50%, rgba(250, 204, 21, 0.25), transparent 55%);
}

/* Tonos */
[data-gl="fc"] .gl-hf-page .is-cyan { --tone: var(--gl-cyan-rgb); }
[data-gl="fc"] .gl-hf-page .is-yellow { --tone: 250, 204, 21; }
[data-gl="fc"] .gl-hf-page .is-green { --tone: 34, 197, 94; }
[data-gl="fc"] .gl-hf-page .is-magenta { --tone: 217, 70, 239; }
[data-gl="fc"] .gl-hf-page .is-orange { --tone: 251, 146, 60; }

[data-gl="fc"] .gl-hf-section { display: grid; gap: var(--gl-space-3); }
[data-gl="fc"] .gl-hf-section__head { display: grid; gap: 0.2rem; }

/* ---------- Campeones vigentes ---------- */
[data-gl="fc"] .gl-hf-current {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    gap: var(--gl-space-3);
}

[data-gl="fc"] .gl-hf-reign {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 0.35rem;
    padding: var(--gl-space-5) var(--gl-space-3) var(--gl-space-4);
    overflow: hidden;
    border-radius: var(--gl-radius-lg);
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

[data-gl="fc"] .gl-hf-reign:hover { transform: translateY(-3px); box-shadow: 0 14px 40px rgba(var(--tone), 0.2); }

[data-gl="fc"] .gl-hf-reign__cat {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.65rem;
    border: 1px solid rgba(var(--tone), 0.6);
    border-radius: var(--gl-radius-pill);
    color: rgb(var(--tone));
    font-size: var(--gl-text-xs);
    font-weight: var(--gl-weight-heavy);
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

[data-gl="fc"] .gl-hf-reign__logo {
    width: 96px;
    height: 96px;
    margin: var(--gl-space-2) 0;
    object-fit: contain;
    filter: drop-shadow(0 0 18px rgba(var(--tone), 0.45));
}

[data-gl="fc"] .gl-hf-reign__name {
    max-width: 100%;
    overflow: hidden;
    font-family: var(--gl-font-display);
    font-size: var(--gl-text-xl);
    font-style: italic;
    font-weight: var(--gl-weight-black);
    line-height: 1.1;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

[data-gl="fc"] .gl-hf-reign__tournament {
    display: -webkit-box;
    max-width: 100%;
    overflow: hidden;
    color: var(--gl-text-secondary);
    font-size: var(--gl-text-sm);
    font-weight: var(--gl-weight-bold);
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

[data-gl="fc"] .gl-hf-reign__final,
[data-gl="fc"] .gl-hf-reign__date { color: var(--gl-text-muted); font-size: var(--gl-text-xs); }
[data-gl="fc"] .gl-hf-reign__links { display: flex; gap: var(--gl-space-1); margin-top: var(--gl-space-1); }

/* ---------- Palmarés + ranking ---------- */
[data-gl="fc"] .gl-hf-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 400px);
    gap: var(--gl-space-4);
    align-items: start;
}

[data-gl="fc"] .gl-hf-palmares { display: grid; gap: var(--gl-space-3); min-width: 0; }

[data-gl="fc"] .gl-hf-tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--gl-space-3);
}

[data-gl="fc"] .gl-hf-tools .gl-tn-search { flex: 1 1 280px; margin: 0; }

[data-gl="fc"] .gl-hf-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--gl-text-secondary);
    font-size: var(--gl-text-sm);
    font-weight: var(--gl-weight-bold);
    cursor: pointer;
}

[data-gl="fc"] .gl-hf-toggle input { width: 18px; height: 18px; accent-color: var(--gl-cyan); }

[data-gl="fc"] .gl-hf-timeline,
[data-gl="fc"] .gl-hf-titles {
    display: grid;
    gap: var(--gl-space-3);
    margin: 0;
    padding: 0;
    list-style: none;
}

[data-gl="fc"] .gl-hf-year {
    position: relative;
    display: grid;
    gap: var(--gl-space-2);
    padding-left: var(--gl-space-5);
    border-left: 2px solid var(--gl-border-strong);
}

[data-gl="fc"] .gl-hf-year__label {
    position: relative;
    margin: 0;
    color: var(--gl-text);
    font-family: var(--gl-font-stats);
    font-size: var(--gl-text-2xl);
    font-weight: var(--gl-weight-black);
}

[data-gl="fc"] .gl-hf-year__label::before {
    content: "";
    position: absolute;
    top: 50%;
    left: calc(var(--gl-space-5) * -1 - 7px);
    width: 12px;
    height: 12px;
    border: 2px solid #05070d;
    border-radius: 50%;
    background: #facc15;
    box-shadow: 0 0 12px rgba(250, 204, 21, 0.7);
    transform: translateY(-50%);
}

[data-gl="fc"] .gl-hf-titles { gap: var(--gl-space-2); }

[data-gl="fc"] .gl-hf-title {
    display: grid;
    grid-template-columns: auto 48px minmax(0, 1fr) auto;
    align-items: center;
    gap: var(--gl-space-3);
    padding: 0.65rem 0.8rem;
    border: 1px solid var(--gl-border);
    border-left: 3px solid rgb(var(--tone));
    border-radius: var(--gl-radius-md);
    background: var(--gl-bg-inset);
}

[data-gl="fc"] .gl-hf-title__icon {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(var(--tone), 0.15);
    color: rgb(var(--tone));
}

[data-gl="fc"] .gl-hf-title__logo { width: 48px; height: 48px; object-fit: contain; }

[data-gl="fc"] .gl-hf-title__info { display: grid; min-width: 0; }
[data-gl="fc"] .gl-hf-title__info strong { overflow: hidden; font-size: var(--gl-text-md); text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
[data-gl="fc"] .gl-hf-title__info a { color: inherit; text-decoration: none; }
[data-gl="fc"] .gl-hf-title__info a:hover,
[data-gl="fc"] .gl-hf-title__info a:focus-visible { color: rgb(var(--tone)); text-decoration: underline; }
[data-gl="fc"] .gl-hf-title__tournament { overflow: hidden; color: var(--gl-text-secondary); font-size: var(--gl-text-sm); text-overflow: ellipsis; white-space: nowrap; }
[data-gl="fc"] .gl-hf-title__info small { color: var(--gl-text-muted); font-size: var(--gl-text-xs); }

[data-gl="fc"] .gl-hf-title__meta {
    display: grid;
    justify-items: end;
    gap: 0.25rem;
    color: var(--gl-text-muted);
    font-size: var(--gl-text-xs);
    white-space: nowrap;
}

[data-gl="fc"] .gl-hf-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.1rem 0.5rem;
    border: 1px solid rgba(var(--tone), 0.5);
    border-radius: var(--gl-radius-pill);
    color: rgb(var(--tone));
    font-size: 0.66rem;
    font-weight: var(--gl-weight-heavy);
    text-transform: uppercase;
}

[data-gl="fc"] .gl-hf-chip.is-historic { border-color: rgba(255, 255, 255, 0.25); color: var(--gl-text-secondary); }
[data-gl="fc"] .gl-hf-chip.is-3d { border-color: rgba(250, 204, 21, 0.6); color: #facc15; }

/* ---------- Ranking ---------- */
[data-gl="fc"] .gl-hf-ranking {
    position: sticky;
    top: calc(var(--gl-space-4) + 90px);
    display: grid;
    gap: var(--gl-space-3);
}

[data-gl="fc"] .gl-hf-podium {
    display: grid;
    gap: var(--gl-space-2);
    margin: 0;
    padding: 0;
    list-style: none;
}

[data-gl="fc"] .gl-hf-podium__item {
    --medal: 205, 127, 50;
    display: grid;
    grid-template-columns: auto 52px minmax(0, 1fr);
    grid-template-areas: "rank logo name" "rank logo total" "rank logo split";
    align-items: center;
    column-gap: var(--gl-space-3);
    padding: 0.7rem 0.85rem;
    border: 1px solid rgba(var(--medal), 0.5);
    border-radius: var(--gl-radius-md);
    background: linear-gradient(90deg, rgba(var(--medal), 0.16), transparent 70%), var(--gl-bg-inset);
}

[data-gl="fc"] .gl-hf-podium__item.is-1 { --medal: 250, 204, 21; }
[data-gl="fc"] .gl-hf-podium__item.is-2 { --medal: 203, 213, 225; }

[data-gl="fc"] .gl-hf-podium__rank {
    grid-area: rank;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgb(var(--medal));
    color: #111;
    font-family: var(--gl-font-stats);
    font-weight: var(--gl-weight-black);
}

[data-gl="fc"] .gl-hf-podium__item img { grid-area: logo; width: 52px; height: 52px; object-fit: contain; }
[data-gl="fc"] .gl-hf-podium__item strong { grid-area: name; overflow: hidden; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
[data-gl="fc"] .gl-hf-podium__item strong a { color: inherit; text-decoration: none; }
[data-gl="fc"] .gl-hf-podium__item strong a:hover { color: rgb(var(--medal)); }
[data-gl="fc"] .gl-hf-podium__total { grid-area: total; color: var(--gl-text-secondary); font-size: var(--gl-text-sm); }
[data-gl="fc"] .gl-hf-podium__total b { color: rgb(var(--medal)); font-family: var(--gl-font-stats); font-size: var(--gl-text-lg); }
[data-gl="fc"] .gl-hf-podium__split { grid-area: split; color: var(--gl-text-muted); font-size: var(--gl-text-xs); }

[data-gl="fc"] .gl-hf-club { display: inline-flex; align-items: center; gap: var(--gl-space-2); min-width: 0; }
[data-gl="fc"] .gl-hf-club img { width: 26px; height: 26px; object-fit: contain; flex-shrink: 0; }
[data-gl="fc"] .gl-hf-club a,
[data-gl="fc"] .gl-hf-club span { overflow: hidden; color: var(--gl-text); text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
[data-gl="fc"] .gl-hf-more { justify-self: center; }

/* El ranking conserva la alineación de columnas y desplaza solo su propio contenido en móviles. */
[data-gl="fc"] .gl-hf-ranking,
[data-gl="fc"] .gl-hf-table-wrap { min-width: 0; }
[data-gl="fc"] .gl-hf-table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(var(--gl-cyan-rgb), 0.72) rgba(var(--gl-cyan-rgb), 0.08);
}
[data-gl="fc"] .gl-hf-table-wrap::-webkit-scrollbar {
    height: 7px;
}
[data-gl="fc"] .gl-hf-table-wrap::-webkit-scrollbar-track {
    border-radius: var(--gl-radius-pill);
    background: rgba(var(--gl-cyan-rgb), 0.08);
}
[data-gl="fc"] .gl-hf-table-wrap::-webkit-scrollbar-thumb {
    border: 1px solid rgba(var(--gl-cyan-rgb), 0.22);
    border-radius: var(--gl-radius-pill);
    background: rgba(var(--gl-cyan-rgb), 0.72);
    box-shadow: 0 0 8px rgba(var(--gl-cyan-rgb), 0.24);
}
[data-gl="fc"] .gl-hf-table-wrap::-webkit-scrollbar-thumb:hover {
    background: var(--gl-cyan);
    box-shadow: 0 0 10px rgba(var(--gl-cyan-rgb), 0.4);
}
[data-gl="fc"] .gl-hf-table {
    width: 100%;
    min-width: 400px;
    table-layout: fixed;
}
[data-gl="fc"] .gl-hf-table th,
[data-gl="fc"] .gl-hf-table td { padding-inline: 0.55rem; }
[data-gl="fc"] .gl-hf-table th:first-child,
[data-gl="fc"] .gl-hf-table td:first-child { width: 34px; }
[data-gl="fc"] .gl-hf-table th:nth-child(2),
[data-gl="fc"] .gl-hf-table td:nth-child(2) { width: 45%; }
[data-gl="fc"] .gl-hf-table th:nth-child(n+3),
[data-gl="fc"] .gl-hf-table td:nth-child(n+3) { width: 37px; }
[data-gl="fc"] .gl-hf-table .gl-hf-club { max-width: 100%; }

@media (max-width: 575.98px) {
    [data-gl="fc"] .gl-hf-table { min-width: 400px; }
    [data-gl="fc"] .gl-hf-table th,
    [data-gl="fc"] .gl-hf-table td { padding-inline: 0.4rem; }
}

/* ---------- Carga ---------- */
[data-gl="fc"] .gl-hf-loading { display: grid; gap: var(--gl-space-4); }
[data-gl="fc"] .gl-hf-skeleton-card { height: 260px; border-radius: var(--gl-radius-lg); }
[data-gl="fc"] .gl-hf-skeleton-list { height: 520px; border-radius: var(--gl-radius-lg); }

/* ---------- Responsive ---------- */
@media (max-width: 1199.98px) {
    [data-gl="fc"] .gl-hf-layout { grid-template-columns: minmax(0, 1fr); }
    [data-gl="fc"] .gl-hf-ranking { position: static; }
}

@media (max-width: 575.98px) {
    [data-gl="fc"] .gl-hf-current { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gl-space-2); }
    [data-gl="fc"] .gl-hf-reign { padding: var(--gl-space-3) var(--gl-space-2); }
    [data-gl="fc"] .gl-hf-reign__logo { width: 64px; height: 64px; }
    [data-gl="fc"] .gl-hf-reign__name { font-size: var(--gl-text-md); }
    [data-gl="fc"] .gl-hf-reign__links .gl-btn { padding-inline: 0.5rem; }
    [data-gl="fc"] .gl-hf-year { padding-left: var(--gl-space-3); }
    [data-gl="fc"] .gl-hf-year__label::before { left: calc(var(--gl-space-3) * -1 - 7px); }
    [data-gl="fc"] .gl-hf-title { grid-template-columns: 40px minmax(0, 1fr); grid-template-areas: "logo info" "meta meta"; }
    [data-gl="fc"] .gl-hf-title__icon { display: none; }
    [data-gl="fc"] .gl-hf-title__logo { grid-area: logo; width: 40px; height: 40px; }
    [data-gl="fc"] .gl-hf-title__info { grid-area: info; }
    [data-gl="fc"] .gl-hf-title__meta { grid-area: meta; display: flex; flex-wrap: wrap; justify-content: flex-start; }
    [data-gl="fc"] .gl-hf-page .gl-tn-hero::after {
        background:
            linear-gradient(180deg, rgba(5, 8, 20, 0.75) 0%, rgba(5, 8, 20, 0.95) 70%),
            url("/images/copa.webp") right -30px top / auto 110% no-repeat;
    }
}

@media (prefers-reduced-motion: reduce) {
    [data-gl="fc"] .gl-hf-reign { transition: none; }
    [data-gl="fc"] .gl-hf-reign:hover { transform: none; }
}

/* ---------- Vitrina 3D ---------- */
[data-gl="fc"] .gl-hf-section__head h2 { scroll-margin-top: 110px; outline: none; }

[data-gl="fc"] .gl-hf-vitrina__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
    gap: var(--gl-space-4);
    align-items: start;
}

[data-gl="fc"] .gl-hf-stage {
    position: relative;
    height: clamp(360px, 56vh, 620px);
    overflow: hidden;
    border: 1px solid rgba(250, 204, 21, 0.35);
    border-radius: var(--gl-radius-lg);
    background: radial-gradient(circle at 50% 70%, rgba(250, 204, 21, 0.12), transparent 60%), #0a0a0b;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

/* Método del ranking y catálogo histórico de clubes (vista exclusiva Dios). */
[data-gl="fc"] .gl-hf-rank-method { display: grid; gap: var(--gl-space-3); color: var(--gl-text-secondary); line-height: 1.55; }
[data-gl="fc"] .gl-hf-rank-method p { margin: 0; }
[data-gl="fc"] .gl-hf-rank-method ol { display: grid; gap: var(--gl-space-2); margin: 0; padding-left: 1.4rem; }
[data-gl="fc"] .gl-hf-rank-method strong { color: var(--gl-text); }
[data-gl="fc"] .gl-history-identities { display: grid; gap: var(--gl-space-4); min-width: 0; }
[data-gl="fc"] .gl-history-identities__form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; align-items: end; gap: var(--gl-space-3); }
[data-gl="fc"] .gl-history-identities__form .gl-adm-field { min-width: 0; }
[data-gl="fc"] .gl-history-identities__suggestions { display: grid; gap: var(--gl-space-2); }
[data-gl="fc"] .gl-history-identities__suggestion { display: flex; align-items: center; justify-content: space-between; gap: var(--gl-space-3); min-width: 0; padding: var(--gl-space-3); border: 1px solid var(--gl-border); border-radius: var(--gl-radius-md); background: var(--gl-bg-inset); }
[data-gl="fc"] .gl-history-identities__suggestion > span { display: grid; min-width: 0; }
[data-gl="fc"] .gl-history-identities__suggestion strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
[data-gl="fc"] .gl-history-identities__suggestion small { color: var(--gl-text-muted); }
[data-gl="fc"] .gl-history-identities__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 350px), 1fr)); gap: var(--gl-space-3); min-width: 0; }
[data-gl="fc"] .gl-history-identity { display: grid; align-content: start; gap: var(--gl-space-3); min-width: 0; }
[data-gl="fc"] .gl-history-identity .gl-tn-panel__head,
[data-gl="fc"] .gl-history-identity .gl-tn-panel__head > div { min-width: 0; }
[data-gl="fc"] .gl-history-identity .gl-section-title { overflow-wrap: anywhere; }
[data-gl="fc"] .gl-history-identity__aliases { display: flex; flex-wrap: wrap; align-items: center; gap: var(--gl-space-2); min-width: 0; }
[data-gl="fc"] .gl-history-identity__aliases h3 { flex-basis: 100%; margin: 0; color: var(--gl-text-secondary); font-size: var(--gl-text-sm); }
[data-gl="fc"] .gl-history-identity__alias { display: inline-flex; align-items: center; gap: 0.45rem; max-width: 100%; padding: 0.3rem 0.55rem; border: 1px solid var(--gl-border); border-radius: var(--gl-radius-pill); color: var(--gl-text-secondary); font-size: var(--gl-text-xs); overflow-wrap: anywhere; }
[data-gl="fc"] .gl-history-identity__alias button { display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--gl-text-muted); }
[data-gl="fc"] .gl-history-identity__alias button:hover { background: rgba(var(--gl-danger-rgb), 0.12); color: var(--gl-danger); }
[data-gl="fc"] .gl-history-identity__add-alias { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--gl-space-2); min-width: 0; }
@media (max-width: 700px) {
    [data-gl="fc"] .gl-history-identities__form { grid-template-columns: minmax(0, 1fr); }
    [data-gl="fc"] .gl-history-identities__suggestion { align-items: flex-start; flex-direction: column; }
    [data-gl="fc"] .gl-history-identities__suggestion .gl-btn { width: 100%; }
}

/* museum.js fuerza position:relative en el contenedor: tamaño explícito */
[data-gl="fc"] .gl-hf-stage__canvas { width: 100%; height: 100%; }
[data-gl="fc"] .gl-hf-stage__canvas canvas { display: block; }

[data-gl="fc"] .gl-hf-stage__loader {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: var(--gl-space-2);
    color: #facc15;
    font-size: var(--gl-text-xs);
    font-weight: var(--gl-weight-heavy);
    letter-spacing: 1px;
    text-transform: uppercase;
    pointer-events: none;
}

[data-gl="fc"] .gl-hf-stage__placeholder {
    display: grid;
    place-content: center;
    justify-items: center;
    gap: var(--gl-space-2);
    height: 100%;
    padding: var(--gl-space-4);
    text-align: center;
}

[data-gl="fc"] .gl-hf-stage__placeholder > i { color: #facc15; font-size: 3rem; }
[data-gl="fc"] .gl-hf-stage__placeholder span { max-width: 360px; color: var(--gl-text-muted); font-size: var(--gl-text-sm); }

[data-gl="fc"] .gl-hf-stage__info {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 5;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--gl-space-3);
    padding: var(--gl-space-6, 2rem) var(--gl-space-4) var(--gl-space-4);
    background: linear-gradient(180deg, transparent, rgba(5, 7, 11, 0.95));
    pointer-events: none;
}

[data-gl="fc"] .gl-hf-stage__info div { display: grid; min-width: 0; }

[data-gl="fc"] .gl-hf-stage__info strong {
    overflow: hidden;
    font-family: var(--gl-font-display);
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    font-style: italic;
    font-weight: var(--gl-weight-black);
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

[data-gl="fc"] .gl-hf-stage__info small { color: var(--gl-text-secondary); }
[data-gl="fc"] .gl-hf-stage__info small i { color: #facc15; }
[data-gl="fc"] .gl-hf-stage__info img { width: 72px; height: 72px; object-fit: contain; filter: drop-shadow(0 0 16px rgba(250, 204, 21, 0.4)); }

[data-gl="fc"] .gl-hf-vitrina__list { display: grid; gap: var(--gl-space-2); }

[data-gl="fc"] .gl-hf-museum-item {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: center;
    gap: var(--gl-space-3);
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--gl-border);
    border-radius: var(--gl-radius-md);
    background: var(--gl-bg-inset);
    color: var(--gl-text);
    text-align: left;
}

[data-gl="fc"] .gl-hf-museum-item:hover { border-color: rgba(250, 204, 21, 0.5); }
[data-gl="fc"] .gl-hf-museum-item.is-active { border-color: #facc15; background: rgba(250, 204, 21, 0.1); }
[data-gl="fc"] .gl-hf-museum-item img { width: 44px; height: 44px; object-fit: contain; }
[data-gl="fc"] .gl-hf-museum-item span { display: grid; min-width: 0; }
[data-gl="fc"] .gl-hf-museum-item strong,
[data-gl="fc"] .gl-hf-museum-item small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
[data-gl="fc"] .gl-hf-museum-item small { color: var(--gl-text-muted); font-size: var(--gl-text-xs); }

[data-gl="fc"] .gl-hf-vitrina__actions { display: flex; flex-wrap: wrap; gap: var(--gl-space-2); margin-top: var(--gl-space-1); }

/* Botón de detalle en el palmarés */
[data-gl="fc"] .gl-hf-title__more {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: rgb(var(--tone));
    font-size: var(--gl-text-xs);
    font-weight: var(--gl-weight-heavy);
    text-transform: uppercase;
}

[data-gl="fc"] .gl-hf-title__more:hover,
[data-gl="fc"] .gl-hf-title__more:focus-visible { text-decoration: underline; }

/* ---------- Detalle del título ---------- */
[data-gl="fc"] .gl-hf-detail { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gl-space-4); }

[data-gl="fc"] .gl-hf-detail__head {
    display: flex;
    align-items: center;
    gap: var(--gl-space-3);
}

[data-gl="fc"] .gl-hf-detail__head > img { width: 72px; height: 72px; object-fit: contain; filter: drop-shadow(0 0 16px rgba(var(--tone), 0.45)); }
[data-gl="fc"] .gl-hf-detail__head div { display: grid; justify-items: start; gap: 0.25rem; min-width: 0; }
[data-gl="fc"] .gl-hf-detail__head strong { font-size: var(--gl-text-lg); overflow-wrap: anywhere; }
[data-gl="fc"] .gl-hf-detail__head small { color: var(--gl-text-muted); }

[data-gl="fc"] .gl-hf-final {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: var(--gl-space-3);
    padding: var(--gl-space-3);
    border: 1px solid rgba(var(--tone), 0.4);
    border-radius: var(--gl-radius-md);
    background: rgba(var(--tone), 0.06);
}

[data-gl="fc"] .gl-hf-final__team { display: grid; justify-items: center; gap: 0.3rem; min-width: 0; text-align: center; opacity: 0.7; }
[data-gl="fc"] .gl-hf-final__team.is-winner { opacity: 1; }
[data-gl="fc"] .gl-hf-final__team img { width: 48px; height: 48px; object-fit: contain; }
[data-gl="fc"] .gl-hf-final__team b { max-width: 100%; overflow: hidden; font-size: var(--gl-text-sm); text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
[data-gl="fc"] .gl-hf-final__score { font-family: var(--gl-font-stats); font-size: var(--gl-text-3xl, 2rem); font-weight: var(--gl-weight-black); }
[data-gl="fc"] .gl-hf-final__score i { color: var(--gl-text-muted); font-style: normal; }

[data-gl="fc"] .gl-hf-mvp {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) auto;
    grid-template-areas: "badge badge badge" "avatar info stats";
    align-items: center;
    gap: var(--gl-space-2) var(--gl-space-3);
    padding: var(--gl-space-3);
    border: 1px solid rgba(250, 204, 21, 0.5);
    border-radius: var(--gl-radius-md);
    background: linear-gradient(90deg, rgba(250, 204, 21, 0.12), transparent 70%);
}

[data-gl="fc"] .gl-hf-mvp__badge { grid-area: badge; color: #facc15; font-size: var(--gl-text-xs); font-weight: var(--gl-weight-heavy); text-transform: uppercase; }

[data-gl="fc"] .gl-hf-mvp__avatar {
    grid-area: avatar;
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border: 2px solid #facc15;
    border-radius: 50%;
    background: var(--gl-bg-inset) center / cover no-repeat;
    font-weight: var(--gl-weight-black);
}

[data-gl="fc"] .gl-hf-mvp__info { grid-area: info; display: grid; min-width: 0; }
[data-gl="fc"] .gl-hf-mvp__info a { color: var(--gl-text); text-decoration: none; }
[data-gl="fc"] .gl-hf-mvp__info strong { font-size: var(--gl-text-lg); text-transform: uppercase; }
[data-gl="fc"] .gl-hf-mvp__info small { color: var(--gl-text-muted); }

[data-gl="fc"] .gl-hf-mvp__stats { grid-area: stats; display: flex; gap: var(--gl-space-3); margin: 0; text-align: center; }
[data-gl="fc"] .gl-hf-mvp__stats dt { color: var(--gl-text-muted); font-size: var(--gl-text-xs); text-transform: uppercase; }
[data-gl="fc"] .gl-hf-mvp__stats dd { margin: 0; font-family: var(--gl-font-stats); font-size: var(--gl-text-xl); font-weight: var(--gl-weight-black); }

[data-gl="fc"] .gl-hf-roster tr.is-mvp td { background: rgba(250, 204, 21, 0.08); }
[data-gl="fc"] .gl-hf-roster .gl-tn-avatar { background-position: center; background-size: cover; }

[data-gl="fc"] .gl-hf-detail__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--gl-space-2); }

@media (max-width: 991.98px) {
    [data-gl="fc"] .gl-hf-vitrina__layout { grid-template-columns: minmax(0, 1fr); }
    [data-gl="fc"] .gl-hf-vitrina__list { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
    [data-gl="fc"] .gl-hf-vitrina__actions { grid-column: 1 / -1; }
}

@media (max-width: 575.98px) {
    [data-gl="fc"] .gl-hf-stage { height: 320px; }
    [data-gl="fc"] .gl-hf-mvp { grid-template-columns: 56px minmax(0, 1fr); grid-template-areas: "badge badge" "avatar info" "stats stats"; }
    [data-gl="fc"] .gl-hf-mvp__avatar { width: 56px; height: 56px; }
    [data-gl="fc"] .gl-hf-mvp__stats { justify-content: space-around; }
    [data-gl="fc"] .gl-hf-final__score { font-size: var(--gl-text-2xl); }
    [data-gl="fc"] .gl-hf-detail__actions .gl-btn { flex: 1; justify-content: center; }
}

/* La tabla de la plantilla hace scroll dentro de su caja, no en todo el modal */
[data-gl="fc"] .gl-hf-detail .gl-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
[data-gl="fc"] .gl-hf-roster td:nth-child(2) { white-space: nowrap; }
