@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600;700&family=Raleway:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg0: #0e0e12;
  --bg1: #13131a;
  --panel: rgba(22, 22, 30, 0.92);
  --panel2: rgba(26, 26, 34, 0.97);
  --panel-solid: #161620;
  --line: rgba(255, 255, 255, 0.10);
  --line2: rgba(255, 255, 255, 0.18);
  --line3: rgba(255, 255, 255, 0.28);
  --text: #f2f2f2;
  --muted: rgba(242, 242, 242, 0.62);
  --muted2: rgba(242, 242, 242, 0.38);
  --blue: #d4d4d4;
  --cyan: #a0a0a0;
  --good: #6db896;
  --warn: #b8a060;
  --bad: #c87272;
  --glow: 0 0 18px rgba(255, 255, 255, 0.07), 0 0 42px rgba(200, 200, 200, 0.04);
  --glow-intense: 0 0 24px rgba(255, 255, 255, 0.12), 0 0 64px rgba(200, 200, 200, 0.07);
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.88);
  --shadow2: 0 10px 32px rgba(0, 0, 0, 0.75);
  --radius: 18px;
  --radius2: 14px;
  --radius-sm: 12px;
  --topbar-h: 64px;
  --footer-h: 92px;
  --maxw: 1350px;
  --mono: 'IBM Plex Mono', ui-monospace, "SF Mono", Menlo, Monaco, monospace;
  --sans: 'Raleway', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --transition-fast: 0.15s ease;
  --transition-med: 0.25s ease;
  --side-pad: clamp(14px, 3.5vw, 56px);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background: radial-gradient(1400px 700px at 15% 5%, rgba(255, 255, 255, 0.015), transparent 55%), radial-gradient(900px 600px at 85% 25%, rgba(200, 200, 200, 0.010), transparent 55%), radial-gradient(700px 500px at 50% 95%, rgba(180, 180, 180, 0.008), transparent 60%), linear-gradient(165deg, #0c0c14 0%, #0a0a10 40%, #0e0e16 100%);
  background-attachment: fixed;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: url('/assets/images/bg-waves.svg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  pointer-events: none;
  opacity: 1;
}

a, button, input, select, textarea, [role="button"] {
  -webkit-tap-highlight-color: transparent;
}

.btn:active {
  transform: scale(0.95);
  opacity: 0.9;
  color: var(--text);
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--panel-solid);
  color: var(--text);
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line2);
  font-family: var(--mono);
  font-size: 13px;
  text-decoration: none;
  z-index: 1000;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 10px;
}

.fx {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  contain: strict;
}

.fx::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient( to bottom, rgba(255, 255, 255, 0.012) 0px, rgba(255, 255, 255, 0.012) 1px, transparent 2px, transparent 4px ), repeating-linear-gradient( to right, rgba(255, 255, 255, 0.006) 0px, rgba(255, 255, 255, 0.006) 1px, transparent 2px, transparent 40px );
  opacity: 0.55;
  mix-blend-mode: overlay;
}

.fx::after {
  content: "";
  position: absolute;
  inset: -50px;
  background: radial-gradient(ellipse at 30% 40%, rgba(180, 180, 180, 0.03), transparent 50%), radial-gradient(ellipse at 70% 70%, rgba(140, 140, 140, 0.02), transparent 50%), radial-gradient(ellipse at 50% 10%, rgba(220, 220, 220, 0.02), transparent 45%);
  filter: blur(16px);
  opacity: 0.55;
  transform: translate3d(0, 0, 0);
  animation: drift 12s ease-in-out infinite alternate;
  will-change: transform;
}

.app {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding-bottom: calc(var(--footer-h) + 22px);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: auto;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  min-height: 68px;
  background: linear-gradient(180deg, rgba(12, 12, 16, 0.94), rgba(5, 5, 8, 0.88)), radial-gradient(700px 90px at 50% 0%, rgba(255, 255, 255, 0.07), transparent 70%);
  isolation: isolate;
  border-bottom: 0;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.045) inset, 0 14px 42px rgba(0, 0, 0, 0.58);
}

.topbar-inner {
  max-width: 100%;
  margin: 0;
  padding: 7px var(--side-pad);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  min-height: 68px;
  padding-top: 10px;
  padding-bottom: 10px;
  gap: 9px 14px;
}

.brand {
  order: 1;
  display: flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  color: inherit;
  flex: 0 0 auto;
  min-height: 42px;
  padding: 3px 6px 3px 0;
}

.logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--line2);
  box-shadow: var(--glow);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(to top, var(--cyan), rgba(200, 200, 200, 0.08)) calc(50% - 7px) calc(100% - 6px) / 4px 11px no-repeat, linear-gradient(to top, var(--blue), rgba(220, 220, 220, 0.08)) 50% calc(100% - 6px) / 4px 20px no-repeat, linear-gradient(to top, #e0e0e0, rgba(200, 200, 200, 0.10)) calc(50% + 7px) calc(100% - 6px) / 4px 7px no-repeat, linear-gradient(145deg, #050505 55%, rgba(200, 200, 200, 0.04));
  animation: eq-logo 2s ease-in-out infinite;
}

.logo::after {
  display: none;
}

.logo-custom {
  height: 36px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.brand .title .highlight {
  color: #ffffff;
  text-shadow: 0 0 14px rgba(255, 255, 255, 0.18);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand .title {
  margin: 0;
  font-family: var(--mono);
  font-weight: 800;
  font-size: 15px;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.brand .sub {
  margin: 0;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(242, 242, 242, 0.48);
}

.nav-wrap {
  order: 2;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex: 0 0 auto;
  min-width: 0;
  margin-left: auto;
}

.burger {
  display: none;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background var(--transition-fast);
  height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025));
  color: rgba(242, 242, 242, 0.76);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 10px 28px rgba(0, 0, 0, 0.24);
}

.burger:hover, .burger:focus-visible {
  background: rgba(255, 255, 255, 0.04);
}

.burger-icon {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 14px;
}

.burger-icon span {
  display: block;
  border-radius: 1px;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
  height: 1.5px;
  background: currentColor;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.30);
}

.burger[aria-expanded="true"] .burger-icon span:nth-child(1) {
  transform: rotate(45deg) translate(3px, 4px);
}

.burger[aria-expanded="true"] .burger-icon span:nth-child(2) {
  opacity: 0;
}

.burger[aria-expanded="true"] .burger-icon span:nth-child(3) {
  transform: rotate(-45deg) translate(3px, -4px);
}

nav.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
  flex-wrap: nowrap;
  min-width: 0;
}

.nav a {
  text-decoration: none;
  color: rgba(220, 228, 238, 0.75);
  border: 1px solid transparent;
  height: 28px;
  padding: 0 7px;
  border-radius: 8px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
  white-space: nowrap;
}

.nav a:hover, .nav a:focus-visible {
  color: var(--text);
  background: transparent;
  border-color: transparent;
  border-bottom-color: rgba(255, 255, 255, 0.6);
  border-radius: 0;
}

.nav a.active, .nav a[aria-current="page"] {
  color: var(--text);
  font-weight: 600;
  background: transparent;
  border-color: transparent;
  border-bottom-color: rgba(255, 255, 255, 0.6);
  border-radius: 0;
}

.nav-logout {
  text-decoration: none;
  color: var(--muted);
  border: 1px solid transparent;
  height: 28px;
  padding: 0 7px;
  border-radius: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  background: transparent;
  cursor: pointer;
  transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
  white-space: nowrap;
}

.nav-logout:hover, .nav-logout:focus-visible {
  color: #ff6b6b;
  background: rgba(255, 107, 107, 0.12);
  border-color: rgba(255, 107, 107, 0.3);
}

.nav-logout[hidden] {
  display: none !important;
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
  margin-left: 4px;
  padding-left: 8px;
  border-left: 1px solid var(--line);
}

.lang-btn {
  text-decoration: none;
  color: var(--muted);
  border: 1px solid transparent;
  font-family: var(--mono);
  font-weight: 500;
  letter-spacing: 0.06em;
  display: inline-flex;
  align-items: center;
  transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
  border-radius: 8px;
  font-size: 11px;
  height: 26px;
  padding: 0 8px;
}

.lang-btn:hover, .lang-btn:focus-visible {
  color: var(--text);
  background: rgba(255, 255, 255, .06);
  border-color: var(--line2);
}

.lang-btn.active {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
}

form.search {
  order: 3;
  display: flex;
  align-items: center;
  flex: 1 0 100%;
  min-width: 120px;
  border-color: rgba(255, 255, 255, 0.085);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012)), rgba(4, 4, 6, 0.96);
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  transition: border-color var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
  min-height: 36px;
  height: 36px;
  padding: 0 13px;
  border-radius: 14px;
  gap: 7px;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.46), 0 0 0 1px rgba(255, 255, 255, 0.045) inset, 0 0 22px rgba(255, 255, 255, 0.045);
}

form.search:focus-within {
  border-color: rgba(255, 255, 255, 0.46);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025)), rgba(2, 2, 4, 0.99);
  transform: translateY(-1px);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.54), 0 0 0 1px rgba(255, 255, 255, 0.085) inset, 0 0 30px rgba(255, 255, 255, 0.085), var(--glow);
}

.search-icon {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  color: var(--muted2);
}

form.search input {
  width: 100%;
  background: transparent;
  border: 0;
  outline: none;
  font-family: var(--mono);
  letter-spacing: 0.03em;
  position: relative;
  z-index: 1;
  font-weight: 500;
  color: var(--text);
  font-size: 12px;
  line-height: 1;
}

form.search input::placeholder {
  color: rgba(242, 242, 242, 0.54);
}

main {
  max-width: 100%;
  margin: 10px 0 0;
  padding: 0 var(--side-pad);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.panel {
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(14, 12, 9, 0.64), rgba(14, 12, 9, 0.42));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.015) 0%, transparent 60%), radial-gradient(600px 180px at 50% 0%, rgba(255, 255, 255, 0.025), transparent 70%);
  pointer-events: none;
}

.tags-inline {
  order: 4;
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 0 100%;
  max-width: 100%;
  box-sizing: border-box;
  opacity: 0.92;
}

.tags-inline[hidden] {
  display: none !important;
}

.tags-scroll {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 5px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  flex: 1 1 auto;
  min-width: 0;
  padding: 2px 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.tags-scroll::-webkit-scrollbar {
  display: none;
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  background: rgba(8, 8, 8, 0.65);
  color: var(--text);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.03em;
  cursor: pointer;
  user-select: none;
  border-radius: 999px;
  transition: background var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast), color var(--transition-fast);
}

.tag-pill:hover, .tag-pill:focus-visible {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

.tag-pill.active {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05) inset, 0 2px 10px rgba(0, 0, 0, 0.4);
}

.tag-pill .count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  height: 14px;
  padding: 0 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.10);
  font-size: 8.5px;
  font-weight: 600;
  color: var(--muted);
  opacity: 1;
  letter-spacing: 0.02em;
}

.tag-controls {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
}

