.results-page {
    padding: 28px 0 60px;
    background: #f5f7fb;
}

.results-hero-card {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    padding: 48px 52px;
    margin-bottom: 30px;
    background:
        linear-gradient(135deg, rgba(8, 42, 87, .98), rgba(6, 27, 58, .96)),
        radial-gradient(circle at 85% 25%, rgba(244, 176, 0, .22), transparent 34%);
    box-shadow: 0 22px 55px rgba(6, 27, 58, .16);
}

.results-hero-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(135deg,
            rgba(255, 255, 255, .035) 0,
            rgba(255, 255, 255, .035) 1px,
            transparent 1px,
            transparent 15px);
    pointer-events: none;
}

.results-hero-content {
    position: relative;
    z-index: 2;
    max-width: 760px;
}

.results-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 13px;
    border-radius: 7px;
    background: #f4b000;
    color: #061b3a;
    font-size: 12px;
    font-weight: 900;
    margin-bottom: 18px;
    text-transform: uppercase;
    letter-spacing: .3px;
}

.results-badge svg {
    width: 16px;
    height: 16px;
}

.results-hero-content h1 {
    color: #fff;
    font-size: 48px;
    line-height: 1.1;
    margin: 0 0 16px;
    font-weight: 900;
    letter-spacing: -.5px;
}

.results-hero-content p {
    color: rgba(255, 255, 255, .82);
    font-size: 16px;
    line-height: 1.8;
    margin: 0;
}

.results-hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 26px;
}

.hero-stat {
    min-width: 170px;
    padding: 18px 20px;
    border-radius: 7px;
    background: rgba(255, 255, 255, .09);
    border: 1px solid rgba(255, 255, 255, .12);
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}

.hero-stat::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: #60a5fa;
}

.hero-stat.success::before {
    background: #22c55e;
}

.hero-stat.danger::before {
    background: #ef4444;
}

.hero-stat strong {
    display: block;
    color: #fff;
    font-size: 32px;
    line-height: 1;
    margin-bottom: 7px;
}

.hero-stat span {
    color: rgba(255, 255, 255, .78);
    font-size: 13px;
    font-weight: 800;
}

.results-hero-icon {
    position: absolute;
    right: 30px;
    bottom: -75px;
    z-index: 1;
    color: rgba(255, 255, 255, .09);
}

.results-hero-icon svg {
    width: 330px;
    height: 330px;
}

.results-search {
    background: #fff;
    border-radius: 7px;
    box-shadow: 0 18px 45px rgba(6, 27, 58, .09);
    border: 1px solid rgba(6, 27, 58, .08);
    padding: 16px;
    margin-bottom: 24px;
    display: flex;
    gap: 12px;
}

.results-search input {
    flex: 1;
    border: 1px solid #dbe3ef;
    border-radius: 7px;
    padding: 13px 15px;
    font-size: 15px;
    outline: none;
}

.results-search input:focus {
    border-color: #082a57;
}

.results-search button,
.clear-search {
    border: none;
    border-radius: 7px;
    padding: 13px 18px;
    font-weight: 900;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.results-search button {
    background: #082a57;
    color: #fff;
    cursor: pointer;
    transition: .25s ease;
}

.results-search button:hover {
    background: #061b3a;
    transform: translateY(-1px);
}

.clear-search {
    background: #eef2f7;
    color: #334155;
}

.results-list {
    display: grid;
    gap: 16px;
}

.result-row {
    position: relative;
    display: grid;
    grid-template-columns: 1.4fr .7fr auto;
    gap: 20px;
    align-items: center;
    background: #fff;
    border-radius: 12px;
    padding: 22px;
    box-shadow: 0 16px 40px rgba(6, 27, 58, .09);
    border: 1px solid rgba(6, 27, 58, .08);
    overflow: hidden;
    transition: .25s ease;
}

.result-row::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: linear-gradient(180deg, #082a57, #f4b000);
}

.result-row:hover {
    transform: translateY(-3px);
    box-shadow: 0 24px 55px rgba(6, 27, 58, .14);
}

.result-main {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
    padding-left: 4px;
}

.result-icon {
    width: 62px;
    height: 62px;
    border-radius: 10px;
    background: #eef4ff;
    color: #082a57;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid #dbeafe;
}

.result-icon svg {
    width: 30px;
    height: 30px;
}

.result-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 6px 9px;
    border-radius: 7px;
    background: #fef3c7;
    color: #92400e;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.result-info h3 {
    margin: 0 0 8px;
    color: #061b3a;
    font-size: 20px;
    font-weight: 900;
    line-height: 1.25;
}

