/* Kachan Radio: cabbage greens on near-black (dark) or on fresh off-white (light) */
:root, [data-theme="dark"] {
  --bg: #0a100c;
  --side: #0e1611;
  --card: #131d16;
  --card-2: #1a271e;
  --line: rgba(233, 241, 224, 0.08);
  --text: #e9f1e0;
  --muted: #8ea389;
  --accent: #96cc5e;
  --accent-ink: #0a100c;
  --accent-soft: rgba(150, 204, 94, 0.13);
  --danger: #f0705f;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  --lv1: #f0c35a; --lv2: #5cbde3; --lv3: #b294f5; --lv4: #8fa88a; --lv5: #f0705f;
  color-scheme: dark;
}
[data-theme="light"] {
  --bg: #f3f6ef;
  --side: #ffffff;
  --card: #ffffff;
  --card-2: #edf2e7;
  --line: rgba(29, 50, 35, 0.1);
  --text: #1b2e20;
  --muted: #5c705d;
  --accent: #4f8a22;
  --accent-ink: #ffffff;
  --accent-soft: rgba(79, 138, 34, 0.11);
  --danger: #c63f33;
  --shadow: 0 18px 40px rgba(29, 50, 35, 0.1);
  --lv1: #c48a10; --lv2: #1f8ab3; --lv3: #7a55d6; --lv4: #66806a; --lv5: #c63f33;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 Manrope, system-ui, -apple-system, "Segoe UI", sans-serif;
  display: grid;
  grid-template: "side main" 1fr "bar bar" auto / 252px 1fr;
  height: 100dvh;
  overflow: hidden;
}
a { color: inherit; }
img { display: block; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }
[data-theme="dark"] .only-light, [data-theme="light"] .only-dark { display: none; }
h1, h2, h3 { font-family: Unbounded, Manrope, sans-serif; letter-spacing: -0.01em; }

.ic { display: inline-flex; flex: none; }
.ic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- sidebar ---------- */
.side {
  grid-area: side;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 22px 14px;
  background: var(--side);
  border-right: 1px solid var(--line);
  overflow-y: auto;
}
.brand { display: flex; justify-content: center; padding: 0 0 22px; }
.logo { width: 100%; max-width: 190px; height: auto; }
.nav a, .tabs a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 14px;
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.nav a:hover { background: var(--card-2); color: var(--text); }
.nav a.on, .tabs a.on { color: var(--accent); }
.nav a.on { background: var(--accent-soft); }
.side-foot { margin-top: auto; padding: 16px 10px 0; color: var(--muted); font-size: 13px; }
.stat-line { display: flex; align-items: center; gap: 8px; }

/* theme switch: the new theme grows in a circle from the button (app.js), the icon turns over */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
.btn.spin .ic { animation: spin 0.7s cubic-bezier(0.7, 0, 0.3, 1); }
@keyframes spin { from { transform: rotate(-140deg) scale(0.3); opacity: 0; } }

