/* ==========================================================================
   MUZIX DESIGN SYSTEM (Premium Dark Aesthetic)
   ========================================================================== */

@font-face {
  font-family: 'Wix Madefor Display';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../assets/fonts/display-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Wix Madefor Display';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../assets/fonts/display-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Wix Madefor Display';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../assets/fonts/display-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Wix Madefor Text';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../assets/fonts/text-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Wix Madefor Text';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../assets/fonts/text-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Wix Madefor Text';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../assets/fonts/text-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Crisp minimalist dark palette (Aeza-inspired) */
  --bg: #0b0c0e;
  --surface: #121316;
  --raised: #18191e;
  --sunken: #08090a;
  --text: #f0f2f5;
  --text2: #9ba1ad;
  --muted: #5e6472;
  --outline: #22242a;
  --outlinestrong: #2e313a;
  --selected: rgba(240, 101, 29, 0.12);
  --accent: #f0651d;
  --accent-hover: #fa722b;
  --accent-glow: none;
  --onaccent: #FFFFFF;
  --danger: #ef4444;

  --display: 'Wix Madefor Display', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --text-font: 'Wix Madefor Text', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius: 12px;
  --radius-s: 8px;
  --sidebar-w: 256px;
  --queue-w: 330px;
  --player-h: 78px;
  color-scheme: dark;
}

html[data-theme="light"] {
  --bg: #f8f9fa;
  --surface: #ffffff;
  --raised: #f1f3f5;
  --sunken: #e9ecef;
  --text: #111215;
  --text2: #495057;
  --muted: #868e96;
  --outline: #dee2e6;
  --outlinestrong: #ced4da;
  --selected: rgba(240, 101, 29, 0.1);
  --accent: #f0651d;
  --accent-hover: #d95514;
  --accent-glow: none;
  --onaccent: #FFFFFF;
  --danger: #e03131;

  --radius: 12px;
  --radius-s: 8px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--text-font);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, .section-title, .brand .wordmark, .wh-title, .ph-title {
  font-family: var(--display);
  letter-spacing: -0.03em;
}

a { color: inherit; text-decoration: none; }
a.link:hover { text-decoration: underline; }
button { font-family: inherit; }
input, textarea, select { font-family: inherit; }
.hidden { display: none !important; }
.ic {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

::-webkit-scrollbar { width: 7px; height: 7px; }
::-webkit-scrollbar-thumb {
  background: rgba(243, 239, 236, 0.14);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(243, 239, 236, 0.26);
}
::-webkit-scrollbar-track { background: transparent; }

.app {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr 0;
  height: 100vh;
  transition: grid-template-columns .24s cubic-bezier(0.16, 1, 0.3, 1);
  background: var(--bg);
}
body.has-player .app,
body:has(#playerbar:not(.hidden)) .app {
  height: calc(100vh - var(--player-h));
}
.app.queue-open { grid-template-columns: var(--sidebar-w) 1fr var(--queue-w); }

.app.sidebar-collapsed {
  grid-template-columns: 0 1fr 0;
}
.app.sidebar-collapsed.queue-open {
  grid-template-columns: 0 1fr var(--queue-w);
}
.app.sidebar-collapsed .sidebar {
  width: 0 !important;
  min-width: 0 !important;
  max-width: 0 !important;
  padding: 0 !important;
  border-right: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden;
}

/* ---------------- sidebar ---------------- */
.sidebar {
  background: var(--sunken);
  border-right: 1px solid var(--outline);
  display: flex;
  flex-direction: column;
  padding: 16px 12px 14px;
  overflow: hidden;
  height: 100%;
  min-height: 0;
  user-select: none;
  transition: width .24s cubic-bezier(0.16, 1, 0.3, 1),
              padding .24s cubic-bezier(0.16, 1, 0.3, 1),
              opacity .2s ease,
              visibility .24s ease;
}
.sidebar-body {
  flex: 1 1 0%;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px 20px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -0.04em;
  color: var(--text);
}
.brand img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}
.brand .wordmark span {
  color: var(--accent);
  font-weight: 700;
}

.nav { display: flex; flex-direction: column; gap: 4px; }
.nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 9px 12px;
  border-radius: var(--radius-s);
  color: var(--text2);
  cursor: pointer;
  border: 1px solid transparent;
  background: none;
  font-size: 14px;
  font-weight: 500;
  width: 100%;
  text-align: left;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.nav-item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-color: var(--outline);
}
.nav-item.active {
  background: var(--selected);
  border-color: rgba(240, 101, 29, 0.25);
  color: var(--accent);
  font-weight: 600;
}
.nav-item.active .ic {
  color: var(--accent);
}
.nav-item .count {
  margin-left: auto;
  font-size: 11.5px;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  padding: 1px 7px;
  border-radius: 999px;
}

.nav-sep { height: 1px; background: var(--outline); margin: 12px 6px; }
.nav-caption {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--muted);
  font-weight: 700;
  padding: 12px 14px 6px;
}

.side-bottom {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--outline);
  flex-shrink: 0;
}
.user-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  cursor: pointer;
  border: 1px solid var(--outline);
  background: var(--surface);
  width: 100%;
  text-align: left;
  color: var(--text);
  margin-top: 14px;
  transition: background .2s ease, border-color .2s ease, transform .15s ease;
}
.user-chip:hover {
  background: var(--raised);
  border-color: var(--outlinestrong);
  transform: translateY(-1px);
}
.user-chip img, .avatar-fallback {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--selected);
  flex: none;
}
.user-chip .name {
  font-weight: 600;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.user-chip .uname {
  font-size: 12px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------------- main ---------------- */
.main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  position: relative;
}
.topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 28px;
  flex: none;
  background: rgba(15, 13, 13, 0.75);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border-bottom: 1px solid var(--outline);
  z-index: 10;
}
.topbar .nav-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.history-btn:disabled { opacity: .35; cursor: default; }
.topbar .ttl {
  font-family: var(--display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-right: auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
}
.tb-user-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 5px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--outline);
  color: var(--text);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease;
  flex-shrink: 0;
}
.tb-user-btn:hover {
  background: var(--raised);
  border-color: var(--outlinestrong);
}
.tb-user-btn img, .tb-user-btn .avatar-fallback {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--selected);
}
.tb-user-name {
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 600px) {
  .tb-user-name {
    display: none;
  }
  .tb-user-btn {
    padding: 3px;
  }
}

.view {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 14px 28px 40px;
  scroll-behavior: smooth;
}
.section { margin: 32px 0 12px; }
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  gap: 12px;
}
.section-title {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.035em;
  margin: 0;
}
.sec-right { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.section-more {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  border: none;
  background: none;
  padding: 6px 10px;
  border-radius: 8px;
  transition: color .18s ease, background .18s ease;
}
.section-more:hover {
  color: var(--accent);
  background: rgba(243, 239, 236, 0.05);
}
.sec-arrows { display: inline-flex; align-items: center; gap: 6px; }
.sec-arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--outline);
  background: var(--surface);
  color: var(--text2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: background .18s, color .18s, border-color .18s, transform .1s;
}
.sec-arrow:hover {
  background: var(--raised);
  color: var(--text);
  border-color: var(--outlinestrong);
}
.sec-arrow:active { opacity: 0.8; }
.sec-arrow .ic { width: 15px; height: 15px; }

