html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    overflow: hidden;
    background:
        radial-gradient(circle at top left, rgba(153, 54, 43, .18), transparent 28%),
        linear-gradient(180deg, #f7f4f1 0%, #ece8e3 100%);
    color: #1f2933;
    font-family: "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

img {
    display: block;
}

.tv-ranking {
    --tv-gap: clamp(.45rem, .8vw, .9rem);
    --tv-shell-padding: clamp(.6rem, 1vw, 1rem);
    --tv-card-padding: clamp(.45rem, .7vw, .76rem);
    --tv-name-size: clamp(.82rem, 1vw, 1.08rem);
    --tv-meta-size: clamp(.55rem, .56vw, .7rem);
    --tv-score-size: clamp(.94rem, 1.2vw, 1.32rem);
    --tv-grid-columns: 4;
    --tv-card-min-height: 72px;
    --tv-card-min-width: 180px;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    display: grid;
    grid-template-rows: auto minmax(0, 39vh) minmax(0, 1fr);
    gap: var(--tv-gap);
    padding: var(--tv-shell-padding);
}

.tv-ranking--all {
    --tv-name-size: clamp(.84rem, 1.02vw, 1.12rem);
    --tv-score-size: clamp(.98rem, 1.22vw, 1.38rem);
}

.tv-ranking--paged {
    --tv-grid-columns: 4;
    --tv-gap: clamp(.42rem, .62vw, .72rem);
    --tv-card-padding: clamp(.44rem, .58vw, .62rem);
    --tv-name-size: clamp(.84rem, .98vw, 1rem);
    --tv-meta-size: clamp(.52rem, .52vw, .62rem);
    --tv-score-size: clamp(.94rem, 1.06vw, 1.1rem);
}

.tv-ranking-head {
    min-height: 0;
    display: flex;
    align-items: center;
    gap: var(--tv-gap);
    padding: .4rem .6rem;
    border-radius: 1.1rem;
}

.tv-ranking-brand {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: .8rem;
}

.tv-ranking-logo-shell {
    width: clamp(3.2rem, 4vw, 4.4rem);
    height: clamp(3.2rem, 4vw, 4.4rem);
    flex: 0 0 auto;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .72);
    border: 1px solid rgba(153, 54, 43, .12);
    overflow: hidden;
}

.tv-ranking-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: .34rem;
    border-radius: .95rem;
    background:
        radial-gradient(circle at 28% 24%, rgba(255,255,255,.98) 0%, rgba(246,239,231,.98) 58%, rgba(214,198,185,.98) 100%);
    border: 1px solid rgba(153, 54, 43, .1);
    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,.32),
        0 .18rem .45rem rgba(31, 41, 51, .08);
    filter: drop-shadow(0 .06rem .1rem rgba(107, 49, 39, .14));
}

.tv-ranking-logo-fallback {
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    color: #99362b;
    font-size: clamp(1rem, 1.2vw, 1.3rem);
    font-weight: 1000;
    letter-spacing: .08em;
}

.tv-ranking-title-block {
    min-width: 0;
    display: grid;
    gap: .18rem;
}

.tv-ranking-title-row {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: .55rem;
}

.tv-ranking-mobile-switch {
    display: none;
}

.tv-ranking-mobile-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .3rem;
    min-width: 0;
    padding: .34rem .62rem;
    border-radius: 999px;
    border: 1px solid rgba(153, 54, 43, .08);
    background: linear-gradient(90deg, rgba(153, 54, 43, .08), rgba(255, 255, 255, .9));
    color: #99362b;
    font-size: .74rem;
    font-weight: 900;
    letter-spacing: .04em;
    text-decoration: none;
    text-transform: uppercase;
    box-shadow: 0 .22rem .7rem rgba(31, 41, 51, .04);
    white-space: nowrap;
}

.tv-ranking-mobile-chip-icon {
    position: relative;
    width: .92rem;
    height: .92rem;
    flex: 0 0 .92rem;
}

