/* ════════════════════════════════════════
   BASE
════════════════════════════════════════ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --black: #000000;
  --white: #ffffff;
  --gray-900: #0a0a0a;
  --gray-800: #111111;
  --gray-700: #1a1a1a;
  --gray-600: #222222;
  --gray-500: #333333;
  --gray-400: #555555;
  --gray-300: #888888;
  --gray-200: #aaaaaa;
  --gray-100: #dddddd;

  --glass-bg: rgba(255,255,255,0.04);
  --glass-border: rgba(255,255,255,0.10);
  --glass-blur: blur(20px) saturate(180%);
  --glass-shadow: 0 8px 32px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.08);

  --font-display: 'Syne', sans-serif;
  --font-mono: 'DM Mono', monospace;
}

html, body {
  height: 100%;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-display);
  overflow: hidden;
}

/* ════════════════════════════════════════
   NAVBAR
════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0 6px;
  height: 44px;
  border-radius: 100px;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow:
    0 4px 24px rgba(0,0,0,0.5),
    inset 0 1px 0 rgba(255,255,255,0.10),
    inset 0 -1px 0 rgba(0,0,0,0.2);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px 0 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--white);
  border-right: 1px solid rgba(255,255,255,0.1);
  height: 100%;
}

.nav-logo-icon {
  width: 22px; height: 22px;
  background: rgba(255,255,255,0.9);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
}
.nav-logo-icon svg { color: #000; }

.nav-links {
  display: flex;
  align-items: center;
  padding: 0 6px;
}

.nav-link {
  padding: 6px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.55);
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.nav-link:hover { color: rgba(255,255,255,0.85); }
.nav-link.active {
  background: rgba(255,255,255,0.10);
  color: var(--white);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12);
}

.nav-right {
  display: flex;
  align-items: center;
  padding: 0 8px 0 6px;
  border-left: 1px solid rgba(255,255,255,0.1);
  height: 100%;
  gap: 8px;
}

.glass-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 100px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.2s;
  backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
}
.glass-pill:hover {
  background: rgba(255,255,255,0.13);
  border-color: rgba(255,255,255,0.22);
}

/* ════════════════════════════════════════
   LAYOUT
════════════════════════════════════════ */
.app {
  display: flex;
  height: 100vh;
  padding-top: 76px;
  padding-bottom: 0;
  transition: padding-bottom 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.app.player-visible {
  padding-bottom: 88px;
}

/* ════════════════════════════════════════
   SIDEBAR
════════════════════════════════════════ */
.sidebar {
  width: 220px;
  flex-shrink: 0;
  background: var(--gray-900);
  border-right: 1px solid rgba(255,255,255,0.05);
  display: flex;
  flex-direction: column;
  padding: 20px 0;
  overflow-y: auto;
}

.sb-section { padding: 0 12px 16px; }

.sb-label {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray-400);
  padding: 0 8px 10px;
}

.sb-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-300);
  cursor: pointer;
  transition: all 0.15s;
}
.sb-item:hover { background: rgba(255,255,255,0.04); color: var(--white); }
.sb-item.active {
  background: rgba(255,255,255,0.07);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.08);
}
.sb-item svg { width: 15px; height: 15px; opacity: 0.6; flex-shrink: 0; }
.sb-item.active svg { opacity: 1; }

.sb-divider {
  height: 1px;
  background: rgba(255,255,255,0.05);
  margin: 4px 12px 16px;
}

.sb-pl {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
}
.sb-pl:hover { background: rgba(255,255,255,0.04); }
.sb-pl-thumb {
  width: 34px; height: 34px;
  border-radius: 5px;
  background: var(--gray-700);
  border: 1px solid rgba(255,255,255,0.07);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}
.sb-pl-name { font-size: 12.5px; font-weight: 500; color: var(--gray-200); }
.sb-pl-count { font-size: 10.5px; color: var(--gray-400); }

/* ════════════════════════════════════════
   MAIN & CONTENT
════════════════════════════════════════ */
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--black);
}

.content {
  flex: 1;
  overflow-y: auto;
  padding: 28px 24px;
  scrollbar-width: thin;
  scrollbar-color: var(--gray-600) transparent;
}
.content::-webkit-scrollbar { width: 3px; }
.content::-webkit-scrollbar-thumb { background: var(--gray-600); border-radius: 2px; }