.result-info p {
    margin: 0;
    color: #64748b;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.result-date-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 7px;
    padding: 12px 14px;
}

.result-date-box small {
    display: block;
    color: #64748b;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.result-date-box strong {
    color: #061b3a;
    font-size: 15px;
    font-weight: 900;
}

.result-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.result-download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    background: #082a57;
    color: #fff;
    border: 1px solid #082a57;
    padding: 12px 15px;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
    transition: .25s ease;
    white-space: nowrap;
}

.result-download-btn:hover {
    background: #061b3a;
    border-color: #061b3a;
    transform: translateY(-1px);
}

.result-download-btn svg {
    width: 18px;
    height: 18px;
}

.empty-state {
    background: #fff;
    border-radius: 7px;
    padding: 50px 20px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(6, 27, 58, .08);
}

.empty-state svg {
    width: 54px;
    height: 54px;
    color: #94a3b8;
    margin-bottom: 14px;
}

.empty-state h3 {
    color: #061b3a;
    margin-bottom: 8px;
}

.empty-state p {
    color: #64748b;
}




/* =========================================================
       RESULTS INFINITE SCROLL
    ========================================================= */

.results-infinite-status {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 74px;
    margin-top: 18px;
}

.results-loader {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 11px;
    min-height: 48px;
    padding: 12px 18px;
    border: 1px solid #dbe3ef;
    border-radius: 7px;
    background: #ffffff;
    color: #334155;
    font-size: 13px;
    font-weight: 900;
    box-shadow: 0 10px 28px rgba(6, 27, 58, .06);
}

.results-loader.is-visible {
    display: inline-flex;
}

.results-loader-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #dbe3ef;
    border-top-color: #082a57;
    border-radius: 50%;
    animation: results-spin .7s linear infinite;
}

.results-end-message,
.results-error-message {
    display: none;
    width: 100%;
    padding: 14px 18px;
    border-radius: 7px;
    text-align: center;
    font-size: 13px;
    font-weight: 800;
}

.results-end-message.is-visible {
    display: block;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #64748b;
}

.results-error-message.is-visible {
    display: block;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #9a3412;
}

.results-infinite-sentinel {
    width: 100%;
    height: 1px;
}

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

@media (max-width: 992px) {
    .results-hero-card {
        padding: 38px;
    }

    .results-hero-content h1 {
        font-size: 40px;
    }

    .results-hero-icon {
        display: none;
    }

    .result-row {
        grid-template-columns: 1fr;
        align-items: flex-start;
    }

    .result-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    .results-page {
        padding: 18px 0 50px;
    }

    .results-hero-card {
        padding: 28px 22px;
        border-radius: 14px;
    }

    .results-hero-content h1 {
        font-size: 32px;
    }

    .results-hero-stats {
        display: grid;
        grid-template-columns: 1fr;
    }

    .hero-stat {
        min-width: 0;
    }

    .results-search {
        flex-direction: column;
    }

    .result-main {
        align-items: flex-start;
    }

    .result-icon {
        width: 54px;
        height: 54px;
    }

    .result-icon svg {
        width: 27px;
        height: 27px;
    }

    .result-info h3 {
        font-size: 18px;
    }
}

/* =========================================================
   COMPETITION RESULTS - YEAR FILTER
========================================================= */

.results-search .results-year-select {
    flex: 0 0 190px;
    width: 190px;
    min-width: 0;
    border: 1px solid #dbe3ef;
    border-radius: 7px;
    padding: 13px 15px;
    background: #ffffff;
    color: #061b3a;
    font-size: 15px;
    font-weight: 800;
    outline: none;
    cursor: pointer;
}

.results-search .results-year-select:focus {
    border-color: #082a57;
}

@media (max-width: 640px) {
    .results-search .results-year-select {
        flex: none;
        width: 100%;
    }
}