/* Independent Spotify chart module: changes no existing Dashboard cards. */
.youth-spotify-row { margin-top: .25rem; margin-bottom: .95rem; }
.youth-spotify-card { border: 1px solid #2e2842; background: #140f22; color: #f5f0ff; overflow: hidden; border-radius: 16px; box-shadow: 0 8px 32px rgba(16,10,31,.13); }
.youth-spotify-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; border-bottom: 1px solid rgba(255,255,255,.09); background: linear-gradient(108deg,#171026,#201831 62%,#131426); padding: 1.3rem 1.5rem; }
.youth-spotify-kicker { display: block; color: #76d8dc; font-size: .68rem; font-weight: 800; letter-spacing: .17em; margin-bottom: .35rem; }
.youth-spotify-header .card-title { color: #fff; font-size: 1.1rem; font-weight: 800; line-height: 1.4; }
.youth-spotify-accent { color: #77b9ff; }
.youth-spotify-sub { margin: 0; color: #a8a1b9; font-size: .79rem; line-height: 1.6; }
.youth-spotify-controls { display: flex; flex-wrap: wrap; align-items: end; gap: .6rem; }
.youth-spotify-controls label { color: #aba5ba; font-size: .7rem; font-weight: 650; }
.youth-spotify-controls select { display: block; min-width: 106px; border: 1px solid #463d58; border-radius: 8px; background: #292138; color: #fff; padding: .42rem .55rem; font-size: .78rem; margin-top: .3rem; }
.youth-spotify-controls select:focus { outline: 2px solid #77b9ff; outline-offset: 1px; }
.youth-spotify-source { border: 1px solid #4a435a; border-radius: 8px; padding: .43rem .64rem; color: #d3ccee; text-decoration: none; font-size: .76rem; white-space: nowrap; }
.youth-spotify-source:hover { color: #fff; border-color: #77b9ff; }
.youth-spotify-card .card-body.youth-spotify-main { padding: 0; }
.youth-spotify-main { display: grid; grid-template-columns: minmax(0,1fr) 335px; }
.youth-spotify-visual { min-width: 0; padding: 1.15rem 1.3rem .8rem; }
.youth-spotify-visual-head { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .45rem; font-size: .73rem; color: #c5bbd7; align-items: center; margin-bottom: .55rem; }
.youth-spotify-pill { display: inline-flex; gap: .45rem; align-items: center; color: #e6deff; font-size: .63rem; font-weight: 750; letter-spacing: .09em; }
.youth-spotify-led { width: 6px; height: 6px; border-radius: 100%; background: #40d8b6; box-shadow: 0 0 9px #40d8b6; }
.youth-spotify-canvas { position: relative; height: 315px; width: 100%; }
.youth-spotify-canvas canvas { max-height: 100%; }
.youth-spotify-state { font-size: .75rem; color: #ada5be; margin: .7rem 0 .15rem; }
.youth-spotify-state.is-error { color: #ffafbf; }
.youth-spotify-footnote { color: #898098; font-size: .7rem; line-height: 1.5; margin: .25rem 0; }
.youth-spotify-ranking { border-left: 1px solid rgba(255,255,255,.09); padding: 1.2rem 1.1rem; background: rgba(255,255,255,.018); min-width: 0; }
.youth-spotify-rank-head { display: flex; align-items: center; justify-content: space-between; gap: .35rem; margin-bottom: .7rem; }
.youth-spotify-rank-head strong { font-size: .68rem; letter-spacing: .085em; color: #d0c9e0; }
.youth-spotify-rank-head button { cursor: pointer; background: #292136; border: 1px solid #413852; border-radius: 7px; color: #d5ceeb; padding: .24rem .5rem; font-size: .7rem; }
.youth-spotify-rank-head button:focus-visible { outline: 2px solid #91bbff; }
.youth-spotify-top10 { display: grid; gap: .28rem; max-height: 360px; overflow-y: auto; scrollbar-color: #49405f transparent; scrollbar-width: thin; }
.youth-spotify-item { width: 100%; text-align: left; border: 1px solid transparent; border-radius: 9px; background: transparent; color: #f5f3fc; display: grid; grid-template-columns: 23px minmax(0,1fr) auto; align-items: center; padding: .48rem .3rem; gap: .52rem; cursor: pointer; transition: background .15s,border-color .15s; }
.youth-spotify-item:hover,.youth-spotify-item.is-active { background: #2d2541; border-color: #4a415f; }
.youth-spotify-item:focus-visible { outline: 2px solid #75b7ff; outline-offset: -1px; }
.youth-spotify-num { color: #b6aec8; font-weight: 800; font-size: .78rem; text-align: center; font-variant-numeric: tabular-nums; }
.youth-spotify-details { display: block; min-width: 0; }
.youth-spotify-song { font-weight: 750; font-size: .76rem; display: block; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.youth-spotify-artist { color: #a19bb2; font-size: .68rem; display: block; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.youth-spotify-numbers { text-align: right; white-space: nowrap; font-size: .75rem; font-variant-numeric: tabular-nums; }
.youth-spotify-change { display: block; font-size: .66rem; font-weight: 650; color: #8f8ba1; }
.youth-spotify-change.up { color: #41dfba; }.youth-spotify-change.down { color: #ff879a; }
.youth-spotify-rank-note,.youth-spotify-empty { color: #968da8; font-size: .72rem; margin: .7rem 0 0; line-height: 1.5; }
@media (max-width: 1050px) { .youth-spotify-main { grid-template-columns: minmax(0,1fr) 285px; } }
@media (max-width: 850px) { .youth-spotify-main { grid-template-columns: minmax(0,1fr); } .youth-spotify-ranking { border-left: 0; border-top: 1px solid rgba(255,255,255,.09); } .youth-spotify-top10 { grid-template-columns: repeat(2,minmax(0,1fr)); max-height: none; } .youth-spotify-visual { padding: 1rem; } }
@media (max-width: 540px) { .youth-spotify-header { padding: 1rem; } .youth-spotify-canvas { height: 240px; } .youth-spotify-top10 { grid-template-columns: 1fr; } .youth-spotify-controls { width: 100%; } .youth-spotify-item { padding: .45rem; } }
