/* ============================================
   ВИКТОРИЯ — рейтинг спортсменов 2025/26
   ============================================ */

.rating-page {
    --rating-ink: #24090b;
    --rating-deep: #140506;
    --rating-burgundy: #3a1114;
    --rating-paper: #f2ead9;
    --rating-paper-strong: #fbf7ed;
    --rating-muted: #756862;
    --rating-line: rgba(92, 56, 42, 0.18);
    --rating-gold: #c9a756;
    min-width: 320px;
    overflow-x: hidden;
    background: var(--rating-deep);
    color: var(--cream);
}

.rating-fallback-notice {
    margin: -18px 0 28px;
    padding: 12px 16px;
    border: 1px solid rgb(178 132 42 / 35%);
    color: #6b4d17;
    background: #fff4cf;
    font-size: 14px;
}

.rating-page button,
.rating-page input {
    font: inherit;
}

.rating-page button,
.rating-page a,
.rating-page input,
.rating-page summary,
.rating-table-scroll {
    -webkit-tap-highlight-color: transparent;
}

.rating-page :focus-visible {
    outline: 2px solid var(--gold-light);
    outline-offset: 4px;
}

.rating-shell {
    width: min(100% - 80px, 1440px);
    margin-inline: auto;
}

.rating-header {
    position: fixed;
    z-index: 100;
    inset: 0 0 auto max(clamp(154px, 12vw, 188px), env(safe-area-inset-left));
    min-height: 72px;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 24px;
    border-bottom: 1px solid rgba(243, 217, 139, 0.16);
    background: rgba(20, 5, 6, 0.9);
    backdrop-filter: blur(18px);
}

.rating-header__brand,
.rating-footer a:first-child {
    width: max-content;
    color: var(--cream);
    font-weight: 600;
    font-size: 24px;
    line-height: 1;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    text-decoration: none;
}

.rating-header__back,
.rating-footer__back {
    position: relative;
    color: rgba(244, 228, 193, 0.82);
    font-family: Inter, sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
}

.rating-header__back::after,
.rating-footer__back::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -9px;
    left: 0;
    height: 1px;
    background: var(--rating-gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 180ms ease;
}

.rating-header__back:hover::after,
.rating-header__back:focus-visible::after,
.rating-footer__back:hover::after,
.rating-footer__back:focus-visible::after {
    transform: scaleX(1);
}

.rating-header__back {
    justify-self: end;
}

.rating-header__back::before {
    content: "↗";
    margin-right: 10px;
    color: var(--rating-gold);
}

.rating-hero {
    position: relative;
    min-height: max(720px, 100svh);
    padding-top: 72px;
    display: flex;
    overflow: hidden;
    isolation: isolate;
    background: var(--rating-deep);
}