.tag-controls .btn.tiny {
  width: 24px;
  height: 24px;
  padding: 0;
  font-size: 12px;
  border-radius: 6px;
  background: rgba(220, 220, 220, 0.07);
  border-color: rgba(220, 220, 220, 0.12);
  color: var(--muted);
}

.tag-controls .btn.tiny:hover, .tag-controls .btn.tiny:focus-visible {
  background: rgba(220, 220, 220, 0.12);
  border-color: rgba(220, 220, 220, 0.20);
  color: var(--text);
  box-shadow: none;
  transform: none;
}

.active-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 var(--side-pad) 10px;
  max-width: 100%;
  margin: 0;
}

.active-tags:empty {
  display: none;
}

.active-tags .chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  font-family: var(--mono);
  font-size: 11px;
  cursor: pointer;
  user-select: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(220, 228, 238, 0.85);
  transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
}

.active-tags .chip::after {
  content: "×";
  font-size: 12px;
  opacity: 0.45;
  margin-left: 1px;
  font-weight: 400;
  transition: opacity var(--transition-fast);
}

.active-tags .chip:hover, .active-tags .chip:focus-visible {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.24);
  color: #fff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.05);
}

.list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.song {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px;
  border-radius: 16px;
  background: rgba(6, 6, 6, 0.90);
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.32);
  overflow: hidden;
  position: relative;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.song:hover {
  border-color: var(--line2);
}

.song::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.04), transparent 30%, transparent 70%, rgba(220, 220, 220, 0.03));
  opacity: 0.55;
  pointer-events: none;
}

.art {
  width: 66px;
  height: 66px;
  border-radius: 12px;
  background: rgba(14, 14, 14, 0.60);
  border: 1px solid var(--line);
  overflow: hidden;
  flex: 0 0 auto;
  box-shadow: var(--glow);
  align-self: center;
}

.art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.meta {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.meta .title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.meta .line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.meta .artist, .meta .album, .meta .dur {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.meta .line a.user-link {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--cyan);
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: color var(--transition-fast), text-shadow var(--transition-fast);
}

.meta .line a.user-link:hover, .meta .line a.user-link:focus-visible {
  color: var(--text);
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.18);
}

.song-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.song-tag {
  border: 1px solid var(--line);
  background: rgba(16, 20, 28, 0.45);
  font-family: var(--mono);
  color: rgba(220, 228, 238, 0.92);
  letter-spacing: 0.04em;
  border-radius: 999px;
  font-size: 10px;
  padding: 3px 8px;
  transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
  cursor: default;
}

.song-tag--more {
  color: var(--muted);
  border-color: rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.02);
  font-style: italic;
}

.song--pinned {
  position: relative;
  border-color: rgba(255, 255, 255, .12);
  box-shadow: 0 2px 16px rgba(0, 0, 0, .25);
  margin-bottom: 1.5rem;
}

.song-pinned-label {
  position: absolute;
  top: -1px;
  left: -1px;
  padding: .18em .55em;
  font-size: .65rem;
  font-weight: 500;
  letter-spacing: .05em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .4);
  border-radius: 0 0 5px 0;
  pointer-events: none;
  user-select: none;
}

.profile-card {
  position: relative;
  width: 100%;
  padding: clamp(16px, 2.4vw, 28px);
  border-radius: var(--radius);
  background: radial-gradient(720px 240px at 12% 0%, rgba(255, 255, 255, 0.045), transparent 60%), linear-gradient(180deg, rgba(10, 10, 10, 0.82), rgba(7, 7, 7, 0.52));
  border: 1px solid var(--line);
  box-shadow: var(--shadow2);
  overflow: hidden;
  isolation: isolate;
}

.profile-card::before {
  content: "";
  display: block;
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.025), transparent 35%, rgba(255, 255, 255, 0.012)), radial-gradient(280px 160px at 100% 0%, rgba(255, 255, 255, 0.035), transparent 70%);
  pointer-events: none;
}

.profile-banner {
  display: none;
}

.profile-content {
  column-gap: 20px;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  grid-template-areas: "avatar info action" "avatar stats action";
  align-items: center;
  gap: 10px 18px;
  padding: 0 0 20px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.profile-avatar {
  grid-column: 1;
  grid-row: 1 / 5;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.10), transparent 50%), linear-gradient(135deg, rgba(200, 200, 200, 0.06), var(--panel-solid));
  margin-top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 26px;
  font-weight: 800;
  color: var(--cyan);
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.18);
  overflow: hidden;
  flex-shrink: 0;
  grid-area: avatar;
  width: 84px;
  height: 84px;
  align-self: center;
  border: 1px solid var(--line3);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.55), var(--glow);
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-info {
  grid-column: 2;
  grid-row: 1;
  grid-area: info;
  min-width: 0;
  margin-top: 0;
}

.profile-username {
  margin: 0;
  font-weight: 800;
  color: var(--text);
  font-size: clamp(20px, 2.2vw, 30px);
  line-height: 1.05;
  letter-spacing: 0.01em;
}

.profile-handle {
  margin: 4px 0 0;
  font-family: var(--mono);
  color: var(--cyan);
  letter-spacing: 0.04em;
  margin-top: 6px;
  font-size: 12px;
}

.profile-bio {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--muted);
  max-width: 68ch;
  margin-top: 10px;
  line-height: 1.55;
}

.profile-meta {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted2);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}

.profile-meta svg {
  width: 12px;
  height: 12px;
}

.profile-stats {
  grid-column: 2;
  grid-row: 2;
  grid-area: stats;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 8px;
  margin-top: 0;
}

.profile-stat {
  display: flex;
  flex: none;
  transition: none;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  min-width: auto;
}

.profile-stat:hover {
  border-color: var(--line2);
  background: rgba(255, 255, 255, 0.055);
}

.profile-stat + .profile-stat {
  margin-left: 0;
  border-left: 1px solid var(--line);
  padding-left: 10px;
}

.profile-stat + .profile-stat::before {
  display: none;
}

.profile-stat-value {
  font-family: var(--mono);
  font-weight: 700;
  color: var(--text);
  line-height: 1;
  font-size: 13px;
}

.profile-stat-label {
  font-family: var(--mono);
  color: var(--muted2);
  text-transform: none;
  letter-spacing: 0.04em;
  margin-top: 0;
  font-size: 10px;
}

.profile-stat--highlight .profile-stat-value {
  color: var(--cyan);
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.18);
}

.profile-tabs {
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
  display: flex;
  gap: 4px;
  padding: 4px;
  margin: 0 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.22);
  overflow-x: auto;
  scrollbar-width: none;
}

.profile-tab {
  font-family: var(--mono);
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--muted2);
  background: transparent;
  border-bottom: 2px solid transparent;
  margin-right: 20px;
  margin-bottom: -1px;
  cursor: pointer;
  transition: color var(--transition-fast), border-color var(--transition-fast);
  flex: 0 0 auto;
  margin: 0;
  padding: 8px 14px;
  border: 0;
  border-radius: 999px;
  font-size: 10px;
  white-space: nowrap;
}

.profile-tab:hover {
  color: var(--muted);
}

.profile-tab.active {
  border-bottom-color: transparent;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.profile-section--hidden {
  display: none;
}

.profile-body .user-section-title {
  display: none;
}

.profile-follow {
  grid-column: 2;
  grid-row: 3;
  margin-top: 10px;
  display: flex;
  justify-content: flex-start;
}

.profile-follow-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(200, 200, 200, 0.50);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(200, 200, 200, 0.03));
  color: var(--cyan);
  font-family: var(--mono);
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all var(--transition-fast);
  min-width: 116px;
  height: 36px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 11px;
}

.profile-follow-btn:hover:not(:disabled), .profile-follow-btn:focus-visible:not(:disabled) {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.09), rgba(200, 200, 200, 0.06));
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.10), var(--glow);
  transform: translateY(-1px);
}

.profile-follow-btn:active:not(:disabled) {
  transform: translateY(0) scale(0.98);
}

.profile-follow-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.profile-follow-btn.is-following {
  background: rgba(16, 20, 28, 0.6);
  border-color: var(--line2);
  color: var(--muted);
}

.profile-follow-btn.is-following:hover:not(:disabled) {
  border-color: var(--bad);
  color: var(--bad);
  background: rgba(70, 120, 200, 0.10);
}

.profile-edit {
  grid-column: 2;
  grid-row: 3;
  margin-top: 10px;
  display: flex;
  justify-content: flex-start;
}

.profile-edit-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: unset;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: color var(--transition-fast);
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
}

.profile-edit-btn svg {
  width: 12px;
  height: 12px;
  opacity: 0.7;
  flex-shrink: 0;
}

.profile-edit-btn:hover, .profile-edit-btn:focus-visible {
  box-shadow: none;
  transform: none;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--line2);
}

.profile-edit-btn:active {
  transform: none;
}

.profile-body {
  position: relative;
  z-index: 1;
  padding: 0;
}

.profile-section:empty {
  display: none;
}

.user-section {
  margin-top: 28px;
}

.user-section-title {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--muted2);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 12px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.user-section-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.user-section .empty {
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  padding: 20px;
}

.user-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: var(--radius);
  background: rgba(10, 12, 18, 0.42);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.user-card:hover, .user-card:focus-visible {
  border-color: var(--line2);
  background: rgba(255, 255, 255, 0.04);
  outline: none;
}

.user-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(220, 220, 220, 0.06), var(--panel-solid));
  border: 2px solid var(--line2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-initials {
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 800;
  color: var(--cyan);
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.18);
}

.user-info {
  flex: 1;
  min-width: 0;
}

.user-name {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-handle {
  margin: 2px 0 0;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--cyan);
  opacity: 0.8;
}

.user-bio {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.user-action {
  flex-shrink: 0;
}

.user-action .btn {
  width: auto;
  height: 36px;
  padding: 0 16px;
  font-size: 12px;
  border-color: rgba(220, 220, 220, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: var(--cyan);
}

.user-action .btn:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(220, 220, 220, 0.22);
}

.actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  position: relative;
  z-index: 2;
  align-self: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius2);
  border: 1px solid var(--line);
  background: rgba(16, 20, 28, 0.52);
  color: var(--text);
  cursor: pointer;
  transition: transform var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
  user-select: none;
  font-family: var(--mono);
  font-size: 13px;
  -webkit-appearance: none;
  appearance: none;
}

.btn span {
  color: inherit;
}

.btn:hover, .btn:focus-visible {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--line2);
  box-shadow: var(--glow);
  color: var(--text);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn.primary {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--cyan);
}

.btn.primary span {
  color: var(--cyan);
}

.btn.primary:hover, .btn.primary:focus-visible, .btn.primary:active {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.16);
  color: var(--cyan);
}

.btn.is-on {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: var(--glow);
}

.btn.tiny {
  width: auto;
  height: 34px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: auto;
  height: 26px;
  padding: 0 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
  transition: color var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
  -webkit-appearance: none;
  appearance: none;
}

.btn-back:hover, .btn-back:focus-visible {
  color: var(--text);
  border-color: var(--line2);
  background: rgba(255, 255, 255, 0.04);
}

.btn.loading {
  position: relative;
  color: transparent;
}

.btn.loading::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid transparent;
  border-top-color: var(--cyan);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.btn.song-like {
  width: auto;
  padding: 0 10px;
  gap: 6px;
}

