:root {
  --bg: #09090e;
  --elev: #12121a;
  --elev-2: #1a1a24;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f5f5f8;
  --muted: #9b9bac;
  --faint: #6f6f82;
  --accent: #8b5cf6;
  --accent-2: #c4b5fd;
  --accent-dim: #241b36;
  --premium: #f5b942;
  --free: #34d399;
  --danger: #fb7185;
  --nav: 58px;
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.32);
  --radius: 16px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body {
  font: 15px/1.45 ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  min-height: 100vh;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }

.top {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--nav);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  background: rgba(9, 9, 14, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  padding: 0;
  font-weight: 750;
  letter-spacing: -0.03em;
  flex: 0 0 auto;
}
.mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, #c4b5fd, #6d28d9);
  color: white;
  font-size: 14px;
}
.search {
  flex: 1;
  min-width: 0;
  background: var(--elev);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  outline: none;
}
.search:focus { border-color: rgba(139, 92, 246, 0.75); }
.icon-btn, .avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--elev);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.avatar { background: #6d28d9; border: 0; font-weight: 700; }

.filters {
  position: sticky;
  top: var(--nav);
  z-index: 25;
  display: flex;
  gap: 8px;
  padding: 10px 14px;
  overflow-x: auto;
  background: rgba(9, 9, 14, 0.96);
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}
.filters::-webkit-scrollbar { display: none; }
.chip {
  border: 1px solid var(--line);
  background: var(--elev);
  color: var(--muted);
  border-radius: 999px;
  padding: 7px 12px;
  white-space: nowrap;
}
.chip[aria-pressed="true"] {
  background: var(--accent-dim);
  color: var(--accent-2);
  border-color: rgba(139, 92, 246, 0.5);
}

main {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  padding: 16px 0 88px;
}
.section-head, .album-top {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
  margin: 2px 0 14px;
}
h1 { margin: 0; font-size: 22px; letter-spacing: -0.04em; }
.muted, .count, .handle, .cap { color: var(--muted); }
.count, .handle, .cap { font-size: 13px; }
.back {
  border: 0;
  background: transparent;
  color: var(--accent-2);
  padding: 0 0 8px;
}

.grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 720px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  h1 { font-size: 26px; }
}
@media (min-width: 1040px) {
  .grid.albums { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .grid.media { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.card {
  display: block;
  width: 100%;
  padding: 0;
  text-align: left;
  background: var(--elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.card:focus-visible, .tile:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.cover {
  aspect-ratio: 1;
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 2px;
  background: #07070b;
}
.cover i { display: block; }
.cover i:first-child { grid-row: 1 / span 2; }
.meta { padding: 10px 12px 12px; }
.name { font-weight: 720; letter-spacing: -0.02em; }
.pills { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.pill {
  font-size: 11px;
  color: var(--accent-2);
  background: var(--accent-dim);
  border-radius: 999px;
  padding: 3px 8px;
}

.tile { position: relative; border: 0; background: transparent; padding: 0; text-align: left; }
.frame {
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
}
.badge, .dur {
  position: absolute;
  z-index: 1;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.04em;
  border-radius: 999px;
  padding: 3px 6px;
}
.badge { top: 8px; left: 8px; background: rgba(0, 0, 0, 0.66); }
.badge.premium { color: var(--premium); }
.badge.free { color: var(--free); }
.dur { right: 8px; bottom: 8px; background: rgba(0, 0, 0, 0.72); }
.lock {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,.12));
}

.stage {
  background: #050508;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  position: relative;
}
@media (min-width: 800px) {
  .stage { aspect-ratio: 16 / 9; }
}
.stage video, .stage .ph {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gate {
  position: absolute;
  inset: auto 16px 16px;
  background: rgba(12, 12, 18, 0.88);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
}
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.btn, .btn-ghost {
  border-radius: 999px;
  padding: 8px 14px;
  border: 1px solid transparent;
}
.btn { background: var(--accent); color: white; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--text); }
.stats { display: flex; gap: 14px; color: var(--muted); font-size: 13px; margin-top: 8px; }

.form, .panel {
  background: var(--elev);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
}
label { display: block; margin: 0 0 12px; }
label span { display: block; color: var(--muted); font-size: 12px; margin-bottom: 6px; }
input[type="text"], input[type="password"], select, textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  outline: none;
}
textarea { min-height: 88px; resize: vertical; }
.drop {
  border: 1px dashed rgba(139, 92, 246, 0.55);
  border-radius: 14px;
  padding: 22px;
  text-align: center;
  color: var(--muted);
  background: #100e18;
}
.note { color: var(--faint); font-size: 12px; margin-top: 8px; }
.empty { color: var(--muted); padding: 28px 0; }
.toast {
  position: fixed;
  left: 50%;
  bottom: 78px;
  transform: translateX(-50%);
  background: #221b34;
  border: 1px solid rgba(139, 92, 246, 0.4);
  color: var(--accent-2);
  border-radius: 999px;
  padding: 8px 14px;
  z-index: 40;
}

.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  background: rgba(9, 9, 14, 0.94);
  border-top: 1px solid var(--line);
}
.dock button {
  border: 0;
  background: transparent;
  color: var(--faint);
  padding: 8px 4px;
  border-radius: 12px;
}
.dock button[aria-current="page"] { color: var(--accent-2); background: #1b1630; }
@media (min-width: 800px) { .dock { display: none; } main { padding-bottom: 40px; } }

.sheet {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.55);
  display: grid;
  align-items: end;
}
.sheet .panel { border-radius: 18px 18px 0 0; }
@media (min-width: 800px) {
  .sheet { align-items: start; justify-items: end; padding: 70px 18px; }
  .sheet .panel { width: 280px; border-radius: 18px; }
}

.c1 { background: linear-gradient(165deg, #4c2d86, #15111d); }
.dist { display: flex; gap: 10px; flex-wrap: wrap; color: var(--muted); font-size: 12px; margin-top: 4px; }
.bar { margin-top: 8px; height: 6px; width: min(280px, 100%); border-radius: 99px; background: #243044; overflow: hidden; }
.bar i { display: block; height: 100%; background: #8b5cf6; }
.cover { display: block; }
.cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.c2 { background: linear-gradient(165deg, #6a4634, #1a1411); }
.c3 { background: linear-gradient(165deg, #2c4668, #11161c); }
.c4 { background: linear-gradient(165deg, #4a3564, #16131b); }
.c5 { background: linear-gradient(165deg, #315244, #111614); }
.c6 { background: linear-gradient(165deg, #5c3850, #181216); }
.c7 { background: linear-gradient(165deg, #3d4a2e, #14160f); }
.c8 { background: linear-gradient(165deg, #2f3f5c, #12141a); }
