/* Sports League Public Pages */

.tercera-public {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.tercera-section-head {
    align-items: flex-start;
    gap: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.07);
}

.tercera-head-main {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    flex: 1 1 320px;
}

.tercera-head-main .section-title {
    margin: 0;
    line-height: 1.05;
}

.tercera-head-meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.tercera-head-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(10, 168, 158, 0.12) 0%, rgba(10, 168, 158, 0.08) 100%);
    border: 1px solid rgba(10, 168, 158, 0.16);
    box-shadow: 0 4px 12px rgba(10, 168, 158, 0.08);
    color: #0a6a63;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .04em;
}

.tercera-head-caption {
    font-size: 12px;
    line-height: 1.35;
    color: var(--ui-muted);
}

.league-hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.league-hero-stat {
    display: inline-flex;
    flex-direction: column;
    gap: 2px;
    min-width: 104px;
    padding: 9px 12px;
    border: 1px solid rgba(10, 168, 158, 0.13);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(248,251,252,0.92));
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}

.league-hero-stat__label {
    color: #64748b;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.league-hero-stat__value {
    color: #0f172a;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.2;
}

.league-section-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 2px 0 6px;
    padding: 5px;
    border: 1px solid rgba(10, 168, 158, 0.13);
    border-radius: 999px;
    background: rgba(10, 168, 158, 0.055);
}

.league-section-nav__link {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid transparent;
    background: transparent;
    color: #475569;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.league-section-nav__link:hover {
    transform: translateY(-1px);
    border-color: rgba(10, 168, 158, 0.18);
    background: rgba(10, 168, 158, 0.08);
    color: #0a6a63;
}

.league-section-nav__link.is-active {
    background: linear-gradient(180deg, rgba(10, 168, 158, 0.16) 0%, rgba(10, 168, 158, 0.1) 100%);
    border-color: rgba(10, 168, 158, 0.28);
    color: #0a6a63;
    box-shadow: 0 8px 18px rgba(10, 168, 158, 0.12);
}

.tercera-public.is-section-loading .tercera-grid,
.tercera-public.is-section-loading .league-auto-summary,
.tercera-public.is-section-loading .data-disclaimer {
    opacity: .48;
    pointer-events: none;
    transition: opacity .18s ease;
}

.tercera-public.is-section-loading .league-section-nav {
    position: relative;
}

.tercera-public.is-section-loading .league-section-nav::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: -3px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, rgba(10,168,158,.72), transparent);
    animation: leagueSectionLoading 1s ease-in-out infinite;
}

@keyframes leagueSectionLoading {
    0% {
        transform: translateX(-24%);
        opacity: .38;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateX(24%);
        opacity: .38;
    }
}

.league-seo-intro {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 13px 14px;
    border: 1px solid rgba(15,23,42,.07);
    border-radius: 16px;
    background:
        radial-gradient(circle at top right, rgba(10,168,158,.07), transparent 34%),
        linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,251,252,.96));
    box-shadow: 0 10px 22px rgba(15,23,42,.05);
}

.league-seo-intro p {
    margin: 0;
    max-width: 980px;
    color: #475569;
    font-size: 14px;
    line-height: 1.55;
}

.jornada-form {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.jornada-form select {
    border: 1px solid rgba(10, 168, 158, 0.18);
    border-radius: 999px;
    padding: 8px 34px 8px 12px;
    font: inherit;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbfc 100%);
    color: #1f2a33;
    min-width: 170px;
    box-shadow: 0 4px 12px rgba(15,23,42,.045);
}

.jornada-form select option {
    color: #1f2a33;
    background: #ffffff;
}