/* ---------- main ---------- */
main { grid-area: main; overflow-y: auto; padding: 26px clamp(16px, 3vw, 40px) 48px; outline: none; }
.head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.head h1 { margin: 0; font-size: clamp(20px, 2.4vw, 28px); font-weight: 700; flex: 1; min-width: 0; }
.head-icon { display: none; width: 36px; height: 36px; }
.head-right { display: flex; align-items: center; gap: 10px; }
.me { display: flex; align-items: center; gap: 10px; padding: 4px 6px 4px 4px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); }
.me b { font-weight: 700; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- buttons, inputs, badges ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card-2);
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s, transform 0.1s;
}
.btn:hover { border-color: var(--accent); }
.btn:active { transform: scale(0.97); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.btn.primary:hover { filter: brightness(1.07); }
.btn.danger { color: var(--danger); }
.btn.danger:hover { border-color: var(--danger); }
.btn.sm { padding: 6px 12px; font-size: 13px; }
.btn.icon { width: 36px; height: 36px; padding: 0; justify-content: center; }
.btn.icon.sm { width: 30px; height: 30px; }
.btn.icon.sm .ic svg { width: 16px; height: 16px; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; border-color: var(--line); }
.input {
  min-width: 0;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card-2);
}
.input:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--c, var(--accent));
  background: color-mix(in srgb, var(--c, var(--accent)) 16%, transparent);
  white-space: nowrap;
}
.badge .ic svg { width: 13px; height: 13px; }
.lv1 { --c: var(--lv1); } .lv2 { --c: var(--lv2); } .lv3 { --c: var(--lv3); } .lv4 { --c: var(--lv4); } .lv5 { --c: var(--lv5); }
.avatar { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; background: var(--card-2); box-shadow: 0 0 0 2px var(--c, var(--line)); }
.avatar.lg { width: 32px; height: 32px; }
.t-title { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t-sub { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.muted { color: var(--muted); }
.empty { color: var(--muted); padding: 18px 4px; margin: 0; }
.hint { display: flex; align-items: center; gap: 10px; margin: 16px 0 0; padding: 12px 16px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); color: var(--muted); }
.hint .ic { color: var(--accent); }
.spacer { flex: 1; }

/* ---------- now playing ---------- */
.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(150px, 230px) 1fr;
  gap: clamp(18px, 3vw, 34px);
  align-items: center;
  padding: clamp(18px, 3vw, 30px);
  border-radius: 28px;
  background: var(--card);
  border: 1px solid var(--line);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: -60px;
  z-index: -1;
  background: radial-gradient(circle at 20% 30%, var(--accent-soft), transparent 60%) center / cover;
  filter: blur(46px) saturate(1.5);
  opacity: 0.5;
}
.hero-bg[style] { opacity: 0.38; }
.cover { width: 100%; aspect-ratio: 1; border-radius: 22px; object-fit: cover; background: var(--card-2); box-shadow: var(--shadow); }
.cover.placeholder { object-fit: contain; padding: 14%; }
.eyebrow { display: flex; align-items: center; gap: 10px; color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.hero h2 { margin: 10px 0 6px; font-size: clamp(22px, 3.2vw, 38px); line-height: 1.12; font-weight: 700; overflow-wrap: anywhere; }
.hero .sub { margin: 0; color: var(--muted); font-size: 15px; }
.hero-time { margin-top: 14px; font-size: 14px; font-weight: 700; letter-spacing: 0.04em; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.progress { position: relative; flex: 1; height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; }
.progress i { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: inherit; background: var(--accent); }
.time { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; min-width: 34px; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--danger); box-shadow: 0 0 0 0 var(--danger); animation: pulse 1.6s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 13px; }
.eq i { width: 3px; height: 100%; border-radius: 2px; background: currentColor; animation: eq 0.9s infinite ease-in-out; }
.eq i:nth-child(2) { animation-delay: -0.3s; } .eq i:nth-child(3) { animation-delay: -0.6s; }
@keyframes eq { 0%, 100% { transform: scaleY(0.3); } 50% { transform: scaleY(1); } }
.eq i { transform-origin: bottom; }
.paused .eq i { animation-play-state: paused; }

/* ---------- vote ---------- */
.vote {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: 18px;
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
}
.vote-text { flex: 1; min-width: 0; }
.vote .meter { width: 120px; }

/* ---------- cards, lists ---------- */
.grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px; margin-top: 20px; align-items: start; }
.card { padding: 18px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); }
.card h3 { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 10px; font-size: 15px; font-weight: 600; }
.list { list-style: none; margin: 0; padding: 0; }
.row {
  display: grid;
  grid-template-columns: auto 44px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 7px 8px;
  border-radius: 14px;
  transition: background 0.15s;
}
.row:hover { background: var(--card-2); }
.row .n { width: 20px; color: var(--muted); font-size: 13px; text-align: right; font-variant-numeric: tabular-nums; }
.row.mine { background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent); }
.thumb.sm { width: 38px; height: 38px; border-radius: 9px; }

