.a45-charts {
    --a45c-ink: var(--a45-text, #231f20);
    --a45c-muted: var(--a45-muted, #746b67);
    --a45c-surface: var(--a45-surface, #fff);
    --a45c-surface-2: var(--a45-surface-2, #f5f1ee);
    --a45c-border: var(--a45-border, #e4dad4);
    --a45c-accent: var(--a45-accent, #f04461);
    --a45c-highlight: var(--a45-highlight, #f2b857);
    --a45c-shadow: var(--a45-shadow, 0 18px 42px rgba(38, 25, 23, .10));
    width: min(calc(100% - 36px), 1240px);
    margin: 0 auto;
    padding: clamp(34px, 5vw, 74px) 0 70px;
    color: var(--a45c-ink);
}
.a45-charts-template-main { overflow: clip; }
.a45-charts * { box-sizing: border-box; }
.a45-charts__hero {
    position: relative;
    overflow: hidden;
    padding: clamp(30px, 6vw, 72px);
    border: 1px solid var(--a45c-border);
    border-radius: 32px;
    background:
        radial-gradient(circle at 83% 15%, rgba(68, 217, 255, .22), transparent 28%),
        radial-gradient(circle at 70% 90%, rgba(175, 70, 255, .20), transparent 36%),
        linear-gradient(135deg, var(--a45c-surface) 0%, var(--a45c-surface-2) 100%);
    box-shadow: var(--a45c-shadow);
}
.a45-charts__hero::after {
    content: "100";
    position: absolute;
    right: -18px;
    bottom: -75px;
    color: color-mix(in srgb, var(--a45c-accent) 11%, transparent);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(11rem, 29vw, 25rem);
    font-weight: 900;
    line-height: .7;
    pointer-events: none;
}
.a45-charts__hero > * { position: relative; z-index: 1; }
.a45-charts__eyebrow,
.a45-jam-promo__eyebrow {
    display: block;
    margin-bottom: 10px;
    color: var(--a45c-accent);
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .18em;
    text-transform: uppercase;
}
.a45-charts__hero h1 {
    max-width: 13ch;
    margin: 0 0 18px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.35rem, 6.5vw, 6.2rem);
    line-height: .91;
    letter-spacing: -.052em;
}
.a45-charts__hero > p {
    max-width: 58ch;
    margin: 0;
    color: var(--a45c-muted);
    font-size: clamp(1rem, 1.7vw, 1.24rem);
    line-height: 1.65;
}
.a45-charts__hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-top: 22px;
    color: var(--a45c-muted);
    font-size: .88rem;
    font-weight: 750;
}
.a45-jam-promo {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: clamp(20px, 4vw, 38px);
    align-items: center;
    overflow: hidden;
    margin: 34px 0 54px;
    padding: clamp(24px, 4vw, 42px);
    border: 1px solid rgba(83, 174, 255, .4);
    border-radius: 30px;
    background:
        linear-gradient(115deg, rgba(7, 14, 35, .97), rgba(28, 11, 53, .97)),
        #080d1f;
    box-shadow: 0 25px 70px rgba(19, 15, 47, .30);
    color: #fff;
}
.a45-jam-promo::after {
    content: "";
    position: absolute;
    inset: -50% -20%;
    background: linear-gradient(100deg, transparent 35%, rgba(63, 218, 255, .10) 48%, rgba(193, 72, 255, .12) 53%, transparent 65%);
    transform: rotate(-8deg);
    pointer-events: none;
}
.a45-jam-promo > * { position: relative; z-index: 1; }
.a45-jam-promo__logo-link {
    position: relative;
    display: grid;
    place-items: center;
    width: clamp(118px, 14vw, 176px);
    height: clamp(118px, 14vw, 176px);
    border-radius: 50%;
}
.a45-jam-promo__logo-link img {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 15px 24px rgba(52, 140, 255, .28));
    animation: a45-jam-breathe 2.8s ease-in-out infinite;
}
.a45-jam-promo__pulse {
    position: absolute;
    inset: 10%;
    z-index: 1;
    border: 2px solid rgba(79, 208, 255, .65);
    border-radius: 50%;
    box-shadow: 0 0 30px rgba(70, 199, 255, .38), 0 0 48px rgba(172, 68, 255, .32);
    animation: a45-jam-ring 2.8s ease-out infinite;
}
@keyframes a45-jam-breathe {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.055); }
}
@keyframes a45-jam-ring {
    0% { opacity: .9; transform: scale(.92); }
    70%, 100% { opacity: 0; transform: scale(1.25); }
}
.a45-jam-promo__copy strong {
    display: block;
    max-width: 18ch;
    margin-bottom: 10px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.65rem, 3vw, 3.25rem);
    line-height: .98;
    letter-spacing: -.035em;
}
.a45-jam-promo__copy p {
    max-width: 56ch;
    margin: 0;
    color: rgba(255, 255, 255, .72);
    line-height: 1.6;
}
.a45-jam-promo__button,
.a45-chart-row__apple,
.a45-chart-load-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 11px 17px;
    border: 0;
    border-radius: 999px;
    background: var(--a45c-accent);
    color: #fff;
    font: inherit;
    font-size: .88rem;
    font-weight: 900;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}