/* ════════════════════════════════════════
   TWO-PANEL
════════════════════════════════════════ */
.two-panel {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 0;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  overflow: hidden;
  background: var(--gray-900);
  margin-bottom: 28px;
  min-height: 520px;
}

.panel-left {
  border-right: 1px solid rgba(255,255,255,0.07);
  padding: 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.panel-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
  position: relative;
  z-index: 2;
}

.panel-sub {
  font-size: 12.5px;
  color: var(--gray-300);
  margin-bottom: 18px;
  position: relative;
  z-index: 2;
}

.glow-grid {
  flex: 1;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  min-height: 360px;
}
.glow-grid::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.055) 1px, transparent 1px);
  background-size: 32px 32px;
  z-index: 1;
}
.glow-grid::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 55% 45% at 50% 50%,
    rgba(255,255,255,0.18) 0%,
    rgba(255,255,255,0.08) 25%,
    rgba(255,255,255,0.02) 55%,
    rgba(0,0,0,0) 75%
  );
  z-index: 2;
  pointer-events: none;
}

.grid-tracklist {
  position: absolute;
  inset: 0;
  z-index: 3;
  padding: 16px;
  overflow-y: auto;
  scrollbar-width: none;
}
.grid-tracklist::-webkit-scrollbar { display: none; }

.panel-right {
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
}
.panel-right .panel-title { font-size: 17px; }

.icon-circle {
  width: 64px; height: 64px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.03);
  display: flex; align-items: center; justify-content: center;
  margin: 24px auto;
  position: relative;
}
.icon-circle::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.06);
}

.metric-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 14px;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 8px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.07),
    inset 0 -1px 0 rgba(0,0,0,0.15),
    0 2px 8px rgba(0,0,0,0.3);
  transition: all 0.2s;
  cursor: default;
}
.metric-card:hover {
  background: rgba(255,255,255,0.065);
  border-color: rgba(255,255,255,0.13);
}
.metric-card:last-child { margin-bottom: 0; }

.metric-icon {
  width: 28px; height: 28px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.5);
}
.metric-info { flex: 1; }
.metric-label { font-size: 12px; font-weight: 600; color: var(--white); margin-bottom: 2px; }
.metric-sub { font-size: 10.5px; color: var(--gray-400); }
.metric-value {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--white);
  white-space: nowrap;
}

/* ════════════════════════════════════════
   TRACK ROWS
════════════════════════════════════════ */
.tr {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
  position: relative;
}
.tr:hover { background: rgba(255,255,255,0.06); }
.tr.playing { background: rgba(255,255,255,0.05); }
.tr.playing .tr-title { color: var(--white); }

.tr-num { width: 20px; text-align: center; font-size: 11px; color: var(--gray-400); font-family: var(--font-mono); flex-shrink: 0; }
.tr-pi { width: 20px; display: none; align-items: center; justify-content: center; flex-shrink: 0; color: var(--gray-300); }
.tr:hover .tr-num { display: none; }
.tr:hover .tr-pi { display: flex; }
.tr.playing .tr-num { display: none; }
.tr.playing .tr-pi { display: flex; }

.tr-art { width: 36px; height: 36px; border-radius: 6px; overflow: hidden; flex-shrink: 0; background: var(--gray-700); border: 1px solid rgba(255,255,255,0.06); }
.tr-art img { width: 100%; height: 100%; object-fit: cover; }

