/* BizoraAI - dark studio interface */

:root {
  --bg: #08080d;
  --bg-elev: #101018;
  --bg-elev-2: #16161f;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #f4f4f7;
  --text-dim: #a0a0b2;
  --text-faint: #6e6e83;
  --accent: #a855f7;
  --accent-2: #ec4899;
  --accent-3: #38bdf8;
  --ok: #34d399;
  --warn: #fbbf24;
  --err: #f87171;
  --radius: 16px;
  --radius-sm: 10px;
  --sidebar: 244px;
  --player: 92px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body { overflow-x: hidden; }

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3 { margin: 0; letter-spacing: -0.022em; font-weight: 650; line-height: 1.2; }
h1 { font-size: 2rem; }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.02rem; }
p { margin: 0; }

.muted { color: var(--text-dim); }
.faint { color: var(--text-faint); font-size: 0.85rem; }
.hidden { display: none !important; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 8px; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- app frame ---------- */

.app {
  display: grid;
  grid-template-columns: var(--sidebar) 1fr;
  min-height: 100vh;
  padding-bottom: var(--player);
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar);
  padding: 22px 14px;
  background: linear-gradient(180deg, #0c0c14 0%, #08080d 100%);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 40;
}

/* Brand.
   The icon mark is vivid and sits directly on the dark interface (3.9:1).
   The full lockup contains deep indigo lettering that measures 1.4:1 on the
   app background and 13.3:1 on a light plate, so wherever the whole lockup
   appears it is given that plate. The artwork itself is never altered. */

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 10px 22px;
  font-weight: 700;
  font-size: 1.16rem;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  flex: none;
  filter: drop-shadow(0 4px 14px rgba(168, 85, 247, 0.42));
}
.brand-mark img { width: 100%; height: 100%; object-fit: contain; display: block; }

.brand-name {
  font-weight: 700;
  background: linear-gradient(100deg, #c084fc, #f472b6 55%, #60a5fa);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* Full lockup on its own light plate - legible, and reads as deliberate. */
.brand-plate {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 22px;
  background: linear-gradient(180deg, #ffffff, #f2f2f7);
  border-radius: 16px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.42), inset 0 0 0 1px rgba(255, 255, 255, 0.9);
}
.brand-plate img { display: block; height: 42px; width: auto; max-width: 100%; }
.brand-plate.sm { padding: 9px 14px; border-radius: 12px; }
.brand-plate.sm img { height: 26px; }
.brand-plate.lg { padding: 18px 30px; border-radius: 20px; }
.brand-plate.lg img { height: 58px; }

.brand-footer {
  margin-top: 54px; padding-top: 26px; border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; color: var(--text-faint); font-size: 0.85rem;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-dim);
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  transition: background 0.16s var(--ease), color 0.16s var(--ease);
}
.nav-item svg { width: 18px; height: 18px; flex: none; opacity: 0.9; }
.nav-item:hover { background: rgba(255,255,255,0.05); color: var(--text); }
.nav-item.active { background: rgba(168,85,247,0.14); color: #fff; }
.nav-item.active svg { color: var(--accent); }

.nav-section {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--text-faint);
  padding: 18px 12px 6px;
  font-weight: 600;
}

.sidebar-foot { margin-top: auto; padding: 10px 12px 0; border-top: 1px solid var(--line); }
.user-chip { display: flex; align-items: center; gap: 10px; padding: 10px 0; }
.avatar {
  width: 32px; height: 32px; border-radius: 50%; flex: none;
  background: linear-gradient(135deg, var(--accent-3), var(--accent));
  display: grid; place-items: center; font-weight: 700; font-size: 0.8rem; color: #06060a;
}

.main { grid-column: 2; padding: 30px 38px 40px; max-width: 1360px; }
.page-head { margin-bottom: 26px; }
.page-head p { color: var(--text-dim); margin-top: 6px; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255,255,255,0.05);
  cursor: pointer;
  font-weight: 560;
  transition: transform 0.14s var(--ease), background 0.16s var(--ease), opacity 0.16s;
  white-space: nowrap;
}
.btn:hover { background: rgba(255,255,255,0.1); }
.btn:active { transform: scale(0.975); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn svg { width: 16px; height: 16px; }

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border: none; color: #fff;
  box-shadow: 0 10px 30px rgba(168,85,247,0.34);
}
.btn-primary:hover { filter: brightness(1.08); background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.btn-lg { padding: 15px 30px; font-size: 1.02rem; font-weight: 620; }
.btn-ghost { background: none; border-color: transparent; color: var(--text-dim); }
.btn-ghost:hover { color: var(--text); background: rgba(255,255,255,0.06); }
.btn-icon { padding: 8px; border-radius: 50%; width: 36px; height: 36px; }

/* ---------- forms ---------- */

.field { margin-bottom: 20px; }
.label {
  display: block; margin-bottom: 8px;
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.01em;
}
.hint { color: var(--text-faint); font-size: 0.78rem; margin-top: 6px; }

.input, .textarea, select.input {
  width: 100%;
  padding: 13px 15px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 0.16s var(--ease), box-shadow 0.16s var(--ease);
}
.input:focus, .textarea:focus, select.input:focus {
  border-color: rgba(168,85,247,0.6);
  box-shadow: 0 0 0 3px rgba(168,85,247,0.16);
}
.textarea { resize: vertical; min-height: 108px; line-height: 1.6; }
.textarea-lg { min-height: 260px; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.9rem; }
.input::placeholder, .textarea::placeholder { color: var(--text-faint); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 8px 15px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--bg-elev);
  cursor: pointer; font-size: 0.87rem; color: var(--text-dim);
  transition: all 0.15s var(--ease);
}
.chip:hover { border-color: var(--line-strong); color: var(--text); }
.chip.selected {
  background: rgba(168,85,247,0.16); border-color: rgba(168,85,247,0.55); color: #fff;
}

