.rating-page {
    min-height: calc(100vh - var(--site-header-height));
}

.rating-hero {
    padding: 32px 16px 16px;
}

.rating-hero-inner,
.rating-shell {
    max-width: 1100px;
    margin: 0 auto;
}

.rating-kicker {
    margin: 0 0 10px;
    color: darkred;
    font-family: 'Oswald', sans-serif;
    letter-spacing: 0.22em;
    font-size: 12px;
    text-transform: uppercase;
}

.rating-hero h1 {
    margin: 0;
    font-family: 'Oswald', sans-serif;
    letter-spacing: 0.04em;
    line-height: 1.05;
    font-size: clamp(30px, 4.8vw, 44px);
    animation: ratingFadeUp .55s ease both;
}

.rating-lead {
    max-width: 760px;
    margin: 14px 0 0;
    color: #444;
    font-size: 16px;
    line-height: 1.65;
    animation: ratingFadeUp .65s ease both;
}

.rating-table-section {
    padding: 16px 16px 48px;
}

.rating-shell,
.rating-empty {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(17, 17, 17, 0.08);
    border-radius: 16px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.06);
    animation: ratingFadeUp .55s ease both;
    transition: transform .2s ease, box-shadow .24s ease, border-color .24s ease;
}

.rating-shell:hover,
.rating-empty:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.1);
    border-color: rgba(139, 0, 0, 0.16);
}

.rating-table-wrap {
    overflow-x: auto;
}

.rating-table {
    width: 100%;
    border-collapse: collapse;
}

.rating-table th,
.rating-table td {
    padding: 16px 14px;
    border-bottom: 1px solid #e8e1dd;
    text-align: left;
    vertical-align: middle;
}

.rating-table th {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6d625c;
    background: #faf7f5;
}

.rating-table tbody tr {
    transition: background-color .18s ease, transform .18s ease;
}

.rating-table tbody tr:hover {
    background: rgba(139, 0, 0, 0.04);
    transform: translateX(4px);
}

.rating-place {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(139, 0, 0, 0.1);
    color: darkred;
    font-family: 'Oswald', sans-serif;
    font-size: 20px;
    transition: transform .18s ease, background-color .18s ease;
}

.rating-name-cell strong {
    font-size: 16px;
}

.rating-total {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 10px;
    border-radius: 12px;
    background: #111;
    color: #fff;
    font-weight: 700;
    transition: transform .18s ease, box-shadow .2s ease;
}

.rating-table tbody tr:hover .rating-place {
    transform: scale(1.05);
    background: rgba(139, 0, 0, 0.14);
}

.rating-table tbody tr:hover .rating-total {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(17, 17, 17, 0.14);
}

.rating-empty {
    padding: 24px;
}

.rating-empty h2 {
    margin: 0 0 10px;
    font-family: 'Oswald', sans-serif;
    font-size: 24px;
}

.rating-empty p {
    margin: 0;
    color: #555;
}

@keyframes ratingFadeUp {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 700px) {
    .rating-table th,
    .rating-table td {
        padding: 12px 10px;
        font-size: 14px;
    }

    .rating-place,
    .rating-total {
        min-width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .rating-name-cell strong {
        font-size: 15px;
    }
}