.jornada-tools {
    display: flex;
    flex: 1 1 420px;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.tercera-print-btn {
    border: 1px solid rgba(10,168,158,.28);
    background: rgba(10,168,158,.08);
    color: #0a6a63;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 800;
    padding: 8px 14px;
    min-height: 38px;
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(10,168,158,.08);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}

.tercera-print-btn:hover {
    transform: translateY(-1px);
    background: rgba(10,168,158,.14);
    border-color: rgba(10,168,158,.42);
    box-shadow: 0 8px 18px rgba(10,168,158,.14);
}

.league-jornada-nav {
    display: grid;
    grid-template-columns: auto minmax(160px, 1fr) auto;
    gap: 8px;
    align-items: center;
    width: 100%;
    padding: 6px;
    border: 1px solid rgba(10,168,158,.14);
    border-radius: 18px;
    background: rgba(10,168,158,.055);
}

.league-jornada-nav__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 8px 12px;
    border: 1px solid rgba(10,168,158,.22);
    border-radius: 999px;
    background: rgba(255,255,255,.82);
    color: #0a6a63;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
    transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

.league-jornada-nav__btn:hover {
    transform: translateY(-1px);
    background: rgba(10,168,158,.12);
    border-color: rgba(10,168,158,.34);
}

.league-jornada-nav__btn.is-disabled {
    cursor: not-allowed;
    opacity: .45;
    transform: none;
}

.league-jornada-nav__current {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    text-align: center;
}

.league-jornada-nav__current strong {
    color: #0f172a;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.1;
}

.league-jornada-nav__current span {
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;
}

.contextual-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 14px 0 2px;
    padding: 14px;
    border: 1px solid rgba(10,168,158,.14);
    border-radius: 18px;
    background:
        radial-gradient(circle at top right, rgba(10,168,158,.08), transparent 34%),
        linear-gradient(180deg, #ffffff 0%, #f8fbfc 100%);
    box-shadow: 0 12px 28px rgba(15,23,42,.06);
}

.contextual-nav__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.contextual-nav__intro {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
    text-align: left;
    min-width: 0;
}

.contextual-nav__eyebrow {
    color: #0a6a63;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
    line-height: 1;
    text-transform: uppercase;
}

.contextual-nav__title {
    margin: 0;
    font-size: 14px;
    line-height: 1.2;
    color: #15202b;
    font-weight: 800;
}

.contextual-nav__description {
    margin: 0;
    font-size: 12px;
    color: #5f6e7a;
}

.contextual-nav__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    white-space: nowrap;
    padding: 6px 11px;
    border: 1px solid rgba(10,168,158,.18);
    border-radius: 999px;
    background: rgba(10,168,158,.08);
    color: #0a6a63;
    font-size: 12px;
    font-weight: 900;
}

.contextual-nav__links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.contextual-nav__link {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 6px 11px;
    border-radius: 999px;
    border: 1px solid rgba(15,23,42,.08);
    background: #fff;
    box-shadow: none;
    transition: background .18s ease, border-color .18s ease, color .18s ease;
}

.contextual-nav__link:hover {
    transform: none;
    background: rgba(10,168,158,.08);
    border-color: rgba(10,168,158,.28);
}

.contextual-nav__link-label {
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    color: #1f2a33;
}

.contextual-nav__clubs {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(15,23,42,.07);
}

.contextual-nav__clubs--top {
    align-items: stretch;
    text-align: left;
}

.contextual-nav__clubs-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.contextual-nav__clubs-head > div {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.contextual-nav__clubs-eyebrow {
    color: #0a6a63;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .08em;
    line-height: 1;
    text-transform: uppercase;
}

.contextual-nav__clubs-title {
    margin: 0;
    color: #15202b;
    font-size: 15px;
    font-weight: 900;
    line-height: 1.15;
}

.contextual-nav__clubs-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 9px;
    border: 1px solid rgba(10,168,158,.18);
    border-radius: 999px;
    background: rgba(10,168,158,.08);
    color: #0a6a63;
    font-size: 12px;
    font-weight: 900;
}

.contextual-nav__clubs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(142px, 1fr));
    gap: 8px;
    width: 100%;
}

.contextual-nav__club {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 7px;
    padding: 9px 8px;
    border: 1px solid rgba(15,23,42,.06);
    border-radius: 14px;
    background: #fff;
    min-width: 0;
    text-decoration: none;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.contextual-nav__club:hover {
    transform: translateY(-1px);
    border-color: rgba(10,168,158,.24);
    box-shadow: 0 10px 18px rgba(15,23,42,.08);
}

.contextual-nav__club-shield {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid rgba(15,23,42,.08);
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(15,23,42,.06);
}

.contextual-nav__club-shield img {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

.contextual-nav__club-fallback {
    display: none;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 11px;
    font-weight: 800;
    color: #0a6a63;
    background: rgba(10,168,158,.1);
}

.contextual-nav__club-shield.is-fallback .contextual-nav__club-fallback,
.contextual-nav__club-shield.is-fallback-only .contextual-nav__club-fallback {
    display: inline-flex;
}

.contextual-nav__club-name {
    display: block;
    width: 100%;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.25;
    color: #1f2a33;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
}

.contextual-nav__empty {
    margin: 0;
    font-size: 12px;
    color: #6b7280;
}

.tercera-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 16px;
}

.tercera-grid.is-single-column {
    grid-template-columns: 1fr;
}

.tercera-card {
    background: #f9fbfc;
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 12px;
    padding: 14px;
    box-shadow: 0 10px 24px rgba(15,23,42,.04);
}

.tercera-card.is-primary {
    background: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(244,251,250,.98) 100%);
    border-color: rgba(10, 168, 158, 0.2);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

.league-subcompetitions {
    margin: 16px 0;
    padding: 14px;
    border: 1px solid rgba(10, 168, 158, 0.18);
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(240,253,250,.98), rgba(255,255,255,.96));
    box-shadow: 0 14px 32px rgba(15,23,42,.06);
}