.tr-info { flex: 1; overflow: hidden; }
.tr-title { font-size: 12.5px; font-weight: 500; color: rgba(255,255,255,0.85); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tr-artist { font-size: 11px; color: var(--gray-400); cursor: pointer; }
.tr-artist:hover { color: var(--gray-200); }

.tr-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.tr-dur { font-family: var(--font-mono); font-size: 11px; color: var(--gray-400); }
.tr-like { background: none; border: none; color: var(--gray-500); cursor: pointer; display: none; align-items: center; transition: color 0.15s; padding: 2px; }
.tr-like:hover { color: rgba(255,255,255,0.7); }
.tr-like.liked { color: var(--white)!important; display: flex!important; }
.tr:hover .tr-like { display: flex; }

.bars { display: flex; align-items: flex-end; gap: 2px; height: 12px; }
.bar { width: 2px; background: var(--white); border-radius: 1px; animation: bwave 0.7s ease-in-out infinite alternate; }
.bar:nth-child(2) { animation-delay: .15s; }
.bar:nth-child(3) { animation-delay: .3s; }
@keyframes bwave { from{height:2px} to{height:10px} }

/* ════════════════════════════════════════
   CARDS
════════════════════════════════════════ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}

.card {
  background: var(--gray-900);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}
.card:hover {
  border-color: rgba(255,255,255,0.14);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.5);
}
.card:hover .card-play { opacity: 1; transform: scale(1) translateY(0); }

.card-art { width: 100%; aspect-ratio: 1; overflow: hidden; position: relative; background: var(--gray-800); }
.card-art img { width: 100%; height: 100%; object-fit: cover; display: block; filter: grayscale(20%); }
.card-art .placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 38px; background: var(--gray-800); }

.card-play {
  position: absolute;
  bottom: 8px; right: 8px;
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transform: scale(0.8) translateY(5px);
  transition: all 0.2s;
  box-shadow: 0 4px 14px rgba(0,0,0,0.5);
}

.card-info { padding: 10px 11px; }
.card-name { font-size: 12px; font-weight: 600; color: var(--white); margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-sub { font-size: 10.5px; color: var(--gray-400); }

/* ════════════════════════════════════════
   SECTIONS
════════════════════════════════════════ */
.sec { margin-bottom: 30px; animation: fadeUp 0.35s ease both; }
.sec:nth-child(2) { animation-delay: .05s; }
.sec:nth-child(3) { animation-delay: .1s; }
.sec:nth-child(4) { animation-delay: .15s; }
@keyframes fadeUp { from{opacity:0;transform:translateY(12px)} to{opacity:1;transform:translateY(0)} }

.sec-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.sec-title { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gray-300); }
.see-all { font-size: 11px; color: var(--gray-400); cursor: pointer; transition: color 0.15s; }
.see-all:hover { color: var(--white); }

/* ════════════════════════════════════════
   HSCROLL
════════════════════════════════════════ */
.hscroll { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.hscroll::-webkit-scrollbar { height: 2px; }
.hscroll::-webkit-scrollbar-thumb { background: var(--gray-600); }
.hscroll .card { min-width: 148px; flex-shrink: 0; }

/* ════════════════════════════════════════
   PAGE TITLE
════════════════════════════════════════ */
.ptitle {
  font-size: 22px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

/* ════════════════════════════════════════
   BUTTONS
════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: 100px;
  border: none;
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s;
  letter-spacing: 0.02em;
}
.btn-w {
  background: var(--white);
  color: var(--black);
  box-shadow: 0 2px 12px rgba(255,255,255,0.15);
}
.btn-w:hover { background: var(--gray-100); transform: scale(1.03); }
.btn-glass {
  background: rgba(255,255,255,0.07);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}
.btn-glass:hover { background: rgba(255,255,255,0.11); }

.ico-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--gray-300);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
}
.ico-btn:hover { background: rgba(255,255,255,0.09); color: var(--white); }

/* ════════════════════════════════════════
   CHIPS
════════════════════════════════════════ */
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 20px; }
.chip {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 100px;
  padding: 6px 13px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--gray-300);
  cursor: pointer;
  transition: all 0.15s;
}
.chip:hover, .chip.on {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
  color: var(--white);
}

/* ════════════════════════════════════════
   PAGES
════════════════════════════════════════ */
.page { display: none; animation: fadeUp 0.3s ease both; }
.page.on { display: block; }

/* ════════════════════════════════════════
   ALBUM / ARTIST
════════════════════════════════════════ */
.alb-header { display: flex; gap: 22px; align-items: flex-end; margin-bottom: 26px; }
.alb-cover {
  width: 170px; height: 170px;
  border-radius: 12px;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 16px 50px rgba(0,0,0,0.7);
  border: 1px solid rgba(255,255,255,0.08);
}
.alb-cover img { width: 100%; height: 100%; object-fit: cover; }
.alb-type { font-size: 9.5px; letter-spacing: .15em; text-transform: uppercase; color: var(--gray-400); margin-bottom: 7px; }
.alb-title { font-size: 30px; font-weight: 800; line-height: 1; margin-bottom: 9px; letter-spacing: -0.02em; }
.alb-meta { font-size: 12px; color: var(--gray-300); margin-bottom: 16px; }
.alb-meta span { color: var(--white); cursor: pointer; }
.alb-meta span:hover { text-decoration: underline; }
.alb-acts { display: flex; align-items: center; gap: 8px; }