/* ---------------- buttons ---------------- */
.btn {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 8px 20px;
  font-family: var(--display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  background: var(--accent);
  color: #fff;
  transition: background .15s ease, border-color .15s ease, opacity .15s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: none;
}
.btn:hover {
  background: var(--accent-hover);
  border-color: transparent;
}
.btn:active { opacity: 0.9; }
.btn:disabled { opacity: .4; cursor: default; }
.btn.ghost {
  background: var(--surface);
  border: 1px solid var(--outline);
  color: var(--text);
  box-shadow: none;
}
.btn.ghost:hover {
  background: var(--raised);
  border-color: var(--outlinestrong);
  color: #fff;
}
.btn.danger {
  background: var(--danger);
  color: #fff;
}
.btn.danger:hover {
  filter: brightness(1.1);
}
.btn.small { padding: 6px 16px; font-size: 13px; font-weight: 500; border-radius: 999px; }
.btn.block { width: 100%; justify-content: center; }

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
  flex: none;
}
.icon-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--outline);
  color: #fff;
}
.icon-btn:active { background: rgba(255, 255, 255, 0.08); }

/* Active & Liked states - clean minimalist solid accent fill, crisp white icon, no blurry glow */
.icon-btn.active,
.icon-btn.liked {
  color: #fff !important;
  background: var(--accent) !important;
  border-color: transparent !important;
  border-radius: 50% !important;
  box-shadow: none !important;
  animation: none !important;
}
.icon-btn.active:hover,
.icon-btn.liked:hover {
  background: var(--accent-hover) !important;
  color: #fff !important;
  box-shadow: none !important;
  transform: none !important;
}
.icon-btn.active:active,
.icon-btn.liked:active {
  opacity: 0.9 !important;
  transform: none !important;
}

.icon-btn.small { width: 30px; height: 30px; border-radius: 50%; }
.icon-btn.small .ic { width: 16px; height: 16px; }
.icon-btn.danger:hover { color: var(--danger); }
#pb-dislike:hover,
#fs-mod-dislike:hover,
[data-act="wave-dislike"]:hover {
  color: #ff5252 !important;
  background: rgba(255, 82, 82, 0.1) !important;
  border-color: rgba(255, 82, 82, 0.25) !important;
  transform: none !important;
}
#pb-dislike:active,
#fs-mod-dislike:active,
[data-act="wave-dislike"]:active {
  opacity: 0.9 !important;
  transform: none !important;
}
#pb-dislike.disliked,
#fs-mod-dislike.disliked,
[data-act="wave-dislike"].disliked {
  color: #ff5252 !important;
  background: rgba(255, 82, 82, 0.1) !important;
  border-color: rgba(255, 82, 82, 0.25) !important;
  border-radius: 50% !important;
}

/* Regular buttons in liked state (e.g. track page like button) */
.btn.liked,
.btn.ghost.liked {
  background: var(--accent) !important;
  border-color: transparent !important;
  border-radius: 999px !important;
  color: #fff !important;
  box-shadow: none !important;
}
.btn.liked:hover,
.btn.ghost.liked:hover {
  background: var(--accent-hover) !important;
  color: #fff !important;
  transform: none !important;
  box-shadow: none !important;
}

.play-fab {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .15s ease, opacity .15s ease;
  box-shadow: none;
}
.play-fab:hover {
  background: var(--accent-hover);
  box-shadow: none;
  transform: none;
}
.play-fab:active { opacity: 0.9; transform: none; }
.play-fab .ic { width: 22px; height: 22px; }
.play-fab.small { width: 40px; height: 40px; border-radius: 50%; }

#wave-toggle-btn {
  width: 52px;
  height: 52px;
  border-radius: 50% !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: var(--accent);
  color: #fff;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .15s ease, opacity .15s ease;
  box-shadow: none;
}
#wave-toggle-btn:hover {
  background: var(--accent-hover);
  box-shadow: none;
  transform: none;
}
#wave-toggle-btn:active { opacity: 0.9; transform: none; }
#wave-toggle-btn .ic {
  width: 24px;
  height: 24px;
}

/* ---------------- inputs ---------------- */
.input, .select, .textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: var(--radius-s);
  color: var(--text);
  padding: 10px 14px;
  font-size: 14px;
  outline: none;
  transition: border-color .15s ease, background .15s ease;
}
.input:hover, .textarea:hover, .select:hover {
  border-color: var(--outlinestrong);
}
.input:focus, .textarea:focus, .select:focus {
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: none;
  outline: 1px solid var(--accent);
}
.input::placeholder, .textarea::placeholder { color: var(--muted); }
.textarea { resize: vertical; min-height: 90px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 500; color: var(--text2); margin-bottom: 6px; }
.form-error {
  background: rgba(239, 68, 68, .12);
  border: 1px solid rgba(239, 68, 68, .35);
  color: var(--danger);
  border-radius: var(--radius-s);
  padding: 10px 14px;
  font-size: 13.5px;
  margin-bottom: 14px;
}
.search-box {
  flex: 1;
  max-width: 480px;
  position: relative;
  display: flex;
  align-items: center;
}
.search-box .ic {
  position: absolute;
  left: 12px;
  color: var(--muted);
  width: 17px;
  height: 17px;
  pointer-events: none;
}
.search-box input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: var(--radius-s);
  color: var(--text);
  padding: 9px 38px;
  font-size: 14px;
  outline: none;
  transition: border-color .15s ease, background .15s ease;
}
.search-box input:hover {
  border-color: var(--outlinestrong);
}
.search-box input:focus {
  background: var(--surface);
  border-color: var(--accent);
  box-shadow: none;
  outline: 1px solid var(--accent);
}
.search-box .clear { position: absolute; right: 8px; }

/* ---------------- chips / tabs ---------------- */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid var(--outline);
  background: var(--surface);
  color: var(--text2);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all .15s ease;
  user-select: none;
}
.chip .ic {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  display: block;
}
.chip:hover {
  border-color: var(--outlinestrong);
  color: var(--text);
  background: var(--raised);
}
.chip.active {
  background: var(--selected);
  color: var(--accent);
  border-color: rgba(240, 101, 29, 0.4);
  font-weight: 600;
  box-shadow: none;
}
.chip.active .ic { color: var(--accent); }

.tabs {
  display: flex;
  gap: 6px;
  border-bottom: 1px solid var(--outline);
  margin: 12px 0 22px;
  overflow-x: auto;
}
.tab {
  padding: 10px 18px;
  border: none;
  background: none;
  color: var(--text2);
  font-family: var(--display);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
  transition: color .18s ease, border-color .18s ease;
}
.tab:hover { color: var(--text); }
.tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ---------------- cards / grids ---------------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(172px, 1fr));
  gap: 16px;
}
.grid.wide { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.card {
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: var(--radius);
  padding: 12px;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
  position: relative;
  min-width: 0;
  box-shadow: none;
}
.card:hover {
  background: var(--raised);
  border-color: var(--outlinestrong);
  transform: none;
  box-shadow: none;
}
.card .card-cover { position: relative; margin-bottom: 10px; }
.card .card-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-s);
  background: var(--surface);
  display: block;
  border: 1px solid var(--outline);
  box-shadow: none;
}
.card .card-img.round { border-radius: 50%; }
.card .card-play {
  position: absolute;
  right: 10px;
  bottom: 10px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .18s ease, transform .18s cubic-bezier(0.16, 1, 0.3, 1);
}
.card:hover .card-play {
  opacity: 1;
  transform: none;
}
.card-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: -0.015em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.card-sub {
  color: var(--muted);
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 3px;
}
.badge-src {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  padding: 1px 7px;
  border-radius: 999px;
  border: 1px solid var(--outline);
  color: var(--muted);
  vertical-align: 1px;
  margin-left: 6px;
  white-space: nowrap;
}