.league-subcompetition-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.league-subcompetition-card {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-height: 118px;
    padding: 14px;
    color: #102027;
    text-decoration: none;
    border: 1px solid rgba(15,23,42,.08);
    border-radius: 12px;
    background: #fff;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.league-subcompetition-card:hover,
.league-subcompetition-card:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(10,168,158,.45);
    box-shadow: 0 16px 28px rgba(15,23,42,.1);
}

.league-subcompetition-card strong {
    font-size: 16px;
    line-height: 1.25;
}

.league-subcompetition-card span:last-child {
    font-size: 13px;
    color: #64748b;
}

.league-subcompetition-card__phase {
    width: fit-content;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    color: #04766d;
    text-transform: uppercase;
    letter-spacing: .06em;
    border-radius: 999px;
    background: rgba(10,168,158,.12);
}

:root[data-theme="dark"] .league-subcompetitions {
    border-color: rgba(26,199,184,.24);
    background:
        radial-gradient(circle at top right, rgba(26,199,184,.16), transparent 38%),
        linear-gradient(135deg, rgba(13,24,36,.98), rgba(8,15,24,.98));
    box-shadow: 0 18px 38px rgba(0,0,0,.34);
}

:root[data-theme="dark"] .league-subcompetitions .tercera-card-head {
    border-bottom-color: rgba(255,255,255,.09);
}

:root[data-theme="dark"] .league-subcompetitions .tercera-card-kicker {
    color: #7ddbd2;
}

:root[data-theme="dark"] .league-subcompetitions h2 {
    color: var(--ui-title);
}

:root[data-theme="dark"] .league-subcompetition-card {
    color: var(--ui-text);
    border-color: rgba(255,255,255,.1);
    background:
        linear-gradient(180deg, rgba(18,31,45,.96), rgba(13,23,35,.96));
    box-shadow: 0 12px 28px rgba(0,0,0,.28);
}

:root[data-theme="dark"] .league-subcompetition-card:hover,
:root[data-theme="dark"] .league-subcompetition-card:focus-visible {
    border-color: rgba(26,199,184,.48);
    box-shadow: 0 18px 36px rgba(0,0,0,.38);
}

:root[data-theme="dark"] .league-subcompetition-card strong {
    color: #f3f7fb;
}

:root[data-theme="dark"] .league-subcompetition-card span:last-child {
    color: var(--ui-muted);
}

:root[data-theme="dark"] .league-subcompetition-card__phase {
    color: #a7fff5;
    background: rgba(26,199,184,.16);
}

.tercera-public--clasificacion .tercera-card--clasificacion,
.tercera-public--resultados .tercera-card--resultados,
.tercera-public--calendario .tercera-card--resultados {
    order: -1;
}

.tercera-card-head {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(15,23,42,.08);
}

.tercera-card-kicker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    font-size: 11px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #64748b;
}

.tercera-card-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.tercera-card-badges {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.tercera-card-badge {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(15,23,42,.08);
    background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(241,245,249,.96));
    box-shadow: 0 6px 16px rgba(15,23,42,.05);
    font-size: 12px;
    font-weight: 800;
    color: #0f172a;
}

.tercera-card-badge.is-soft {
    background: rgba(241,245,249,.92);
    box-shadow: none;
    color: #475569;
}

.tercera-title {
    margin: 0;
    font-size: clamp(18px, 1.8vw, 22px);
    line-height: 1.2;
    font-weight: 800;
    color: #0f172a;
}

.tercera-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid rgba(15,23,42,.07);
    border-radius: 14px;
    background: #fff;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
}

.tercera-table {
    width: 100%;
    min-width: 720px;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 13px;
}

.tercera-table th,
.tercera-table td {
    padding: 9px 7px;
    border-bottom: 1px solid rgba(0,0,0,.08);
    text-align: center;
}

.tercera-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #f8fbfc;
    color: #475569;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.tercera-table tbody tr {
    background: #fff;
    transition: background .16s ease, box-shadow .16s ease;
}

.tercera-table tbody tr:hover {
    background: rgba(10,168,158,.045);
}