.btn.song-like strong {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  color: inherit;
  min-width: 14px;
}

.empty {
  padding: 20px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 16px;
  background: rgba(10, 9, 7, 0.35);
  text-align: center;
}

.loader {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}

.loader[hidden] {
  display: none !important;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: var(--glow);
  animation: pulse 1s ease-in-out infinite;
}

.dot:nth-child(2) {
  animation-delay: 0.12s;
  opacity: 0.9;
}

.dot:nth-child(3) {
  animation-delay: 0.24s;
  opacity: 0.8;
}

.footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--footer-h);
  z-index: 60;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.20), rgba(0, 0, 0, 0.92));
  border-top: 1px solid var(--line);
}

.footer-inner {
  max-width: 100%;
  margin: 0;
  height: 100%;
  padding: 10px var(--side-pad);
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-art {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line2);
  background: rgba(14, 14, 14, 0.60);
  box-shadow: var(--glow);
  flex: 0 0 auto;
}

.footer-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.footer-info {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-title {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.footer-sub {
  margin: 0;
  font-family: var(--mono);
  color: var(--muted);
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  letter-spacing: 0.04em;
}

.timeline {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.timeline span {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted2);
  width: 54px;
  text-align: center;
  flex: 0 0 auto;
}

.timeline input[type="range"] {
  width: 100%;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 2px;
  cursor: pointer;
  --p: 0%;
  background: linear-gradient( to right, var(--blue) 0%, var(--blue) var(--p), var(--line) var(--p), var(--line) 100% );
}

.timeline input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: var(--glow);
  cursor: pointer;
  transition: transform var(--transition-fast);
}

.timeline input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.timeline input[type="range"]::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: none;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: var(--glow);
  cursor: pointer;
}

.timeline input[type="range"]::-moz-range-progress {
  height: 4px;
  background: var(--blue);
  border-radius: 2px;
}

.footer-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.footer-controls .btn {
  width: 40px;
  height: 40px;
  border-radius: 15px;
}

.footer-timeline-mobile {
  display: none;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--footer-h) + 14px);
  transform: translateX(-50%) translateY(10px);
  z-index: 70;
  background: var(--panel-solid);
  border: 1px solid var(--line);
  border-radius: var(--radius2);
  padding: 10px 16px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-med), transform var(--transition-med);
  display: flex;
  align-items: center;
  gap: 8px;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.fullscreen-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.fullscreen-overlay.active {
  opacity: 1;
  visibility: visible;
}

.fullscreen-overlay.active[aria-hidden="true"] {
  aria-hidden: false;
}

.fullscreen-bg {
  position: absolute;
  inset: -50px;
  background-size: cover;
  background-position: center;
  filter: blur(60px) brightness(0.4) saturate(1.2);
  transform: scale(1.1);
  z-index: -2;
}

.fullscreen-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 30%, rgba(255, 255, 255, 0.04), transparent 60%), radial-gradient(ellipse at 20% 80%, rgba(200, 200, 200, 0.03), transparent 50%), linear-gradient(180deg, rgba(5, 7, 12, 0.6), rgba(5, 7, 12, 0.9));
}

.fullscreen-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient( to bottom, transparent 0px, transparent 2px, rgba(0, 0, 0, 0.15) 2px, rgba(0, 0, 0, 0.15) 4px );
  pointer-events: none;
  z-index: 10;
  opacity: 0.3;
}

.fullscreen-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line2);
  background: rgba(16, 20, 28, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text);
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast);
  z-index: 20;
}

.fullscreen-close:hover, .fullscreen-close:focus-visible {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--cyan);
  box-shadow: var(--glow);
}

.fullscreen-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  padding: 24px;
  max-width: 500px;
  width: 100%;
  z-index: 5;
}

.fullscreen-artwork {
  width: min(70vw, 380px);
  height: min(70vw, 380px);
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line2);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), var(--glow-intense);
  position: relative;
  animation: artwork-float 6s ease-in-out infinite;
}

.fullscreen-artwork img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fullscreen-artwork::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient( 135deg, rgba(255, 255, 255, 0.1) 0%, transparent 50% );
  pointer-events: none;
}

.fullscreen-info {
  text-align: center;
  max-width: 100%;
}

.fullscreen-title {
  margin: 0 0 8px;
  font-size: clamp(20px, 5vw, 28px);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.2;
  color: var(--text);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fullscreen-artist {
  margin: 0 0 4px;
  font-family: var(--mono);
  font-size: clamp(14px, 3vw, 16px);
  color: var(--cyan);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 0 20px rgba(220, 220, 220, 0.20);
}

.fullscreen-album {
  margin: 0;
  font-family: var(--mono);
  font-size: clamp(12px, 2.5vw, 14px);
  color: var(--muted);
  letter-spacing: 0.04em;
}

.fullscreen-progress {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  max-width: 400px;
}

.fullscreen-progress > span {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  min-width: 45px;
  text-align: center;
}

.fullscreen-progress-bar {
  flex: 1;
  height: 30px;
  background: transparent;
  cursor: pointer;
  position: relative;
}

.fullscreen-progress-bar::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 6px;
  transform: translateY(-50%);
  background: rgba(120, 190, 255, 0.15);
  border-radius: 3px;
  transition: height 0.15s ease;
}

.fullscreen-progress-bar:hover::before {
  height: 8px;
}

.fullscreen-progress-fill {
  position: absolute;
  top: 50%;
  left: 0;
  height: 6px;
  width: 0%;
  transform: translateY(-50%);
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  border-radius: 3px;
  transition: width 0.1s linear, height 0.15s ease;
}

.fullscreen-progress-bar:hover .fullscreen-progress-fill {
  height: 8px;
}

.fullscreen-progress-fill::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: var(--glow);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.fullscreen-progress-bar:hover .fullscreen-progress-fill::after {
  opacity: 1;
}

.fullscreen-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.fs-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--line2);
  background: rgba(16, 20, 28, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text);
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.fs-btn:hover, .fs-btn:focus-visible {
  transform: scale(1.08);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: var(--glow);
}

.fs-btn.is-on {
  border-color: var(--cyan);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: var(--glow);
}

.fs-btn--play {
  width: 72px;
  height: 72px;
  font-size: 24px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(200, 200, 200, 0.05));
  border-color: var(--cyan);
  box-shadow: var(--glow);
}

.fs-btn--play:hover, .fs-btn--play:focus-visible {
  transform: scale(1.1);
  box-shadow: var(--glow-intense);
}

.up-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.up-modal[hidden] {
  display: none !important;
}

.up-dialog {
  position: relative;
  width: 90%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  background: rgba(7, 10, 16, 0.97);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  padding: 18px;
}

.up-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(16, 20, 28, 0.6);
  color: var(--muted);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

.up-close:hover, .up-close:focus-visible {
  background: rgba(255, 107, 107, 0.15);
  border-color: rgba(255, 107, 107, 0.4);
  color: #ff6b6b;
}

.up-header {
  text-align: center;
  margin-bottom: 20px;
}

.up-header h2 {
  margin: 0 0 6px;
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.up-sub {
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.03em;
}

.up-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.up-drop {
  position: relative;
  border: 2px dashed var(--line2);
  border-radius: var(--radius);
  padding: 32px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.up-drop:hover, .up-drop:focus-visible, .up-drop.dragging {
  border-color: var(--cyan);
  background: rgba(255, 255, 255, 0.02);
}

.up-file {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.up-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  pointer-events: none;
}

.up-icon {
  width: 40px;
  height: 40px;
  color: var(--cyan);
  opacity: 0.8;
}

.up-cta strong {
  color: var(--text);
  font-family: var(--mono);
  font-size: 13px;
}

.up-link {
  color: var(--cyan);
  text-decoration: underline;
}

.up-hint {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}

.up-filechip {
  padding: 10px 14px;
  border-radius: 8px;
  font-family: var(--mono);
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.up-filechip.hidden {
  display: none;
}

.up-filechip.ok {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--cyan);
}

.up-filechip.bad {
  background: rgba(255, 107, 107, 0.1);
  border: 1px solid rgba(255, 107, 107, 0.3);
  color: #ff6b6b;
}

.up-filechip .size {
  opacity: 0.7;
  font-size: 11px;
}

.up-progress {
  position: relative;
  height: 6px;
  background: rgba(16, 20, 28, 0.6);
  border-radius: 3px;
  overflow: hidden;
}

.up-progress.hidden {
  display: none;
}

.up-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--cyan), var(--accent));
  border-radius: 3px;
  transition: width 0.2s ease;
}

.up-pct {
  position: absolute;
  right: 0;
  top: -18px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--cyan);
}

.up-actions {
  display: flex;
  gap: 10px;
}

.up-btn {
  flex: 1;
  height: 40px;
  border: 1px solid var(--line2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background var(--transition-fast), border-color var(--transition-fast), opacity var(--transition-fast);
}

.up-btn:hover:not(:disabled), .up-btn:focus-visible:not(:disabled) {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--cyan);
}

.up-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.up-btn.ghost {
  background: transparent;
  color: var(--muted);
  border-color: var(--line);
}

.up-btn.ghost:hover, .up-btn.ghost:focus-visible {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line2);
  color: var(--text);
}

.up-msg {
  text-align: center;
  font-family: var(--mono);
  font-size: 12px;
  min-height: 20px;
}

.up-msg .ok {
  color: var(--cyan);
}

.up-msg .err {
  color: #ff6b6b;
}

.ep-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(5, 7, 12, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.ep-modal[hidden] {
  display: none !important;
}

.ep-dialog {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  background: linear-gradient(180deg, rgba(16, 20, 28, 0.95), rgba(10, 14, 20, 0.98));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6), var(--glow);
  padding: 28px;
}

.ep-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 20px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.ep-close:hover, .ep-close:focus-visible {
  background: rgba(70, 120, 200, 0.14);
  border-color: var(--bad);
  color: var(--bad);
}

.ep-header {
  text-align: center;
  margin-bottom: 24px;
}

.ep-header h2 {
  margin: 0;
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.ep-header .ep-sub {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.ep-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ep-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ep-field label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.ep-field input[type="text"], .ep-field input[type="email"], .ep-field input[type="password"], .ep-field textarea {
  width: 100%;
  padding: 12px 14px;
  background: rgba(10, 14, 20, 0.6);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.ep-field input[type="text"]:focus, .ep-field input[type="email"]:focus, .ep-field input[type="password"]:focus, .ep-field textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.05);
}

.ep-field textarea {
  min-height: 80px;
  resize: vertical;
}

.ep-field .ep-hint {
  font-size: 11px;
  color: var(--muted2);
}

.ep-field .ep-counter {
  text-align: right;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted2);
}

.ep-field .ep-counter.warn {
  color: #c0ae72;
}

.ep-field .ep-counter.limit {
  color: var(--bad);
}

.ep-image-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ep-image-preview {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(10, 14, 20, 0.6);
  border: 1px dashed var(--line2);
  cursor: pointer;
  transition: border-color var(--transition-fast);
}

.ep-image-preview:hover {
  border-color: var(--cyan);
}

