/* =====================================================================
   DigiRadio Pro – Home page (scoped to .drh)
   Tokens
     --ink      #241322  text
     --night    #2A0F27  hero background (deep plum)
     --plum     #571950  brand / actions
     --signal   #F2B544  on-air lamp, tuner needle, focus
     --paper    #FBF8FB  page background
     --mist     #EADFEB  hairlines
   Type: Bricolage Grotesque (display) + Instrument Sans (text)
   ===================================================================== */

.drh{
  --ink:#241322; --night:#2A0F27; --plum:#571950; --plum-2:#6d2266;
  --signal:#F2B544; --paper:#FBF8FB; --mist:#EADFEB; --muted:#6E5A6B;
  --display:'Bricolage Grotesque',ui-sans-serif,system-ui,-apple-system,'Segoe UI',sans-serif;
  --text:'Instrument Sans',ui-sans-serif,system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;
  font-family:var(--text); color:var(--ink); background:var(--paper);
  -webkit-font-smoothing:antialiased;
}
.drh *,.drh *::before,.drh *::after{box-sizing:border-box}
.drh-wrap{width:100%;max-width:1180px;margin:0 auto;padding:0 20px}
.drh-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.drh :focus-visible{outline:3px solid var(--signal);outline-offset:2px;border-radius:10px}

