/* BEATX — аудиофильский интерфейс. Базовые переменные перекрываются темой из lib/themes.php. */
:root {
  --bg: #070812;
  --bg-2: #0c0e1c;
  --solid: #0f1121;
  --panel: rgba(255, 255, 255, .055);
  --panel-2: rgba(255, 255, 255, .085);
  --line: rgba(255, 255, 255, .10);
  --text: #f2f4ff;
  --muted: #9aa2c0;
  --mint: #59e2c4;
  --mint-2: #86ebdc;
  --on-accent: #0a1020;
  --mint-soft: rgba(89, 226, 196, .12);
  --mint-line: rgba(89, 226, 196, .45);
  --mint-glow: rgba(89, 226, 196, .24);
  --violet: #8b7bff;
  --pink: #ff5d8f;
  --pink-line: rgba(255, 93, 143, .4);
  --surface: rgba(255, 255, 255, .09);
  --surface-2: rgba(255, 255, 255, .025);
  --grid-dot: rgba(255, 255, 255, .25);
  --scroll-thumb: rgba(255, 255, 255, .16);
  --topbar-1: rgba(7, 8, 18, .94);
  --topbar-2: rgba(7, 8, 18, .55);
  --aurora-1: #2b6cb0;
  --aurora-2: #5e3bb7;
  --aurora-3: #0f7a6b;
  --vinyl-a: #16182a;
  --vinyl-b: #0a0b16;
  --radius: 20px;
  --side: 248px;
  --player-h: 92px;
  --shadow: 0 20px 60px rgba(0, 0, 0, .38);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .16;
  background-image: radial-gradient(var(--grid-dot) .5px, transparent .5px);
  background-size: 4px 4px;
  mix-blend-mode: overlay;
}
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
::selection { background: var(--mint-soft); }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: var(--scroll-thumb); border-radius: 10px; }
::-webkit-scrollbar-track { background: transparent; }

.aurora { position: fixed; inset: 0; overflow: hidden; z-index: -1; }
.aurora i { position: absolute; display: block; border-radius: 50%; filter: blur(110px); opacity: .42; animation: float 22s ease-in-out infinite alternate; }
.aurora i:nth-child(1) { width: 620px; height: 620px; left: -160px; top: -220px; background: var(--aurora-1); }
.aurora i:nth-child(2) { width: 720px; height: 720px; right: -240px; top: 10%; background: var(--aurora-2); animation-delay: -7s; }
.aurora i:nth-child(3) { width: 560px; height: 560px; left: 38%; bottom: -300px; background: var(--aurora-3); animation-delay: -13s; }
@keyframes float { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(60px,50px,0) scale(1.16); } }

.layout { display: flex; min-height: 100vh; position: relative; z-index: 1; }
.sidebar {
  width: var(--side); flex: 0 0 var(--side); position: sticky; top: 0; height: 100vh;
  padding: 26px 18px calc(var(--player-h) + 20px); display: flex; flex-direction: column; gap: 22px;
  background: linear-gradient(180deg, var(--topbar-1), var(--topbar-2));
  border-right: 1px solid var(--line); backdrop-filter: blur(22px); z-index: 30;
}
.brand { display: flex; align-items: center; gap: 12px; padding: 0 8px; }
.brand-mark { width: 38px; height: 38px; border-radius: 12px; display: flex; align-items: flex-end; justify-content: center; gap: 3px; padding-bottom: 9px;
  background: linear-gradient(135deg, var(--mint), var(--violet)); box-shadow: 0 8px 24px var(--mint-glow); }
.brand-mark i { width: 4px; border-radius: 3px; background: var(--on-accent); animation: eq 1.1s ease-in-out infinite alternate; }
.brand-mark i:nth-child(1) { height: 11px; }
.brand-mark i:nth-child(2) { height: 19px; animation-delay: -.4s; }
.brand-mark i:nth-child(3) { height: 14px; animation-delay: -.7s; }
@keyframes eq { to { height: 6px; } }
.brand-text { font-weight: 800; font-size: 20px; letter-spacing: .12em; line-height: 1; }
.brand-text small { display: block; margin-top: 5px; font-size: 10px; font-weight: 500; letter-spacing: .08em; color: var(--muted); }
.side-nav { display: flex; flex-direction: column; gap: 4px; }
.side-nav a { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 12px; color: var(--muted); font-weight: 600; transition: .2s; }
.side-nav a span { width: 20px; text-align: center; font-size: 17px; }
.side-nav a:hover { color: var(--text); background: var(--panel); }
.side-nav a.active { color: var(--on-accent); background: linear-gradient(90deg, var(--mint), var(--mint-2)); box-shadow: 0 8px 24px var(--mint-glow); }
.side-block { min-height: 0; flex: 1; overflow: auto; }
.side-title { font-size: 10px; letter-spacing: .18em; color: var(--muted); padding: 0 14px 10px; font-weight: 800; }
.side-moods { display: flex; flex-direction: column; gap: 3px; }
.side-moods a { display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 10px; color: var(--muted); font-size: 14px; }
.side-moods a:hover { background: var(--panel); color: var(--text); }
.side-moods .dot { width: 8px; height: 8px; border-radius: 50%; box-shadow: 0 0 12px currentColor; }
.side-foot { display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--line); padding-top: 14px; }
.ghost-btn { display: block; width: 100%; text-align: left; padding: 9px 12px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); transition: .2s; }
.ghost-btn:hover { background: var(--panel); color: var(--text); }