.ep-image-preview.avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto;
}

.ep-image-preview.banner {
  width: 100%;
  height: 100px;
}

.ep-image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ep-image-preview .ep-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
}

.ep-image-preview .ep-image-placeholder svg {
  opacity: 0.5;
}

.ep-image-preview input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.ep-actions {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.ep-btn {
  flex: 1;
  height: 44px;
  border: 1px solid var(--line2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background var(--transition-fast), border-color var(--transition-fast), opacity var(--transition-fast);
}

.ep-btn:hover:not(:disabled), .ep-btn:focus-visible:not(:disabled) {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--cyan);
}

.ep-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.ep-btn.ghost {
  background: transparent;
  color: var(--muted);
  border-color: var(--line);
}

.ep-btn.ghost:hover, .ep-btn.ghost:focus-visible {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line2);
  color: var(--text);
}

.ep-msg {
  text-align: center;
  font-family: var(--mono);
  font-size: 12px;
  min-height: 20px;
}

.ep-msg .ok {
  color: var(--cyan);
}

.ep-msg .err {
  color: #ff6b6b;
}

.ep-separator {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 0;
}

.ep-separator::before, .ep-separator::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

.ep-separator span {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.create-playlist-btn {
  position: fixed;
  bottom: calc(var(--footer-h) + 24px);
  right: 24px;
  z-index: 40;
  display: none;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line2);
  border-radius: 8px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: none;
  transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

.create-playlist-btn:hover, .create-playlist-btn:focus-visible {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--line2);
  color: var(--text);
}

.create-playlist-btn:active {
  opacity: 0.8;
}

.create-playlist-btn.visible {
  display: flex;
}

.create-playlist-btn svg {
  width: 18px;
  height: 18px;
}

.cp-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.cp-modal[hidden] {
  display: none !important;
}

.cp-dialog {
  position: relative;
  width: 90%;
  max-width: 440px;
  max-height: 90vh;
  overflow-y: auto;
  background: linear-gradient(180deg, rgba(16, 20, 28, 0.95), rgba(10, 14, 20, 0.98));
  border: 1px solid var(--line2);
  border-radius: var(--radius);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6), var(--glow);
  padding: 24px;
}

.cp-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(16, 20, 28, 0.6);
  color: var(--muted);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

.cp-close:hover, .cp-close:focus-visible {
  background: rgba(255, 107, 107, 0.15);
  border-color: rgba(255, 107, 107, 0.4);
  color: #ff6b6b;
}

.cp-header {
  text-align: left;
  margin-bottom: 16px;
}

.cp-header h2 {
  margin: 0 0 4px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  text-transform: none;
  letter-spacing: 0;
}

.cp-sub {
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.03em;
}

.cp-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cp-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cp-field label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.cp-field input[type="text"], .cp-field textarea {
  width: 100%;
  padding: 8px 10px;
  background: rgba(16, 20, 28, 0.6);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 13px;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.cp-field input[type="text"]:focus, .cp-field textarea:focus {
  outline: none;
  border-color: var(--cyan);
  background: rgba(16, 20, 28, 0.8);
}

.cp-field input[type="text"]::placeholder, .cp-field textarea::placeholder {
  color: var(--muted2);
}

.cp-field textarea {
  resize: vertical;
  min-height: 80px;
}

.cp-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
}

.cp-toggle input[type="checkbox"] {
  width: 44px;
  height: 24px;
  appearance: none;
  -webkit-appearance: none;
  background: rgba(16, 20, 28, 0.6);
  border: 1px solid var(--line2);
  border-radius: 12px;
  position: relative;
  cursor: pointer;
  transition: background var(--transition-fast), border-color var(--transition-fast);
}

.cp-toggle input[type="checkbox"]::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  background: var(--muted);
  border-radius: 50%;
  transition: transform var(--transition-fast), background var(--transition-fast);
}

.cp-toggle input[type="checkbox"]:checked {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--cyan);
}

.cp-toggle input[type="checkbox"]:checked::before {
  transform: translateX(20px);
  background: var(--cyan);
}

.cp-toggle-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cp-toggle-label strong {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text);
}

.cp-toggle-label span {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
}

.cp-visibility-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cp-visibility-wrap .cp-field-label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.cp-visibility-toggle {
  display: inline-flex;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line2);
  background: rgba(16, 20, 28, 0.6);
  width: 100%;
}

.cp-vis-btn {
  flex: 1;
  padding: 10px 14px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.cp-vis-btn:first-child {
  border-right: 1px solid var(--line2);
}

.cp-vis-btn:hover:not(.active) {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.cp-vis-btn.active[data-value="1"] {
  background: rgba(255, 255, 255, 0.06);
  color: var(--cyan);
  border-color: var(--cyan);
}

.cp-vis-btn.active[data-value="0"] {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.cp-visibility-hint {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  min-height: 14px;
}

.cp-actions {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}

.cp-btn {
  flex: 1;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
  transition: background var(--transition-fast), border-color var(--transition-fast), opacity var(--transition-fast);
}

.cp-btn:hover:not(:disabled), .cp-btn:focus-visible:not(:disabled) {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--cyan);
}

.cp-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.cp-btn.ghost {
  background: transparent;
  color: var(--muted);
  border-color: var(--line);
}

.cp-btn.ghost:hover, .cp-btn.ghost:focus-visible {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line2);
  color: var(--text);
}

.cp-msg {
  text-align: center;
  font-family: var(--mono);
  font-size: 12px;
  min-height: 20px;
}

.cp-msg .ok {
  color: var(--cyan);
}

.cp-msg .err {
  color: #ff6b6b;
}

.atp-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.atp-modal[hidden] {
  display: none !important;
}

.atp-dialog {
  position: relative;
  width: 90%;
  max-width: 440px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  background: rgba(7, 10, 16, 0.97);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.atp-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(16, 20, 28, 0.6);
  color: var(--muted);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

.atp-close:hover, .atp-close:focus-visible {
  background: rgba(255, 107, 107, 0.15);
  border-color: rgba(255, 107, 107, 0.4);
  color: #ff6b6b;
}

.atp-header {
  padding: 14px 16px 12px;
  border-bottom: 1px solid var(--line);
}

.atp-header h2 {
  margin: 0 0 4px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  text-transform: none;
  letter-spacing: 0;
}

.atp-song-info {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--cyan);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.atp-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px;
}

.atp-create-row {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.atp-create-row input {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  background: rgba(16, 20, 28, 0.6);
  border: 1px solid var(--line2);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 13px;
  transition: border-color var(--transition-fast);
}

.atp-create-row input:focus {
  outline: none;
  border-color: var(--cyan);
}

.atp-create-row input::placeholder {
  color: var(--muted2);
}

.atp-create-row button {
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line2);
  border-radius: 8px;
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--transition-fast), border-color var(--transition-fast);
}

.atp-create-row button:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--cyan);
}

.atp-create-row button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.atp-visibility-row {
  display: flex;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line2);
  margin-top: 6px;
}

.atp-vis-btn {
  flex: 1;
  padding: 8px 10px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.atp-vis-btn:first-child {
  border-right: 1px solid var(--line2);
}

.atp-vis-btn.active[data-value="1"] {
  background: rgba(255, 255, 255, 0.06);
  color: var(--cyan);
}

.atp-vis-btn.active[data-value="0"] {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.atp-vis-btn:hover:not(.active) {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.atp-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.atp-list-empty {
  text-align: center;
  padding: 24px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
}

.atp-list-loading {
  text-align: center;
  padding: 24px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
}

.atp-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(16, 20, 28, 0.4);
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.atp-item:hover {
  border-color: var(--line2);
  background: rgba(16, 20, 28, 0.6);
}

.atp-item-info {
  flex: 1;
  min-width: 0;
}

.atp-item-name {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.atp-item-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
}

.atp-item-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.atp-item-badge--public {
  background: rgba(255, 255, 255, 0.06);
  color: var(--cyan);
}

.atp-item-badge--private {
  background: rgba(192, 174, 114, 0.15);
  color: var(--warn);
}

.atp-item-btn {
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line2);
  border-radius: 6px;
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition-fast), border-color var(--transition-fast);
}

.atp-item-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--cyan);
}

.atp-item-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.atp-item-btn.added {
  background: rgba(114, 191, 160, 0.15);
  border-color: var(--good);
  color: var(--good);
}

.atp-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--line);
}

.atp-msg {
  text-align: center;
  font-family: var(--mono);
  font-size: 12px;
  min-height: 18px;
}

.atp-msg .ok {
  color: var(--good);
}

.atp-msg .err {
  color: #ff6b6b;
}

#albums-panel, #playlists-panel {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

#albums-panel, #playlists-panel, .list > .panel {
  background: none;
  border: none;
  box-shadow: none;
  overflow: visible;
  padding: 0;
}

#albums-panel::before, #playlists-panel::before, .list > .panel::before {
  display: none;
}

#albums-panel > .panel, #playlists-panel > .panel, #albums-panel > div, #playlists-panel > div {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.albums-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  padding: 4px 0 24px;
}

.album-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  border-radius: var(--radius2);
  background: linear-gradient(180deg, rgba(12, 12, 12, 0.70), rgba(8, 8, 8, 0.45));
  border: 1px solid var(--line);
  padding: 12px;
  transition: border-color var(--transition-fast), background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.album-card:hover, .album-card:focus-visible {
  border-color: var(--line2);
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.88), rgba(6, 6, 6, 0.70));
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45), var(--glow);
}

.album-card:active {
  transform: translateY(0);
}

.album-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(10, 14, 20, 0.8);
  border: 1px solid var(--line);
  flex-shrink: 0;
}

.album-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-med);
}

.album-card:hover .album-cover img {
  transform: scale(1.05);
}

.album-cover-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.07), transparent 60%), rgba(10, 14, 20, 0.90);
}

.album-cover-placeholder svg {
  width: 40%;
  height: 40%;
  color: var(--muted2);
  opacity: 0.6;
}

.album-cover-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 7, 12, 0.50);
  opacity: 0;
  transition: opacity var(--transition-fast);
  border-radius: 10px;
}

.album-card:hover .album-cover-overlay, .album-card:focus-visible .album-cover-overlay {
  opacity: 1;
}

.album-cover-overlay-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  font-size: 14px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.10);
}

.album-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.album-name {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.03em;
}

.album-artist {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.03em;
}

.album-track-count {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted2);
  letter-spacing: 0.03em;
}

.playlists-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  padding: 4px 0 24px;
}

.playlist-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  border-radius: var(--radius2);
  background: linear-gradient(180deg, rgba(12, 12, 12, 0.70), rgba(8, 8, 8, 0.45));
  border: 1px solid var(--line);
  padding: 12px;
  transition: border-color var(--transition-fast), background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.playlist-card:hover, .playlist-card:focus-visible {
  border-color: var(--line2);
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.88), rgba(6, 6, 6, 0.70));
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45), var(--glow);
  outline: none;
}

.playlist-card:active {
  transform: translateY(0);
}

.playlist-cover {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius2);
  overflow: hidden;
  background: rgba(14, 14, 14, 0.60);
  border: 1px solid var(--line);
  position: relative;
}