.hrow,
.artists-row {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 12px;
  padding-top: 4px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}
.hrow.dragging,
.artists-row.dragging {
  cursor: grabbing !important;
  user-select: none;
  scroll-behavior: auto !important;
}
.hrow .card { min-width: 172px; width: 172px; flex: none; }

/* ---------------- track rows ---------------- */
.track-list { display: flex; flex-direction: column; gap: 2px; }
.track-row {
  display: grid;
  grid-template-columns: 32px 46px 1fr auto auto;
  align-items: center;
  gap: 14px;
  padding: 8px 12px;
  border-radius: var(--radius-s);
  cursor: pointer;
  user-select: none;
  transition: background .16s ease, transform .1s ease;
}
.track-row:hover {
  background: rgba(243, 239, 236, 0.05);
}
.track-row.playing {
  background: rgba(243, 239, 236, 0.08);
  border-radius: var(--radius-s);
}
.track-row.playing .tr-title {
  color: #FFFFFF;
  font-weight: 700;
}
.track-row .tr-num {
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}
.track-row .tr-art { position: relative; width: 46px; height: 46px; flex: none; }
.track-row .tr-art img {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  object-fit: cover;
  background: var(--selected);
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
.track-row .tr-art .tr-eq {
  position: absolute;
  inset: 0;
  display: none;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  background: rgba(15, 13, 13, 0.65);
  backdrop-filter: blur(4px);
  border-radius: 10px;
  padding-bottom: 10px;
}
.track-row.playing .tr-art .tr-eq { display: flex; }
.tr-eq span {
  width: 3px;
  background: var(--accent);
  border-radius: 2px;
  animation: eq-bars 0.85s ease-in-out infinite alternate;
}
.tr-eq span:nth-child(1) { height: 6px; animation-duration: 0.65s; }
.tr-eq span:nth-child(2) { height: 18px; animation-duration: 0.9s; animation-delay: 0.15s; }
.tr-eq span:nth-child(3) { height: 11px; animation-duration: 0.75s; animation-delay: 0.3s; }
.tr-eq span:nth-child(4) { height: 20px; animation-duration: 0.85s; animation-delay: 0.1s; }
@keyframes eq-bars {
  0% { transform: scaleY(0.35); }
  50% { transform: scaleY(1); }
  100% { transform: scaleY(0.5); }
}
.track-row.playing.is-paused .tr-art .tr-eq span {
  animation-play-state: paused;
  opacity: 0.55;
}

.live-eq {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 13px;
  vertical-align: middle;
  margin-right: 6px;
}
.live-eq span {
  width: 2.5px;
  background: var(--accent);
  border-radius: 1px;
  animation: eq-bars 0.8s ease-in-out infinite alternate;
}
.live-eq span:nth-child(1) { height: 6px; animation-duration: 0.6s; }
.live-eq span:nth-child(2) { height: 13px; animation-duration: 0.85s; animation-delay: 0.2s; }
.live-eq span:nth-child(3) { height: 9px; animation-duration: 0.7s; animation-delay: 0.4s; }

.track-row .tr-main { min-width: 0; display: flex; gap: 10px; align-items: center; }
.track-row .tr-text { min-width: 0; }
.track-row .tr-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: 14.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.track-row .tr-sub {
  color: var(--muted);
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 1px;
}
.track-row .tr-src {
  font-size: 10.5px;
  color: var(--muted);
  border: 1px solid var(--outline);
  padding: 1px 7px;
  border-radius: 999px;
  white-space: nowrap;
}
.track-row .tr-dur {
  color: var(--muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.track-row .tr-actions { display: flex; gap: 4px; opacity: 0; transition: opacity .15s ease; }
.track-row:hover .tr-actions, .track-row.playing .tr-actions, .track-row .tr-actions.has-like { opacity: 1; }
.track-row .tr-actions .liked { color: #fff !important; background: var(--accent) !important; }
.track-row.explicit .tr-title::after {
  content: "E";
  display: inline-block;
  font-size: 9.5px;
  font-weight: 700;
  background: var(--outline);
  color: var(--text2);
  border-radius: 3px;
  padding: 0 4px;
  margin-left: 6px;
  vertical-align: 1.5px;
}

.list-date {
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 2;
  padding: 14px 12px 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text2);
}

.empty-state {
  text-align: center;
  padding: 70px 20px;
  color: var(--muted);
}
.empty-state .ic {
  width: 48px;
  height: 48px;
  margin-bottom: 14px;
  opacity: .45;
  color: var(--accent);
}
.empty-state .es-title {
  font-family: var(--display);
  font-size: 19px;
  color: var(--text);
  margin-bottom: 6px;
  font-weight: 700;
}

.skeleton {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border-radius: var(--radius-s);
}
.skeleton::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.05), transparent);
  animation: sk 1.4s infinite;
}
@keyframes sk { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

/* ---------------- page headers (playlist/artist/album/profile) ---------------- */
.page-head {
  display: flex;
  gap: 28px;
  align-items: flex-end;
  padding: 24px 0 16px;
  flex-wrap: wrap;
}
.page-head .ph-img {
  width: 200px;
  height: 200px;
  border-radius: 22px;
  object-fit: cover;
  background: var(--selected);
  box-shadow: 0 16px 40px -10px rgba(0,0,0,.65);
}
.page-head .ph-img.round { border-radius: 50%; }
.page-head .ph-info { min-width: 240px; flex: 1; }
.ph-kind {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
}
.ph-title {
  font-size: clamp(34px, 4vw, 56px);
  font-weight: 800;
  margin: 0 0 12px;
  line-height: 1.05;
  letter-spacing: -0.04em;
}
.ph-sub {
  color: var(--text2);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.ph-sub .dot::before { content: "·"; margin: 0 4px; color: var(--muted); }
.ph-actions { display: flex; gap: 12px; align-items: center; margin-top: 22px; flex-wrap: wrap; }

/* ---------------- player bar ---------------- */
.playerbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: var(--player-h);
  background: rgba(18, 15, 15, 0.94);
  backdrop-filter: blur(28px) saturate(170%);
  -webkit-backdrop-filter: blur(28px) saturate(170%);
  border-top: 1px solid var(--outline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  gap: 16px;
  z-index: 40;
}
.pb-track {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1 1 240px;
  max-width: 340px;
}
.pb-cover {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-s);
  object-fit: cover;
  background: var(--surface);
  border: 1px solid var(--outline);
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: none;
  transition: opacity .15s ease;
}
.pb-cover:hover { opacity: 0.85; }
.pb-text { min-width: 0; flex: 1; overflow: hidden; }
.pb-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}
.pb-title:hover, .pb-artist:hover { text-decoration: underline; color: var(--accent); }
.pb-artist {
  font-size: 12.5px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 1px;
}
.pb-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 2 1 400px;
  max-width: 620px;
}
.pb-buttons { display: flex; align-items: center; gap: 8px; }
.pb-play {
  width: 40px;
  height: 40px;
  border-radius: 50% !important;
  background: var(--accent);
  color: #fff;
  border: 1px solid transparent;
  box-shadow: none;
}
.pb-play:hover {
  background: var(--accent-hover);
  transform: none;
  box-shadow: none;
}
.pb-progress { display: flex; align-items: center; gap: 10px; width: 100%; }
.pb-time {
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  min-width: 38px;
  text-align: center;
  font-weight: 500;
}
.pb-right {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
  flex: 1 1 240px;
  max-width: 320px;
}
.pb-vol { width: 96px; }

