/* /assets/css/home.css - start page blocks (redesign 2026, PoC on /index_next/)
   Frame, header, footer and background come from site.css / style.css. */
.page-home{
  --gold: #F2C14E; --gold-dim: #B8963C; --star-base: rgba(255,255,255,.20);
  --onair: #C62828; --faint: rgba(255,255,255,.6);
}
.page-home .card{ display: flex; flex-direction: column; gap: 26px; }
.page-home [hidden]{ display: none !important; }
.page-home .headline{ margin: 0; }
/* intro: one text block, the station claim is the page's h1 */
.h-lead{ margin: 0 auto; max-width: 68ch; text-align: center; font-size: 18px; line-height: 1.6; color: rgba(255,255,255,.82); text-wrap: pretty; }
.h-lead h1{ display: inline; margin: 0; font-size: inherit; line-height: inherit; font-weight: 800; letter-spacing: .01em; color: #fff; }
@media (max-width: 760px){ .h-lead{ font-size: 16px; line-height: 1.55; } }
.page-home .sub{ margin-top: -14px; }
.h-sec{ display: flex; flex-direction: column; gap: 12px; }
.h-h2{ margin: 0; font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.78); }
.h-head{ display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.h-more{ font-size: 14px; font-weight: 700; text-decoration: none; color: rgba(255,255,255,.85); }
.h-more:hover{ color: #fff; }

/* now playing */
.h-hero{ display: grid; grid-template-columns: 260px minmax(0,1fr); gap: 24px; align-items: center;
  padding: 20px; border-radius: 16px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); }
.h-cover{ display: block; width: 100%; height: auto; aspect-ratio: 1/1; object-fit: cover; border-radius: 8px; background: rgba(255,255,255,.06);
  box-shadow: 0 14px 40px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.10); }
