/* radio-skin.css — Music Radios specifics on the shared cosmic base
   (chord-styles.css supplies .bg / .rail / .shell / .mz-topbar / .mz-hero /
   .card). Tokens all come from the shared theme. */

/* ── Shell: body ~80% width with side gaps + rail gutter ─────────────────── */
/* Shell geometry matches VR's .shell (1080px column, rail-offset 92). */
.rd-shell {
  width: min(100%, 1080px);
  margin: 0 auto;
  padding: 22px 24px 120px 92px;   /* top matches VR; extra bottom room for the now-playing dock */
}
@media (max-width: 760px) { .rd-shell { width: auto; padding: 16px 16px 150px 72px; } }

/* ── Layout: filters sidebar + stations main ─────────────────────────────── */
.rd-content { display: grid; grid-template-columns: 268px 1fr; gap: 26px; align-items: start; }
@media (max-width: 980px) { .rd-content { grid-template-columns: 1fr; gap: 18px; } }

/* ── Filters ─────────────────────────────────────────────────────────────── */
.rd-filters { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 14px; }
@media (max-width: 980px) {
  .rd-filters { position: static; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
}
.rd-filter { padding: 17px 18px; }
.rd-filter-h {
  display: flex; align-items: center; gap: 9px; margin: 0 0 13px;
  font-family: var(--font-body); font-weight: 600; font-size: 14.5px; color: var(--ink);
}
.rd-filter-h .ic { color: var(--accent); display: grid; place-items: center; }

.rd-search { display: flex; gap: 8px; }
.rd-search-input {
  flex: 1; min-width: 0; height: 42px; padding: 0 13px;
  border: 1px solid var(--line-strong, var(--line)); border-radius: 11px;
  background: color-mix(in srgb, var(--bg) 42%, transparent);
  color: var(--ink); font-family: var(--font-body); font-size: 14px; outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.rd-search-input::placeholder { color: var(--sub); opacity: .85; }
.rd-search-input:focus { border-color: color-mix(in srgb, var(--accent) 58%, var(--line));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent); }
.rd-search-btn {
  flex-shrink: 0; width: 42px; height: 42px; border: 0; border-radius: 11px; cursor: pointer;
  display: grid; place-items: center; color: var(--accent-ink, #fff);
  background: var(--cta, linear-gradient(135deg, var(--accent2), var(--accent)));
  box-shadow: var(--cta-glow, 0 12px 30px -14px rgba(0,0,0,.4)); transition: transform .15s ease, filter .2s ease;
}
.rd-search-btn:hover { transform: translateY(-1px); filter: brightness(1.06); }

/* genre checkboxes */
.rd-genres { display: flex; flex-direction: column; gap: 2px; max-height: 248px; overflow-y: auto; margin: -4px -4px -4px 0; padding: 4px 6px 4px 4px;
  scrollbar-width: thin; scrollbar-color: color-mix(in srgb,var(--ink) 22%, transparent) transparent; }
.rd-genres::-webkit-scrollbar { width: 7px; }
.rd-genres::-webkit-scrollbar-thumb { background: color-mix(in srgb,var(--ink) 20%, transparent); border-radius: 4px; }
.rd-check {
  display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 9px;
  cursor: pointer; color: var(--ink-2, var(--sub)); font-family: var(--font-body); font-size: 13.5px;
  transition: background .15s ease, color .15s ease;
}
.rd-check:hover { background: color-mix(in srgb, var(--ink) 7%, transparent); color: var(--ink); }
.rd-check input { position: absolute; opacity: 0; width: 0; height: 0; }
.rd-check-box {
  width: 17px; height: 17px; flex-shrink: 0; border-radius: 5px;
  border: 1.5px solid var(--line-strong, var(--line));
  background: color-mix(in srgb, var(--bg) 40%, transparent);
  display: grid; place-items: center; transition: .15s ease;
}
.rd-check input:checked + .rd-check-box {
  background: var(--accent); border-color: var(--accent);
}
.rd-check input:checked + .rd-check-box::after {
  content: ""; width: 9px; height: 5px; border: 2px solid var(--accent-ink, #fff);
  border-top: 0; border-right: 0; transform: rotate(-45deg) translate(0px, -1px);
}
.rd-check input:focus-visible + .rd-check-box { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 24%, transparent); }
.rd-check-label { flex: 1; }
.rd-check input:checked ~ .rd-check-label { color: var(--ink); font-weight: 500; }
.rd-check-count { font-size: 11.5px; color: var(--sub); font-variant-numeric: tabular-nums;
  background: color-mix(in srgb, var(--ink) 8%, transparent); padding: 1px 7px; border-radius: 999px; }

/* country select */
.rd-country {
  appearance: none; -webkit-appearance: none; width: 100%; height: 42px; padding: 0 36px 0 13px;
  border: 1px solid var(--line-strong, var(--line)); border-radius: 11px;
  background-color: color-mix(in srgb, var(--bg) 42%, transparent);
  color: var(--ink); font-family: var(--font-body); font-size: 14px; font-weight: 500; cursor: pointer; outline: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path fill='gray' d='M0 0h10L5 6z'/></svg>");
  background-repeat: no-repeat; background-position: right 13px center;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.rd-country:focus { border-color: color-mix(in srgb, var(--accent) 58%, var(--line)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent); }
.rd-country option { color: #111; }

.rd-reset {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; height: 44px; cursor: pointer;
  border: 1px solid var(--line-strong, var(--line)); border-radius: 12px;
  background: color-mix(in srgb, var(--ink) 6%, transparent); color: var(--ink);
  font-family: var(--font-body); font-weight: 600; font-size: 13.5px;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.rd-reset:hover { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }

/* ── Main column ─────────────────────────────────────────────────────────── */
.rd-results-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.rd-count { font-family: var(--font-body); font-size: 14px; font-weight: 600; color: var(--ink); }
.rd-clear { appearance: none; border: 0; background: transparent; cursor: pointer; color: var(--accent);
  font-family: var(--font-body); font-size: 13px; font-weight: 600; padding: 4px 6px; border-radius: 8px; }
.rd-clear:hover { background: color-mix(in srgb, var(--accent) 12%, transparent); }

.rd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }

.rd-card {
  display: flex; gap: 14px; padding: 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow-card);
  -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%);
  transition: transform .2s cubic-bezier(.3,.7,.4,1), box-shadow .2s ease, border-color .2s ease;
}
.rd-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-pop, 0 36px 84px -30px rgba(0,0,0,.5));
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.rd-card.is-current { border-color: color-mix(in srgb, var(--accent) 60%, var(--line));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 40%, transparent), var(--shadow-card); }