.slider {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  cursor: pointer;
  width: 100%;
  height: 18px;
}
.slider::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(to right, var(--accent) var(--fill, 0%), rgba(243, 239, 236, 0.12) var(--fill, 0%));
}
.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--accent);
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
  margin-top: -4.5px;
  opacity: 0;
  transition: opacity .15s ease, transform .15s ease;
}
.slider:hover::-webkit-slider-thumb, .slider:active::-webkit-slider-thumb {
  opacity: 1;
  transform: scale(1.15);
}
.slider::-moz-range-track {
  height: 4px;
  border-radius: 999px;
  background: rgba(243, 239, 236, 0.12);
}
.slider::-moz-range-progress {
  height: 4px;
  border-radius: 999px;
  background: var(--accent);
}
.slider::-moz-range-thumb {
  width: 13px;
  height: 13px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  background: #fff;
  opacity: 0;
  transition: opacity .15s;
}
.slider:hover::-moz-range-thumb { opacity: 1; }

/* ---------------- queue panel ---------------- */
.queue-panel {
  background: var(--sunken);
  border-left: 1px solid var(--outline);
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  height: 100%;
  max-height: 100%;
  overflow: hidden;
}
.queue-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 12px;
  font-family: var(--display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.queue-list {
  flex: 1 1 0%;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0 10px calc(var(--player-h, 80px) + 24px);
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.q-row {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 8px 10px;
  border-radius: var(--radius-s);
  cursor: pointer;
  transition: background .15s ease;
}
.q-row:hover { background: rgba(243, 239, 236, 0.05); }
.q-row.playing {
  background: rgba(243, 239, 236, 0.08);
  border-radius: var(--radius-s);
}
.q-row img {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--selected);
}
.q-row .q-title {
  font-family: var(--display);
  font-size: 14px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.q-row .q-sub {
  font-size: 12.5px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 2px;
}

/* ---------------- modal / menu / toast ---------------- */
#modal-root, #menu-root { position: fixed; inset: 0; pointer-events: none; z-index: 150; }
.modal-wrap, .menu-wrap {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .68);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .2s ease;
  pointer-events: auto;
}
.modal-wrap.show, .menu-wrap.show { opacity: 1; }
.modal {
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: var(--radius);
  width: min(520px, calc(100vw - 40px));
  max-height: calc(100vh - 120px);
  display: flex;
  flex-direction: column;
  transform: translateY(8px);
  transition: transform .18s ease;
  box-shadow: 0 16px 48px -8px rgba(0, 0, 0, 0.85);
}
.modal-wrap.show .modal { transform: none; }
.modal.wide { width: min(780px, calc(100vw - 40px)); }
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 8px;
}
.modal-title {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.modal-body { padding: 14px 24px 24px; overflow-y: auto; }
.modal-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 22px; }
.confirm-text { color: var(--text2); line-height: 1.6; }

.menu-wrap { background: transparent; backdrop-filter: none; align-items: flex-start; justify-content: flex-start; }
.ctx-menu {
  position: absolute;
  min-width: 240px;
  max-width: 330px;
  background: rgba(26, 22, 22, 0.94);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid var(--outlinestrong);
  border-radius: 16px;
  padding: 8px;
  box-shadow: 0 20px 50px -10px rgba(0,0,0,.7);
  max-height: 70vh;
  overflow-y: auto;
}
.ctx-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  border: none;
  background: none;
  color: var(--text);
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  transition: background .15s ease;
}
.ctx-item:hover { background: rgba(243, 239, 236, 0.08); }
.ctx-item.danger { color: var(--danger); }
.ctx-item .ic { width: 18px; height: 18px; color: var(--text2); }
.ctx-item.danger .ic { color: var(--danger); }
.ctx-sep { height: 1px; background: var(--outline); margin: 6px 8px; }
.ctx-head {
  padding: 8px 14px 4px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .8px;
  font-weight: 700;
  color: var(--muted);
}

.toast-root {
  position: fixed;
  left: 50%;
  bottom: calc(var(--player-h) + 20px);
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 120;
  pointer-events: none;
}
.toast {
  background: rgba(33, 29, 29, 0.94);
  backdrop-filter: blur(16px);
  border: 1px solid var(--outlinestrong);
  color: var(--text);
  padding: 11px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 12px 32px rgba(0,0,0,.55);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .2s ease, transform .22s cubic-bezier(0.16, 1, 0.3, 1);
  max-width: 70vw;
}
.toast.show { opacity: 1; transform: none; }
.toast.error { border-color: var(--danger); color: var(--danger); }

/* ---------------- auth ---------------- */
#auth-root {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  padding: 30px 16px;
}
.auth-card {
  width: min(450px, 100%);
  background: var(--surface);
  border: 1px solid var(--outlinestrong);
  border-radius: 26px;
  padding: 36px 36px 30px;
  box-shadow: 0 24px 64px -14px rgba(0,0,0,0.8);
}
.auth-logo { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.auth-logo img { width: 52px; height: 52px; object-fit: contain; }
.auth-logo .word {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.04em;
}
.auth-slogan { color: var(--text2); font-size: 14.5px; margin: 4px 0 0; }
.auth-tabs {
  display: flex;
  margin: 22px 0 20px;
  background: var(--sunken);
  border-radius: 999px;
  padding: 4px;
  border: 1px solid var(--outline);
}
.auth-tab {
  flex: 1;
  padding: 9px;
  border: none;
  background: none;
  border-radius: 999px;
  color: var(--text2);
  cursor: pointer;
  font-family: var(--display);
  font-size: 14px;
  font-weight: 600;
  transition: all .18s ease;
}
.auth-tab.active {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 14px var(--accent-glow);
}
.auth-divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; margin: 20px 0; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--outline); }
.consent { display: flex; gap: 10px; font-size: 13px; color: var(--text2); margin-bottom: 16px; align-items: flex-start; }
.consent input { margin-top: 3px; accent-color: var(--accent); }
.tg-code {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 8px;
  text-align: center;
  background: var(--sunken);
  border: 1px dashed var(--accent);
  border-radius: var(--radius);
  padding: 18px;
  margin: 16px 0;
  user-select: all;
  cursor: copy;
  color: var(--accent);
}
.tg-wait { display: flex; align-items: center; gap: 10px; justify-content: center; color: var(--text2); font-size: 14px; }
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--outline);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .8s linear infinite;
  flex: none;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------- profile ---------------- */