.art-banner {
  height: 200px; border-radius: 14px; overflow: hidden;
  position: relative; margin-bottom: 26px;
  background: var(--gray-800);
}
.art-banner img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(30%) brightness(.4); }
.art-banner-content { position: absolute; bottom: 20px; left: 22px; z-index: 1; }
.art-badge {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 100px; padding: 3px 10px;
  font-size: 10px; color: var(--gray-200); font-weight: 600;
  margin-bottom: 8px; backdrop-filter: blur(10px);
}
.art-name { font-size: 28px; font-weight: 800; }
.art-fans { font-size: 12px; color: var(--gray-300); margin-top: 4px; }

.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 26px; }
.stat {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  padding: 16px;
  backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}
.stat-n { font-family: var(--font-mono); font-size: 20px; font-weight: 500; color: var(--white); }
.stat-l { font-size: 10.5px; color: var(--gray-400); margin-top: 3px; }

/* ════════════════════════════════════════
   LIKED GRID
════════════════════════════════════════ */
.liked-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 7px; }
.liked-row {
  display: flex; align-items: center; gap: 10px;
  padding: 9px; border-radius: 9px;
  background: rgba(255,255,255,0.025);
  border: 1px solid transparent;
  cursor: pointer; transition: all 0.15s;
}
.liked-row:hover { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.07); }
.liked-art { width: 40px; height: 40px; border-radius: 6px; overflow: hidden; flex-shrink: 0; background: var(--gray-700); }
.liked-art img { width: 100%; height: 100%; object-fit: cover; }

/* ════════════════════════════════════════
   SEARCH EMPTY
════════════════════════════════════════ */
.search-empty { text-align: center; padding: 50px 20px; color: var(--gray-500); }
.search-empty svg { margin-bottom: 12px; opacity: .3; }
.search-empty p { font-size: 14px; }

/* ════════════════════════════════════════
   SPINNER
════════════════════════════════════════ */
.spinner { display: flex; justify-content: center; padding: 36px; }
.spin { width: 28px; height: 28px; border: 2px solid var(--gray-700); border-top-color: var(--white); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to{transform:rotate(360deg)} }

/* ════════════════════════════════════════
   PROFILE
════════════════════════════════════════ */
.prof-header { display: flex; align-items: flex-end; gap: 20px; margin-bottom: 26px; }
.prof-ava {
  width: 90px; height: 90px; border-radius: 50%;
  background: var(--gray-700);
  border: 1.5px solid rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 800; color: var(--white);
  flex-shrink: 0;
  box-shadow: 0 8px 30px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.08);
}
.prof-name { font-size: 32px; font-weight: 800; letter-spacing: -0.02em; }

/* ════════════════════════════════════════
   PLAYER — Liquid Glass
════════════════════════════════════════ */
.player {
  position: fixed;
  bottom: 12px;
  left: 12px;
  right: 12px;
  z-index: 9999;
  height: 88px;
  min-height: 88px;
  border-radius: 16px;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  border-top: none;
  border: 1px solid rgba(255,255,255,0.13);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(40px) saturate(220%) brightness(1.08);
  -webkit-backdrop-filter: blur(40px) saturate(220%) brightness(1.08);
  border-top: 1px solid rgba(255,255,255,0.13);
  display: flex;
  align-items: center;
  padding: 0 22px;
  gap: 0;
  box-shadow:
    0 -1px 0 rgba(255,255,255,0.06),
    0 -20px 60px rgba(0,0,0,0.5),
    inset 0 1px 0 rgba(255,255,255,0.09),
    inset 0 0 80px rgba(255,255,255,0.015);
}

.player.visible {
  visibility: visible;
  opacity: 1;
}

