@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  --bg: #000;
  --bg-soft: #070707;
  --panel: #121212;
  --panel-2: #181818;
  --panel-3: #242424;
  --panel-4: #2f2f2f;
  --text: #fff;
  --muted: #a7a7a7;
  --muted-2: #777;
  --line: rgba(255,255,255,.09);
  --line-strong: rgba(255,255,255,.16);
  --green: #1ed760;
  --green-2: #1db954;
  --danger: #ef4444;
  --warning: #f59e0b;
  --info: #38bdf8;
  --radius: 22px;
  --shadow: 0 28px 80px rgba(0,0,0,.45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  padding-bottom: 104px;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: #000;
}

body.auth-page { padding-bottom: 0; display: grid; place-items: center; min-height: 100vh; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; border: 0; }
img, svg { display: block; max-width: 100%; }

.app-shell {
  display: grid;
  grid-template-columns: 286px minmax(0, 1fr);
  min-height: calc(100vh - 104px);
}

.sidebar {
  position: sticky;
  top: 0;
  height: calc(100vh - 104px);
  padding: 24px 16px;
  background: rgba(0,0,0,.9);
  border-right: 1px solid var(--line);
  overflow-y: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  margin-bottom: 28px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -.04em;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #001b08;
  background: var(--green);
  box-shadow: 0 12px 32px rgba(30,215,96,.28);
}

.side-nav {
  display: grid;
  gap: 8px;
}

.side-nav a {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 14px;
  color: var(--muted);
  font-weight: 800;
  transition: .18s ease;
}

.side-nav a:hover,
.side-nav a.active {
  color: var(--text);
  background: var(--panel-2);
}

.side-card {
  margin-top: 28px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(30,215,96,.13), rgba(255,255,255,.055));
}

.side-card h3 { margin: 7px 0 8px; }
.side-card p { margin: 0 0 14px; color: var(--muted); line-height: 1.55; }

.main-content {
  min-width: 0;
  padding: 18px 24px 36px;
  background:
    linear-gradient(180deg, rgba(39,39,39,.88) 0, rgba(18,18,18,.86) 260px, rgba(0,0,0,.95) 100%);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 12;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 66px;
  padding: 10px 0;
  backdrop-filter: blur(20px);
}

.search-form {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(760px, 100%);
}

.search-form.wide-form { width: min(980px, 100%); }
.public-search { margin-left: auto; max-width: 620px; }

.search-form input,
.auth-form input,
.select-control {
  width: 100%;
  min-height: 46px;
  padding: 0 17px;
  color: #111;
  border: 1px solid transparent;
  border-radius: 999px;
  outline: none;
  background: #fff;
}

.select-control {
  width: auto;
  min-width: 148px;
  appearance: none;
  background: #fff;
}

.search-form input:focus,
.auth-form input:focus,
.select-control:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(30,215,96,.16);
}

.profile-pill {
  margin-left: auto;
  padding: 10px 16px;
  border-radius: 999px;
  color: #fff;
  font-weight: 900;
  background: rgba(255,255,255,.1);
  border: 1px solid var(--line);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  align-items: end;
  gap: 28px;
  min-height: 348px;
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(30,215,96,.42), rgba(20,20,20,.92));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.slim-hero { min-height: 260px; }
.public-hero { margin-top: 18px; }

.hero h1 {
  max-width: 860px;
  margin: 8px 0 14px;
  font-size: clamp(40px, 7vw, 78px);
  line-height: .94;
  letter-spacing: -.075em;
}

