/* ==========================================================
   Followeb – Top 100 Charts (liquid glass, same tokens as glass.css)
   Everything is scoped to #fw-chart so nothing else on the site changes.
   ========================================================== */
#fw-chart {
    --up: #3ddc84; --down: #ff5c6c; --new: #ffc53d;
    --c-accent: #ff4d1a; --c-accent2: #ff1f6b;
    --c-muted: rgba(244, 244, 249, .62);
    --c-line: rgba(255, 255, 255, .16);
    --c-glass: linear-gradient(135deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .04));
    max-width: 1100px; margin: 0 auto; padding: 0 16px 140px;
    color: #f4f4f9; font-family: 'Inter', 'Open Sans', Arial, sans-serif; font-size: 15px;
}
#fw-chart *, #fw-chart *:before, #fw-chart *:after { box-sizing: border-box; }
#fw-chart a { color: inherit; text-decoration: none; }
#fw-chart button { font: inherit; color: inherit; cursor: pointer; }
#fw-chart section, #fw-chart nav, #fw-chart article { padding: 0; margin: 0; background: none; height: auto; min-height: 0; } /* theme sets section { padding:100px } */

#fw-chart .fc-head { padding: 14px 0 6px; }
#fw-chart .fc-tabs { display: inline-flex; gap: 4px; padding: 4px; margin-top: 28px; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid var(--c-line); }
#fw-chart .fc-tabs a { padding: 9px 18px; border-radius: 999px; font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--c-muted); }
#fw-chart .fc-tabs a.on { background: #fff; color: #111; }
#fw-chart .fc-tabs a:not(.on):hover { color: #fff; }
/* New Releases rows: no rank / movement columns */
#fw-chart .fc-row.nr { grid-template-columns: 56px 1fr 140px 120px 110px; }
#fw-chart .fc-when { font-size: 12px; color: var(--c-muted); white-space: nowrap; text-align: right; }
@media (max-width: 900px) { #fw-chart .fc-row.nr { grid-template-columns: 52px 1fr 90px 110px; } }
@media (max-width: 640px) {
    #fw-chart .fc-row.nr { grid-template-columns: 52px 1fr 44px; }
    #fw-chart .fc-row.nr .fc-when { display: none; }
    #fw-chart .fc-row.nr .fc-meta .fc-a .fc-whenm { display: inline; }
}
#fw-chart .fc-meta .fc-a .fc-whenm { display: none; }
#fw-chart .fc-head h1 {
    font-family: 'Montserrat', sans-serif !important; font-weight: 900; text-transform: uppercase;
    font-size: clamp(34px, 6vw, 58px); line-height: 1; margin: 0; letter-spacing: -1px; color: #fff !important;
}
#fw-chart .fc-head h1 span { background: linear-gradient(90deg, var(--c-accent), var(--c-accent2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
#fw-chart .fc-head p { color: var(--c-muted); margin: 10px 0 0; max-width: 580px; }
#fw-chart .fc-upd { display: block; margin-top: 6px; font-size: 12px; color: rgba(244, 244, 249, .5); }

/* controls */
#fw-chart .fc-controls { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin: 24px 0 12px; }
#fw-chart .fc-seg { display: flex; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid var(--c-line); }
#fw-chart .fc-seg a { padding: 8px 16px; border-radius: 999px; font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 12px; letter-spacing: .06em; color: var(--c-muted); }
#fw-chart .fc-seg a.on { background: linear-gradient(90deg, var(--c-accent), var(--c-accent2)); color: #fff; box-shadow: 0 6px 18px rgba(255, 46, 90, .35); }
#fw-chart .fc-select { position: relative; }
#fw-chart .fc-select select {
    -webkit-appearance: none; appearance: none; min-height: 0 !important; height: 40px;
    padding: 0 40px 0 16px !important; border-radius: 999px !important;
    font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; cursor: pointer;
}
#fw-chart .fc-select:after { content: ""; position: absolute; right: 16px; top: 50%; width: 7px; height: 7px; border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: translateY(-70%) rotate(45deg); pointer-events: none; }
#fw-chart .fc-playall { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; border: 0; padding: 11px 18px; border-radius: 999px; background: #fff; color: #111; font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
@media (max-width: 640px) { #fw-chart .fc-playall { margin-left: 0; } }
#fw-chart .fc-chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 12px; scrollbar-width: none; }
#fw-chart .fc-chips::-webkit-scrollbar { display: none; }
#fw-chart .fc-chip { flex: none; border: 1px solid var(--c-line); background: rgba(255, 255, 255, .05); padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--c-muted); }
#fw-chart .fc-chip.on, #fw-chart .fc-chip:hover { color: #fff; border-color: rgba(255, 255, 255, .6); background: rgba(255, 255, 255, .14); }

/* glass surfaces */
#fw-chart .fc-glass {
    border: 1px solid var(--c-line); background: var(--c-glass);
    -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
    box-shadow: 0 10px 36px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .24);
}

