/* Show a season switcher only when the title actually has multiple seasons. */
body.anime-detail-page .anime-extra-grid > .anime-seasons-panel {
    width: 100%;
    margin: 4px 0 0;
    padding: 28px 0 0;
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, .08);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

body.anime-detail-page .anime-seasons-head {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    gap: 18px;
    margin: 0 0 16px;
    text-align: left;
}

body.anime-detail-page .anime-seasons-head h2 {
    margin: 0;
    color: rgba(255, 255, 255, .94);
    font-size: clamp(24px, 2.3vw, 34px);
    line-height: 1;
    letter-spacing: -.035em;
    text-transform: none;
    text-shadow: none;
}

body.anime-detail-page .anime-seasons-head p {
    margin: 0;
    color: rgba(255, 255, 255, .38);
    font-size: 12px;
}

body.anime-detail-page .anime-seasons-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(270px, 330px);
    grid-template-columns: none;
    gap: 12px;
    overflow-x: auto;
    padding: 1px 1px 10px;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, .16) transparent;
}

body.anime-detail-page .anime-season-card {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) 22px;
    gap: 13px;
    align-items: center;
    min-height: 88px;
    padding: 9px 12px 9px 9px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 11px;
    background: rgba(255, 255, 255, .025);
    box-shadow: none;
    scroll-snap-align: start;
    transform: none;
}

body.anime-detail-page .anime-season-card:hover,
body.anime-detail-page .anime-season-card:focus-visible {
    border-color: rgba(var(--anime-accent-rgb), .42);
    background: rgba(var(--anime-accent-rgb), .075);
    box-shadow: none;
    transform: translateY(-1px);
}

body.anime-detail-page .anime-season-card.is-active {
    border-color: rgba(var(--anime-accent-rgb), .56);
    background: rgba(var(--anime-accent-rgb), .11);
    box-shadow: inset 3px 0 0 rgba(var(--anime-accent-rgb), .92);
}

body.anime-detail-page .anime-season-card-poster {
    width: 58px;
    height: 76px;
    border-radius: 7px;
}

body.anime-detail-page .anime-season-card-copy {
    gap: 3px;
}

body.anime-detail-page .anime-season-card-relation {
    color: rgba(var(--anime-accent-rgb), .92);
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .08em;
}

body.anime-detail-page .anime-season-card-copy strong {
    overflow: hidden;
    color: rgba(255, 255, 255, .88);
    font-size: 14px;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.anime-detail-page .anime-season-card-copy span {
    color: rgba(255, 255, 255, .42);
    font-size: 11px;
}

body.anime-detail-page .anime-season-card-arrow {
    color: rgba(255, 255, 255, .32);
    font-size: 22px;
    transition: color .2s ease, transform .2s ease;
}

body.anime-detail-page .anime-season-card:hover .anime-season-card-arrow,
body.anime-detail-page .anime-season-card:focus-visible .anime-season-card-arrow {
    color: rgba(255, 255, 255, .78);
    transform: translateX(2px);
}

@media (max-width: 700px) {
    body.anime-detail-page .anime-seasons-head {
        display: block;
    }

    body.anime-detail-page .anime-seasons-head p {
        margin-top: 6px;
    }

    body.anime-detail-page .anime-seasons-grid {
        grid-auto-columns: minmax(250px, 86vw);
    }
}
