/* Private Jake's Space — Apple-inspired dark glass UI */

:root {
  --bg: #07070b;
  --bg-2: #0b0b11;
  --text: #f5f5f7;
  --muted: #a3a3ad;
  --dim: #6e6e7a;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --glass: rgba(20, 20, 28, 0.55);
  --glass-2: rgba(15, 15, 21, 0.82);
  --accent: #8b7cf6;
  --accent-2: #67e8f9;
  --accent-soft: rgba(139, 124, 246, 0.18);
  --ok: #34d399;
  --warn: #fbbf24;
  --bad: #fb7185;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 26px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3), 0 4px 14px rgba(0, 0, 0, 0.18);
  --shadow-lg: 0 24px 70px -18px rgba(0, 0, 0, 0.85);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body { min-height: 100%; }
html { color-scheme: dark; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }

::selection { background: rgba(139, 124, 246, 0.45); }

/* ---------- fondo ---------- */
.bg { position: fixed; inset: 0; z-index: -2; overflow: hidden; background:
  radial-gradient(1200px 800px at 50% -10%, #16121f 0%, transparent 60%),
  radial-gradient(900px 700px at 85% 110%, #0b1620 0%, transparent 60%),
  var(--bg); }

.orb { position: absolute; border-radius: 50%; filter: blur(110px); opacity: 0.32; }
.orb-a { width: 520px; height: 520px; background: #6d28d9; top: -180px; left: 8%; animation: drift 22s ease-in-out infinite alternate; }
.orb-b { width: 460px; height: 460px; background: #0891b2; bottom: -200px; right: 2%; animation: drift 26s ease-in-out infinite alternate-reverse; }
.orb-c { width: 320px; height: 320px; background: #be185d; top: 40%; left: 68%; opacity: 0.16; animation: drift 18s ease-in-out infinite alternate; }

@keyframes drift {
  from { transform: translate3d(-20px, -10px, 0) scale(1); }
  to { transform: translate3d(30px, 24px, 0) scale(1.08); }
}

.grain {
  position: absolute; inset: 0; opacity: 0.035; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- utilidades ---------- */
.glass {
  background: var(--glass);
  border: 1px solid var(--line);
  backdrop-filter: blur(26px) saturate(160%);
  -webkit-backdrop-filter: blur(26px) saturate(160%);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.eyebrow {
  margin: 0; font-size: 10.5px; font-weight: 600; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--dim);
}
.accent {
  background: linear-gradient(100deg, #c4b5fd 0%, #8b7cf6 45%, #67e8f9 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9em; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: var(--r-md);
  border: 1px solid transparent; font-weight: 600; font-size: 14.5px;
  cursor: pointer; transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), border-color 0.2s;
  user-select: none; white-space: nowrap;
}
.btn:disabled { opacity: 0.5; cursor: default; }
.btn.primary {
  background: linear-gradient(135deg, #7c6cf6 0%, #6d5efc 55%, #5b8def 100%);
  color: #fff; box-shadow: 0 10px 30px -10px rgba(109, 94, 252, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.btn.primary:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 16px 38px -12px rgba(109, 94, 252, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.btn.primary:active:not(:disabled) { transform: translateY(0); }
.btn.ghost { background: rgba(255, 255, 255, 0.04); border-color: var(--line); color: var(--text); }
.btn.ghost:hover:not(:disabled) { background: rgba(255, 255, 255, 0.08); }
.btn.wide { width: 100%; }
.btn.small { min-height: 34px; padding: 0 12px; font-size: 13px; border-radius: 10px; }

.btn:focus-visible, .icon-btn:focus-visible, .tab:focus-visible, .chip-btn:focus-visible,
input:focus-visible, summary:focus-visible {
  outline: 2px solid rgba(139, 124, 246, 0.8); outline-offset: 2px;
}

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 12px; border: 1px solid transparent;
  background: transparent; color: var(--muted); cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.2s var(--ease);
}
.icon-btn:hover { background: rgba(255, 255, 255, 0.07); color: var(--text); }
.icon-btn:active { transform: scale(0.94); }
.icon-btn.sm { width: 32px; height: 32px; border-radius: 9px; }

.input-wrap {
  display: flex; align-items: center; gap: 12px; height: 52px; padding: 0 16px;
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.035);
  color: var(--dim); transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.input-wrap:focus-within { border-color: rgba(139, 124, 246, 0.65); box-shadow: 0 0 0 4px var(--accent-soft); background: rgba(255, 255, 255, 0.05); }
.input-wrap input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; color: var(--text); font-size: 16px; }
.input-wrap input::placeholder { color: var(--dim); }

.error { margin: 10px 0 0; font-size: 12.5px; color: var(--bad); min-height: 16px; }
.fine { margin: 20px 0 0; font-size: 11.5px; color: var(--dim); letter-spacing: 0.01em; }

/* ---------- portada ---------- */
.gate {
  min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 64px 20px 40px; gap: 26px;
}
.gate-card {
  width: min(430px, 100%); padding: 46px 34px 34px; border-radius: 30px; text-align: center;
  position: relative; overflow: hidden;
}
.gate-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: radial-gradient(420px 220px at 50% 0%, rgba(139, 124, 246, 0.16), transparent 70%);
}
.logo-wrap { position: relative; width: 132px; height: 132px; margin: -6px auto 20px; }
.logo-wrap::after {
  content: ""; position: absolute; inset: -12px; border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 124, 246, 0.35), transparent 65%);
  filter: blur(14px); z-index: -1;
}
.logo-wrap img { width: 132px; height: 132px; animation: spin 26s linear infinite; filter: drop-shadow(0 16px 34px rgba(0, 0, 0, 0.6)); }

@keyframes spin { to { transform: rotate(360deg); } }

.gate-title {
  margin: 12px 0 0; font-size: clamp(2.45rem, 7vw, 3.15rem); line-height: 1.02;
  font-weight: 700; letter-spacing: -0.038em;
}
.lede { margin: 14px auto 0; max-width: 30ch; color: var(--muted); font-size: 14.5px; line-height: 1.65; }
.login-form { margin-top: 28px; display: grid; gap: 10px; text-align: left; }
.login-form .error { text-align: center; }
.gate-foot { font-size: 11px; color: var(--dim); letter-spacing: 0.08em; }

.animate-in { animation: rise 0.7s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px) scale(0.985); } to { opacity: 1; transform: none; } }

/* ---------- app ---------- */
.app { max-width: 1080px; margin: 0 auto; padding: 18px 20px 90px; }

.topbar {
  position: sticky; top: 14px; z-index: 30; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 10px 14px 10px 16px; border-radius: var(--r-lg); margin-bottom: 20px;
  background: rgba(15, 15, 21, 0.7);
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; border-radius: 12px; }
.brand img { filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5)); }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.brand-name { font-weight: 600; font-size: 14.5px; letter-spacing: -0.01em; white-space: nowrap; }
.brand-sub { font-size: 10.5px; color: var(--dim); letter-spacing: 0.06em; text-transform: uppercase; }
.topbar-right { display: flex; align-items: center; gap: 4px; }