/* Тонкий прогресс сверху */
.prog-bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: rgba(255,255,255,0.07);
  cursor: pointer;
  z-index: 10;
  border-radius: 16px 16px 0 0;
  overflow: hidden;
}
.prog-fill {
  height: 100%;
  background: linear-gradient(90deg, rgba(255,255,255,0.6), rgba(255,255,255,1));
  border-radius: 0 1px 1px 0;
  position: relative;
  transition: width .1s linear;
}
.prog-fill::after {
  content: '';
  position: absolute;
  right: -4px; top: 50%;
  transform: translateY(-50%);
  width: 8px; height: 8px;
  background: var(--white);
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(255,255,255,0.8);
  opacity: 0;
  transition: opacity .15s;
}
.prog-bar:hover .prog-fill::after { opacity: 1; }

/* ── Левая часть: обложка + инфо + лайк ── */
.now-play {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 260px;
  flex-shrink: 0;
}

.np-thumb {
  width: 52px; height: 52px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--gray-700);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow:
    0 4px 16px rgba(0,0,0,0.5),
    inset 0 1px 0 rgba(255,255,255,0.1);
  position: relative;
}
.np-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 60%);
  pointer-events: none;
}
.np-thumb img { width: 100%; height: 100%; object-fit: cover; }

.np-title {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--white);
  letter-spacing: 0.01em;
}
.np-artist {
  font-size: 11px;
  color: var(--gray-400);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.np-like {
  background: none;
  border: none;
  color: var(--gray-500);
  cursor: pointer;
  transition: color .15s, transform .15s;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  padding: 6px;
  border-radius: 50%;
}
.np-like:hover {
  color: var(--gray-200);
  transform: scale(1.15);
}
.np-like.liked { color: var(--white); }

/* ── Центр: контролы + таймлайн ── */
.player-mid {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  padding: 0 20px;
}

.ctrls {
  display: flex;
  align-items: center;
  gap: 2px;
}

/* Обычные кнопки управления */
.cb {
  background: none;
  border: none;
  color: rgba(255,255,255,0.45);
  cursor: pointer;
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color .15s, background .15s, transform .1s;
}
.cb:hover {
  color: var(--white);
  background: rgba(255,255,255,0.07);
  transform: scale(1.05);
}
.cb.on { color: var(--white); }

/* Кнопка play/pause — Liquid Glass шар */
.pb {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--black);
  margin: 0 6px;
  position: relative;
  transition: transform .15s, box-shadow .15s;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,0.3),
    inset 0 -1px 0 rgba(0,0,0,0.15),
    0 6px 20px rgba(255,255,255,0.18),
    0 2px 8px rgba(0,0,0,0.4);
}
.pb::before {
  content: '';
  position: absolute;
  top: 2px; left: 4px; right: 4px;
  height: 40%;
  background: linear-gradient(180deg, rgba(255,255,255,0.35) 0%, transparent 100%);
  border-radius: 50% 50% 0 0;
  pointer-events: none;
}
.pb:hover {
  transform: scale(1.08);
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,0.4),
    inset 0 -1px 0 rgba(0,0,0,0.15),
    0 8px 28px rgba(255,255,255,0.28),
    0 4px 12px rgba(0,0,0,0.4);
}
.pb:active { transform: scale(0.97); }

/* Timeline */
.timeline-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 440px;
}
.t-time {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--gray-400);
  min-width: 32px;
  letter-spacing: 0.05em;
}
.t-time:last-child { text-align: right; }

.tl {
  flex: 1;
  height: 3px;
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
  cursor: pointer;
  position: relative;
  transition: height .15s;
}
.tl:hover { height: 5px; }
.tl-fill {
  height: 100%;
  background: linear-gradient(90deg, rgba(255,255,255,0.7), rgba(255,255,255,1));
  border-radius: 3px;
  width: 0%;
  position: relative;
}
.tl-fill::after {
  content: '';
  position: absolute;
  right: -5px; top: 50%;
  transform: translateY(-50%);
  width: 11px; height: 11px;
  background: var(--white);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(255,255,255,0.6);
  opacity: 0;
  transition: opacity .15s;
}
.tl:hover .tl-fill::after { opacity: 1; }

/* ── Правая часть: громкость ── */
.player-right {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 180px;
  justify-content: flex-end;
  flex-shrink: 0;
}

.vol-bar {
  width: 72px; height: 3px;
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
  cursor: pointer;
  position: relative;
  transition: height .15s;
}
.vol-bar:hover { height: 5px; }
.vol-fill {
  height: 100%;
  width: 70%;
  background: rgba(255,255,255,0.6);
  border-radius: 3px;
  transition: background .15s;
}
.vol-bar:hover .vol-fill { background: var(--white); }

