/* Pill hero + select mobile — Signal Lime legible sobre fondo oscuro */
.sw-res-hero-pill,
.sw-res-dist-select-mobile {
    border: 1px solid var(--sw-signal-35);
    border-radius: 9999px;
    background-color: var(--sw-ink-deep);
    color: var(--sw-signal);
    -webkit-text-fill-color: var(--sw-signal);
    box-shadow: 0 0 18px var(--sw-signal-15);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 800;
}
.sw-res-hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.45rem 0.9rem;
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    line-height: 1;
}
.sw-res-aviso-prov {
    margin-bottom: 1.5rem;
    border-radius: 1rem;
    border: 1px solid var(--sw-orange-35);
    background: rgba(10, 36, 28, 0.72);
    padding: 0.85rem 1.1rem;
    text-align: left;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(6px);
}
.sw-res-aviso-prov__kicker {
    margin: 0 0 0.35rem;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--sw-orange);
}
.sw-res-aviso-prov__text {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--sw-soft);
}
/* Mobile: dropdown de distancia */
.sw-res-dist-select-mobile {
    display: block;
    width: 100%;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    -webkit-text-fill-color: var(--sw-signal);
    color-scheme: dark;
    padding: 0.9rem 2.85rem 0.9rem 1.15rem;
    font-size: 1rem;
    line-height: 1.2;
    letter-spacing: 0.08em;
    text-transform: none;
    outline: none;
    transition: background-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}