.tercera-table th:nth-child(2),
.tercera-table td:nth-child(2) {
    text-align: left;
}

.tercera-table th:nth-child(10) {
    background: rgba(10,168,158,.08);
    color: #0a6a63;
}

.tercera-table td:nth-child(10) {
    background: rgba(10,168,158,.05);
    font-weight: 700;
}

.clasif-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.clasif-summary-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid rgba(15,23,42,.08);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,250,252,.96));
}

.clasif-summary-item.is-leader {
    border-color: rgba(10,168,158,.18);
    background: linear-gradient(180deg, rgba(10,168,158,.10), rgba(10,168,158,.055));
}

.clasif-summary-label {
    color: #64748b;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .05em;
    line-height: 1;
    text-transform: uppercase;
}

.clasif-summary-item strong {
    display: block;
    max-width: 100%;
    overflow: hidden;
    color: #0f172a;
    font-size: 13px;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.clasif-summary-item span:last-child {
    color: #475569;
    font-size: 12px;
    font-weight: 800;
}

.clasif-pos {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: rgba(15,23,42,.055);
    color: #334155;
    font-size: 12px;
    font-weight: 900;
}

.clasif-points {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    min-height: 28px;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(10,168,158,.12);
    border: 1px solid rgba(10,168,158,.18);
    color: #0a6a63;
    font-weight: 900;
}

.tercera-table tbody tr.is-champion .clasif-pos,
.tercera-table tbody tr.is-final-phase .clasif-pos {
    background: rgba(16,185,129,.14);
    color: #047857;
}

.tercera-table tbody tr.is-playoff .clasif-pos,
.tercera-table tbody tr.is-final-qualifier .clasif-pos {
    background: rgba(59,130,246,.13);
    color: #1d4ed8;
}

.tercera-table tbody tr.is-relegation .clasif-pos {
    background: rgba(239,68,68,.12);
    color: #b91c1c;
}

.tercera-matches {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tercera-matches--calendar .tercera-match {
    background: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(248,250,252,.98) 100%);
    border-color: rgba(59,130,246,.14);
}

.tercera-matches--calendar .tercera-match.is-final {
    border-left-color: #2563eb;
}

.tercera-match {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at top right, rgba(10,168,158,.08), transparent 36%),
        linear-gradient(180deg, #ffffff 0%, #f8fbfc 100%);
    border: 1px solid rgba(15,23,42,.08);
    border-radius: 16px;
    padding: 12px;
    box-shadow: 0 10px 24px rgba(15,23,42,.06);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.tercera-match:hover {
    transform: translateY(-1px);
    border-color: rgba(10,168,158,.22);
    box-shadow: 0 16px 30px rgba(15,23,42,.09);
}

.tercera-match.is-final {
    border-left: 4px solid #0aa89e;
}

.tercera-match.is-live {
    border-color: rgba(217,119,6,.28);
    box-shadow: 0 16px 30px rgba(217,119,6,.10);
}

.tercera-match.is-scheduled {
    border-left: 4px solid rgba(37,99,235,.58);
}

.tercera-match-head {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #61707d;
    margin-bottom: 6px;
    align-items: center;
}

.tercera-date {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    padding: 4px 9px;
    border-radius: 999px;
    color: #61707d;
    background: rgba(15,23,42,.04);
    border: 1px solid rgba(15,23,42,.06);
    font-weight: 700;
}

.tercera-status {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    font-weight: 700;
    color: #555;
    border-radius: 999px;
    padding: 4px 9px;
    background: rgba(0,0,0,.05);
    border: 1px solid rgba(15,23,42,.08);
    box-shadow: 0 2px 8px rgba(15,23,42,.04);
}

.tercera-status.final {
    color: #2e7d32;
    background: rgba(46,125,50,.12);
    border-color: rgba(46,125,50,.18);
}

.tercera-status.en-juego {
    color: #d97706;
    background: rgba(217,119,6,.14);
    border-color: rgba(217,119,6,.18);
}

.tercera-status.programado {
    color: #1d4ed8;
    background: rgba(37,99,235,.12);
    border-color: rgba(37,99,235,.18);
}

.tercera-status.aplazado {
    color: #7c2d12;
    background: rgba(234,88,12,.12);
    border-color: rgba(234,88,12,.18);
}

.tercera-match-body {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 12px;
    align-items: center;
}

.tercera-match-body .team {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
}

.tercera-match-body .team:last-child {
    text-align: center;
}

.tercera-match-body .team > .team-link-inline,
.tercera-match-body .team > .team-link-inline:visited {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    width: 100%;
    min-width: 0;
    text-align: center;
    color: #15202b;
    font-weight: 800;
}

.tercera-match-body .team > .team-link-inline > .team-shield-wrap {
    order: 1;
}

.tercera-match-body .team > .team-link-inline:hover {
    color: #0a6a63;
}

.tercera-match-body .team > .team-link-inline > .team-shield-wrap,
.tercera-match-body .team > .team-shield-wrap {
    width: 46px;
    height: 46px;
    border-radius: 999px;
    background:
        radial-gradient(circle at 30% 30%, #ffffff 0%, #f8fbfc 50%, #e8f5f4 100%);
    border: 1px solid rgba(10,168,158,.14);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.9),
        0 8px 18px rgba(15,23,42,.10);
}

.tercera-match-body .team > .team-link-inline > span:not(.team-shield-wrap) {
    order: 2;
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.team-with-shield {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    min-width: 0;
    text-align: left;
    width: auto;
}

.team-with-shield > .team-shield-wrap {
    order: 1;
}

.team-with-shield > span:not(.team-shield-wrap) {
    order: 2;
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.team-meta-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    min-width: 0;
    width: auto;
    text-align: left;
}

.tercera-match-body .score {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 76px;
    background: linear-gradient(180deg, rgba(10,168,158,.16), rgba(10,168,158,.10));
    color: #0a6a63;
    border-radius: 999px;
    padding: 7px 13px;
    font-size: 15px;
    font-weight: 900;
    border: 1px solid rgba(10,168,158,.22);
    box-shadow: 0 8px 20px rgba(10,168,158,.12);
}

.tercera-matches--calendar .tercera-match-body .score.is-scheduled {
    background: rgba(37,99,235,.1);
    color: #1d4ed8;
    border-color: rgba(37,99,235,.16);
    min-width: 74px;
    text-align: center;
}

.jornada-groups {
    display: grid;
    gap: 14px;
}

.jornada-group {
    background: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(248,250,252,.98) 100%);
    border: 1px solid rgba(15,23,42,.08);
    border-radius: 18px;
    padding: 14px;
    box-shadow: 0 16px 36px rgba(15,23,42,.08);
}

.jornada-group.is-current {
    border-color: rgba(10,168,158,.28);
    box-shadow: 0 18px 38px rgba(10,168,158,.14);
}

.jornada-group-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(15,23,42,.08);
}

.jornada-group-main {
    min-width: 0;
}

.jornada-group-kicker {
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #0a6a63;
}

.jornada-group-title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.jornada-group-title {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.2;
    color: #0f172a;
}

.jornada-group-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.jornada-group-link {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(10,168,158,.2);
    background: rgba(10,168,158,.06);
    color: #0a6a63;
    font-weight: 700;
    white-space: nowrap;
}

.jornada-group-link:hover {
    background: rgba(10,168,158,.1);
    border-color: rgba(10,168,158,.32);
}

.results-editorial {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, .9fr);
    gap: 14px;
    margin: 0 0 16px;
}