/* ════════════════════════════════════════
   TOAST
════════════════════════════════════════ */
.toast {
  position: fixed; bottom: 100px; left: 50%; transform: translateX(-50%) translateY(8px);
  background: rgba(255,255,255,0.1); backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--white); padding: 9px 18px; border-radius: 100px;
  font-size: 12.5px; font-weight: 500; z-index: 9999;
  opacity: 0; transition: all .25s; pointer-events: none;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.1);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Slide indicators */
.slide-dots { display: flex; gap: 5px; justify-content: center; padding: 10px; }
.dot { width: 5px; height: 5px; border-radius: 50%; background: var(--gray-600); transition: all .2s; }
.dot.on { width: 16px; border-radius: 3px; background: var(--white); }

/* ════════════════════════════════════════
   SUBBAR
════════════════════════════════════════ */
.subbar {
  display: flex;
  align-items: center;
  padding: 10px 20px;
  gap: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  background: var(--gray-900);
  flex-shrink: 0;
}
.search-box {
  flex: 1;
  max-width: 380px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 100px;
  display: flex; align-items: center; gap: 8px;
  padding: 7px 13px;
  transition: all .2s;
}
.search-box:focus-within {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.16);
}
.search-box input {
  background: none; border: none; outline: none;
  color: var(--white); font-family: var(--font-display); font-size: 13px; width: 100%;
}
.search-box input::placeholder { color: var(--gray-500); }
.subbar-right { margin-left: auto; }
.ava {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--gray-700); border: 1px solid rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: var(--white); cursor: pointer;
  transition: transform .2s;
}
.ava:hover { transform: scale(1.08); }

/* ════════════════════════════════════════
   AUTH OVERLAY
════════════════════════════════════════ */
#auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: authFadeIn 0.4s ease both;
}
#auth-overlay.hiding {
  animation: authFadeOut 0.4s ease both;
}
@keyframes authFadeIn { from{opacity:0} to{opacity:1} }
@keyframes authFadeOut { from{opacity:1} to{opacity:0} }

.auth-modal {
  display: flex;
  width: 820px;
  max-width: calc(100vw - 32px);
  height: 520px;
  max-height: calc(100vh - 32px);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 40px 120px rgba(0,0,0,0.8), inset 0 1px 0 rgba(255,255,255,0.1);
  animation: authSlideUp 0.4s cubic-bezier(0.16,1,0.3,1) both;
}
@keyframes authSlideUp { from{opacity:0;transform:translateY(24px)} to{opacity:1;transform:translateY(0)} }

/* Левая видео сторона */
.auth-video-side {
  width: 320px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  background: #0a0a0a;
}
.auth-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
}
.auth-video-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0,0,0,0.3) 0%,
    rgba(0,0,0,0.6) 100%
  );
}
.auth-video-text {
  position: absolute;
  bottom: 28px;
  left: 24px;
  z-index: 2;
}
.auth-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}
.auth-tagline {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Правая форма */
.auth-form-side {
  flex: 1;
  background: rgba(10,10,10,0.95);
  padding: 44px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.auth-form-side::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(255,255,255,0.04) 0%, transparent 70%);
  pointer-events: none;
}

.auth-screen { display: none; flex-direction: column; gap: 0; }
.auth-screen.active { display: flex; animation: authFadeIn 0.25s ease both; }

.auth-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 5px;
  letter-spacing: -0.02em;
}
.auth-sub {
  font-size: 12px;
  color: var(--gray-400);
  margin-bottom: 24px;
}

.auth-field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.auth-label { font-size: 11px; font-weight: 600; color: var(--gray-300); letter-spacing: 0.05em; text-transform: uppercase; }
.auth-input {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 10px 14px;
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--white);
  outline: none;
  transition: border-color .2s, background .2s;
}
.auth-input:focus {
  border-color: rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.08);
}
.auth-input::placeholder { color: var(--gray-500); }
.auth-input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(1); opacity: 0.4; }

.auth-check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 11.5px;
  color: var(--gray-400);
  cursor: pointer;
  margin-bottom: 12px;
  margin-top: 2px;
  line-height: 1.4;
}
.auth-check input[type="checkbox"] { margin-top: 2px; flex-shrink: 0; accent-color: white; }
.auth-check u { color: var(--gray-200); }