.sw-res-dist-select-mobile:required:invalid {
    color: var(--sw-signal-45);
    -webkit-text-fill-color: var(--sw-signal-45);
}
.sw-res-dist-select-mobile:focus {
    background-color: rgba(5, 28, 17, 0.94);
    color: var(--sw-signal);
    -webkit-text-fill-color: var(--sw-signal);
    box-shadow: 0 0 22px var(--sw-signal-35);
}
.sw-res-dist-select-mobile option {
    color: var(--sw-signal);
    background-color: #062115;
    font-weight: 700;
}
.sw-res-dist-select-sr {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}
.sw-res-dist-home {
    padding: 0.15rem 0 1.25rem;
}
.sw-res-dist-home.is-hidden {
    display: none !important;
}
.sw-res-dist-home__title {
    margin: 0 0 0.9rem;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #6b7280;
}
.sw-res-dist-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}
.sw-res-dist-card {
    appearance: none;
    -webkit-appearance: none;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.45rem;
    min-height: 7.25rem;
    margin: 0;
    padding: 1rem 1rem 0.95rem 1.15rem;
    border: 0;
    border-radius: 1.2rem;
    background: #fff;
    box-shadow: 0 10px 28px rgba(17, 24, 39, 0.07);
    text-align: left;
    cursor: pointer;
}
.sw-res-dist-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: var(--sw-signal);
}
.sw-res-dist-card--wide {
    grid-column: 1 / -1;
    min-height: 6.25rem;
}
.sw-res-dist-card:active {
    transform: scale(0.985);
}
.sw-res-dist-card__kicker {
    color: #16a34a;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    line-height: 1;
}
.sw-res-dist-card__name {
    color: #111827;
    font-size: clamp(1.25rem, 5.4vw, 1.85rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.05;
    word-break: break-word;
}
.sw-res-dist-card__meta {
    color: #6b7280;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.2;
}
.sw-res-dist-extra {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-top: 0.75rem;
}
.sw-res-dist-extra--one {
    grid-template-columns: 1fr;
}
.sw-res-dist-extra__btn {
    appearance: none;
    -webkit-appearance: none;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
    min-height: 4.4rem;
    margin: 0;
    padding: 0.9rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 1.1rem;
    background: #fff;
    text-align: left;
    cursor: pointer;
}
.sw-res-dist-extra__btn:active {
    transform: scale(0.985);
}
.sw-res-dist-extra__kicker {
    color: #16a34a;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    line-height: 1;
}
.sw-res-dist-extra__name {
    color: #111827;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
}
.sw-res-dist-switch {
    display: none;
    flex-wrap: nowrap;
    gap: 0.32rem;
    margin: 0 0 0.85rem;
}
.sw-res-dist-switch.is-open {
    display: flex;
}
.sw-res-dist-chip {
    flex: 0 0 auto;
    margin: 0;
    padding: 0.48rem 0.62rem;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    background: #fff;
    color: #111827;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.1;
    cursor: pointer;
}
.sw-res-dist-chip.is-on {
    border-color: #111827;
    background: #111827;
    color: #fff;
}
/* Botón distancia activo en el hero: fondo blanco + texto verde oscuro (legible). */
.tab-btn.sw-res-nav-btn.is-on {
    background-color: #ffffff !important;
    color: var(--sw-move, #103828) !important;
    border-color: var(--sw-signal, #92FF5F) !important;
    box-shadow: 0 10px 30px var(--sw-signal-25, rgba(146, 255, 95, 0.25));
}
.tab-btn.sw-res-nav-btn.is-on .tab-title {
    color: var(--sw-move, #103828) !important;
}
.tab-btn.sw-res-nav-btn.is-on .badge-conteo {
    background: var(--sw-signal, #92FF5F) !important;
    color: var(--sw-move, #103828) !important;
}
/*
 * El CSS compilado de Tailwind NO incluye text-[var(--sw-move)].
 * Sin esto, títulos como PODIOS heredan blanco del body y no se leen
 * sobre el fondo claro del panel.
 */
.text-\[var\(--sw-move\)\] {
    color: var(--sw-move, #103828) !important;
}
/* Títulos Podios / Por Edad: el body es texto blanco; acá hay fondo claro. */
.sw-res-panel-title,
.sw-res-podios-hero h2,
.sw-res-podios-hero .sw-res-panel-title {
    color: #103828 !important;
}
@media (min-width: 768px) {
    .sw-res-dist-home {
        padding: 0.35rem 0 1.75rem;
    }
    .sw-res-dist-home__title {
        margin-bottom: 1.1rem;
        font-size: 0.8rem;
        letter-spacing: 0.18em;
    }
    .sw-res-dist-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 1rem;
    }
    .sw-res-dist-card {
        min-height: 8.25rem;
        padding: 1.2rem 1.2rem 1.1rem 1.35rem;
        border-radius: 1.35rem;
    }
    .sw-res-dist-card--wide {
        min-height: 7rem;
    }
    .sw-res-dist-card:hover {
        box-shadow: 0 14px 34px rgba(17, 24, 39, 0.1);
        transform: translateY(-1px);
    }
    .sw-res-dist-card__name {
        font-size: clamp(1.45rem, 1.8vw, 2rem);
    }
    .sw-res-dist-card__meta {
        font-size: 0.86rem;
    }
    .sw-res-dist-extra {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem;
        margin-top: 1rem;
        max-width: 36rem;
    }
    .sw-res-dist-extra--one {
        max-width: 18rem;
    }
    .sw-res-dist-extra__btn {
        min-height: 5rem;
        padding: 1rem 1.15rem;
    }
    .sw-res-dist-extra__name {
        font-size: 1.2rem;
    }
    .sw-res-dist-switch.is-open {
        gap: 0.5rem;
        margin: 0 0 1.15rem;
    }
    .sw-res-dist-chip {
        padding: 0.55rem 0.95rem;
        font-size: 0.9rem;
    }
}
/* Tarjeta de resultado: puesto, foto, nombre, tiempo. Misma en celular y escritorio. */
.sw-res-desktop-table {
    display: none !important;
}
.sw-res-mobile-list,
.sw-res-podio-cards {
    display: flex !important;
    flex-direction: column;
    gap: 0.7rem;
}
.sw-res-results-shell > .sw-res-pagination {
    display: flex !important;
}
.sw-res-m-card {
    display: flex !important;
    align-items: stretch !important;
    gap: 0.7rem !important;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 0 0.75rem 0 0 !important;
    border: 1px solid #eceff3 !important;
    border-left-width: 1px !important;
    border-radius: 1.15rem !important;
    background: #fff !important;
    box-shadow: 0 8px 22px rgba(17, 24, 39, 0.06) !important;
    position: relative !important;
    overflow: visible !important;
    cursor: pointer;
}
.sw-res-podio-cards .sw-res-m-card {
    cursor: default;
    min-width: 0;
    max-width: 100%;
}
.sw-res-podio-gender-grid,
.sw-res-podio-gender-col,
.sw-res-podio-cards,
.sw-res-podio-block,
.sw-res-podio-block-body {
    min-width: 0;
    max-width: 100%;
}
.sw-res-m-card__time-block .sw-res-podio-video {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.28rem;
    margin-top: 0.28rem;
    align-self: flex-end;
    white-space: nowrap;
}
.sw-res-m-card__actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.4rem;
    margin-top: 0.28rem;
    align-self: flex-end;
    flex-wrap: wrap;
}
.sw-res-m-card__video-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.55rem;
    height: 1.55rem;
    border-radius: 999px;
    background: rgba(146, 255, 95, 0.16);
    border: 1px solid rgba(146, 255, 95, 0.55);
    color: #1a7a2a;
    flex-shrink: 0;
    pointer-events: none;
}
.sw-res-m-card__video-badge svg {
    width: 0.85rem;
    height: 0.85rem;
    display: block;
}
.sw-res-m-card__detalles {
    display: inline-flex;
    align-items: center;
    gap: 0.12rem;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #1f2937;
    line-height: 1;
    white-space: nowrap;
}
.sw-res-m-card__detalles .sw-res-m-card__chev {
    position: static !important;
    transform: none !important;
    margin: 0 !important;
    font-size: 1rem;
    font-weight: 900;
    color: #6b7280;
    line-height: 1;
}
.sw-res-gen-pills {
    display: flex;
    gap: 0.45rem;
}
.sw-res-gen-pill {
    flex: 1 1 0;
    border: 1px solid #e6e8ee;
    background: #fff;
    color: #1f2937;
    border-radius: 999px;
    padding: 0.72rem 0.7rem;
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04);
    cursor: pointer;
}
.sw-res-gen-pill.is-on {
    background: #8ef25a;
    border-color: #8ef25a;
    color: var(--sw-move);
    font-weight: 800;
}
.sw-res-list-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.15rem 0.35rem 0.15rem 0.2rem;
    color: #9aa3af;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.sw-res-m-card__avatar {
    position: relative !important;
    display: block !important;
    width: 5.5rem !important;
    height: auto !important;
    min-height: 100% !important;
    max-height: none !important;
    flex: 0 0 5.5rem !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    border-radius: 1.15rem 0 0 1.15rem !important;
    background: #e7edf3 !important;
    align-self: stretch !important;
    grid-area: auto !important;
    box-shadow: none !important;
}
.sw-res-m-card__avatar > img,
.sw-res-m-card__avatar img,
.sw-res-m-card__avatar > span:not(.sw-res-m-card__pos) {
    position: absolute !important;
    inset: 0 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    object-fit: cover !important;
    object-position: top center !important;
    border-radius: 0 !important;
    overflow: hidden !important;
}
.sw-res-m-card__iniciales {
    background: #d7dee8 !important;
    color: #243044 !important;
    font-size: 1.35rem !important;
    font-weight: 800 !important;
    letter-spacing: -0.03em;
}
.sw-res-m-card__pos {
    position: absolute !important;
    left: 0 !important;
    top: 50% !important;
    bottom: auto !important;
    right: auto !important;
    transform: translate(-42%, -50%);
    z-index: 3;
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: auto !important;
    min-width: 1.7rem !important;
    height: 1.7rem !important;
    padding: 0 0.32rem !important;
    flex: none !important;
    border-radius: 0.48rem !important;
    border: none !important;
    background: #1c2433 !important;
    color: #fff !important;
    box-shadow: 0 3px 8px rgba(15, 23, 42, 0.28);
    grid-row: auto !important;
    grid-column: auto !important;
}
.sw-res-m-card__pos .pos-num {
    font-size: 0.78rem !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    color: #fff !important;
}
.sw-res-m-card__main {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    padding: 0.7rem 0 !important;
    gap: 0.15rem;
}
.sw-res-m-card__name {
    margin: 0 !important;
    font-size: 1.02rem !important;
    font-weight: 800 !important;
    line-height: 1.15 !important;
    letter-spacing: -0.02em;
    color: #111827 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}
@media (min-width: 768px) {
    .sw-res-m-card__name {
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
        word-break: break-word;
    }
}
.sw-res-m-card__submeta {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: flex-start !important;
    gap: 0.05rem !important;
    margin: 0.18rem 0 0 !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    line-height: 1.25 !important;
    color: #6b7280 !important;
}
.sw-res-m-card__submeta-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}
.sw-res-m-card__submeta > span::after {
    content: none !important;
}
.sw-res-m-card__submeta-line > span:not(:last-child)::after {
    content: "·" !important;
    margin: 0 0.28rem;
    color: #c5cad1;
    font-weight: 500;
}
.sw-res-m-card__submeta-pais,
.sw-res-m-card__submeta-cat {
    display: block;
    color: #6b7280;
}
.sw-res-m-card__submeta-dorsal,
.sw-res-dorsal {
    font-weight: 800 !important;
    color: #111827;
}
.sw-res-dorsal--m {
    color: #0ea5e9 !important;
}
.sw-res-dorsal--f {
    color: #ec4899 !important;
}
.sw-res-desk-meta {
    column-gap: 0 !important;
}
.sw-res-desk-meta > span:not(:last-child)::after {
    content: "·";
    margin: 0 0.28rem;
    color: #c5cad1;
    font-weight: 500;
}
.sw-res-m-card__time-block {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    align-self: center !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
    text-align: right;
}
.sw-res-m-card__tiempo-label {
    display: block !important;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #9ca3af;
    line-height: 1.1;
}
.sw-res-m-card__time {
    margin: 0.08rem 0 0 !important;
    font-family: "Barlow", sans-serif !important;
    font-size: 1.35rem !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    letter-spacing: -0.06em;
    color: #111827 !important;
}
.sw-res-m-card__chev {
    flex: 0 0 auto;
    align-self: center !important;
    color: #d1d5db;
    font-size: 1.55rem;
    font-weight: 300;
    line-height: 1;
}
@media (min-width: 768px) {
    .sw-res-mobile-list .sw-res-m-card__name,
    .sw-res-podio-cards .sw-res-m-card__name {
        font-size: 1.15rem !important;
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
        word-break: break-word;
    }
    .sw-res-mobile-list .sw-res-m-card__time,
    .sw-res-podio-cards .sw-res-m-card__time {
        font-size: 1.55rem !important;
    }
}
/* DataTables: mantener look SportWENS, solo delegar búsqueda/paginación al navegador. */
.sw-res-datatables-active .sw-res-desktop-table {
    display: none !important;
}
.sw-res-datatables-active .sw-res-mobile-list {
    display: flex !important;
}
.sw-res-datatables-active .dt-container {
    font-family: inherit;
}
.sw-res-datatables-active .dt-container .dt-layout-row {
    margin: 0;
}
.sw-res-datatables-active .dt-container .dt-layout-table {
    margin: 0;
}
.sw-res-datatables-active .dt-container .dt-length,
.sw-res-datatables-active .dt-container .dt-info,
.sw-res-datatables-active .dt-container .dt-paging {
    font-size: 0.8rem;
    font-weight: 800;
    color: #6b7280;
}
.sw-res-datatables-active .sw-dt-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem;
    border-top: 1px solid #f3f4f6;
    background: #fff;
}
.sw-res-datatables-active .dt-paging button {
    border-radius: 999px !important;
    border: 1px solid #e5e7eb !important;
    background: #fff !important;
    color: var(--sw-move) !important;
    font-weight: 900 !important;
    padding: 0.45rem 0.75rem !important;
    margin: 0 0.1rem !important;
}
.sw-res-datatables-active .dt-paging button.current,
.sw-res-datatables-active .dt-paging button:hover {
    border-color: var(--sw-signal) !important;
    background: var(--sw-signal-15) !important;
}
@media (max-width: 767px) {
    .sw-res-datatables-active .sw-res-table-card {
        border-radius: 1.25rem !important;
    }
    .sw-res-datatables-active .sw-res-table {
        min-width: 720px;
    }
    .sw-res-datatables-active .sw-dt-footer {
        align-items: stretch;
        flex-direction: column;
    }
}

/* Modal detalle atleta: casi ancho completo en móvil; escala suave en desktop.
   z-index > header sticky (#sw-site-top-sticky = 100) para que la foto no quede bajo la barra. */
#modal-atleta {
    z-index: 110;
}
#modal-card.sw-r-atleta-modal-card {
    transform: scale(1);
    transform-origin: center center;
    max-width: min(28rem, calc(100vw - 1.25rem));
}
#modal-card.sw-r-atleta-modal-card.sw-r-atleta-modal-card--open {
    transform: scale(1);
}
@media (min-width: 768px) {
    #modal-card.sw-r-atleta-modal-card {
        transform: scale(1.08);
        max-width: 28rem;
    }
    #modal-card.sw-r-atleta-modal-card.sw-r-atleta-modal-card--open {
        transform: scale(1.12);
    }
}
@media (max-width: 380px) {
    #modal-card.sw-r-atleta-modal-card {
        max-width: calc(100vw - 1rem);
    }
}