.content { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 25; display: flex; align-items: center; gap: 12px; padding: 16px 34px;
  background: linear-gradient(180deg, var(--topbar-1), var(--topbar-2)); backdrop-filter: blur(18px); border-bottom: 1px solid var(--line); }
.search-wrap { position: relative; flex: 1; max-width: 560px; }
.search-wrap input { width: 100%; padding: 12px 16px 12px 42px; border-radius: 14px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); outline: none; transition: .2s; }
.search-wrap input:focus { border-color: var(--mint-line); box-shadow: 0 0 0 4px var(--mint-soft); }
.search-wrap input::placeholder { color: var(--muted); }
.search-icon { position: absolute; left: 15px; top: 9px; font-size: 21px; color: var(--muted); }
.search-drop { position: absolute; top: calc(100% + 8px); left: 0; right: 0; max-height: 430px; overflow: auto; z-index: 60;
  border-radius: 16px; border: 1px solid var(--line); background: var(--solid); box-shadow: var(--shadow); padding: 8px; }
.search-drop .drop-empty { padding: 14px; color: var(--muted); }
.icon-btn { width: 38px; height: 38px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 11px;
  border: 1px solid var(--line); background: var(--panel); color: var(--text); font-size: 17px; transition: .18s; }
.icon-btn:hover { background: var(--panel-2); transform: translateY(-1px); }
.icon-btn.tiny { width: 30px; height: 30px; font-size: 14px; border-color: transparent; background: transparent; color: var(--muted); }
.icon-btn.tiny:hover { color: var(--text); background: var(--panel); }
.icon-btn.on { color: var(--mint); border-color: var(--mint-line); background: var(--mint-soft); }
.menu-btn { display: none; }
.view { width: 100%; max-width: 1420px; margin: 0 auto; padding: 28px 34px calc(var(--player-h) + 60px); flex: 1; }
.ad-slot { display: flex; justify-content: center; align-items: center; width: 100%; max-width: 1420px; margin: 0 auto;
  padding: 0 34px; overflow: hidden; }
.ad-slot > * { max-width: 100%; }
.ad-top { padding-top: 18px; }
.ad-bottom { padding-bottom: 12px; }
.site-foot { padding: 20px 34px calc(var(--player-h) + 24px); color: var(--muted); font-size: 12px; }
.foot-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px 20px; }
.foot-note { margin-top: 7px; color: var(--muted); font-size: 11px; line-height: 1.5; opacity: .8; }

.loading, .empty { padding: 60px 20px; text-align: center; color: var(--muted); }
.loading::before { content: "◌"; display: block; font-size: 42px; animation: spin 1.4s linear infinite; color: var(--mint); }
@keyframes spin { to { transform: rotate(360deg); } }

.section { margin-bottom: 38px; animation: fadeUp .35s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 0 0 16px; }
.section-title { margin: 0; font-size: 24px; letter-spacing: -.03em; font-weight: 800; }
.section-sub { margin: 3px 0 0; color: var(--muted); font-size: 13px; }
.section-link { color: var(--mint); font-size: 13px; white-space: nowrap; }
.section-link:hover { text-decoration: underline; }

.hero { position: relative; display: grid; grid-template-columns: minmax(220px, 320px) 1fr; gap: 34px; align-items: center;
  padding: 30px; margin-bottom: 38px; border-radius: 28px; overflow: hidden; border: 1px solid var(--line);
  background: linear-gradient(120deg, var(--surface), var(--surface-2)); box-shadow: var(--shadow); }
.hero::before { content: ""; position: absolute; width: 420px; height: 420px; right: -90px; top: -190px; border-radius: 50%;
  background: var(--accent, var(--violet)); filter: blur(120px); opacity: .28; }