.chip {
  display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 11px;
  border-radius: 999px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line);
  font-size: 11.5px; color: var(--muted); white-space: nowrap;
}
.chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--warn); box-shadow: 0 0 10px currentColor; }
.chip[data-state="linked"] .dot { background: var(--ok); }
.chip[data-state="error"] .dot { background: var(--bad); }

.console { display: grid; gap: 18px; }

/* now playing */
.now { display: grid; grid-template-columns: 208px 1fr; gap: 28px; padding: 26px; border-radius: var(--r-xl); }
.now-art { position: relative; width: 100%; aspect-ratio: 1; border-radius: 18px; overflow: hidden; background: linear-gradient(160deg, #1c1c26, #101016); box-shadow: 0 20px 50px -18px rgba(0, 0, 0, 0.9); }
.now-art img { width: 100%; height: 100%; object-fit: cover; }
.now-art .art-empty { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255, 255, 255, 0.14); }
.now-main { display: flex; flex-direction: column; min-width: 0; }
.now-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.now-title { margin: 8px 0 0; font-size: clamp(1.35rem, 2.6vw, 1.9rem); font-weight: 700; letter-spacing: -0.025em; line-height: 1.15; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.now-artist { margin: 5px 0 0; color: var(--muted); font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.now-spacer { flex: 1; min-height: 18px; }

.progress { position: relative; height: 14px; display: flex; align-items: center; cursor: pointer; margin-top: 6px; }
.progress-track { position: relative; width: 100%; height: 5px; border-radius: 99px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.progress-fill { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 99px; background: linear-gradient(90deg, #a78bfa, #67e8f9); transition: width 0.4s linear; }
.progress:hover .progress-fill { filter: brightness(1.2); }
.times { display: flex; justify-content: space-between; margin-top: 2px; font-size: 11px; color: var(--dim); font-variant-numeric: tabular-nums; }

.controls { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.controls .icon-btn { width: 42px; height: 42px; }
.controls .icon-btn.on { color: var(--accent-2); background: rgba(103, 232, 249, 0.1); }
.controls .play-btn {
  width: 58px; height: 58px; border-radius: 50%; margin: 0 6px;
  background: #f5f5f7; color: #0a0a0f; display: inline-flex; align-items: center; justify-content: center;
  border: 0; cursor: pointer; transition: transform 0.2s var(--ease), box-shadow 0.2s;
  box-shadow: 0 12px 30px -10px rgba(255, 255, 255, 0.4);
}
.controls .play-btn:hover { transform: scale(1.05); }
.controls .play-btn:active { transform: scale(0.97); }
.controls .play-btn:disabled { opacity: 0.45; cursor: default; transform: none; box-shadow: none; }

.now-foot { display: flex; align-items: center; gap: 14px; margin-top: 16px; flex-wrap: wrap; }
.device-chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04); font-size: 11.5px; color: var(--muted); cursor: pointer; max-width: 220px; }
.device-chip:hover { color: var(--text); border-color: var(--line-strong); }
.volume { display: flex; align-items: center; gap: 9px; margin-left: auto; color: var(--dim); }
.volume input[type="range"] { -webkit-appearance: none; appearance: none; width: 96px; height: 4px; border-radius: 99px; background: rgba(255, 255, 255, 0.14); outline: none; }
.volume input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; border-radius: 50%; background: #e5e5ea; cursor: pointer; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08); }
.volume input[type="range"]::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: 50%; background: #e5e5ea; cursor: pointer; }

.now-empty { grid-column: 1 / -1; display: flex; align-items: center; gap: 20px; padding: 8px; }
.now-empty .empty-disc { width: 96px; height: 96px; border-radius: 50%; border: 1px dashed var(--line-strong); display: grid; place-items: center; color: var(--dim); flex: none; }

/* tabs y panel */
.tabs { display: inline-flex; gap: 4px; padding: 5px; border-radius: 15px; background: var(--glass); border: 1px solid var(--line); width: fit-content; backdrop-filter: blur(20px); }
.tab { border: 0; background: transparent; color: var(--muted); padding: 8px 18px; border-radius: 11px; font-size: 13.5px; font-weight: 500; cursor: pointer; transition: background 0.2s, color 0.2s; }
.tab:hover { color: var(--text); }
.tab[aria-current="page"] { background: rgba(255, 255, 255, 0.09); color: var(--text); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08); }

.panel { padding: 24px; border-radius: var(--r-xl); background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(26px) saturate(160%); box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.05); min-height: 340px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.panel-title { margin: 0; font-size: 17px; font-weight: 650; letter-spacing: -0.02em; }

.search-form { display: flex; gap: 10px; }
.search-form .input-wrap { flex: 1; height: 48px; }
.filters { margin-top: 12px; }
.filters summary { cursor: pointer; font-size: 12.5px; color: var(--muted); list-style: none; width: fit-content; }
.filters summary::-webkit-details-marker { display: none; }
.filters summary::before { content: "＋"; margin-right: 7px; color: var(--dim); }
.filters[open] summary::before { content: "－"; }
.filter-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: 12px; }
.filter-grid .input-wrap { height: 42px; }
.filter-grid input { font-size: 14px; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0 6px; }
.chip-btn { border: 1px solid var(--line); background: transparent; color: var(--muted); border-radius: 999px; padding: 7px 14px; font-size: 12.5px; cursor: pointer; transition: all 0.2s; }
.chip-btn:hover { color: var(--text); border-color: var(--line-strong); }
.chip-btn[aria-pressed="true"] { background: rgba(139, 124, 246, 0.16); border-color: rgba(139, 124, 246, 0.5); color: #ddd6fe; }

.results { margin-top: 14px; display: grid; gap: 2px; }
.result-group { margin-top: 12px; }
.group-label { margin: 10px 0 6px; font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--dim); font-weight: 600; }
.result {
  display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; align-items: center; gap: 13px;
  padding: 8px 10px; border-radius: 12px; transition: background 0.18s;
}
.result:hover { background: rgba(255, 255, 255, 0.05); }
.result-art { width: 46px; height: 46px; border-radius: 8px; object-fit: cover; background: #1a1a22; }
.result-art.round { border-radius: 50%; }
.result-name { font-size: 14px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.result-meta { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 1px; }
.result-actions { display: flex; align-items: center; gap: 2px; opacity: 0.55; transition: opacity 0.18s; }
.result:hover .result-actions, .result:focus-within .result-actions { opacity: 1; }
.result-actions .icon-btn { color: var(--muted); }
.result-actions .icon-btn:hover { color: var(--text); }

.empty { display: grid; place-items: center; gap: 10px; padding: 54px 16px; text-align: center; color: var(--dim); }
.empty svg { opacity: 0.5; }
.empty p { margin: 0; font-size: 13.5px; max-width: 40ch; line-height: 1.6; }

/* playlists */
.playlists-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); gap: 16px; }
.pl-card { border: 1px solid var(--line); background: rgba(255, 255, 255, 0.025); border-radius: 16px; overflow: hidden; cursor: pointer; transition: transform 0.3s var(--ease), border-color 0.2s, background 0.2s; text-align: left; padding: 0; color: inherit; }
.pl-card:hover { transform: translateY(-3px); border-color: var(--line-strong); background: rgba(255, 255, 255, 0.05); }
.pl-art { position: relative; aspect-ratio: 1; background: linear-gradient(160deg, #1c1c26, #101016); }
.pl-art img { width: 100%; height: 100%; object-fit: cover; }
.pl-art .pl-play { position: absolute; right: 10px; bottom: 10px; width: 40px; height: 40px; border-radius: 50%; background: rgba(10, 10, 14, 0.72); backdrop-filter: blur(8px); display: grid; place-items: center; opacity: 0; transform: translateY(6px); transition: opacity 0.25s, transform 0.25s; border: 1px solid rgba(255, 255, 255, 0.18); }
.pl-card:hover .pl-play { opacity: 1; transform: none; }
.pl-info { padding: 11px 12px 13px; }
.pl-name { font-size: 13.5px; font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-meta { font-size: 11.5px; color: var(--dim); margin-top: 2px; }

/* queue */
.queue-list { display: grid; gap: 2px; }
.queue-heading { margin: 18px 0 6px; font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--dim); font-weight: 600; }

/* modal */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(4, 4, 8, 0.66); backdrop-filter: blur(10px); animation: fade 0.25s ease both; }
.modal-card { position: relative; width: min(560px, 100%); max-height: min(84vh, 800px); overflow: auto; padding: 26px; border-radius: 26px; background: rgba(16, 16, 23, 0.92); animation: pop 0.32s var(--ease) both; }
.modal-card.wide { width: min(720px, 100%); }
.modal-head { display: flex; align-items: flex-start; gap: 14px; justify-content: space-between; margin-bottom: 18px; }
.modal-title { margin: 0; font-size: 19px; font-weight: 650; letter-spacing: -0.02em; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(0.98); } }

.settings-block { padding: 16px 0; border-top: 1px solid var(--line); }
.settings-block:first-of-type { border-top: 0; padding-top: 0; }
.settings-label { font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--dim); font-weight: 600; margin-bottom: 8px; }
.settings-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 8px 0; }
.settings-row .k { font-size: 13px; color: var(--muted); }
.settings-row .v { font-size: 13px; text-align: right; overflow: hidden; text-overflow: ellipsis; }
.token-line { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 12.5px; }
.token-line .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.code-box { display: block; width: 100%; padding: 10px 12px; border-radius: 10px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11.5px; color: #ddd6fe; overflow-wrap: anywhere; user-select: all; }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 18px); z-index: 200;
  padding: 11px 18px; border-radius: 999px; background: rgba(20, 20, 28, 0.92); border: 1px solid var(--line-strong);
  backdrop-filter: blur(18px); font-size: 13px; color: var(--text); box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none; transition: opacity 0.25s, transform 0.3s var(--ease); max-width: min(90vw, 520px); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.bad { border-color: rgba(251, 113, 133, 0.5); }

/* consentimiento OAuth */
.standalone { min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.standalone-main { width: min(430px, 100%); display: grid; gap: 22px; justify-items: center; }
.brand.small { display: flex; align-items: center; gap: 11px; justify-self: start; }
.consent { width: 100%; padding: 36px 30px 30px; border-radius: 28px; text-align: center; }
.consent-logo { margin: 0 auto 14px; animation: spin 26s linear infinite; }
.consent .gate-title { font-size: clamp(1.7rem, 5vw, 2.1rem); }
.consent-form { display: grid; gap: 9px; margin-top: 24px; }
.consent .btn.ghost { color: var(--muted); }
.consent .lede { max-width: 34ch; }

/* scrollbar */
* { scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.18) transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.16); border-radius: 99px; border: 3px solid transparent; background-clip: content-box; }

/* responsive */
@media (max-width: 860px) {
  .now { grid-template-columns: 168px 1fr; gap: 20px; padding: 20px; }
  .brand-sub { display: none; }
}

@media (max-width: 640px) {
  .app { padding: 12px 12px 80px; }
  .topbar { top: 8px; border-radius: 16px; padding: 8px 10px; }
  .brand-name { font-size: 13px; }
  .chip { display: none; }
  .console { gap: 14px; }
  .now { grid-template-columns: 1fr; padding: 18px; border-radius: 22px; }
  .now-art { width: min(230px, 62vw); margin: 0 auto; }
  .now-main { text-align: left; }
  .controls { justify-content: center; }
  .now-foot { justify-content: center; }
  .volume { margin-left: 0; }
  .tabs { width: 100%; display: flex; }
  .tab { flex: 1; padding: 9px 8px; }
  .panel { padding: 18px; border-radius: 22px; }
  .search-form { flex-direction: column; }
  .result { grid-template-columns: 44px minmax(0, 1fr) auto; padding: 8px 6px; }
  .result-actions { opacity: 1; }
  .playlists-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
  .gate { padding: 42px 14px 30px; }
  .gate-card { padding: 38px 24px 28px; border-radius: 26px; }
  .modal-card { padding: 20px; border-radius: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .logo-wrap img, .consent-logo { animation: none; }
}