.a45-jam-promo__button:hover,
.a45-jam-promo__button:focus-visible,
.a45-chart-row__apple:hover,
.a45-chart-row__apple:focus-visible,
.a45-chart-load-more:hover,
.a45-chart-load-more:focus-visible {
    color: #fff;
    filter: brightness(1.08);
    outline: 3px solid var(--a45c-highlight);
    outline-offset: 3px;
}
.a45-chart-browser {
    padding: clamp(24px, 4vw, 42px);
    border: 1px solid var(--a45c-border);
    border-radius: 30px;
    background: var(--a45c-surface);
    box-shadow: var(--a45c-shadow);
}
.a45-chart-browser__header {
    display: flex;
    gap: 24px;
    align-items: end;
    justify-content: space-between;
    margin-bottom: 24px;
}
.a45-chart-browser__header h2 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 4vw, 4rem);
    line-height: .95;
    letter-spacing: -.04em;
}
.a45-chart-browser__header > p {
    max-width: 40ch;
    margin: 0;
    color: var(--a45c-muted);
    font-size: .9rem;
}
.a45-chart-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--a45c-border);
}
.a45-chart-tab {
    min-height: 40px;
    padding: 8px 13px;
    border: 1px solid var(--a45c-border);
    border-radius: 999px;
    background: var(--a45c-surface-2);
    color: var(--a45c-ink);
    font: inherit;
    font-size: .82rem;
    font-weight: 850;
    cursor: pointer;
}
.a45-chart-tab:hover,
.a45-chart-tab:focus-visible {
    border-color: var(--a45c-accent);
    outline: 3px solid var(--a45c-highlight);
    outline-offset: 2px;
}
.a45-chart-tab.is-active {
    border-color: var(--a45c-accent);
    background: var(--a45c-accent);
    color: #fff;
}
.a45-chart-loading,
.a45-chart-error {
    display: grid;
    justify-items: center;
    gap: 14px;
    min-height: 270px;
    place-content: center;
    padding: 34px;
    text-align: center;
    color: var(--a45c-muted);
}
.a45-chart-loading__disc {
    width: 56px;
    height: 56px;
    border: 7px solid var(--a45c-border);
    border-top-color: var(--a45c-accent);
    border-radius: 50%;
    animation: a45-chart-spin 1s linear infinite;
}
@keyframes a45-chart-spin { to { transform: rotate(360deg); } }
.a45-chart-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}
.a45-chart-heading h3 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.65rem, 3.2vw, 2.8rem);
    line-height: 1;
}
.a45-chart-heading p {
    margin: 5px 0 0;
    color: var(--a45c-muted);
    font-size: .88rem;
}
.a45-chart-heading__count {
    flex: 0 0 auto;
    color: var(--a45c-accent);
    font-size: .82rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.a45-chart-list {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.a45-chart-row {
    display: grid;
    grid-template-columns: 62px 54px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    min-height: 78px;
    padding: 10px 12px;
    border: 1px solid transparent;
    border-radius: 18px;
    background: var(--a45c-surface-2);
    transition: transform .16s ease, border-color .16s ease, background-color .16s ease;
}
.a45-chart-row:hover {
    transform: translateY(-1px);
    border-color: var(--a45c-border);
    background: var(--a45c-surface);
}
.a45-chart-row.is-top-three { border-color: color-mix(in srgb, var(--a45c-highlight) 45%, var(--a45c-border)); }
.a45-chart-row[hidden] { display: none !important; }
.a45-chart-row__rank {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 2px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.5rem;
    font-weight: 900;
    line-height: 1;
}
.a45-chart-row__movement {
    font-family: system-ui, sans-serif;
    font-size: .66rem;
    font-weight: 900;
    letter-spacing: .03em;
}
.a45-chart-row__movement.is-up { color: #178a4a; }
.a45-chart-row__movement.is-down { color: #bd3249; }
.a45-chart-row__movement.is-new { color: var(--a45c-accent); }
.a45-chart-row__artwork {
    width: 54px;
    height: 54px;
    overflow: hidden;
    border-radius: 12px;
    background: var(--a45c-border);
}
.a45-chart-row__artwork img { width: 100%; height: 100%; object-fit: cover; }
.a45-chart-row__song { min-width: 0; }
.a45-chart-row__song-title {
    display: block;
    overflow: hidden;
    color: var(--a45c-ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1rem, 1.5vw, 1.18rem);
    font-weight: 900;
    line-height: 1.1;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.a45-chart-row__song-title:hover { color: var(--a45c-accent); }
.a45-chart-row__artist,
.a45-chart-row__album {
    overflow: hidden;
    margin: 3px 0 0;
    color: var(--a45c-muted);
    font-size: .82rem;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.a45-chart-row__album { font-size: .74rem; opacity: .84; }
.a45-explicit {
    display: inline-grid;
    place-items: center;
    width: 17px;
    height: 17px;
    margin-left: 5px;
    border-radius: 4px;
    background: var(--a45c-ink);
    color: var(--a45c-surface);
    font-family: system-ui, sans-serif;
    font-size: .58rem;
    font-weight: 900;
    vertical-align: 2px;
}
.a45-chart-row__apple {
    min-height: 38px;
    padding: 8px 13px;
    background: var(--a45c-ink);
    color: var(--a45c-surface);
    font-size: .76rem;
}
.a45-chart-load-more-wrap { display: flex; justify-content: center; padding-top: 22px; }
.a45-chart-load-more { min-width: 180px; }
.a45-charts__source-note {
    margin-top: 22px;
    padding: 0 8px;
    color: var(--a45c-muted);
    font-size: .78rem;
    line-height: 1.55;
}
.a45-charts__source-note a { color: var(--a45c-accent); font-weight: 800; }
@media (max-width: 850px) {
    .a45-jam-promo { grid-template-columns: auto 1fr; }
    .a45-jam-promo__button { grid-column: 1 / -1; justify-self: start; }
    .a45-chart-browser__header { align-items: start; flex-direction: column; }
}
@media (max-width: 620px) {
    .a45-charts { width: auto; margin: 0 16px; padding-top: 24px; }
    .a45-charts__hero,
    .a45-chart-browser { padding: 22px 18px; border-radius: 24px; }
    .a45-charts__hero h1 { font-size: clamp(2.25rem, 13vw, 3.7rem); }
    .a45-jam-promo {
        grid-template-columns: 1fr;
        justify-items: center;
        margin: 24px 0 38px;
        padding: 26px 20px;
        text-align: center;
        border-radius: 24px;
    }
    .a45-jam-promo__copy strong { max-width: 15ch; }
    .a45-jam-promo__button { grid-column: auto; justify-self: center; width: 100%; }
    .a45-chart-tabs { gap: 7px; }
    .a45-chart-tab { flex: 1 1 auto; }
    .a45-chart-heading { align-items: start; flex-direction: column; gap: 8px; }
    .a45-chart-row {
        grid-template-columns: 44px 48px minmax(0, 1fr);
        gap: 9px;
        padding: 9px;
    }
    .a45-chart-row__rank { font-size: 1.25rem; }
    .a45-chart-row__artwork { width: 48px; height: 48px; border-radius: 10px; }
    .a45-chart-row__apple { grid-column: 2 / -1; justify-self: start; min-height: 34px; margin-top: -2px; }
    .a45-chart-row__song-title { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
    .a45-jam-promo__logo-link img,
    .a45-jam-promo__pulse,
    .a45-chart-loading__disc { animation: none !important; }
}