.tv-ranking-mobile-chip-icon::before,
.tv-ranking-mobile-chip-icon::after {
    content: "";
    position: absolute;
    inset: 0;
}

.tv-ranking-mobile-chip-icon--calendar::before {
    border: 1.8px solid currentColor;
    border-radius: .22rem;
    top: .12rem;
    bottom: .04rem;
}

.tv-ranking-mobile-chip-icon--calendar::after {
    top: .02rem;
    left: .14rem;
    right: .14rem;
    height: .24rem;
    border-top: 1.8px solid currentColor;
    border-left: 1.8px solid currentColor;
    border-right: 1.8px solid currentColor;
    border-radius: .18rem .18rem 0 0;
    box-shadow: inset 0 .18rem 0 rgba(153, 54, 43, .16);
}

.tv-ranking-mobile-chip-icon--history::before {
    inset: .08rem;
    border: 1.8px solid currentColor;
    border-radius: 50%;
}

.tv-ranking-mobile-chip-icon--history::after {
    inset: .18rem;
    border-left: 1.8px solid currentColor;
    border-bottom: 1.8px solid currentColor;
    transform: rotate(-45deg);
    transform-origin: center;
}

.tv-ranking-mobile-chip.is-active {
    border-color: rgba(153, 54, 43, .14);
    background: linear-gradient(90deg, rgba(153, 54, 43, .14), rgba(255, 255, 255, .98));
    box-shadow: 0 .3rem .9rem rgba(153, 54, 43, .08);
}

.tv-ranking-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    width: fit-content;
    min-width: 0;
    padding: .4rem .8rem;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(153, 54, 43, .1), rgba(255, 255, 255, .9));
    color: #99362b;
    font-size: clamp(.8rem, .92vw, 1rem);
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.tv-ranking-badge-text--mobile {
    display: none;
}

.tv-ranking-podium {
    min-height: 0;
    display: grid;
    grid-template-columns: 1fr 1.18fr 1fr;
    gap: var(--tv-gap);
    align-items: end;
}

.tv-podium-card {
    position: relative;
    min-height: 0;
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
        "rank rank"
        "photo photo"
        "name name"
        "meta points"
        "base base";
    grid-template-rows: auto 1fr auto auto auto;
    align-content: start;
    gap: clamp(.18rem, .36vw, .42rem);
    padding: clamp(.4rem, .65vw, .75rem) clamp(.55rem, .85vw, .95rem) clamp(.5rem, .8vw, .85rem);
    border-radius: 1.1rem;
    border: 1px solid rgba(153, 54, 43, .12);
    background: linear-gradient(180deg, rgba(255, 255, 255, .96) 0%, rgba(249, 247, 243, .98) 100%);
    box-shadow: 0 .65rem 1.6rem rgba(31, 41, 51, .08);
    overflow: hidden;
    align-self: end;
}

.tv-podium-card--center {
    min-height: clamp(320px, 37vh, 410px);
    background:
        radial-gradient(circle at top, rgba(212, 168, 0, .18), transparent 44%),
        linear-gradient(180deg, rgba(255, 255, 255, .98) 0%, rgba(252, 249, 237, .99) 100%);
}

.tv-podium-card--left {
    min-height: clamp(272px, 32vh, 350px);
    background:
        radial-gradient(circle at top, rgba(152, 162, 173, .16), transparent 44%),
        linear-gradient(180deg, rgba(255, 255, 255, .98) 0%, rgba(245, 247, 249, .99) 100%);
}

.tv-podium-card--right {
    min-height: clamp(260px, 30vh, 336px);
    background:
        radial-gradient(circle at top, rgba(181, 101, 29, .16), transparent 44%),
        linear-gradient(180deg, rgba(255, 255, 255, .98) 0%, rgba(251, 245, 239, .99) 100%);
}

.tv-podium-rank {
    grid-area: rank;
    align-self: start;
    justify-self: end;
}

.tv-rank-badge {
    display: inline-flex;
    align-items: center;
    gap: .32rem;
}