.playlist-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.playlist-cover-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  transition: opacity var(--transition-fast);
  border-radius: var(--radius2);
}

.playlist-card:hover .playlist-cover-overlay, .playlist-card:focus-visible .playlist-cover-overlay {
  opacity: 1;
}

.playlist-cover-overlay-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  font-size: 14px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.10);
}

.playlist-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.playlist-name {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.03em;
}

.playlist-track-count {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted2);
  letter-spacing: 0.03em;
}

.playlist-badge {
  display: inline-block;
  font-family: var(--mono);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  width: fit-content;
  font-size: 8px;
  padding: 1px 4px;
  border-radius: 3px;
  margin-top: 1px;
}

.playlist-badge--public {
  background: rgba(255, 255, 255, 0.04);
  color: var(--cyan);
  border: 1px solid rgba(255, 255, 255, 0.10);
}

.playlist-badge--private {
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  border: 1px solid var(--line);
}

.playlist-owner {
  color: var(--muted);
  font-size: 10px;
  text-decoration: none;
}

.playlist-owner:hover {
  color: var(--text);
  text-decoration: underline;
}

.albums-empty {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 60px 24px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 13px;
  text-align: center;
}

.albums-empty svg {
  width: 48px;
  height: 48px;
  color: var(--muted2);
  opacity: 0.5;
}

body.auth-page {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.auth-card {
  width: 100%;
  max-width: 400px;
  padding: 28px 28px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.88), rgba(6, 6, 6, 0.70));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.auth-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(400px 200px at 20% 0%, rgba(255, 255, 255, 0.03), transparent 60%), radial-gradient(400px 200px at 80% 0%, rgba(200, 200, 200, 0.02), transparent 60%);
  pointer-events: none;
}

.auth-header {
  text-align: center;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.auth-logo-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(220, 220, 220, 0.06), rgba(180, 180, 180, 0.03));
  border: 1px solid var(--line3);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--glow);
}

.auth-logo-icon span {
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 900;
  color: var(--cyan);
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.18);
}

.auth-header h1 {
  margin: 0;
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #fff;
}

.auth-header .sub {
  margin: 6px 0 0;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: none;
}

.auth-card form {
  position: relative;
  z-index: 1;
}

.auth-card .field {
  margin-bottom: 14px;
}

.auth-card label {
  display: block;
  margin-bottom: 8px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: none;
}

.auth-card label.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.auth-card .toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: var(--muted2);
  text-transform: none;
  cursor: pointer;
}

.auth-card .toggle input {
  width: 14px;
  height: 14px;
  accent-color: var(--cyan);
  cursor: pointer;
}

.auth-card input[type="text"], .auth-card input[type="password"], .auth-card input[type="email"] {
  -webkit-appearance: none;
  appearance: none;
  color-scheme: dark;
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(10, 14, 20, 0.60);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
}

.auth-card input:-webkit-autofill, .auth-card input:-webkit-autofill:hover, .auth-card input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px rgba(10, 14, 20, 0.90) inset;
  -webkit-text-fill-color: var(--text);
  caret-color: var(--text);
}

.auth-card input[type="text"]:focus, .auth-card input[type="password"]:focus, .auth-card input[type="email"]:focus {
  border-color: var(--cyan);
  box-shadow: var(--glow);
}

.auth-card input::placeholder {
  color: var(--muted2);
}

.auth-card .hint {
  display: block;
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted2);
}

.auth-card .btn {
  width: 100%;
  height: 42px;
  margin-top: 6px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(200, 200, 200, 0.03));
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}

.auth-card .btn:hover:not(:disabled) {
  background: linear-gradient(135deg, rgba(220, 220, 220, 0.10), rgba(180, 180, 180, 0.05));
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: var(--glow);
}

.auth-card .btn:active:not(:disabled) {
  transform: scale(0.98);
}

.auth-card .btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.auth-card .spinner {
  width: 16px;
  height: 16px;
  border: 2px solid transparent;
  border-top-color: var(--cyan);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.auth-card .msg {
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 12px;
  text-align: center;
  min-height: 20px;
  line-height: 1.5;
  transition: all var(--transition-fast);
}

.auth-card .msg:empty {
  display: none;
}

.auth-card .msg.error {
  color: var(--bad);
}

.auth-card .msg.ok {
  color: var(--good);
}

.auth-card .msg .verify {
  margin-top: 12px;
}

.auth-card .msg .verify .btn {
  height: 40px;
  font-size: 11px;
}

.auth-card .foot {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  position: relative;
  z-index: 1;
}

.auth-card .foot a {
  color: var(--cyan);
  text-decoration: none;
  font-weight: 600;
  transition: opacity var(--transition-fast);
}

.auth-card .foot a:hover {
  opacity: 0.8;
}

body.verify-page {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.verify-shell {
  width: 100%;
  max-width: 420px;
}

.verify-card {
  width: 100%;
  padding: 40px 32px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.88), rgba(6, 6, 6, 0.70));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.verify-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(400px 200px at 20% 0%, rgba(255, 255, 255, 0.03), transparent 60%), radial-gradient(400px 200px at 80% 0%, rgba(200, 200, 200, 0.02), transparent 60%);
  pointer-events: none;
}

.verify-badge {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  margin-bottom: 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(10, 9, 7, 0.35);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.verify-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--bad);
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.14);
  transition: background var(--transition-fast), box-shadow var(--transition-fast);
}

body.verify-page.is-success .verify-badge-dot {
  background: var(--good);
  box-shadow: 0 0 14px rgba(122, 184, 150, 0.32);
}

.verify-card h1 {
  position: relative;
  z-index: 1;
  margin: 6px 0 0;
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #fff;
}

.verify-message {
  position: relative;
  z-index: 1;
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 14px;
}

.verify-actions {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 12px;
  margin-top: 22px;
}

.verify-actions .btn {
  flex: 1;
  height: 44px;
  margin-top: 0;
  font-size: 12px;
}

.btn-ghost {
  border-color: var(--line);
  background: rgba(10, 9, 7, 0.25);
  color: var(--text);
}

.btn-ghost:hover:not(:disabled) {
  border-color: var(--line2);
  box-shadow: var(--glow);
}

.verify-card .foot {
  position: relative;
  z-index: 1;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted2);
}

.playlists-carousel {
  display: flex;
  flex-direction: row;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
  padding-bottom: var(--space-3, 0.75rem);
  scrollbar-width: none;
  -ms-overflow-style: none;
  gap: 10px;
}

.playlists-carousel::-webkit-scrollbar {
  display: none;
}

.playlists-carousel:active {
  cursor: grabbing;
}

.playlists-carousel .playlist-card {
  scroll-snap-align: start;
  flex: 0 0 132px;
}

.cp-modal[hidden], .atp-modal[hidden] {
  display: none !important;
  pointer-events: none !important;
}

[hidden] {
  display: none !important;
}

.reco-drawer-backdrop {
  position: fixed;
  inset: 0;
  bottom: var(--footer-h);
  background: rgba(0, 0, 0, 0.5);
  z-index: 61;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-med);
}

.reco-drawer-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.reco-drawer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: var(--footer-h);
  z-index: 62;
  max-height: 58vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-top: 1px solid var(--line2);
  box-shadow: var(--shadow);
  transform: translateY(calc(100% + var(--footer-h)));
  transition: transform 0.32s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;
}

.reco-drawer.is-open {
  transform: translateY(0);
}

.reco-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem 0.5rem;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}

.reco-drawer-title {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--warn);
}

.reco-drawer-close {
  font-size: 0.78rem;
  padding: 0.2rem 0.5rem;
  opacity: 0.5;
  transition: opacity var(--transition-fast);
}

.reco-drawer-close:hover {
  opacity: 1;
}

.reco-drawer-body {
  overflow-y: auto;
  overscroll-behavior: contain;
  flex: 1;
  padding: 1rem 1.25rem 1.25rem;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}

.reco-drawer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.75rem;
}

.reco-drawer-loading, .reco-drawer-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2rem;
  color: var(--muted2);
  font-size: 0.78rem;
}

.reco-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  cursor: pointer;
  border-radius: var(--radius-sm);
  padding: 0.45rem;
  background: transparent;
  border: 1px solid transparent;
  text-align: left;
  transition: background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
  color: var(--text);
}

.reco-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line);
  transform: translateY(-2px);
}

.reco-card:active {
  transform: translateY(0);
}

.reco-card__art {
  position: relative;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  background: var(--panel2);
}

.reco-card__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.reco-card__play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: opacity var(--transition-fast);
  font-size: 1.4rem;
  color: #fff;
}

.reco-card:hover .reco-card__play-overlay {
  opacity: 1;
}

.reco-card__title {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
  max-width: 100%;
  display: block;
}

.reco-card__artist {
  font-size: 0.64rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  display: block;
}

#footer-reco-button {
  transition: color var(--transition-fast);
}

#footer-reco-button.is-on, #footer-reco-button:hover {
  color: var(--warn);
}

nav.nav a, nav.nav .nav-logout {
  position: relative;
  overflow: hidden;
  border-style: solid;
  border-radius: 999px;
  border-color: transparent;
  border-bottom-color: transparent;
  border-left-color: transparent;
  background-clip: padding-box;
}

nav.nav a:hover, nav.nav a:focus-visible {
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(255, 255, 255, 0.12);
  border-bottom-color: rgba(255, 255, 255, 0.12);
  border-radius: 8px;
}

nav.nav a.active, nav.nav a[aria-current="page"] {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.18);
  border-bottom-color: rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  font-weight: 600;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04) inset, 0 1px 8px rgba(0, 0, 0, 0.35);
}

nav.nav a.active::before, nav.nav a[aria-current="page"]::before {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.5);
  margin-right: 5px;
  flex-shrink: 0;
  vertical-align: middle;
  display: none;
  content: none;
}

.tag-pill.active::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
  flex-shrink: 0;
  margin-right: 2px;
}

.tag-pill.active .count {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.7);
}

.song-tag:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.song-tag[data-genre*="house"], .song-tag[data-genre*="techno"], .song-tag[data-genre*="electronic"], .song-tag[data-genre*="electro"], .song-tag[data-genre*="disco"], .song-tag[data-genre*="dance"], .song-tag.genre-electronic {
  color: rgba(210, 170, 90, 0.85);
  border-color: rgba(184, 140, 60, 0.22);
  background: rgba(184, 140, 60, 0.06);
}

.song-tag[data-genre*="jazz"], .song-tag[data-genre*="soul"], .song-tag[data-genre*="funk"], .song-tag[data-genre*="blues"], .song-tag.genre-jazz {
  color: rgba(170, 140, 200, 0.85);
  border-color: rgba(150, 120, 190, 0.22);
  background: rgba(150, 120, 190, 0.06);
}

.song-tag[data-genre*="ambient"], .song-tag[data-genre*="drone"], .song-tag[data-genre*="experimental"], .song-tag[data-genre*="noise"], .song-tag.genre-ambient {
  color: rgba(100, 185, 155, 0.85);
  border-color: rgba(80, 160, 130, 0.22);
  background: rgba(80, 160, 130, 0.06);
}