.toggle-group {
  display: inline-flex; padding: 4px; gap: 4px;
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: 999px;
}
.toggle-group button {
  padding: 8px 20px; border-radius: 999px; border: none; background: none;
  color: var(--text-dim); cursor: pointer; font-weight: 560; transition: all 0.16s var(--ease);
}
.toggle-group button.active { background: rgba(255,255,255,0.1); color: #fff; }

.slider { width: 100%; -webkit-appearance: none; appearance: none; height: 4px;
  background: rgba(255,255,255,0.14); border-radius: 3px; outline: none; }
.slider::-webkit-slider-thumb {
  -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.slider::-moz-range-thumb {
  width: 16px; height: 16px; border: none; border-radius: 50%;
  background: var(--accent); cursor: pointer;
}

details.advanced {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg-elev); overflow: hidden; margin-bottom: 22px;
}
details.advanced summary {
  padding: 15px 18px; cursor: pointer; font-weight: 580; list-style: none;
  display: flex; align-items: center; justify-content: space-between;
}
details.advanced summary::-webkit-details-marker { display: none; }
details.advanced summary::after { content: "+"; color: var(--text-dim); font-size: 1.2rem; }
details.advanced[open] summary::after { content: "−"; }
.advanced-body { padding: 4px 18px 20px; border-top: 1px solid var(--line); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

/* ---------- create page ---------- */

.create-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 30px; align-items: start; }
.panel {
  background: var(--bg-elev); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px;
}
.panel-title { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-faint); font-weight: 650; margin-bottom: 14px; }

/* The generate action stays reachable while scrolling a long form. It gets its
   own backdrop, and the column below reserves room, so it never sits on top of
   a control the customer is trying to read. */
.create-form { padding-bottom: 96px; }