.hero-art { position: relative; z-index: 1; }
.hero-art img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 20px; box-shadow: 0 22px 44px rgba(0,0,0,.45); }
.hero-art .vinyl { position: absolute; right: -22px; top: 16%; width: 42%; aspect-ratio: 1; border-radius: 50%; z-index: -1;
  background: repeating-radial-gradient(circle, var(--vinyl-a) 0 3px, var(--vinyl-b) 4px 7px); border: 1px solid var(--line); animation: spin 9s linear infinite; }
.hero-info { position: relative; z-index: 1; min-width: 0; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 100px; font-size: 11px;
  letter-spacing: .12em; text-transform: uppercase; font-weight: 800; background: var(--mint-soft); color: var(--mint); }
.hero-title { margin: 14px 0 6px; font-size: clamp(30px, 4.4vw, 58px); line-height: 1.02; letter-spacing: -.055em; font-weight: 850; }
.hero-artist { color: var(--muted); font-size: 17px; }
.hero-desc { color: var(--muted); max-width: 620px; margin: 16px 0 22px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--panel); color: var(--text); font-weight: 700; transition: .18s; }
.btn:hover { background: var(--panel-2); transform: translateY(-1px); }
.btn.primary { border: 0; color: var(--on-accent); background: linear-gradient(90deg, var(--mint), var(--mint-2)); box-shadow: 0 10px 28px var(--mint-glow); }
.btn.small { padding: 7px 12px; font-size: 12px; border-radius: 10px; }
.btn.danger { color: var(--pink); border-color: var(--pink-line); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 18px; }
.track-card, .artist-card, .album-card, .playlist-card { position: relative; border-radius: var(--radius); padding: 12px;
  background: var(--panel); border: 1px solid var(--line); transition: transform .22s, background .22s, border-color .22s; overflow: hidden; }
.track-card:hover, .artist-card:hover, .album-card:hover, .playlist-card:hover { transform: translateY(-5px); background: var(--panel-2); border-color: var(--line); }
.track-cover { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 1; background: var(--solid); }
.track-cover img, .artist-card img, .album-card img { width: 100%; height: 100%; object-fit: cover; }
.artist-card img, .album-card img { aspect-ratio: 1; border-radius: 14px; }
.track-cover .play-overlay { position: absolute; inset: 0; display: grid; place-items: center; font-size: 30px; color: var(--on-accent);
  background: rgba(0,0,0,.35); opacity: 0; transition: .2s; }
.track-card:hover .play-overlay { opacity: 1; }
.track-cover .badge { position: absolute; left: 8px; top: 8px; padding: 4px 8px; border-radius: 100px; font-size: 10px; font-weight: 800;
  background: var(--topbar-1); color: var(--mint); backdrop-filter: blur(6px); }
.track-info { padding: 12px 4px 4px; min-width: 0; }
.track-name { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track-sub { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; color: var(--muted); font-size: 11px; }
.card-actions .row-like { border: 0; background: none; color: inherit; font-size: 15px; }
.card-actions .row-like.liked { color: var(--pink); }
.artist-card, .album-card { text-align: center; }
.artist-card h4, .album-card h4 { margin: 12px 0 2px; font-size: 15px; }
.artist-card p, .album-card p { margin: 0; color: var(--muted); font-size: 12px; }

.mood-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.mood-card { position: relative; padding: 20px; min-height: 132px; border-radius: 20px; overflow: hidden; text-align: left;
  border: 1px solid var(--line); color: var(--text); transition: .22s; background: var(--solid); }
.mood-card::after { content: ""; position: absolute; width: 170px; height: 170px; right: -60px; bottom: -90px; border-radius: 50%;
  background: var(--accent); filter: blur(50px); opacity: .5; }
.mood-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.mood-card .icon { font-size: 26px; }
.mood-card h4 { margin: 10px 0 2px; font-size: 18px; }
.mood-card p { margin: 0; color: var(--muted); font-size: 12px; }
.mood-card .count { position: absolute; right: 14px; top: 14px; font-size: 11px; color: var(--muted); }
.mood-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .13; }

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.chip { padding: 8px 14px; border-radius: 100px; border: 1px solid var(--line); background: var(--panel); color: var(--muted); font-size: 13px; }
.chip:hover { color: var(--text); background: var(--panel-2); }
.chip.active { color: var(--on-accent); background: var(--mint); border-color: var(--mint); font-weight: 800; }