.song-tag[data-genre*="rock"], .song-tag[data-genre*="metal"], .song-tag[data-genre*="punk"], .song-tag[data-genre*="indie"], .song-tag.genre-rock {
  color: rgba(200, 110, 110, 0.85);
  border-color: rgba(180, 90, 90, 0.22);
  background: rgba(180, 90, 90, 0.06);
}

.song-tag[data-genre*="classical"], .song-tag[data-genre*="acoustic"], .song-tag[data-genre*="folk"], .song-tag[data-genre*="country"], .song-tag.genre-classical {
  color: rgba(215, 205, 180, 0.80);
  border-color: rgba(200, 190, 165, 0.18);
  background: rgba(200, 190, 165, 0.04);
}

.song-tag[data-genre*="hip"], .song-tag[data-genre*="rap"], .song-tag[data-genre*="trap"], .song-tag[data-genre*="rnb"], .song-tag[data-genre*="r&b"], .song-tag.genre-hiphop {
  color: rgba(100, 175, 210, 0.85);
  border-color: rgba(80, 155, 195, 0.20);
  background: rgba(80, 155, 195, 0.05);
}

.active-tags .chip:hover::after {
  opacity: 0.9;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 18px;
  padding: 0 7px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid;
  white-space: nowrap;
  vertical-align: middle;
}

.badge::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.7;
  flex-shrink: 0;
}

.badge--good {
  color: rgba(109, 184, 150, 0.9);
  border-color: rgba(109, 184, 150, 0.20);
  background: rgba(109, 184, 150, 0.07);
  box-shadow: 0 0 8px rgba(109, 184, 150, 0.08);
}

.badge--warn {
  color: rgba(184, 160, 96, 0.9);
  border-color: rgba(184, 160, 96, 0.20);
  background: rgba(184, 160, 96, 0.07);
  box-shadow: 0 0 8px rgba(184, 160, 96, 0.08);
}

.badge--bad {
  color: rgba(200, 114, 114, 0.9);
  border-color: rgba(200, 114, 114, 0.20);
  background: rgba(200, 114, 114, 0.07);
  box-shadow: 0 0 8px rgba(200, 114, 114, 0.08);
}

.badge--neutral {
  color: var(--muted);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.badge--bpm {
  color: rgba(210, 170, 90, 0.85);
  border-color: rgba(184, 140, 60, 0.20);
  background: rgba(184, 140, 60, 0.06);
  letter-spacing: 0.04em;
  font-size: 9px;
}

.badge--bpm::before {
  content: "♩";
  font-size: 9px;
  opacity: 1;
  width: auto;
  height: auto;
  border-radius: 0;
  background: none;
}

.badge--count {
  color: var(--muted);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.03);
  height: 16px;
  font-size: 9px;
}

.badge--count::before {
  display: none;
}

.topbar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient( 90deg, transparent 0%, rgba(255, 255, 255, 0.10) 20%, rgba(255, 255, 255, 0.16) 50%, rgba(255, 255, 255, 0.10) 80%, transparent 100% );
  pointer-events: none;
  z-index: 1;
}

.toast--good {
  border-color: rgba(109, 184, 150, 0.24);
}

.toast--good::before {
  content: "✓";
  color: var(--good);
  font-size: 11px;
  flex-shrink: 0;
}

.toast--bad {
  border-color: rgba(200, 114, 114, 0.24);
}

.toast--bad::before {
  content: "✕";
  color: var(--bad);
  font-size: 11px;
  flex-shrink: 0;
}

.toast--warn {
  border-color: rgba(184, 160, 96, 0.24);
}

.toast--warn::before {
  content: "⚠";
  color: var(--warn);
  font-size: 11px;
  flex-shrink: 0;
}

.song.is-playing {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(10, 10, 12, 0.94);
  animation: card-glow 2.8s ease-in-out infinite;
}

.song.is-playing::before {
  opacity: 0.85;
}

.song.is-playing .art {
  border-color: rgba(255, 255, 255, 0.22);
  position: relative;
  animation: ring-pulse 2.2s ease-in-out infinite;
  overflow: visible;
}

.song.is-playing .art img {
  border-radius: 11px;
}

.song.is-playing .art::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 28px;
  border-radius: 0 0 11px 11px;
  background: linear-gradient(to top, rgba(0,0,0,0.62) 0%, transparent 100%);
  pointer-events: none;
  background-image: linear-gradient(to top, rgba(255,255,255,0.80), rgba(255,255,255,0.15)), linear-gradient(to top, rgba(255,255,255,0.65), rgba(255,255,255,0.10)), linear-gradient(to top, rgba(255,255,255,0.75), rgba(255,255,255,0.12)), linear-gradient(to top, rgba(0,0,0,0.55), transparent);
  background-repeat: no-repeat;
  background-position: calc(50% - 7px) bottom, 50% bottom, calc(50% + 7px) bottom, 0 0;
  background-size: 3px 6px, 3px 14px, 3px 9px, 100% 100%;
  animation: eq-overlay 1.6s ease-in-out infinite;
}

.song.is-playing .meta .title {
  color: #ffffff;
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.18);
}

.song-playing-label {
  display: none;
}

.song.is-playing .song-playing-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 3px 8px 3px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  pointer-events: none;
  user-select: none;
}

.song-playing-label::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  flex-shrink: 0;
  background-image: linear-gradient(to top, rgba(255,255,255,0.9), rgba(255,255,255,0.2)), linear-gradient(to top, rgba(255,255,255,0.9), rgba(255,255,255,0.2)), linear-gradient(to top, rgba(255,255,255,0.9), rgba(255,255,255,0.2));
  background-repeat: no-repeat;
  background-position: 0px bottom, 4px bottom, 8px bottom;
  background-size: 2px 5px, 2px 9px, 2px 3px;
  animation: eq-label 1.6s ease-in-out infinite;
}

.profile-follow, .profile-edit {
  grid-area: action;
  justify-self: end;
  align-self: center;
  margin-top: 0;
}

.profile-tabs::-webkit-scrollbar {
  display: none;
}

.profile-body .user-section {
  margin-top: 18px;
}

.profile-body .user-section-list {
  gap: 10px;
}

.albums-grid, .playlists-grid {
  grid-template-columns: repeat(auto-fill, minmax(136px, 156px));
  justify-content: start;
  gap: 12px;
  padding: 4px 0 22px;
}

.album-card, .playlist-card {
  gap: 6px;
  padding: 8px;
  border-radius: 12px;
}

.album-card:hover, .album-card:focus-visible, .playlist-card:hover, .playlist-card:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.38), var(--glow);
}

.album-cover, .playlist-cover, .album-cover-overlay, .playlist-cover-overlay {
  border-radius: 9px;
}

.album-cover-overlay-icon, .playlist-cover-overlay-icon {
  width: 30px;
  height: 30px;
  border-width: 1px;
  font-size: 12px;
}

.album-info, .playlist-info {
  gap: 1px;
}

.album-name, .playlist-name {
  font-size: 11px;
}

.album-artist, .playlist-owner {
  font-size: 10px;
}

.album-track-count, .playlist-track-count {
  font-size: 9px;
}

.topbar::after {
  position: absolute;
  left: var(--side-pad);
  right: var(--side-pad);
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.34), transparent);
  opacity: 0.65;
  pointer-events: none;
  display: none;
  content: none;
}

.logo, .logo-custom {
  filter: drop-shadow(0 0 14px rgba(255, 255, 255, 0.08));
}

.burger:hover, .burger:focus-visible, .burger[aria-expanded="true"] {
  color: #fff;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.04));
  border-color: rgba(255, 255, 255, 0.20);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 0 0 3px rgba(255, 255, 255, 0.035), 0 12px 32px rgba(0, 0, 0, 0.32);
}

form.search::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(180px 70px at 12% 50%, rgba(255, 255, 255, 0.14), transparent 68%), linear-gradient(90deg, rgba(255, 255, 255, 0.12), transparent 42%, rgba(255, 255, 255, 0.06));
  pointer-events: none;
  opacity: 0.42;
}

form.search::after {
  content: "";
  position: absolute;
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  pointer-events: none;
  left: 13px;
  right: 13px;
  bottom: 5px;
  opacity: 0.14;
}

form.search:hover {
  border-color: rgba(255, 255, 255, 0.30);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.018)), rgba(4, 4, 6, 0.98);
  box-shadow: 0 9px 28px rgba(0, 0, 0, 0.48), 0 0 0 1px rgba(255, 255, 255, 0.055) inset, 0 0 24px rgba(255, 255, 255, 0.055);
}

form.search:focus-within::before {
  opacity: 0.88;
}

form.search .search-icon {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.78);
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.16));
  width: 14px;
  height: 14px;
}

.tags-inline:focus-within, .tags-inline:hover {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .fullscreen-artwork {
    animation: none;
  }

  .song.is-playing, .song.is-playing .art, .song.is-playing .art::after, .song-playing-label::before {
    animation: none !important;
  }

  .song.is-playing {
    box-shadow: 0 10px 28px rgba(0,0,0,0.32), 0 0 0 1px rgba(255,255,255,0.16);
  }

  .song.is-playing .art {
    box-shadow: 0 0 0 2px rgba(255,255,255,0.12);
  }

  .song.is-playing .art::after {
    background-size: 3px 8px, 3px 14px, 3px 10px, 100% 100%;
  }

}