/* Hero modal atleta: foto grande + datos encima (mockup SportWENS). */
.sw-r-modal-hero-wrap {
    position: relative;
}
.sw-r-modal-hero-wrap--empty {
    padding: 1.75rem 0 0;
    background: linear-gradient(180deg, #1f2937 0%, var(--sw-move) 100%);
}
.sw-r-modal-hero-wrap--empty .sw-r-modal-hero-panel {
    position: static;
    padding: 0.85rem 1.25rem 1.15rem;
    background: var(--sw-move);
    text-align: center;
}
.sw-r-modal-hero-wrap--empty .sw-r-modal-hero-panel-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}
.sw-r-modal-hero-wrap--empty .sw-r-modal-hero-left,
.sw-r-modal-hero-wrap--empty .sw-r-modal-hero-right {
    text-align: center;
    width: 100%;
}
.sw-r-modal-hero-wrap--empty .sw-r-modal-hero-dist {
    justify-content: center;
}
.sw-r-modal-hero-wrap--empty .sw-r-modal-hero-video {
    margin-left: auto;
    margin-right: auto;
}
.sw-r-modal-hero-wrap--empty .sw-r-modal-hero-name {
    font-size: 1.65rem;
}
.sw-r-modal-hero-wrap--photo {
    background: #050505;
}
.sw-r-modal-hero-wrap--photo .sw-r-modal-hero--photo {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    max-height: min(54vh, 22rem);
    overflow: hidden;
    background: var(--sw-ink-deep);
}
.sw-r-modal-hero-wrap--photo .sw-r-modal-hero-panel {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 5;
    padding: 2.75rem 0.95rem 1rem;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.96) 0%,
        rgba(0, 0, 0, 0.78) 42%,
        rgba(0, 0, 0, 0.2) 72%,
        transparent 100%
    );
}
.sw-r-modal-hero-wrap--photo .sw-r-modal-hero-panel-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.65rem 0.75rem;
    align-items: end;
}
.sw-r-modal-hero-wrap--photo .sw-r-modal-hero-left {
    text-align: left;
}
.sw-r-modal-hero-wrap--photo .sw-r-modal-hero-right {
    text-align: right;
}
.sw-r-modal-hero-wrap--photo .sw-r-modal-hero-dist {
    display: inline-flex;
    max-width: 100%;
}
.sw-r-modal-hero-wrap--photo .sw-r-modal-hero-name {
    word-break: break-word;
}
.sw-r-modal-hero-wrap--photo .sw-r-modal-hero-video {
    margin-left: auto;
}
.sw-r-modal-time-block {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.32rem;
    padding: 0.52rem 0.63rem 0.58rem;
    border-radius: 0.98rem;
    background: rgba(0, 0, 0, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.sw-r-modal-time-row {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 0.23rem;
    max-width: 100%;
    white-space: nowrap;
}
.sw-r-modal-time-label {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(209, 213, 219, 0.82);
    line-height: 1;
    margin: 0;
    flex-shrink: 0;
}
.sw-r-modal-guntime {
    font-weight: 900;
    color: var(--sw-signal);
    letter-spacing: -0.04em;
    line-height: 1;
    text-shadow: 0 0 18px var(--sw-signal-45);
    flex-shrink: 0;
}
.sw-r-modal-chip-line {
    margin: 0;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(156, 163, 175, 0.9);
}
.sw-r-modal-chip-line #m-chiptime {
    color: rgba(229, 231, 235, 0.92);
    letter-spacing: 0;
    text-transform: none;
    font-variant-numeric: tabular-nums;
}
.sw-r-modal-time-block .sw-r-modal-hero-video {
    margin-top: 0.17rem;
    padding: 0.29rem 0.86rem;
    font-size: 11px;
    letter-spacing: 0.115em;
}
.sw-r-modal-time-block .sw-r-modal-hero-video svg {
    width: 0.86rem;
    height: 0.86rem;
}
.sw-r-modal-hero-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}
.sw-r-modal-hero--placeholder {
    width: 5.75rem;
    height: 5.75rem;
    margin: 0 auto;
    border-radius: 9999px;
    overflow: hidden;
}
@media (min-width: 640px) {
    .sw-r-modal-hero--placeholder {
        width: 6.5rem;
        height: 6.5rem;
    }
    .sw-r-modal-hero-wrap--photo .sw-r-modal-hero--photo {
        aspect-ratio: 5 / 6;
        max-height: min(50vh, 24rem);
    }
    .sw-r-modal-hero-wrap--photo .sw-r-modal-hero-panel {
        padding: 3rem 1.25rem 1.15rem;
    }
}
.sw-r-modal-close--on-photo {
    background: rgba(0, 0, 0, 0.45);
}
#modal-atleta .sw-r-modal-hero-dist:not(.hidden) {
    display: inline-flex;
}
#modal-atleta .sw-r-modal-hero-video:not(.hidden) {
    display: inline-flex;
}

/* Tiempo oficial (+15%) */
.sw-r-modal-guntime {
    font-size: clamp(1.9rem, 5.5vw, 2.47rem);
}
@media (min-width: 640px) {
    .sw-r-modal-guntime {
        font-size: clamp(2.13rem, 4.15vw, 2.7rem);
    }
}
@media (min-width: 768px) {
    .sw-r-modal-guntime {
        font-size: clamp(2.3rem, 3.7vw, 2.93rem);
    }
}