.stats-row { display: flex; gap: 32px; flex-wrap: wrap; margin: 20px 0; }
.stat .sv {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
}
.stat .sl { font-size: 13px; color: var(--muted); margin-top: 2px; }
.artists-row {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 12px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}
.artists-row.dragging { cursor: grabbing !important; user-select: none; }
.artist-mini { text-align: center; width: 100px; cursor: pointer; flex: none; }
.artist-mini img {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--selected);
  margin-bottom: 8px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.3);
  transition: transform .18s ease;
}
.artist-mini:hover img { opacity: 0.9; }
.artist-mini .am-name {
  font-family: var(--display);
  font-weight: 600;
  font-size: 13.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.artist-mini .am-plays { font-size: 12px; color: var(--muted); }

/* ---------------- wave hero & wave page (Muzix aura) ---------------- */
.wave-hero {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--outline);
  box-shadow: none;
  min-height: 250px;
  display: flex;
  align-items: center;
  padding: 36px 40px;
  margin: 14px 0 18px;
}
.wave-hero canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.wave-hero .wh-content {
  position: relative;
  z-index: 2;
  max-width: 580px;
}
.wave-hero .wh-kicker {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
}
.wave-hero .wh-title {
  font-family: var(--display);
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin: 0 0 10px;
}
.wave-hero .wh-sub {
  color: var(--text2);
  font-size: 15.5px;
  line-height: 1.5;
  margin-bottom: 22px;
}
.wave-hero.wave-page {
  justify-content: center;
  text-align: center;
}
.wave-hero.wave-page .wh-content {
  max-width: 680px;
  margin: 0 auto;
}
.wave-hero.wave-page .wave-controls {
  justify-content: center;
}
.wave-page .wp-track { display: flex; gap: 24px; align-items: center; margin: 28px 0; }
.wave-page .wp-cover {
  width: 160px;
  height: 160px;
  border-radius: 20px;
  object-fit: cover;
  background: var(--selected);
  box-shadow: 0 12px 30px rgba(0,0,0,0.5);
}
.wave-reactions { display: flex; gap: 12px; margin-top: 18px; }
.reaction-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--outline);
  border-radius: 999px;
  background: rgba(243, 239, 236, 0.05);
  color: var(--text);
  padding: 10px 20px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all .18s ease;
}
.reaction-btn:hover {
  background: var(--raised);
  border-color: var(--outlinestrong);
}
.reaction-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 4px 16px var(--accent-glow);
}

/* ---------------- comments ---------------- */
.comment { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--outline); }
.comment img, .comment .avatar-fallback {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--selected);
  flex: none;
}
.comment .c-body { flex: 1; min-width: 0; }
.comment .c-head { display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
.comment .c-name { font-weight: 600; font-family: var(--display); }
.comment .c-badge { font-size: 10px; border: 1px solid var(--outline); border-radius: 999px; padding: 0 7px; color: var(--muted); }
.comment .c-time { color: var(--muted); font-size: 12px; margin-left: auto; white-space: nowrap; }
.comment .c-text { margin: 8px 0; white-space: pre-wrap; word-break: break-word; line-height: 1.55; }
.comment .c-img { max-width: 280px; border-radius: var(--radius-s); margin: 8px 0; display: block; cursor: zoom-in; }
.comment .c-actions { display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: 13px; }
.comment .c-actions button {
  border: none;
  background: none;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 6px;
  border-radius: 6px;
  transition: all .15s ease;
}
.comment .c-actions button:hover { color: var(--text); background: rgba(243, 239, 236, 0.08); }
.comment .c-actions button.liked { color: var(--accent); }
.c-replies { margin-left: 54px; }
.composer { display: flex; gap: 12px; align-items: flex-end; margin: 16px 0; }
.composer textarea { flex: 1; min-height: 46px; max-height: 140px; }
.reply-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text2);
  background: var(--sunken);
  padding: 8px 12px;
  border-radius: 10px;
  margin-bottom: 10px;
}
.reply-banner button { border: none; background: none; color: var(--muted); cursor: pointer; margin-left: auto; }

/* ---------------- notifications ---------------- */
.notif {
  display: flex;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-s);
  align-items: flex-start;
  transition: background .15s ease;
}
.notif:hover { background: rgba(243, 239, 236, 0.05); }
.notif.unread { background: var(--surface); border-left: 3px solid var(--accent); }
.notif .n-ic {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--selected);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  color: var(--accent);
}
.notif .n-body { flex: 1; min-width: 0; }
.notif .n-text { font-size: 14.5px; }
.notif .n-time { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.notif img.n-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; background: var(--selected); }

/* ---------------- tops ---------------- */
.top-row {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  border-radius: var(--radius-s);
  transition: background .15s ease;
}
.top-row:hover { background: rgba(243, 239, 236, 0.05); }
.top-row .rank {
  font-family: var(--display);
  font-size: 21px;
  font-weight: 800;
  text-align: center;
  color: var(--text2);
  font-variant-numeric: tabular-nums;
}
.top-row:nth-child(1) .rank { color: #FFB800; }
.top-row:nth-child(2) .rank { color: #C0C0C0; }
.top-row:nth-child(3) .rank { color: #CD7F32; }
.top-row.me { background: var(--selected); border: 1px solid rgba(240, 101, 29, 0.3); }
.top-row .t-user { display: flex; align-items: center; gap: 14px; min-width: 0; }
.top-row .t-user img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--selected); }
.top-row .t-name { font-family: var(--display); font-weight: 600; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-row .t-score { color: var(--text2); font-size: 13.5px; font-variant-numeric: tabular-nums; font-weight: 500; }

/* ---------------- settings ---------------- */
.settings-grid {
  width: 100%;
  max-width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 20px;
  align-items: start;
}
.set-card {
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 0;
}
.set-card h3 {
  margin: 0 0 16px;
  font-family: var(--display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 0; flex-wrap: wrap; }
.set-row .sr-label { min-width: 160px; font-weight: 500; }
.set-row .sr-hint { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.switch { position: relative; width: 46px; height: 26px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .track {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(243, 239, 236, 0.15);
  transition: background .2s ease;
  cursor: pointer;
}
.switch .track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--text);
  transition: transform .2s cubic-bezier(0.16, 1, 0.3, 1), background .2s ease;
}
.switch input:checked + .track { background: var(--accent); }
.switch input:checked + .track::after { transform: translateX(20px); background: #fff; }

/* ---------------- checkboxes ---------------- */
input[type="checkbox"]:not(.switch input),
.checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  height: 20px;
  width: 20px;
  border-radius: 5px;
  background: var(--surface);
  border: 1px solid var(--outlinestrong);
  cursor: pointer;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  vertical-align: middle;
  transition: background .15s ease, border-color .15s ease;
  outline: none;
  margin: 0;
  box-shadow: none;
}

input[type="checkbox"]:not(.switch input):hover,
.checkbox:hover {
  border-color: var(--text2);
  background: var(--raised);
  box-shadow: none;
  transform: none;
}

input[type="checkbox"]:not(.switch input):active,
.checkbox:active {
  opacity: 0.85;
  transform: none;
}

input[type="checkbox"]:not(.switch input):focus-visible,
.checkbox:focus-visible {
  border-color: var(--accent);
  outline: 1px solid var(--accent);
}

input[type="checkbox"]:not(.switch input):checked,
.checkbox:checked {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: none;
}

input[type="checkbox"]:not(.switch input)::after,
.checkbox::after {
  content: "";
  width: 5px;
  height: 10px;
  border: solid #ffffff;
  border-width: 0 2.2px 2.2px 0;
  transform: rotate(45deg) scale(0);
  margin-bottom: 2px;
  transition: transform .18s cubic-bezier(0.16, 1, 0.3, 1);
}

input[type="checkbox"]:not(.switch input):checked::after,
.checkbox:checked::after {
  transform: rotate(45deg) scale(1);
}

input[type="checkbox"]:not(.switch input):indeterminate,
.checkbox:indeterminate {
  background: var(--accent);
  border-color: var(--accent);
}

input[type="checkbox"]:not(.switch input):indeterminate::after,
.checkbox:indeterminate::after {
  content: "";
  width: 10px;
  height: 2.2px;
  background: #ffffff;
  border: none;
  border-radius: 1px;
  transform: scale(1);
  margin-bottom: 0;
}

input[type="checkbox"]:not(.switch input):disabled,
.checkbox:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  border-color: var(--outline);
}

.check-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: 12px;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease, box-shadow .16s ease;
  user-select: none;
}
.check-row:hover {
  background: rgba(243, 239, 236, 0.05);
  border-color: var(--outlinestrong);
}
.check-row:has(input[type="checkbox"]:checked) {
  border-color: rgba(240, 101, 29, 0.4);
  background: rgba(240, 101, 29, 0.06);
}

/* ---------------- import ---------------- */
.import-step { display: flex; gap: 14px; }
.import-step .step-num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--selected);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-size: 14px;
  font-weight: 800;
  flex: none;
}
.import-match { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--outline); font-size: 14px; }
.import-match .st-ok { color: #52c41a; }
.import-match .st-bad { color: var(--danger); }

/* Official Muzix-style Import */
.import-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin: 18px 0 24px;
}
.import-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--outline);
  border-radius: 22px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  cursor: pointer;
  transition: transform .22s cubic-bezier(0.16, 1, 0.3, 1), border-color .22s, box-shadow .22s;
}
.import-card:hover {
  transform: translateY(-3px);
  border-color: var(--outlinestrong);
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.5);
}
.import-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.import-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  box-shadow: 0 8px 20px -4px rgba(0, 0, 0, 0.4);
}
.import-card.yandex .import-card-icon {
  background: #000;
  border: 1px solid rgba(255, 204, 0, 0.35);
  box-shadow: 0 4px 18px rgba(255, 204, 0, 0.2);
}
.import-card.soundcloud .import-card-icon {
  background: #181515;
  border: 1px solid rgba(255, 85, 0, 0.35);
  box-shadow: 0 4px 18px rgba(255, 85, 0, 0.2);
}
.import-card.soundcloud .import-card-icon {
  background: linear-gradient(135deg, #FF7700 0%, #FF3300 100%);
}
.import-card-badge {
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  border: 1px solid var(--outline);
}
.import-card-badge.connected {
  background: rgba(82, 196, 26, 0.15);
  color: #52c41a;
  border-color: rgba(82, 196, 26, 0.3);
}
.import-card-title {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.02em;
}
.import-card-body {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text2);
  flex: 1;
}
.import-card-btn {
  margin-top: auto;
  width: 100%;
}
.import-config-box {
  background: var(--card);
  border: 1px solid var(--outline);
  border-radius: 24px;
  padding: 28px;
  max-width: 620px;
  margin: 16px auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.import-config-head {
  display: flex;
  align-items: center;
  gap: 16px;
}
.import-chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.import-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--outline);
  background: rgba(255, 255, 255, 0.04);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all .16s ease;
}
.import-chip.active {
  background: var(--selected);
  border-color: var(--accent);
  color: var(--accent);
}
.import-progress-box {
  background: var(--card);
  border: 1px solid var(--outline);
  border-radius: 24px;
  padding: 38px 30px;
  max-width: 540px;
  margin: 24px auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.import-bar-track {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
  margin: 12px 0 4px;
}
.import-bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 999px;
  transition: width .28s ease;
}
.import-result-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(82, 196, 26, 0.15);
  color: #52c41a;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}