.tv-rank-badge__number {
    font-size: clamp(2rem, 2.9vw, 3.1rem);
    line-height: .9;
    font-weight: 1000;
    letter-spacing: -.04em;
    color: #7a8594;
}

.tv-podium-card--center .tv-rank-badge__number {
    color: #d4a800;
}

.tv-podium-card--left .tv-rank-badge__number {
    color: #98a2ad;
}

.tv-podium-card--right .tv-rank-badge__number {
    color: #b5651d;
}

.tv-rank-move {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.65rem;
    padding: .12rem .28rem;
    border-radius: 999px;
    font-size: clamp(.58rem, .64vw, .76rem);
    line-height: 1;
    font-weight: 1000;
    letter-spacing: -.01em;
    background: rgba(107, 114, 128, .12);
    color: #6b7280;
}

.tv-rank-move--up {
    background: rgba(34, 139, 34, .12);
    color: #228b22;
}

.tv-rank-move--down {
    background: rgba(198, 40, 40, .12);
    color: #c62828;
}

.tv-rank-move--same {
    background: rgba(107, 114, 128, .14);
    color: #6b7280;
}

.tv-podium-main {
    min-height: 100%;
    display: contents;
}

.tv-podium-photo-stack {
    grid-area: photo;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .28rem;
    min-width: 0;
    min-height: 0;
    align-self: center;
    justify-self: center;
    width: 100%;
}

.tv-podium-photo,
.tv-grid-photo {
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(153, 54, 43, .06);
    color: #7a8594;
    border: 1px solid rgba(153, 54, 43, .08);
}

.tv-podium-photo {
    width: clamp(7.1rem, 8vw, 9.8rem);
    height: clamp(10.2rem, 12vw, 14rem);
    border-radius: 1rem;
    box-shadow: 0 .5rem 1.2rem rgba(31, 41, 51, .16);
}

.tv-podium-card--center .tv-podium-photo {
    width: clamp(8.8rem, 9.5vw, 11.3rem);
    height: clamp(11.8rem, 13.6vw, 15.2rem);
}

.tv-podium-photo img,
.tv-grid-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 24%;
}

.tv-podium-ja {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(.52rem, .62vw, .72rem);
    font-weight: 900;
    color: #697586;
    letter-spacing: .03em;
    align-self: center;
}

.tv-podium-info {
    display: contents;
}

.tv-podium-name {
    grid-area: name;
    font-size: clamp(1.08rem, 1.34vw, 1.58rem);
    font-weight: 1000;
    line-height: 1.02;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    align-self: end;
    justify-self: center;
    text-align: center;
    width: 100%;
    max-width: 100%;
    padding: 0 .35rem;
    margin-top: .05rem;
}

.tv-podium-score-row {
    grid-area: points;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    gap: .42rem;
    flex-wrap: wrap;
    text-align: right;
    align-self: end;
    justify-self: end;
    min-width: max-content;
    padding-left: .5rem;
    margin-top: auto;
}

.tv-podium-score {
    font-size: clamp(1.55rem, 2.15vw, 2.3rem);
    font-weight: 1000;
    line-height: .9;
    color: #99362b;
}

.tv-podium-results {
    grid-area: meta;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    gap: .42rem .55rem;
    align-content: start;
    align-self: end;
    justify-self: start;
    min-width: 0;
    padding-right: .5rem;
    margin-top: auto;
}

.tv-podium-chip,
.tv-grid-chip {
    display: inline-flex;
    align-items: center;
    gap: .24rem;
    color: #495057;
    font-weight: 900;
    white-space: nowrap;
}

.tv-podium-chip {
    font-size: clamp(.94rem, 1.02vw, 1.14rem);
}

.tv-grid-chip {
    font-size: clamp(.82rem, .96vw, 1.04rem);
}

.tv-podium-base {
    grid-area: base;
    margin-top: auto;
    height: clamp(.72rem, 1vw, 1.1rem);
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(153, 54, 43, .14), rgba(127, 44, 35, .28));
}

.tv-podium-card--center .tv-podium-base {
    height: clamp(.85rem, 1.2vw, 1.3rem);
}