@media (max-width: 560px) {
  main {
    margin: 6px 0 0;
    padding: 0 var(--side-pad);
    gap: 10px;
  }

  .profile-avatar {
    width: 60px;
    height: 60px;
    font-size: 20px;
  }

  .profile-content {
    column-gap: 14px;
    padding-bottom: 18px;
  }

  .profile-username {
    font-size: 18px;
  }

  .profile-tab {
    font-size: 8px;
    padding: 7px 12px 7px 0;
  }

  .user-card {
    padding: 12px;
    gap: 12px;
  }

  .user-avatar {
    width: 44px;
    height: 44px;
  }

  .user-initials {
    font-size: 14px;
  }

  .user-name {
    font-size: 14px;
  }

  .user-bio {
    display: none;
  }

  .user-action .btn {
    height: 32px;
    padding: 0 12px;
    font-size: 11px;
  }

  :root {
    --side-pad: 10px;
  }

  .topbar {
    min-height: 52px;
  }

  .brand .sub {
    display: none;
  }

  .brand {
    min-width: 0;
    gap: 6px;
  }

  .logo {
    width: 32px;
    height: 32px;
    border-radius: 10px;
  }

  .brand .title {
    position: relative;
    font-size: 13px;
    letter-spacing: 0.095em;
  }

  .burger {
    height: 30px;
    padding: 0 9px;
    font-size: 0;
  }

  .burger-icon {
    gap: 2.5px;
    width: 13px;
  }

  form.search {
    margin-top: 0;
    height: 30px;
    padding: 0 9px;
  }

  form.search input {
    font-size: 11px;
  }

  nav.nav {
    right: 0;
    width: min(252px, calc(100vw - 20px));
    min-width: 0;
    max-width: calc(100vw - 20px);
    top: calc(100% + 7px);
    border-radius: 15px;
    padding: 5px;
  }

  nav.nav a {
    padding: 8px 10px;
    font-size: 10px;
    height: 28px;
  }

  .footer-sub {
    display: none;
  }

  .fullscreen-album {
    display: none;
  }

  .topbar-inner {
    min-height: 52px;
    padding: 6px 10px;
    gap: 5px 8px;
  }

  .tags-inline {
    margin-top: 0;
    gap: 6px;
  }

  .tag-pill {
    height: 28px;
    padding: 0 9px;
    font-size: 10px;
  }

  .tag-controls .btn.tiny {
    width: 26px;
    height: 26px;
    font-size: 11px;
  }

  .list {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .song {
    padding: 10px;
    gap: 10px;
    border-radius: 12px;
  }

  .song::before {
    display: none;
  }

  .art {
    width: 50px;
    height: 50px;
    border-radius: 8px;
  }

  .meta {
    gap: 2px;
  }

  .meta .title {
    font-size: 13px;
  }

  .meta .line {
    gap: 4px;
    font-size: 10px;
  }

  .meta .artist, .meta .album, .meta .dur {
    font-size: 10px;
  }

  .meta .album {
    display: none;
  }

  .song-tags {
    display: none;
  }

  .actions {
    gap: 4px;
  }

  .actions .btn {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    font-size: 12px;
  }

  .actions .song-share {
    display: none;
  }

  nav.nav a.active, nav.nav a[aria-current="page"] {
    border-left: 2px solid rgba(255, 255, 255, 0.55);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    padding-left: 8px;
  }

  .fullscreen-content {
    gap: 20px;
    padding: 16px;
  }

  .fullscreen-artwork {
    width: min(85vw, 300px);
    height: min(85vw, 300px);
  }

  .fullscreen-close {
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
  }

  .fs-btn {
    width: 44px;
    height: 44px;
    font-size: 14px;
  }

  .fs-btn--play {
    width: 60px;
    height: 60px;
    font-size: 20px;
  }

  .fullscreen-controls {
    gap: 12px;
  }

  .albums-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
  }

  .playlists-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
  }

  #playlists-panel, #albums-panel {
    padding: 8px 8px;
  }

  .actions .btn.song-like {
    padding: 0 8px;
    gap: 4px;
  }

  .actions .btn.song-like strong {
    font-size: 10px;
  }

  .btn.song-like {
    width: auto;
    padding: 0 10px;
    gap: 6px;
    justify-content: center;
    min-width: 48px;
  }

  .logo-custom {
    height: 32px;
    max-width: 124px;
  }

  nav.nav a, nav.nav .nav-logout {
    min-height: 30px;
    height: 30px;
    padding: 0 9px;
    border-radius: 9px;
    font-size: 9.5px;
  }

  nav.nav::before {
    min-height: 20px;
    padding: 0 7px 4px;
    font-size: 7.5px;
  }

  nav.nav .lang-btn {
    height: 26px;
    min-height: 26px;
    font-size: 9.5px;
  }

  nav.nav a, nav.nav .nav-logout, nav.nav a:hover, nav.nav a:focus-visible, nav.nav a.active, nav.nav a[aria-current="page"] {
    border-radius: 10px;
  }

}

@media (min-width: 1100px) {
  .list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .list > .panel, .list > .profile-card, .list > .empty, .list > .loader, .list > .btn-back, .list > [id$="-panel"] {
    grid-column: 1 / -1;
  }

}

@media (min-width: 1700px) {
  .list {
    grid-template-columns: 1fr 1fr 1fr;
  }

}

@media (max-width: 680px) {
  :root {
    --footer-h: 110px;
  }

  .footer-inner {
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    padding: 8px var(--side-pad);
    gap: 6px;
  }

  .footer-art {
    display: none;
  }

  .footer-info {
    order: 1;
    text-align: center;
    gap: 2px;
  }

  .footer-title {
    font-size: 13px;
    font-weight: 700;
  }

  .footer-sub {
    font-size: 10px;
  }

  .footer-info .timeline {
    display: none;
  }

  .footer-timeline-mobile {
    display: flex;
    order: 2;
    width: 100%;
    gap: 8px;
    align-items: center;
    margin-bottom: 4px;
  }

  .footer-timeline-mobile span {
    width: 36px;
    font-size: 10px;
    text-align: center;
  }

  .footer-timeline-mobile input[type="range"] {
    flex: 1;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: linear-gradient( to right, var(--cyan) 0%, var(--cyan) var(--p), var(--line) var(--p), var(--line) 100% );
    border-radius: 2px;
    cursor: pointer;
    --p: 0%;
  }

  .footer-timeline-mobile input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: var(--glow);
    cursor: pointer;
  }

  .footer-timeline-mobile input[type="range"]::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border: none;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: var(--glow);
    cursor: pointer;
  }

  .footer-timeline-mobile input[type="range"]::-moz-range-progress {
    height: 4px;
    background: var(--cyan);
    border-radius: 2px;
  }

  .footer-controls {
    order: 3;
    justify-content: center;
    gap: 6px;
  }

  .footer-controls .btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 13px;
  }

  .footer-controls #footer-play-button {
    width: 44px;
    height: 44px;
    font-size: 16px;
  }

  .footer-controls #footer-like-button, .footer-controls #footer-shuffle-button, .footer-controls #footer-repeat-button {
    display: none;
  }

  .footer-controls #fullscreen-toggle {
    display: inline-flex;
  }

  form.search {
    min-height: 34px;
    height: 34px;
    padding: 0 11px;
    border-radius: 12px;
    gap: 6px;
    box-shadow: 0 7px 20px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(255, 255, 255, 0.04) inset, 0 0 18px rgba(255, 255, 255, 0.045);
  }

  form.search .search-icon {
    width: 13px;
    height: 13px;
  }

  form.search input {
    font-size: 11.5px;
  }

  form.search::after {
    bottom: 4px;
  }

}

@media (max-width: 400px) {
  :root {
    --footer-h: 100px;
    --side-pad: 8px;
  }

  .footer-inner {
    padding: 6px 12px;
    gap: 4px;
  }

  .footer-title {
    font-size: 12px;
  }

  .footer-controls .btn {
    width: 32px;
    height: 32px;
    font-size: 11px;
  }

  .footer-controls #footer-play-button {
    width: 40px;
    height: 40px;
    font-size: 14px;
  }

  .topbar-inner {
    padding: 6px var(--side-pad);
    gap: 4px 8px;
    padding-left: 8px;
    padding-right: 8px;
  }

  form.search {
    margin-top: 0;
    min-height: 32px;
    height: 32px;
    padding: 0 10px;
    border-radius: 11px;
  }

  .tags-inline {
    margin-top: 0;
    gap: 4px;
  }

  .tag-pill {
    height: 26px;
    padding: 0 7px;
    font-size: 9px;
  }

  .tag-controls .btn.tiny {
    width: 24px;
    height: 24px;
    font-size: 10px;
  }

  .list {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .song {
    padding: 8px;
    gap: 8px;
  }

  .art {
    width: 44px;
    height: 44px;
  }

  .meta .title {
    font-size: 12px;
  }

  .meta .line {
    font-size: 9px;
  }

  .actions .btn {
    width: 30px;
    height: 30px;
    font-size: 11px;
  }

  nav.nav {
    width: min(232px, calc(100vw - 16px));
    max-width: calc(100vw - 16px);
  }

  .brand .title {
    font-size: 12px;
    letter-spacing: 0.08em;
  }

  nav.nav a, nav.nav .nav-logout {
    min-height: 29px;
    height: 29px;
    font-size: 9px;
  }

}

@media (max-width: 1280px) {
  .burger {
    display: inline-flex;
    height: 32px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 10px;
  }

  .topbar-inner {
    position: relative;
    flex-wrap: wrap;
    padding: 6px var(--side-pad);
    align-items: center;
    min-height: 58px;
    padding-top: 6px;
    padding-bottom: 6px;
    gap: 6px 10px;
  }

  .brand {
    order: 1;
    flex: 1 1 auto;
    min-width: 0;
  }

  .nav-wrap {
    order: 2;
    position: relative;
    width: auto;
    flex: 0 0 auto;
    z-index: 320;
  }

  form.search {
    order: 3;
    flex: 1 0 100%;
    z-index: 10;
    position: relative;
    height: 36px;
    margin-top: 0;
  }

  .tags-inline {
    order: 4;
    flex: 1 0 100%;
    margin-top: 0;
  }

  nav.nav {
    display: none;
    position: absolute;
    left: auto;
    z-index: 300;
    flex-direction: column;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    background: radial-gradient(360px 140px at 50% 0%, rgba(255, 255, 255, 0.09), transparent 70%), linear-gradient(180deg, rgba(18, 18, 24, 0.98), rgba(6, 6, 10, 0.97));
    border: 1px solid rgba(255, 255, 255, 0.13);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.82), 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 0 0 1px rgba(255, 255, 255, 0.035) inset;
    backdrop-filter: blur(22px) saturate(1.15);
    -webkit-backdrop-filter: blur(22px) saturate(1.15);
    overflow: hidden;
    top: calc(100% + 8px);
    right: 0;
    min-width: 260px;
    max-width: min(300px, calc(100vw - 20px));
    padding: 6px;
    gap: 2px;
    border-radius: 16px;
  }

  nav.nav.open {
    display: flex;
  }

  nav.nav .lang-switcher {
    margin-left: 0;
    padding-left: 0;
    border-left: none;
    justify-content: center;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    margin: 6px 0 0;
    padding: 9px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    gap: 4px;
    margin-top: 4px;
    padding-top: 6px;
  }

  nav.nav a, nav.nav .nav-logout {
    gap: 8px;
    transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
    width: 100%;
    border: 1px solid transparent;
    color: rgba(242, 242, 242, 0.68);
    font-weight: 600;
    justify-content: flex-start;
    text-align: left;
    min-height: 32px;
    height: 32px;
    padding: 0 10px;
    font-size: 10px;
    line-height: 1;
    letter-spacing: 0.055em;
    border-width: 1px;
    border-radius: 11px;
    border-left: 1px solid transparent;
    border-bottom: 1px solid transparent;
    padding-left: 10px;
    background: transparent;
    box-shadow: none;
  }

  nav.nav .nav-logout {
    text-align: center;
    justify-content: center;
    color: rgba(255, 130, 130, 0.82);
    background: rgba(255, 80, 80, 0.055);
    border-color: rgba(255, 110, 110, 0.12);
    margin-top: 5px;
    border-radius: 11px;
  }

  nav.nav a.active, nav.nav a[aria-current="page"] {
    border-color: rgba(255, 255, 255, 0.16);
    border-left-width: 2px;
    color: #fff;
    background: radial-gradient(circle at 18% 50%, rgba(255, 255, 255, 0.15), transparent 34%), linear-gradient(90deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.055));
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-left: 1px solid rgba(255, 255, 255, 0.18);
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 11px;
    padding-left: 10px;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.055) inset, 0 10px 24px rgba(0, 0, 0, 0.24), 0 0 18px rgba(255, 255, 255, 0.045);
  }

  nav.nav a:hover, nav.nav a:focus-visible {
    color: #fff;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.095), rgba(255, 255, 255, 0.045));
    border-color: rgba(255, 255, 255, 0.14);
    border-left-color: rgba(255, 255, 255, 0.14);
    border-bottom-color: rgba(255, 255, 255, 0.14);
    border-radius: 11px;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.045) inset, 0 8px 22px rgba(0, 0, 0, 0.20);
  }

  nav.nav::before {
    content: "Menu Audious";
    display: flex;
    align-items: center;
    margin: 0 0 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(242, 242, 242, 0.42);
    font-family: var(--mono);
    font-weight: 700;
    text-transform: uppercase;
    min-height: 22px;
    padding: 0 8px 5px;
    margin-bottom: 2px;
    font-size: 8px;
    letter-spacing: 0.13em;
  }

  .nav-logout {
    margin-top: 4px;
    position: relative;
  }

  .nav-logout::before {
    content: "";
    position: absolute;
    top: -6px;
    left: 12px;
    right: 12px;
    height: 1px;
    background: var(--line);
  }

  nav.nav .lang-btn {
    justify-content: center;
    background: rgba(255, 255, 255, 0.035);
    border-color: rgba(255, 255, 255, 0.07);
    height: 28px;
    min-height: 28px;
    padding: 0 8px;
    border-radius: 9px;
    font-size: 10px;
  }

  .topbar {
    min-height: 58px;
    border-bottom: 0;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 10px 34px rgba(0, 0, 0, 0.54);
  }

  nav.nav a.active::before, nav.nav a[aria-current="page"]::before {
    background: #fff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.82);
    width: 4px;
    height: 4px;
    margin-right: 6px;
  }

  nav.nav .lang-btn.active, nav.nav .lang-btn:hover, nav.nav .lang-btn:focus-visible {
    color: #fff;
    background: rgba(255, 255, 255, 0.075);
    border-color: rgba(255, 255, 255, 0.14);
  }

  nav.nav .nav-logout::before {
    display: none;
  }

  nav.nav .nav-logout:hover, nav.nav .nav-logout:focus-visible {
    color: #ff9a9a;
    background: rgba(255, 80, 80, 0.105);
    border-color: rgba(255, 130, 130, 0.24);
    border-left-color: rgba(255, 130, 130, 0.24);
    border-bottom-color: rgba(255, 130, 130, 0.24);
    border-radius: 11px;
  }

  .burger-icon {
    width: 14px;
    gap: 3px;
  }

  .burger-icon span {
    height: 1.5px;
  }

  .topbar::after {
    display: none;
    content: none;
  }

}