.rating-hero__art {
    position: absolute;
    z-index: -2;
    inset: 0;
    background-image: image-set(
        url("../images/responsive/rating/hero-1486.avif") type("image/avif"),
        url("../images/responsive/rating/hero-1486.webp") type("image/webp")
    );
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.rating-hero::after {
    --rating-hero-fade-height: clamp(160px, 18vh, 190px);
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(20, 5, 6, .15) 0%, rgba(20, 5, 6, .04) 43%, transparent 56%),
        linear-gradient(0deg, #21080b 0%, rgba(33, 8, 11, .94) 28%, transparent 100%) bottom / 100% var(--rating-hero-fade-height) no-repeat;
}

.rating-hero__inner {
    flex: 1;
    min-height: calc(max(720px, 100svh) - 72px);
    padding: 84px 0 70px;
    padding-left: clamp(48px, 4vw, 72px);
    display: flex;
    align-items: center;
}

.rating-hero__copy {
    position: relative;
    z-index: 2;
    max-width: min(44vw, 650px);
}

.rating-kicker,
.rating-section-no,
.rating-control-label,
.rating-current__eyebrow,
.rating-scale__label,
.rating-empty__kicker {
    color: var(--gold-light);
    font-family: Inter, sans-serif;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.rating-hero h1 {
    margin: 0;
    color: #fff8e8;
    font-size: clamp(64px, 6.8vw, 112px);
    font-weight: 500;
    line-height: 0.77;
    letter-spacing: -0.05em;
    text-wrap: balance;
}

.rating-hero h1 > * {
    display: block;
}

.rating-hero h1 em,
.rating-hero h1 span:last-child,
.rating-section-heading h2 em {
    color: var(--gold-light);
    font-weight: 400;
}

.rating-hero h1 span:last-child {
    margin-top: 0.08em;
    max-width: 5.8em;
    font-size: 0.72em;
    font-style: italic;
    line-height: 0.9;
}

.rankings-section {
    padding: 110px 0 120px;
    background: var(--rating-paper);
    color: var(--rating-ink);
}

.rating-section-heading {
    margin-bottom: 62px;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.65fr);
    align-items: end;
    gap: 70px;
}

.rating-section-heading h2 {
    margin-top: 14px;
    color: var(--rating-ink);
    font-size: clamp(62px, 7vw, 110px);
    font-weight: 500;
    line-height: 0.78;
    letter-spacing: -0.04em;
}

.rating-section-heading > p {
    padding-bottom: 6px;
    color: var(--rating-muted);
    font-size: clamp(18px, 1.55vw, 24px);
    line-height: 1.52;
}

.rankings-section .rating-section-no {
    color: #8b6b29;
}

.rating-controls {
    position: relative;
    z-index: 10;
    isolation: isolate;
    padding: 24px;
    display: grid;
    grid-template-columns: 1.05fr 1.15fr 0.8fr minmax(270px, 1fr);
    align-items: start;
    gap: 18px;
    border: 1px solid var(--rating-line);
    background: rgba(255, 252, 244, 0.78);
    box-shadow: 0 22px 70px rgba(46, 21, 15, 0.09);
}

.rating-control-group,
.rating-search {
    min-width: 0;
}

.rating-search {
    position: relative;
    z-index: 1;
}

.rating-control-label {
    display: block;
    margin-bottom: 10px;
    color: #7a6231;
    font-size: 9px;
}

.rating-segments {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    border: 1px solid rgba(84, 49, 37, 0.16);
    background: #e7ddcb;
}

.rating-segments button {
    min-width: 0;
    min-height: 46px;
    padding: 10px 16px;
    border: 0;
    border-right: 1px solid rgba(84, 49, 37, 0.12);
    color: #5b4540;
    background: transparent;
    cursor: pointer;
    font-family: Inter, sans-serif;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: 0.08em;
    overflow-wrap: anywhere;
    text-transform: uppercase;
    transition: color 160ms ease, background-color 160ms ease;
}

.rating-segments button:last-child {
    border-right: 0;
}

.rating-segments button[aria-pressed="true"] {
    color: #fff8e8;
    background: var(--rating-burgundy);
}

.rating-search input {
    width: 100%;
    min-height: 48px;
    padding: 0 17px;
    border: 1px solid rgba(84, 49, 37, 0.18);
    border-radius: 0;
    color: var(--rating-ink);
    background: var(--rating-paper-strong);
    font-family: Inter, sans-serif;
    font-size: 13px;
}

.rating-search input::placeholder {
    color: #93857e;
}

.rating-search__hint {
    margin-top: 8px;
    color: #8a7c74;
    font-family: Inter, sans-serif;
    font-size: 9px;
    line-height: 1.4;
}

.rating-search__results {
    position: absolute;
    z-index: 2;
    top: calc(100% + 10px);
    right: 0;
    left: 0;
    max-height: min(340px, var(--rating-search-results-max-height, 0px));
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 1px solid rgba(84, 49, 37, 0.2);
    background: var(--rating-paper-strong);
    box-shadow: 0 22px 54px rgba(46, 21, 15, 0.18);
}

.rating-search__summary,
.rating-search__empty {
    padding: 12px 14px;
    color: #776a63;
    font-family: Inter, sans-serif;
    font-size: 10px;
    line-height: 1.4;
}

.rating-search__summary {
    border-bottom: 1px solid rgba(84, 49, 37, 0.1);
    color: #8a6727;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.rating-search__matches {
    display: grid;
}

.rating-search__matches button {
    min-height: 62px;
    padding: 12px 14px;
    border: 0;
    border-bottom: 1px solid rgba(84, 49, 37, 0.1);
    color: var(--rating-ink);
    background: transparent;
    cursor: pointer;
    text-align: left;
}

.rating-search__matches button:last-child {
    border-bottom: 0;
}

.rating-search__matches button:hover,
.rating-search__matches button:focus-visible,
.rating-search__matches button[aria-current="true"] {
    background: #ead7b0;
}

.rating-search__matches strong,
.rating-search__matches span {
    display: block;
    min-width: 0;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.rating-search__matches strong {
    font-size: 17px;
    font-weight: 600;
    line-height: 1.25;
}

.rating-search__matches span {
    margin-top: 3px;
    color: #7e716a;
    font-family: Inter, sans-serif;
    font-size: 9px;
    line-height: 1.35;
}

.rating-current {
    margin: 76px 0 44px;
    padding-bottom: 24px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
    border-bottom: 1px solid rgba(85, 52, 42, 0.22);
}

.rating-current > div {
    min-width: 0;
}

.rating-current__eyebrow {
    min-width: 0;
    color: #8b6b29;
    overflow-wrap: anywhere;
}

.rating-current h3 {
    min-width: 0;
    margin-top: 6px;
    color: var(--rating-ink);
    font-size: clamp(36px, 4vw, 62px);
    font-weight: 500;
    line-height: 1.05;
    overflow-wrap: anywhere;
}

.rating-current__meta {
    display: flex;
    gap: 22px;
    color: var(--rating-muted);
    font-family: Inter, sans-serif;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.rating-current__meta span + span::before {
    content: "·";
    margin-right: 22px;
    color: var(--rating-gold);
}

.rating-leaders {
    margin-bottom: 48px;
}

.rating-subheading {
    margin-bottom: 20px;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
}

.rating-subheading p {
    color: #8b6b29;
    font-family: Inter, sans-serif;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.rating-subheading h3 {
    color: var(--rating-ink);
    font-size: 26px;
    font-weight: 500;
}

.rating-leaders__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
    gap: 12px;
}

.rating-leader {
    position: relative;
    min-height: 160px;
    padding: 28px 26px 24px 88px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    border: 1px solid rgba(201, 167, 86, 0.22);
    background: var(--rating-ink);
    color: var(--cream);
}

.rating-leader--1 {
    border-color: rgba(201, 167, 86, 0.72);
    box-shadow: 0 20px 50px rgba(56, 22, 18, 0.16);
}

.rating-leader__rank {
    position: absolute;
    top: 21px;
    left: 22px;
    color: var(--gold-light);
    font-size: 54px;
    line-height: 1;
}

.rating-leader p {
    color: rgba(244, 228, 193, 0.58);
    font-family: Inter, sans-serif;
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.rating-leader h4 {
    margin-top: 7px;
    font-size: 28px;
    font-weight: 500;
    line-height: 1;
}

.rating-leader > strong {
    margin-top: 22px;
    color: var(--gold-light);
    font-family: Inter, sans-serif;
    font-size: 20px;
    font-weight: 500;
}

.rating-leader > strong small {
    color: rgba(244, 228, 193, 0.55);
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.rating-leaders__none {
    padding: 24px;
    border: 1px solid var(--rating-line);
    color: var(--rating-muted);
    font-size: 18px;
}

.rating-table-wrap {
    position: relative;
    z-index: 1;
    isolation: isolate;
    border: 1px solid rgba(84, 49, 37, 0.18);
    background: var(--rating-paper-strong);
    box-shadow: 0 24px 80px rgba(46, 21, 15, 0.12);
}

.rating-table-scroll {
    max-height: 760px;
    overflow: auto;
    scrollbar-color: var(--rating-gold) #e1d6c2;
    scrollbar-width: thin;
}

.rating-table-scroll table {
    width: max-content;
    min-width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    color: var(--rating-ink);
    font-family: Inter, sans-serif;
    font-size: 12px;
}

.rating-table-scroll th,
.rating-table-scroll td {
    min-width: 126px;
    height: 64px;
    padding: 11px 14px;
    border-right: 1px solid rgba(84, 49, 37, 0.1);
    border-bottom: 1px solid rgba(84, 49, 37, 0.11);
    text-align: center;
    vertical-align: middle;
}

.rating-table-scroll thead th {
    position: sticky;
    z-index: 6;
    top: 0;
    height: 82px;
    color: rgba(255, 248, 232, 0.92);
    background: var(--rating-burgundy);
    font-size: 10px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.rating-table-scroll thead th span {
    display: block;
    max-width: 116px;
    margin: auto;
}

.rating-table-scroll thead th small {
    display: block;
    margin-top: 6px;
    color: var(--gold-light);
    font-size: 9px;
}

.rating-table-scroll tbody tr:nth-child(even) td,
.rating-table-scroll tbody tr:nth-child(even) th {
    background: #f5edde;
}

.rating-table-scroll tbody tr:hover td,
.rating-table-scroll tbody tr:hover th {
    background: #efe0c3;
}

.rating-table-scroll tbody tr.rating-search-hit td,
.rating-table-scroll tbody tr.rating-search-hit th {
    background: #f1d98f;
}

.rating-table-scroll tbody tr.rating-search-hit .rating-total {
    background: #d4b96c;
}

[data-athlete-key] {
    scroll-margin-top: 110px;
}

.rating-table-scroll .rating-rank {
    position: sticky;
    z-index: 4;
    left: 0;
    min-width: 72px;
    width: 72px;
    color: #8a6727;
    background: var(--rating-paper-strong);
    font-family: var(--font-numerals);
    font-size: 24px;
    font-weight: 600;
}

.rating-table-scroll .rating-athlete {
    position: sticky;
    z-index: 4;
    left: 72px;
    min-width: 0;
    width: 240px;
    max-width: 240px;
    background: var(--rating-paper-strong);
    text-align: left;
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.rating-table-scroll .rating-total {
    position: sticky;
    z-index: 4;
    left: 312px;
    min-width: 82px;
    width: 82px;
    color: var(--rating-burgundy);
    background: #ead7b0;
    font-size: 15px;
    font-weight: 700;
    box-shadow: 8px 0 18px rgba(56, 22, 18, 0.07);
}

.rating-table-scroll thead .rating-rank,
.rating-table-scroll thead .rating-athlete,
.rating-table-scroll thead .rating-total {
    z-index: 8;
    color: var(--cream);
    background: var(--rating-burgundy);
    font-family: Inter, sans-serif;
    font-size: 10px;
    text-align: center;
}

.rating-result span {
    display: block;
    color: #71582a;
    font-size: 15px;
    font-weight: 600;
}

.rating-result small {
    display: block;
    margin-top: 3px;
    color: #9a8d84;
    font-size: 9px;
    font-weight: 500;
}

.rating-result.has-result small {
    color: #776a63;
}

.rating-cards {
    display: none;
}

.rating-source {
    margin-top: 22px;
    color: #7e716a;
    font-family: Inter, sans-serif;
    font-size: 10px;
    line-height: 1.65;
}

.rating-empty {
    min-height: 430px;
    padding: 70px 28px;
    border: 1px solid var(--rating-line);
    background: rgba(255, 252, 244, 0.55);
    text-align: center;
}

.rating-empty img {
    width: 118px;
    height: 118px;
    margin-bottom: 24px;
    opacity: 0.65;
}

.rating-empty__kicker {
    color: #8b6b29;
}

.rating-empty h3 {
    margin: 10px 0 12px;
    font-size: clamp(32px, 4vw, 54px);
    font-weight: 500;
}

.rating-empty > p:last-child {
    max-width: 600px;
    margin: auto;
    color: var(--rating-muted);
    font-size: 19px;
}

.rating-method {
    padding: 120px 0;
    background: var(--rating-deep);
    color: var(--cream);
}

.rating-method .rating-section-heading {
    margin-bottom: 52px;
}

.rating-method .rating-section-heading h2 {
    color: #fff8e8;
}

.rating-method .rating-section-heading > p {
    color: rgba(244, 228, 193, 0.66);
}

.rating-formula {
    padding: 28px 36px;
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    align-items: center;
    gap: 24px;
    border-top: 1px solid rgba(201, 167, 86, 0.34);
    border-bottom: 1px solid rgba(201, 167, 86, 0.34);
    color: rgba(255, 248, 232, 0.88);
    font-family: Inter, sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-align: center;
    text-transform: uppercase;
}

.rating-formula strong {
    color: var(--gold-light);
    font-family: var(--font-display);
    font-size: 38px;
    font-weight: 400;
}

.rating-scales {
    margin-top: 42px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.rating-scale {
    min-width: 0;
    padding: 34px;
    border: 1px solid rgba(201, 167, 86, 0.2);
    background: rgba(58, 17, 20, 0.42);
}

.rating-scale__label {
    color: var(--gold-light);
    font-size: 9px;
}

.rating-scale h3 {
    margin: 8px 0 26px;
    font-size: 32px;
    font-weight: 500;
}

.rating-scale > div {
    overflow-x: auto;
}

.rating-scale table {
    width: 100%;
    min-width: 470px;
    border-collapse: collapse;
    color: var(--cream);
    font-family: Inter, sans-serif;
    text-align: center;
}

.rating-scale th,
.rating-scale td {
    padding: 12px 8px;
    border: 1px solid rgba(244, 228, 193, 0.13);
}

.rating-scale th {
    color: rgba(244, 228, 193, 0.6);
    font-size: 10px;
    font-weight: 500;
}

.rating-scale td {
    color: var(--gold-light);
    font-size: 17px;
    font-weight: 600;
}

.rating-note {
    margin-top: 20px;
    padding: 24px 30px;
    border-left: 2px solid var(--rating-gold);
    color: rgba(244, 228, 193, 0.7);
    background: rgba(201, 167, 86, 0.06);
    font-size: 17px;
    line-height: 1.6;
}

.rating-note strong {
    color: var(--gold-light);
    font-weight: 600;
}

.rating-footer {
    padding: 44px 0;
    border-top: 1px solid rgba(201, 167, 86, 0.18);
    background: #0f0304;
}

.rating-footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.rating-footer p {
    margin-top: 10px;
    color: rgba(244, 228, 193, 0.45);
    font-family: Inter, sans-serif;
    font-size: 9px;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

[hidden] {
    display: none !important;
}

@media (max-width: 1280px) {
    .rating-controls {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rating-search {
        grid-column: 1 / -1;
    }
}

@media (max-width: 1100px) {
    .rating-shell {
        width: min(100% - 48px, 1440px);
    }

    .rating-hero__inner {
        padding-top: 70px;
    }
}

@media (max-width: 900px) {
    .rating-header {
        left: 0;
        min-height: 62px;
    }
}

@media (max-width: 820px) {
    .rating-header {
        padding: 0 24px;
        grid-template-columns: 1fr auto;
    }

    .rating-header__brand {
        font-size: 20px;
    }

    .rating-hero {
        min-height: 760px;
        padding-top: 64px;
    }

    .rating-hero__art {
        top: 36%;
        left: 0;
        background-image: image-set(
            url("../images/responsive/rating/hero-768.avif") type("image/avif"),
            url("../images/responsive/rating/hero-768.webp") type("image/webp")
        );
        background-size: auto 72%;
        background-position: right bottom;
    }

    .rating-hero::after {
        --rating-hero-fade-height: 118px;
        background:
            linear-gradient(0deg, #21080b 0%, rgba(33, 8, 11, .94) 28%, transparent 100%) bottom / 100% var(--rating-hero-fade-height) no-repeat,
            linear-gradient(180deg, rgba(20, 5, 6, 0.98) 0%, rgba(20, 5, 6, 0.86) 43%, rgba(20, 5, 6, 0.18) 72%, rgba(20, 5, 6, 0.46) 100%),
            linear-gradient(90deg, rgba(20, 5, 6, 0.42), transparent 76%);
    }

    .rating-hero__inner {
        width: 100%;
        min-height: 696px;
        padding: 78px 0 360px;
        padding-inline: 20px;
        align-items: flex-start;
        box-sizing: border-box;
    }

    .rating-hero__copy {
        max-width: 680px;
    }

    .rating-hero h1 {
        font-size: clamp(60px, 12.6vw, 92px);
    }

    .rankings-section,
    .rating-method {
        padding: 84px 0;
    }

    .rating-section-heading {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .rating-controls {
        grid-template-columns: 1fr;
    }

    .rating-search__results {
        position: static;
        margin-top: 10px;
        max-height: 300px;
    }

    .rating-search {
        grid-column: auto;
    }

    .rating-current {
        align-items: flex-start;
        flex-direction: column;
    }

    .rating-scales {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .rating-shell {
        width: min(100% - 32px, 1440px);
    }

    .rating-header__back {
        font-size: 9px;
    }

    .rating-header__back::before {
        display: none;
    }

    .rating-hero__inner {
        padding-top: 66px;
        padding-bottom: 330px;
    }

    .rating-hero h1 {
        font-size: clamp(54px, 16vw, 78px);
    }

    .rating-hero__art {
        top: 40%;
        background-size: auto 66%;
    }

    .rating-section-heading h2 {
        font-size: clamp(54px, 15vw, 78px);
    }

    .rating-controls {
        padding: 16px;
    }

    .rating-segments button {
        padding-inline: 8px;
        font-size: 9px;
    }

    .rating-current {
        margin-top: 54px;
    }

    .rating-current__meta {
        gap: 10px;
        font-size: 8px;
    }

    .rating-current__meta span + span::before {
        margin-right: 10px;
    }

    .rating-subheading {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .rating-leaders__grid {
        grid-template-columns: 1fr;
    }

    .rating-leader {
        min-height: 136px;
    }

    .rating-table-wrap {
        display: none;
    }

    .rating-cards {
        display: grid;
        gap: 10px;
    }

    .rating-card {
        border: 1px solid rgba(84, 49, 37, 0.16);
        background: var(--rating-paper-strong);
    }

    .rating-card summary,
    .rating-card__summary {
        min-height: 78px;
        padding: 14px 16px;
        display: grid;
        grid-template-columns: 44px minmax(0, 1fr) auto;
        align-items: center;
        gap: 12px;
        cursor: pointer;
        list-style: none;
    }

    .rating-card.rating-search-hit {
        border-color: #c19a3f;
        box-shadow: 0 0 0 3px rgba(201, 167, 86, 0.24);
    }

    .rating-card.rating-search-hit summary,
    .rating-card.rating-search-hit .rating-card__summary {
        background: #f1d98f;
    }

    .rating-card summary::-webkit-details-marker {
        display: none;
    }

    .rating-card__rank {
        color: #8a6727;
        font-family: var(--font-numerals);
        font-size: 27px;
        font-weight: 600;
        text-align: center;
    }

    .rating-card__name {
        min-width: 0;
        color: var(--rating-ink);
        font-size: 20px;
        font-weight: 600;
        line-height: 1.15;
        overflow-wrap: anywhere;
    }

    .rating-card__total {
        color: var(--rating-burgundy);
        font-family: var(--font-numerals);
        font-size: 16px;
        font-weight: 700;
        text-align: right;
    }

    .rating-card__total small {
        display: block;
        color: #8b7d75;
        font-size: 8px;
        font-weight: 500;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    .rating-card[open] summary {
        border-bottom: 1px solid rgba(84, 49, 37, 0.12);
        background: #ead7b0;
    }

    .rating-card ul {
        padding: 8px 16px 14px;
        list-style: none;
    }

    .rating-card li {
        padding: 12px 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        border-bottom: 1px solid rgba(84, 49, 37, 0.1);
        color: #5b4942;
        font-family: Inter, sans-serif;
        font-size: 11px;
    }

    .rating-card li:last-child {
        border-bottom: 0;
    }

    .rating-card li span {
        max-width: 62%;
    }

    .rating-card li span small {
        color: #8a6727;
    }

    .rating-card li strong {
        color: var(--rating-burgundy);
        text-align: right;
    }

    .rating-card li strong small {
        color: #8b7d75;
        font-size: 9px;
        font-weight: 500;
    }

    .rating-formula {
        padding: 26px 16px;
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .rating-formula strong {
        font-size: 28px;
        line-height: 1;
    }

    .rating-scale {
        padding: 24px 18px;
    }

    .rating-footer__inner {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (min-width: 1500px) {
    .rating-shell { width: min(calc(100% - var(--site-gutter) - var(--site-gutter)), 1680px); }
    .rating-hero { min-height: calc(100svh - var(--site-header-height)); }
    .rating-hero__copy { max-width: min(46vw, 760px); }
    .rating-hero h1 { font-size: clamp(82px, 5.1vw, 108px); }
}

@media (prefers-reduced-motion: reduce) {
    .rating-page *,
    .rating-page *::before,
    .rating-page *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* Burgundy Victoria theme */
.rating-page {
    --rating-paper: #21080b;
    --rating-paper-strong: #2b0d12;
    --rating-muted: rgba(244, 228, 193, .64);
    --rating-line: rgba(201, 167, 86, .22);
    --rating-surface-image: linear-gradient(rgba(35, 7, 13, .92), rgba(20, 5, 6, .97)), var(--brand-bg-desktop);
}

.rankings-section {
    background-color: var(--rating-deep);
    background-image: var(--rating-surface-image);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    color: var(--cream);
}

.rating-method {
    background-color: var(--rating-deep);
    background-image: var(--rating-surface-image);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.rating-section-heading h2,
.rating-current h3,
.rating-subheading h3,
.rating-empty h3 {
    color: #fff8e8;
}

.rating-section-heading > p,
.rating-current__meta,
.rating-source,
.rating-empty > p:last-child,
.rating-leaders__none {
    color: rgba(244, 228, 193, .66);
}

.rankings-section .rating-section-no,
.rating-control-label,
.rating-current__eyebrow,
.rating-subheading p,
.rating-empty__kicker {
    color: var(--gold-light);
}

.rating-fallback-notice {
    border-color: rgba(201, 167, 86, .4);
    background: rgba(58, 17, 20, .78);
    color: var(--gold-light);
}

.rating-controls {
    border-color: rgba(201, 167, 86, .28);
    background: rgba(20, 5, 6, .82);
    box-shadow: 0 22px 70px rgba(0, 0, 0, .28);
    backdrop-filter: blur(16px);
}

.rating-segments {
    border-color: rgba(201, 167, 86, .3);
    background: rgba(58, 17, 20, .72);
}

.rating-segments button {
    border-right-color: rgba(201, 167, 86, .18);
    color: rgba(244, 228, 193, .72);
}

.rating-segments button:hover,
.rating-segments button:focus-visible {
    color: #fff8e8;
    background: rgba(201, 167, 86, .1);
}

.rating-segments button[aria-pressed="true"] {
    color: #28100e;
    background: linear-gradient(120deg, var(--gold-light), var(--rating-gold));
}

.rating-search input {
    border-color: rgba(201, 167, 86, .34);
    background: rgba(15, 3, 4, .76);
    color: #fff8e8;
}

.rating-search input::placeholder,
.rating-search__hint,
.rating-search__matches span,
.rating-search__summary,
.rating-search__empty {
    color: rgba(244, 228, 193, .5);
}

.rating-search__results {
    border-color: rgba(201, 167, 86, .32);
    background: #21080b;
    box-shadow: 0 22px 54px rgba(0, 0, 0, .42);
}

.rating-search__summary,
.rating-search__matches button {
    border-color: rgba(201, 167, 86, .15);
}

.rating-search__summary {
    color: var(--gold-light);
}

.rating-search__matches button {
    color: #fff8e8;
}

.rating-search__matches button:hover,
.rating-search__matches button:focus-visible,
.rating-search__matches button[aria-current="true"] {
    background: rgba(201, 167, 86, .14);
}

.rating-current {
    border-color: rgba(201, 167, 86, .28);
}

.rating-leader,
.rating-leaders__none {
    background: rgba(20, 5, 6, .78);
}

.rating-table-wrap {
    border-color: rgba(201, 167, 86, .28);
    background: rgba(20, 5, 6, .88);
    box-shadow: 0 24px 80px rgba(0, 0, 0, .34);
}

.rating-table-scroll {
    scrollbar-color: var(--rating-gold) #21080b;
}

.rating-table-scroll table {
    color: rgba(255, 248, 232, .9);
}

.rating-table-scroll th,
.rating-table-scroll td {
    border-right-color: rgba(201, 167, 86, .12);
    border-bottom-color: rgba(201, 167, 86, .14);
    background: rgba(20, 5, 6, .78);
}

.rating-table-scroll thead th,
.rating-table-scroll thead .rating-rank,
.rating-table-scroll thead .rating-athlete,
.rating-table-scroll thead .rating-total {
    background: #42131a;
}

.rating-table-scroll tbody tr:nth-child(even) td,
.rating-table-scroll tbody tr:nth-child(even) th {
    background: rgba(58, 17, 20, .82);
}

.rating-table-scroll tbody tr:hover td,
.rating-table-scroll tbody tr:hover th {
    background: rgba(88, 31, 39, .9);
}

.rating-table-scroll tbody tr.rating-search-hit td,
.rating-table-scroll tbody tr.rating-search-hit th {
    background: rgba(116, 81, 23, .68);
}

.rating-table-scroll tbody tr.rating-search-hit .rating-total {
    background: #8e6c27;
}

.rating-table-scroll .rating-rank,
.rating-table-scroll .rating-athlete {
    background: #21080b;
}

.rating-table-scroll .rating-rank {
    color: var(--gold-light);
}

.rating-table-scroll .rating-total {
    color: #2b0d0f;
    background: linear-gradient(135deg, #f0d279, #b48b31);
    box-shadow: 8px 0 18px rgba(0, 0, 0, .22);
}

.rating-result span {
    color: var(--gold-light);
}

.rating-result small,
.rating-result.has-result small {
    color: rgba(244, 228, 193, .5);
}

.rating-empty {
    border-color: rgba(201, 167, 86, .24);
    background: rgba(20, 5, 6, .62);
}

.rating-formula {
    background: rgba(20, 5, 6, .32);
}

.rating-scale {
    border-color: rgba(201, 167, 86, .24);
    background: rgba(20, 5, 6, .72);
}

.rating-note {
    background: rgba(20, 5, 6, .54);
}

@media (max-width: 680px) {
    .rating-card {
        border-color: rgba(201, 167, 86, .24);
        background: rgba(20, 5, 6, .82);
    }

    .rating-card.rating-search-hit summary,
    .rating-card.rating-search-hit .rating-card__summary,
    .rating-card[open] summary {
        background: rgba(116, 81, 23, .62);
    }

    .rating-card__rank,
    .rating-card__total,
    .rating-card li strong,
    .rating-card li span small {
        color: var(--gold-light);
    }

    .rating-card__name,
    .rating-card li {
        color: #fff8e8;
    }

    .rating-card__total small,
    .rating-card li strong small {
        color: rgba(244, 228, 193, .5);
    }

    .rating-card[open] summary,
    .rating-card li {
        border-color: rgba(201, 167, 86, .15);
    }
}

/* Readable calculation surface: intentional light exception */
.rating-table-wrap {
    border-color: rgba(201, 167, 86, .42);
    background: #f6efe2;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .3);
}

.rating-table-scroll {
    scrollbar-color: #9a7426 #eadfcd;
}

.rating-table-scroll table {
    color: #2a0b0f;
}

.rating-table-scroll th,
.rating-table-scroll td {
    border-right-color: rgba(74, 21, 28, .13);
    border-bottom-color: rgba(74, 21, 28, .15);
}

.rating-table-scroll thead .rating-event {
    min-width: 190px;
    width: 190px;
    padding-inline: 11px;
    font-size: 9px;
    line-height: 1.35;
}

.rating-table-scroll thead .rating-event span {
    max-width: 168px;
    overflow-wrap: anywhere;
    text-wrap: balance;
}

.rating-table-scroll tbody td,
.rating-table-scroll tbody th {
    background: #f6efe2;
    color: #2a0b0f;
}

.rating-table-scroll tbody tr:nth-child(even) td,
.rating-table-scroll tbody tr:nth-child(even) th {
    background: #eadfcd;
}

.rating-table-scroll tbody .rating-rank,
.rating-table-scroll tbody .rating-athlete {
    background: #f6efe2;
    color: #4a151c;
}

.rating-table-scroll tbody tr:nth-child(even) .rating-rank,
.rating-table-scroll tbody tr:nth-child(even) .rating-athlete {
    background: #eadfcd;
}

.rating-table-scroll tbody .rating-total,
.rating-table-scroll tbody tr:nth-child(even) .rating-total {
    background: linear-gradient(135deg, #f2d77f, #cfaa4d);
    color: #2a0b0f;
    box-shadow: 8px 0 18px rgba(74, 21, 28, .12);
}

.rating-table-scroll tbody .rating-result span {
    color: #4a151c;
}

.rating-table-scroll tbody .rating-result small,
.rating-table-scroll tbody .rating-result.has-result small {
    color: #756862;
}

.rating-table-scroll tbody tr:hover td,
.rating-table-scroll tbody tr:hover th,
.rating-table-scroll tbody tr:hover .rating-rank,
.rating-table-scroll tbody tr:hover .rating-athlete {
    background: #f4e5c7;
}

.rating-table-scroll tbody tr:hover .rating-total {
    background: linear-gradient(135deg, #f5dc88, #d2ad50);
}

.rating-table-scroll tbody tr.rating-search-hit td,
.rating-table-scroll tbody tr.rating-search-hit th,
.rating-table-scroll tbody tr.rating-search-hit .rating-rank,
.rating-table-scroll tbody tr.rating-search-hit .rating-athlete {
    background: #f0dc9d;
}

.rating-table-scroll tbody tr.rating-search-hit .rating-total {
    background: linear-gradient(135deg, #e8c85e, #bd9130);
}