.tv-ranking-grid-shell {
    min-height: 0;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: calc(var(--tv-gap) * .65);
    padding: var(--tv-card-padding);
    border-radius: 1.1rem;
    background: rgba(255, 255, 255, .84);
    border: 1px solid rgba(153, 54, 43, .1);
    box-shadow: 0 .45rem 1.4rem rgba(31, 41, 51, .06);
    overflow: hidden;
}

.tv-ranking-grid {
    min-height: 0;
    display: grid;
    grid-template-columns: repeat(var(--tv-grid-columns), minmax(0, 1fr));
    grid-auto-rows: minmax(var(--tv-card-min-height), 1fr);
    width: 100%;
    height: 100%;
    gap: calc(var(--tv-gap) * .65);
    overflow: hidden;
    align-content: stretch;
}

.tv-ranking-pages {
    height: 100%;
    min-height: 0;
    position: relative;
    overflow: hidden;
}

.tv-ranking-rows-templates {
    display: none;
}

.tv-ranking-rows-viewport {
    --tv-row-gap: calc(var(--tv-gap) * .65);
    --tv-row-height: 120px;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    position: relative;
}

.tv-ranking-rows-slider {
    display: flex;
    flex-direction: column;
    gap: var(--tv-row-gap);
    transform: translateY(0);
    will-change: transform;
}

.tv-ranking-rows-slider.is-animating {
    transition: transform .8s ease;
}

.tv-ranking-row {
    height: var(--tv-row-height);
    min-height: var(--tv-row-height);
    display: grid;
    grid-template-columns: repeat(var(--tv-grid-columns), minmax(0, 1fr));
    gap: var(--tv-row-gap);
}

.tv-ranking-row--endcap {
    display: block;
}

.tv-grid-card {
    min-height: var(--tv-card-min-height);
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas:
        "photo main rank"
        "photo meta score";
    grid-template-rows: 1fr auto;
    column-gap: clamp(.4rem, .62vw, .75rem);
    row-gap: .2rem;
    align-items: stretch;
    padding: clamp(.24rem, .34vw, .38rem) clamp(.7rem, .9vw, .95rem) clamp(.24rem, .34vw, .38rem) clamp(.24rem, .34vw, .38rem);
    border-radius: .9rem;
    background: linear-gradient(90deg, rgba(153, 54, 43, .05), rgba(255, 255, 255, .98));
    border: 1px solid rgba(153, 54, 43, .08);
    overflow: hidden;
    min-width: var(--tv-card-min-width);
}

.tv-grid-card--placeholder {
    visibility: hidden;
    pointer-events: none;
}

.tv-grid-card--endcap {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 1.2rem;
    border-radius: 1rem;
    background: linear-gradient(90deg, rgba(153, 54, 43, .08), rgba(255, 255, 255, .98));
    border: 1px solid rgba(153, 54, 43, .12);
    color: #99362b;
    font-size: clamp(1rem, 1.2vw, 1.2rem);
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
    text-align: center;
}

.tv-grid-pos {
    grid-area: rank;
    display: inline-flex;
    align-items: center;
    gap: .24rem;
    align-self: start;
    justify-self: end;
}

.tv-grid-pos__number {
    width: clamp(1.5rem, 1.85vw, 1.9rem);
    height: clamp(1.5rem, 1.85vw, 1.9rem);
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #7f2c23;
    color: #fff;
    font-size: clamp(.62rem, .74vw, .82rem);
    font-weight: 1000;
}

.tv-grid-photo {
    grid-area: photo;
    height: 100%;
    aspect-ratio: 17 / 24;
    width: auto;
    border-radius: .8rem;
    align-self: stretch;
}

.tv-grid-main {
    grid-area: main;
    min-width: 0;
    min-height: 0;
    display: flex;
    align-items: center;
    align-self: center;
}

.tv-grid-top {
    display: block;
    min-width: 0;
    width: 100%;
}

.tv-grid-name {
    min-width: 0;
    font-size: clamp(.94rem, 1.08vw, 1.18rem);
    font-weight: 900;
    line-height: 1.04;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    word-break: break-word;
    width: 100%;
}