/* podium */
#fw-chart .fc-podium { margin: 8px 0 22px !important; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 8px 0 22px; }
#fw-chart .fc-pod { position: relative; border-radius: 22px; overflow: hidden; }
#fw-chart .fc-pod .fc-art { position: relative; aspect-ratio: 1 / 1; background: #222 center / cover no-repeat; }
/* cover stays the background; a soft shade at the top (rank, badge) and a deeper one at the bottom (title, artist, buttons) */
#fw-chart .fc-pod .fc-art:after {
    content: ""; position: absolute; inset: 0;
    background:
        linear-gradient(180deg, rgba(8, 8, 14, .45) 0%, rgba(8, 8, 14, 0) 22%),
        linear-gradient(180deg, rgba(8, 8, 14, 0) 34%, rgba(8, 8, 14, .62) 56%, rgba(8, 8, 14, .9) 76%, rgba(8, 8, 14, .97) 100%);
}
#fw-chart .fc-pod .fc-t, #fw-chart .fc-pod .fc-a { text-shadow: 0 2px 10px rgba(0, 0, 0, .75); }
#fw-chart .fc-pod .fc-a { color: rgba(244, 244, 249, .82); }
#fw-chart .fc-pod .fc-rk { position: absolute; left: 16px; top: 12px; z-index: 2; font-family: 'Montserrat', sans-serif; font-weight: 900; font-size: 64px; line-height: 1; color: #fff; text-shadow: 0 6px 24px rgba(0, 0, 0, .6); }
#fw-chart .fc-pod .fc-rk small { font-size: 22px; vertical-align: top; margin-right: 2px; }
#fw-chart .fc-pod .fc-mvp { position: absolute; right: 14px; top: 16px; z-index: 2; }
#fw-chart .fc-pod .fc-info { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 16px; }
#fw-chart .fc-pod .fc-t { font-weight: 700; font-size: 16px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
#fw-chart .fc-pod .fc-a { color: var(--c-muted); font-size: 13px; margin-top: 4px; }
#fw-chart .fc-pod .fc-act { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
#fw-chart .fc-pod .fc-act .fc-dl { margin-left: auto; }
#fw-chart .fc-bigplay { width: 46px; height: 46px; border-radius: 50%; border: 0; background: #fff; color: #111; display: grid; place-items: center; flex: none; }
@media (max-width: 820px) {
    #fw-chart .fc-podium { grid-template-columns: 1fr 1fr; }
    #fw-chart .fc-pod:first-child { grid-column: 1 / -1; }
    #fw-chart .fc-pod:first-child .fc-art { aspect-ratio: 16 / 10; }
}
@media (max-width: 560px) {
    #fw-chart .fc-pod .fc-rk { font-size: 48px; }
    #fw-chart .fc-pod:not(:first-child) .fc-rk { font-size: 30px; left: 12px; top: 10px; }
    #fw-chart .fc-pod:not(:first-child) .fc-info { padding: 12px; }
    #fw-chart .fc-pod:not(:first-child) .fc-t { font-size: 13px; -webkit-line-clamp: 1; }
    #fw-chart .fc-pod:not(:first-child) .fc-a { display: none; }
    #fw-chart .fc-pod:not(:first-child) .fc-bigplay { width: 40px; height: 40px; }
}