.results-editorial > article {
    border: 1px solid rgba(15,23,42,.08);
    border-radius: 20px;
    background:
        radial-gradient(circle at top right, rgba(10,168,158,.10), transparent 38%),
        linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.98));
    padding: 16px;
    box-shadow: 0 16px 34px rgba(15,23,42,.08);
}

.results-editorial__leader {
    grid-row: span 2;
}

.results-editorial__summary {
    grid-column: 1 / -1;
}

.results-editorial__eyebrow {
    display: inline-flex;
    margin-bottom: 6px;
    color: #0a6a63;
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.results-editorial h3 {
    margin: 0 0 12px;
    color: #0f172a;
    font-size: 1.14rem;
    line-height: 1.18;
}

.results-editorial__summary p {
    margin: 0;
    max-width: 980px;
    color: #334155;
    font-size: 1.02rem;
    font-weight: 800;
    line-height: 1.55;
}

.results-featured-match {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 12px;
    padding: 11px 12px;
    border-radius: 16px;
    border: 1px solid rgba(10,168,158,.16);
    background: rgba(10,168,158,.08);
}

.results-featured-match > span {
    color: #0a6a63;
    font-size: .76rem;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.results-featured-match strong {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    color: #0f172a;
    text-align: right;
}

.results-featured-match em {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 64px;
    padding: 5px 9px;
    border-radius: 999px;
    background: #0a8f86;
    color: #fff;
    font-style: normal;
    font-weight: 900;
}

.results-leader-card {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    padding: 12px;
    border-radius: 18px;
    background: rgba(10,168,158,.08);
    border: 1px solid rgba(10,168,158,.14);
}

.results-leader-card .team-link-inline {
    width: 100%;
}

.results-leader-card .team-shield,
.results-leader-card img {
    width: 46px;
    height: 46px;
}

.results-leader-card span {
    display: grid;
    gap: 3px;
}

.results-leader-card strong {
    color: #0f172a;
    font-size: 1rem;
}

.results-leader-card small {
    color: #64748b;
    font-weight: 700;
}

.results-table-podium {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.results-table-podium li {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 14px;
    background: rgba(255,255,255,.76);
    border: 1px solid rgba(15,23,42,.06);
}

.results-table-podium li > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: #0a8f86;
    color: #fff;
    font-weight: 900;
}

.results-table-podium strong {
    min-width: 0;
    color: #0f172a;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.results-table-podium em,
.results-bottom-list em {
    color: #0a6a63;
    font-style: normal;
    font-weight: 900;
}

.results-latest-list,
.results-bottom-list {
    display: grid;
    gap: 8px;
}

.results-latest-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 14px;
    background: rgba(255,255,255,.76);
    border: 1px solid rgba(15,23,42,.06);
}

.results-latest-item span {
    min-width: 0;
    color: #334155;
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.results-latest-item span:last-child {
    text-align: right;
}

.results-latest-item strong {
    display: inline-flex;
    justify-content: center;
    min-width: 62px;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(10,168,158,.10);
    border: 1px solid rgba(10,168,158,.16);
    color: #0a6a63;
    font-size: .9rem;
}

.results-bottom-list span {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 14px;
    background: rgba(255,255,255,.76);
    border: 1px solid rgba(15,23,42,.06);
}

.results-bottom-list strong {
    min-width: 0;
    color: #0f172a;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 900px) {
    .results-editorial {
        grid-template-columns: 1fr;
    }

    .results-editorial__leader {
        grid-row: auto;
    }

    .results-editorial__summary {
        grid-column: auto;
    }
}

@media (max-width: 560px) {
    .results-editorial > article {
        padding: 13px;
        border-radius: 16px;
    }

    .results-latest-item {
        grid-template-columns: 1fr;
        gap: 5px;
        text-align: left;
    }

    .results-latest-item span:last-child {
        text-align: left;
    }

    .results-latest-item strong {
        justify-self: flex-start;
    }

    .results-featured-match {
        align-items: flex-start;
        flex-direction: column;
    }

    .results-featured-match strong {
        justify-content: flex-start;
        text-align: left;
    }

    .results-table-podium li {
        grid-template-columns: 30px minmax(0, 1fr);
    }

    .results-table-podium em {
        grid-column: 2;
    }
}

.tercera-public--resultados .jornada-groups {
    gap: 16px;
}

.tercera-public--resultados .jornada-group {
    border-color: rgba(10,168,158,.18);
    box-shadow: 0 18px 42px rgba(15,23,42,.10);
}

.tercera-public--resultados .jornada-group-head {
    align-items: center;
}

.jornada-index {
    margin-top: 16px;
    padding: 14px;
    border: 1px solid rgba(15,23,42,.08);
    border-radius: 18px;
    background:
        radial-gradient(circle at top right, rgba(10,168,158,.10), transparent 38%),
        linear-gradient(180deg, rgba(248,250,252,.98), rgba(255,255,255,.98));
}

.jornada-index__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(15,23,42,.08);
}

.jornada-index__kicker {
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #0a6a63;
}

.jornada-index__head h3 {
    margin: 2px 0 0;
    font-size: 1rem;
    color: #0f172a;
}

.jornada-index__head span {
    color: #64748b;
    font-size: .86rem;
    font-weight: 700;
}

.jornada-index__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
    gap: 8px;
}

.jornada-index__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 42px;
    padding: 9px 11px;
    border-radius: 14px;
    border: 1px solid rgba(10,168,158,.14);
    background: rgba(255,255,255,.78);
    color: #0f172a;
    box-shadow: 0 10px 22px rgba(15,23,42,.06);
}

