/* Resultados */

.results-main {
    background-color: var(--dark-color);
}

.results-hero {
    position: relative;
    height: 400px;
    margin-top: 80px;
    overflow: hidden;
}

.hero-image-container,
.hero-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-overlay {
    background: rgba(0, 0, 0, 0.64);
    z-index: 1;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    width: min(820px, 90%);
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
}

.results-kicker,
.panel-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
}

.results-kicker::before,
.panel-kicker::before {
    content: "";
    width: 28px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 99px;
}

.hero-content h1 {
    margin: 10px 0;
    color: white;
    font-size: 3rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.hero-content p {
    color: #dedede;
    font-size: 1.2rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

.results-stats {
    background-color: #111;
    border-top: 1px solid rgba(255, 40, 0, 0.22);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    background-color: rgba(255, 255, 255, 0.08);
}

.stat-item {
    min-height: 124px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 24px;
    background-color: var(--dark-color);
}

.stat-number {
    color: var(--primary-color);
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

.stat-label {
    color: #b8b8b8;
    margin-top: 8px;
    text-transform: uppercase;
    font-size: 0.78rem;
}

.championship-selector {
    position: sticky;
    top: 80px;
    z-index: 20;
    padding: 20px 0;
    background: rgba(31, 31, 31, 0.94);
    border-bottom: 1px solid rgba(255, 40, 0, 0.16);
    backdrop-filter: blur(12px);
}

.selector-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 22px;
}

.selector-title {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-weight: 700;
    white-space: nowrap;
}

.selector-title i {
    color: var(--primary-color);
}

.selector-tabs,
.extra-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.extra-tabs {
    width: 100%;
    margin-top: 14px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.extra-tabs[hidden] {
    display: none;
}

.tab-btn,
.tab-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 18px;
    background-color: #171717;
    color: var(--light-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    cursor: pointer;
    transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
    font-weight: 700;
}

.tab-btn i,
.tab-toggle i {
    color: var(--primary-color);
}

.tab-btn:hover,
.tab-btn.active,
.tab-toggle:hover,
.tab-toggle.open {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.tab-btn:hover i,
.tab-btn.active i,
.tab-toggle:hover i,
.tab-toggle.open i {
    color: white;
}

.tab-toggle.open i {
    transform: rotate(180deg);
}

.results-content {
    padding: 76px 0;
}

.result-panel {
    background-color: var(--medium-dark-color);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-heavy);
    overflow: hidden;
}

.results-state {
    min-height: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 48px 24px;
    text-align: center;
    background-color: #181818;
}

.results-state i {
    color: var(--primary-color);
    font-size: 2.2rem;
}

.results-state h2 {
    color: white;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.results-state p {
    max-width: 520px;
    color: var(--grey-color);
}

.panel-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 28px;
    padding: 34px;
    background:
        linear-gradient(90deg, rgba(255, 40, 0, 0.12), transparent 54%),
        #202020;
}

.panel-title h2 {
    color: white;
    margin: 12px 0 10px;
    font-size: clamp(2rem, 4vw, 2.7rem);
}

.panel-title p {
    color: #c7c7c7;
    max-width: 760px;
}

.panel-logo {
    min-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #111;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.panel-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.panel-logo img.contain {
    object-fit: contain;
    padding: 28px;
}

.result-summary {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1px;
    background-color: rgba(255, 255, 255, 0.08);
}

.summary-item {
    min-width: 0;
    padding: 20px;
    background-color: #181818;
}

.summary-label {
    display: block;
    color: #888;
    font-size: 0.78rem;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.summary-value {
    color: white;
    font-weight: 700;
}

.event-select-wrap {
    position: relative;
}

.event-select {
    width: 100%;
    appearance: none;
    background-color: #101010;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 10px 38px 10px 12px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.event-select:hover,
.event-select:focus {
    background-color: #141414;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 40, 0, 0.14);
    outline: none;
}

.event-select-wrap i {
    position: absolute;
    top: 50%;
    right: 13px;
    color: var(--primary-color);
    pointer-events: none;
    transform: translateY(-50%);
}

.tables-grid {
    display: grid;
    gap: 30px;
    padding: 34px;
}

.table-block h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    margin-bottom: 16px;
}

.table-block h3 i {
    color: var(--primary-color);
}

.table-wrapper {
    overflow-x: auto;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.table-empty {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px;
    color: var(--grey-color);
    background-color: #181818;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius);
}

.table-empty i {
    color: var(--primary-color);
}

table {
    width: 100%;
    border-collapse: collapse;
    background-color: #181818;
    min-width: 680px;
}

th {
    background-color: var(--primary-color);
    color: white;
    padding: 14px 16px;
    text-align: left;
    font-weight: 700;
}

td {
    padding: 13px 16px;
    color: #e2e2e2;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background-color: rgba(255, 40, 0, 0.08);
}

.position-1 td:first-child {
    color: #ffd166;
    font-weight: 700;
}

.position-2 td:first-child {
    color: #d6d6d6;
    font-weight: 700;
}

.position-3 td:first-child {
    color: #d18a45;
    font-weight: 700;
}

.points {
    color: var(--primary-color);
    font-weight: 700;
}

.panel-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 0 34px 34px;
}

.panel-note {
    color: #8f8f8f;
    font-size: 0.9rem;
}

@media (max-width: 980px) {
    .selector-wrapper {
        align-items: flex-start;
        flex-direction: column;
    }

    .selector-tabs,
    .extra-tabs {
        justify-content: flex-start;
    }

    .panel-hero {
        grid-template-columns: 1fr;
    }

    .panel-logo {
        max-width: 260px;
    }

    .result-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .results-hero {
        height: 300px;
        margin-top: 130px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .championship-selector {
        position: static;
    }

    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .panel-actions {
        align-items: stretch;
        flex-direction: column;
    }
}

@media (max-width: 560px) {
    .results-hero {
        height: 250px;
        margin-top: 135px;
    }

    .hero-content h1 {
        font-size: 1.5rem;
    }

    .hero-content p {
        font-size: 0.95rem;
    }

    .stats-grid,
    .result-summary {
        grid-template-columns: 1fr;
    }

    .tab-btn,
    .tab-toggle,
    .panel-actions .btn {
        width: 100%;
    }

    .panel-hero,
    .tables-grid,
    .panel-actions {
        padding-left: 22px;
        padding-right: 22px;
    }
}