@media (max-width: 600px) {
  .create-playlist-btn {
    right: 14px;
    bottom: calc(var(--footer-h) + 14px);
    padding: 6px 10px;
    font-size: 11px;
  }

  .create-playlist-btn span {
    display: none;
  }

  .create-playlist-btn svg {
    width: 14px;
    height: 14px;
  }

  .reco-drawer {
    max-height: 65vh;
  }

  .reco-drawer-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.5rem;
  }

}

@media (min-width: 1400px) {
  .albums-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }

  .playlists-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }

  .albums-grid, .playlists-grid {
    grid-template-columns: repeat(auto-fill, minmax(144px, 164px));
    gap: 13px;
  }

}

@media (max-width: 480px) {
  body.auth-page {
    padding: 16px;
    align-items: center;
  }

  .auth-card {
    padding: 20px 16px;
  }

  .auth-logo-icon {
    width: 36px;
    height: 36px;
    margin-bottom: 8px;
  }

  .auth-logo-icon span {
    font-size: 16px;
  }

  .auth-header {
    margin-bottom: 16px;
  }

  .auth-header h1 {
    font-size: 15px;
  }

  .auth-header .sub {
    font-size: 10px;
    margin-top: 3px;
  }

  .auth-card .field {
    margin-bottom: 10px;
  }

  .auth-card input[type="text"], .auth-card input[type="password"], .auth-card input[type="email"] {
    height: 40px;
    padding: 0 12px;
    font-size: 14px;
  }

  .auth-card .btn {
    height: 38px;
    font-size: 12px;
    margin-top: 4px;
  }

  .auth-card .foot {
    margin-top: 14px;
    padding-top: 12px;
    font-size: 11px;
  }

  .verify-card {
    padding: 32px 24px;
  }

  .verify-actions {
    flex-direction: column;
  }

  .verify-actions .btn {
    width: 100%;
  }

}

@media (max-width: 700px) {
  .profile-card {
    padding: 16px;
  }

  .profile-content {
    grid-template-columns: 64px minmax(0, 1fr);
    grid-template-areas: "avatar info" "stats stats" "action action";
    align-items: start;
    gap: 12px;
    padding-bottom: 16px;
    margin-bottom: 14px;
  }

  .profile-avatar {
    width: 64px;
    height: 64px;
    align-self: start;
    font-size: 20px;
  }

  .profile-username {
    font-size: 19px;
  }

  .profile-bio {
    margin-top: 8px;
    font-size: 12px;
  }

  .profile-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .profile-stat {
    justify-content: center;
  }

  .profile-follow, .profile-edit {
    justify-self: stretch;
    width: 100%;
  }

  .profile-follow-btn, .profile-edit-btn {
    width: 100%;
  }

  .profile-tabs {
    border-radius: 16px;
  }

  .profile-tab {
    padding: 7px 10px;
    font-size: 9px;
  }

  .albums-grid, .playlists-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .album-card, .playlist-card {
    padding: 7px;
  }

  .playlists-carousel .playlist-card {
    flex-basis: 112px;
  }

}

@media (max-width: 420px) {
  .profile-stats {
    grid-template-columns: 1fr;
  }

  .albums-grid, .playlists-grid {
    gap: 8px;
  }

}

@media (min-width: 1281px) {
  .nav-wrap {
    gap: 10px;
  }

  nav.nav {
    gap: 4px;
    padding: 4px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025));
    border: 1px solid rgba(255, 255, 255, 0.09);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 12px 32px rgba(0, 0, 0, 0.28);
    border-radius: 999px;
  }

  nav.nav a, nav.nav .nav-logout {
    border: 1px solid transparent;
    color: rgba(242, 242, 242, 0.66);
    background: transparent;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.085em;
    line-height: 1;
    transition: color var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
    height: 34px;
    padding: 0 14px;
    border-width: 1px;
    border-radius: 999px;
    box-shadow: none;
  }

  nav.nav a:hover, nav.nav a:focus-visible {
    color: #fff;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.045));
    border-color: rgba(255, 255, 255, 0.16);
    border-bottom-color: rgba(255, 255, 255, 0.16);
    border-left-color: rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.055) inset, 0 8px 24px rgba(0, 0, 0, 0.24);
    transform: translateY(-1px);
  }

  nav.nav a.active, nav.nav a[aria-current="page"] {
    color: #fff;
    background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.18), transparent 62%), linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.065));
    border-color: rgba(255, 255, 255, 0.22);
    border-bottom-color: rgba(255, 255, 255, 0.22);
    border-left-color: rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    padding-left: 14px;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.07) inset, 0 10px 28px rgba(0, 0, 0, 0.30), 0 0 22px rgba(255, 255, 255, 0.055);
  }

  nav.nav a.active::before, nav.nav a[aria-current="page"]::before {
    width: 5px;
    height: 5px;
    margin-right: 7px;
    background: #fff;
    box-shadow: 0 0 9px rgba(255, 255, 255, 0.85);
  }

  .lang-switcher {
    margin-left: 7px;
    padding-left: 10px;
    border-left-color: rgba(255, 255, 255, 0.12);
  }

  .lang-btn {
    height: 34px;
    min-width: 34px;
    justify-content: center;
    border-radius: 999px;
    color: rgba(242, 242, 242, 0.50);
  }

  .lang-btn:hover, .lang-btn:focus-visible, .lang-btn.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.13);
  }

  nav.nav .nav-logout:hover, nav.nav .nav-logout:focus-visible {
    color: #ff9a9a;
    background: rgba(255, 90, 90, 0.10);
    border-color: rgba(255, 125, 125, 0.24);
    border-radius: 999px;
  }

}


/* === Keyframes & at-rules === */

@keyframes drift {

  from { transform: translate(-10px, -8px) scale(1.02); }
  to { transform: translate(10px, 8px) scale(1.05); }

}

@keyframes eq-logo {

  0%   { background-size: 4px 11px, 4px 20px, 4px  7px, auto; }
  25%  { background-size: 4px 18px, 4px  9px, 4px 16px, auto; }
  50%  { background-size: 4px  7px, 4px 22px, 4px 12px, auto; }
  75%  { background-size: 4px 20px, 4px 13px, 4px 19px, auto; }
  100% { background-size: 4px 11px, 4px 20px, 4px  7px, auto; }

}

@keyframes spin {

  to { transform: rotate(360deg); }

}

@keyframes pulse {

  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(-4px); opacity: 1; }

}

@keyframes artwork-float {

  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }

}

@keyframes eq-bar-1 {

  0%,100% { height: 6px;  }
  20%     { height: 14px; }
  40%     { height: 4px;  }
  60%     { height: 18px; }
  80%     { height: 8px;  }

}

@keyframes eq-bar-2 {

  0%,100% { height: 14px; }
  20%     { height: 5px;  }
  40%     { height: 20px; }
  60%     { height: 7px;  }
  80%     { height: 16px; }

}

@keyframes eq-bar-3 {

  0%,100% { height: 9px;  }
  20%     { height: 19px; }
  40%     { height: 6px;  }
  60%     { height: 13px; }
  80%     { height: 22px; }

}

@keyframes ring-pulse {

  0%, 100% { box-shadow: 0 0 0 0px rgba(255,255,255,0.14), 0 0 14px rgba(255,255,255,0.07); }
  50%      { box-shadow: 0 0 0 3px rgba(255,255,255,0.07), 0 0 22px rgba(255,255,255,0.10); }

}

@keyframes card-glow {

  0%, 100% { box-shadow: 0 10px 28px rgba(0,0,0,0.32), 0 0 0 1px rgba(255,255,255,0.10); }
  50%      { box-shadow: 0 10px 36px rgba(0,0,0,0.40), 0 0 0 1px rgba(255,255,255,0.18); }

}

@keyframes eq-overlay {

  0%,100% {
  background-size: 3px  6px, 3px 14px, 3px  9px, 100% 100%;
  }
  20% {
  background-size: 3px 14px, 3px  5px, 3px 20px, 100% 100%;
  }
  40% {
  background-size: 3px  4px, 3px 20px, 3px  6px, 100% 100%;
  }
  60% {
  background-size: 3px 18px, 3px  8px, 3px 14px, 100% 100%;
  }
  80% {
  background-size: 3px  9px, 3px 17px, 3px  5px, 100% 100%;
  }

}

@keyframes eq-label {

  0%,100% { background-size: 2px 5px,  2px 9px,  2px 3px;  }
  25%     { background-size: 2px 9px,  2px 3px,  2px 10px; }
  50%     { background-size: 2px 3px,  2px 10px, 2px 6px;  }
  75%     { background-size: 2px 10px, 2px 6px,  2px 9px;  }

}