.tv-grid-score {
    grid-area: score;
    align-self: end;
    justify-self: end;
    font-size: clamp(1.5rem, 2vw, 2rem);
    font-weight: 1000;
    line-height: 1;
    color: #99362b;
    white-space: nowrap;
}

.tv-grid-stats {
    grid-area: meta;
    display: flex;
    flex-wrap: wrap;
    gap: .24rem .52rem;
    min-width: 0;
    align-self: end;
}

.tv-empty {
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    border-radius: 1rem;
    border: 1px dashed rgba(153, 54, 43, .16);
    background: rgba(255, 255, 255, .74);
    color: #6b7280;
    font-size: clamp(.8rem, .95vw, 1rem);
    font-weight: 700;
    text-align: center;
}

.tv-empty--full {
    grid-row: 2 / 4;
}

.icon-medal,
.icon-trophy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.icon-medal {
    width: 1em;
    height: 1em;
    color: inherit;
}

.icon-medal svg {
    width: 100%;
    height: 100%;
    display: block;
    fill: currentColor;
}

.icon-trophy {
    width: 1.05em;
    height: 1.05em;
    color: #d4a800;
    filter: drop-shadow(0 .03rem .04rem rgba(97, 48, 8, .18));
}

.icon-trophy svg {
    width: 100%;
    height: 100%;
    display: block;
    fill: currentColor;
}

.icon-medal--gold {
    color: #d4a800;
}

.icon-medal--silver {
    color: #98a2ad;
}

.icon-medal--bronze {
    color: #b5651d;
}

@media (min-width: 1920px) {
    .tv-ranking {
        --tv-gap: clamp(.7rem, .95vw, 1.2rem);
        --tv-shell-padding: clamp(.9rem, 1.15vw, 1.35rem);
        --tv-card-padding: clamp(.7rem, .82vw, .96rem);
        --tv-name-size: clamp(1rem, 1.08vw, 1.24rem);
        --tv-meta-size: clamp(.66rem, .62vw, .82rem);
        --tv-score-size: clamp(1.14rem, 1.28vw, 1.52rem);
        --tv-card-min-height: 102px;
        --tv-card-min-width: 240px;
        grid-template-rows: auto minmax(0, 42vh) minmax(0, 1fr);
    }

    .tv-ranking-head {
        padding: .55rem .75rem;
    }

    .tv-ranking-logo-shell {
        width: clamp(4.2rem, 4.3vw, 5.4rem);
        height: clamp(4.2rem, 4.3vw, 5.4rem);
    }

    .tv-ranking-badge {
        font-size: clamp(.96rem, 1vw, 1.14rem);
        padding: .5rem 1rem;
    }

    .tv-podium-card--center {
        min-height: clamp(380px, 39vh, 520px);
    }

    .tv-podium-card--left {
        min-height: clamp(330px, 34vh, 450px);
    }

    .tv-podium-card--right {
        min-height: clamp(316px, 33vh, 430px);
    }

    .tv-podium-photo {
        width: clamp(8.6rem, 8.4vw, 11.4rem);
        height: clamp(12rem, 12.8vw, 15.6rem);
    }

    .tv-podium-card--center .tv-podium-photo {
        width: clamp(10rem, 9.8vw, 12.8rem);
        height: clamp(13.6rem, 14.4vw, 17.4rem);
    }

    .tv-podium-name {
        font-size: clamp(1.32rem, 1.48vw, 1.84rem);
    }

    .tv-podium-score {
        font-size: clamp(2rem, 2.3vw, 2.72rem);
    }

    .tv-podium-chip {
        font-size: clamp(1rem, 1.04vw, 1.22rem);
    }

    .tv-ranking-rows-viewport {
        --tv-row-height: 152px;
    }

    .tv-grid-card {
        border-radius: 1rem;
        padding: clamp(.34rem, .42vw, .5rem) clamp(.9rem, 1vw, 1.08rem) clamp(.34rem, .42vw, .5rem) clamp(.34rem, .42vw, .5rem);
    }

    .tv-grid-photo {
        border-radius: .95rem;
    }

    .tv-grid-name {
        font-size: clamp(1.08rem, 1.14vw, 1.36rem);
    }

    .tv-grid-score {
        font-size: clamp(1.86rem, 2.1vw, 2.34rem);
    }

    .tv-grid-chip {
        font-size: clamp(.92rem, .96vw, 1.12rem);
    }
}

