/* ============================================================
   Raawiy — Listen on the web.
   Stage (now playing), catalogue, sticky dock, expanded player.
   Built on tokens.css + rawiy.css; everything here is lst-*.
   ============================================================ */

.lst-page { position: relative; }
.lst-inner { padding-top: clamp(26px, 4vw, 44px); padding-bottom: 56px; display: flex; flex-direction: column; gap: 34px; }
/* Room for the fixed dock so it never covers the last row or the footer. */
.lst-page.has-dock { padding-bottom: 84px; }
.lst-h1 { font-size: clamp(32px, 4.4vw, 48px); font-weight: 700; line-height: 1.08; text-wrap: balance; max-width: 780px; }
.lst-on-soft { color: var(--on-navy-soft); font-size: 12.5px; }
.lst-now { font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-bright); }
/* Controls that do nothing without the script stay out of a no-JS page. */
.lst-js { display: none !important; }
.lst-ready .lst-js { display: flex !important; }

/* ── stage ─────────────────────────────────────────────────── */
.lst-stage-card {
  background: var(--navy-chrome); border: 1px solid var(--on-navy-line);
  border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-md); color: var(--on-navy);
}
.lst-stage { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.lst-stage.is-video { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.lst-art { position: relative; display: flex; align-items: center; justify-content: center; min-height: 300px; overflow: hidden; }
.lst-art-audio { position: relative; display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 34px; }
.lst-art-mono { display: inline-flex; }
.lst-art-mono .monogram.ring { box-shadow: 0 0 0 2px rgba(253,246,227,.12), 0 0 0 3.5px var(--gold-line); }
.lst-eq { display: flex; gap: 4px; height: 30px; align-items: flex-end; }
.lst-eq .eq-bar { height: 26px; animation-play-state: paused; opacity: .35; }
.lst-eq .eq-bar:nth-child(2) { animation-delay: .11s; } .lst-eq .eq-bar:nth-child(3) { animation-delay: .22s; }
.lst-eq .eq-bar:nth-child(4) { animation-delay: .33s; } .lst-eq .eq-bar:nth-child(5) { animation-delay: .44s; }
.lst-eq .eq-bar:nth-child(6) { animation-delay: .55s; } .lst-eq .eq-bar:nth-child(7) { animation-delay: .66s; }
.is-playing .lst-eq .eq-bar { animation-play-state: running; opacity: 1; }
.lst-video-slot { position: absolute; inset: 0; background: #000; display: flex; }
.lst-video-slot[hidden] { display: none; }
.lst-video-slot video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.lst-stage.is-video .lst-art-audio { visibility: hidden; }

.lst-stage-copy { padding: clamp(22px, 3vw, 34px); display: flex; flex-direction: column; gap: 16px; justify-content: center; min-width: 0; }
.lst-stage-title { font-size: clamp(24px, 2.7vw, 34px); font-weight: 700; line-height: 1.14; color: var(--on-navy); text-wrap: balance; }
.lst-stage-scholar { font-size: 14px; font-weight: 600; }
.lst-stage-sum { font-size: 14.5px; line-height: 1.62; color: var(--on-navy-soft); max-width: 560px; }
.lst-stage-sum:empty { display: none; }
.lst-stage-ctrls { gap: 12px; margin-top: 4px; align-items: center; }
.lst-round {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--on-navy-line);
  color: var(--on-navy); display: inline-flex; align-items: center; justify-content: center; font-size: 14px;
  transition: background .12s, border-color .12s;
}
.lst-round:hover { background: rgba(253,246,227,.08); border-color: var(--gold-line); }
.lst-mode-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: 99px;
  border: 1px solid var(--on-navy-line); color: var(--on-navy); font-size: 13.5px; font-weight: 600;
}
.lst-mode-btn.on, .lst-tool.on, .lst-pill.on { color: var(--gold-bright); border-color: var(--gold-line); }
.lst-mode-btn[hidden], .lst-tool[hidden], .lst-pill[hidden] { display: none; }

/* ── waveform scrubber ─────────────────────────────────────── */
.lst-wave {
  display: flex; align-items: flex-end; gap: 2px; width: 100%; flex-shrink: 0;
  cursor: pointer; touch-action: none; border-radius: 4px; outline: none;
}
.lst-wave:focus-visible { box-shadow: 0 0 0 2px var(--gold-line); }
.lst-wave > i { flex: 1; min-width: 1px; border-radius: 1.5px; background: var(--line-strong); transition: background .1s; }
.lst-wave-dim > i { background: rgba(244,238,220,.28); }
.lst-wave > i.p { background: var(--gold); }
.lst-wave > i.h { background: var(--gold-bright); }

/* ── filters ───────────────────────────────────────────────── */
.lst-filters { display: flex; gap: 12px; flex-wrap: wrap; justify-content: space-between; }
.lst-filters-main, .lst-filters-selects { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.lst-search { width: 260px; display: block; }
.lst-search .fld { font-size: 13.5px; }
.lst-select {
  width: auto; font-size: 13px; padding-right: 30px; cursor: pointer; appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%236E6446' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 11px center; max-width: 220px; text-overflow: ellipsis;
}
.lst-seg > label {
  padding: 6px 14px; border-radius: 99px; font-size: 13px; font-weight: 500; color: var(--ink-mid);
  cursor: pointer; transition: background .12s, color .12s; white-space: nowrap; position: relative;
}
.lst-seg > label.on { background: var(--gold); color: #1C1407; font-weight: 700; }
.lst-seg > label input { position: absolute; opacity: 0; pointer-events: none; }
.lst-seg > label:has(input:focus-visible) { box-shadow: 0 0 0 2px var(--gold-line); }
.lst-count { font-size: 13px; color: var(--ink-soft); font-weight: 600; margin-bottom: -4px; }
.lst-busy { color: var(--gold-acc); }
.lst-busy[hidden], .lst-queue[hidden] { display: none; }

/* ── catalogue rows ────────────────────────────────────────── */
.lst-list { padding: 8px; transition: opacity .15s; }
.lst-list.is-busy { opacity: .55; }
.lst-row {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; column-gap: 18px; row-gap: 10px; align-items: center;
  padding: 18px clamp(12px, 2.4vw, 20px); border-radius: var(--r-md); border: 1px solid transparent;
  transition: background .12s; position: relative;
}
.lst-row + .lst-row::before {
  content: ''; position: absolute; top: -1px; left: 20px; right: 20px; height: 1px; background: var(--line);
}
.lst-row:hover { background: var(--surface-2); }
.lst-row.is-active { background: var(--gold-soft); border-color: var(--gold-line); }
.lst-row.is-active::before, .lst-row.is-active + .lst-row::before { display: none; }

.lst-thumb {
  width: 54px; height: 54px; border-radius: var(--r-sm); position: relative; overflow: hidden; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; color: #FDF6E3;
}
.lst-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lst-thumb-ini { position: relative; font-family: var(--font-ar); font-size: 22px; color: var(--gold-bright); line-height: 1; }
.lst-thumb img ~ .lst-thumb-ini { display: none; }
.lst-thumb-ico {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 16px;
  background: rgba(8,8,16,.46); opacity: 0; transition: opacity .12s;
}
.lst-row:hover .lst-thumb-ico, .lst-row.is-active .lst-thumb-ico, .lst-thumb:focus-visible .lst-thumb-ico { opacity: 1; }

.lst-row-body { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.lst-row-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 9px; font-size: 12px; color: var(--ink-soft); }
.lst-row-meta .chip { font-size: 10.5px; padding: 2px 8px; gap: 5px; }
.lst-row-meta .chip i { font-size: 9px; }
.lst-chip-series { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.lst-row-title {
  font-size: 19px; font-weight: 700; line-height: 1.25; color: var(--ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block;
}
.lst-row-title:hover, .lst-row.is-active .lst-row-title { color: var(--gold-acc); }
.lst-row-sum { font-size: 13.5px; color: var(--ink-mid); line-height: 1.55; max-width: 680px; }

.lst-row-side { display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.lst-row-dur { font-size: 13px; color: var(--ink-soft); font-weight: 600; }
.lst-row-actions { display: flex; gap: 4px; opacity: .45; transition: opacity .12s; }
.lst-row:hover .lst-row-actions, .lst-row:focus-within .lst-row-actions { opacity: 1; }
.lst-act {
  width: 34px; height: 34px; border-radius: var(--r-xs); color: var(--ink-soft);
  display: inline-flex; align-items: center; justify-content: center; font-size: 13px; transition: background .12s, color .12s;
}
.lst-act:hover { background: var(--surface-3); color: var(--gold-acc); }
.lst-act.done { color: var(--gold-acc); }

/* ── app invitation ────────────────────────────────────────── */
.lst-app-card {
  display: flex; gap: 24px; flex-wrap: wrap; justify-content: space-between; align-items: center;
  padding: clamp(20px, 3vw, 30px); border-radius: var(--r-md);
  background: var(--gold-soft); border: 1px solid var(--gold-line);
}
.lst-app-title { font-size: clamp(24px, 3vw, 30px); font-weight: 700; line-height: 1.1; }
.lst-app-free { font-size: 12.5px; color: var(--ink-soft); }
.lst-perks { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.lst-perks li { display: flex; gap: 11px; align-items: baseline; font-size: 14.5px; color: var(--ink-mid); line-height: 1.45; }
.lst-perks i { color: var(--gold-acc); font-size: 13px; width: 16px; text-align: center; flex-shrink: 0; }
.lst-app-modal { width: 480px; }

/* ── dock ──────────────────────────────────────────────────── */
.lst-dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  background: var(--navy-chrome); border-top: 1px solid var(--on-navy-line);
  box-shadow: 0 -10px 34px rgba(10,8,2,.28); color: var(--on-navy);
  padding-bottom: env(safe-area-inset-bottom);
  transform: translateY(0); transition: transform .28s cubic-bezier(.16,1,.3,1);
}
.lst-dock.is-away { transform: translateY(110%); }
.lst-dock[hidden] { display: none; }
.lst-dock-grid {
  max-width: var(--site-max); margin: 0 auto; padding: 10px clamp(14px, 3vw, 24px);
  display: grid; grid-template-columns: minmax(180px, 1fr) minmax(0, 2.2fr) minmax(150px, 1fr);
  grid-template-areas: "meta transport tools" "meta scrub tools"; column-gap: 22px; row-gap: 6px; align-items: center;
}
.lst-dock-meta { grid-area: meta; display: flex; align-items: center; gap: 12px; text-align: left; min-width: 0; }
.lst-dock-art {
  width: 44px; height: 44px; border-radius: var(--r-xs); flex-shrink: 0; color: var(--gold-bright); font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}
.lst-dock-title { font-size: 13.5px; font-weight: 600; }
.lst-dock-transport { grid-area: transport; display: flex; align-items: center; justify-content: center; gap: 14px; }
.lst-dock-skip { color: var(--on-navy-soft); width: 34px; height: 34px; font-size: 15px; }
.lst-dock-skip:hover { color: var(--on-navy); }
.lst-play-disc {
  width: 40px; height: 40px; border-radius: 50%; background: var(--gold); color: #1C1407; font-size: 14px;
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background .12s;
}
.lst-play-disc:hover { background: var(--gold-bright); }
.lst-play-disc-lg { width: 64px; height: 64px; font-size: 21px; }
.lst-dock-scrub { grid-area: scrub; display: flex; align-items: center; gap: 10px; min-width: 0; }
.lst-dock-time { font-size: 11.5px; width: 50px; flex-shrink: 0; }
.lst-dock-scrub .lst-dock-time:first-child { text-align: right; }
.lst-dock-tools { grid-area: tools; display: flex; gap: 6px; justify-content: flex-end; align-items: center; }
.lst-tool {
  position: relative; width: 36px; height: 36px; border-radius: var(--r-xs); color: var(--on-navy-soft);
  display: inline-flex; align-items: center; justify-content: center; font-size: 14px; border: 1px solid transparent;
}
.lst-tool:hover { color: var(--on-navy); background: rgba(255,255,255,.05); }
.lst-rate {
  font-size: 12.5px; font-weight: 700; color: var(--gold-bright); padding: 6px 10px; min-width: 50px;
  border-radius: 99px; border: 1px solid var(--on-navy-line); font-variant-numeric: tabular-nums;
}
.lst-badge {
  position: absolute; top: 1px; right: 1px; min-width: 15px; height: 15px; border-radius: 99px; padding: 0 3px;
  background: var(--gold); color: #1C1407; font-size: 9.5px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.lst-badge[hidden] { display: none; }
/* Thin progress line; only shown on phones where the waveform is dropped. */
.lst-dock-progress { display: none; position: absolute; top: -1px; left: 0; right: 0; height: 2px; background: rgba(212,178,74,.18); }
.lst-dock-progress span { display: block; height: 100%; width: 0; background: var(--gold); }

/* ── expanded player ───────────────────────────────────────── */
.lst-exp {
  position: fixed; inset: 0; z-index: 120; background: var(--navy-chrome); color: var(--on-navy);
  display: flex; flex-direction: column; animation: rwRise .3s cubic-bezier(.16,1,.3,1) both;
}
.lst-exp[hidden] { display: none; }
.lst-exp-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px clamp(16px, 3vw, 26px); border-bottom: 1px solid var(--on-navy-line);
  padding-top: max(14px, env(safe-area-inset-top));
}
.lst-exp-close { width: 40px; height: 40px; border-radius: 50%; color: var(--on-navy-soft); font-size: 18px; display: inline-flex; align-items: center; justify-content: center; }
.lst-exp-close:hover { background: rgba(255,255,255,.06); color: var(--on-navy); }
.lst-exp-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 400px); flex: 1; min-height: 0; }
.lst-exp-main { padding: clamp(20px, 3.4vw, 44px); display: flex; flex-direction: column; gap: 22px; min-width: 0; overflow-y: auto; }
.lst-exp-art {
  position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16 / 8; max-width: 100%;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; background: #0B0B14;
}
.lst-exp-art .lst-video-slot { border-radius: inherit; }
.lst-exp-art.is-video { aspect-ratio: 16 / 9; }
.lst-exp-title { font-size: clamp(22px, 2.4vw, 30px); font-weight: 700; line-height: 1.16; color: var(--on-navy); text-wrap: balance; }
.lst-exp-ctrls { display: flex; align-items: center; justify-content: center; gap: 18px; }
.lst-exp-skip { color: var(--on-navy-soft); font-size: 19px; width: 44px; height: 44px; }
.lst-exp-skip:hover { color: var(--on-navy); }
.lst-exp-app { justify-content: center; }
.lst-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 99px;
  border: 1px solid var(--on-navy-line); color: var(--on-navy-soft); font-size: 13px; font-weight: 600;
}
.lst-pill:hover { color: var(--on-navy); border-color: var(--gold-line); }

.lst-exp-side { border-left: 1px solid var(--on-navy-line); min-height: 0; display: flex; flex-direction: column; }
.lst-exp-side-head {
  display: flex; align-items: center; gap: 8px; padding: 16px 20px; border-bottom: 1px solid var(--on-navy-line);
  font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--on-navy-soft);
}
.lst-transcript { flex: 1; min-height: 0; overflow-y: auto; padding: 10px 20px 14px; }
.lst-line {
  display: flex; gap: 12px; align-items: flex-start; padding: 7px 6px; margin: 0 -6px; width: calc(100% + 12px);
  text-align: left; border-radius: var(--r-xs); opacity: .55; transition: opacity .15s, background .12s;
}
.lst-line:hover { opacity: .85; background: rgba(255,255,255,.03); }
.lst-line.on { opacity: 1; }
.lst-line .t { font-size: 11.5px; color: var(--gold-bright); width: 44px; flex-shrink: 0; padding-top: 3px; font-variant-numeric: tabular-nums; }
.lst-line .x { font-family: var(--font-read); font-size: 14.5px; line-height: 1.6; color: var(--on-navy-soft); }
.lst-line.on .x { color: var(--on-navy); }
.lst-side-note { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; padding: 18px 0; color: var(--on-navy-soft); font-size: 14px; line-height: 1.55; }
.lst-side-note strong { color: var(--on-navy); font-family: var(--font-display); font-size: 19px; }
.lst-side-note .wbtn { margin-top: 4px; }
.lst-queue { border-top: 1px solid var(--on-navy-line); padding: 14px 20px; max-height: 240px; overflow-y: auto; }
.lst-q-item { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 8px 0; }
.lst-q-item .ttl { font-size: 13px; flex: 1; min-width: 0; }
.lst-q-item .fa-play { color: var(--gold-bright); font-size: 10px; }
.lst-q-item .rm { color: var(--on-navy-soft); width: 28px; height: 28px; border-radius: 50%; font-size: 12px; }
.lst-q-item .rm:hover { color: var(--on-navy); background: rgba(255,255,255,.06); }

/* ── toast ─────────────────────────────────────────────────── */
.lst-toast {
  position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); z-index: 130;
  width: min(520px, calc(100vw - 32px)); background: var(--surface); color: var(--ink);
  border: 1px solid var(--gold-line); border-radius: var(--r-md); box-shadow: var(--shadow-lg);
  padding: 14px 16px; display: flex; gap: 12px; align-items: center; animation: rwRise .35s cubic-bezier(.16,1,.3,1) both;
  font-size: 14px; line-height: 1.45;
}
.lst-toast[hidden] { display: none; }
.lst-toast .msg { flex: 1; min-width: 0; }
.lst-toast .msg strong { display: block; font-family: var(--font-display); font-size: 17px; }
.lst-toast .close-x { font-size: 16px; }

/* ── responsive ────────────────────────────────────────────── */
@media (hover: none) {
  .lst-row-actions { opacity: 1; }
  .lst-thumb-ico { opacity: 0; }
  .lst-row.is-active .lst-thumb-ico { opacity: 1; }
}

@media (max-width: 1024px) {
  .lst-dock-grid { grid-template-columns: minmax(160px, 1fr) minmax(0, 2fr) auto; column-gap: 16px; }
  .lst-dock-tools [data-expand][title="Queue"] { display: none; }
}

@media (max-width: 900px) {
  .lst-stage, .lst-stage.is-video { grid-template-columns: minmax(0, 1fr); }
  .lst-art { min-height: 0; aspect-ratio: 16 / 9; }
  .lst-stage:not(.is-video) .lst-art { aspect-ratio: auto; min-height: 200px; }
  .lst-art-audio { padding: 26px; gap: 14px; }
  .lst-exp-body { grid-template-columns: minmax(0, 1fr); overflow-y: auto; }
  .lst-exp-main { overflow: visible; }
  .lst-exp-side { border-left: none; border-top: 1px solid var(--on-navy-line); min-height: 320px; }
  .lst-transcript { overflow: visible; }
  .lst-filters { flex-direction: column; align-items: stretch; }
  .lst-filters-main { justify-content: space-between; }
}

@media (max-width: 720px) {
  .lst-inner { gap: 26px; }
  .lst-dock-grid {
    grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "meta transport";
    padding: 9px 14px; column-gap: 10px;
  }
  .lst-dock-scrub, .lst-dock-tools { display: none; }
  .lst-dock-progress { display: block; }
  .lst-dock-transport { gap: 6px; }
  .lst-dock-skip[data-skip="-15"] { display: none; }
  .lst-dock-art { width: 40px; height: 40px; }
  .lst-page.has-dock { padding-bottom: 68px; }
  .lst-toast { bottom: 80px; }

  .lst-row { grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; padding: 14px 10px; align-items: start; }
  .lst-row + .lst-row::before { left: 10px; right: 10px; }
  .lst-thumb { width: 48px; height: 48px; }
  .lst-row-title { font-size: 17.5px; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .lst-row-side { grid-column: 2; flex-direction: row; align-items: center; justify-content: space-between; margin-top: -2px; }
  .lst-row-actions { margin-right: -8px; }
  .lst-act { width: 40px; height: 40px; font-size: 14px; }
  .lst-list { padding: 4px; }

  .lst-search { width: 100%; }
  .lst-filters-main { flex-direction: column; align-items: stretch; }
  .lst-seg { align-self: flex-start; }
  .lst-filters-selects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lst-select { max-width: none; width: 100%; }
  .lst-filters-selects .lst-select[name="sort"] { grid-column: 1 / -1; }

  .lst-stage-ctrls .wbtn-lg { padding: 12px 22px; font-size: 15px; }
  .lst-app-card { flex-direction: column; align-items: flex-start; }
  .lst-exp-art { aspect-ratio: 16 / 10; }
  .lst-exp-art.is-video { aspect-ratio: 16 / 9; }
  .lst-exp-ctrls { gap: 12px; }
}

@media (max-width: 400px) {
  .lst-stage-ctrls { gap: 8px; }
  .lst-stage-ctrls .lst-round { width: 40px; height: 40px; }
  .lst-mode-btn span { display: none; }
  .lst-mode-btn { padding: 0 13px; }
  .lst-exp-ctrls .lst-tool { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .lst-dock, .lst-exp, .lst-toast { transition: none; animation: none; }
}