@media (max-width: 639px) {
    #modal-atleta {
        align-items: center;
        justify-content: center;
        padding: max(0.55rem, env(safe-area-inset-top)) 0.5rem max(0.55rem, env(safe-area-inset-bottom));
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    #modal-card.sw-r-atleta-modal-card {
        max-width: 100%;
        max-height: min(90vh, 900px);
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: 1.35rem;
        margin: auto;
        flex-shrink: 0;
    }
    .sw-r-modal-hero-wrap--photo .sw-r-modal-hero--photo {
        aspect-ratio: 4 / 5;
        max-height: min(42vh, 19.5rem);
        min-height: 0;
    }
    .sw-r-modal-hero-wrap--photo .sw-r-modal-hero-img {
        object-position: top center;
    }
    .sw-r-modal-hero-wrap--photo .sw-r-modal-hero-panel {
        padding: 2.1rem 0.7rem 0.75rem;
        background: linear-gradient(
            to top,
            rgba(0, 0, 0, 0.94) 0%,
            rgba(0, 0, 0, 0.72) 45%,
            rgba(0, 0, 0, 0.22) 78%,
            transparent 100%
        );
    }
    .sw-r-modal-hero-wrap--photo .sw-r-modal-hero-panel-grid {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 0.45rem 0.5rem;
        align-items: end;
    }
    .sw-r-modal-hero-wrap--photo .sw-r-modal-hero-left {
        text-align: left;
        text-shadow: 0 1px 10px rgba(0, 0, 0, 0.55);
    }
    .sw-r-modal-hero-wrap--photo .sw-r-modal-hero-right {
        text-align: right;
        width: auto;
        max-width: none;
        padding: 0;
        margin: 0;
        border: none;
    }
    .sw-r-modal-hero-wrap--photo .sw-r-modal-time-block {
        padding: 0.4rem 0.5rem 0.45rem;
        border-radius: 0.75rem;
        gap: 0.22rem;
    }
    .sw-r-modal-hero-wrap--photo .sw-r-modal-hero-name {
        font-size: clamp(1.05rem, 4.6vw, 1.3rem);
        line-height: 1.05;
        margin-bottom: 0.15rem;
    }
    .sw-r-modal-hero-wrap--photo #m-subheader-lines {
        font-size: 9px;
        letter-spacing: 0.11em;
    }
    .sw-r-modal-hero-wrap--photo .sw-r-modal-hero-dist {
        margin-top: 0.4rem;
        padding: 0.26rem 0.55rem;
        font-size: 9px;
    }
    .sw-r-modal-hero-wrap--photo .sw-r-modal-guntime {
        font-size: clamp(1.55rem, 7.15vw, 1.95rem);
    }
    .sw-r-modal-hero-wrap--photo .sw-r-modal-time-row {
        gap: 0.21rem;
        align-items: flex-end;
    }
    .sw-r-modal-hero-wrap--photo .sw-r-modal-time-label {
        font-size: 8.5px;
        letter-spacing: 0.115em;
    }
    .sw-r-modal-hero-wrap--photo .sw-r-modal-chip-line {
        font-size: 8.5px;
    }
    .sw-r-modal-hero-wrap--photo .sw-r-modal-hero-video {
        margin-left: auto;
        margin-right: 0;
        margin-top: 0.12rem;
        padding: 0.32rem 0.63rem;
        font-size: 10px;
        letter-spacing: 0.14em;
    }
    .sw-r-modal-hero-wrap--photo .sw-r-modal-hero-video svg {
        width: 0.86rem;
        height: 0.86rem;
    }
    .sw-r-modal-hero-wrap--empty .sw-r-modal-guntime {
        font-size: clamp(1.78rem, 8.05vw, 2.24rem);
    }
    .sw-r-modal-stats {
        padding: 0.7rem 0.55rem 0.8rem;
    }
    #m-cat-stat-row {
        margin-top: 0.7rem !important;
        padding-top: 0.7rem !important;
    }
    #m-stats-grid .sw-r-modal-stat {
        padding-left: 0.3rem;
        padding-right: 0.3rem;
    }
    #m-stats-grid .sw-r-modal-stat > div:first-child {
        font-size: 8px;
        letter-spacing: 0.11em;
        margin-bottom: 0.3rem;
    }
    #m-pos-gral,
    #m-pos-gen,
    #m-pos-cat {
        font-size: clamp(1.45rem, 6.2vw, 1.85rem);
    }
    #m-ritmo {
        font-size: clamp(1.2rem, 5vw, 1.5rem);
    }
    .sw-r-modal-actions {
        margin-top: 0.85rem;
        padding-top: 0.85rem;
    }
    .sw-r-modal-actions__foto {
        padding: 0.72rem 0.8rem;
        gap: 0.65rem;
    }
    .sw-r-modal-actions__foto-icon {
        width: 2.35rem;
        height: 2.35rem;
    }
    .sw-r-modal-actions__foto-title {
        font-size: 0.78rem;
    }
    .sw-r-modal-actions__btn {
        padding: 0.7rem 0.65rem;
        min-height: 3.35rem;
    }
}

/* Acciones del modal: foto / Facebook / certificado */
.sw-r-modal-actions {
    margin-top: 1.05rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}
