/* MyStation — phone-first player. Dark by default; follows the phone's light
   setting. Tokens on :root, everything else reads them. */

:root {
  color-scheme: dark;
  --bg: #0e0f13;
  --bg-2: #16181e;
  --card: #1c1f27;
  --line: #2a2e38;
  --text: #f2f1ee;
  --muted: #9a9ca6;
  --faint: #6c6f7a;
  --accent: #ff7a59;
  --accent-ink: #1a0d08;
  --good: #58d68d;
  --bad: #ff6b6b;
  --news: #6aa9ff;
  --shadow: 0 18px 40px rgba(0, 0, 0, .45);
  --radius: 18px;
  --tabs-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg: #f6f4ef;
    --bg-2: #eeebe4;
    --card: #ffffff;
    --line: #e2ded5;
    --text: #1b1b1f;
    --muted: #62646d;
    --faint: #93959d;
    --accent: #e8552f;
    --accent-ink: #ffffff;
    --shadow: 0 16px 34px rgba(60, 40, 20, .16);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
}
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
svg { width: 24px; height: 24px; flex: none; }
[hidden] { display: none !important; }

/* --- top bar ------------------------------------------------------------ */

.top {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(10px + var(--safe-t)) 18px 10px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.brand { display: flex; align-items: center; gap: 9px; font-weight: 750; letter-spacing: -.01em; font-size: 18px; }
.live { width: 9px; height: 9px; border-radius: 50%; background: var(--faint); }
.live.on { background: var(--accent); box-shadow: 0 0 0 0 var(--accent); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.clock { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 15px; }

main { padding: 4px 16px calc(var(--tabs-h) + var(--safe-b) + 24px); max-width: 560px; margin: 0 auto; }

.section {
  margin: 26px 2px 10px; font-size: 13px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}

/* --- now playing -------------------------------------------------------- */

.now { padding-top: 6px; }
.art {
  position: relative; width: 100%; aspect-ratio: 1 / 1; max-height: 44dvh;
  margin: 0 auto; border-radius: 22px; overflow: hidden;
  box-shadow: var(--shadow); background: var(--bg-2);
}
.art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.art .gen {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  justify-content: flex-end; padding: 22px; color: #fff;
}
.art .gen svg { width: 44px; height: 44px; opacity: .9; margin-bottom: auto; align-self: flex-end; }
.art .gen b { font-size: 26px; line-height: 1.1; letter-spacing: -.02em; text-shadow: 0 2px 12px rgba(0,0,0,.25); }
.art .badge {
  position: absolute; top: 14px; left: 14px; display: flex; align-items: center; gap: 6px;
  padding: 5px 10px 5px 8px; border-radius: 999px; font-size: 12px; font-weight: 700;
  background: rgba(0, 0, 0, .55); color: #fff; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.art .badge svg { width: 15px; height: 15px; }

.meta { margin: 20px 2px 0; }
.kicker { font-size: 13px; color: var(--muted); display: flex; gap: 6px; flex-wrap: wrap; }
.kicker .feed { color: var(--accent); font-weight: 650; }
.title {
  margin: 6px 0 0; font-size: 23px; line-height: 1.22; font-weight: 750; letter-spacing: -.015em;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

.progress { margin: 18px 2px 0; }
.bar { height: 5px; border-radius: 5px; background: var(--line); overflow: hidden; }
.bar span { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 5px; transition: width .4s linear; }
.times { display: flex; justify-content: space-between; margin-top: 7px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }

.controls { display: flex; align-items: center; justify-content: space-between; margin: 14px 0 0; padding: 0 2px; }
.ctl { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: var(--text); }
.ctl:active { background: var(--bg-2); }
.ctl.small svg { width: 24px; height: 24px; }
.ctl svg { width: 30px; height: 30px; }
.ctl.big { width: 76px; height: 76px; background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 26px color-mix(in srgb, var(--accent) 40%, transparent); }
.ctl.big svg { width: 34px; height: 34px; }
.ctl.big:active { transform: scale(.96); }
.ctl.liked { color: var(--good); }
.ctl[disabled] { opacity: .35; }

.subctl { display: flex; justify-content: center; gap: 10px; margin-top: 12px; }
.pill {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px;
  border-radius: 999px; background: var(--bg-2); color: var(--muted); font-size: 14px; font-weight: 600; text-decoration: none;
}
.pill svg { width: 17px; height: 17px; }
.pending { margin-top: 14px; text-align: center; color: var(--muted); font-size: 14px; }
.empty { color: var(--muted); text-align: center; padding: 40px 12px; }

/* --- rows (coming up, browse) ------------------------------------------- */

.rows { list-style: none; margin: 0; padding: 0; }
.row {
  display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center;
  padding: 10px 4px; border-bottom: 1px solid var(--line);
}
.row:last-child { border-bottom: 0; }
.row .when { font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.row .when small { display: block; font-size: 12px; font-weight: 500; color: var(--faint); }
.row .thumb { width: 52px; height: 52px; border-radius: 12px; overflow: hidden; background: var(--bg-2); display: grid; place-items: center; color: #fff; }
.row .thumb img { width: 100%; height: 100%; object-fit: cover; }
.row .thumb svg { width: 24px; height: 24px; }
.row .body { min-width: 0; }
.row .t {
  font-size: 15.5px; font-weight: 650; line-height: 1.28;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.row .s { margin-top: 3px; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .s .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.row .s .wait { color: var(--faint); }
.row.news .t { color: var(--news); }
.row .go { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-2); color: var(--text); }
.row .go.done { background: color-mix(in srgb, var(--good) 20%, transparent); color: var(--good); }
.row:active { background: color-mix(in srgb, var(--bg-2) 60%, transparent); }

.dot.article { background: #c9a0ff; }
.dot.audio { background: var(--good); }
.dot.video { background: #ffb347; }
.dot.news { background: var(--news); }

/* --- browse ------------------------------------------------------------- */

.search {
  position: sticky; top: calc(48px + var(--safe-t)); z-index: 4;
  padding: 6px 0 10px; background: var(--bg);
}
.search input {
  width: 100%; height: 46px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--line);
  background: var(--card); color: var(--text); font: inherit; font-size: 16px; outline: none;
}
.search input:focus { border-color: var(--accent); }
.chips { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips.wrap { flex-wrap: wrap; overflow: visible; margin-top: 0; }
.chips button {
  flex: none; height: 36px; padding: 0 15px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--card); color: var(--muted); font-size: 14px; font-weight: 600;
}
.chips button[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: var(--bg); }
.more { display: block; width: 100%; height: 48px; margin-top: 14px; border-radius: 14px; background: var(--bg-2); font-weight: 650; color: var(--muted); }

/* --- settings ----------------------------------------------------------- */

.card { background: var(--card); border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; }
.card .line { display: block; width: 100%; text-align: left; padding: 15px 16px; text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--line); }
.card .line:last-child { border-bottom: 0; }
.card .line:active { background: var(--bg-2); }
.status { color: var(--faint); font-size: 13px; text-align: center; margin-top: 18px; }

/* --- bottom tabs -------------------------------------------------------- */

.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  display: grid; grid-template-columns: repeat(3, 1fr);
  height: calc(var(--tabs-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
}
.tabs button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--faint); font-size: 11.5px; font-weight: 650; }
.tabs button[aria-current="page"] { color: var(--accent); }

/* --- action sheet ------------------------------------------------------- */

.sheet {
  width: 100%; max-width: 560px; margin: auto auto 0; padding: 10px 12px calc(12px + var(--safe-b));
  border: 0; border-radius: 22px 22px 0 0; background: var(--card); color: var(--text);
}
.sheet::backdrop { background: rgba(0, 0, 0, .5); }
.sheet[open] { animation: rise .22s ease-out; }
@keyframes rise { from { transform: translateY(40px); opacity: .4; } }
.sheet .grab { width: 38px; height: 5px; border-radius: 5px; background: var(--line); margin: 0 auto 12px; }
.sheet h3 { margin: 0 6px 4px; font-size: 17px; line-height: 1.3; }
.sheet p { margin: 0 6px 12px; color: var(--muted); font-size: 13.5px; }
.sheet button, .sheet a {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 10px;
  border-radius: 12px; text-decoration: none; font-weight: 620; text-align: left;
}
.sheet button:active, .sheet a:active { background: var(--bg-2); }
.sheet .danger { color: var(--bad); }
.sheet .cancel { justify-content: center; margin-top: 6px; background: var(--bg-2); }

/* --- toast -------------------------------------------------------------- */

#toast {
  position: fixed; left: 50%; bottom: calc(var(--tabs-h) + var(--safe-b) + 14px); z-index: 20;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  padding: 10px 16px; border-radius: 999px; background: var(--text); color: var(--bg);
  font-size: 14px; font-weight: 650; transition: .2s; max-width: calc(100% - 32px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#toast.bad { background: var(--bad); color: #fff; }

@media (min-height: 800px) { .title { font-size: 25px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* --- tune ----------------------------------------------------------------- */

.section .aside { float: right; text-transform: none; letter-spacing: 0; font-weight: 600; color: var(--accent); }
.help { margin: -2px 2px 12px; font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.help b { color: var(--text); }

.day { list-style: none; margin: 0; padding: 0; position: relative; }
.day::before { content: ""; position: absolute; left: 27px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.dp { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 10px; padding: 6px 0; }
.dp .at { position: relative; z-index: 1; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; text-align: center; }
.dp .at::after { content: ""; display: block; width: 12px; height: 12px; margin: 5px auto 0; border-radius: 50%; background: var(--bg); border: 2px solid var(--faint); }
.dp.now .at { color: var(--accent); }
.dp.now .at::after { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent); }
.dp .box { text-align: left; width: 100%; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; }
.dp.now .box { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); }
.dp .box:active { background: var(--bg-2); }
.dp .h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-weight: 700; }
.dp .h small { font-weight: 600; color: var(--muted); font-size: 13px; }
.dp .tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.tag { font-size: 12px; font-weight: 650; padding: 3px 9px; border-radius: 999px; background: var(--bg-2); color: var(--muted); }
.tag.e { background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); }

.dayfoot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
.news { display: flex; align-items: center; gap: 12px; font-weight: 650; }
.stepper { display: inline-flex; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 999px; }
.stepper button { width: 38px; height: 36px; font-size: 20px; font-weight: 600; color: var(--text); }
.stepper b { min-width: 58px; text-align: center; font-variant-numeric: tabular-nums; font-size: 14px; }

.find {
  width: 100%; height: 44px; margin-top: 10px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--card); color: var(--text); font: inherit; font-size: 16px; outline: none;
}
.find:focus { border-color: var(--accent); }
.boosts { list-style: none; margin: 8px 0 0; padding: 0; }
.boost { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; padding: 10px 2px; border-bottom: 1px solid var(--line); }
.boost:last-child { border-bottom: 0; }
.boost .n { font-weight: 650; font-size: 15px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.boost .n small { font-weight: 600; font-size: 11.5px; color: var(--faint); margin-left: 6px; }
.boost .meter { grid-column: 1; display: flex; align-items: center; gap: 8px; }
.gauge { position: relative; flex: 1; height: 6px; border-radius: 6px; background: var(--bg-2); }
.gauge::after { content: ""; position: absolute; left: 50%; top: -3px; bottom: -3px; width: 2px; background: var(--line); }
.gauge span { position: absolute; top: 0; bottom: 0; border-radius: 6px; }
.gauge .up { left: 50%; background: var(--good); }
.gauge .down { right: 50%; background: var(--bad); }
.boost .x { font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; min-width: 44px; text-align: right; color: var(--muted); }
.boost .x.up { color: var(--good); }
.boost .x.down { color: var(--bad); }
.boost .stepper { grid-row: 1 / span 2; grid-column: 2; }
.boost .stepper b { min-width: 34px; font-size: 12px; color: var(--muted); }
.boost.add .n { color: var(--accent); }

/* sheet forms */
.sheet .field { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 6px; }
.sheet .field label { font-weight: 650; }
.sheet input[type="time"] {
  height: 40px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--bg-2); color: var(--text); font: inherit; font-size: 16px;
}
.sheet .opts { display: flex; flex-wrap: wrap; gap: 7px; padding: 4px 6px 10px; }
.sheet .opts button {
  width: auto; padding: 0 14px; height: 36px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--bg-2); color: var(--muted); font-size: 14px; font-weight: 600; justify-content: center;
}
.sheet .opts button[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: var(--bg); }
.sheet .sub { margin: 8px 6px 2px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.sheet .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.sheet .row2 button { justify-content: center; background: var(--bg-2); }
.sheet .primary { justify-content: center; margin-top: 10px; background: var(--accent); color: var(--accent-ink); }
.sheet .tunerow { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; padding: 8px 6px; }
.sheet .tunerow .n { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sheet .tunerow .n small { display: block; font-size: 12px; font-weight: 600; color: var(--muted); }
.sheet .stepper button { width: 42px; padding: 0; justify-content: center; border-radius: 0; }
.meta { cursor: pointer; }
.meta .tunehint { font-size: 12.5px; color: var(--faint); margin-top: 6px; }

/* --- tune: weights divider + fast-scroll rail ----------------------------- */

.boosts .neutral { display: flex; align-items: center; gap: 10px; padding: 8px 2px; color: var(--faint); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.boosts .neutral::before, .boosts .neutral::after { content: ""; flex: 1; height: 1px; background: var(--line); }

body.railed main { padding-right: 36px; }
.rail {
  position: fixed; right: 0; z-index: 6; width: 34px;
  top: calc(64px + var(--safe-t)); bottom: calc(var(--tabs-h) + var(--safe-b) + 14px);
  touch-action: none; user-select: none; -webkit-user-select: none;
}
.rail .track, .rail .band { position: absolute; right: 13px; width: 4px; border-radius: 4px; }
.rail .track { top: 0; bottom: 0; background: var(--line); }
.rail .band.up { background: var(--good); }
.rail .band.down { background: var(--bad); }
.rail .tick { position: absolute; right: 9px; width: 12px; height: 2px; margin-top: -1px; border-radius: 2px; background: var(--muted); }
.rail .lab {
  position: absolute; right: 30px; transform: translateY(-50%); padding: 2px 8px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line); color: var(--muted);
  font-size: 11px; font-weight: 700; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .15s;
}
.rail .thumb {
  position: absolute; right: 6px; width: 18px; height: 18px; margin-top: -9px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 2px 10px rgba(0, 0, 0, .35); border: 2px solid var(--bg);
}
.rail .bubble {
  position: absolute; right: 36px; transform: translateY(-50%); display: none; max-width: 70vw;
  padding: 7px 12px; border-radius: 999px; background: var(--text); color: var(--bg);
  font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none;
}
.rail.active .lab { opacity: 1; }
.rail.active .bubble { display: block; }
.rail.active .thumb { transform: scale(1.25); }

/* === RadioFreeUK additions (the rest is MyStation's web/app.css, kept in step) === */


.row.provisional .t { color: var(--muted); }
.row .tagl { font-size: 11.5px; font-weight: 700; margin-left: 6px; }
.row .tagl.up { color: var(--good); }
.row .tagl.down { color: var(--bad); }
.row.cut { opacity: .45; }

.scards { display: grid; gap: 12px; }
.scard { text-align: left; width: 100%; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: grid; gap: 10px; }
.scard.on { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); }
.scard:active { background: var(--bg-2); }
.scard .top2 { display: flex; align-items: center; gap: 12px; }
.scard .logo { width: 44px; height: 44px; border-radius: 12px; flex: none; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 18px; overflow: hidden; }
.scard .logo img { width: 100%; height: 100%; object-fit: cover; }
.scard .nm { font-weight: 750; font-size: 17px; }
.scard .ds { color: var(--muted); font-size: 13px; line-height: 1.35; }
.scard .onnow { font-size: 14px; line-height: 1.35; }
.scard .onnow b { color: var(--accent); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; margin-right: 6px; }
.scard .later { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scard .info { justify-self: start; }

.dp .box.ro { cursor: default; }
.suggest { width: 100%; height: 48px; margin-top: 12px; border-radius: 14px; background: var(--bg-2); color: var(--faint); font-weight: 650; }
.toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 2px; font-weight: 650; }
.toggle small { display: block; font-weight: 500; font-size: 13px; color: var(--muted); }
.switch { flex: none; width: 50px; height: 30px; border-radius: 999px; background: var(--line); position: relative; transition: background .15s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .15s; }
.switch[aria-checked="true"] { background: var(--good); }
.switch[aria-checked="true"]::after { transform: translateX(20px); }
.art .badge .bi { width: 18px; height: 18px; border-radius: 5px; }

/* --- 0.19.1: compact now-playing, labelled controls, station tabs ------------ */

.stations-bar { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; overflow: visible; margin: 2px 0 16px; padding: 0; }
.stab {
  display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 6px 2px 4px; border-radius: 14px;
  color: var(--muted); font-size: 11.5px; font-weight: 650; line-height: 1.15; text-align: center;
}
.stab .sicon { width: 44px; height: 44px; border-radius: 12px; opacity: .55; transition: opacity .15s, transform .15s; }
.stab[aria-pressed="true"] { color: var(--text); }
.stab[aria-pressed="true"] .sicon { opacity: 1; box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--accent); }
.stab.rv { justify-content: center; }
.stab.rv .switch { width: 44px; height: 26px; margin: 9px 0; }
.stab.rv .switch::after { width: 20px; height: 20px; }
.stab.rv .switch[aria-checked="true"]::after { transform: translateX(18px); }

.np .head { display: grid; grid-template-columns: 88px 1fr; gap: 14px; align-items: center; }
.np .thumb { position: relative; width: 88px; height: 88px; border-radius: 18px; overflow: hidden; display: grid; place-items: center; color: #fff; box-shadow: var(--shadow); }
.np .thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.np .thumb svg { width: 36px; height: 36px; }
.np .mutedbadge { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0, 0, 0, .55); color: #fff; }
.np .hmeta { min-width: 0; }
.np .title { margin-top: 4px; font-size: 20px; -webkit-line-clamp: 4; }
.np.muted .title { color: var(--muted); }

.original {
  display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; height: 46px;
  border-radius: 14px; background: var(--card); border: 1px solid var(--line); color: var(--text);
  text-decoration: none; font-weight: 700; font-size: 15px;
}
.original svg { width: 18px; height: 18px; color: var(--accent); }
.original:active { background: var(--bg-2); }

.progress .state { margin-top: 6px; font-size: 13px; font-weight: 600; color: var(--muted); min-height: 1.3em; }
.np.muted .progress .state { color: var(--accent); }

.controls.labeled { align-items: flex-start; margin-top: 12px; }
.controls.labeled .ctl { position: relative; width: 64px; height: auto; border-radius: 16px; flex-direction: column; gap: 5px; padding: 6px 0; display: flex; align-items: center; }
.controls.labeled .ctl.small svg { width: 26px; height: 26px; }
.controls.labeled .ctl .lbl { font-size: 11px; font-weight: 650; color: var(--muted); line-height: 1.15; text-align: center; }
.controls.labeled .ctl.big { width: 76px; height: auto; background: none; box-shadow: none; color: var(--text); padding: 0; }
.controls.labeled .ctl.big svg { width: 70px; height: 70px; padding: 18px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 26px color-mix(in srgb, var(--accent) 40%, transparent); }
.controls.labeled .ctl.big .lbl { color: var(--text); }
.controls.labeled .ctl.liked { color: var(--good); }
.controls.labeled .ctl.disliked { color: var(--bad); }
.controls.labeled .ctl.on { color: var(--accent); }
.controls.labeled .count {
  position: absolute; top: 0; right: 10px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  font: 700 11px/18px system-ui, sans-serif; font-style: normal; color: #fff; background: var(--muted);
}
.controls.labeled .ctl.liked .count { background: var(--good); }
.controls.labeled .ctl.disliked .count { background: var(--bad); }
.np .subctl { margin-top: 8px; }

/* --- 0.21.0: sections as cards, footer ---------------------------------------- */

.panel {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 14px 10px; margin-top: 14px;
}
.panel > .section:first-child { margin-top: 0; }
.panel .rows .row:last-child { border-bottom: 0; }
.panel .np .thumb { box-shadow: none; }
.panel .original { background: var(--bg-2); border-color: transparent; }
.panel .find { background: var(--bg-2); border-color: transparent; }
.panel .dp .box { background: var(--bg-2); border-color: transparent; }
.panel .dp.now .box { border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.panel .chips button { background: var(--bg-2); border-color: transparent; }
.panel .chips button[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.scards { margin-top: 14px; }
.foot { text-align: center; color: var(--faint); font-size: 13px; margin: 28px 0 8px; }
.foot a { color: var(--muted); text-decoration: none; font-weight: 600; }

/* --- 0.22.0: two-ended rating badges (−3…+3), shared with MyStation ---------- */

:root {
  --r3: #8e1b1b; --r2: #c63b3b; --r1: #f4c1be;
  --g1: #c4ebcf; --g2: #3aa35c; --g3: #16713a;
}
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.bdg {
  display: inline-flex; align-items: stretch; height: 32px; max-width: 100%; border-radius: 999px; overflow: hidden;
  background: var(--bg-2); color: var(--text); font-size: 13px; font-weight: 650; cursor: pointer;
}
.bdg .l, .bdg .r { width: 24px; display: grid; place-items: center; font-size: 16px; font-weight: 700; opacity: .5; }
.bdg .t { display: flex; align-items: center; padding: 0 2px; min-width: 0; max-width: 170px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bdg.feed .t { font-weight: 800; }
.bdg[data-level="-3"] { background: var(--r3); color: #fff; }
.bdg[data-level="-2"] { background: var(--r2); color: #fff; }
.bdg[data-level="-1"] { background: var(--r1); color: #5a1010; }
.bdg[data-level="1"]  { background: var(--g1); color: #0e4a22; }
.bdg[data-level="2"]  { background: var(--g2); color: #fff; }
.bdg[data-level="3"]  { background: var(--g3); color: #fff; }
.bdg:active .l, .bdg:active .r { opacity: 1; }

/* --- 0.23.0: radio profile card ---------------------------------------------- */
.profile-sum { font-weight: 650; margin: 4px 2px 10px; }
.profile-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.profile-actions .original { margin-top: 0; width: 100%; }

/* --- drag-to-seek progress bar ------------------------------------------------- */
.progress .bar { position: relative; overflow: visible; touch-action: none; }
.progress.seekable .bar { cursor: pointer; }
.progress.seekable .bar::before { content: ""; position: absolute; inset: -14px 0; }
.progress.seekable .bar span { position: relative; }
.progress.seekable .bar span::after {
  content: ""; position: absolute; right: -7px; top: 50%; width: 14px; height: 14px; margin-top: -7px;
  border-radius: 50%; background: var(--accent); box-shadow: 0 1px 4px rgba(0, 0, 0, .3);
}
.progress.dragging .bar span { transition: none; }
.progress.dragging .bar span::after { transform: scale(1.3); }
