/* Public charts experience: weekly rankings and station-play highlights. */
.charts-experience {
    --chart-panel: rgba(10, 14, 31, .9);
    --chart-line: rgba(255, 255, 255, .1);
    --chart-muted: #aeb2c4;
}

.charts-experience :focus-visible {
    outline: 3px solid rgba(255, 63, 168, .58);
    outline-offset: 4px;
}

.charts-main {
    width: min(1760px, calc(100% - 72px));
    margin: 0 auto;
    position: relative;
}

.charts-main > :not(.site-footer) {
    width: min(1540px, 100%);
    margin-right: auto;
    margin-left: auto;
    position: relative;
    z-index: 1;
}

.charts-hero {
    min-height: 214px;
    padding: 38px 22px 24px;
    display: flex;
    align-items: center;
}

.charts-hero-copy {
    max-width: 620px;
    position: relative;
    z-index: 2;
}

.charts-eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 10px;
    color: #d2d4df;
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.charts-eyebrow span {
    width: 32px;
    height: 2px;
    background: linear-gradient(90deg, var(--pink), #9f46ff);
    box-shadow: 0 0 14px rgba(255, 63, 168, .75);
}

.charts-hero h1 {
    margin: 0 0 12px;
    font-size: clamp(3.15rem, 5vw, 5rem);
    line-height: .94;
    letter-spacing: -.055em;
}

.charts-hero h1 span {
    color: var(--pink);
}

.charts-hero-copy > p:last-child {
    max-width: 565px;
    margin: 0;
    color: #c7c9d5;
    font-size: 1rem;
    line-height: 1.55;
}

.charts-layout {
    display: grid;
    grid-template-columns: minmax(0, 2.18fr) minmax(340px, .95fr);
    gap: 22px;
    align-items: start;
    padding: 0 0 54px;
}

.chart-panel {
    border: 1px solid rgba(180, 188, 223, .17);
    border-radius: 13px;
    background:
        linear-gradient(135deg, rgba(21, 25, 48, .88), rgba(8, 11, 27, .94)),
        var(--chart-panel);
    box-shadow: 0 24px 70px rgba(0, 0, 0, .34), inset 0 1px 0 rgba(255, 255, 255, .025);
    overflow: hidden;
    backdrop-filter: blur(18px);
}

.chart-panel-head {
    min-height: 52px;
    padding: 13px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border-bottom: 1px solid var(--chart-line);
}

.chart-panel-head > div {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.chart-kicker,
.chart-panel-head h2 {
    margin: 0;
    color: var(--pink);
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: .015em;
    text-transform: uppercase;
}

.chart-date {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    color: #d8dae4;
    font-size: .72rem;
    font-weight: 750;
    letter-spacing: .025em;
    text-transform: uppercase;
}

.chart-date > span:first-child {
    color: #7f8499;
}

.calendar-mark {
    width: 14px;
    height: 14px;
    margin-left: 2px;
    border: 1px solid #767b91;
    border-radius: 2px;
    position: relative;
}

.calendar-mark::before {
    content: "";
    position: absolute;
    inset: 3px 2px auto;
    border-top: 1px solid #767b91;
}

.top-chart-list,
.compact-chart-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.top-chart-list li {
    min-height: 50px;
    display: grid;
    grid-template-columns: 48px 54px minmax(180px, 1.45fr) minmax(110px, .78fr) 68px 62px;
    align-items: center;
    gap: 13px;
    padding: 3px 18px 3px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, .075);
    transition: background .2s ease, transform .2s ease;
}

.top-chart-list li:hover {
    background: linear-gradient(90deg, rgba(255, 63, 168, .055), rgba(76, 67, 210, .035));
}

.chart-rank {
    color: #b8bbca;
    font-size: 1.55rem;
    font-weight: 500;
    text-align: center;
}

.chart-podium .chart-rank {
    color: var(--pink);
    font-size: 1.75rem;
}

.chart-art {
    width: 44px;
    height: 44px;
    border-radius: 7px;
    object-fit: cover;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .35);
}