.auth-error {
  min-height: 16px;
  font-size: 11.5px;
  color: #ff7b7b;
  margin-bottom: 10px;
  margin-top: -4px;
}
.auth-error.shake {
  animation: shake 0.35s ease both;
}
@keyframes shake {
  0%,100%{transform:translateX(0)}
  20%{transform:translateX(-5px)}
  40%{transform:translateX(5px)}
  60%{transform:translateX(-4px)}
  80%{transform:translateX(4px)}
}

.auth-btn {
  width: 100%;
  padding: 11px;
  border-radius: 10px;
  border: none;
  background: var(--white);
  color: var(--black);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: transform .15s, box-shadow .15s, background .15s;
  box-shadow: 0 4px 20px rgba(255,255,255,0.15);
  margin-bottom: 14px;
}
.auth-btn:hover { transform: scale(1.02); box-shadow: 0 6px 28px rgba(255,255,255,0.22); }
.auth-btn:active { transform: scale(0.98); }

.auth-switch {
  text-align: center;
  font-size: 12px;
  color: var(--gray-500);
}
.auth-switch span {
  color: var(--gray-200);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color .15s;
}
.auth-switch span:hover { color: var(--white); }

/* ════════════════════════════════════════
   PROFILE BANNER
════════════════════════════════════════ */
.prof-header-banner {
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 0;
  background: var(--gray-900);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 26px;
}

.prof-banner {
  height: 140px;
  position: relative;
  background: var(--gray-800);
  overflow: hidden;
  flex-shrink: 0;
}
.prof-banner-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,0.7) 100%);
  pointer-events: none;
}
.prof-banner-btn {
  position: absolute;
  bottom: 12px; right: 12px;
  display: flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  border-radius: 100px;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  letter-spacing: 0.02em;
}
.prof-banner-btn:hover {
  background: rgba(0,0,0,0.7);
  border-color: rgba(255,255,255,0.3);
}

.prof-info-row {
  display: flex;
  align-items: flex-end;
  gap: 18px;
  padding: 0 24px 22px;
  margin-top: -36px;
  position: relative;
}
.prof-ava-wrap {
  position: relative;
  flex-shrink: 0;
}
.prof-ava-wrap .prof-ava {
  width: 80px; height: 80px;
  border: 3px solid var(--gray-900);
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  font-size: 22px;
}
.prof-ava-edit {
  position: absolute;
  bottom: 0; right: 0;
  width: 24px; height: 24px;
  background: var(--gray-600);
  border: 2px solid var(--gray-900);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--white);
  transition: background .15s;
}
.prof-ava-edit:hover { background: var(--gray-500); }
.prof-info { flex: 1; padding-bottom: 2px; }

/* ════════════════════════════════════════
   BANNER PICKER POPUP
════════════════════════════════════════ */
#banner-picker {
  position: fixed;
  inset: 0;
  z-index: 10001;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: authFadeIn 0.2s ease both;
}

.banner-modal {
  background: #111;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 24px;
  width: 420px;
  max-width: calc(100vw - 32px);
  box-shadow: 0 30px 80px rgba(0,0,0,0.7);
  animation: authSlideUp 0.3s cubic-bezier(0.16,1,0.3,1) both;
}
.banner-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.banner-modal-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
}
.banner-close {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50%;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-300);
  cursor: pointer;
  transition: all .15s;
}
.banner-close:hover { background: rgba(255,255,255,0.1); color: var(--white); }

.banner-section-title {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 10px;
}

.banner-colors {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.banner-color-opt {
  height: 60px;
  border-radius: 10px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  transition: transform .15s, box-shadow .15s;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 6px;
}
.banner-color-opt:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0,0,0,0.5);
  border-color: rgba(255,255,255,0.25);
}
.banner-color-label {
  font-size: 9px;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.05em;
  text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}

.banner-upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
}
.banner-upload-btn:hover { background: rgba(255,255,255,0.09); border-color: rgba(255,255,255,0.2); }

.banner-remove-btn {
  display: block;
  margin-top: 10px;
  background: none;
  border: none;
  color: var(--gray-500);
  font-family: var(--font-display);
  font-size: 11.5px;
  cursor: pointer;
  padding: 4px 0;
  transition: color .15s;
}
.banner-remove-btn:hover { color: #ff7b7b; }