/* spotlight */
#fw-chart .fc-spot { display: flex; gap: 16px; align-items: center; padding: 14px; border-radius: 18px; margin: 0 0 22px; background: linear-gradient(135deg, rgba(255, 77, 26, .22), rgba(139, 61, 255, .18)); border: 1px solid rgba(255, 255, 255, .28); }
#fw-chart .fc-spot .fc-sart { width: 76px; height: 76px; border-radius: 12px; background: rgba(255, 255, 255, .08) center / cover no-repeat; flex: none; display: grid; place-items: center; font-size: 28px; color: #ffd98a; border: 0; padding: 0; }
#fw-chart .fc-spot .fc-tag { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 10px; letter-spacing: .14em; color: #ffd98a; }
#fw-chart .fc-spot .fc-t { font-weight: 700; margin-top: 4px; }
#fw-chart .fc-spot .fc-a { color: var(--c-muted); font-size: 13px; }
#fw-chart .fc-spot .fc-go { margin-left: auto; flex: none; }
#fw-chart .fc-spot .fc-promo { display: block; font-size: 12px; color: var(--c-muted); margin-top: 6px; }
#fw-chart .fc-spot .fc-promo a { color: #ffb199; text-decoration: underline; }

/* list */
#fw-chart .fc-list { border-radius: 22px; overflow: hidden; }
#fw-chart .fc-row { display: grid; grid-template-columns: 56px 56px 56px 1fr 140px 110px; align-items: center; gap: 14px; padding: 10px 18px; border-top: 1px solid var(--c-line); transition: background .15s; }
#fw-chart .fc-row:first-child { border-top: 0; }
#fw-chart .fc-row:hover { background: rgba(255, 255, 255, .06); }
#fw-chart .fc-row.playing { background: linear-gradient(90deg, rgba(255, 77, 26, .22), rgba(255, 31, 107, .08)); }
#fw-chart .fc-rank { font-family: 'Montserrat', sans-serif; font-weight: 900; font-size: 24px; text-align: center; }
#fw-chart .fc-mv { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 11px; letter-spacing: .04em; display: inline-flex; align-items: center; gap: 3px; justify-content: center; padding: 4px 8px; border-radius: 999px; min-width: 46px; }
/* movement badges: solid colours (like NEW), readable on any cover */
#fw-chart .fc-mv.up { color: #062b16; background: var(--up); }
#fw-chart .fc-mv.down { color: #fff; background: var(--down); }
#fw-chart .fc-mv.new { color: #111; background: var(--new); }
#fw-chart .fc-mv.same { color: #111; background: #e4e4ec; }
#fw-chart .fc-mv { box-shadow: 0 4px 12px rgba(0, 0, 0, .35); }
#fw-chart .fc-cover { position: relative; width: 56px; height: 56px; border-radius: 10px; background: #222 center / cover no-repeat; overflow: hidden; border: 0; padding: 0; }
#fw-chart .fc-cover .fc-ov { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0, 0, 0, .45); opacity: 0; transition: opacity .15s; color: #fff; }
#fw-chart .fc-row:hover .fc-cover .fc-ov, #fw-chart .fc-row.playing .fc-cover .fc-ov { opacity: 1; }
#fw-chart .fc-meta { min-width: 0; }
#fw-chart .fc-meta .fc-t { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
#fw-chart .fc-meta .fc-a { color: var(--c-muted); font-size: 13px; margin-top: 3px; display: flex; align-items: center; gap: 6px; white-space: nowrap; overflow: hidden; }
#fw-chart .fc-meta .fc-a .fc-mv { display: none; font-size: 10px; padding: 2px 6px; min-width: 0; }
#fw-chart .fc-genre { font-size: 12px; font-weight: 600; color: var(--c-muted); border: 1px solid var(--c-line); border-radius: 999px; padding: 4px 10px; justify-self: start; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
#fw-chart a.fc-genre:hover { color: #fff; border-color: rgba(255, 255, 255, .5); }
#fw-chart .fc-dl { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; padding: 10px 14px; border-radius: 999px; background: linear-gradient(90deg, var(--c-accent), var(--c-accent2)); color: #fff !important; font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 11px; letter-spacing: .06em; box-shadow: 0 6px 18px rgba(255, 46, 90, .3); white-space: nowrap; }
#fw-chart .fc-dl:hover { filter: brightness(1.1); }
#fw-chart .fc-row.promoted { background: linear-gradient(90deg, rgba(255, 197, 61, .1), transparent); }
#fw-chart .fc-row.promoted .fc-rank { font-size: 10px; letter-spacing: .12em; color: #ffd98a; }
#fw-chart .fc-empty { padding: 40px 20px; text-align: center; color: var(--c-muted); }
#fw-chart .fc-empty a { color: #ffb199; text-decoration: underline; }
@media (max-width: 900px) {
    #fw-chart .fc-row { grid-template-columns: 44px 56px 52px 1fr 110px; }
    #fw-chart .fc-genre { display: none; }
}
@media (max-width: 640px) {
    #fw-chart .fc-row { grid-template-columns: 34px 52px 1fr 44px; gap: 10px; padding: 10px 12px; }
    #fw-chart .fc-rank { font-size: 19px; }
    #fw-chart .fc-row .fc-mvcell { display: none; }
    #fw-chart .fc-dl.fc-sm { width: 40px; height: 40px; padding: 0; }
    #fw-chart .fc-dl.fc-sm .fc-lbl { display: none; }
    #fw-chart .fc-meta .fc-a .fc-mv { display: inline-flex; }
    #fw-chart .fc-row.promoted .fc-rank .fc-full { display: none; }
    #fw-chart .fc-row.promoted .fc-rank:after { content: "AD"; font-size: 11px; }
}