.jornada-index__link:hover {
    transform: translateY(-1px);
    border-color: rgba(10,168,158,.28);
    background: rgba(10,168,158,.08);
}

.jornada-index__link strong {
    color: #0a6a63;
    font-size: .92rem;
}

.jornada-index__link span {
    color: #64748b;
    font-size: .78rem;
    font-weight: 700;
    text-align: right;
}

.jornada-index__link.is-disabled {
    opacity: .68;
    pointer-events: none;
}

.tercera-match-action {
    margin-top: 8px;
    display: flex;
    justify-content: flex-end;
}

.tercera-match-action .match-info-link {
    white-space: nowrap;
}

@media (max-width: 1024px) {
    .tercera-public .section-head {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .tercera-section-head {
        padding-bottom: 10px;
    }

    .tercera-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .jornada-group {
        padding: 12px;
    }

    .jornada-group-head {
        flex-direction: column;
        align-items: stretch;
    }

    .tercera-card {
        padding: 10px;
    }

    .tercera-card-head {
        margin-bottom: 10px;
        padding-bottom: 10px;
    }

    .jornada-form {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px 10px;
        justify-content: stretch;
    }

    .jornada-tools {
        width: 100%;
        justify-content: stretch;
        flex-direction: column;
        align-items: stretch;
    }

    .tercera-print-btn {
        justify-content: center;
    }

    .league-jornada-nav {
        grid-template-columns: 1fr;
    }

    .league-jornada-nav__btn {
        width: 100%;
    }

    .jornada-form select {
        width: 100%;
        min-width: 0;
    }

    .contextual-nav__clubs-grid {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    }

    .tercera-table {
        min-width: 620px;
    }
}

@media (max-width: 640px) {
    .tercera-grid {
        grid-template-columns: 1fr;
    }

    .league-section-nav {
        border-radius: 18px;
        gap: 6px;
    }

    .league-section-nav__link {
        flex: 1 1 calc(50% - 6px);
        justify-content: center;
        text-align: center;
        padding-inline: 10px;
    }

    .league-seo-intro {
        padding: 12px;
        border-radius: 14px;
    }

    .league-seo-intro p {
        font-size: 13px;
    }

    .tercera-head-meta {
        gap: 6px;
    }

    .tercera-head-caption {
        font-size: 11px;
    }

    .league-hero-stats {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }

    .league-hero-stat {
        min-width: 0;
        padding: 8px 10px;
    }

    .tercera-card {
        padding: 9px;
        border-radius: 10px;
        min-width: 0;
    }

    .tercera-card-title-row {
        align-items: flex-start;
    }

    .tercera-card-badges {
        width: 100%;
    }

    .tercera-card-badge {
        min-height: 28px;
        padding: 5px 10px;
        font-size: 11px;
    }

    .tercera-public {
        overflow: hidden;
    }

    .tercera-table-wrap {
        max-width: 100%;
        overflow-x: auto;
    }

    .tercera-table {
        min-width: 500px;
        font-size: 11px;
    }

    .clasif-summary {
        grid-template-columns: 1fr;
    }

    .clasif-summary-item {
        padding: 9px 10px;
    }

    .clasif-pos {
        width: 24px;
        height: 24px;
        font-size: 11px;
    }

    .clasif-points {
        min-width: 30px;
        min-height: 24px;
        padding: 3px 7px;
    }

    .tercera-print-btn {
        width: 100%;
    }

    .contextual-nav {
        padding: 12px;
        border-radius: 12px;
    }

    .contextual-nav__header {
        flex-direction: column;
        align-items: stretch;
    }

    .contextual-nav__count {
        width: fit-content;
    }

    .contextual-nav__title {
        font-size: 13px;
    }

    .contextual-nav__clubs-grid {
        grid-template-columns: 1fr;
    }

    .contextual-nav__club {
        padding: 8px;
    }

    .tercera-table th,
    .tercera-table td {
        padding: 6px 3px;
        white-space: nowrap;
    }

    .tercera-table th:nth-child(1),
    .tercera-table td:nth-child(1) {
        width: 24px;
        min-width: 24px;
    }

    .tercera-table th:nth-child(2),
    .tercera-table td:nth-child(2) {
        width: 100%;
        min-width: 150px;
    }

    .tercera-table th:nth-child(3),
    .tercera-table td:nth-child(3),
    .tercera-table th:nth-child(4),
    .tercera-table td:nth-child(4),
    .tercera-table th:nth-child(5),
    .tercera-table td:nth-child(5),
    .tercera-table th:nth-child(6),
    .tercera-table td:nth-child(6),
    .tercera-table th:nth-child(10),
    .tercera-table td:nth-child(10) {
        min-width: 28px;
    }

    .tercera-table th:nth-child(7),
    .tercera-table td:nth-child(7),
    .tercera-table th:nth-child(8),
    .tercera-table td:nth-child(8),
    .tercera-table th:nth-child(9),
    .tercera-table td:nth-child(9) {
        display: none;
    }

    .tercera-table th:nth-child(11),
    .tercera-table td:nth-child(11) {
        display: none;
    }

    .team-with-shield {
        gap: 5px;
        max-width: 100%;
    }

    .team-meta-col {
        min-width: 0;
        max-width: 100%;
    }

    .team-meta-col > span:first-child {
        display: block;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .tercera-match-head {
        flex-wrap: wrap;
        gap: 6px 8px;
        margin-bottom: 8px;
    }

    .tercera-match-body {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 8px;
    }

    .tercera-match-body .team:last-child {
        text-align: center;
    }

    .tercera-match {
        padding: 9px 8px;
        border-radius: 12px;
    }

    .tercera-status {
        min-height: 28px;
        padding: 3px 8px;
        font-size: 10px;
        box-shadow: 0 6px 16px rgba(15,23,42,.08);
    }

    .tercera-date {
        font-size: 11px;
        width: 100%;
        text-align: center;
    }

    .tercera-match-body .team {
        gap: 5px;
    }

    .tercera-match-body .score {
        min-width: 82px;
        margin: 0 auto;
        padding: 5px 10px;
        font-size: 12px;
        box-shadow: 0 10px 22px rgba(10,168,158,.14);
    }

    .tercera-matches--calendar .tercera-match-body .score.is-scheduled {
        min-width: 92px;
    }

    .tercera-match-action {
        margin-top: 10px;
        justify-content: center;
    }

    .tercera-match-action .match-info-link {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-height: 36px;
        padding: 8px 12px;
        border-radius: 999px;
        background: rgba(10,168,158,.08);
        border: 1px solid rgba(10,168,158,.16);
    }

    .jornada-group {
        padding: 10px;
        border-radius: 14px;
    }

    .jornada-group-head {
        gap: 10px;
        margin-bottom: 10px;
        padding-bottom: 10px;
    }

    .jornada-group-title {
        font-size: 1rem;
    }

    .jornada-group-link {
        width: 100%;
        justify-content: center;
        min-height: 34px;
        padding: 7px 12px;
    }

    .jornada-form {
        grid-template-columns: 1fr;
        justify-content: flex-start;
    }

    .jornada-form select {
        min-width: 100%;
    }

    .tercera-public .team-shield-wrap {
        overflow: hidden;
        width: 28px;
        height: 28px;
        flex: 0 0 28px;
    }

    .tercera-public .team-shield-wrap .team-shield {
        width: 28px;
        height: 28px;
    }

    .tercera-match-body .team > .team-link-inline {
        gap: 5px;
    }
}

@media (max-width: 390px) {
    .tercera-table {
        min-width: 470px;
        font-size: 10px;
    }

    .tercera-table th,
    .tercera-table td {
        padding: 5px 2px;
    }

    .tercera-table th:nth-child(2),
    .tercera-table td:nth-child(2) {
        min-width: 132px;
    }

    .tercera-table th:nth-child(3),
    .tercera-table td:nth-child(3),
    .tercera-table th:nth-child(4),
    .tercera-table td:nth-child(4),
    .tercera-table th:nth-child(5),
    .tercera-table td:nth-child(5),
    .tercera-table th:nth-child(6),
    .tercera-table td:nth-child(6),
    .tercera-table th:nth-child(10),
    .tercera-table td:nth-child(10) {
        min-width: 24px;
    }

    .team-with-shield {
        gap: 4px;
    }

    .tercera-public .team-shield-wrap {
        width: 24px;
        height: 24px;
        flex: 0 0 24px;
    }

    .tercera-public .team-shield-wrap .team-shield {
        width: 24px;
        height: 24px;
    }

    .team-meta-col > span:first-child {
        max-width: 104px;
    }

    .tercera-match {
        padding: 8px 7px;
    }

    .tercera-match-head {
        gap: 5px 6px;
        margin-bottom: 7px;
    }

    .tercera-status {
        min-height: 26px;
        padding: 3px 7px;
        font-size: 9px;
        box-shadow: 0 5px 12px rgba(15,23,42,.08);
    }

    .tercera-date {
        font-size: 10px;
    }

    .tercera-match-body {
        gap: 7px;
    }

    .tercera-match-body .score {
        min-width: 76px;
        padding: 4px 8px;
        font-size: 11px;
        box-shadow: 0 8px 18px rgba(10,168,158,.12);
    }

    .tercera-matches--calendar .tercera-match-body .score.is-scheduled {
        min-width: 84px;
    }

    .jornada-group {
        padding: 9px;
    }

    .jornada-group-title {
        font-size: .96rem;
    }

    .jornada-group-meta {
        gap: 5px;
    }
}