.generate-bar {
  position: sticky; bottom: 14px; margin-top: 28px; z-index: 20;
  display: flex; gap: 14px; align-items: center;
  padding: 12px;
  border-radius: 999px;
  background: rgba(12, 12, 19, 0.82);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}
.generate-bar .btn-primary { flex: 1; }

/* ---------- song cards ---------- */

.song-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
  gap: 22px;
}

.song-card {
  background: var(--bg-elev); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; cursor: pointer;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.song-card:hover {
  transform: translateY(-4px); border-color: var(--line-strong); box-shadow: var(--shadow);
}
.art-wrap { position: relative; aspect-ratio: 1; background: var(--bg-elev-2); overflow: hidden; }
.art-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.art-overlay {
  position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(0,0,0,0.72));
  opacity: 0; transition: opacity 0.2s var(--ease); display: grid; place-items: center;
}
.song-card:hover .art-overlay { opacity: 1; }
.play-fab {
  width: 52px; height: 52px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255,255,255,0.95); color: #0b0b12;
  display: grid; place-items: center; box-shadow: 0 8px 26px rgba(0,0,0,0.5);
  transition: transform 0.16s var(--ease);
}
.play-fab:hover { transform: scale(1.08); }
.play-fab svg { width: 20px; height: 20px; }