.sw-r-modal-actions__foto {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    width: 100%;
    text-decoration: none;
    color: #08120c;
    background:
        linear-gradient(135deg, rgba(200, 255, 0, 0.95) 0%, rgba(180, 245, 40, 0.92) 55%, rgba(255, 214, 0, 0.9) 100%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 1.15rem;
    padding: 0.85rem 0.95rem;
    box-shadow:
        0 10px 28px rgba(200, 255, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.35);
    transition: transform 0.18s ease, filter 0.18s ease, box-shadow 0.18s ease;
}
.sw-r-modal-actions__foto.hidden {
    display: none !important;
}
.sw-r-modal-actions__foto:hover,
.sw-r-modal-actions__foto:focus-visible {
    filter: brightness(1.04);
    transform: translateY(-1px);
    box-shadow:
        0 14px 34px rgba(200, 255, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    outline: none;
}
.sw-r-modal-actions__foto:active {
    transform: translateY(0);
}
.sw-r-modal-actions__foto-icon {
    width: 2.55rem;
    height: 2.55rem;
    border-radius: 0.85rem;
    background: rgba(8, 18, 12, 0.16);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.sw-r-modal-actions__foto-icon svg {
    width: 1.25rem;
    height: 1.25rem;
}
.sw-r-modal-actions__foto-copy {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
    text-align: left;
}
.sw-r-modal-actions__foto-title {
    font-size: 0.86rem;
    font-weight: 900;
    letter-spacing: 0.02em;
    line-height: 1.15;
    text-transform: none;
}
.sw-r-modal-actions__foto-sub {
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1.25;
    opacity: 0.78;
}
.sw-r-modal-actions__foto-go {
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 999px;
    background: rgba(8, 18, 12, 0.18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    font-weight: 900;
    flex-shrink: 0;
}
.sw-r-modal-actions__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem;
}
.sw-r-modal-actions__btn {
    appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 1rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03));
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.78rem 0.7rem;
    min-height: 3.55rem;
    cursor: pointer;
    text-align: left;
    transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}
.sw-r-modal-actions__btn:hover,
.sw-r-modal-actions__btn:focus-visible {
    transform: translateY(-1px);
    outline: none;
}
.sw-r-modal-actions__btn:active {
    transform: translateY(0);
}
.sw-r-modal-actions__btn.is-busy {
    opacity: 0.7;
    pointer-events: none;
}
.sw-r-modal-actions__btn-ico {
    width: 2.05rem;
    height: 2.05rem;
    border-radius: 0.7rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.sw-r-modal-actions__btn-ico svg {
    width: 1.05rem;
    height: 1.05rem;
}
.sw-r-modal-actions__btn-txt {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.08rem;
}
.sw-r-modal-actions__btn-label {
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.01em;
    line-height: 1.1;
}
.sw-r-modal-actions__btn-hint {
    font-size: 0.62rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.2;
}
.sw-r-modal-actions__btn--share {
    border-color: rgba(200, 255, 0, 0.45);
    background: linear-gradient(160deg, rgba(200, 255, 0, 0.2), rgba(200, 255, 0, 0.05));
}
.sw-r-modal-actions__btn--share:hover,
.sw-r-modal-actions__btn--share:focus-visible {
    border-color: rgba(200, 255, 0, 0.85);
    box-shadow: 0 10px 24px rgba(200, 255, 0, 0.2);
}
.sw-r-modal-actions__btn--share .sw-r-modal-actions__btn-ico {
    background: #c8ff00;
    color: #08120c;
}
.sw-r-modal-actions__btn--cert {
    border-color: rgba(255, 102, 0, 0.4);
    background: linear-gradient(160deg, rgba(255, 102, 0, 0.22), rgba(255, 102, 0, 0.06));
}
.sw-r-modal-actions__btn--cert:hover,
.sw-r-modal-actions__btn--cert:focus-visible {
    border-color: rgba(255, 102, 0, 0.75);
    box-shadow: 0 10px 24px rgba(255, 102, 0, 0.2);
}
.sw-r-modal-actions__btn--cert .sw-r-modal-actions__btn-ico {
    background: #ff6600;
    color: #08120c;
}

.sw-res-share-toast {
    position: fixed;
    inset: 0;
    z-index: 100050;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(4px);
}
.sw-res-share-toast[hidden] {
    display: none !important;
}
.sw-res-share-toast__card {
    width: min(100%, 22rem);
    border-radius: 1.25rem;
    border: 1px solid rgba(200, 255, 0, 0.35);
    background: linear-gradient(180deg, #122018, #0a100c);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
    padding: 1.1rem 1.15rem 1.15rem;
    color: #fff;
    margin-bottom: max(0.5rem, env(safe-area-inset-bottom));
}
.sw-res-share-toast__title {
    margin: 0 0 0.35rem;
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: 0.01em;
}
.sw-res-share-toast__text {
    margin: 0 0 0.95rem;
    font-size: 0.82rem;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.72);
    font-weight: 600;
}
.sw-res-share-toast__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}
.sw-res-share-toast__btn {
    appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 0.85rem;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 900;
    min-height: 2.7rem;
    cursor: pointer;
}
.sw-res-share-toast__btn--fb {
    border-color: rgba(24, 119, 242, 0.55);
    background: #1877f2;
}

/* Certificado offscreen (html2canvas) */
.sw-res-cert-stage {
    position: fixed;
    left: -10000px;
    top: 0;
    width: 720px;
    pointer-events: none;
    opacity: 1;
    z-index: -1;
}
.sw-res-cert-card {
    width: 720px;
    background: #0a0f0c;
    border-radius: 28px;
    overflow: hidden;
    border: 4px solid #ff6600;
    color: #fff;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.sw-res-cert-card__hero {
    height: 220px;
    background:
        radial-gradient(circle at 20% 20%, rgba(200, 255, 0, 0.25), transparent 45%),
        linear-gradient(135deg, #102018, #0a0f0c 60%);
    background-size: cover;
    background-position: center;
    position: relative;
}
.sw-res-cert-card__hero.has-img {
    background-color: #111;
}
.sw-res-cert-card__hero.has-perfil {
    background-position: center top;
}
.sw-res-cert-card__hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, #0a0f0c 8%, rgba(10, 15, 12, 0.35) 55%, transparent 100%);
}
.sw-res-cert-card__badge {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 2;
    background: rgba(8, 18, 12, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #c8ff00;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
}
.sw-res-cert-card__body {
    padding: 2rem 2.4rem 2.2rem;
    text-align: center;
}
.sw-res-cert-card__kicker {
    display: inline-block;
    margin: 0 0 0.85rem;
    background: #ff6600;
    color: #08120c;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    padding: 0.35rem 0.8rem;
    border-radius: 0.55rem 0.55rem 0 0;
}
.sw-res-cert-card__nombre {
    margin: 0 0 0.7rem;
    font-size: 42px;
    font-weight: 900;
    letter-spacing: -0.04em;
    text-transform: uppercase;
    line-height: 0.95;
}
.sw-res-cert-card__evento {
    margin: 0 0 1.4rem;
    font-size: 22px;
    font-weight: 800;
    color: #d1d5db;
    text-transform: uppercase;
    line-height: 1.15;
}
.sw-res-cert-card__grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.15rem 0;
    margin-bottom: 1rem;
}
.sw-res-cert-card__grid > div {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.sw-res-cert-card__grid > div:not(:last-child) {
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}
.sw-res-cert-card__lbl {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #9ca3af;
}
.sw-res-cert-card__val {
    font-size: 16px;
    font-weight: 800;
}
.sw-res-cert-card__val--accent {
    color: #ff6600;
    font-size: 20px;
    font-weight: 900;
}
.sw-res-cert-card__val--neon {
    color: #c8ff00;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 22px;
    font-weight: 900;
}
.sw-res-cert-card__meta {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
    font-size: 13px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.7);
}
.sw-res-cert-card__foot {
    display: flex;
    justify-content: space-between;
    opacity: 0.55;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

@media (max-width: 380px) {
    .sw-r-modal-hero-wrap--photo .sw-r-modal-guntime {
        font-size: clamp(1.38rem, 6.7vw, 1.67rem);
    }
    .sw-r-modal-hero-wrap--photo .sw-r-modal-hero-name {
        font-size: 0.98rem;
    }
    .sw-r-modal-hero-wrap--photo .sw-r-modal-time-label {
        font-size: 8px;
    }
    .sw-r-modal-hero-wrap--photo .sw-r-modal-hero-panel-grid {
        gap: 0.3rem 0.35rem;
    }
}

/* Header resultados: gradiente + blobs (misma animación que el footer) */
.sw-r-hero-gradient {
    /* Misma forma; glows suaves (sin Ice a pleno) */
    background:
        radial-gradient(ellipse 95% 65% at 50% 18%, var(--sw-signal-15) 0%, transparent 58%),
        radial-gradient(ellipse 80% 55% at 5% 8%, var(--sw-orange-15) 0%, transparent 52%),
        radial-gradient(ellipse 85% 55% at 98% 85%, var(--sw-ice-08) 0%, transparent 55%),
        linear-gradient(165deg, #0F2E22 0%, var(--sw-ink-deep) 42%, #071A14 100%);
}
@keyframes sw-r-footer-blob-kf {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
    100% { transform: translate(0, 0) scale(1); }
}
.sw-r-footer-blob {
    animation: sw-r-footer-blob-kf 12s infinite alternate ease-in-out;
}
.sw-r-footer-blob-delay {
    animation-delay: 2s;
}
.sw-r-footer-blob-delay2 {
    animation-delay: 4s;
}

.sw-res-filter-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    width: fit-content;
    max-width: 100%;
    border: 1px solid var(--sw-signal-25);
    border-radius: 999px;
    background: var(--sw-signal-15);
    color: #0f5132;
    padding: 0.45rem 0.75rem;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.2;
    box-shadow: 0 6px 18px var(--sw-signal-15);
}

.sw-res-filter-status.hidden {
    display: none;
}

.sw-res-filter-status__spinner {
    width: 0.85rem;
    height: 0.85rem;
    border-radius: 999px;
    border: 2px solid var(--sw-signal-25);
    border-top-color: var(--sw-signal);
    animation: sw-res-filter-spin 0.7s linear infinite;
    flex: 0 0 auto;
}

@keyframes sw-res-filter-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Overlay carga resultados (pantalla completa, blur, rayo naranja) */
/* Overlay de carga DESACTIVADO globalmente: nunca debe mostrarse. */
.sw-res-busy-overlay,
.sw-res-busy-overlay--visible {
    display: none !important;
}

.sw-res-busy-overlay__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 5, 5, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.sw-res-busy-overlay__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
    max-width: 20rem;
}

.sw-res-busy-icon-wrap--bolt {
    filter: drop-shadow(0 0 22px var(--sw-orange-35)) drop-shadow(0 0 48px var(--sw-orange-20));
}

.sw-res-busy-bolt-ring {
    transform-origin: 60px 60px;
    animation: swResBoltRingSpin 1.4s linear infinite;
}

.sw-res-busy-bolt-orbit {
    transform-origin: 60px 60px;
    animation: swResBoltRingSpin 3.2s linear infinite reverse;
}

.sw-res-busy-bolt-shape {
    transform-origin: 60px 60px;
    animation: swResBoltPulse 0.85s ease-in-out infinite;
}

.sw-res-busy-bolt-flash {
    transform-origin: 60px 60px;
    animation: swResBoltFlash 0.85s ease-in-out infinite;
}

@keyframes swResBoltRingSpin {
    to { transform: rotate(360deg); }
}

@keyframes swResBoltPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.06); opacity: 0.92; }
}