.list { border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); overflow: hidden; }
.list-row { display: grid; grid-template-columns: 34px 44px minmax(140px, 1.4fr) minmax(90px, 1fr) auto auto; gap: 12px; align-items: center;
  padding: 9px 14px; border-bottom: 1px solid var(--line); transition: background .15s; }
.list-row:last-child { border-bottom: 0; }
.list-row:hover { background: var(--panel-2); }
.list-row.active { background: var(--mint-soft); }
.row-num { color: var(--muted); font-size: 12px; text-align: center; }
.row-cover { width: 44px; height: 44px; border-radius: 9px; object-fit: cover; }
.row-main { min-width: 0; cursor: pointer; }
.row-title { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-artist { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-tags { color: var(--muted); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-time { color: var(--muted); font-size: 12px; }
.row-actions { display: flex; gap: 2px; }
.row-like { border: 0; background: none; color: var(--muted); font-size: 17px; padding: 4px; }
.row-like.liked { color: var(--pink); }

.detail { display: grid; grid-template-columns: minmax(220px, 320px) 1fr; gap: 30px; }
.detail-cover { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 22px; box-shadow: 0 24px 60px rgba(0,0,0,.5); }
.detail h1 { margin: 6px 0 4px; font-size: clamp(28px, 3.5vw, 44px); letter-spacing: -.045em; line-height: 1.1; }
.detail-artist { color: var(--mint); font-weight: 700; }
.detail-artist:hover { text-decoration: underline; }
.meta-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.meta-row span { padding: 6px 11px; border-radius: 100px; background: var(--panel); border: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.tabs { display: flex; gap: 6px; margin: 22px 0 14px; border-bottom: 1px solid var(--line); }
.tab { padding: 10px 14px; border: 0; background: none; color: var(--muted); font-weight: 700; border-bottom: 2px solid transparent; }
.tab.active { color: var(--mint); border-color: var(--mint); }
.comment-form { display: flex; gap: 10px; margin-bottom: 18px; }
.comment-form input, .comment-form textarea { flex: 1; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); outline: none; }
.comment { padding: 14px; border-radius: 14px; background: var(--panel); margin-bottom: 8px; }
.comment b { color: var(--mint); font-size: 13px; }
.comment time { color: var(--muted); font-size: 11px; margin-left: 8px; }
.comment p { margin: 6px 0 0; white-space: pre-wrap; word-break: break-word; }
.lyrics-lines { font-size: 17px; line-height: 2; color: var(--muted); }
.lyrics-lines .line.active { color: var(--mint); font-weight: 800; text-shadow: 0 0 18px var(--mint-line); }
.pager { display: flex; gap: 8px; align-items: center; justify-content: center; margin-top: 26px; }
.pager button { min-width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--text); }
.pager button.active { background: var(--mint); color: var(--on-accent); font-weight: 800; }
.pager span { color: var(--muted); font-size: 13px; }
.note { color: var(--muted); font-size: 13px; margin: 0 0 18px; }

/* Плеер */
.player { position: fixed; left: 0; right: 0; bottom: 0; height: var(--player-h); z-index: 50;
  background: var(--topbar-1); border-top: 1px solid var(--line); backdrop-filter: blur(26px);
  box-shadow: var(--shadow); }
.player-progress { position: absolute; top: -3px; left: 0; right: 0; height: 6px; background: var(--line); cursor: pointer; }
.seek-buffer, .seek-fill { position: absolute; left: 0; top: 0; height: 100%; width: 0; pointer-events: none; }
.seek-buffer { background: var(--panel-2); }
.seek-fill { background: linear-gradient(90deg, var(--mint), var(--violet)); }
.seek-knob { position: absolute; top: -3px; width: 12px; height: 12px; border-radius: 50%; background: var(--text); opacity: 0;
  transform: translateX(-50%); box-shadow: 0 0 14px var(--mint); transition: opacity .2s; pointer-events: none; }
.player-progress:hover .seek-knob { opacity: 1; }
.player-progress input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; margin: 0; }
.player-inner { height: 100%; display: grid; grid-template-columns: minmax(220px, 1fr) auto minmax(260px, 1fr); gap: 18px; align-items: center; padding: 0 26px; }
.now { display: flex; align-items: center; gap: 12px; min-width: 0; }
.now img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; background: var(--solid); }
.now-meta { min-width: 0; flex: 1; }
.now-title { font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.now-artist { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.controls { display: flex; align-items: center; gap: 8px; }
.play-btn { width: 48px; height: 48px; border-radius: 50%; border: 0; display: grid; place-items: center; padding-left: 3px;
  font-size: 18px; color: var(--on-accent); background: linear-gradient(135deg, var(--mint), var(--mint-2));
  box-shadow: 0 8px 26px var(--mint-glow); transition: transform .15s; }
.play-btn:hover { transform: scale(1.06); }
body.playing .play-btn { padding-left: 0; }
.player-tools { display: flex; align-items: center; justify-content: flex-end; gap: 8px; min-width: 0; }
.time { color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
#miniWave { width: 84px; height: 26px; opacity: .75; }
.volume { display: flex; align-items: center; gap: 4px; }
.volume input { width: 72px; accent-color: var(--mint); }
#speedBtn { font-size: 12px; font-weight: 800; }

.drawer { position: fixed; top: 0; right: 0; bottom: var(--player-h); width: min(380px, 92vw); z-index: 55;
  background: var(--solid); border-left: 1px solid var(--line); box-shadow: var(--shadow);
  transform: translateX(105%); transition: transform .28s ease; display: flex; flex-direction: column; }
.drawer.open { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { margin: 0; font-size: 17px; }
.drawer-body { padding: 14px; overflow: auto; flex: 1; }
.lyrics-body .line { padding: 7px 0; cursor: pointer; color: var(--muted); }
.lyrics-body .line.active { color: var(--mint); font-weight: 800; }
.queue-row { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; cursor: pointer; }
.queue-row:hover, .queue-row.active { background: var(--panel); }
.queue-row img { width: 42px; height: 42px; border-radius: 8px; object-fit: cover; }
.queue-row div { min-width: 0; flex: 1; }
.queue-row b { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.queue-row small { color: var(--muted); }
.overlay { position: fixed; inset: 0; z-index: 54; background: rgba(0,0,0,.5); backdrop-filter: blur(3px); }

.toast-stack { position: fixed; right: 20px; top: 20px; z-index: 90; display: flex; flex-direction: column; gap: 8px; }
.toast { padding: 12px 16px; border-radius: 12px; background: var(--solid); border: 1px solid var(--line); box-shadow: var(--shadow);
  animation: fadeUp .2s ease; max-width: 330px; }
.toast.err { border-color: var(--pink-line); }

.modal { border: 1px solid var(--line); border-radius: 22px; padding: 26px; width: min(520px, 94vw); max-height: 86vh; overflow: auto;
  background: var(--solid); color: var(--text); box-shadow: var(--shadow); }
.modal::backdrop { background: rgba(0,0,0,.68); backdrop-filter: blur(4px); }
.modal h3 { margin: 0 0 16px; font-size: 22px; }
.modal .field { margin-bottom: 13px; }
.modal label, .field-label { display: block; margin-bottom: 5px; color: var(--muted); font-size: 12px; font-weight: 700; }
.modal input, .modal textarea, .modal select { width: 100%; padding: 11px 13px; border-radius: 11px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); outline: none; }
.modal input:focus, .modal textarea:focus { border-color: var(--mint); }
.modal textarea { min-height: 90px; resize: vertical; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }
.modal-hint { color: var(--muted); font-size: 11px; margin-top: 4px; }

.concert { position: fixed; inset: 0; z-index: 80; background: var(--topbar-1); display: none; place-items: center; }
.concert.open { display: grid; }
.concert canvas { width: 100%; height: 100%; }
.concert button { position: absolute; right: 24px; top: 24px; }

@media (max-width: 1100px) {
  .player-inner { grid-template-columns: 1fr auto; }
  .player-tools { grid-column: 1 / -1; justify-content: center; padding-bottom: 6px; }
  :root { --player-h: 118px; }
  .sidebar { width: 210px; flex-basis: 210px; }
}
@media (max-width: 820px) {
  :root { --player-h: 126px; }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; transform: translateX(-105%); transition: transform .25s; width: 260px; }
  .sidebar.open { transform: none; }
  .menu-btn { display: grid; }
  .topbar, .view, .site-foot { padding-left: 18px; padding-right: 18px; }
  .hero, .detail { grid-template-columns: 1fr; }
  .hero-art, .detail-cover { max-width: 300px; }
  .list-row { grid-template-columns: 26px 40px minmax(100px, 1fr) auto auto; }
  .row-tags, .row-time { display: none; }
  .player-inner { padding: 0 14px; gap: 8px; }
  #miniWave, #speedBtn, #sleepBtn { display: none; }
}
@media (max-width: 520px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .mood-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { padding: 20px; }
  .player-tools { gap: 4px; }
  .volume input { width: 48px; }
  .brand-text small { display: none; }
}
