/**
 * Tarjetas móvil — 2 filas:
 *   fila1: nombre+tiempo+label | avatar
 *   fila2: chips | botón
 */
.sw-res-mobile-list {
    font-family: 'Saira Condensed', sans-serif;
}

.sw-res-m-card {
    display: grid;
    grid-template-columns: 3rem minmax(0, 1fr);
    border-radius: 1rem;
    border: 1px solid #e8eaed;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 4px 14px rgba(0, 0, 0, 0.04);
    border-left-width: 3px;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
}

.sw-res-m-card__pos {
    grid-row: 1 / -1;
    grid-column: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #f8faf9 0%, #f1f5f3 100%);
    border-right: 1px solid #eef0f2;
}

.sw-res-m-card--pos-1 .sw-res-m-card__pos {
    background: linear-gradient(180deg, #fffbeb 0%, #fef3c7 100%);
}

.sw-res-m-card--pos-2 .sw-res-m-card__pos {
    background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
}

.sw-res-m-card--pos-3 .sw-res-m-card__pos {
    background: linear-gradient(180deg, #fff7ed 0%, #ffedd5 100%);
}

.sw-res-m-card__pos .pos-num {
    font-size: 1.5rem;
    line-height: 1;
}

.sw-res-m-card__body {
    --sw-res-m-aside: 5.75rem;
    grid-column: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--sw-res-m-aside);
    grid-template-rows: auto auto;
    grid-template-areas:
        "main avatar"
        "meta btn";
    column-gap: 0.5rem;
    row-gap: 0.35rem;
    padding: 0.7rem 0.6rem 0.75rem 0.55rem;
    min-width: 0;
    align-items: start;
}

/* Bloque superior: nombre + tiempo + etiqueta */
.sw-res-m-card__main {
    grid-area: main;
    min-width: 0;
}

.sw-res-m-card__name {
    margin: 0;
    padding: 0;
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #111;
    display: block;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    max-width: 100%;
}

.sw-res-m-card__time-block {
    margin-top: 0.15rem;
    min-width: 0;
}

.sw-res-m-card__time {
    margin: 0;
    font-size: 2.8rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.03em;
    color: #0a0a0a;
}

.sw-res-m-card__time-label {
    margin: 0.1rem 0 0;
    padding: 0;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #9ca3af;
    line-height: 1.2;
}

.sw-res-m-card__avatar {
    grid-area: avatar;
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    height: auto;
    justify-self: stretch;
    align-self: start;
    overflow: hidden;
    border-radius: 0.75rem;
    box-shadow: none;
    background-color: #f3f4f6;
}

.sw-res-m-card__avatar > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.sw-res-m-card__avatar > span {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
}

.sw-res-m-card__meta {
    grid-area: meta;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    margin: 0;
    padding: 0;
    align-self: end;
}

.sw-res-m-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #e5e7eb;
}

.sw-res-m-chip--dark {
    background: #d1d5db;
    color: #374151;
    border-color: #c4c9d0;
}

.sw-res-m-chip--muted {
    background: #fafafa;
    color: #6b7280;
    border-color: #ececec;
}

.sw-res-m-chip--trophy {
    background: #fffbeb;
    border-color: #fde68a;
    color: #b45309;
}

.sw-res-m-chip--detalles {
    gap: 0.25rem;
    justify-content: center;
    padding-left: 0.4rem;
    padding-right: 0.4rem;
    background: #0cd454;
    color: #064e3b;
    border-color: #0cd454;
    white-space: nowrap;
}

.sw-res-m-card__btn {
    grid-area: btn;
    align-self: end;
    justify-self: stretch;
    width: 100%;
    box-sizing: border-box;
    cursor: pointer;
    font-family: inherit;
    appearance: none;
    -webkit-appearance: none;
}

.sw-res-m-card__btn.sw-res-m-chip--detalles:hover {
    background: #0be04d;
    border-color: #0be04d;
    color: #064e3b;
}

.sw-res-m-card__btn-icon {
    width: 0.7rem;
    height: 0.7rem;
    flex-shrink: 0;
}

.sw-res-mobile-list .sw-res-equipo-details {
    margin-top: 0.1rem;
}

.sw-res-mobile-list .sw-res-equipo-summary {
    list-style: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.625rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #6b7280;
}

.sw-res-mobile-list .sw-res-equipo-summary::-webkit-details-marker {
    display: none;
}

.sw-res-mobile-list .sw-res-equipo-summary::before {
    content: "▸";
    font-size: 0.55rem;
}

.sw-res-mobile-list .sw-res-equipo-details[open] .sw-res-equipo-summary::before {
    transform: rotate(90deg);
    display: inline-block;
}

.sw-res-mobile-list .sw-res-equipo-list {
    margin: 0.25rem 0 0;
    padding-left: 0.85rem;
    list-style: disc;
    font-size: 0.75rem;
    font-weight: 600;
    color: #4b5563;
    line-height: 1.3;
}