@keyframes swResBoltFlash {
    0%, 100% { opacity: 0; }
    35% { opacity: 0.95; }
    55% { opacity: 0.15; }
}

.sw-res-busy-label {
    margin: 0;
    font-size: 0.8rem;
    font-weight: 900;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.95);
}

.sw-res-busy-label--bolt {
    color: #fff;
    text-shadow: 0 0 24px var(--sw-orange-35);
}

.sw-res-busy-sub {
    margin: -0.35rem 0 0;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.35em;
    text-transform: uppercase;
}

.sw-res-busy-sub--bolt {
    color: var(--sw-orange-35);
}

/* Cargador desactivado: no bloquear el scroll de la página. */
html.sw-res-page-loading {
    overflow: visible;
}

.sw-res-live-ping {
    animation: swResLivePing 1.4s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes swResLivePing {
    0% { transform: scale(1); opacity: 0.75; }
    75%, 100% { transform: scale(2.2); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .sw-res-busy-bolt-ring,
    .sw-res-busy-bolt-orbit,
    .sw-res-busy-bolt-shape,
    .sw-res-busy-bolt-flash {
        animation: none;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce-slow {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

.animate-bounce-slow {
    animation: bounce-slow 2s infinite ease-in-out;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Barra búsqueda + filtros (móvil). */
@media (max-width: 767px) {
    .sw-res-filters-bar .filtro-genero,
    .sw-res-filters-bar .filtro-categoria {
        text-overflow: ellipsis;
    }
}

/* ── Podios: loading, podio visual y tarjetas ── */
.sw-res-podios-shell {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    overflow: visible !important;
}

.sw-res-podios-hero-badge {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 1rem;
    background: linear-gradient(145deg, #fff9e6 0%, #fff 55%, #f0fdf4 100%);
    border: 2px solid rgba(212, 175, 55, 0.35);
    color: #b8860b;
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.15);
}

.sw-res-por-edad-hero-badge {
    background: linear-gradient(145deg, #fff7ed 0%, #fff 55%, #fef3c7 100%);
    border-color: rgba(245, 158, 11, 0.4);
    color: #92400e;
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.12);
}

.sw-por-edad-info-modal {
    position: fixed;
    inset: 0;
    z-index: 100050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}
.sw-por-edad-info-modal[hidden] {
    display: none !important;
}
.sw-por-edad-info-modal__backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    margin: 0;
    padding: 0;
    background: rgba(10, 20, 16, 0.62);
    cursor: pointer;
}
.sw-por-edad-info-modal__card {
    position: relative;
    z-index: 1;
    width: min(100%, 26rem);
    border-radius: 1.35rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.35);
    padding: 1.55rem 1.45rem 1.35rem;
}
.sw-por-edad-info-modal__close {
    position: absolute;
    top: 0.65rem;
    right: 0.75rem;
    width: 2.1rem;
    height: 2.1rem;
    border: 0;
    border-radius: 999px;
    background: #f3f4f6;
    color: #111827;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
}
.sw-por-edad-info-modal__kicker {
    margin: 0 0 0.35rem;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #b45309;
}
.sw-por-edad-info-modal__title {
    margin: 0 0 0.7rem;
    font-size: 1.45rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    color: #103828 !important;
    text-transform: uppercase;
}
.sw-por-edad-info-modal__text {
    margin: 0 0 1.15rem;
    font-size: 0.98rem;
    line-height: 1.5;
    font-weight: 600;
    color: #374151;
}
.sw-por-edad-info-modal__btn {
    display: block;
    width: 100%;
    border: 0;
    border-radius: 999px;
    padding: 0.85rem 1rem;
    background: #92ff5f;
    color: #103828;
    font-size: 0.92rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
}
.sw-res-por-edad-banner {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    background: #fff8e8;
    border: 1px solid #f0c56d;
    color: #5c3d0a;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
.sw-res-por-edad-banner-ico {
    flex: 0 0 auto;
    line-height: 1.35;
    font-size: 1rem;
}
.sw-res-por-edad-banner-text {
    color: #5c3d0a !important;
    font-weight: 600;
    line-height: 1.45;
}
.sw-res-por-edad-banner-text strong {
    color: #3f2a06 !important;
    font-weight: 900;
}
.sw-res-por-edad-list {
    margin: 0;
}

.sw-res-podio-idle {
    text-align: center;
    padding: 2.5rem 1rem;
}

.sw-res-podio-idle-icon {
    display: block;
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    opacity: 0.45;
}

.sw-res-podio-idle-text {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 800;
    color: #9ca3af;
}

/* Loading */
.sw-res-podio-loading {
    text-align: center;
    padding: 2rem 0.5rem 2.5rem;
}

.sw-res-podio-loading-ring {
    position: relative;
    width: 4.5rem;
    height: 4.5rem;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    background: conic-gradient(from 0deg, var(--sw-signal), #d4af37, var(--sw-signal));
    animation: sw-podio-spin 1.2s linear infinite;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sw-res-podio-loading-ring::before {
    content: '';
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    background: #fff;
}

.sw-res-podio-loading-trophy {
    position: relative;
    z-index: 1;
    font-size: 1.65rem;
    animation: sw-podio-bounce 0.9s ease-in-out infinite;
}

.sw-res-podio-loading-title {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
    font-weight: 900;
    color: var(--sw-move);
    letter-spacing: 0.02em;
}

.sw-res-podio-loading-sub {
    margin: 0 0 1.75rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: #9ca3af;
}

.sw-res-podio-sk-stage {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.65rem;
    max-width: 28rem;
    margin: 0 auto;
    align-items: end;
}

.sw-res-podio-sk-card {
    border-radius: 0.85rem 0.85rem 0 0;
    padding: 0.85rem 0.65rem 1.1rem;
    background: linear-gradient(180deg, #f3f4f6 0%, #e5e7eb 100%);
    animation: sw-podio-shimmer 1.4s ease-in-out infinite;
}

.sw-res-podio-sk-card:nth-child(1) {
    min-height: 5.5rem;
    animation-delay: 0.05s;
}

.sw-res-podio-sk-card:nth-child(2),
.sw-res-podio-sk-card:nth-child(3) {
    min-height: 4.25rem;
}

.sw-res-podio-sk-card:nth-child(2) { animation-delay: 0.15s; }
.sw-res-podio-sk-card:nth-child(3) { animation-delay: 0.25s; }

.sw-res-podio-sk-line {
    height: 0.55rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    margin: 0 auto 0.45rem;
}

@keyframes sw-podio-spin {
    to { transform: rotate(360deg); }
}

@keyframes sw-podio-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

@keyframes sw-podio-shimmer {
    0%, 100% { opacity: 0.55; }
    50% { opacity: 1; }
}

@keyframes sw-podio-rise {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Contenido cargado */
.sw-res-podio-enter {
    animation: sw-podio-rise 0.45s ease-out both;
}

.sw-res-podios-panel .sw-res-podio-distancia + .sw-res-podio-distancia {
    margin-top: 1.35rem;
    padding-top: 0;
    border-top: none;
}

.sw-res-podio-dist-banner {
    background: #050505;
    border-radius: 1rem;
    padding: 0.9rem 1.25rem;
    margin-bottom: 0.7rem;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.sw-res-podio-dist-banner-title {
    margin: 0;
    font-size: clamp(1.25rem, 3.2vw, 1.65rem);
    font-weight: 950;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--sw-signal);
    line-height: 1.15;
}

.sw-res-podio-block {
    margin-bottom: 0.75rem;
    border-radius: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    overflow: visible;
}

.sw-res-podio-block-head {
    background: #050505;
    margin-bottom: 0;
    padding: 0.72rem 1rem;
    text-align: center;
    border-bottom: none;
    border-radius: 1rem;
}

.sw-res-podio-block-title {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--sw-signal);
    line-height: 1.2;
}

.sw-res-podio-block-head--general {
    padding: 0.8rem 1rem 0.85rem;
}

.sw-res-podio-block-head--general .sw-res-podio-block-title {
    font-size: 0.9rem;
    letter-spacing: 0.1em;
}

.sw-res-podio-block-subtitle {
    margin: 0.35rem 0 0;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.4;
    text-transform: none;
}

.sw-res-podio-block-dist {
    display: block;
    margin: 0 0 0.35rem;
    font-size: 1.35rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--sw-signal);
    line-height: 1.1;
}

.sw-res-por-edad-block .sw-res-podio-block-dist {
    font-size: 1.35rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    color: var(--sw-signal);
    margin-bottom: 0.35rem;
}

.sw-res-podios-root {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.sw-res-podio-block-body {
    padding: 0.45rem 0 0.55rem;
    background: transparent;
}

.sw-res-podio-gender-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.65rem;
}

.sw-res-podio-gender-head {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0 0 0.4rem;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.sw-res-podio-gender-head--m { color: #2563eb; }
.sw-res-podio-gender-head--f { color: #db2777; }

.sw-res-podio-gender-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 900;
    background: rgba(37, 99, 235, 0.12);
    color: #2563eb;
}

.sw-res-podio-gender-head--f .sw-res-podio-gender-icon {
    background: rgba(219, 39, 119, 0.12);
    color: #db2777;
}

/* Podio top 3 */
.sw-res-podio-stage {
    display: grid;
    grid-template-columns: 1.15fr 1fr 1fr;
    gap: 0.5rem;
    align-items: end;
    margin-bottom: 0.85rem;
    min-height: 11rem;
}

@media (max-width: 480px) {
    .sw-res-podio-stage {
        gap: 0.35rem;
        min-height: 10rem;
    }
}

.sw-res-podio-pillar {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0.65rem 0.4rem 0;
    border-radius: 1rem 1rem 0 0;
    position: relative;
    animation: sw-podio-rise 0.5s ease-out both;
    animation-delay: calc(var(--sw-podio-i, 0) * 0.05s + 0.08s);
    border: 2px solid transparent;
    border-bottom: none;
    z-index: 1;
}

.sw-res-podio-pillar--p1 { min-height: 10.5rem; animation-delay: 0.06s; }
.sw-res-podio-pillar--p2 { min-height: 8.75rem; animation-delay: 0.12s; }
.sw-res-podio-pillar--p3 { min-height: 7.75rem; animation-delay: 0.18s; }

.sw-res-podio-pillar--ghost {
    visibility: hidden;
    pointer-events: none;
}

.sw-res-podio-pillar--gold {
    background: #f7df4a;
    border-color: #c9a227;
    box-shadow: 0 10px 0 #050505, 0 14px 28px rgba(0, 0, 0, 0.14);
    transform: translateY(-2px);
}

.sw-res-podio-pillar--silver {
    background: #e4e9ef;
    border-color: #9aa8b8;
    box-shadow: 0 8px 0 #050505, 0 10px 22px rgba(0, 0, 0, 0.1);
}

.sw-res-podio-pillar--bronze {
    background: #e8b88a;
    border-color: #b87333;
    box-shadow: 0 8px 0 #050505, 0 10px 20px rgba(0, 0, 0, 0.1);
}

.sw-res-podio-pillar-medal {
    font-size: 1.65rem;
    line-height: 1;
    margin-bottom: 0.35rem;
}

.sw-res-podio-pillar--gold .sw-res-podio-pillar-medal {
    font-size: 1.9rem;
}

.sw-res-podio-pillar-name {
    margin: 0 0 0.25rem;
    font-size: 0.72rem;
    font-weight: 900;
    color: var(--sw-move);
    line-height: 1.25;
    max-width: 100%;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (min-width: 640px) {
    .sw-res-podio-pillar-name { font-size: 0.78rem; }
}

.sw-res-podio-pillar-time {
    margin: 0 0 0.2rem;
    font-size: 0.82rem;
    font-weight: 950;
    color: var(--sw-move);
    font-variant-numeric: tabular-nums;
}

.sw-res-podio-pillar-meta {
    margin: 0 0 0.35rem;
    font-size: 0.62rem;
    font-weight: 800;
    color: #6b7280;
    letter-spacing: 0.02em;
}

.sw-res-podio-pillar-video {
    font-size: 0.62rem !important;
    margin-bottom: 0.35rem;
}

.sw-res-podio-pillar-base {
    width: 100%;
    margin-top: auto;
    padding: 0.35rem 0;
    font-size: 0.7rem;
    font-weight: 950;
    letter-spacing: 0.06em;
    color: rgba(17, 17, 17, 0.7);
    border-top: 2px solid rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.22);
}

.sw-res-podio-pillar--gold .sw-res-podio-pillar-base {
    color: var(--sw-move);
    font-size: 0.78rem;
    font-weight: 950;
}

/* Puestos 4–5 (desktop) y lista unificada (móvil) */
.sw-res-podio-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sw-res-podio-list--rest {
    margin-top: 0.15rem;
}

.sw-res-podio-list--mobile {
    display: none;
}

.sw-res-podio-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
    padding: 0.45rem 0.6rem;
    border-radius: 0.75rem;
    background: #fff;
    border: 1px solid #e8eaee;
    box-shadow: 0 2px 8px rgba(17, 17, 17, 0.03);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sw-res-podio-item:hover {
    border-color: var(--sw-signal-35);
    box-shadow: 0 4px 14px var(--sw-signal-15);
}

.sw-res-podio-item--podium:hover {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.sw-res-podio-list .sw-res-podio-item + .sw-res-podio-item {
    margin-top: 0.28rem;
}

.sw-res-podio-item--rest .sw-res-podio-pos,
.sw-res-podio-pos--medal {
    flex: 0 0 1.75rem;
    height: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    font-variant-numeric: tabular-nums;
}

.sw-res-podio-item--rest .sw-res-podio-pos {
    font-size: 0.85rem;
    font-weight: 950;
    color: var(--sw-move);
    background: #f3f4f6;
    border: 2px solid #d1d5db;
}

.sw-res-podio-pos--medal {
    font-size: 1.15rem;
    line-height: 1;
    background: transparent;
    border: 0;
}

.sw-res-podio-body {
    flex: 0 1 auto;
    min-width: 0;
    max-width: min(100%, 14.5rem);
}

.sw-res-podio-name {
    display: block;
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--sw-move);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sw-res-podio-meta {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    color: #6b7280;
    line-height: 1.2;
}

.sw-res-podio-time {
    flex: 0 0 auto;
    margin-left: 0.35rem;
    font-size: 0.88rem;
    font-weight: 900;
    color: var(--sw-move);
    font-variant-numeric: tabular-nums;
}

.sw-res-podio-empty {
    margin: 0;
    padding: 1.25rem 0.75rem;
    text-align: center;
    font-size: 0.82rem;
    font-weight: 700;
    color: #9ca3af;
    background: #f9fafb;
    border-radius: 0.85rem;
    border: 1px dashed #e5e7eb;
}

.sw-res-podio-empty-state {
    text-align: center;
    padding: 2.5rem 1rem;
}

.sw-res-podio-empty-state--err .sw-res-podio-empty-title {
    color: #b91c1c;
}

.sw-res-podio-empty-icon {
    display: block;
    font-size: 2.25rem;
    margin-bottom: 0.65rem;
}

.sw-res-podio-empty-title {
    margin: 0 0 0.35rem;
    font-size: 1rem;
    font-weight: 900;
    color: #374151;
}

.sw-res-podio-empty-sub {
    margin: 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: #9ca3af;
    max-width: 22rem;
    margin-left: auto;
    margin-right: auto;
}

.sw-res-podio-edades {
    margin-top: 1.75rem;
    padding-top: 1.25rem;
    border-top: 1px dashed #e5e7eb;
}

.sw-res-podio-edades-kicker {
    margin: 0 0 0.25rem;
    font-size: 0.65rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #9ca3af;
}

.sw-res-podio-edades-lead {
    margin: 0 0 0.85rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #6b7280;
}

.sw-res-podio-edades-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
}

@media (max-width: 520px) {
    .sw-res-podio-edades-grid {
        grid-template-columns: 1fr;
    }
}

.sw-res-podio-edades-card {
    border-radius: 1rem;
    padding: 0.85rem 1rem;
    border: 1px solid #e5e7eb;
    background: #fafafa;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.sw-res-podio-edades-card--joven {
    border-color: #bbf7d0;
    background: linear-gradient(165deg, #f0fdf4 0%, #fafafa 100%);
}

.sw-res-podio-edades-card--mayor {
    border-color: #ddd6fe;
    background: linear-gradient(165deg, #f5f3ff 0%, #fafafa 100%);
}

.sw-res-podio-edades-label {
    font-size: 0.62rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #6b7280;
}

.sw-res-podio-edades-list {
    list-style: none;
    margin: 0.35rem 0 0;
    padding: 0;
    display: grid;
    gap: 0.45rem;
}

.sw-res-podio-edades-item {
    display: grid;
    grid-template-columns: 1.1rem 2.1rem minmax(0, 1fr);
    align-items: center;
    gap: 0.4rem;
}

.sw-res-podio-edades-rank {
    color: #9ca3af;
    font-size: 0.66rem;
    font-weight: 900;
    text-align: center;
}

.sw-res-podio-edades-age {
    font-size: 1.05rem;
    font-weight: 900;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    color: var(--sw-move);
}

.sw-res-podio-edades-card--joven .sw-res-podio-edades-age { color: #15803d; }
.sw-res-podio-edades-card--mayor .sw-res-podio-edades-age { color: #6d28d9; }

.sw-res-podio-edades-name {
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--sw-move);
    line-height: 1.25;
    word-break: break-word;
}

.sw-res-podio-edades-person {
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.25rem 0.45rem;
}

.sw-res-podio-edades-meta {
    font-size: 0.68rem;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.sw-res-podio-video {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: #16a34a;
    text-decoration: none;
    letter-spacing: 0;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    font-family: inherit;
    line-height: 1;
}

.sw-res-podio-video svg {
    width: 1.05rem;
    height: 1.05rem;
    flex: 0 0 auto;
}

button.sw-res-podio-video:hover,
.sw-res-podio-video:hover {
    text-decoration: none;
    color: #15803d;
}

.sw-res-podio-video--inline {
    vertical-align: baseline;
}

.sw-res-video-modal {
    position: fixed;
    inset: 0;
    z-index: 250000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.24s ease, visibility 0.24s ease;
}

.sw-res-video-modal.is-open {
    display: flex;
    opacity: 1;
    visibility: visible;
}

body.sw-res-video-open {
    overflow: hidden;
}

.sw-res-video-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 5, 5, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.sw-res-video-modal__panel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 72rem;
}

.sw-res-video-modal__player {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: min(70vh, 28rem);
    background: #000;
    overflow: hidden;
}

@media (max-width: 640px) {
    .sw-res-video-modal {
        padding: 0.45rem;
    }
    .sw-res-video-modal__player {
        min-height: min(58vw, 52vh);
    }
}

.sw-res-video-modal__player iframe,
.sw-res-video-modal__player #sw-res-yt-mount,
.sw-res-video-modal__player #sw-res-video-host {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    overflow: hidden;
}

.sw-res-video-modal__player #sw-res-yt-mount iframe {
    max-width: none !important;
    max-height: none !important;
}

.sw-res-video-modal__error {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.25rem;
    text-align: center;
    background: rgba(0, 0, 0, 0.82);
}

.sw-res-video-modal__error.hidden {
    display: none !important;
}

.sw-res-video-modal__fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    background: var(--sw-orange);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
}

.sw-res-video-modal__fallback:hover {
    background: #fff;
    color: var(--sw-move);
}

#m-video-btn {
    cursor: pointer;
    font-family: inherit;
}

.sw-res-podios-disclaimer strong {
    display: inline;
}

/* Podios — móvil */
@media (max-width: 767px) {
    .sw-res-podios-hero {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        padding-top: 1.25rem !important;
        padding-bottom: 1.1rem !important;
    }

    .sw-res-podios-hero-badge {
        width: 2.75rem;
        height: 2.75rem;
        border-radius: 0.85rem;
    }

    .sw-res-podios-hero-badge svg {
        width: 1.35rem;
        height: 1.35rem;
    }

    .sw-res-podios-root {
        padding-left: 0 !important;
        padding-right: 0 !important;
        padding-top: 0.75rem !important;
        padding-bottom: 0.9rem !important;
    }

    .sw-res-podios-disclaimer {
        font-size: 0.82rem;
        line-height: 1.55;
    }

    .sw-res-podio-dist-banner {
        padding: 0.65rem 0.85rem;
        border-radius: 0.85rem;
        margin-bottom: 0.55rem;
    }

    .sw-res-podio-dist-banner-title {
        font-size: 1.15rem;
        letter-spacing: 0.06em;
    }

    .sw-res-podio-block-head {
        padding: 0.55rem 0.75rem;
    }

    .sw-res-podio-block-title {
        font-size: 0.74rem;
        letter-spacing: 0.12em;
    }

    .sw-res-podio-block-dist {
        font-size: 1.15rem;
    }

    .sw-res-podio-block-body {
        padding: 0.4rem 0 0.5rem;
    }

    .sw-res-podio-gender-grid {
        gap: 0.45rem;
    }

    .sw-res-podio-gender-col + .sw-res-podio-gender-col {
        padding-top: 0.45rem;
        border-top: 1px dashed #e5e7eb;
    }

    .sw-res-podio-gender-head {
        font-size: 0.68rem;
        margin-bottom: 0.3rem;
    }

    .sw-res-podio-stage--desktop,
    .sw-res-podio-list--desktop {
        display: none !important;
    }

    .sw-res-podio-list--mobile {
        display: block;
        margin-bottom: 0;
    }

    .sw-res-podio-item {
        flex-wrap: nowrap;
        gap: 0.4rem;
        padding: 0.4rem 0.5rem;
    }

    .sw-res-podio-body {
        flex: 0 1 auto;
        max-width: calc(100% - 5.75rem);
        min-width: 0;
    }

    .sw-res-podio-name {
        font-size: 0.8rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 1.2;
    }

    .sw-res-podio-meta {
        font-size: 0.62rem;
    }

    .sw-res-podio-time {
        margin-left: 0.3rem;
        font-size: 0.78rem;
        flex: 0 0 auto;
    }

    .sw-res-podio-meta {
        font-size: 0.68rem;
        line-height: 1.35;
    }

    .sw-res-podio-pos--medal {
        font-size: 1.05rem;
    }
}

@media (min-width: 768px) {
    .sw-res-podio-list--mobile {
        display: none !important;
    }
}