/* ---------- Hero ---------- */
.drh-hero{position:relative;background:var(--night);color:#fff;padding:56px 0 104px;overflow:hidden}
.drh-onair{display:inline-flex;align-items:center;gap:10px;margin:0 0 22px;padding:7px 14px 7px 12px;border:1px solid #ffffff2b;border-radius:999px;font-size:14px;font-weight:500;color:#f3e9f2}
.drh-lamp{width:9px;height:9px;border-radius:50%;background:var(--signal);box-shadow:0 0 0 4px #f2b5442e,0 0 14px var(--signal)}
.drh-title{font-family:var(--display);font-weight:750;font-size:clamp(38px,6.4vw,78px);line-height:.98;letter-spacing:-.035em;margin:0 0 18px;max-width:14ch;color:#fff;font-variation-settings:'wdth' 92}
.drh-intro{font-size:clamp(16px,1.6vw,19px);line-height:1.55;color:#dccfdb;max-width:52ch;margin:0 0 34px}

.drh-search{max-width:880px}
.drh-q{position:relative;display:block;margin:0 0 12px}
.drh-q svg{position:absolute;left:20px;top:50%;transform:translateY(-50%);color:var(--plum);pointer-events:none}
.drh-q input{width:100%;height:64px;padding:0 22px 0 56px;border:0;border-radius:16px;background:#fff;color:var(--ink);font:500 18px/1 var(--text);box-shadow:0 1px 0 #ffffff14}
.drh-q input::placeholder{color:#8f7b8c}
.drh-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) auto;gap:10px}
.drh-select{position:relative;display:flex;flex-direction:column;margin:0;min-width:0}
.drh-select span{position:absolute;top:8px;left:14px;font-size:11px;font-weight:600;color:#c9b8c7;pointer-events:none}
.drh-select select{appearance:none;-webkit-appearance:none;width:100%;height:56px;padding:20px 36px 4px 14px;border:1px solid #ffffff2e;border-radius:12px;background:#ffffff12 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23ffffff' stroke-width='1.8' fill='none'/%3E%3C/svg%3E") no-repeat right 14px center;color:#fff;font:500 15px/1.2 var(--text);text-overflow:ellipsis;cursor:pointer}
.drh-select select option{color:var(--ink);background:#fff}
.drh-select select:hover{border-color:#ffffff5c}
.drh-go{height:56px;padding:0 26px;border:0;border-radius:12px;background:var(--signal);color:var(--night);font:700 16px/1 var(--text);cursor:pointer;white-space:nowrap}
.drh-go:hover{background:#ffc75e}
.drh-reset{display:inline-block;margin-top:14px;color:#f3e9f2;font-size:14px;text-decoration:underline;text-underline-offset:3px}
.drh-reset:hover{color:#fff}

/* Tuner dial – the one memorable element */
.drh-dial{position:absolute;left:0;right:0;bottom:0;height:62px;border-top:1px solid #ffffff1f}
.drh-dial::before{content:"";position:absolute;inset:0 0 26px 0;
  background:
    repeating-linear-gradient(90deg,#ffffff59 0 1px,transparent 1px 100%) 0 0/calc(100%/20) 100%,
    repeating-linear-gradient(90deg,#ffffff24 0 1px,transparent 1px 100%) 0 0/calc(100%/100) 55%;
  background-repeat:repeat-x;opacity:.9}
.drh-dial-scale{position:absolute;left:0;right:0;bottom:6px;display:flex;justify-content:space-between;padding:0 max(20px,calc((100vw - 1180px)/2 + 20px));font:600 12px/1 var(--display);color:#b9a6b7;letter-spacing:.02em}
.drh-needle{position:absolute;top:-1px;bottom:0;left:61.8%;width:2px;background:var(--signal);box-shadow:0 0 12px var(--signal);animation:drh-tune 1.8s cubic-bezier(.2,.8,.2,1) .2s both}
.drh-needle::before{content:"";position:absolute;top:0;left:-5px;width:12px;height:12px;border-radius:50%;background:var(--signal)}
@keyframes drh-tune{from{left:6%}to{left:61.8%}}
@media (prefers-reduced-motion:reduce){.drh-needle{animation:none}}

/* ---------- Body ---------- */
.drh-body{padding-top:28px;padding-bottom:72px}
.drh-quick{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 8px}
.drh-quick a{display:inline-flex;align-items:center;gap:9px;min-height:46px;padding:0 16px;border:1px solid var(--mist);border-radius:12px;background:#fff;color:var(--ink);font-size:15px;font-weight:600;text-decoration:none}
.drh-quick a:hover{border-color:var(--plum);color:var(--plum)}
.drh-quick svg{width:19px;height:19px;fill:none;stroke:var(--plum);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.drh-quick em{font-style:normal;font-weight:500;font-size:13px;color:var(--muted)}

.drh-ad{margin:24px 0}
.drh-section{margin-top:52px}
.drh-section[hidden]{display:none!important}
.drh-head{display:flex;align-items:baseline;justify-content:space-between;gap:16px;margin:0 0 18px;padding-bottom:12px;border-bottom:1px solid var(--mist)}
.drh-head h2{margin:0;font-family:var(--display);font-weight:700;font-size:clamp(22px,2.4vw,30px);letter-spacing:-.02em;color:var(--ink)}
.drh-head span{font-size:14px;color:var(--muted);white-space:nowrap}

/* ---------- Station cards (server + JS rendered share this markup) ---------- */
.drh .drh-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(168px,1fr));gap:18px 16px}
.drh .world-station{position:relative;display:flex;flex-direction:column;min-width:0;padding:0;border:0;background:none;box-shadow:none;border-radius:0}
.drh .world-station>a{display:block;color:var(--ink);text-decoration:none}
.drh .world-station img{display:block;width:100%;height:auto;aspect-ratio:1;object-fit:contain;padding:14%;border:1px solid var(--mist);border-radius:18px;background:#fff;transition:border-color .15s}
.drh .world-station>a:hover img{border-color:var(--plum)}
.drh .world-station h3{margin:10px 2px 0;font:600 15px/1.3 var(--text);color:var(--ink);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.drh .world-listen-count{margin:4px 2px 0;font-size:13px;color:var(--muted)}
.drh .world-card-actions{display:flex;gap:6px;margin-top:auto;padding-top:10px}
.drh .world-card-actions button{min-height:40px;border-radius:10px;font:600 14px/1 var(--text);cursor:pointer;padding:0 12px}
.drh .world-card-actions [data-world-play]{flex:1;border:0;background:var(--plum);color:#fff}
.drh .world-card-actions [data-world-play]:hover{background:var(--plum-2)}
.drh .world-card-actions [data-world-play][disabled]{background:var(--mist);color:var(--muted);cursor:not-allowed}
.drh .world-card-actions [data-world-favorite]{width:40px;flex:0 0 40px;padding:0;border:1px solid var(--mist);background:#fff;color:var(--plum);font-size:18px}
.drh .world-card-actions [data-world-favorite][aria-pressed=true]{background:#fff6e2;border-color:var(--signal);color:#b07a10}

/* Ranked list: the order is real (by listens), so the numbers carry meaning */
.drh .drh-ranked{counter-reset:drh-rank}
.drh .drh-ranked .world-station{counter-increment:drh-rank}
.drh .drh-ranked .world-station::before{content:counter(drh-rank);position:absolute;top:10px;left:10px;z-index:1;min-width:30px;height:30px;padding:0 8px;border-radius:9px;background:var(--night);color:var(--signal);font:700 15px/30px var(--display);text-align:center}

/* Empty state & pagination */
.drh .drh-empty{grid-column:1/-1;padding:40px 24px;border:1px dashed var(--mist);border-radius:18px;text-align:center;background:#fff}
.drh .drh-empty p{margin:0 0 10px;font-size:17px}
.drh .drh-empty a{color:var(--plum);font-weight:600}
.drh-pages{margin-top:36px;display:flex;justify-content:center}
.drh-pages .pagination{gap:6px;flex-wrap:wrap;justify-content:center;margin:0}
.drh-pages .page-link{min-width:42px;height:42px;display:flex;align-items:center;justify-content:center;border:1px solid var(--mist)!important;border-radius:10px!important;color:var(--ink);background:#fff;font-weight:600}
.drh-pages .page-item.active .page-link{background:var(--plum);border-color:var(--plum)!important;color:#fff}
.drh-pages .page-item.disabled .page-link{color:#bbaab8;background:#fff}

/* ---------- Responsive ---------- */
@media (max-width:860px){
  .drh-filters{grid-template-columns:1fr 1fr}
  .drh-go{grid-column:1/-1}
}
@media (max-width:560px){
  .drh-hero{padding:36px 0 92px}
  .drh-title{max-width:none}
  .drh-q input{height:58px;font-size:16px}
  .drh-filters{grid-template-columns:1fr}
  .drh .drh-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 12px}
  .drh-head{flex-wrap:wrap}
  .drh-quick{flex-wrap:nowrap;overflow-x:auto;margin:0 -20px 8px;padding:0 20px 4px;scrollbar-width:none}
  .drh-quick::-webkit-scrollbar{display:none}
  .drh-quick a{flex:0 0 auto}
}
/* leave room for the fixed player bar */
.radio-has-player .drh-body{padding-bottom:140px}

/* =====================================================================
   Language menu (all public pages)
   ===================================================================== */
.dr-lang{justify-content:flex-end}
.dr-lang-menu{position:relative}
.dr-lang-menu summary{display:inline-flex;align-items:center;gap:8px;min-height:40px;padding:0 14px;border:1px solid #e3d6e3;border-radius:999px;background:#fff;color:#571950;font:600 14px/1 'Instrument Sans',system-ui,sans-serif;cursor:pointer;list-style:none;user-select:none}
.dr-lang-menu summary::-webkit-details-marker{display:none}
.dr-lang-menu summary::after{content:"";width:7px;height:7px;margin-left:2px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg) translateY(-2px)}
.dr-lang-menu[open] summary{border-color:#571950}
.dr-lang-menu ul{position:absolute;right:0;top:calc(100% + 6px);z-index:1100;display:grid;grid-template-columns:repeat(2,minmax(150px,1fr));gap:2px;margin:0;padding:8px;list-style:none;background:#fff;border:1px solid #e3d6e3;border-radius:14px;box-shadow:0 18px 40px -12px #2a0f2740;max-height:70vh;overflow:auto}
.dr-lang-menu li a{display:block;min-height:0;padding:9px 12px;border-radius:9px;color:#241322;font:500 14px/1.3 'Instrument Sans',system-ui,sans-serif;text-decoration:none;background:none}
.dr-lang-menu li a:hover{background:#f5eff5;color:#571950}
.dr-lang-menu li a[aria-current=true]{background:#571950;color:#fff}
@media (max-width:560px){.dr-lang-menu ul{grid-template-columns:1fr;min-width:200px}}
[dir=rtl] .dr-lang-menu ul{right:auto;left:0}