.hero-text {
  max-width: 680px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero-album {
  display: grid;
  gap: 10px;
  justify-items: center;
  padding: 16px;
  text-align: center;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 24px;
  background: rgba(0,0,0,.24);
  backdrop-filter: blur(14px);
}

.hero-album strong { max-width: 210px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-album span { max-width: 210px; color: rgba(255,255,255,.72); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.album-art {
  display: grid;
  place-items: center;
  width: 190px;
  aspect-ratio: 1;
  border-radius: 24px;
  font-size: 58px;
  font-weight: 900;
  box-shadow: 0 22px 60px rgba(0,0,0,.35);
}

.eyebrow {
  margin: 0;
  color: rgba(255,255,255,.68);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.muted { color: var(--muted); }
.muted-link { display: inline-flex; margin-top: 18px; color: var(--muted); font-weight: 700; }
.section-link { color: var(--muted); font-weight: 800; }
.section-link:hover { color: var(--green); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 17px;
  border-radius: 999px;
  font-weight: 900;
  white-space: nowrap;
  transition: transform .16s ease, background .16s ease, color .16s ease, border-color .16s ease;
}

.btn:hover { transform: translateY(-1px) scale(1.015); }
.btn.primary { color: #001b08; background: var(--green); }
.btn.primary:hover { background: #2df56f; }
.btn.ghost { color: #fff; background: rgba(255,255,255,.09); border: 1px solid var(--line-strong); }
.btn.subtle { color: #fff; background: rgba(255,255,255,.075); border: 1px solid var(--line); }
.btn.danger { color: #fff; background: rgba(239,68,68,.95); }
.btn.ghost-danger { color: #fecaca; background: rgba(239,68,68,.09); border: 1px solid rgba(239,68,68,.24); }
.btn.big { min-height: 50px; padding: 0 24px; }
.btn.full { width: 100%; }

.notice {
  margin: 12px 0 18px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: #fff;
  font-weight: 700;
}

.notice.success { border-color: rgba(30,215,96,.26); background: rgba(30,215,96,.11); }
.notice.error { border-color: rgba(239,68,68,.28); background: rgba(239,68,68,.13); }
.notice.info { border-color: rgba(56,189,248,.28); background: rgba(56,189,248,.12); }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.stats-grid article {
  min-height: 110px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.055);
}

.stats-grid span { display: block; margin-bottom: 10px; color: var(--muted); font-weight: 800; }
.stats-grid strong { font-size: clamp(26px, 3vw, 40px); letter-spacing: -.04em; }

.mini-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.quick-section,
.section-block,
.panel-grid { margin-top: 34px; }

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.section-head h2 {
  margin: 6px 0 0;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -.05em;
}

.shortcut-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.shortcut-card {
  min-height: 150px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-2);
  transition: .18s ease;
}

.shortcut-card:hover { transform: translateY(-3px); background: var(--panel-3); }
.shortcut-card span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; background: rgba(30,215,96,.15); color: var(--green); font-weight: 900; }
.shortcut-card strong { display: block; margin-top: 16px; font-size: 18px; }
.shortcut-card em { display: block; margin-top: 6px; color: var(--muted); font-style: normal; }

.panel-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 18px;
}

.panel {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(18,18,18,.92);
}

.upload-form { display: grid; gap: 14px; }

.drop-zone {
  display: grid;
  place-items: center;
  gap: 9px;
  min-height: 230px;
  padding: 22px;
  text-align: center;
  border: 1.5px dashed rgba(255,255,255,.22);
  border-radius: 24px;
  background: rgba(255,255,255,.04);
  transition: .16s ease;
}

.drop-zone.is-dragover {
  border-color: var(--green);
  background: rgba(30,215,96,.1);
}

.drop-zone input { display: none; }
.drop-icon { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: var(--green); color: #001b08; font-size: 30px; font-weight: 900; }
.drop-zone small { color: var(--muted); }
.file-name { color: #fff; font-weight: 800; }

.mini-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.mini-list span {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--muted);
  background: rgba(255,255,255,.045);
}

.track-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.compact-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.track-card {
  position: relative;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel-2);
  transition: .18s ease;
}

.track-card:hover {
  transform: translateY(-3px);
  background: var(--panel-3);
}

.track-cover,
.single-cover,
.playlist-cover,
.mini-cover {
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  box-shadow: 0 18px 44px rgba(0,0,0,.32);
}

.track-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 20px;
  overflow: hidden;
}

.track-cover span { font-size: clamp(34px, 5vw, 60px); }
.track-cover em {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: #001b08;
  background: var(--green);
  opacity: 0;
  transform: translateY(8px);
  transition: .18s ease;
  font-style: normal;
}

.track-card:hover .track-cover em { opacity: 1; transform: translateY(0); }

.track-info h3 {
  margin: 14px 0 6px;
  font-size: 17px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-info p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.tag-row span {
  padding: 5px 8px;
  border-radius: 999px;
  color: #d7d7d7;
  background: rgba(255,255,255,.085);
  font-size: 11px;
  font-weight: 900;
}

.track-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}

.track-actions form { display: inline-flex; }

.favorite-btn.is-active {
  color: #001b08;
  background: var(--green);
  border-color: var(--green);
}

.track-list-table {
  display: grid;
  gap: 7px;
}

.table-row {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 82px auto;
  align-items: center;
  gap: 12px;
  min-height: 66px;
  padding: 10px 14px;
  border-radius: 16px;
  background: rgba(255,255,255,.04);
  border: 1px solid transparent;
  transition: .16s ease;
}

.table-row:hover {
  background: rgba(255,255,255,.075);
  border-color: var(--line);
}

.table-row > span {
  color: var(--muted);
  font-weight: 800;
}

.table-row button[data-play] {
  min-width: 0;
  padding: 0;
  color: #fff;
  text-align: left;
  background: transparent;
}

.table-row strong,
.table-row em {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.table-row em,
.table-row small {
  color: var(--muted);
  font-style: normal;
}

.row-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.library-tabs,
.playlist-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.library-tabs a,
.playlist-tabs a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 15px;
  border-radius: 999px;
  color: #fff;
  font-weight: 900;
  background: rgba(255,255,255,.08);
  border: 1px solid var(--line);
}

.library-tabs a.active,
.playlist-tabs a.active {
  color: #001b08;
  background: var(--green);
  border-color: var(--green);
}

.library-tabs span { color: inherit; opacity: .75; }

.public-layout {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 38px;
}

.public-header {
  position: sticky;
  top: 0;
  z-index: 12;
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 70px;
  padding: 10px 0;
  backdrop-filter: blur(20px);
}

.public-header .brand { margin-bottom: 0; }
.public-nav { display: flex; gap: 8px; }
.public-nav a {
  padding: 10px 13px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 800;
}
.public-nav a.active,
.public-nav a:hover { color: #fff; background: rgba(255,255,255,.08); }

.playlist-hero {
  display: flex;
  align-items: end;
  gap: 30px;
  min-height: 300px;
  padding: 50px 0 28px;
}

.playlist-cover,
.single-cover {
  width: min(240px, 34vw);
  aspect-ratio: 1;
  border-radius: 26px;
  font-size: 64px;
}

.playlist-hero h1 {
  margin: 8px 0 10px;
  font-size: clamp(48px, 8vw, 96px);
  line-height: .9;
  letter-spacing: -.08em;
}

.single-layout {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 104px);
  padding: 34px 16px;
}

.single-card {
  width: min(760px, 100%);
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 34px;
  text-align: center;
  background: rgba(18,18,18,.9);
  box-shadow: var(--shadow);
}

.pro-glow { position: relative; overflow: hidden; }
.pro-glow::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto;
  height: 300px;
  background: transparent;
  pointer-events: none;
}

.single-card > * { position: relative; }
.single-card .brand { justify-content: center; }
.single-cover { margin: 22px auto; }
.single-card h1 { margin: 10px 0; font-size: clamp(36px, 7vw, 70px); letter-spacing: -.06em; }
.single-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 26px; }

.empty-state {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255,255,255,.045);
  text-align: center;
}

.empty-state h3 { margin: 0 0 8px; }

.auth-card {
  width: min(460px, calc(100% - 32px));
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(18,18,18,.92);
  box-shadow: var(--shadow);
}

.auth-brand { margin-bottom: 24px; }
.auth-card h1 { margin: 8px 0 8px; font-size: 42px; letter-spacing: -.06em; }
.auth-form { display: grid; gap: 12px; margin-top: 22px; }
.auth-form label { color: var(--muted); font-weight: 800; }

.player-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 560px) minmax(190px, 1fr);
  align-items: center;
  gap: 18px;
  height: 104px;
  padding: 14px 22px;
  border-top: 1px solid var(--line);
  background: rgba(18,18,18,.98);
  backdrop-filter: blur(20px);
}