/* ---------- "add to air" and dropdown menus ---------- */
.quick { position: relative; margin-top: 16px; }
.quick-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 6px 6px 16px;
  border-radius: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.quick-row:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.quick-row > .ic { color: var(--accent); }
.quick-row .input { flex: 1; padding: 10px 4px; border: 0; background: none; font-size: 16px; }
.quick-row .input:focus { outline: none; }
.quick-row .input:disabled { cursor: not-allowed; }
.menu {
  position: absolute;
  z-index: 5;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  max-height: 420px;
  overflow-y: auto;
  padding: 6px;
  border-radius: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  animation: rise 0.15s ease-out;
}
.menu-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: 12px; background: none; text-align: left; cursor: pointer; }
.menu-item:hover, .menu-item:focus-visible { background: var(--card-2); }
.menu-item .np-text { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.menu-item > .t-title { flex: 1; }
.menu-title { display: flex; align-items: center; gap: 8px; padding: 8px 10px 4px; color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.menu-title .ic svg { width: 15px; height: 15px; }
.menu-empty { display: flex; align-items: center; gap: 8px; padding: 14px 10px; color: var(--muted); }
.menu-empty .eq { color: var(--accent); }
.menu-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 6px 10px 10px; }
.dropdown { position: relative; margin-top: 12px; }
.right .dropdown, .actions .dropdown { margin-top: 0; }
.right .dropdown summary { width: auto; }
.dropdown summary { width: 100%; justify-content: space-between; list-style: none; }
.dropdown summary::-webkit-details-marker { display: none; }
.dropdown summary .ic-chevron { margin-left: auto; transition: transform 0.2s; }
.dropdown[open] summary .ic-chevron { transform: rotate(180deg); }
/* menus float over the whole page (placed by app.js), so no card edge cuts them; on phones they are a bottom sheet */
.dropdown .menu { position: fixed; z-index: 50; right: auto; visibility: hidden; }
.dropdown .menu.placed { visibility: visible; }
.hero:has(.dropdown[open]) { z-index: 50; } /* the hero is its own layer: lift it above the cards that follow */
.faces { display: inline-flex; align-items: center; }
.faces .avatar { width: 22px; height: 22px; margin-left: -6px; box-shadow: 0 0 0 2px var(--card); }
.faces .avatar:first-child { margin-left: 0; }
.faces .more { margin-left: 4px; color: var(--muted); font-size: 12px; font-weight: 700; }

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq-item { border-radius: 18px; background: var(--card); border: 1px solid var(--line); overflow: hidden; transition: border-color 0.15s; }
.faq-item[open] { border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; font-weight: 700; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .ic { color: var(--muted); transition: transform 0.2s, color 0.2s; }
.faq-item[open] summary .ic { transform: rotate(180deg); color: var(--accent); }
.faq-item p { margin: 0; padding: 0 20px 18px; color: var(--muted); line-height: 1.65; }
.thanks { margin-top: 20px; }
.thank { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; }
.thank > .ic { color: #ff6b8b; }
.thank a { color: var(--accent); font-weight: 800; text-decoration: none; }
.thank a:hover { text-decoration: underline; }

/* ---------- stats ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 4px; }
.tile { padding: 16px 18px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); }
.tile > .ic { color: var(--accent); }
.tile-value { margin: 8px 0 2px; font: 700 22px/1.2 Unbounded, Manrope, sans-serif; }
.table { display: flex; flex-direction: column; }
.tr {
  display: grid;
  grid-template-columns: 24px minmax(0, 1.7fr) repeat(3, minmax(0, 0.8fr)) minmax(0, 0.5fr);
  align-items: center;
  gap: 10px;
  padding: 9px 6px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.tr:last-child { border-bottom: 0; }
.tr.th { color: var(--muted); font-size: 12px; font-weight: 700; }
.tr.mine { border-radius: 10px; background: var(--accent-soft); }
.tr .n { color: var(--muted); text-align: right; }
.who { display: flex; align-items: center; gap: 8px; min-width: 0; }
.guest { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--card-2); color: var(--muted); }
.guest .ic svg { width: 15px; height: 15px; }
.dot.inline { display: inline-block; margin-left: 6px; vertical-align: middle; }
.row .right { display: flex; align-items: center; gap: 6px; }
.thumb { width: 44px; height: 44px; border-radius: 11px; object-fit: cover; background: var(--card-2); }
.thumb.placeholder { object-fit: contain; padding: 6px; }

/* ---------- voice channels ---------- */
.ch { padding: 12px 14px; border-radius: 16px; border: 1px solid var(--line); margin-bottom: 10px; transition: border-color 0.15s; }
.ch.has-bot { border-color: color-mix(in srgb, var(--accent) 60%, transparent); background: var(--accent-soft); }
.ch-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-height: 30px; }
.ch-head .btn { margin-left: auto; }
.ch-name { display: flex; align-items: center; gap: 8px; font-weight: 700; min-width: 0; overflow-wrap: anywhere; }
.ch-name .ic { color: var(--muted); }
.people { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.person { display: inline-flex; align-items: center; gap: 7px; padding: 3px 10px 3px 3px; border-radius: 999px; background: var(--card-2); font-size: 13px; font-weight: 600; max-width: 100%; }
.person .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }
.ch .t-sub { margin-top: 8px; }

/* ---------- search, playlists ---------- */
.searchbar { display: flex; gap: 10px; }
.searchbar .input { flex: 1; padding: 15px 20px; font-size: 16px; border-radius: 18px; }
.searchbar .btn { border-radius: 18px; padding: 0 22px; }
.results { margin-top: 18px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.pl { display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); text-decoration: none; transition: transform 0.15s, border-color 0.15s; }
.pl:hover { transform: translateY(-2px); border-color: var(--accent); }
.pl-art {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  margin-bottom: 8px;
  border-radius: 16px;
  color: var(--accent-ink);
  background: linear-gradient(140deg, var(--accent), color-mix(in srgb, var(--accent) 35%, #0d2a14));
}
.pl-art .ic svg { width: 44px; height: 44px; }
.inline-form { display: flex; gap: 10px; margin-bottom: 20px; }
.inline-form .input { flex: 1; max-width: 420px; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 16px; }

/* ---------- admin ---------- */
.seg { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 18px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); }
.seg button { padding: 8px 16px; border: 0; border-radius: 999px; background: none; color: var(--muted); font-weight: 700; cursor: pointer; }
.seg button.on { background: var(--accent); color: var(--accent-ink); }
.user { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.user:last-child { border-bottom: 0; }
.user .controls { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 8px; }
.user details { width: 100%; grid-column: 1 / -1; }
.user summary { list-style: none; }
.ban-form { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 10px; }
.ban-form .input { flex: 1; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 4px 4px 12px; border-radius: 999px; background: var(--card-2); font-weight: 600; }
.log-row { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding: 8px 4px; border-bottom: 1px solid var(--line); font-size: 14px; }
.log-row time { color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------- player bar ---------- */
.bar {
  grid-area: bar;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); /* the middle stays dead centre */
  align-items: center;
  gap: 18px;
  padding: 10px clamp(12px, 2vw, 22px);
  background: var(--side);
  border-top: 1px solid var(--line);
}
.np { display: flex; align-items: center; gap: 12px; min-width: 0; }
.np .thumb { width: 50px; height: 50px; }
.np-text { min-width: 0; }
.center { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.listen {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  cursor: pointer;
  transition: transform 0.1s, filter 0.15s;
}
.listen:hover { filter: brightness(1.08); }
.listen:active { transform: scale(0.94); }
.center .time { font-size: 13px; font-weight: 700; letter-spacing: 0.04em; }
.right { display: flex; align-items: center; justify-content: flex-end; gap: 10px; color: var(--muted); min-width: 0; }
.right input { width: 110px; accent-color: var(--accent); }

/* ---------- toasts ---------- */
#toasts { position: fixed; right: 20px; bottom: 92px; z-index: 10; display: flex; flex-direction: column; gap: 8px; max-width: min(380px, calc(100vw - 40px)); }
.toast { padding: 12px 16px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); font-weight: 600; animation: rise 0.2s ease-out; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }

/* ---------- phones ---------- */
.tabs { display: none; }
@media (max-width: 860px) {
  body { grid-template: "main" 1fr "bar" auto "tabs" auto / 100%; }
  .side { display: none; }
  .head-icon { display: block; }
  .me b, .me .badge { display: none; }
  .grid { grid-template-columns: 100%; }
  .hero { grid-template-columns: 100%; justify-items: start; }
  .hero .cover { width: min(260px, 70vw); }
  .bar { grid-template-columns: minmax(0, 1fr) auto; gap: 12px; }
  .right { display: none; }
  .tr { grid-template-columns: 24px minmax(0, 1fr) auto auto; }
  .tr > :nth-child(3), .tr > :nth-child(4) { display: none; }
  .tabs {
    grid-area: tabs;
    display: flex;
    justify-content: space-around;
    padding: 4px 0 calc(4px + env(safe-area-inset-bottom));
    background: var(--side);
    border-top: 1px solid var(--line);
  }
  .tabs a { flex-direction: column; gap: 2px; padding: 6px 4px; font-size: 11px; }
  #toasts { bottom: 150px; right: 12px; }
  .row { grid-template-columns: 44px minmax(0, 1fr) auto; }
  .row .n, .row .time { display: none; }
  .dropdown .menu { inset: auto 8px calc(8px + env(safe-area-inset-bottom)); max-height: 70vh; border-radius: 22px; }
  .dropdown[open] > summary::before { content: ''; position: fixed; inset: 0; z-index: 49; background: rgb(0 0 0 / 0.45); cursor: default; }
  .dropdown[open] > summary:active { transform: none; } /* a transform would pull the backdrop into the button */
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.stack { display: flex; flex-direction: column; gap: 20px; margin-top: 20px; }
.ext-link { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; font-weight: 600; text-decoration: none; }
.ext-link:hover { color: var(--accent); }
.ext-link .ic svg { width: 15px; height: 15px; }
.side-foot .ext-link { margin-top: 10px; }
.hero .ext-link { margin-top: 10px; }

/* playlist pictures: own cover, a collage of track covers, or the icon */
.pl-art { overflow: hidden; }
.pl-art img { width: 100%; height: 100%; object-fit: cover; }
.pl-art.collage { display: grid; grid-template-columns: 1fr 1fr; place-items: stretch; }
.pl-hero { display: flex; align-items: flex-end; gap: 22px; margin-bottom: 20px; }
.pl-hero .pl-art { flex: none; width: clamp(120px, 22vw, 180px); margin: 0; border-radius: 20px; box-shadow: var(--shadow); }
.pl-meta { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pl-meta .actions { margin-top: 8px; }
.saving { display: inline-flex; vertical-align: -3px; margin-right: 6px; color: var(--lv2); animation: breathe 1.6s ease-in-out infinite; }
.saving .ic svg { width: 15px; height: 15px; }
@keyframes breathe { 50% { opacity: 0.35; } }
@media (max-width: 860px) { .pl-hero { flex-direction: column; align-items: flex-start; } }
/* while the theme switches nothing fades: the snapshot for the wave must already show the final colours */
.theme-switching *, .theme-switching *::before, .theme-switching *::after { transition: none !important; }
