/* Billboard Hot 100 lesson. All rules scoped under .hh-* */
.hh-sc { position: relative; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.hh-note { font-size: 13px; color: var(--dim); text-align: center; max-width: 300px; }
.hh-hero img { display: block; width: 240px; max-width: 100%; max-height: 32vh; object-fit: contain; margin: 0 auto; filter: drop-shadow(0 18px 30px rgba(123, 92, 253, .35)); }

/* ---------- the chart ---------- */
.hh-chart { width: 100%; max-width: 340px; padding: 10px 12px 12px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.hh-era { font: 700 13px var(--mono); color: var(--gold); margin-bottom: 6px; }
.hh-leg { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.hh-leg span { display: flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; color: var(--dim); }
.hh-leg span::before { content: ''; width: 10px; height: 10px; border-radius: 3px; background: var(--c); }
.hh-leg .k0, .hh-bar .k0 { --c: var(--gold); }
.hh-leg .k1, .hh-bar .k1 { --c: var(--violet-bright); }
.hh-leg .k2, .hh-bar .k2 { --c: #4B8BFF; }
.hh-leg .k3, .hh-bar .k3 { --c: #F0605D; }
.hh-list { position: relative; height: calc(4 * 44px); }
.hh-row { position: absolute; left: 0; right: 0; top: calc(var(--y, 0) * 44px); height: 40px; display: grid; grid-template-columns: 26px 1fr; grid-template-rows: auto 12px; column-gap: 8px; align-items: center; transition: top .6s cubic-bezier(.3,.9,.3,1); }
.hh-rk { grid-row: 1 / 3; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font: 800 14px var(--mono); background: var(--raised); color: var(--dim); }
.hh-row.top .hh-rk { background: var(--gold); color: #2A1B00; }
.hh-nm { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.hh-nm b { font-size: 14px; white-space: nowrap; }
.hh-nm span { font-size: 12px; color: var(--dim); white-space: nowrap; }
.hh-bar { display: flex; height: 10px; border-radius: 5px; background: rgba(234, 227, 215, .05); overflow: hidden; }
.hh-bar i { display: block; height: 100%; background: var(--c); transition: width .6s ease; }
.hh-row.hh-remix .hh-nm b::after { content: ' + remix'; color: var(--mint); font-size: 12px; }

/* ---------- the faders ---------- */
.hh-fad { width: 100%; max-width: 340px; display: flex; flex-direction: column; gap: 2px; transition: opacity .3s; }
.hh-fad.hh-lock { pointer-events: none; }
.hh-f { display: grid; grid-template-columns: 64px 1fr; align-items: center; gap: 8px; height: 30px; }
.hh-f span { font-size: 13px; font-weight: 800; color: var(--c); }
.hh-f.k0 { --c: var(--gold); } .hh-f.k1 { --c: var(--violet-bright); } .hh-f.k2 { --c: #4B8BFF; }
.hh-f input { -webkit-appearance: none; appearance: none; width: 100%; height: 30px; background: transparent; margin: 0; }
.hh-f input::-webkit-slider-runnable-track { height: 8px; border-radius: 4px; background: rgba(234, 227, 215, .12); }
.hh-f input::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -10px; border-radius: 50%; background: var(--c); border: 3px solid var(--bg); box-shadow: 0 2px 6px rgba(0,0,0,.4); }
.hh-f input::-moz-range-track { height: 8px; border-radius: 4px; background: rgba(234, 227, 215, .12); }
.hh-f input::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: var(--c); border: 3px solid var(--bg); }

@media (max-height: 700px) {
  .hh-hero img { max-height: 26vh; }
  .hh-sc { gap: 4px; }
  .hh-chart { padding: 8px 10px 8px; }
  .hh-era { margin-bottom: 3px; }
  .hh-leg { margin-bottom: 4px; }
  .hh-list { height: calc(4 * 36px); }
  .hh-row { top: calc(var(--y, 0) * 36px); height: 34px; grid-template-rows: auto 9px; }
  .hh-f, .hh-f input { height: 28px; }
  .hh-fad { gap: 0; }
  .hh-leg { row-gap: 2px; }
}