.card-body { padding: 13px 15px 15px; }
.card-title {
  font-weight: 600; font-size: 0.96rem; margin-bottom: 4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.card-meta { display: flex; align-items: center; gap: 7px; color: var(--text-faint); font-size: 0.78rem; }
.dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; flex: none; }
.card-actions { display: flex; gap: 4px; margin-top: 11px; }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: 999px; font-size: 0.72rem; font-weight: 600;
  background: rgba(255,255,255,0.07); color: var(--text-dim);
}
.badge.working { background: rgba(56,189,248,0.14); color: #7dd3fc; }
.badge.failed { background: rgba(248,113,113,0.14); color: var(--err); }
.badge.done { background: rgba(52,211,153,0.13); color: var(--ok); }

.progress-track { height: 3px; background: rgba(255,255,255,0.1); border-radius: 3px; overflow: hidden; }
.progress-fill {
  height: 100%; border-radius: 3px;
  background: linear-gradient(90deg, var(--accent-3), var(--accent), var(--accent-2));
  background-size: 220% 100%; animation: flow 2.4s linear infinite;
}
@keyframes flow { to { background-position: -220% 0; } }

.spinner {
  width: 15px; height: 15px; border-radius: 50%; flex: none;
  border: 2px solid rgba(255,255,255,0.22); border-top-color: #fff;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- generating card ---------- */

.stage-list { display: flex; flex-direction: column; gap: 9px; margin-top: 14px; }
.stage-row { display: flex; align-items: center; gap: 11px; font-size: 0.88rem; color: var(--text-faint); }
.stage-row.active { color: var(--text); }
.stage-row.done { color: var(--text-dim); }
.stage-bullet {
  width: 17px; height: 17px; border-radius: 50%; flex: none;
  border: 2px solid currentColor; display: grid; place-items: center; font-size: 9px;
}
.stage-row.done .stage-bullet { background: var(--ok); border-color: var(--ok); color: #04140d; }

/* ---------- player ---------- */

.player {
  position: fixed; left: 0; right: 0; bottom: 0; height: var(--player);
  background: rgba(13, 13, 20, 0.93);
  backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: minmax(180px, 1fr) minmax(320px, 2.1fr) minmax(140px, 1fr);
  align-items: center; gap: 20px; padding: 0 22px; z-index: 60;
}
.player.empty { display: none; }
.player-song { display: flex; align-items: center; gap: 13px; min-width: 0; }
.player-art { width: 52px; height: 52px; border-radius: 9px; object-fit: cover; flex: none; }
.player-text { min-width: 0; }
.player-title { font-weight: 600; font-size: 0.92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.player-center { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.player-buttons { display: flex; align-items: center; gap: 14px; }
.player-play {
  width: 40px; height: 40px; border-radius: 50%; border: none; cursor: pointer;
  background: #fff; color: #0b0b12; display: grid; place-items: center;
  transition: transform 0.14s var(--ease);
}
.player-play:hover { transform: scale(1.07); }
.player-play svg { width: 17px; height: 17px; }
.icon-btn {
  background: none; border: none; color: var(--text-dim); cursor: pointer; padding: 5px;
  display: grid; place-items: center; border-radius: 8px; transition: color 0.15s;
}
.icon-btn:hover { color: var(--text); }
.icon-btn svg { width: 17px; height: 17px; }
.icon-btn.on { color: var(--accent-2); }

.seek-row { display: flex; align-items: center; gap: 11px; width: 100%; }
.time { font-size: 0.72rem; color: var(--text-faint); font-variant-numeric: tabular-nums; min-width: 36px; }
.seek {
  flex: 1; height: 4px; border-radius: 3px; background: rgba(255,255,255,0.15);
  position: relative; cursor: pointer;
}
.seek-fill {
  position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px;
  background: linear-gradient(90deg, var(--accent-3), var(--accent-2));
}
.seek-head {
  position: absolute; top: 50%; width: 11px; height: 11px; border-radius: 50%;
  background: #fff; transform: translate(-50%, -50%); opacity: 0; transition: opacity 0.15s;
}
.seek:hover .seek-head { opacity: 1; }
.player-right { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.volume { width: 88px; }

/* ---------- home ---------- */

.hero {
  position: relative; overflow: hidden; border-radius: 26px;
  padding: 86px 56px; margin-bottom: 40px;
  background:
    radial-gradient(900px 420px at 12% -10%, rgba(168,85,247,0.34), transparent 62%),
    radial-gradient(760px 400px at 88% 8%, rgba(236,72,153,0.26), transparent 60%),
    linear-gradient(160deg, #12101f, #08080d);
  border: 1px solid var(--line);
}
.hero h1 { font-size: clamp(2.3rem, 5.2vw, 3.65rem); max-width: 15ch; margin-bottom: 18px; }
.hero p { font-size: 1.12rem; color: var(--text-dim); max-width: 46ch; margin-bottom: 32px; }
.hero-glow {
  position: absolute; width: 460px; height: 460px; right: -90px; top: -140px;
  background: radial-gradient(circle, rgba(236,72,153,0.34), transparent 66%);
  filter: blur(46px); pointer-events: none;
}
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-bottom: 44px; }
.step { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-elev); }
.step-num {
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  background: rgba(168,85,247,0.16); color: #d8b4fe; font-weight: 700; font-size: 0.85rem;
  margin-bottom: 14px;
}

/* ---------- misc ---------- */

.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 24px; }
.toolbar .input { width: auto; min-width: 220px; flex: 1; max-width: 380px; }
select.input { width: auto; min-width: 130px; cursor: pointer; }

.empty-state { text-align: center; padding: 80px 20px; }
.empty-icon {
  width: 62px; height: 62px; border-radius: 18px; margin: 0 auto 20px;
  background: var(--bg-elev); border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--text-faint);
}
.empty-icon svg { width: 26px; height: 26px; }
.empty-icon img { width: 38px; height: 38px; object-fit: contain; opacity: 0.9; }

/* The mark breathing while the studio works - branded loading, not a spinner. */
.brand-pulse {
  width: 30px; height: 30px; flex: none; object-fit: contain;
  animation: pulse 1.7s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.72; }
  50% { transform: scale(1.09); opacity: 1; }
}
.brand-pulse-lg { width: 54px; height: 54px; }

.modal-backdrop {
  position: fixed; inset: 0; background: rgba(4,4,8,0.78);
  backdrop-filter: blur(8px); display: grid; place-items: center; z-index: 100; padding: 20px;
}
.modal {
  width: 100%; max-width: 430px; background: var(--bg-elev);
  border: 1px solid var(--line-strong); border-radius: 22px; padding: 34px;
  box-shadow: var(--shadow);
}
.modal-wide { max-width: 640px; }

.toast-stack { position: fixed; bottom: calc(var(--player) + 20px); right: 22px; z-index: 200;
  display: flex; flex-direction: column; gap: 10px; }
.toast {
  padding: 13px 18px; border-radius: 12px; background: var(--bg-elev-2);
  border: 1px solid var(--line-strong); box-shadow: var(--shadow); max-width: 340px;
  animation: rise 0.24s var(--ease);
}
.toast.err { border-color: rgba(248,113,113,0.5); }
.toast.ok { border-color: rgba(52,211,153,0.45); }
@keyframes rise { from { transform: translateY(10px); opacity: 0; } }

.detail-head { display: grid; grid-template-columns: 280px 1fr; gap: 34px; margin-bottom: 34px; }
.detail-art { width: 100%; border-radius: 20px; box-shadow: var(--shadow); display: block; }
.lyrics-box {
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; white-space: pre-wrap; line-height: 1.85; font-size: 0.95rem;
}
.meta-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; }
.meta-item .label { color: var(--text-faint); font-size: 0.72rem; text-transform: uppercase;
  letter-spacing: 0.08em; margin-bottom: 3px; }

table.diag { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
table.diag th, table.diag td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); }
table.diag th { color: var(--text-faint); font-weight: 600; font-size: 0.74rem;
  text-transform: uppercase; letter-spacing: 0.07em; }