.import-result-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
  margin: 8px 0;
}
.import-stat-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--outline);
  border-radius: 16px;
  padding: 14px;
  text-align: center;
}
.import-stat-num {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 800;
  color: var(--accent);
}
.import-stat-label {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 2px;
}

/* ---------------- responsive ---------------- */
@media (max-width: 1150px) {
  .app.queue-open { grid-template-columns: var(--sidebar-w) 1fr 0; }
  #queue-panel {
    position: fixed;
    right: 0; top: 0;
    bottom: var(--player-h);
    width: var(--queue-w);
    z-index: 60;
    transform: translateX(100%);
    transition: transform .24s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
  }
  .app.queue-open #queue-panel { transform: none; }
}
@media (max-width: 900px) {
  .app {
    display: block !important;
    height: 100vh;
    height: 100dvh;
    width: 100%;
    overflow: hidden;
    position: relative;
  }
  .main {
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    display: flex;
    flex-direction: column;
  }
  .sidebar {
    position: fixed;
    left: 0; top: 0;
    bottom: calc(var(--player-h, 64px) + 56px) !important;
    height: auto !important;
    width: min(300px, 82vw);
    z-index: 85;
    transform: translateX(-100%);
    transition: transform .24s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 10px 0 30px rgba(0,0,0,0.5);
    padding: 16px 12px 14px !important;
  }
  .app.sidebar-collapsed { grid-template-columns: 1fr; }
  .app.sidebar-collapsed .sidebar {
    width: min(300px, 82vw) !important;
    min-width: 0 !important;
    max-width: min(300px, 82vw) !important;
    padding: 16px 12px 14px !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    visibility: visible !important;
  }
  .app.sidebar-open .sidebar { transform: none; }
  .app.sidebar-open::after {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 80;
    cursor: pointer;
  }
  #queue-panel {
    position: fixed;
    right: 0; top: 0; bottom: 0;
    width: min(340px, 90vw);
    z-index: 85;
    transform: translateX(100%);
    transition: transform .24s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
  }
  #queue-panel .queue-list {
    padding-bottom: calc(var(--player-h, 64px) + 70px) !important;
  }
  .app.queue-open #queue-panel { transform: none; }
  .app.queue-open::after {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 80;
    cursor: pointer;
  }
  .mobile-nav {
    display: flex !important;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 56px;
    background: rgba(18, 15, 15, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--outline);
    z-index: 60;
    align-items: center;
    justify-content: space-around;
    padding: 0 4px;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .mob-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    padding: 6px 0;
    transition: color .15s ease;
    user-select: none;
  }
  .mob-item .ic {
    width: 22px;
    height: 22px;
  }
  .mob-item.active {
    color: var(--accent);
  }
  .mob-item:active {
    transform: scale(0.95);
  }

  .playerbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
    bottom: 56px !important;
    height: 64px !important;
    z-index: 55;
    gap: 8px;
  }
  .pb-track {
    flex: 1 1 auto;
    max-width: none;
    gap: 10px;
  }
  .pb-cover {
    width: 44px;
    height: 44px;
    border-radius: 10px;
  }
  .pb-title {
    font-size: 13.5px;
  }
  .pb-artist {
    font-size: 11.5px;
  }
  .pb-center {
    flex: 0 0 auto;
    max-width: none;
  }
  .pb-center .pb-progress { display: none !important; }
  .pb-center .pb-buttons { gap: 4px; }
  .pb-right { display: none !important; }
  #pb-shuffle, #pb-repeat { display: none !important; }

  @media (max-width: 520px) {
    .playerbar {
      padding: 0 10px;
    }
    .pb-track {
      gap: 8px;
    }
    .pb-cover {
      width: 40px;
      height: 40px;
      border-radius: 8px;
    }
    .pb-title {
      font-size: 13px;
    }
    #pb-like {
      width: 34px;
      height: 34px;
    }
    #pb-dislike {
      display: none !important;
    }
    #pb-prev, #pb-next {
      width: 34px;
      height: 34px;
    }
    #pb-toggle {
      width: 38px;
      height: 38px;
    }
  }
  .view {
    padding: 8px 14px 28px;
    padding-bottom: calc(64px + 56px + 24px) !important;
  }
  .page-head .ph-img { width: 120px; height: 120px; }
  .ph-title { font-size: 24px; }
}
@media (max-width: 768px) {
  .wave-hero {
    padding: 24px 16px 28px;
    border-radius: 20px;
    margin: 10px 0 14px;
    min-height: 200px;
  }
  .wave-hero .wh-title {
    font-size: clamp(26px, 6vw, 36px);
  }
  .wave-hero .wh-sub {
    font-size: 14px;
    margin-bottom: 16px;
  }
  .wave-controls {
    gap: 8px;
    justify-content: center;
  }
  .wave-controls .play-fab {
    height: 46px;
    padding: 0 20px;
  }
  .wave-now {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 18px 24px;
    gap: 16px;
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
  }
  .wave-now .wn-cover {
    width: 170px;
    height: 170px;
    border-radius: 16px;
    margin: 0 auto;
  }
  .wave-now .wn-title {
    font-size: 20px;
    margin-bottom: 4px;
  }
}
@media (max-width: 640px) {
  .track-row {
    grid-template-columns: 44px 1fr auto auto;
    gap: 10px;
    padding: 8px 6px;
  }
  .track-row .tr-num { display: none; }
  .track-row .tr-actions { opacity: 1 !important; }
  .track-row .tr-dur { display: none; }
  .topbar { padding: 10px 14px; gap: 8px; }
  .topbar .ttl { font-size: 16px; }
  .import-grid { grid-template-columns: 1fr; }
}
.hamburger {
  display: inline-flex;
}
.hamburger.active {
  background: var(--raised);
  border-color: var(--outlinestrong);
  color: var(--accent);
}