@media (min-width: 2560px) {
    .tv-ranking {
        --tv-gap: clamp(.9rem, 1.08vw, 1.45rem);
        --tv-shell-padding: clamp(1.05rem, 1.25vw, 1.6rem);
        --tv-card-padding: clamp(.82rem, .92vw, 1.08rem);
        --tv-name-size: clamp(1.08rem, 1.16vw, 1.36rem);
        --tv-meta-size: clamp(.72rem, .68vw, .9rem);
        --tv-score-size: clamp(1.22rem, 1.34vw, 1.64rem);
        --tv-card-min-height: 118px;
        --tv-card-min-width: 270px;
        grid-template-rows: auto minmax(0, 44vh) minmax(0, 1fr);
    }

    .tv-ranking-logo-shell {
        width: clamp(4.7rem, 4.5vw, 5.9rem);
        height: clamp(4.7rem, 4.5vw, 5.9rem);
    }

    .tv-ranking-badge {
        font-size: clamp(1.04rem, 1.04vw, 1.22rem);
        padding: .56rem 1.12rem;
    }

    .tv-podium-card--center {
        min-height: clamp(430px, 40vh, 580px);
    }

    .tv-podium-card--left {
        min-height: clamp(370px, 35vh, 500px);
    }

    .tv-podium-card--right {
        min-height: clamp(350px, 34vh, 480px);
    }

    .tv-podium-photo {
        width: clamp(9.8rem, 8.8vw, 12.6rem);
        height: clamp(13.5rem, 13.4vw, 17.2rem);
    }

    .tv-podium-card--center .tv-podium-photo {
        width: clamp(11.2rem, 10.1vw, 14rem);
        height: clamp(15rem, 14.9vw, 18.9rem);
    }

    .tv-ranking-rows-viewport {
        --tv-row-height: 176px;
    }

    .tv-grid-name {
        font-size: clamp(1.16rem, 1.2vw, 1.46rem);
    }

    .tv-grid-score {
        font-size: clamp(2rem, 2.18vw, 2.52rem);
    }

    .tv-grid-chip {
        font-size: clamp(1rem, 1vw, 1.18rem);
    }
}

@media (min-width: 768px) and (max-width: 1180px) {
    html,
    body {
        height: 100%;
        overflow: hidden;
    }

    .tv-ranking {
        --tv-gap: .5rem;
        --tv-shell-padding: .6rem;
        --tv-card-min-height: 68px;
        height: 100dvh;
        grid-template-rows: auto minmax(0, 34vh) minmax(0, 1fr);
        gap: .5rem;
        padding: .6rem;
    }

    .tv-ranking-head {
        padding: .2rem .25rem;
    }

    .tv-ranking-logo {
        width: 100%;
        height: 100%;
    }

    .tv-ranking-badge {
        font-size: .92rem;
        padding: .38rem .78rem;
    }

    .tv-ranking-podium {
        gap: .5rem;
    }

    .tv-podium-card--center {
        min-height: clamp(260px, 31vh, 320px);
    }

    .tv-podium-card--left,
    .tv-podium-card--right {
        min-height: clamp(236px, 28vh, 288px);
    }

    .tv-podium-photo {
        width: clamp(5.8rem, 8vw, 7.2rem);
        height: clamp(8.1rem, 11vw, 10rem);
    }

    .tv-podium-card--center .tv-podium-photo {
        width: clamp(6.4rem, 8.8vw, 7.8rem);
        height: clamp(9rem, 12vw, 10.8rem);
    }

    .tv-podium-name {
        font-size: clamp(1rem, 1.5vw, 1.22rem);
    }

    .tv-podium-score {
        font-size: clamp(1.7rem, 2.4vw, 2.05rem);
    }

    .tv-podium-chip {
        font-size: clamp(.84rem, 1.05vw, .98rem);
    }

    .tv-ranking-rows-viewport {
        --tv-row-height: 104px;
    }

    .tv-grid-card {
        min-width: 0;
        min-height: 6.1rem;
        padding: .24rem .62rem .24rem .24rem;
    }

    .tv-grid-photo {
        width: 4rem;
        min-width: 4rem;
        height: 5.9rem;
        min-height: 5.9rem;
    }

    .tv-grid-name {
        font-size: .96rem;
    }

    .tv-grid-score {
        font-size: 1.55rem;
    }

    .tv-grid-chip {
        font-size: .82rem;
    }
}