.player-track {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
}

.mini-cover {
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  border-radius: 12px;
  background: var(--panel-4);
}

.player-track strong,
.player-track span {
  display: block;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-track span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.player-center {
  display: grid;
  grid-template-columns: 42px 48px 42px;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.icon-btn,
.main-play,
.queue-btn {
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: transparent;
  font-weight: 900;
}

.icon-btn { width: 42px; height: 42px; }
.main-play {
  width: 48px;
  height: 48px;
  color: #000;
  background: #fff;
}
.main-play.is-playing { background: var(--green); }

.progress-wrap {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 46px;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.progress-wrap input,
.volume-control input {
  width: 100%;
  accent-color: var(--green);
}

.player-extra {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.volume-control {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.volume-control input { width: 90px; }

.queue-btn {
  width: auto;
  min-height: 38px;
  padding: 0 13px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid var(--line);
}

.copy-toast {
  position: absolute;
  right: 22px;
  bottom: 112px;
  padding: 10px 13px;
  border-radius: 999px;
  color: #001b08;
  background: var(--green);
  font-size: 13px;
  font-weight: 900;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: .18s ease;
}

.copy-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.queue-drawer {
  position: fixed;
  right: 18px;
  bottom: 118px;
  z-index: 29;
  width: min(380px, calc(100vw - 36px));
  max-height: min(520px, calc(100vh - 150px));
  display: none;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(18,18,18,.98);
  box-shadow: var(--shadow);
}

.queue-drawer.is-open { display: block; }

.queue-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.queue-head button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #fff;
  background: rgba(255,255,255,.08);
  font-size: 20px;
}

.queue-list {
  display: grid;
  gap: 6px;
  padding: 10px;
  overflow-y: auto;
  max-height: 448px;
}

.queue-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 9px;
  border-radius: 14px;
  color: #fff;
  text-align: left;
  background: transparent;
}

.queue-item:hover,
.queue-item.is-current {
  background: rgba(255,255,255,.08);
}

.queue-thumb {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--panel-4);
  font-weight: 900;
}

.queue-item strong,
.queue-item span {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.queue-item span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.gradient-a { background: linear-gradient(135deg, #1ed760, #087c37); }
.gradient-b { background: linear-gradient(135deg, #7c3aed, #db2777); }
.gradient-1 { background: linear-gradient(135deg, #1ed760, #087c37); }
.gradient-2 { background: linear-gradient(135deg, #7c3aed, #db2777); }
.gradient-3 { background: linear-gradient(135deg, #0ea5e9, #1d4ed8); }
.gradient-4 { background: linear-gradient(135deg, #f97316, #be123c); }
.gradient-5 { background: linear-gradient(135deg, #14b8a6, #334155); }
.gradient-6 { background: linear-gradient(135deg, #facc15, #ea580c); color: #1b1300; }

[hidden] { display: none !important; }

@media (max-width: 1180px) {
  .track-grid,
  .compact-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .shortcut-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  body { padding-bottom: 140px; }
  .app-shell { grid-template-columns: 1fr; }
  .sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .side-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .side-card { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero-album { justify-items: start; text-align: left; }
  .album-art { width: 150px; }
  .panel-grid { grid-template-columns: 1fr; }
  .track-grid,
  .compact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .player-bar {
    grid-template-columns: 1fr;
    height: 140px;
    gap: 8px;
  }
  .player-center { width: 100%; grid-template-columns: 42px 48px 42px; }
  .player-extra { justify-content: center; }
}

@media (max-width: 720px) {
  .main-content { padding: 14px; }
  .public-layout { width: min(100% - 24px, 1240px); }
  .public-header { align-items: stretch; flex-direction: column; }
  .public-nav { overflow-x: auto; padding-bottom: 2px; }
  .search-form,
  .search-form.wide-form { flex-wrap: wrap; }
  .search-form input { flex: 1 1 100%; }
  .select-control { flex: 1 1 auto; }
  .hero { padding: 28px; min-height: 300px; border-radius: 24px; }
  .hero h1 { font-size: clamp(34px, 12vw, 54px); }
  .side-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .track-grid,
  .compact-grid,
  .shortcut-grid,
  .stats-grid,
  .mini-stats { grid-template-columns: 1fr; }
  .table-row {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 8px;
  }
  .table-row small,
  .row-actions { grid-column: 2; justify-content: flex-start; }
  .playlist-hero { align-items: flex-start; flex-direction: column; }
  .playlist-cover,
  .single-cover { width: 180px; }
  .playlist-hero h1 { font-size: clamp(42px, 14vw, 68px); }
  .volume-control { display: none; }
}

@media (max-width: 480px) {
  body { padding-bottom: 154px; }
  .brand { font-size: 18px; }
  .brand-mark { width: 38px; height: 38px; }
  .sidebar { padding: 18px 12px; }
  .hero { padding: 22px; }
  .panel { padding: 18px; }
  .track-actions .btn,
  .row-actions .btn { min-height: 38px; padding: 0 12px; }
  .player-bar { height: 154px; padding: 12px; }
  .mini-cover { width: 50px; height: 50px; }
  .queue-drawer { right: 10px; bottom: 164px; width: calc(100vw - 20px); }
}


/* v4 audio performance and polish */
.main-play.is-loading {
  position: relative;
  color: transparent !important;
}
.main-play.is-loading::after {
  content: "";
  position: absolute;
  inset: 9px;
  border: 3px solid rgba(0,0,0,.25);
  border-top-color: #000;
  border-radius: 999px;
  animation: ravenSpin .8s linear infinite;
}
body.is-player-loading .player-bar {
  box-shadow: 0 -1px 0 rgba(255,255,255,.08), 0 -18px 60px rgba(30,215,96,.09);
}
[data-play].is-current,
.is-current-card {
  outline: 1px solid rgba(30,215,96,.45);
  background: rgba(30,215,96,.08) !important;
}
.queue-item.is-current {
  background: rgba(30,215,96,.12);
  border-color: rgba(30,215,96,.35);
}
.favorite-btn.is-active {
  color: #1ed760;
  border-color: rgba(30,215,96,.45);
  background: rgba(30,215,96,.12);
}
.player-bar audio {
  display: none;
}
@keyframes ravenSpin {
  to { transform: rotate(360deg); }
}

/* v5 production polish */
:root { color-scheme: dark; }
.notice.warning { border-color: rgba(245,158,11,.34); background: rgba(245,158,11,.14); color: #fff7ed; }
form { margin: 0; }
.track-actions form,
.row-actions form { display: inline-flex; }
.track-actions { align-items: center; }
.row-actions { align-items: center; flex-wrap: wrap; }
.btn.ghost-danger:hover { border-color: rgba(239,68,68,.55); background: rgba(239,68,68,.18); }
.drop-zone.is-uploading { opacity: .72; pointer-events: none; }
#uploadButton.is-uploading::after { content: "…"; }
.sidebar::-webkit-scrollbar,
.queue-list::-webkit-scrollbar { width: 8px; }
.sidebar::-webkit-scrollbar-thumb,
.queue-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,.16); border-radius: 999px; }
.table-row.is-current-card small { color: #d1fae5; }
.track-card.is-current-card .track-cover { box-shadow: 0 24px 70px rgba(30,215,96,.26); }
.public-search { margin-left: auto; }
.mini-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.auth-card .notice { text-align: left; }
.track-cover:focus-visible,
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible { outline: 3px solid rgba(30,215,96,.55); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .001ms !important; }
}
@media (max-width: 720px) {
  .track-actions,
  .row-actions { gap: 6px; }
  .track-actions form,
  .row-actions form { flex: 1 1 auto; }
  .track-actions .btn,
  .row-actions .btn { width: 100%; }
  .public-search { margin-left: 0; }
}


/* Production polish - sade yayin gorunumu */
body { background: #000 !important; }
.main-content { background: linear-gradient(180deg, rgba(18,18,18,.96) 0, rgba(0,0,0,.98) 320px, #000 100%) !important; }
.side-card { background: var(--panel) !important; }
.hero, .playlist-hero, .single-card, .auth-card, .section-block { box-shadow: none !important; }
.clean-hero { min-height: 360px; background: linear-gradient(135deg, rgba(30,215,96,.14), rgba(255,255,255,.035)); }
.track-cover-wrap { width: 100%; padding: 0; border: 0; background: transparent; border-radius: 20px; overflow: hidden; }
.track-cover.has-cover, .single-cover-wrap img, .album-img, .edit-cover img { background-size: cover; background-position: center; object-fit: cover; }
.track-cover.has-cover span { display: none; }
.single-cover-wrap { width: min(340px, 76vw); aspect-ratio: 1; margin: 24px auto; border-radius: 32px; overflow: hidden; background: var(--panel-2); }
.single-cover-wrap img { width: 100%; height: 100%; }
.album-img { width: 210px; height: 210px; border-radius: 28px; }
.admin-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; }
.admin-top h1 { margin: 0; font-size: clamp(28px, 5vw, 48px); letter-spacing: -.05em; }
.admin-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 18px; }
.settings-form, .metadata-form, .upload-box { display: grid; gap: 14px; }
.settings-form label, .metadata-form label { display: grid; gap: 8px; color: var(--muted); font-size: 13px; font-weight: 800; }
.settings-form input:not([type="checkbox"]), .metadata-form input:not([type="checkbox"]), .upload-box input[type="file"] { width: 100%; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; background: var(--panel-2); color: var(--text); }
.check-row { display: flex !important; grid-template-columns: none !important; align-items: center; gap: 10px !important; }
.check-row input { width: auto; }
.upload-box { min-height: 180px; place-content: center; border: 1px dashed var(--line-strong); border-radius: 22px; background: rgba(255,255,255,.025); padding: 22px; }
.edit-panel { border-color: rgba(30,215,96,.28); }
.metadata-form { grid-template-columns: 260px minmax(0,1fr); align-items: start; }
.edit-cover { display: grid; gap: 12px; }
.edit-cover img, .edit-cover .album-art { width: 240px; height: 240px; border-radius: 24px; }
.edit-fields { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; grid-column: 1 / -1; }
.table-row small { white-space: nowrap; }
.track-card .track-cover { pointer-events: none; }
.queue-btn.is-active { color: #001b08; background: var(--green); }
.mini-cover.has-img { background-size: cover; background-position: center; color: transparent; }
@media (max-width: 900px) { .admin-grid, .metadata-form, .edit-fields { grid-template-columns: 1fr; } .admin-top { align-items: flex-start; flex-direction: column; } }