/* ---------------- extras ---------------- */
.set-row .sr-value { color: var(--text2); font-size: 14px; }
.notice {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--sunken);
  border: 1px solid var(--outline);
  border-radius: var(--radius-s);
  padding: 14px 16px;
  margin-bottom: 14px;
  color: var(--text2);
}
.notice .ic { flex: none; margin-top: 2px; color: var(--accent); }
.top-list { display: flex; flex-direction: column; gap: 4px; margin-top: 4px; }
.top-row .t-user .avatar-fallback { width: 44px; height: 44px; border-radius: 50%; flex: none; }
.wave-controls { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.wave-controls .play-fab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: auto;
  padding: 0 24px;
  height: 52px;
  border-radius: 999px;
  font-family: var(--display);
  font-size: 15px;
  font-weight: 700;
}
.wave-now {
  position: relative;
  overflow: hidden;
  display: flex;
  gap: 24px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: var(--radius);
  padding: 22px 24px 26px;
  max-width: 760px;
  box-shadow: none;
}
.wave-now .wn-cover {
  width: 130px;
  height: 130px;
  border-radius: var(--radius-s);
  border: 1px solid var(--outline);
  object-fit: cover;
  background: var(--selected);
  flex: none;
  box-shadow: none;
}
.wave-now .wn-kicker {
  display: none;
}
.wave-now .wn-title {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}
.wave-now .wn-sub { color: var(--text2); font-size: 15px; }
.wave-now .wn-progress-track {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  pointer-events: none;
}
.wave-now .wn-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--accent);
  box-shadow: none;
  transition: width .15s linear;
}
@media (max-width: 640px) {
  .wave-now { flex-direction: column; align-items: flex-start; }
  .wave-now .wn-cover { width: 100%; height: auto; aspect-ratio: 1; max-width: 240px; }
}