.rd-cover {
  position: relative; flex-shrink: 0; width: 56px; height: 56px; border-radius: 13px;
  display: grid; place-items: center; color: rgba(255,255,255,.95);
  box-shadow: 0 8px 20px -10px rgba(0,0,0,.5);
}
.rd-cover svg { filter: drop-shadow(0 2px 5px rgba(0,0,0,.3)); }
/* equalizer bars on the playing station */
.rd-eq { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 2.5px;
  background: rgba(0,0,0,.32); border-radius: 13px; }
.rd-eq i { width: 3px; height: 9px; background: #fff; border-radius: 2px; animation: rd-eq 0.9s ease-in-out infinite; }
.rd-eq i:nth-child(2) { animation-delay: .2s; } .rd-eq i:nth-child(3) { animation-delay: .4s; } .rd-eq i:nth-child(4) { animation-delay: .15s; }
@keyframes rd-eq { 0%,100% { transform: scaleY(.5); } 50% { transform: scaleY(1.7); } }

.rd-card-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.rd-card-head { display: flex; align-items: flex-start; gap: 10px; }
.rd-name { margin: 0; flex: 1; min-width: 0; font-family: var(--font-body); font-weight: 700; font-size: 15.5px;
  color: var(--ink); line-height: 1.25; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.rd-card-ctrls { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.rd-play {
  width: 34px; height: 34px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; color: var(--accent-ink, #fff);
  background: var(--cta, linear-gradient(135deg, var(--accent2), var(--accent)));
  box-shadow: 0 8px 20px -10px color-mix(in srgb, var(--accent) 70%, transparent);
  transition: transform .15s ease, filter .2s ease;
}
.rd-play:hover { transform: scale(1.08); filter: brightness(1.05); }
.rd-play.on { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent); }
.rd-del {
  width: 30px; height: 30px; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; color: var(--sub);
  border: 1px solid var(--line); background: color-mix(in srgb, var(--ink) 5%, transparent);
  transition: .15s ease;
}
.rd-del:hover { color: #fff; background: #e0445a; border-color: #e0445a; }

.rd-meta { display: flex; flex-direction: column; gap: 5px; margin-top: 11px; }
.rd-meta-row { display: flex; align-items: center; gap: 8px; font-family: var(--font-body); font-size: 12.5px; color: var(--sub); }
.rd-meta-row .ic { color: var(--accent); display: grid; place-items: center; flex-shrink: 0; }
.rd-notes { margin: 11px 0 0; padding-top: 11px; border-top: 1px solid var(--line);
  font-family: var(--font-body); font-size: 12.5px; line-height: 1.45; color: var(--sub); text-wrap: pretty; }

/* ── Pagination ──────────────────────────────────────────────────────────── */
.rd-pagination { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 30px; }
.rd-page {
  min-width: 40px; height: 40px; padding: 0 11px; cursor: pointer;
  border: 1px solid var(--line); border-radius: 11px;
  background: var(--surface); color: var(--ink);
  font-family: var(--font-body); font-weight: 600; font-size: 14px;
  display: grid; place-items: center; transition: .15s ease;
}
.rd-page:hover:not(:disabled):not(.active) { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); transform: translateY(-1px); }
.rd-page.active { background: var(--cta, var(--accent)); color: var(--accent-ink, #fff); border-color: transparent; }
.rd-page:disabled { opacity: .42; cursor: not-allowed; }
.rd-ellipsis { color: var(--sub); padding: 0 2px; }

/* ── Empty ───────────────────────────────────────────────────────────────── */
.rd-empty { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center;
  padding: 56px 24px; color: var(--sub); font-family: var(--font-body); }
.rd-empty-ico { color: var(--sub); opacity: .5; }
.rd-empty p { margin: 0; font-size: 15.5px; }
.rd-clear-btn { appearance: none; cursor: pointer; padding: 9px 18px; border-radius: 11px;
  border: 1px solid var(--line-strong, var(--line)); background: color-mix(in srgb, var(--bg) 40%, transparent);
  color: var(--ink); font-family: var(--font-body); font-weight: 600; font-size: 13.5px; transition: .18s ease; }
.rd-clear-btn:hover { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }

/* ── Now-playing dock (fixed, appears when a station is selected) ────────── */
.rd-now {
  position: fixed; left: 66px; right: 0; bottom: 0; z-index: 5000;
  transform: translateY(110%);
  padding: 0 24px 16px;
  pointer-events: none;
}
.rd-now.show { transform: none; pointer-events: auto; }
.rd-now-inner {
  max-width: 1180px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 12px 16px; border-radius: 16px;
  background: color-mix(in srgb, var(--bg2) 86%, transparent);
  border: 1px solid var(--line-strong, var(--line));
  -webkit-backdrop-filter: blur(26px) saturate(160%); backdrop-filter: blur(26px) saturate(160%);
  box-shadow: 0 24px 60px -22px rgba(0,0,0,.7);
}
.rd-now-info { display: flex; align-items: center; gap: 13px; min-width: 0; }
.rd-now-art { flex-shrink: 0; width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center;
  color: var(--accent-ink, #fff); background: var(--cta, linear-gradient(135deg, var(--accent2), var(--accent))); }
.rd-now-text { display: flex; flex-direction: column; min-width: 0; }
.rd-now-label { font-family: var(--font-body); font-size: 11px; font-weight: 600; letter-spacing: .07em;
  text-transform: uppercase; color: var(--accent); }
.rd-now-name { font-family: var(--font-body); font-size: 14.5px; font-weight: 600; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rd-now-ctrls { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.rd-now-btn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); cursor: pointer;
  display: grid; place-items: center; color: var(--ink); background: color-mix(in srgb, var(--ink) 6%, transparent);
  transition: .15s ease; }
.rd-now-btn:hover { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.rd-now-btn.primary { width: 44px; height: 44px; border: 0; color: var(--accent-ink, #fff);
  background: var(--cta, linear-gradient(135deg, var(--accent2), var(--accent)));
  box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--accent) 70%, transparent); }
.rd-now-btn.primary:hover { color: var(--accent-ink, #fff); transform: scale(1.05); }
.rd-now-vol { display: flex; align-items: center; gap: 9px; color: var(--sub);
  padding-left: 14px; margin-left: 4px; border-left: 1px solid var(--line); }
.rd-vol-slider { width: 96px; height: 5px; -webkit-appearance: none; appearance: none; border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 18%, transparent); outline: none; }
.rd-vol-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 15px; height: 15px; border-radius: 50%;
  background: var(--accent); border: 2px solid color-mix(in srgb, var(--bg) 80%, #fff); cursor: pointer; }
.rd-vol-slider::-moz-range-thumb { width: 15px; height: 15px; border-radius: 50%; background: var(--accent); border: 2px solid #fff; cursor: pointer; }
@media (max-width: 720px) {
  .rd-now { left: 0; padding: 0 10px 10px; }
  .rd-now-inner { gap: 12px; padding: 10px 12px; }
  .rd-now-vol { display: none; }
}

/* ── Toast ───────────────────────────────────────────────────────────────── */
.rd-toast {
  position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); z-index: 6000;
  padding: 11px 18px; border-radius: 12px; max-width: 90vw;
  background: color-mix(in srgb, var(--bg2) 92%, transparent); color: var(--ink);
  border: 1px solid var(--line-strong, var(--line));
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  box-shadow: 0 18px 44px -18px rgba(0,0,0,.6);
  font-family: var(--font-body); font-size: 13.5px; text-align: center;
  animation: rd-toast-in .26s cubic-bezier(.2,.7,.3,1);
}
@keyframes rd-toast-in { from { transform: translate(-50%, 8px); opacity: 0; } }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 720px) {
  .rd-grid { grid-template-columns: 1fr; gap: 14px; }
  /* Keep the dock's right controls clear of the bottom-right Tweaks gear. */
  .rd-now-inner { padding-right: 60px; }
}