.mobile-nav { display: none; }

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
  .create-wrap { grid-template-columns: 1fr; }
  .detail-head { grid-template-columns: 220px 1fr; gap: 24px; }
}

@media (max-width: 860px) {
  :root { --player: 76px; }
  .app { grid-template-columns: 1fr; padding-bottom: calc(var(--player) + 64px); }
  .sidebar { display: none; }
  .main { grid-column: 1; padding: 20px 16px 30px; }
  .hero { padding: 54px 26px; border-radius: 20px; }
  .steps, .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .song-grid { grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 14px; }
  .detail-head { grid-template-columns: 1fr; }
  .detail-art { max-width: 300px; }
  .panel { padding: 18px; }

  .player {
    grid-template-columns: 1fr auto; gap: 12px; padding: 0 14px;
    bottom: 62px; height: var(--player);
    border-radius: 14px; left: 8px; right: 8px;
    border: 1px solid var(--line-strong);
  }
  .player-center { order: 2; }
  .player-right { display: none; }
  .player .seek-row { position: absolute; left: 12px; right: 12px; bottom: 5px; }
  .player-buttons { gap: 10px; }
  .player-art { width: 42px; height: 42px; }

  .mobile-nav {
    display: grid; position: fixed; bottom: 0; left: 0; right: 0; height: 62px;
    grid-template-columns: repeat(5, 1fr); z-index: 70;
    background: rgba(11,11,17,0.96); backdrop-filter: blur(20px);
    border-top: 1px solid var(--line);
  }
  .mobile-nav button {
    background: none; border: none; color: var(--text-faint); cursor: pointer;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    font-size: 0.63rem; padding: 0;
  }
  .mobile-nav button svg { width: 19px; height: 19px; }
  .mobile-nav button.active { color: var(--accent); }
  .toolbar .input { max-width: none; }
  .toast-stack { left: 12px; right: 12px; bottom: calc(var(--player) + 74px); }
  .toast { max-width: none; }

  /* comfortable touch targets */
  .chip { padding: 11px 16px; }
  .btn { padding: 12px 18px; }
  .btn-icon { width: 44px; height: 44px; padding: 10px; }
  .toggle-group button { padding: 11px 18px; }
  .nav-item { padding: 12px; }
}

@media (max-width: 420px) {
  .song-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  h1 { font-size: 1.6rem; }
  .modal { padding: 24px; }
}