@media (max-width: 767px) {
    html,
    body {
        height: auto;
        min-height: 100%;
        overflow-x: hidden;
        overflow-y: auto;
    }

    .tv-ranking {
        width: 100%;
        height: auto;
        min-height: 100dvh;
        grid-template-rows: auto auto auto;
        gap: .7rem;
        padding: .75rem;
    }

    .tv-ranking-head {
        padding: .1rem 0 .35rem;
    }

    .tv-ranking-brand {
        align-items: center;
        gap: .6rem;
    }

    .tv-ranking-logo-shell {
        width: 3.2rem;
        height: 3.2rem;
        border-radius: .85rem;
    }

    .tv-ranking-title-block {
        flex: 1 1 auto;
        gap: .18rem;
    }

    .tv-ranking-mobile-switch {
        display: flex;
        gap: .35rem;
        align-items: center;
        margin-left: auto;
        flex: 0 0 auto;
    }

    .tv-ranking-mobile-chip {
        font-size: .68rem;
        padding: .28rem .48rem;
        min-width: 0;
    }

    .tv-ranking-badge {
        flex: 1 1 auto;
        min-width: 0;
        width: auto;
        justify-content: flex-start;
        padding: .34rem .68rem;
        font-size: .72rem;
        letter-spacing: .03em;
    }

    .tv-ranking-badge-text--full {
        display: none !important;
    }

    .tv-ranking-badge-text--mobile {
        display: inline !important;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .tv-ranking-mobile-chip-label {
        display: none;
    }

    .tv-ranking-podium {
        grid-template-columns: 1fr;
        gap: .7rem;
        overflow: visible;
    }

    .tv-podium-card--center,
    .tv-podium-card--left,
    .tv-podium-card--right {
        min-height: 18rem;
    }

    .tv-podium-card--center {
        order: 1;
    }

    .tv-podium-card--left {
        order: 2;
    }

    .tv-podium-card--right {
        order: 3;
    }

    .tv-podium-photo {
        width: 100%;
        max-width: 7rem;
        height: 9rem;
    }

    .tv-podium-name {
        font-size: 1rem;
    }

    .tv-podium-score {
        font-size: 1.8rem;
    }

    .tv-ranking-grid-shell {
        overflow: visible;
    }

    .tv-ranking-rows-templates {
        display: grid;
        gap: .55rem;
    }

    .tv-ranking-rows-viewport {
        display: none;
    }

    .tv-ranking-row {
        height: auto;
        min-height: 0;
        grid-template-columns: 1fr;
        gap: .55rem;
    }

    .tv-ranking-row--endcap {
        display: none;
    }

    .tv-grid-card {
        min-width: 0;
        min-height: 6.35rem;
        column-gap: .6rem;
        row-gap: .22rem;
        padding: .28rem .72rem .28rem .28rem;
    }

    .tv-grid-photo {
        width: 4rem;
        min-width: 4rem;
        height: 5.9rem;
        min-height: 5.9rem;
    }

    .tv-grid-name {
        font-size: 1rem;
    }

    .tv-grid-score {
        font-size: 1.7rem;
    }

    .tv-grid-chip {
        font-size: .9rem;
    }
}