/* ---------------- lyrics overlay / modal ---------------- */
.lyrics-modal {
  width: min(720px, calc(100vw - 32px)) !important;
  max-height: calc(100vh - 80px) !important;
  height: 82vh !important;
  background: var(--surface) !important;
  backdrop-filter: blur(36px) saturate(190%) !important;
  -webkit-backdrop-filter: blur(36px) saturate(190%) !important;
  border: 1px solid var(--outline) !important;
  border-radius: var(--radius) !important;
  box-shadow: 0 24px 64px -12px rgba(0, 0, 0, 0.85) !important;
  display: flex !important;
  flex-direction: column !important;
}
.lyrics-head-track {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.lyrics-head-cover {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-s);
  border: 1px solid var(--outline);
  object-fit: cover;
  background: var(--selected);
  flex: none;
  box-shadow: none;
}
.lyrics-head-info { min-width: 0; }
.lyrics-head-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.02em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lyrics-head-artist {
  font-size: 13px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 1px;
}
.lyrics-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  background: var(--selected);
  border: 1px solid rgba(240, 101, 29, 0.25);
  padding: 3px 10px;
  border-radius: 999px;
  margin-left: 10px;
  vertical-align: middle;
}
.lyrics-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 36px 24px 120px;
  scroll-behavior: smooth;
  user-select: none;
}
.lyric-line {
  font-family: var(--display);
  font-size: clamp(20px, 2.6vw, 29px);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -0.02em;
  color: rgba(243, 239, 236, 0.28);
  cursor: pointer;
  transition: color .2s ease, opacity .2s ease, background .2s ease;
  padding: 8px 14px;
  border-radius: var(--radius-s);
  border: 1px solid transparent;
  transform-origin: left center;
}
.lyric-line:hover {
  color: rgba(243, 239, 236, 0.85);
  background: rgba(243, 239, 236, 0.05);
}
.lyric-line.past {
  color: rgba(243, 239, 236, 0.45);
}
.lyric-line.active {
  color: #FFFFFF;
  font-weight: 800;
  background: var(--surface);
  border-color: var(--outline);
}
.lyric-line.active::before {
  content: "•";
  color: var(--accent);
  margin-right: 8px;
  font-size: 1.1em;
}
.lyric-plain-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 18px 80px;
}
.lyric-plain-line {
  font-family: var(--display);
  font-size: clamp(17px, 2.2vw, 22px);
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: -0.015em;
  color: var(--text);
  padding: 4px 10px;
  border-radius: var(--radius-s);
}
.lyric-spacer {
  height: 14px;
}
.lyrics-plain {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.85;
  letter-spacing: -0.015em;
  color: var(--text);
  white-space: pre-wrap;
  padding: 24px 20px 60px;
}
.lyrics-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.spinner.small { width: 16px; height: 16px; border-width: 1.8px; }
.spinner.on-accent { border-color: rgba(255, 255, 255, 0.35); border-top-color: #ffffff; }

/* ---------------- fullscreen player overlay ---------------- */
.fs-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(11, 9, 9, 0.96);
  backdrop-filter: blur(36px) saturate(180%);
  -webkit-backdrop-filter: blur(36px) saturate(180%);
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  overflow-x: hidden;
}
.fs-overlay.show {
  opacity: 1;
  pointer-events: auto;
}
.fs-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  z-index: 10;
  flex: none;
}
.fs-topbar-title {
  font-family: var(--display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
}
.fs-topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* RETRO MP3 PLAYER STYLE */
.fs-retro-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 20px 40px;
}
.retro-chassis {
  width: min(440px, 100%);
  background: linear-gradient(165deg, #2c2727 0%, #171414 45%, #0f0d0d 100%);
  border: 2px solid rgba(243, 239, 236, 0.16);
  border-radius: 36px;
  padding: 26px 24px 22px;
  box-shadow:
    0 30px 80px -15px rgba(0, 0, 0, 0.95),
    inset 0 1px 1px rgba(255, 255, 255, 0.2),
    inset 0 -2px 4px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}
.retro-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(243, 239, 236, 0.4);
}
.retro-brand span:first-child { color: var(--accent); }
.retro-screen {
  background: #08110b;
  border: 3px solid #1c221e;
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.9), 0 1px 0 rgba(255, 255, 255, 0.08);
  font-family: 'Cascadia Mono', 'Courier New', monospace;
  color: #55efc4;
  text-shadow: 0 0 8px rgba(85, 239, 196, 0.6);
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  overflow: hidden;
}
.retro-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.15) 0px, rgba(0, 0, 0, 0.15) 1px, transparent 1px, transparent 2px);
  pointer-events: none;
}
.retro-screen-bar {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  opacity: 0.85;
}
.retro-screen-main {
  display: flex;
  gap: 12px;
  align-items: center;
}
.retro-screen-art {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid #55efc4;
  filter: contrast(1.1) brightness(0.9);
  flex: none;
}
.retro-screen-meta {
  min-width: 0;
  flex: 1;
}
.retro-screen-title {
  font-size: 14.5px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.retro-screen-artist {
  font-size: 12px;
  opacity: 0.8;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 2px;
}
.retro-spectrum {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 22px;
  margin-top: 4px;
}
.retro-spectrum-bar {
  flex: 1;
  background: #55efc4;
  border-radius: 1px;
  height: 20%;
  animation: retro-vu 0.85s ease-in-out infinite alternate;
}
.retro-spectrum-bar:nth-child(1) { animation-duration: 0.65s; }
.retro-spectrum-bar:nth-child(2) { animation-duration: 0.95s; animation-delay: 0.1s; }
.retro-spectrum-bar:nth-child(3) { animation-duration: 0.75s; animation-delay: 0.2s; }
.retro-spectrum-bar:nth-child(4) { animation-duration: 0.85s; animation-delay: 0.3s; }
.retro-spectrum-bar:nth-child(5) { animation-duration: 0.7s; animation-delay: 0.15s; }
.retro-spectrum-bar:nth-child(6) { animation-duration: 0.9s; animation-delay: 0.25s; }
.retro-spectrum-bar:nth-child(7) { animation-duration: 0.6s; }
.retro-spectrum-bar:nth-child(8) { animation-duration: 0.8s; animation-delay: 0.35s; }
.retro-spectrum.paused .retro-spectrum-bar {
  animation-play-state: paused;
  opacity: 0.35;
}
@keyframes retro-vu {
  0% { height: 15%; }
  50% { height: 95%; }
  100% { height: 30%; }
}
.retro-progress-time {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
}
.retro-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.retro-dial {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: radial-gradient(circle, #252020 0%, #151212 70%, #0d0b0b 100%);
  border: 3px solid rgba(243, 239, 236, 0.12);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.7), inset 0 1px 2px rgba(255, 255, 255, 0.15);
  display: grid;
  grid-template-areas:
    ". top ."
    "left center right"
    ". bottom .";
  place-items: center;
  position: relative;
  user-select: none;
}
.retro-dial-center {
  grid-area: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: linear-gradient(145deg, #f0651d, #c94f12);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: none;
  transition: transform .1s;
}
.retro-dial-center:active { transform: scale(0.93); }
.retro-dial-btn {
  background: none;
  border: none;
  color: var(--text2);
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color .15s, transform .1s;
}
.retro-dial-btn:hover { color: #fff; }
.retro-dial-btn:active { transform: scale(0.9); }
.retro-dial-btn.top { grid-area: top; }
.retro-dial-btn.left { grid-area: left; }
.retro-dial-btn.right { grid-area: right; }
.retro-dial-btn.bottom { grid-area: bottom; }
.retro-extra-btns {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0 8px;
}

/* MODERN FULLSCREEN PLAYER STYLE */
.fs-modern-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 20px 24px 60px;
  max-width: 560px;
  margin: 0 auto;
  width: 100%;
  transition: max-width .35s cubic-bezier(0.16, 1, 0.3, 1), padding .35s cubic-bezier(0.16, 1, 0.3, 1);
}
.fs-modern-body.with-lyrics {
  max-width: 1140px;
  display: grid;
  grid-template-columns: minmax(300px, 420px) 1fr;
  gap: 56px;
  align-items: center;
  height: calc(100vh - 90px);
  padding: 10px 40px 40px;
}
.fs-pane-track {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}
.fs-pane-lyrics {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: calc(100vh - 130px);
  border-left: 1px solid var(--outline);
  padding-left: 44px;
  position: relative;
  overflow: hidden;
  min-width: 0;
}
.fs-lyrics-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0 16px;
  border-bottom: 1px solid var(--outline);
  flex: none;
}
.fs-lyrics-head-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
}
.fs-lyrics-scroll {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 40px 16px 140px 0;
  scroll-behavior: smooth;
  user-select: none;
  mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 88%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 88%, transparent 100%);
}
.fs-lyrics-scroll::-webkit-scrollbar {
  width: 6px;
}
.fs-lyrics-scroll::-webkit-scrollbar-thumb {
  background: var(--outline);
  border-radius: 999px;
}
.fs-lyrics-scroll .lyric-line {
  font-size: clamp(20px, 2.3vw, 29px);
  padding: 8px 14px;
  border-radius: 12px;
}
.fs-lyrics-scroll .lyric-line.active {
  font-size: clamp(23px, 2.7vw, 34px);
}
.fs-modern-art-wrap {
  position: relative;
  width: min(320px, 72vw);
  aspect-ratio: 1;
  border-radius: 28px;
  box-shadow: 0 24px 64px -12px rgba(0, 0, 0, 0.75);
  transition: transform .3s ease, width .3s ease;
}
.fs-modern-body.with-lyrics .fs-modern-art-wrap {
  width: min(280px, 32vw);
}
.fs-modern-art {
  width: 100%;
  height: 100%;
  border-radius: 28px;
  object-fit: cover;
  background: var(--selected);
}
.fs-modern-info {
  text-align: center;
  width: 100%;
}
.fs-modern-title {
  font-family: var(--display);
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 800;
  letter-spacing: -0.035em;
  margin-bottom: 6px;
}
.fs-modern-artist {
  font-size: 16px;
  color: var(--muted);
}
.fs-modern-progress {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.fs-modern-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
}
.fs-modern-controls .icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 50% !important;
}
#fs-mod-play {
  width: 56px;
  height: 56px;
  border-radius: 50% !important;
}
#fs-mod-like.liked,
#fs-mod-like.active {
  color: #fff !important;
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  box-shadow: none !important;
}
#fs-mod-like.liked .ic,
#fs-mod-like.active .ic {
  fill: #fff !important;
  color: #fff !important;
}
#fs-mod-like.liked:hover,
#fs-mod-like.active:hover {
  background: var(--accent-hover) !important;
  color: #fff !important;
}
#fs-mod-lyrics.active {
  color: var(--accent) !important;
  background: var(--selected) !important;
}
@media (max-width: 860px) {
  .fs-modern-body.with-lyrics {
    display: flex;
    flex-direction: column;
    height: auto;
    gap: 32px;
    padding: 10px 20px 80px;
  }
  .fs-pane-lyrics {
    border-left: none;
    border-top: 1px solid var(--outline);
    padding-left: 0;
    padding-top: 24px;
    height: 480px;
    max-height: none;
    width: 100%;
  }
}