.chart-track,
.compact-chart-list li > div,
.trending-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.chart-track strong,
.compact-chart-list strong,
.trending-copy > strong {
    overflow: hidden;
    color: #fff;
    font-size: .98rem;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chart-track span,
.compact-chart-list li > div > span,
.trending-copy > span {
    overflow: hidden;
    margin-top: 3px;
    color: var(--chart-muted);
    font-size: .78rem;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chart-genre,
.chart-duration {
    color: #b4b7c6;
    font-size: .78rem;
}

.chart-duration {
    font-variant-numeric: tabular-nums;
}

.chart-movement {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 5px;
    font-size: .78rem;
    font-variant-numeric: tabular-nums;
}

.chart-movement b {
    font-size: 1.55rem;
    font-weight: 400;
    line-height: .8;
}

.chart-movement.up {
    color: #2fdf9a;
}

.chart-movement.down {
    color: #ff4967;
}

.chart-movement.new {
    color: #bd5cff;
    font-weight: 850;
}

.chart-movement.steady {
    color: #777c90;
}

.chart-play-counts {
    margin: 8px 18px 9px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 8px;
    overflow: hidden;
    transition: border-color .2s ease, background .2s ease;
}

.chart-play-counts:hover,
.chart-play-counts[open] {
    border-color: rgba(255, 63, 168, .48);
    background: rgba(255, 63, 168, .07);
}

.chart-play-counts summary {
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #f5f5f8;
    font-size: .82rem;
    font-weight: 850;
    list-style: none;
    cursor: pointer;
    text-transform: uppercase;
}

.chart-play-counts summary::-webkit-details-marker {
    display: none;
}

.details-chevron {
    width: 7px;
    height: 7px;
    margin-left: 2px;
    border-right: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    transition: transform .2s ease;
}

.chart-play-counts[open] .details-chevron {
    transform: rotate(225deg) translate(-2px, -2px);
}

.chart-play-counts > ol {
    margin: 0;
    padding: 2px 15px 10px;
    border-top: 1px solid rgba(255, 255, 255, .08);
    list-style: none;
}

.chart-play-counts > ol li {
    min-height: 31px;
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    color: #9da1b4;
    border-bottom: 1px solid rgba(255, 255, 255, .055);
    font-size: .72rem;
}

.chart-play-counts > ol li:last-child {
    border-bottom: 0;
}

.chart-play-counts > ol strong {
    overflow: hidden;
    color: #e8e9ef;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chart-play-counts > ol b {
    color: var(--pink);
    font-weight: 750;
    font-variant-numeric: tabular-nums;
}

.mini-bars {
    height: 17px;
    display: flex;
    align-items: end;
    gap: 2px;
}

.mini-bars i {
    width: 2px;
    height: 55%;
    background: var(--pink);
}

.mini-bars i:nth-child(2) {
    height: 100%;
}

.mini-bars i:nth-child(3) {
    height: 76%;
}

.mini-bars i:nth-child(4) {
    height: 38%;
}

.charts-sidebar {
    display: grid;
    gap: 18px;
}

.side-card-head {
    min-height: 51px;
    padding: 10px 17px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border-bottom: 1px solid var(--chart-line);
}

.side-card-head h2 {
    margin: 0;
    color: var(--pink);
    font-size: .91rem;
    font-weight: 900;
    letter-spacing: .015em;
    text-transform: uppercase;
}

.planned-tag {
    padding: 4px 8px;
    border: 1px solid rgba(255, 207, 64, .42);
    border-radius: 99px;
    color: #ffd84f;
    background: rgba(255, 196, 0, .1);
    font-size: .61rem;
    font-weight: 950;
    letter-spacing: .08em;
    text-transform: uppercase;
    box-shadow: 0 0 16px rgba(255, 196, 0, .08);
}

.planned-note {
    margin: 0;
    padding: 10px 17px 5px;
    color: #8e93a7;
    font-size: .7rem;
    line-height: 1.4;
}

.compact-chart-list {
    padding: 2px 15px 7px;
}

.compact-chart-list li {
    min-height: 40px;
    display: grid;
    grid-template-columns: 24px 38px minmax(0, 1fr) 35px;
    align-items: center;
    gap: 9px;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.compact-chart-list li:last-child {
    border-bottom: 0;
}

.compact-rank {
    color: #c7cad5;
    font-size: 1.04rem;
    text-align: center;
}

.compact-chart-list li:first-child .compact-rank {
    color: var(--pink);
}

.compact-chart-list img {
    width: 36px;
    height: 36px;
    border-radius: 5px;
    object-fit: cover;
}

.compact-chart-list strong {
    font-size: .78rem;
}

.compact-chart-list li > div > span {
    font-size: .68rem;
}

.is-preview {
    opacity: .8;
}

.round-play {
    width: 30px;
    height: 30px;
    border: 1px solid rgba(255, 255, 255, .26);
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    background: rgba(8, 12, 31, .72);
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.round-play:not(:disabled):hover {
    border-color: var(--pink);
    background: rgba(255, 63, 168, .18);
    transform: scale(1.06);
}

.round-play:disabled {
    cursor: not-allowed;
    opacity: .48;
}

.round-play span {
    width: 0;
    height: 0;
    margin-left: 2px;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 8px solid currentColor;
}

.trending-card .side-card-head h2 {
    color: #c158ff;
}

.trend-flame {
    color: var(--pink);
    font-size: 1.15rem;
}

.live-dot {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--pink);
    font-size: .68rem;
    font-weight: 800;
    text-transform: uppercase;
}

.live-dot i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 10px currentColor;
}

.trending-feature {
    display: grid;
    grid-template-columns: 98px minmax(0, 1fr);
    gap: 14px;
    padding: 12px 17px 13px;
}

.trending-art {
    width: 98px;
    height: 98px;
}

.trending-art img {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    object-fit: cover;
}

.trending-copy {
    justify-content: center;
}

.trending-copy > strong {
    font-size: .98rem;
}

.trending-copy > span {
    font-size: .76rem;
}

.trending-copy > div {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 10px;
    margin-top: 16px;
}

.trending-copy em {
    padding: 5px 7px;
    border: 1px solid rgba(255, 63, 168, .17);
    border-radius: 4px;
    color: var(--pink);
    background: rgba(255, 63, 168, .08);
    font-size: .6rem;
    font-style: normal;
    font-weight: 850;
    text-transform: uppercase;
    white-space: nowrap;
}

.micro-wave {
    height: 24px;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1px;
    overflow: hidden;
    opacity: .72;
}

.micro-wave i {
    width: 1px;
    min-width: 1px;
    height: var(--wave);
    border-radius: 99px;
    background: linear-gradient(180deg, #e73bff, var(--pink) 50%, #7e32ff);
    box-shadow: 0 0 3px rgba(255, 63, 168, .42);
}

.play-count-list li {
    grid-template-columns: 24px 38px minmax(0, 1fr) auto;
}

.play-count {
    color: var(--pink);
    font-size: .79rem;
    font-variant-numeric: tabular-nums;
}

.charts-empty {
    min-height: 445px;
    padding: 70px 30px;
    display: grid;
    place-content: center;
    justify-items: center;
    text-align: center;
}

.charts-empty > span {
    width: 58px;
    height: 58px;
    border: 1px solid rgba(255, 63, 168, .3);
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--pink);
    background: rgba(255, 63, 168, .08);
    font-size: 1.5rem;
}

.charts-empty h3 {
    margin: 18px 0 6px;
}

.charts-empty p,
.side-empty {
    color: var(--chart-muted);
}

.side-empty {
    margin: 0;
    padding: 24px 18px;
    font-size: .8rem;
    line-height: 1.5;
}

.planned-placeholder {
    padding: 7px 17px 15px;
    display: grid;
    gap: 7px;
}

.planned-placeholder > span {
    height: 38px;
    display: grid;
    grid-template-columns: 22px 34px 1fr;
    align-items: center;
    gap: 9px;
}

.planned-placeholder b {
    color: #6f7387;
    font-size: .8rem;
    font-weight: 500;
}

.planned-placeholder i {
    width: 34px;
    height: 34px;
    border-radius: 5px;
    background: rgba(255, 255, 255, .06);
}

.planned-placeholder em {
    width: 64%;
    height: 7px;
    border-radius: 99px;
    background: rgba(255, 255, 255, .06);
}

.charts-main .site-footer {
    margin-top: 22px;
}

@media (max-width: 1180px) {
    .charts-layout {
        grid-template-columns: minmax(0, 1.75fr) minmax(310px, .85fr);
    }

    .top-chart-list li {
        grid-template-columns: 42px 50px minmax(150px, 1.4fr) 80px 62px;
    }

    .chart-genre {
        display: none;
    }
}

@media (max-width: 900px) {
    .charts-main {
        width: min(100% - 28px, 1760px);
    }

    .charts-hero {
        min-height: 245px;
        padding: 44px 10px 16px;
    }

    .charts-layout {
        grid-template-columns: 1fr;
    }

    .charts-sidebar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .most-played-card {
        grid-column: 1 / -1;
    }
}

@media (max-width: 620px) {
    .charts-main {
        width: min(100% - 28px, 1760px);
    }

    .charts-hero {
        min-height: 230px;
        padding-top: 34px;
    }

    .charts-hero h1 {
        font-size: 3.2rem;
    }

    .charts-hero-copy > p:last-child {
        font-size: .9rem;
    }

    .charts-layout {
        gap: 14px;
    }

    .chart-panel {
        border-radius: 10px;
    }

    .chart-panel-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
        padding: 13px 15px;
    }

    .chart-date {
        font-size: .64rem;
    }

    .top-chart-list li {
        min-height: 60px;
        grid-template-columns: 30px 44px minmax(0, 1fr) 47px;
        gap: 9px;
        padding: 7px 10px;
    }

    .chart-rank,
    .chart-podium .chart-rank {
        font-size: 1.25rem;
    }

    .chart-art {
        width: 42px;
        height: 42px;
    }

    .chart-track strong {
        font-size: .85rem;
    }

    .chart-duration,
    .chart-genre {
        display: none;
    }

    .chart-movement {
        justify-content: flex-end;
        font-size: .68rem;
    }

    .chart-movement b {
        font-size: 1.25rem;
    }

    .charts-sidebar {
        grid-template-columns: 1fr;
    }

    .most-played-card {
        grid-column: auto;
    }

    .chart-play-counts summary {
        font-size: .71rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .charts-experience *,
    .charts-experience *::before,
    .charts-experience *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
