/* My Virtual World — Copyright (c) 2026 My Virtual World. Licensed under the PolyForm Noncommercial License 1.0.0 (see LICENSE). */
/* The Radio Stations window (client/js/ui/radio-stations.js): the stations down the side (each in its own colour, --rc),
   a station's tabs, its playlist, the music library. The big windows' size (theme.css); on a phone the side becomes a
   row of chips over the page. */
.rs-back { z-index: 6; }
.rs { --rc: #4aa3ff; width: var(--win-w); height: var(--win-h); margin-top: var(--topbar-height, 56px); padding: 0; border-radius: 18px; overflow: hidden;
  display: grid; grid-template-rows: auto minmax(0, 1fr); background: var(--panel-strong); animation: rs-in .25s cubic-bezier(.2, .9, .3, 1.1); }
@keyframes rs-in { from { opacity: 0; transform: translateY(12px) scale(.985); } to { opacity: 1; transform: none; } }
.rs h2, .rs h3, .rs h4 { margin: 0; }
.rs .hint { margin: 4px 0 0; }
.rs-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.rs-logo { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; font-size: 24px; background: color-mix(in srgb, var(--gold, #f5c451) 18%, var(--bg2)); }
.rs-title { flex: 1; min-width: 0; }
.rs-kicker { display: block; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); font-weight: 700; }
.rs-title h2 { font-size: 20px; }
.rs-main { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: 0; }
.rs-side { border-right: 1px solid var(--line); overflow-y: auto; padding: 10px 8px; display: flex; flex-direction: column; gap: 3px; }
.rs-sh { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); font-weight: 700; padding: 10px 8px 4px; }
.rs-sh:first-child { padding-top: 2px; }
.rs-st { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 8px 10px; border-radius: 10px; border: 1px solid transparent; background: none; color: var(--text); font: inherit; cursor: pointer; }
.rs-st:hover { background: var(--btn-hover); }
.rs-st.on { background: color-mix(in srgb, var(--rc, var(--gold)) 14%, transparent); border-color: color-mix(in srgb, var(--rc, var(--gold)) 45%, var(--line)); }
.rs-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; background: var(--rc); box-shadow: 0 0 8px var(--rc); }
.rs-plus { width: 18px; text-align: center; flex: none; }
.rs-stn { display: grid; min-width: 0; }
.rs-stn b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rs-stn small { font-size: 11px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rs-new b { color: var(--good, #4ade80); }
.rs-body { min-width: 0; min-height: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; }
.rs-content { overflow-y: auto; padding: 16px 20px 20px; }
.rs-say { margin: 0; padding: 0 20px 10px; font-size: 12.5px; color: var(--dim); min-height: 0; }
.rs-say.bad { color: var(--bad); }
.rs-sthead { --rc: #4aa3ff; margin-bottom: 12px; }
.rs-big { display: flex; align-items: center; gap: 14px; }
.rs-big h3 { font-size: 20px; }
.rs-freq { min-width: 74px; padding: 8px 10px; border-radius: 12px; text-align: center; font-weight: 800; font-size: 20px; line-height: 1; color: var(--rc);
  background: color-mix(in srgb, var(--rc) 14%, transparent); border: 1px solid color-mix(in srgb, var(--rc) 45%, transparent); }
.rs-freq small { display: block; font-size: 10px; font-weight: 700; letter-spacing: .1em; margin-top: 3px; }
.rs-tabs { display: flex; gap: 4px; margin-top: 12px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.rs-tab { padding: 8px 12px; border: 0; background: none; color: var(--dim); font: inherit; font-size: 13px; cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; }
.rs-tab.on { color: var(--text); border-bottom-color: var(--rc); font-weight: 600; }
.rs-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; margin: 4px 0 14px; }
.rs-card { padding: 10px 12px; border-radius: 12px; background: var(--btn); border: 1px solid var(--line); display: grid; gap: 4px; min-width: 0; }
.rs-card small { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.rs-card b { font-size: 16px; overflow-wrap: anywhere; }
.rs-now b { font-size: 14px; }
.rs-logs { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 4px; }
.rs-log { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 6px 8px; border-radius: 8px; background: var(--btn); font-size: 13px; }
.rs-log small { color: var(--dim); font-size: 11px; margin-left: auto; }
.rs-log.undone > span { opacity: .55; text-decoration: line-through; }
.rs-who { font-weight: 600; }
.rs-plbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.rs-plbar .hint { margin: 0; flex: 1 1 260px; }
.rs-inl { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.rs-plbtns { gap: 8px; margin-bottom: 10px; }
.rs-pl { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; }
.rs-song { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto auto; align-items: center; gap: 8px; padding: 5px 8px; border-radius: 9px; background: var(--btn); }
.rs-song:hover { background: var(--btn-hover); }
.rs-n { color: var(--dim); font-size: 12px; text-align: right; font-variant-numeric: tabular-nums; }
.rs-ti { display: grid; min-width: 0; }
.rs-ti b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rs-ti small { font-size: 11px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rs-len { font-size: 12px; color: var(--dim); font-variant-numeric: tabular-nums; }
.rs-acts { display: flex; gap: 3px; justify-content: flex-end; min-width: 120px; }
.rs-box { padding: 12px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--rc, var(--gold)) 35%, var(--line)); background: color-mix(in srgb, var(--rc, var(--gold)) 6%, var(--btn)); display: grid; gap: 8px; margin-bottom: 12px; }
.rs-boxh { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.rs-boxh .hint { margin: 0; }
.rs-boxf { gap: 8px; }
.rs-chips { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0; }
.rs-chip { padding: 3px 10px; border-radius: 99px; border: 1px solid var(--line); background: var(--btn); color: var(--text); font: inherit; font-size: 12px; cursor: pointer; }
.rs-chip.on { background: color-mix(in srgb, var(--gold, #f5c451) 22%, transparent); border-color: var(--gold, #f5c451); }
.rs-pick { list-style: none; margin: 0; padding: 0; max-height: 300px; overflow-y: auto; display: grid; gap: 2px; }
.rs-pick label { display: flex; align-items: center; gap: 8px; padding: 4px 6px; border-radius: 8px; cursor: pointer; }
.rs-pick label:hover { background: var(--btn-hover); }
.rs-pick li[hidden], .rs-lrow[hidden] { display: none; }
.rs-two { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.rs-two > * { flex: 1 1 160px; }
.rs-form { display: grid; gap: 10px; max-width: 620px; }
.rs-genres { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 4px; }
.rs-crew { list-style: none; margin: 6px 0; padding: 0; display: grid; gap: 4px; }
.rs-crew li { display: flex; justify-content: space-between; align-items: center; padding: 6px 10px; border-radius: 8px; background: var(--btn); }
.rs-crew .good { color: var(--good, #4ade80); }
.rs-hosts { gap: 6px; margin: 6px 0; }
.rs-danger { margin-top: 18px; }
.rs-where { display: grid; gap: 8px; }
.rs-where .row { gap: 6px; margin-top: 6px; }
.rs-ltools { display: flex; gap: 8px; flex-wrap: wrap; }
.rs-ltools .rs-lq { flex: 1 1 260px; }
.rs-pickbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 10px; border-radius: 10px; margin: 6px 0; background: color-mix(in srgb, var(--gold, #f5c451) 12%, var(--btn)); position: sticky; top: -16px; z-index: 1; }
.rs-pickbar.hidden { display: none; }
.rs-lib { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 3px; }
.rs-lrow { display: grid; grid-template-columns: 20px 32px minmax(0, 1.4fr) minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 5px 8px; border-radius: 9px; background: var(--btn); }
.rs-lrow.pending { border: 1px dashed color-mix(in srgb, var(--warn, #e0a83a) 60%, transparent); }
.rs-used { display: flex; flex-wrap: wrap; gap: 3px; min-width: 0; font-size: 11px; }
.rs-tag { padding: 1px 7px; border-radius: 99px; font-size: 11px; white-space: nowrap; background: color-mix(in srgb, var(--rc) 16%, transparent); border: 1px solid color-mix(in srgb, var(--rc) 45%, transparent); }
.rs-lacts { display: flex; gap: 4px; align-items: center; justify-content: flex-end; }
.rs .warn { color: var(--warn, #e0a83a); } .rs .bad { color: var(--bad); }

@media (max-width: 760px) {
  .rs { position: fixed; left: 0; right: 0; bottom: 0; top: var(--topbar-height, 44px); width: auto; height: auto; margin: 0; border-radius: 0; border-left: 0; border-right: 0; }   /* (under the top bar, to the bottom of the screen, whatever the top bar's height) */
  .rs-main { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); }
  .rs-side { flex-direction: row; overflow-x: auto; overflow-y: hidden; border-right: 0; border-bottom: 1px solid var(--line); padding: 6px; gap: 4px; }
  .rs-sh { display: none; }
  .rs-st { width: auto; flex: none; max-width: 200px; padding: 6px 10px; }
  .rs-content { padding: 12px; }
  .rs-song { grid-template-columns: 24px minmax(0, 1fr) auto; }
  .rs-len { display: none; }
  .rs-acts { min-width: 0; }
  .rs-lrow { grid-template-columns: 20px 32px minmax(0, 1fr) auto; }
  .rs-lacts { grid-column: 4; grid-row: 1; }
  .rs-used { grid-column: 3 / -1; grid-row: 2; }
}

/* the Music Library as a music player (ui/music-library.js): songs, albums (covers), artists, genres; uploading an album
   (ui/album-upload.js). A cover with no picture: its initials on a colour of its own (--h). */
.ml-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.ml-bar .ml-q { flex: 1 1 260px; }
.ml-tabs { margin: 8px 0 10px; }
.ml-h { margin: 16px 0 8px; display: flex; align-items: center; gap: 8px; }
.ml-cover { width: 100%; aspect-ratio: 1; border-radius: 10px; object-fit: cover; display: grid; place-items: center; background: var(--btn); box-shadow: 0 4px 14px rgba(0, 0, 0, .25); }
.ml-cover.big { width: 180px; height: 180px; flex: none; }
.ml-cover.mid { width: 56px; height: 56px; flex: none; border-radius: 8px; }
.ml-noc { font-weight: 800; font-size: 26px; color: #fff; letter-spacing: .04em; background: linear-gradient(135deg, hsl(var(--h, 210) 55% 42%), hsl(calc(var(--h, 210) + 40) 60% 24%)); }
.ml-cover.big.ml-noc { font-size: 54px; } .ml-cover.mid.ml-noc { font-size: 16px; }
.ml-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.ml-card { display: grid; gap: 4px; text-align: left; padding: 8px; border-radius: 12px; border: 1px solid transparent; background: none; color: var(--text); font: inherit; cursor: pointer; min-width: 0; }
.ml-card:hover { background: var(--btn-hover); border-color: var(--line); }
.ml-card b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 4px; }
.ml-card small { font-size: 11.5px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ml-artists { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.ml-artist { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--btn); color: var(--text); font: inherit; text-align: left; cursor: pointer; min-width: 0; }
.ml-artist:hover { background: var(--btn-hover); }
.ml-artist > span:last-child { display: grid; min-width: 0; } .ml-artist b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .ml-artist small { font-size: 11px; color: var(--dim); }
.ml-av { width: 40px; height: 40px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 800; color: #fff; background: linear-gradient(135deg, hsl(var(--h, 210) 55% 45%), hsl(calc(var(--h, 210) + 50) 55% 28%)); }
.ml-av.big { width: 150px; height: 150px; font-size: 48px; }
.ml-genres { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.ml-genre { display: grid; gap: 2px; padding: 16px 14px; border-radius: 12px; border: 0; color: #fff; font: inherit; text-align: left; cursor: pointer; background: linear-gradient(135deg, hsl(var(--h) 55% 40%), hsl(calc(var(--h) + 35) 60% 26%)); }
.ml-genre b { font-size: 15px; } .ml-genre small { opacity: .85; font-size: 12px; }
.ml-hero { display: flex; gap: 18px; align-items: flex-end; flex-wrap: wrap; margin: 8px 0 14px; }
.ml-hero h2 { font-size: 28px; margin: 2px 0 4px; line-height: 1.1; }
.ml-hero p { margin: 0 0 8px; color: var(--dim); font-size: 13px; }
.ml-hero a, .ml-row a { color: inherit; text-decoration: none; } .ml-hero a:hover, .ml-row a:hover { text-decoration: underline; }
.ml-addto { gap: 6px; flex-wrap: wrap; margin-top: 6px; } .ml-adm { gap: 6px; margin-top: 8px; }
.ml-back { display: inline-block; font-size: 13px; color: var(--dim); text-decoration: none; margin-bottom: 4px; }
.ml-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.ml-row { display: grid; grid-template-columns: 20px 32px minmax(0, 1.6fr) minmax(0, 1fr) 90px 48px 40px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 4px 8px; border-radius: 9px; }
.ml-list .ml-row { background: var(--btn); } .ml-list .ml-row:hover { background: var(--btn-hover); }
.ml-row.pending { border: 1px dashed color-mix(in srgb, var(--warn, #e0a83a) 60%, transparent); }
.ml-th { font-size: 11px; color: var(--dim); text-transform: uppercase; letter-spacing: .06em; padding-top: 0; padding-bottom: 2px; }
.ml-sort { border: 0; background: none; color: var(--dim); font: inherit; text-transform: inherit; letter-spacing: inherit; text-align: left; cursor: pointer; padding: 0; }
.ml-sort.on { color: var(--text); }
.ml-th .ml-sort[data-sort="title"] { grid-column: 3; }
.ml-ti { display: grid; min-width: 0; } .ml-ti b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .ml-ti small { font-size: 11px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ml-al, .ml-g { font-size: 12px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ml-len, .ml-pl { font-size: 12px; color: var(--dim); font-variant-numeric: tabular-nums; }
.ml-used { display: flex; flex-wrap: wrap; gap: 3px; min-width: 0; }
.ml-acts { display: flex; gap: 4px; justify-content: flex-end; align-items: center; }
.ml-play { font-variant-numeric: tabular-nums; }
.ml-pickbar { margin: 4px 0 8px; }
.ml-bulk { display: flex; flex-wrap: wrap; gap: 6px; width: 100%; margin-top: 6px; }
.ml-bulk .input { flex: 1 1 140px; }
.ml-rev .ml-revh { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ml-rev .ml-revh > div { flex: 1; display: grid; } .ml-rev .ml-revh small { color: var(--dim); font-size: 12px; }
.au-top { display: flex; gap: 16px; flex-wrap: wrap; }
.au-cov { display: grid; gap: 6px; justify-items: start; width: 180px; }
.au-cov img { width: 180px; height: 180px; object-fit: cover; border-radius: 10px; }
.au-meta { flex: 1 1 280px; display: grid; gap: 8px; }
.au-rows { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 3px; max-height: 340px; overflow-y: auto; }
.au-row { display: grid; grid-template-columns: 20px 52px minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 6px; align-items: center; }
.au-row.off { opacity: .5; } .au-row.good .au-f { color: var(--good, #4ade80); }
.au-f { font-size: 11px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.au-drop.over { border-style: dashed; border-color: var(--gold, #f5c451); }
.au-st { gap: 6px; }
@media (max-width: 760px) {
  .ml-row { grid-template-columns: 20px 32px minmax(0, 1fr) auto; }
  .ml-al, .ml-g, .ml-len, .ml-pl, .ml-th { display: none; }
  .ml-used { grid-column: 3 / -1; grid-row: 2; }
  .ml-acts { grid-column: 4; grid-row: 1; }
  .ml-cover.big { width: 120px; height: 120px; } .ml-av.big { width: 100px; height: 100px; font-size: 34px; }
  .ml-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .au-row { grid-template-columns: 20px 44px minmax(0, 1fr); } .au-a, .au-f { grid-column: 3; }
  .au-cov { width: 120px; } .au-cov img { width: 120px; height: 120px; }
}

/* adding from the library to a station: Songs (sorted), Albums (add one whole), Artists (add all of theirs) — 2026-11-25 */
.rs-addtabs { margin: 0 0 6px; }
.rs-sortby { margin: 4px 0 0; }
.rs-picka li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 6px; border-radius: 8px; }
.rs-picka li:hover { background: var(--btn-hover); }
.rs-pa { display: flex; align-items: center; gap: 10px; min-width: 0; }
.rs-picka .ml-cover.mid { width: 40px; height: 40px; font-size: 14px; }
.rs-clear { margin-left: auto; }