.h-info{ display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.h-onair{ align-self: flex-start; display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: #fff; background: var(--onair); padding: 4px 10px; border-radius: 999px; font-variant-numeric: tabular-nums; }
.h-onair::before{ content: ""; width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: h-pulse 2s ease-in-out infinite; }
@keyframes h-pulse{ 50%{ opacity: .35; } }
.h-titles{ display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.h-artist{ margin: 0; font-size: 30px; line-height: 1.15; font-weight: 800; overflow-wrap: anywhere; }
.h-title{ margin: 0; font-size: 19px; line-height: 1.3; font-weight: 500; color: rgba(255,255,255,.85); overflow-wrap: anywhere; }
.h-album{ margin: 0; font-size: 14px; color: var(--faint); }
.h-album:empty{ display: none; }

/* rating (markup built by /webplayer/js/rating.js, same rules as the player) */
.h-rating{ display: flex; flex-wrap: wrap; align-items: center; column-gap: 10px; row-gap: 2px; }
.lrp-stars{ display: flex; gap: 0; touch-action: none; user-select: none; -webkit-user-select: none; cursor: pointer; border-radius: 6px; outline: none; margin-left: -3px; }
.lrp-stars:focus-visible{ box-shadow: 0 0 0 2px #fff; }
/* compact like the design (18px stars, 21px hit cells); bigger cells on touch screens */
.lrp-star{ width: 21px; height: 18px; flex: none; display: grid; place-items: center; }
.lrp-star-in{ position: relative; width: 18px; height: 18px; pointer-events: none; }
.lrp-star-in svg{ display: block; width: 18px; height: 18px; }
@media (pointer: coarse){
  .lrp-star{ width: 34px; height: 36px; }
  .lrp-star-in, .lrp-star-in svg{ width: 24px; height: 24px; }
  .lrp-stars{ margin-left: -5px; }
}
.lrp-star-base path{ fill: var(--star-base); }
.lrp-star-fill{ position: absolute; left: 0; top: 0; bottom: 0; width: 0; overflow: hidden; }
.lrp-star-fill path{ fill: var(--gold); }
.lrp-stars.is-avg .lrp-star-fill path{ fill: var(--gold-dim); }
.lrp-stars.is-locked{ cursor: default; }
.lrp-stars.is-off{ opacity: .45; cursor: default; }
.h-caption{ margin: 0; font-size: 13px; line-height: 18px; color: var(--faint); }
.h-caption.is-warn{ color: #F5B942; }
.h-ts{ width: 0; height: 0; overflow: hidden; }

.h-progress{ display: flex; flex-direction: column; gap: 6px; }
.h-bar{ height: 4px; border-radius: 2px; background: rgba(255,255,255,.14); overflow: hidden; }
.h-bar-fill{ height: 100%; background: rgba(255,255,255,.85); transform-origin: left; transform: scaleX(0); }
.h-times{ display: flex; justify-content: space-between; font-size: 12px; font-variant-numeric: tabular-nums; color: var(--faint); }

.h-actions{ display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.h-play{ display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 999px; border: 0;
  background: #fff; color: #10131c; font: inherit; font-size: 15px; font-weight: 800; cursor: pointer; }
.h-play svg{ width: 16px; height: 16px; }
.h-play .i-stop{ display: none; }
.h-play.is-playing{ background: #E53935; color: #fff; }
.h-play.is-playing .i-play{ display: none; }
.h-play.is-playing .i-stop{ display: block; }
.h-play.is-busy{ opacity: .75; }
.h-play:focus-visible, .h-pill:focus-visible{ outline: 2px solid #fff; outline-offset: 3px; }
.h-pill{ display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 18px; border-radius: 999px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); color: rgba(255,255,255,.92);
  font-size: 14px; font-weight: 700; text-decoration: none; }
.h-pill:hover{ background: rgba(255,255,255,.14); color: #fff; }
/* volume (mouse devices only, shared with the web player via localStorage) */
.h-vol{ display: inline-flex; align-items: center; gap: 8px; min-height: 46px; margin-left: 4px; color: rgba(255,255,255,.75); }
.h-vol svg{ width: 20px; height: 20px; flex: none; }
.h-range{ --h-vol: 85%; -webkit-appearance: none; appearance: none; width: 110px; height: 20px; margin: 0; background: transparent; cursor: pointer; }
.h-range::-webkit-slider-runnable-track{ height: 4px; border-radius: 2px; background: linear-gradient(to right, rgba(255,255,255,.85) var(--h-vol), rgba(255,255,255,.18) var(--h-vol)); }
.h-range::-moz-range-track{ height: 4px; border-radius: 2px; background: rgba(255,255,255,.18); }
.h-range::-moz-range-progress{ height: 4px; border-radius: 2px; background: rgba(255,255,255,.85); }
.h-range::-webkit-slider-thumb{ -webkit-appearance: none; width: 14px; height: 14px; margin-top: -5px; border-radius: 50%; background: #fff; border: 0; }
.h-range::-moz-range-thumb{ width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 0; }
.h-range:focus-visible{ outline: 2px solid #fff; outline-offset: 3px; border-radius: 4px; }
.h-status{ margin: -6px 0 0; font-size: 13px; line-height: 18px; color: var(--faint); }
.h-status:empty{ display: none; }
.h-status.is-error{ color: #F5B942; }

.h-next{ display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); }
.h-next[hidden]{ display: none; }
.h-next-lbl{ font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); flex: none; }
.h-next img{ width: 40px; height: 40px; border-radius: 4px; object-fit: cover; flex: none; background: rgba(255,255,255,.06); }
.h-next-txt{ flex: 1 1 auto; min-width: 0; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.h-next-txt strong{ font-weight: 700; }
.h-next-in{ flex: none; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.10); }

/* recently played */
.h-grid4{ display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.h-tile{ display: flex; flex-direction: column; gap: 6px; padding: 10px; border-radius: 12px; background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08); text-decoration: none; color: rgba(255,255,255,.92); min-width: 0; }
.h-tile:hover{ background: rgba(255,255,255,.10); }
.h-tile img{ width: 100%; height: auto; aspect-ratio: 1/1; object-fit: cover; border-radius: 6px; background: rgba(255,255,255,.06); }
.h-tile .a{ font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.h-tile .t{ font-size: 13px; color: rgba(255,255,255,.7); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.h-tile .m{ display: flex; justify-content: space-between; align-items: center; gap: 6px; font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; }
.h-mini{ display: block; width: 66px; height: 12px; flex: none; position: relative; }
.h-mini svg{ position: absolute; inset: 0; width: 66px; height: 12px; }
.h-mini .gold{ position: absolute; left: 0; top: 0; bottom: 0; overflow: hidden; }

/* genres, listen options, support */
.h-intro{ margin: 0; font-size: 14px; line-height: 1.55; color: rgba(255,255,255,.72); }
.h-genres{ list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; }
.h-card{ display: flex; flex-direction: column; gap: 3px; height: 100%; box-sizing: border-box; padding: 14px; border-radius: 12px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.10); text-decoration: none; color: rgba(255,255,255,.92); }
a.h-card:hover{ background: rgba(255,255,255,.10); }
.h-card .n{ font-size: 15px; font-weight: 800; }
.h-card .d{ font-size: 13px; line-height: 1.45; color: rgba(255,255,255,.65); }
.h-grid3{ display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
.h-grid2{ display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.h-copies{ display: flex; flex-wrap: wrap; gap: 6px; }
.h-streams{ gap: 8px; }
.h-hint{ font-size: 12px; color: rgba(255,255,255,.55); }
.h-copy{ min-height: 32px; padding: 0 10px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
  color: rgba(255,255,255,.9); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.h-copy:hover{ background: rgba(255,255,255,.14); }
.h-copy.ok{ background: rgba(76,217,123,.14); border-color: rgba(76,217,123,.35); }
.sr-only{ position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 760px){
  .h-hero{ grid-template-columns: 1fr; padding: 14px; gap: 16px; }
  .h-cover{ max-width: 240px; margin: 0 auto; }
  .h-artist{ font-size: 24px; }
  .h-title{ font-size: 17px; }
  .h-actions{ gap: 8px; }
  .h-play{ flex: 1 1 0; min-width: 0; justify-content: center; min-height: 50px; padding: 0 16px; }
  .h-vol{ flex: 1 1 100%; margin-left: 0; }
  .h-range{ flex: 1 1 auto; }
  .h-pill{ flex: none; min-height: 50px; padding: 0 14px; }
  .h-grid4, .h-genres{ grid-template-columns: repeat(2, minmax(0,1fr)); }
  .h-grid3, .h-grid2{ grid-template-columns: 1fr; }
  .h-next-lbl{ display: none; }
}
@media (prefers-reduced-motion: reduce){ .h-onair::before{ animation: none; } }