/* sticky player */
#fw-player {
    position: fixed; left: 50%; bottom: 14px; transform: translate(-50%, 160%); width: min(1068px, calc(100% - 24px)); z-index: 1040;
    display: grid !important; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding: 10px 14px; border-radius: 20px;
    background: rgba(14, 14, 24, .72); -webkit-backdrop-filter: blur(24px) saturate(170%); backdrop-filter: blur(24px) saturate(170%);
    border: 1px solid rgba(255, 255, 255, .22); box-shadow: 0 18px 50px rgba(0, 0, 0, .55); transition: transform .35s cubic-bezier(.2, .8, .2, 1);
    color: #f4f4f9; font-family: 'Inter', Arial, sans-serif;
}
#fw-player.show { transform: translate(-50%, 0); }
#fw-player .fp-now { display: flex; gap: 12px; align-items: center; min-width: 0; }
#fw-player .fp-c { width: 50px; height: 50px; border-radius: 10px; background: #222 center / cover no-repeat; flex: none; }
#fw-player .fp-t { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px; }
#fw-player .fp-a { font-size: 12px; color: rgba(244, 244, 249, .62); }
#fw-player .fp-ctr { display: flex; align-items: center; gap: 12px; min-width: 0; }
#fw-player .fp-ib { width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .08); color: #fff; display: grid; place-items: center; flex: none; cursor: pointer; }
#fw-player .fp-ib.main { width: 46px; height: 46px; background: #fff; color: #111; }
#fw-player .fp-bar { flex: 1; height: 34px; display: flex; align-items: center; gap: 2px; cursor: pointer; min-width: 60px; overflow: hidden; }
#fw-player .fp-bar i { flex: 1 1 0; background: rgba(255, 255, 255, .25); border-radius: 2px; min-width: 0; }
#fw-player .fp-bar i.on { background: linear-gradient(180deg, #ff4d1a, #ff1f6b); }
#fw-player .fp-time { font-size: 12px; color: rgba(244, 244, 249, .62); font-variant-numeric: tabular-nums; width: 38px; text-align: right; }
#fw-player .fp-right { display: flex; gap: 10px; align-items: center; }
#fw-player .fp-sc { font-size: 11px; color: rgba(244, 244, 249, .62); }
#fw-player .fp-dl { display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 999px; background: linear-gradient(90deg, #ff4d1a, #ff1f6b); color: #fff !important; font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 11px; letter-spacing: .06em; text-decoration: none; }
@media (max-width: 760px) {
    #fw-player { grid-template-columns: 1fr auto; gap: 10px; }
    #fw-player .fp-ctr { grid-column: 1 / -1; grid-row: 2; }
    #fw-player .fp-t { max-width: 180px; }
    #fw-player .fp-sc { display: none; }
    #fw-player .fp-dl .fc-lbl { display: none; }
    #fw-player .fp-bar i:nth-child(n+29) { display: none; }
}
#fw-scf { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; left: -9999px; }

/* artist name -> artist page */
#fw-chart a.fc-al { color: inherit !important; text-decoration: none; }
#fw-chart a.fc-al:hover { text-decoration: underline; }
