/* Wave Purple — All Stations hub (design C: category side menu, List / Grid view). Prefix: hb-
   Loaded AFTER style.css. Uses the site palette and fonts only. */
.hb{
  --hb-cream:#f4efe4;--hb-text:#d6cdea;--hb-muted:#a99fc4;--hb-gold:#d9a441;--hb-violet:#8b5cf6;
  --hb-panel:rgba(139,92,246,.10);--hb-line:rgba(139,92,246,.30);
  --hb-sans:'Space Grotesk',ui-sans-serif,system-ui,sans-serif;--hb-serif:'Fraunces',Georgia,serif;--hb-mono:'Space Mono',ui-monospace,monospace;
  max-width:1240px;margin:0 auto;padding:14px 20px 80px;position:relative;z-index:1;color:var(--hb-text);font-family:var(--hb-sans);overflow-x:clip}
.hb *{box-sizing:border-box}
:where(.hb) a{color:inherit;text-decoration:none}

/* top bar: heading, search, view switch */
.hb-bar{display:flex;flex-wrap:wrap;gap:16px 24px;align-items:center;justify-content:space-between;padding:6px 0 18px;border-bottom:1px solid var(--hb-line)}
.hb-title{display:flex;align-items:center;gap:16px;min-width:0;flex:1 1 420px}
.hb-brand img{display:block;width:84px;height:56px;border-radius:10px}
.hb h1{margin:0;font:700 clamp(26px,3.2vw,36px)/1.1 var(--hb-serif);color:var(--hb-cream)}
.hb-title p{margin:6px 0 0;font-size:15px;line-height:1.4;color:var(--hb-muted)}
.hb-tools{display:flex;min-width:0;gap:12px;align-items:stretch;flex:1 1 380px;justify-content:flex-end}
.hb-search{flex:1 1 220px;max-width:420px;display:flex;align-items:center;gap:10px;padding:0 14px;min-height:52px;background:#221a45;border:1px solid #4a3a8a;border-radius:12px;color:var(--hb-muted)}
.hb-search:focus-within{border-color:#8c73e6;box-shadow:0 0 0 3px rgba(140,115,230,.25)}
.hb-search input{flex:1;min-width:0;background:transparent;border:0;outline:0;color:var(--hb-cream);font:500 16px var(--hb-sans)}
.hb-search input::placeholder{color:var(--hb-muted)}
.hb-view{display:inline-flex;border:1px solid #4a3a8a;border-radius:12px;overflow:hidden;background:#221a45}
.hb-view button{appearance:none;border:0;background:transparent;color:var(--hb-text);font:600 15px var(--hb-sans);padding:0 18px;min-height:52px;cursor:pointer}
.hb-view button[aria-pressed="true"]{background:var(--hb-violet);color:#fff}

/* layout: side menu + lists */
.hb-layout>*{min-width:0}
.hb-layout{display:grid;grid-template-columns:250px minmax(0,1fr);gap:28px;align-items:start;margin-top:20px}
.hb-side{position:sticky;top:16px;max-height:calc(100vh - 32px);overflow:auto;padding:14px;background:var(--hb-panel);border:1px solid var(--hb-line);border-radius:16px;scrollbar-width:thin;scrollbar-color:#8e6cc0 transparent}
.hb-sidecap{margin:0 0 8px;font:700 12px var(--hb-mono);letter-spacing:.12em;text-transform:uppercase;color:var(--hb-gold)}
.hb-side ul{list-style:none;margin:0;padding:0}
.hb-side a{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px 10px;border-radius:10px;font-size:16px;font-weight:500;color:var(--hb-cream)}
.hb-side a:hover,.hb-side a:focus-visible{background:rgba(139,92,246,.25);outline:0}
.hb-side em{font:700 13px var(--hb-mono);font-style:normal;color:var(--hb-muted)}
.hb-side li.is-off a{opacity:.35}

/* category blocks */
.hb-cat{margin:0 0 34px;scroll-margin-top:16px}
.hb-cat>header{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:6px 16px;margin:0 0 12px;padding-bottom:8px;border-bottom:1px solid var(--hb-line)}
.hb-cat h2{margin:0;font:700 clamp(22px,2.4vw,28px)/1.2 var(--hb-serif);color:var(--hb-gold)}
.hb-cat h2 span,.hb-group h3 span{font-weight:400;color:var(--hb-muted)}
.hb-seeall{font-size:15px;font-weight:600;color:#b9a6ff}
.hb-seeall:hover{text-decoration:underline}
.hb-note{margin:0 0 6px;color:var(--hb-muted);font-size:15px}
.hb-note a{color:#b9a6ff;text-decoration:underline}
.hb-group h3{margin:20px 0 10px;font:700 13px var(--hb-mono);letter-spacing:.1em;text-transform:uppercase;color:var(--hb-muted)}
.hb-top{display:none;margin-top:6px;font-size:14px;color:#b9a6ff}
.hb-empty{margin:28px 0;font-size:17px;color:var(--hb-muted)}

/* station rows (List view) */
.hb-list{list-style:none;margin:0;padding:0;column-count:3;column-gap:12px}
.hb-list li{display:flex;align-items:center;gap:6px;margin:0 0 8px;break-inside:avoid;min-height:60px;padding:6px 8px 6px 6px;background:rgba(139,92,246,.08);border:1px solid rgba(139,92,246,.22);border-radius:14px}
.hb-list li:hover{border-color:rgba(185,166,255,.6);background:rgba(139,92,246,.16)}
.hb-name{flex:1;min-width:0;display:flex;align-items:center;gap:12px;padding:2px 4px;border-radius:10px}
.hb-name:focus-visible,.hb-play:focus-visible{outline:2px solid var(--hb-gold);outline-offset:2px}
.hb-logo{flex:none;width:44px;height:44px;border-radius:10px;object-fit:cover;background:#fff1}
.hb-txt{min-width:0;display:flex;flex-direction:column;gap:2px}
.hb-txt b{font:600 16px/1.25 var(--hb-sans);color:var(--hb-cream);overflow-wrap:anywhere}
.hb-txt small{font-size:13px;line-height:1.3;color:var(--hb-muted)}
.hb-play{flex:none;width:44px;height:44px;border-radius:50%;display:grid;place-items:center;background:var(--hb-violet);color:#fff;box-shadow:0 2px 10px rgba(139,92,246,.4)}
.hb-play:hover{background:#9b72ff}
.hb-play svg{width:18px;height:18px;margin-left:2px}

/* Grid view: bigger cards */
.hb-main[data-view="grid"] .hb-list{column-count:auto;display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:12px}
.hb-main[data-view="grid"] .hb-list li{position:relative;flex-direction:column;align-items:stretch;margin:0;padding:14px 12px 12px;text-align:center;min-height:0}
.hb-main[data-view="grid"] .hb-name{flex-direction:column;gap:10px;padding:0}
.hb-main[data-view="grid"] .hb-logo{width:84px;height:84px;border-radius:16px}
.hb-main[data-view="grid"] .hb-txt{align-items:center}
.hb-main[data-view="grid"] .hb-play{align-self:center;margin-top:10px;width:48px;height:48px}

/* tablet */
@media (max-width:1100px){.hb-list{column-count:2}}

/* phone and small tablet: the side menu becomes a swipeable row of chips */
@media (max-width:899px){
  .hb{padding:10px 16px 70px}
  .hb-layout{grid-template-columns:1fr;gap:14px}
  .hb-side{position:static;max-height:none;padding:10px 0 4px;background:none;border:0;border-radius:0;overflow:visible}
  .hb-sidecap{display:none}
  .hb-side ul{display:flex;gap:8px;overflow-x:auto;padding:2px 0 10px;scroll-snap-type:x proximity;scrollbar-width:thin}
  .hb-side li{flex:none;scroll-snap-align:start}
  .hb-side a{padding:10px 14px;border:1px solid var(--hb-line);border-radius:999px;background:var(--hb-panel);white-space:nowrap;gap:8px}
  .hb-top{display:inline-block}
  .hb-tools{flex:1 1 100%;justify-content:stretch}
  .hb-search{max-width:none}
}
@media (max-width:640px){
  .hb-brand img{width:64px;height:43px}
  .hb-title{gap:12px}
  .hb-list{column-count:1}
  .hb-main[data-view="grid"] .hb-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .hb-main[data-view="grid"] .hb-logo{width:68px;height:68px}
  .hb-main[data-view="grid"] .hb-txt b{font-size:15px}
  .hb-view button{padding:0 14px}
}
@media (max-width:640px){
  .hb-tools{flex-wrap:wrap}
  .hb-search{flex:1 1 100%}
  .hb-view{flex:1 1 100%}
  .hb-view button{flex:1}
}

/* v2: keep the page at its intended width, and keep the right-hand share buttons off the ▶ buttons */
main.hb{box-sizing:border-box;max-width:1240px;margin-left:auto;margin-right:auto;width:100%}
@media (min-width:900px) and (max-width:1440px){main.hb{padding-right:100px}}

/* v3: search, List/Grid and the category name stay in view while scrolling */
.hb-head{display:flex;align-items:center;gap:16px;padding:6px 0 16px;min-width:0}
.hb-head p{margin:6px 0 0;font-size:15px;line-height:1.4;color:var(--hb-muted)}
.hb-sticky{position:sticky;top:0;z-index:30;margin:0 -20px;padding:10px 20px;background:#1a0f2b;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border-top:1px solid var(--hb-line);border-bottom:1px solid var(--hb-line)}
.hb-sticky .hb-tools{flex:none;justify-content:flex-start;flex-wrap:nowrap}
.hb-sticky .hb-search{flex:1 1 auto;max-width:560px}
.hb-sticky .hb-view{margin-left:auto}
.hb-chips{display:none}
.hb-layout{margin-top:16px}
.hb-side{top:calc(var(--hb-sh,76px) + 14px);max-height:calc(100vh - var(--hb-sh,76px) - 28px)}
.hb-cat{scroll-margin-top:calc(var(--hb-sh,76px) + 4px)}
.hb-cat>header{position:sticky;top:var(--hb-sh,76px);z-index:10;background:#1a0f2b;padding-top:10px;margin-top:-10px}
.hb-side li.is-active a,.hb-chips li.is-active a{background:rgba(139,92,246,.35);border-color:#b9a6ff}
.hb-side li.is-off a,.hb-chips li.is-off a{opacity:.35}
.hb-chips em{font:700 13px var(--hb-mono);font-style:normal;color:var(--hb-muted)}
@media (max-width:899px){
  .hb-sticky{margin:0 -16px;padding:8px 16px 6px}
  .hb-sticky .hb-tools{gap:8px}
  .hb-sticky .hb-search{flex:1 1 auto;min-width:0;max-width:none;min-height:46px}
  .hb-sticky .hb-view{flex:none;margin-left:0}
  .hb-sticky .hb-view button{flex:none;min-height:46px;padding:0 14px}
  .hb-side{display:none}
  .hb-chips{display:block}
  .hb-chips ul{list-style:none;margin:8px 0 0;padding:0 0 4px;display:flex;gap:8px;overflow-x:auto;scrollbar-width:none}
  .hb-chips li{flex:none}
  .hb-chips a{display:flex;align-items:center;gap:8px;padding:8px 14px;border:1px solid var(--hb-line);border-radius:999px;background:var(--hb-panel);white-space:nowrap;font-size:15px;font-weight:500;color:var(--hb-cream)}
  .hb-cat>header{position:static;background:none;margin-top:0;padding-top:0}
  .hb-cat{scroll-margin-top:calc(var(--hb-sh,110px) + 6px)}
  .hb-head{padding-bottom:10px}
}
@media (max-width:640px){
  .hb-sticky .hb-search,.hb-sticky .hb-view{flex:none}
  .hb-sticky .hb-search{flex:1 1 auto}
}

/* v4: table-style list. Plain rows with a thin line, one row of cells per line, no boxes. Row height follows the tallest name in that row. */
.hb-list{column-count:auto;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));column-gap:28px;row-gap:0;border-top:1px solid var(--hb-line)}
.hb-list li{display:flex;align-items:center;gap:6px;margin:0;min-height:54px;padding:6px 4px;background:none;border:0;border-bottom:1px solid var(--hb-line);border-radius:0;break-inside:auto}
.hb-list li:hover{background:rgba(139,92,246,.14);border-color:var(--hb-line)}
.hb-name{gap:10px;padding:2px 4px}
.hb-logo{width:40px;height:40px;border-radius:8px}
.hb-txt b{font-size:15px;line-height:1.3;font-weight:600}
.hb-play{width:40px;height:40px}
.hb-play svg{width:16px;height:16px}
.hb-group h3{margin:22px 0 8px}
@media (max-width:1099px){.hb-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:640px){.hb-list{grid-template-columns:1fr}.hb-play{width:44px;height:44px}.hb-list li{min-height:56px}}
/* Grid view keeps its cards */
.hb-main[data-view="grid"] .hb-list{border-top:0;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));column-gap:12px;row-gap:12px}
.hb-main[data-view="grid"] .hb-list li{flex-direction:column;align-items:stretch;min-height:0;padding:14px 12px 12px;background:rgba(139,92,246,.08);border:1px solid rgba(139,92,246,.22);border-radius:14px;text-align:center}
.hb-main[data-view="grid"] .hb-list li:hover{background:rgba(139,92,246,.16);border-color:rgba(185,166,255,.6)}
.hb-main[data-view="grid"] .hb-logo{width:84px;height:84px;border-radius:16px}
.hb-main[data-view="grid"] .hb-play{width:44px;height:44px;margin-top:8px}
@media (max-width:640px){.hb-main[data-view="grid"] .hb-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.hb-main[data-view="grid"] .hb-logo{width:68px;height:68px}}
