.results-page {
    padding: 40px 0 80px;
    background: #f3f4f8;
    min-height: 100vh;
}

.results-container {
    width: min(1320px, calc(100% - 40px));
    margin: 0 auto;
}

.results-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    background: #060b4f;
    padding: 34px 42px;
    border-radius: 32px;
}

.results-title {
    font-size: 64px;
    font-weight: 900;
    color: #fff;
    margin: 0;
    line-height: 1;
    letter-spacing: -0.03em;
}

.results-subtitle {
    color: rgba(255, 255, 255, 0.74);
    margin-top: 14px;
    font-size: 16px;
    line-height: 1.45;
}

.view-switch {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.10);
    border-radius: 999px;
    padding: 8px;
}

.view-switch a,
.view-switch button {
    border: none;
    background: transparent;
    cursor: pointer;
    color: #fff;
    padding: 14px 24px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 15px;
    line-height: 1;
    transition: 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    white-space: nowrap;
}

.view-switch a:hover,
.view-switch button:hover {
    background: rgba(255, 255, 255, 0.12);
}

.view-switch a.active,
.view-switch button.active {
    background: #fdd430;
    color: #10154f;
}

.results-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 24px;
    align-items: start;
}

.results-grid--two {
    grid-template-columns: 1.45fr 1fr;
}

.results-grid--single {
    grid-template-columns: 1fr;
}

.card {
    background: #f5f5f8;
    border-radius: 28px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    padding: 28px;
}

.card h2 {
    margin: 0 0 18px;
    color: #10154f;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.1;
}

.table-wrap {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 15px 12px;
    border-bottom: 1px solid #d9ddea;
    text-align: left;
    vertical-align: middle;
}

.table th {
    color: #6d7390;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.table td {
    color: #11174f;
    font-size: 16px;
    font-weight: 500;
}

.rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #10154f;
    color: #fff;
    font-weight: 800;
    font-size: 14px;
}

.score-pill {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 999px;
    background: #e9ecff;
    color: #10154f;
    font-weight: 800;
    white-space: nowrap;
    font-size: 14px;
    line-height: 1.2;
}

.university-link {
    color: #10154f;
    text-decoration: none;
    font-weight: 800;
}

.university-link:hover {
    text-decoration: underline;
}

.university-link--static {
    cursor: default;
}

.muted {
    color: #70769a;
    font-size: 14px;
    line-height: 1.4;
}

.stats-list {
    display: grid;
    gap: 14px;
}

.stats-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
    border-radius: 18px;
    background: #eceef7;
}

.stats-item__left {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    flex: 1;
}

.stats-item__title {
    color: #10154f;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.25;
}

.empty-box {
    padding: 22px;
    border-radius: 18px;
    background: #eceef7;
    color: #5f6588;
    line-height: 1.5;
}

.note-box {
    padding: 18px 20px;
    border-radius: 18px;
    background: #eceef7;
    color: #11174f;
    font-weight: 600;
    line-height: 1.5;
}

.detail-head {
    margin-bottom: 18px;
    padding: 18px 20px;
    border-radius: 18px;
    background: #eceef7;
}

.detail-university-name {
    color: #10154f;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.2;
    margin-top: 6px;
}

.detail-section {
    margin-top: 18px;
}

.section-label {
    color: #10154f;
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 12px;
}

.score-cell {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 200px;
}

.progress-line {
    position: relative;
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: #dfe4f4;
    overflow: hidden;
}

.progress-line--small {
    height: 8px;
    margin-top: 4px;
    max-width: 260px;
}

.progress-line__fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #10154f 0%, #3d58d8 100%);
}

@media (max-width: 1180px) {
    .results-title {
        font-size: 44px;
    }

    .results-grid,
    .results-grid--two {
        grid-template-columns: 1fr;
    }

    .results-topbar {
        padding: 28px 24px;
    }
}

@media (max-width: 768px) {
    .results-page {
        padding: 24px 0 48px;
    }

    .results-container {
        width: min(100%, calc(100% - 24px));
    }

    .results-topbar {
        padding: 22px 18px;
        border-radius: 24px;
    }

    .results-title {
        font-size: 32px;
    }

    .results-subtitle {
        font-size: 14px;
    }

    .card {
        padding: 20px;
        border-radius: 22px;
    }

    .card h2 {
        font-size: 22px;
    }

    .table th,
    .table td {
        padding: 12px 10px;
        font-size: 14px;
    }

    .stats-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .score-cell {
        min-width: 0;
    }

    .view-switch {
        width: 100%;
        flex-wrap: wrap;
        border-radius: 20px;
    }

    .view-switch a,
    .view-switch button {
        flex: 1 1 auto;
        min-width: 120px;
    }
}