:root {
  --bg-black: #000000;
  --panel-bg: #141414;
  --surface: #1d1d1f;
  --surface-hover: rgba(255, 255, 255, 0.065);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);

  --text-primary: #ffffff;
  --text-secondary: #9a9aa0;
  --text-muted: #66666d;

  --ym-yellow: #ffdf00;
  --ym-yellow-hover: #ffe738;
  --danger: #ff5555;

  /* Dynamic track cover tint (updated via JS from album artwork) */
  --player-tint: #25233a;
  --player-tint-dark: #1b192b;

  --sidebar-w: 256px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  background: var(--bg-black);
  color: var(--text-primary);
  font-family: "Onest", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

button, input, select, textarea {
  font-family: inherit;
  color: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible {
  outline: 2px solid rgba(255, 223, 0, 0.55);
  outline-offset: 2px;
}

.hidden {
  display: none !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.13);
  border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.24);
}

/* ---------- App Shell ---------- */

.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  height: 100vh;
  background: var(--bg-black);
  overflow: hidden;
}

/* ---------- Left Obsidian Glass Sidebar (Borderless Seamless Edge) ---------- */

.sidebar {
  background: linear-gradient(180deg, #09090d 0%, #050507 100%);
  border-right: none;
  display: flex;
  flex-direction: column;
  padding: 20px 14px 16px;
  overflow: hidden;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 6px 10px 26px;
  text-align: left;
}

.brand-logo-img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
  box-shadow: 0 10px 26px rgba(255, 223, 0, 0.16);
}

.brand-stack {
  display: flex;
  flex-direction: column;
  line-height: 1.04;
}

.brand-top {
  font-size: 14.5px;
  font-weight: 700;
  color: rgba(255, 244, 184, 0.92);
  letter-spacing: -0.01em;
}

.brand-bottom {
  font-family: "Unbounded", "Onest", sans-serif;
  font-size: 19px;
  font-weight: 800;
  background: linear-gradient(180deg, #ffffff 0%, #ffe866 55%, #ffdf00 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.025em;
}

.nav-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 11px 13px;
  border-radius: 14px;
  border: none;
  color: #8c8c96;
  font-weight: 500;
  font-size: 15.5px;
  transition: color 0.16s ease, background 0.16s ease, transform 0.14s ease;
  text-align: left;
  width: 100%;
}

.nav-item svg {
  width: 21px;
  height: 21px;
  flex-shrink: 0;
  transition: transform 0.16s ease, color 0.16s ease;
}

.nav-item:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.055);
}

.nav-item.active {
  color: #ffffff;
  font-weight: 600;
  background: linear-gradient(90deg, rgba(255, 223, 0, 0.13) 0%, rgba(255, 255, 255, 0.035) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.nav-item.active svg {
  color: var(--ym-yellow);
  filter: drop-shadow(0 0 8px rgba(255, 223, 0, 0.35));
}

.nav-badge {
  margin-left: auto;
  font-size: 12px;
  font-weight: 600;
  color: #a1a1aa;
  background: rgba(255, 255, 255, 0.075);
  padding: 3px 9px;
  border-radius: 99px;
}

.sidebar-action {
  margin: 16px 0 18px;
}

.btn-upload-sidebar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.065);
  border: none;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  color: #f4f4f6;
  font-weight: 600;
  font-size: 14px;
  transition: background 0.16s ease, color 0.16s ease, transform 0.14s ease, box-shadow 0.16s ease;
}

.btn-upload-sidebar:hover {
  background: linear-gradient(180deg, rgba(255, 223, 0, 0.2) 0%, rgba(255, 223, 0, 0.1) 100%);
  color: #ffdf00;
  box-shadow: 0 12px 28px rgba(255, 223, 0, 0.12), inset 0 1px 0 rgba(255, 223, 0, 0.25);
  transform: translateY(-1px);
}

.playlists-section {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  border-top: none;
  padding-top: 10px;
}

.section-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px 8px;
}

.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.playlist-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.playlist-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: 9px;
  color: #8b8b92;
  font-size: 13.5px;
  transition: background 0.14s, color 0.14s;
  text-align: left;
  width: 100%;
}

.playlist-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

.playlist-item.active {
  background: rgba(255, 255, 255, 0.09);
  color: #ffffff;
  font-weight: 600;
}

.playlist-item-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.playlist-item-count {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-left: 8px;
}

.playlist-empty {
  padding: 8px 10px;
  font-size: 12.5px;
  color: var(--text-muted);
}

/* Bottom-Left Account Card */
.sidebar-account {
  margin-top: 10px;
  padding-top: 8px;
  border-top: none;
}

.account-login-btn,
.account-logged {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 11px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
  border: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  text-align: left;
  transition: background 0.15s, transform 0.15s;
}

.account-login-btn:hover {
  background: rgba(255, 255, 255, 0.085);
}

.account-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #222329;
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 800;
  flex-shrink: 0;
}

.account-avatar-active {
  background: var(--ym-yellow);
  color: #000000;
}

.account-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.account-name {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.account-role,
.account-role-pill {
  font-size: 11.5px;
  color: var(--text-secondary);
  margin-top: 1px;
}

.account-role-pill {
  color: var(--ym-yellow);
  font-weight: 600;
}

.nav-badge-warn {
  background: rgba(255, 223, 0, 0.18);
  color: var(--ym-yellow);
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 14px 22px 0;
}

.auth-tab {
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.05);
  transition: background 0.15s, color 0.15s;
}

.auth-tab.active {
  background: var(--ym-yellow);
  color: #000000;
}

.mod-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-approve-sm {
  padding: 6px 12px;
  border-radius: 99px;
  background: var(--ym-yellow);
  color: #000000;
  font-size: 12px;
  font-weight: 700;
}

.btn-approve-sm:hover {
  background: var(--ym-yellow-hover);
}

.btn-reject-sm {
  padding: 6px 11px;
  border-radius: 99px;
  background: rgba(255, 85, 85, 0.15);
  color: var(--danger);
  font-size: 12px;
  font-weight: 600;
}

.btn-reject-sm:hover {
  background: rgba(255, 85, 85, 0.25);
}

/* ---------- Main Right Column ---------- */

.main-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100vh;
  overflow: hidden;
  background: var(--bg-black);
}

/* ---------- Buttons ---------- */

.btn-yellow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 99px;
  background: var(--ym-yellow);
  color: #09090b;
  font-weight: 700;
  font-size: 13.5px;
  transition: background 0.15s, transform 0.12s;
}

.btn-yellow:hover:not(:disabled) {
  background: var(--ym-yellow-hover);
}

.btn-yellow:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 15px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border);
  color: #ffffff;
  font-weight: 500;
  font-size: 13px;
  transition: background 0.15s;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.13);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: 99px;
  color: #d4d4d8;
  font-weight: 500;
  font-size: 13.5px;
  background: rgba(255, 255, 255, 0.06);
  transition: background 0.15s, color 0.15s;
}

.btn-ghost:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.btn-ghost:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.btn-ghost-sm {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 99px;
  font-size: 12.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.08);
  transition: background 0.15s, color 0.15s;
}

.btn-ghost-sm:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.btn-ghost-sm.btn-ep-danger {
  color: #ff7585;
}

.btn-ghost-sm.btn-ep-danger:hover {
  background: rgba(255, 77, 102, 0.22);
  color: #ff9aa6;
}

.btn-danger-ghost {
  padding: 9px 15px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 500;
  color: var(--danger);
  border: 1px solid rgba(255, 85, 85, 0.3);
}

.btn-danger-ghost:hover {
  background: rgba(255, 85, 85, 0.14);
}

.icon-btn, .icon-btn-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.72);
  transition: color 0.15s, background 0.15s, transform 0.12s;
  position: relative;
}

.icon-btn {
  width: 36px;
  height: 36px;
}

.icon-btn-sm {
  width: 26px;
  height: 26px;
}

.icon-btn:hover:not(:disabled), .icon-btn-sm:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.icon-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.icon-btn.active {
  color: var(--ym-yellow);
}

/* ==========================================================
   SCREEN 1: MY WAVE FULL STAGE (Yandex Music exact aesthetic)
   ========================================================== */

.wave-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  background: radial-gradient(ellipse 72% 62% at 50% 44%, #11121b 0%, #060609 68%, #020203 100%);
  overflow: hidden;
  display: flex;
}

.wave-stage-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

.wave-stage-grid {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  align-items: center;
  padding: 24px 36px;
  gap: 24px;
}

/* Scenario Rail hidden on both desktop and mobile for clean centered My Pulse */
.wave-rail {
  display: none !important;
}

.wave-rail-legacy {
  height: 100%;
  max-height: 700px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  padding: 40px 6px;
  scrollbar-width: none;
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    black 13%,
    black 87%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    black 13%,
    black 87%,
    transparent 100%
  );
}

.wave-rail::-webkit-scrollbar {
  display: none;
}

.wave-scenario {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 14px;
  border-radius: 14px;
  text-align: left;
  color: rgba(255, 255, 255, 0.72);
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.wave-scenario:hover {
  transform: translateX(5px);
  background: rgba(255, 255, 255, 0.055);
  color: #ffffff;
}

.wave-scenario.active {
  background: rgba(255, 255, 255, 0.085);
  color: #ffffff;
}

.wave-scenario.active .ws-label {
  color: var(--ym-yellow);
  font-weight: 700;
}

.ws-pill {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.wave-scenario:hover .ws-pill,
.wave-scenario.active .ws-pill {
  transform: scale(1.06);
  border-color: rgba(255, 255, 255, 0.18);
}

.ws-pill-yellow { color: #ffdf00; background: rgba(255, 223, 0, 0.11); }
.ws-pill-gold   { color: #f5c842; background: rgba(245, 200, 66, 0.11); }
.ws-pill-teal   { color: #38d9a9; background: rgba(56, 217, 169, 0.11); }
.ws-pill-coral  { color: #ff6b81; background: rgba(255, 107, 129, 0.12); }
.ws-pill-rose   { color: #f06595; background: rgba(240, 101, 149, 0.12); }
.ws-pill-amber  { color: #ffa94d; background: rgba(255, 169, 77, 0.12); }
.ws-pill-sky    { color: #74c0fc; background: rgba(116, 192, 252, 0.12); }
.ws-pill-indigo { color: #91a7ff; background: rgba(145, 167, 255, 0.12); }

.ws-label {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
}

.ws-label-accent {
  color: var(--ym-yellow);
}

/* Center Wave Player (Premium Flagship Glass Aesthetic) */
.wave-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 22px;
  padding: 24px 20px 18px;
  width: 100%;
  max-width: 780px;
}

.wave-stage-title {
  font-family: "Unbounded", "Onest", sans-serif;
  font-size: clamp(42px, 4.8vw, 66px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  background: linear-gradient(180deg, #ffffff 0%, #fff3b0 46%, #ffdf00 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 12px 36px rgba(255, 223, 0, 0.2));
}

.wave-cover-box {
  position: relative;
  width: 232px;
  height: 232px;
  border-radius: 28px;
  overflow: visible;
  background: transparent;
  border: none;
  transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1);
  margin-bottom: 10px;
}

.wave-cover-box.is-beat-active {
  transition: none !important;
  will-change: transform;
}

.wave-cover-box:not(.is-beat-active):hover {
  transform: scale(1.045) translateY(-3px);
}

.wave-cover {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  overflow: hidden;
  background: rgba(18, 20, 30, 0.92);
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.82),
    0 0 88px -18px rgba(var(--wave-glow-rgb, 255, 223, 0), 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  display: grid;
  place-items: center;
  color: var(--text-muted);
  backface-visibility: hidden;
  transition: box-shadow 0.45s ease;
}

.wave-cover-box:hover .wave-cover {
  box-shadow:
    0 38px 92px rgba(0, 0, 0, 0.86),
    0 0 104px -10px rgba(var(--wave-glow-rgb, 255, 223, 0), 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.wave-cover-box.wave-flip-out .wave-cover {
  animation: waveCoverFlipOut 0.24s cubic-bezier(0.32, 0.72, 0, 1) forwards;
}

.wave-cover-box.wave-flip-in .wave-cover {
  animation: waveCoverFlipIn 0.42s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.wave-cover-box.wave-cover-swap .wave-cover {
  animation: waveCoverSwap3D 0.44s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes waveCoverFlipOut {
  0% { transform: perspective(900px) rotateY(0deg) scale(1); opacity: 1; }
  100% { transform: perspective(900px) rotateY(86deg) scale(1.06); opacity: 0.2; }
}

@keyframes waveCoverFlipIn {
  0% { transform: perspective(900px) rotateY(-84deg) scale(0.92); opacity: 0.35; }
  70% { transform: perspective(900px) rotateY(3deg) scale(1.015); opacity: 1; }
  100% { transform: perspective(900px) rotateY(0deg) scale(1); opacity: 1; }
}

@keyframes waveCoverSwap3D {
  0% { transform: perspective(900px) rotateY(-18deg) scale(0.92); opacity: 0.55; }
  100% { transform: perspective(900px) rotateY(0deg) scale(1); opacity: 1; }
}

.wave-stage.view-enter,
.panel-surface.view-enter {
  animation: viewEnterMotion 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes viewEnterMotion {
  0% { opacity: 0.08; transform: translate3d(0, 14px, 0) scale(0.985); }
  100% { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

.like-heart.liked svg,
.wave-round-btn.liked svg,
.ep-like-btn.liked svg {
  animation: heartPopSpring 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes heartPopSpring {
  0% { transform: scale(1); }
  38% { transform: scale(1.32); }
  72% { transform: scale(0.9); }
  100% { transform: scale(1); }
}

.wave-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Capsule Bar Row */
.wave-capsule-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  max-width: 720px;
}

.wave-vol-wrap, .mp-vol-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.wave-vol-popover {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  width: 48px;
  height: 186px;
  padding: 16px 0;
  border-radius: 99px;
  background: rgba(22, 23, 28, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 70;
}

.wave-vol-popover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 16px;
}

.wave-vol-wrap:hover .wave-vol-popover,
.wave-vol-wrap.dragging .wave-vol-popover,
.mp-vol-wrap:hover .wave-vol-popover,
.mp-vol-wrap.dragging .wave-vol-popover {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.wave-vol-track {
  position: relative;
  width: 8px;
  height: 100%;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.22);
  cursor: pointer;
  overflow: hidden;
}

.wave-vol-fill {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 85%;
  border-radius: 99px;
  background: #ffffff;
}

.wave-round-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.068);
  border: none;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  transition: background 0.16s ease, color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.wave-round-btn svg {
  width: 20px;
  height: 20px;
}

.wave-round-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.13);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  transform: translateY(-1px) scale(1.06);
}

.wave-round-btn.liked {
  color: var(--ym-yellow);
  background: rgba(255, 223, 0, 0.13);
  box-shadow: 0 12px 28px rgba(255, 223, 0, 0.16), inset 0 1px 0 rgba(255, 223, 0, 0.22);
}

.wave-round-btn.liked svg {
  fill: var(--ym-yellow);
}

.wave-round-btn.active {
  color: var(--ym-yellow);
  background: rgba(255, 223, 0, 0.16);
  box-shadow: 0 12px 28px rgba(255, 223, 0, 0.18), inset 0 1px 0 rgba(255, 223, 0, 0.24);
}

.wave-capsule {
  position: relative;
  flex: 1;
  min-width: 0;
  height: 60px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.068);
  border: none;
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.52),
    inset 0 1px 0 rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(26px) saturate(145%);
  -webkit-backdrop-filter: blur(26px) saturate(145%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 26px;
  cursor: pointer;
  transition: background 0.18s ease, box-shadow 0.18s ease;
}

.wave-capsule:hover {
  background: rgba(255, 255, 255, 0.09);
  box-shadow:
    0 20px 48px rgba(0, 0, 0, 0.58),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.wave-capsule-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0%;
  border-radius: 99px;
  background: linear-gradient(
    90deg,
    rgba(var(--wave-glow-rgb, 255, 223, 0), 0.24) 0%,
    rgba(255, 255, 255, 0.16) 92%,
    rgba(255, 255, 255, 0.02) 100%
  );
  border-right: none;
  pointer-events: none;
  transition: opacity 0.16s ease;
}

.wave-capsule-text {
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #f7f7fa;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

.wave-capsule-time {
  position: relative;
  z-index: 1;
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.5);
  flex-shrink: 0;
}

.wave-capsule-time:empty {
  display: none;
}

.wave-transport {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
}

.wave-transport-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.88);
  display: grid;
  place-items: center;
  transition: transform 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.wave-transport-icon svg {
  width: 24px;
  height: 24px;
}

.wave-transport-icon:hover {
  color: var(--ym-yellow);
  background: rgba(255, 255, 255, 0.09);
  transform: scale(1.1);
}

.wave-play-btn {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: linear-gradient(145deg, #fff066 0%, #ffdf00 54%, #e8b800 100%);
  color: #09090b;
  display: grid;
  place-items: center;
  box-shadow:
    0 18px 48px rgba(255, 223, 0, 0.36),
    0 0 0 7px rgba(255, 223, 0, 0.07),
    inset 0 2px 3px rgba(255, 255, 255, 0.65);
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.22s ease;
}

.wave-play-btn svg {
  width: 31px;
  height: 31px;
}

.wave-play-btn:hover {
  transform: scale(1.065);
  box-shadow:
    0 22px 58px rgba(255, 223, 0, 0.48),
    0 0 0 9px rgba(255, 223, 0, 0.11),
    inset 0 2px 3px rgba(255, 255, 255, 0.72);
}

.wave-play-btn:active {
  transform: scale(0.96);
}

.wave-lyric-preview {
  position: relative;
  display: inline-grid;
  grid-template-columns: 38px minmax(0, auto) 38px;
  align-items: center;
  justify-items: center;
  column-gap: 12px;
  max-width: 560px;
  margin-top: 4px;
  padding: 6px 12px;
  border-radius: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  color: rgba(255, 255, 255, 0.94);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.38;
  text-align: center;
  cursor: pointer;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.wave-lyric-preview::after {
  content: "";
  width: 38px;
  pointer-events: none;
}

.wave-lyric-preview:hover {
  transform: translateY(-1px);
}

.wave-lyric-spark {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 28px;
  color: #ffffff;
  flex-shrink: 0;
  z-index: 1;
}

/* Soft diffuse misty spotlight cone behind twin white sparkle stars */
.wave-lyric-spark::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 108px;
  height: 82px;
  transform: translate(-34%, -50%);
  background: radial-gradient(
    ellipse closest-side at 38% 50%,
    rgba(255, 255, 255, 0.24) 0%,
    rgba(255, 255, 255, 0.11) 40%,
    rgba(255, 255, 255, 0.03) 70%,
    rgba(255, 255, 255, 0) 100%
  );
  pointer-events: none;
  z-index: -1;
}

.wave-lyric-spark svg {
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.42));
}

.wave-lyric-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.wave-lyric-action {
  font-size: 13.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.48);
  letter-spacing: -0.01em;
  transition: color 0.16s ease;
}

.wave-lyric-action:empty {
  display: none;
}

.wave-lyric-preview:hover .wave-lyric-action {
  color: rgba(255, 255, 255, 0.88);
}

.wave-lyric-words {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  text-wrap: balance;
  gap: 0 0.28em;
  letter-spacing: -0.012em;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.65);
  animation: waveLineEnter 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes waveLineEnter {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.wave-lyric-word {
  display: inline-block;
  background-image: linear-gradient(
    90deg,
    #ffffff var(--fill, 0%),
    rgba(255, 255, 255, 0.32) calc(var(--fill, 0%) + 8%)
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), filter 0.2s ease;
}

.wave-lyric-word.current {
  transform: translateY(-1px) scale(1.02);
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

.wave-lyric-word.current.sustained {
  background-image: linear-gradient(
    90deg,
    #fff7cc 0%,
    #ffe359 var(--fill, 0%),
    rgba(255, 255, 255, 0.34) calc(var(--fill, 0%) + 10%)
  );
  transform: translateY(-2px) scale(1.05);
  filter: drop-shadow(0 0 14px rgba(255, 228, 95, 0.5));
}

.wave-ai-tags {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: -14px;
}

.wave-ai-tag {
  font-size: 11.5px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 0;
  color: rgba(255, 255, 255, 0.36);
  background: transparent;
  border: none;
  box-shadow: none;
}

.wave-ai-tag + .wave-ai-tag::before {
  content: "·";
  margin-right: 8px;
  color: rgba(255, 255, 255, 0.24);
}

/* Hide floating bottom mini-player on the full Wave screen (just like Screen 1) */
body.view-is-wave .mini-player {
  display: none;
}

/* ==========================================================
   SCREEN 2: COLLECTION / CATALOG ROUNDED DARK PANEL
   ========================================================== */

.panel-surface {
  flex: 1;
  min-height: 0;
  margin: 8px 8px 8px 0;
  background: linear-gradient(180deg, #131317 0%, #0a0a0d 100%);
  border-radius: 20px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.panel-topbar {
  padding: 16px 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-shrink: 0;
}

.search-box {
  position: relative;
  width: 100%;
  max-width: 520px;
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.search-box input {
  width: 100%;
  height: 46px;
  padding: 0 38px 0 44px;
  border-radius: 99px;
  border: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.065);
  font-size: 15px;
  color: #ffffff;
  outline: none;
  transition: background 0.16s ease, box-shadow 0.16s ease;
}

.search-box input::placeholder {
  color: #7c7c86;
}

.search-box input:focus {
  background: rgba(255, 255, 255, 0.105);
  box-shadow: 0 0 0 2px rgba(255, 223, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.search-clear {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: var(--text-muted);
  font-size: 16px;
}

.search-clear:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.panel-inner {
  flex: 1;
  overflow-y: auto;
  padding: 22px 28px 36px;
}

.view-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.view-title {
  font-family: "Unbounded", "Onest", sans-serif;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.12;
}

.view-subtitle {
  margin-top: 6px;
  font-size: 15.5px;
  color: var(--text-secondary);
}

.subtitle-accent {
  color: #eb4d9c;
  font-weight: 600;
}

.view-header-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Yandex Music Collection Sections */
.ym-section {
  margin-bottom: 34px;
}

.ym-section-head {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  text-align: left;
  transition: opacity 0.15s;
}

.ym-section-head:hover {
  opacity: 0.88;
}

.ym-tile {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.ym-tile-liked {
  background: linear-gradient(135deg, #c6372f 0%, #6e1a21 100%);
  color: #ff9c8a;
  box-shadow: 0 8px 20px rgba(198, 55, 47, 0.35);
}

.ym-tile-year {
  background: linear-gradient(135deg, #3b5bdb 0%, #c92a76 55%, #f59f00 100%);
  color: #ffdf00;
  font-size: 13px;
  font-weight: 900;
  line-height: 0.95;
  text-align: center;
}

.ym-section-meta h2 {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ym-section-meta .chevron {
  color: var(--text-secondary);
  font-weight: 500;
}

.ym-section-meta p {
  font-size: 12.5px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.block-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
}

.block-header h2 {
  font-size: 18px;
  font-weight: 700;
}

.tracks-counter {
  font-size: 12.5px;
  color: var(--text-muted);
}

/* ---------- Artist Profile Page (Yandex Music exact style) ---------- */

.artist-hero {
  position: relative;
  margin: -22px -28px 30px;
  padding: 22px 32px 34px;
  background: linear-gradient(180deg, #3c3e45 0%, #1d1e22 65%, #141414 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.artist-hero-nav {
  margin-bottom: 18px;
}

.artist-back-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  display: grid;
  place-items: center;
  transition: background 0.15s, transform 0.12s;
}

.artist-back-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: scale(1.06);
}

.artist-hero-main {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.artist-avatar-lg {
  width: 184px;
  height: 184px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: #232429;
  display: grid;
  place-items: center;
  color: var(--text-muted);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.artist-avatar-lg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.artist-hero-info {
  flex: 1;
  min-width: 240px;
}

.artist-eyebrow {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 4px;
}

.artist-name-lg {
  font-size: clamp(34px, 4.2vw, 56px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: #ffffff;
}

.artist-stats-pill {
  display: inline-flex;
  align-items: center;
  margin-top: 10px;
  padding: 5px 14px;
  border-radius: 99px;
  background: rgba(0, 0, 0, 0.34);
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
}

.artist-bio {
  margin-top: 10px;
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.72);
  max-width: 580px;
}

.artist-bio:empty {
  display: none;
}

.artist-actions-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.artist-body-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(240px, 310px);
  gap: 36px;
  align-items: start;
}

.artist-col-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.artist-col-title span {
  color: var(--text-secondary);
}

.artist-release-card {
  cursor: pointer;
}

.release-cover-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  overflow: hidden;
  background: #202025;
  display: grid;
  place-items: center;
  color: var(--text-muted);
  margin-bottom: 12px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.42);
}

.release-cover-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.release-play-fab {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--ym-yellow);
  color: #000000;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.artist-release-card:hover .release-play-fab,
.release-card:hover .release-play-fab {
  opacity: 1;
  transform: translateY(0);
}

.release-title {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.release-sub {
  font-size: 13.5px;
  color: var(--text-secondary);
  margin-top: 3px;
}

/* ---------- Redesigned Catalog Home (Artists Row + Releases Grid) ---------- */

.artists-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 18px;
}

.artist-circle-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 14px 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.16s, transform 0.16s, border-color 0.16s;
}

.artist-circle-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.14);
  transform: translateY(-2px);
}

.artist-circle-img {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  overflow: hidden;
  background: #222328;
  display: grid;
  place-items: center;
  color: var(--text-muted);
  margin-bottom: 12px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.artist-circle-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.artist-circle-name {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.artist-circle-sub {
  font-size: 12.5px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.releases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(176px, 1fr));
  gap: 18px;
}

.release-card {
  padding: 12px;
  border-radius: 16px;
  background: #1a1a1e;
  border: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: background 0.16s, transform 0.16s, border-color 0.16s;
}

.release-card:hover {
  background: #222227;
  border-color: rgba(255, 255, 255, 0.14);
  transform: translateY(-2px);
}

.artist-link {
  cursor: pointer;
  transition: color 0.14s;
}

.artist-link:hover {
  color: #ffffff !important;
  text-decoration: underline;
}

.artist-avatar-picker {
  display: flex;
  align-items: center;
  gap: 16px;
}

.artist-avatar-preview {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  overflow: hidden;
  background: #232328;
  display: grid;
  place-items: center;
  color: var(--text-muted);
  flex-shrink: 0;
}

.artist-avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.artist-avatar-label {
  cursor: pointer;
}

@media (max-width: 960px) {
  .artist-body-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Redesigned Collection Smart Cards & Filter Tabs ---------- */

.col-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.col-card {
  position: relative;
  height: 148px;
  padding: 18px 20px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.065);
  background: linear-gradient(160deg, rgba(26, 27, 34, 0.92) 0%, rgba(13, 14, 18, 0.98) 100%);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.2s ease, box-shadow 0.2s ease;
}

.col-card::before {
  content: "";
  position: absolute;
  top: -36px;
  left: -24px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  filter: blur(26px);
  opacity: 0.65;
  z-index: -1;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.25s ease;
}

.col-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.56), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.col-card:focus-visible {
  outline: none;
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.52), 0 0 0 2px rgba(255, 255, 255, 0.16);
}

.col-card:hover::before {
  opacity: 0.95;
  transform: scale(1.12);
}

.col-card-liked::before {
  background: radial-gradient(circle, rgba(255, 68, 108, 0.52) 0%, rgba(180, 24, 68, 0.14) 60%, transparent 80%);
}

.col-card-karaoke::before {
  background: radial-gradient(circle, rgba(255, 214, 10, 0.4) 0%, rgba(235, 130, 20, 0.12) 60%, transparent 80%);
}

.col-card-all::before {
  background: radial-gradient(circle, rgba(84, 156, 255, 0.45) 0%, rgba(45, 95, 215, 0.14) 60%, transparent 80%);
}

.col-card-create {
  background: linear-gradient(160deg, rgba(22, 23, 28, 0.72) 0%, rgba(12, 12, 16, 0.92) 100%);
  border-color: rgba(255, 255, 255, 0.08);
}

.col-card-create::before {
  background: radial-gradient(circle, rgba(255, 255, 255, 0.16) 0%, transparent 72%);
}

.col-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.col-card-icon {
  width: 64px;
  height: 64px;
  border-radius: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  display: grid;
  place-items: center;
  overflow: visible;
  padding: 0;
}

.col-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.45));
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.col-smart-card:hover .col-card-icon img {
  transform: scale(1.1);
}

.col-icon-liked,
.col-icon-karaoke,
.col-icon-all,
.col-icon-add {
  background: transparent;
  border: none;
}

.col-card-play {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ym-yellow);
  color: #09090b;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 18px rgba(255, 223, 0, 0.28);
  opacity: 0;
  transform: translateY(4px) scale(0.92);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.col-card:hover .col-card-play {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.col-card-bottom h3 {
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.col-card-bottom p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.56);
  margin-top: 4px;
  font-weight: 500;
}

.col-filter-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.col-tab {
  padding: 8px 16px;
  border-radius: 99px;
  font-size: 13.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.64);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.col-tab:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.1);
}

.col-tab.active {
  background: #ffffff;
  color: #09090b;
  border-color: #ffffff;
  box-shadow: 0 6px 18px rgba(255, 255, 255, 0.16);
}

/* Clean Full-Width Track List */
.clean-track-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ym-track-item {
  display: grid;
  grid-template-columns: 36px 54px minmax(0, 1.8fr) minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 16px;
  padding: 10px 14px;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.13s ease;
}

.ym-track-item:hover {
  background: rgba(255, 255, 255, 0.055);
}

.ym-track-item.is-current {
  background: rgba(255, 255, 255, 0.075);
}

.ym-track-num {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  display: grid;
  place-items: center;
}

.ym-track-album {
  font-size: 13px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ym-lyrics-pill {
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 99px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  white-space: nowrap;
}

.ym-lyrics-pill.ready {
  color: var(--ym-yellow);
  background: rgba(255, 223, 0, 0.11);
}

@media (max-width: 1040px) {
  .col-cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ym-track-item {
    grid-template-columns: 28px 44px minmax(0, 1fr) auto auto auto;
  }
  .ym-track-album {
    display: none;
  }
}

.ym-track-cover {
  position: relative;
  width: 54px;
  height: 54px;
  border-radius: 10px;
  background: #232327;
  overflow: hidden;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  color: var(--text-muted);
}

.ym-track-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ym-cover-play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.56);
  color: #ffffff;
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity 0.14s;
}

.ym-track-item:hover .ym-cover-play-overlay,
.ym-track-item.is-current .ym-cover-play-overlay {
  opacity: 1;
}

.ym-track-meta {
  flex: 1;
  min-width: 0;
}

.ym-track-title-line {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.ym-track-title {
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ym-track-item.is-current .ym-track-title {
  color: var(--ym-yellow);
}

.ym-lyrics-dot {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  color: #a1a1aa;
  background: rgba(255, 255, 255, 0.08);
}

.ym-lyrics-dot.ready {
  color: var(--ym-yellow);
  background: rgba(255, 223, 0, 0.12);
}

.ym-track-artist {
  font-size: 14px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.ym-track-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.ym-track-dur {
  font-size: 12.5px;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
  min-width: 38px;
  text-align: right;
}

.ym-more-btn {
  opacity: 0;
  width: 28px;
  height: 28px;
}

.ym-track-item:hover .ym-more-btn {
  opacity: 1;
}

.like-heart.liked {
  color: var(--ym-yellow);
}

.like-heart.liked svg {
  fill: var(--ym-yellow);
}

.eq-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
}

.eq-bars span {
  width: 2.5px;
  background: var(--ym-yellow);
  border-radius: 2px;
  animation: eqBounce 0.85s ease-in-out infinite;
}

.eq-bars span:nth-child(2) { animation-delay: 0.2s; }
.eq-bars span:nth-child(3) { animation-delay: 0.4s; }

@keyframes eqBounce {
  0%, 100% { height: 4px; }
  50% { height: 14px; }
}

/* ---------- Empty State ---------- */

.empty-state {
  margin: 36px auto;
  max-width: 400px;
  text-align: center;
  padding: 36px 24px;
  border-radius: 16px;
  border: 1px dashed rgba(255, 255, 255, 0.14);
}

.empty-icon {
  width: 54px;
  height: 54px;
  margin: 0 auto 14px;
  border-radius: 14px;
  background: #1f1f22;
  display: grid;
  place-items: center;
  color: var(--text-secondary);
}

.empty-state h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
}

.empty-state p {
  font-size: 13.5px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

/* ==========================================================
   FLOATING COLOR-TINTED BOTTOM MINI PLAYER (Screen 2 style)
   ========================================================== */

.mini-player {
  position: relative;
  height: 84px;
  margin: 0 8px 8px 0;
  border-radius: 20px;
  background: linear-gradient(
    95deg,
    rgba(var(--wave-glow-rgb, 42, 46, 68), 0.22) 0%,
    rgba(16, 17, 22, 0.94) 48%,
    rgba(12, 13, 17, 0.97) 100%
  );
  border: none;
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(28px) saturate(145%);
  -webkit-backdrop-filter: blur(28px) saturate(145%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  padding: 0 20px;
  gap: 18px;
  flex-shrink: 0;
  overflow: visible;
  transition: background 0.45s ease;
  z-index: 30;
}

/* Desktop Seek Bar tucked cleanly below center transport controls */
.mp-progress-top {
  position: absolute;
  left: 50%;
  bottom: 11px;
  top: auto;
  transform: translateX(-50%);
  width: min(440px, 34vw);
  height: 4px;
  cursor: pointer;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
  transition: height 0.14s ease, background 0.14s ease;
}

.mp-progress-top:hover {
  height: 5.5px;
  background: rgba(255, 255, 255, 0.22);
}

.mp-progress-top-fill {
  height: 100%;
  width: 0%;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.92);
  transition: width 0.08s linear;
}

.mp-left {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}

.mp-cover-btn {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.35);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.48);
  transition: transform 0.16s cubic-bezier(0.22, 1, 0.36, 1);
}

.mp-cover-btn:hover {
  transform: scale(1.04);
}

.mp-cover {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--text-muted);
}

.mp-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mp-meta {
  min-width: 0;
}

.mp-title {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.mp-artist {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.mp-center {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 16px;
}

.transport-controls {
  display: flex;
  align-items: center;
  gap: 14px;
}

@media (min-width: 861px) {
  .mp-center .transport-controls::before {
    content: "";
    width: 36px;
    flex-shrink: 0;
    pointer-events: none;
  }
}

.play-circle-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(145deg, #fff066 0%, #ffdf00 55%, #e8b800 100%);
  color: #09090b;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 20px rgba(255, 223, 0, 0.25);
  transition: transform 0.16s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.16s ease;
}

.play-circle-btn svg {
  width: 19px;
  height: 19px;
}

.play-circle-btn:hover {
  transform: scale(1.07);
  box-shadow: 0 10px 26px rgba(255, 223, 0, 0.38);
}

.repeat-one-dot {
  position: absolute;
  top: 4px;
  right: 4px;
  font-size: 9px;
  font-weight: 800;
  color: var(--ym-yellow);
}

.mp-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.mp-time-inline {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  font-variant-numeric: tabular-nums;
  margin-right: 6px;
}

/* ==========================================================
   SCREEN 3: EXPANDED FULL-SCREEN KARAOKE PLAYER (Yandex style)
   ========================================================== */

.expanded-player {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: #101118;
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
  transition: transform 0.36s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.28s ease;
}

.expanded-player.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.expanded-player.anim-flip-open {
  transform: translateY(0) !important;
  transition: none !important;
  animation: epBgFlipFade 0.26s ease forwards;
}

.expanded-player.anim-flip-open .ep-artwork-card {
  perspective: 950px;
}

.expanded-player.anim-flip-open .ep-artwork {
  backface-visibility: hidden;
  animation: epArtFlipIn 0.44s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.expanded-player.anim-flip-open .ep-artwork-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 22%, rgba(255, 255, 255, 0.28) 48%, transparent 72%);
  pointer-events: none;
  animation: epFlipSheen 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.expanded-player.anim-flip-open .ep-top-controls,
.expanded-player.anim-flip-open .ep-track-centered,
.expanded-player.anim-flip-open .ep-scrubber,
.expanded-player.anim-flip-open .ep-mob-controls {
  animation: epHudGlideIn 0.32s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.expanded-player.anim-flip-open .ep-right {
  animation: epRightCardReveal 0.42s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.expanded-player.anim-flip-close {
  transform: translateY(0) !important;
  pointer-events: none !important;
  transition: none !important;
  animation: epBgFlipFadeOut 0.25s ease forwards;
}

.expanded-player.anim-flip-close .ep-artwork-card {
  perspective: 950px;
}

.expanded-player.anim-flip-close .ep-artwork {
  backface-visibility: hidden;
  animation: epArtFlipOut 0.25s cubic-bezier(0.32, 0.72, 0, 1) forwards;
}

.expanded-player.anim-flip-close .ep-right {
  animation: epRightCardClose 0.25s cubic-bezier(0.32, 0.72, 0, 1) forwards;
}

@keyframes epBgFlipFade {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes epBgFlipFadeOut {
  0% { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes epArtFlipIn {
  0% {
    opacity: 0.25;
    transform: rotateY(84deg) scale(0.92);
  }
  72% {
    opacity: 1;
    transform: rotateY(-4deg) scale(1.015);
  }
  100% {
    opacity: 1;
    transform: rotateY(0deg) scale(1);
  }
}

@keyframes epArtFlipOut {
  0% {
    opacity: 1;
    transform: rotateY(0deg) scale(1);
  }
  100% {
    opacity: 0.15;
    transform: rotateY(-84deg) scale(0.92);
  }
}

@keyframes epHudGlideIn {
  0% { opacity: 0; transform: translate3d(0, 12px, 0); }
  100% { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes epRightCardReveal {
  0% {
    opacity: 0;
    transform: perspective(900px) rotateY(-18deg) translate3d(16px, 0, 0) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: perspective(900px) rotateY(0deg) translate3d(0, 0, 0) scale(1);
  }
}

@keyframes epRightCardClose {
  0% {
    opacity: 1;
    transform: perspective(900px) rotateY(0deg) scale(1);
  }
  100% {
    opacity: 0;
    transform: perspective(900px) rotateY(16deg) scale(0.95);
  }
}

@keyframes epFlipSheen {
  0% { transform: translateX(-110%); opacity: 0; }
  35% { opacity: 0.9; }
  100% { transform: translateX(115%); opacity: 0; }
}

.ep-bg-ambient {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.ep-orb {
  position: absolute;
  pointer-events: none;
  contain: strict;
  will-change: transform, opacity;
  transform: translate3d(0, 0, 0) scale(1);
}

/* Elongated organic aurora ribbons using closest-side Gaussian falloff — ZERO visible circle edges! */
.ep-orb-1 {
  width: 112vmax;
  height: 66vmax;
  left: -26vmax;
  top: -18vmax;
  background: radial-gradient(
    ellipse closest-side at 50% 50%,
    rgba(var(--ep-prim-rgb, 60, 170, 110), 0.56) 0%,
    rgba(var(--ep-prim-rgb, 60, 170, 110), 0.34) 26%,
    rgba(var(--ep-prim-rgb, 60, 170, 110), 0.13) 54%,
    rgba(var(--ep-prim-rgb, 60, 170, 110), 0.03) 78%,
    rgba(var(--ep-prim-rgb, 60, 170, 110), 0) 100%
  );
}

.ep-orb-2 {
  width: 108vmax;
  height: 62vmax;
  right: -24vmax;
  bottom: -20vmax;
  background: radial-gradient(
    ellipse closest-side at 50% 50%,
    rgba(var(--ep-sec-rgb, 90, 140, 220), 0.50) 0%,
    rgba(var(--ep-sec-rgb, 90, 140, 220), 0.28) 28%,
    rgba(var(--ep-sec-rgb, 90, 140, 220), 0.10) 56%,
    rgba(var(--ep-sec-rgb, 90, 140, 220), 0.02) 80%,
    rgba(var(--ep-sec-rgb, 90, 140, 220), 0) 100%
  );
}

.ep-orb-3 {
  width: 96vmax;
  height: 54vmax;
  left: 8vw;
  top: 14vh;
  background: radial-gradient(
    ellipse closest-side at 50% 50%,
    rgba(var(--ep-prim-rgb, 60, 170, 110), 0.34) 0%,
    rgba(var(--ep-sec-rgb, 90, 140, 220), 0.19) 34%,
    rgba(var(--ep-sec-rgb, 90, 140, 220), 0.06) 64%,
    rgba(var(--ep-sec-rgb, 90, 140, 220), 0) 100%
  );
}

.ep-bg-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  z-index: 3;
}

.ep-shell {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: radial-gradient(
    circle at 28% 50%,
    rgba(0, 0, 0, 0.14) 0%,
    rgba(0, 0, 0, 0.36) 100%
  );
}

.ep-top-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px 0;
  flex-shrink: 0;
}

.ep-top-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ep-sync-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 6px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
}

.ep-sync-pill button {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  transition: background 0.14s;
}

.ep-sync-pill button:hover {
  background: rgba(255, 255, 255, 0.24);
}

.ep-sync-pill span {
  padding: 0 5px;
  font-variant-numeric: tabular-nums;
}

.ep-collapse-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.85);
  display: grid;
  place-items: center;
  transition: background 0.15s, transform 0.14s;
}

.ep-collapse-circle:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: scale(1.06);
}

.ep-body {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 64px 36px;
  max-width: 1460px;
  width: 100%;
  margin: 0 auto;
}

/* Left Artwork Card with Overlay Controls */
.ep-left {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  transition: transform 0.48s cubic-bezier(0.22, 1, 0.36, 1);
}

.ep-artwork-card {
  position: relative;
  width: min(360px, 34vw);
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.32);
  box-shadow: 0 26px 64px rgba(0, 0, 0, 0.48);
  will-change: transform, box-shadow;
  transition: width 0.48s cubic-bezier(0.22, 1, 0.36, 1);
}

.ep-body.centered .ep-artwork-card,
.ep-body.centered .ep-track-centered,
.ep-body.centered .ep-scrubber {
  width: min(410px, 44vw);
}

.ep-artwork {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.4);
}

.ep-artwork img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ep-art-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.5) 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
  opacity: 0;
  transition: opacity 0.22s ease;
}

.ep-artwork-card:hover .ep-art-overlay,
.ep-artwork-card:focus-within .ep-art-overlay {
  opacity: 1;
}

.ep-art-circle,
.ep-art-play {
  outline: none;
}

.ep-art-circle {
  border-radius: 50%;
  background: rgba(16, 16, 22, 0.65);
  color: #ffffff;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  display: grid;
  place-items: center;
  position: relative;
  transition: background 0.15s, transform 0.14s, box-shadow 0.15s;
}

.ep-art-circle:hover {
  background: rgba(16, 16, 20, 0.82);
  transform: scale(1.07);
}

.ep-art-circle.active {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85);
}

.ep-art-top-right {
  width: 42px;
  height: 42px;
  align-self: flex-end;
}

.ep-art-center-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.ep-art-sm {
  width: 36px;
  height: 36px;
}

.ep-art-md {
  width: 44px;
  height: 44px;
}

.ep-art-lg {
  width: 52px;
  height: 52px;
}

.ep-art-play {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(145deg, #fff066 0%, #ffdf00 55%, #e8b800 100%);
  color: #09090b;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 32px rgba(255, 223, 0, 0.32), inset 0 1.5px 1px rgba(255, 255, 255, 0.6);
  transition: transform 0.16s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.16s ease;
}

.ep-art-play:hover {
  transform: scale(1.07);
}

.ep-art-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px 2px;
}

.ep-track-centered {
  text-align: center;
  width: min(360px, 34vw);
  transition: width 0.48s cubic-bezier(0.22, 1, 0.36, 1);
}

.ep-title {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ep-artist {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.62);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ep-scrubber {
  width: min(360px, 34vw);
  transition: width 0.48s cubic-bezier(0.22, 1, 0.36, 1);
}

.seek-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 3px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.2);
  outline: none;
  cursor: pointer;
}

.seek-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ffffff;
  opacity: 0;
  transition: opacity 0.15s;
}

.seek-slider:hover::-webkit-slider-thumb {
  opacity: 1;
}

.ep-times {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 6px;
  font-variant-numeric: tabular-nums;
}

/* Right Column: Smoothly Slides In/Out when Toggling Karaoke / Queue */
.ep-right {
  flex: 1 1 0;
  max-width: 720px;
  height: 100%;
  min-height: 0;
  margin-left: 64px;
  position: relative;
  display: flex;
  flex-direction: column;
  opacity: 1;
  transform: translateX(0);
  overflow: hidden;
  transition:
    max-width 0.48s cubic-bezier(0.22, 1, 0.36, 1),
    margin-left 0.48s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.32s ease,
    transform 0.48s cubic-bezier(0.22, 1, 0.36, 1);
}

.ep-body.centered .ep-right {
  max-width: 0;
  margin-left: 0;
  opacity: 0;
  transform: translateX(40px);
  pointer-events: none;
}

.ep-panel {
  display: none;
  flex: 1;
  min-height: 0;
  position: relative;
}

.ep-panel.active {
  display: flex;
  flex-direction: column;
}

.karaoke-container {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 24vh 20px 38vh;
  scroll-behavior: smooth;
  text-align: center;
  scrollbar-width: none;
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    black 16%,
    black 84%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    black 16%,
    black 84%,
    transparent 100%
  );
}

.karaoke-container::-webkit-scrollbar {
  display: none;
}

.karaoke-line {
  position: relative;
  isolation: isolate;
  font-size: clamp(29px, 3.3vw, 44px);
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: -0.025em;
  padding: 13px 18px;
  margin-bottom: 14px;
  border-radius: 16px;
  color: #ffffff;
  opacity: 0.54;
  cursor: pointer;
  transform-origin: center center;
  transform: scale(0.92) translateZ(0);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition:
    opacity 0.3s ease,
    transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.16s ease;
}

.karaoke-line:hover {
  background: rgba(255, 255, 255, 0.06);
  opacity: 0.85;
}

.karaoke-line.past {
  opacity: 0.42;
}

.karaoke-line.active {
  opacity: 1;
  transform: scale(1.04) translateZ(0);
}

.karaoke-word {
  position: relative;
  display: inline-block;
  margin-right: 0.27em;
  color: rgba(255, 255, 255, 0.86);
}

.karaoke-line.active .karaoke-word {
  color: rgba(255, 255, 255, 0.46);
}

.k-ch {
  position: relative;
  z-index: 2;
  display: inline-block;
  color: rgba(255, 255, 255, 0.86);
  transform: translate3d(0, 0, 0);
}

.karaoke-line.active .k-ch {
  color: rgba(255, 255, 255, 0.46);
}

/* Varied Atmospheric Karaoke Optical FX (4 rotating GPU effects strictly BEHIND text!) */
.k-word-rays {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--ray-size, 200px);
  height: var(--ray-size, 200px);
  color: rgb(var(--ray-rgb, 255, 128, 64));
  pointer-events: none;
  z-index: -1;
  opacity: 0;
  transform: translate3d(-50%, -50%, 0) scale(0.2);
  will-change: transform, opacity;
  overflow: visible;
}

.k-word-rays .fx-bloom {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 88%;
  height: 48%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    ellipse closest-side at 50% 50%,
    rgba(255, 255, 255, 0.22) 0%,
    rgba(var(--ray-rgb, 255, 128, 64), 0.34) 36%,
    rgba(var(--ray-rgb, 255, 128, 64), 0.08) 68%,
    rgba(var(--ray-rgb, 255, 128, 64), 0) 100%
  );
}

/* FX 0: Soft Panavision Anamorphic Lens Flares + Wide Volumetric Cones (ZERO sharp spikes or dark hole!) */
.k-word-rays .fx-anamorph-streak {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 152%;
  height: 18%;
  border-radius: 50%;
  transform: translate(-50%, -50%) scaleX(0.35);
  background: radial-gradient(
    ellipse closest-side at 50% 50%,
    rgba(255, 255, 255, 0.72) 0%,
    rgba(var(--ray-rgb, 255, 128, 64), 0.56) 28%,
    rgba(var(--ray-rgb, 255, 128, 64), 0.16) 64%,
    rgba(var(--ray-rgb, 255, 128, 64), 0) 100%
  );
  filter: blur(2.5px);
}

.k-word-rays .fx-cone {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 112%;
  height: 36%;
  border-radius: 50%;
  background: radial-gradient(
    ellipse closest-side at 50% 50%,
    rgba(var(--ray-rgb, 255, 128, 64), 0.42) 0%,
    rgba(var(--ray-rgb, 255, 128, 64), 0.16) 52%,
    rgba(var(--ray-rgb, 255, 128, 64), 0) 100%
  );
  filter: blur(4px);
}

.k-word-rays .fx-cone-a {
  transform: translate(-50%, -50%) rotate(-32deg);
}

.k-word-rays .fx-cone-b {
  width: 96%;
  height: 32%;
  transform: translate(-50%, -50%) rotate(42deg);
}

/* FX 1: Ethereal Sonic Ripple (two staggered Gaussian halo rings) */
.k-word-rays .fx-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 96%;
  height: 58%;
  border-radius: 50%;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.32);
  background: radial-gradient(
    ellipse closest-side at 50% 50%,
    rgba(var(--ray-rgb, 255, 128, 64), 0) 36%,
    rgba(var(--ray-rgb, 255, 128, 64), 0.36) 56%,
    rgba(255, 255, 255, 0.24) 64%,
    rgba(var(--ray-rgb, 255, 128, 64), 0.12) 76%,
    rgba(var(--ray-rgb, 255, 128, 64), 0) 100%
  );
}

/* FX 2: Constellation Starlight (4-point diamond stars drifting softly upward) */
.k-word-rays .fx-star {
  position: absolute;
  color: rgba(255, 255, 255, 0.92);
  filter: drop-shadow(0 0 6px rgba(var(--ray-rgb, 255, 128, 64), 0.85));
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.15) rotate(-18deg);
}

/* FX 3: Silk Comet Sweep (diagonal kinetic aurora ribbon gliding behind word) */
.k-word-rays .fx-comet-ribbon {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 144%;
  height: 28%;
  border-radius: 50%;
  opacity: 0;
  transform: translate(-80%, -50%) rotate(-12deg) scaleX(0.45);
  background: linear-gradient(
    90deg,
    rgba(var(--ray-rgb, 255, 128, 64), 0) 0%,
    rgba(var(--ray-rgb, 255, 128, 64), 0.5) 38%,
    rgba(255, 255, 255, 0.72) 55%,
    rgba(var(--ray-rgb, 255, 128, 64), 0.38) 76%,
    rgba(var(--ray-rgb, 255, 128, 64), 0) 100%
  );
  filter: blur(4px);
}

.k-word-rays .fx-comet-mist {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 118%;
  height: 54%;
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(-10deg);
  background: radial-gradient(
    ellipse closest-side at 50% 50%,
    rgba(var(--ray-rgb, 255, 128, 64), 0.34) 0%,
    rgba(var(--ray-rgb, 255, 128, 64), 0.1) 58%,
    rgba(var(--ray-rgb, 255, 128, 64), 0) 100%
  );
}

/* Active Triggers & Keyframes */
.k-word-rays.rays-active {
  animation: fxEnvelope var(--ray-dur, 1.8s) cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.k-word-rays.rays-active .fx-anamorph-streak {
  animation: fxStreakSweep var(--ray-dur, 1.8s) cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.k-word-rays.rays-active .fx-cone-a {
  animation: fxConeRotateA var(--ray-dur, 1.8s) ease-in-out forwards;
}

.k-word-rays.rays-active .fx-cone-b {
  animation: fxConeRotateB var(--ray-dur, 1.8s) ease-in-out forwards;
}

.k-word-rays.rays-active .fx-ring-a {
  animation: fxRingExpand calc(var(--ray-dur, 1.8s) * 0.92) cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.k-word-rays.rays-active .fx-ring-b {
  animation: fxRingExpand calc(var(--ray-dur, 1.8s) * 0.92) cubic-bezier(0.22, 1, 0.36, 1) 0.24s forwards;
}

.k-word-rays.rays-active .fx-star {
  animation: fxStarFloat calc(var(--ray-dur, 1.8s) * 0.86) cubic-bezier(0.22, 1, 0.36, 1) var(--st-delay, 0s) forwards;
}

.k-word-rays.rays-active .fx-comet-ribbon {
  animation: fxCometSweep var(--ray-dur, 1.8s) cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes fxEnvelope {
  0% {
    opacity: 0;
    transform: translate3d(-50%, -50%, 0) scale(0.28);
  }
  24% {
    opacity: 1;
    transform: translate3d(-50%, -50%, 0) scale(1);
  }
  64% {
    opacity: 0.92;
    transform: translate3d(-50%, -50%, 0) scale(1.08);
  }
  100% {
    opacity: 0;
    transform: translate3d(-50%, -50%, 0) scale(0.68);
  }
}

@keyframes fxStreakSweep {
  0% { transform: translate(-50%, -50%) scaleX(0.25) scaleY(0.6); opacity: 0.15; }
  35% { transform: translate(-50%, -50%) scaleX(1.12) scaleY(1.05); opacity: 1; }
  100% { transform: translate(-50%, -50%) scaleX(1.32) scaleY(0.7); opacity: 0; }
}

@keyframes fxConeRotateA {
  0% { transform: translate(-50%, -50%) rotate(-44deg) scale(0.8); }
  100% { transform: translate(-50%, -50%) rotate(-18deg) scale(1.12); }
}

@keyframes fxConeRotateB {
  0% { transform: translate(-50%, -50%) rotate(54deg) scale(0.8); }
  100% { transform: translate(-50%, -50%) rotate(28deg) scale(1.1); }
}

@keyframes fxRingExpand {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.32); }
  28% { opacity: 0.95; }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.38); }
}

@keyframes fxStarFloat {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.15) rotate(-24deg); }
  32% { opacity: 1; transform: translate(-50%, -58%) scale(1.15) rotate(8deg); }
  75% { opacity: 0.85; transform: translate(-50%, -70%) scale(0.95) rotate(22deg); }
  100% { opacity: 0; transform: translate(-50%, -82%) scale(0.25) rotate(36deg); }
}

@keyframes fxCometSweep {
  0% { opacity: 0; transform: translate(-82%, -42%) rotate(-14deg) scaleX(0.42); }
  26% { opacity: 0.95; transform: translate(-56%, -48%) rotate(-12deg) scaleX(0.96); }
  72% { opacity: 0.85; transform: translate(-40%, -54%) rotate(-10deg) scaleX(1.15); }
  100% { opacity: 0; transform: translate(-18%, -60%) rotate(-8deg) scaleX(0.65); }
}

/* Instrumental Pause / Interlude Breathing Dots (Apple Music style) */
.karaoke-pause-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 0;
  opacity: 0;
  overflow: hidden;
  margin: 0;
  transition: height 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease, margin 0.35s ease;
}

.karaoke-pause-dots.visible {
  height: 36px;
  opacity: 1;
  margin: 8px 0 16px;
}

.karaoke-pause-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  transform: scale(0.85);
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.karaoke-pause-dots span.lit {
  background: #ffffff;
  transform: scale(1.15);
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.55);
}

.karaoke-status-box {
  margin: auto;
  max-width: 420px;
  text-align: center;
  padding: 36px 28px;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.karaoke-status-box h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 14px 0 8px;
}

.karaoke-status-box p {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 18px;
}

.karaoke-progress-bar {
  width: 100%;
  height: 5px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
  margin: 14px 0 8px;
}

.karaoke-progress-fill {
  height: 100%;
  background: var(--ym-yellow);
  border-radius: 99px;
  transition: width 0.35s ease;
}

.spinner-md {
  width: 28px;
  height: 28px;
  margin: 0 auto;
  border: 2.5px solid rgba(255, 255, 255, 0.15);
  border-top-color: var(--ym-yellow);
  border-radius: 50%;
  animation: spin 0.85s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.resync-btn {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  padding: 9px 18px;
  border-radius: 99px;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 600;
}

/* Queue Panel */
.queue-header {
  display: flex;
  justify-content: space-between;
  padding: 12px 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
}

.queue-list {
  flex: 1;
  overflow-y: auto;
  padding-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.queue-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.12s;
}

.queue-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.queue-item.is-current {
  background: rgba(255, 223, 0, 0.12);
}

.queue-item.is-current .queue-title {
  color: var(--ym-yellow);
}

.queue-title {
  font-size: 14px;
  font-weight: 600;
}

.queue-artist {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.62);
}

.queue-dur {
  margin-left: auto;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.5);
  font-variant-numeric: tabular-nums;
}

.row-cover {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
  overflow: hidden;
  display: grid;
  place-items: center;
  color: var(--text-muted);
}

.row-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.row-meta {
  min-width: 0;
}

/* ---------- Modals ---------- */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 220;
  background: rgba(0, 0, 0, 0.76);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  padding: 20px;
  animation: modalBgFade 0.22s ease;
}

.modal-card {
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  background: #17171a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.65);
  animation: modalCardPop 0.26s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes modalBgFade {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes modalCardPop {
  0% { opacity: 0; transform: translate3d(0, 12px, 0) scale(0.96); }
  100% { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

.modal-sm {
  max-width: 410px;
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 22px 16px;
  border-bottom: 1px solid var(--border);
}

.modal-header h3 {
  font-size: 17px;
  font-weight: 700;
}

.modal-sub {
  font-size: 12.5px;
  color: var(--text-secondary);
  margin-top: 3px;
}

.modal-close {
  font-size: 20px;
  line-height: 1;
}

.modal-body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 6px;
}

.dropzone {
  border: 1.5px dashed rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.15s, background 0.15s;
}

.dropzone:hover, .dropzone.dragover {
  border-color: var(--ym-yellow);
  background: rgba(255, 223, 0, 0.05);
}

.dropzone-title {
  margin-top: 10px;
  font-size: 14px;
  color: #ffffff;
}

.link-accent {
  color: var(--ym-yellow);
  font-weight: 600;
}

.dropzone-hint {
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-muted);
}

.selected-files {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 130px;
  overflow-y: auto;
}

.selected-file-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 11px;
  border-radius: 8px;
  background: #222226;
  font-size: 12.5px;
}

.selected-file-size {
  color: var(--text-muted);
  font-size: 11.5px;
}

.form-grid, .form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field span {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
}

.field input, .field select, textarea {
  width: 100%;
  padding: 9px 11px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #101012;
  color: #ffffff;
  font-size: 13.5px;
  outline: none;
}

.field input:focus, .field select:focus, textarea:focus {
  border-color: rgba(255, 223, 0, 0.5);
}

textarea {
  resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.55;
}

.whisper-settings {
  padding: 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
}

.checkbox-row input {
  width: 16px;
  height: 16px;
  accent-color: var(--ym-yellow);
}

.upload-progress {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12.5px;
  color: var(--text-secondary);
}

.progress-bar-track {
  height: 6px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--ym-yellow);
  transition: width 0.25s ease;
}

/* ---------- Context Menu ---------- */

.context-menu {
  position: fixed;
  z-index: 240;
  min-width: 210px;
  background: #1c1c20;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.65);
}

.ctx-item {
  width: 100%;
  text-align: left;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.12s;
}

.ctx-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.ctx-item.danger {
  color: var(--danger);
}

.ctx-divider {
  height: 1px;
  background: var(--border);
  margin: 5px 0;
}

.ctx-label {
  padding: 5px 10px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

/* ---------- Toasts ---------- */

.toast-container {
  position: fixed;
  right: 22px;
  bottom: 96px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  padding: 11px 16px;
  border-radius: 12px;
  background: #202025;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 13px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  animation: toastIn 0.2s ease;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Responsive ---------- */

@media (max-width: 1040px) {
  .ym-two-col-grid {
    grid-template-columns: 1fr;
  }
  .ep-body {
    grid-template-columns: 1fr;
    padding: 16px 24px 28px;
    gap: 24px;
    overflow-y: auto;
  }
  .ep-artwork-card, .ep-track-centered, .ep-scrubber {
    width: min(260px, 70vw);
  }
}

@media (max-width: 900px) {
  .wave-stage-grid {
    grid-template-columns: 1fr;
    padding: 16px;
    overflow-y: auto;
  }
  .wave-rail {
    flex-direction: row;
    max-height: none;
    height: auto;
    padding: 8px 0;
    mask-image: none;
    -webkit-mask-image: none;
    overflow-x: auto;
    justify-content: flex-start;
  }
  .wave-scenario {
    flex-shrink: 0;
  }
}

@media (max-width: 720px) {
  .app-shell {
    grid-template-columns: 1fr;
  }
  .sidebar {
    display: none;
  }
  .panel-surface {
    margin: 0;
    border-radius: 0;
  }
  .mini-player {
    margin: 0;
    border-radius: 0;
    grid-template-columns: 1fr auto;
  }
  .mp-right {
    display: none;
  }
  .form-grid, .form-grid-2 {
    grid-template-columns: 1fr;
  }
}


/* ===== UtyaDuck Lottie Karaoke Reaction Stage ===== */
.ep-sticker-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.ep-sticker-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transition: background 0.2s, box-shadow 0.2s;
}

.ep-sticker-toggle.active {
  border-color: rgba(255, 223, 0, 0.42);
  color: #fff;
}

.ep-sticker-toggle.active .ep-sticker-dot {
  background: var(--ym-yellow);
  box-shadow: 0 0 8px rgba(255, 223, 0, 0.75);
}

.ep-sticker-stage {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 196px;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.ep-sticker-stage.hidden {
  display: none;
}

.ep-sticker-lottie {
  width: 190px;
  height: 190px;
  filter: drop-shadow(0 16px 32px rgba(0, 0, 0, 0.48));
  will-change: transform, opacity;
}

.ep-sticker-lottie.sticker-pop {
  animation: utyaStickerPop 0.38s cubic-bezier(0.22, 1.28, 0.36, 1);
}

@keyframes utyaStickerPop {
  0% {
    opacity: 0.35;
    transform: scale(0.74) translateY(8px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@media (max-width: 900px) {
  .ep-sticker-stage {
    height: 128px;
    margin-top: 8px;
  }
  .ep-sticker-lottie {
    width: 124px;
    height: 124px;
  }
}

/* ==========================================================================
   MOBILE & TELEGRAM MINI APP OPTIMIZATION (<= 860px)
   Exact proportions matching mobile Yandex Music screenshots.
   Desktop (> 860px) remains 100% untouched.
   ========================================================================== */

.mobile-topbar,
.mobile-bottom-nav,
.ep-mob-controls,
.ep-mob-mini-cover {
  display: none;
}

.mob-sheet-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mob-sheet-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 13px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-align: left;
  transition: background 0.16s, transform 0.12s;
}

.mob-sheet-btn:active {
  transform: scale(0.985);
  background: rgba(255, 255, 255, 0.12);
}

.mob-sheet-btn.hidden {
  display: none;
}

.mob-sheet-btn.mob-sheet-danger {
  color: #ff6b72;
  background: rgba(255, 77, 87, 0.1);
  border-color: rgba(255, 77, 87, 0.22);
}

.mob-acc-avatar {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--ym-yellow);
  color: #000;
  font-size: 12px;
  font-weight: 800;
}

@media (max-width: 860px) {
  *, *::before, *::after {
    box-sizing: border-box;
  }

  html,
  body {
    width: 100%;
    max-width: 100vw;
    height: 100dvh;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
    overscroll-behavior-y: none;
  }

  .app-shell {
    display: block;
    width: 100%;
    max-width: 100vw;
    height: 100dvh;
    overflow: hidden;
  }

  .sidebar {
    display: none !important;
  }

  .main-content {
    width: 100%;
    max-width: 100vw;
    height: 100dvh;
    overflow: hidden;
    position: relative;
  }

  /* ---- Mobile Top Header (Screenshots 2 & 3, Telegram Fullscreen safe-area aware) ---- */
  .mobile-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: calc(52px + var(--tg-top-inset, env(safe-area-inset-top, 0px)));
    z-index: 40;
    padding: var(--tg-top-inset, env(safe-area-inset-top, 0px)) 14px 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0) 100%);
    pointer-events: none;
  }

  body:not(.view-is-wave) .mobile-topbar {
    background: rgba(10, 10, 14, 0.94);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: none;
  }

  .mobile-brand-btn,
  .mobile-topbar-actions {
    pointer-events: auto;
  }

  .mobile-brand-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
  }

  .mobile-brand-icon {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    object-fit: cover;
  }

  .mobile-brand-title {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--ym-yellow);
  }

  body:not(.view-is-wave) .mobile-brand-title {
    color: #ffffff;
  }

  .mobile-topbar-actions {
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .mobile-icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: rgba(255, 255, 255, 0.9);
    background: transparent;
  }

  .mobile-icon-btn:active {
    background: rgba(255, 255, 255, 0.14);
    transform: scale(0.92);
  }

  .mobile-icon-btn.hidden {
    display: none;
  }

  /* ---- Mobile Bottom Tab Bar (Screenshots 2, 3, 5) ---- */
  .mobile-bottom-nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: calc(58px + var(--tg-bottom-inset, env(safe-area-inset-bottom, 0px)));
    z-index: 60;
    padding: 4px 4px var(--tg-bottom-inset, env(safe-area-inset-bottom, 0px));
    background: rgba(8, 8, 11, 0.96);
    border-top: none;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.65);
  }

  .mob-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: rgba(255, 255, 255, 0.45);
    font-size: 10px;
    font-weight: 600;
    transition: color 0.15s, transform 0.12s;
  }

  .mob-tab:active {
    transform: scale(0.92);
  }

  .mob-tab.active {
    color: #ffffff;
  }

  .mob-tab[data-mob-view="wave"].active {
    color: var(--ym-yellow);
  }

  .mob-acc-icon-wrap {
    display: inline-grid;
    place-items: center;
    height: 24px;
  }

  /* ---- Screen 1: Mobile «Мой пульс» (Exact proportions of Screenshots 2 & 5) ---- */
  .wave-stage {
    position: relative;
    width: 100%;
    height: 100dvh;
    padding: 0;
    overflow: hidden;
  }

  .wave-stage-grid {
    display: flex !important;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100dvh;
    padding: calc(56px + var(--tg-top-inset, env(safe-area-inset-top, 0px))) 16px calc(88px + var(--tg-bottom-inset, env(safe-area-inset-bottom, 0px)));
    gap: 8px;
    overflow: hidden;
  }

  .wave-center {
    order: 1;
    width: 100%;
    max-width: 100%;
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    padding: 14px 0 14px;
  }

  .wave-stage-title {
    font-size: 32px;
    line-height: 1.06;
    font-weight: 800;
    color: var(--ym-yellow);
    letter-spacing: -0.025em;
    margin: 4px 0 6px;
    text-shadow: 0 6px 28px rgba(0, 0, 0, 0.55);
  }

  .wave-cover-box {
    width: min(58vw, 226px);
    height: min(58vw, 226px);
    border-radius: 24px;
    margin: auto 0;
    box-shadow: none;
  }

  .wave-cover-box .wave-cover {
    box-shadow: 0 22px 52px rgba(0, 0, 0, 0.62);
  }

  .wave-capsule-row {
    width: 100%;
    max-width: 100%;
    gap: 8px;
    padding: 0 2px;
    margin-top: auto;
  }

  .wave-transport {
    gap: 26px;
    margin: 0;
  }

  .wave-transport-icon {
    width: 40px;
    height: 40px;
  }

  .wave-transport-icon svg {
    width: 22px;
    height: 22px;
  }

  .wave-play-btn {
    width: 68px;
    height: 68px;
    box-shadow: 0 10px 28px rgba(255, 223, 0, 0.32);
  }

  .wave-play-btn svg {
    width: 26px;
    height: 26px;
  }

  .wave-capsule-row {
    width: 100%;
    max-width: 100%;
    gap: 8px;
    padding: 0 2px;
  }

  .wave-vol-wrap {
    display: none !important;
  }

  .wave-capsule {
    flex: 1 1 auto;
    min-width: 0;
    height: 44px;
    padding: 0 14px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.07);
    border: none;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  }

  .wave-capsule-time {
    display: none !important;
  }

  .wave-capsule-text {
    font-size: 13px;
    font-weight: 700;
    color: #f7f7fa;
  }

  .wave-round-btn {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
  }

  .wave-round-btn svg {
    width: 18px;
    height: 18px;
  }

  /* Transparent Editorial Song Summary matching Yandex Desktop/Mobile look */
  .wave-lyric-preview {
    width: 100%;
    max-width: calc(100vw - 32px);
    grid-template-columns: 28px minmax(0, auto) 28px;
    column-gap: 8px;
    padding: 4px 8px;
    border-radius: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.92);
  }

  .wave-lyric-preview::after {
    width: 28px;
  }

  .wave-lyric-spark {
    width: 24px;
    height: 22px;
  }

  .wave-lyric-spark svg {
    width: 22px;
    height: 18px;
  }

  .wave-lyric-spark::before {
    width: 68px;
    height: 56px;
  }

  .wave-lyric-action {
    font-size: 11.5px;
  }

  .wave-ai-tags {
    margin-top: -6px;
    gap: 4px;
  }

  .wave-ai-tag {
    font-size: 10.5px;
    padding: 1px 4px;
  }

  /* Compact bottom horizontal swipeable scenario strip */
  .wave-rail {
    order: 2;
    width: calc(100% + 32px);
    margin: 0 -16px;
    padding: 4px 16px 8px;
    flex-direction: row !important;
    align-items: stretch;
    justify-content: flex-start;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    mask-image: none !important;
    -webkit-mask-image: none !important;
    height: auto !important;
    max-height: none !important;
    flex-shrink: 0;
  }

  .wave-rail::-webkit-scrollbar {
    display: none;
  }

  .wave-scenario {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-width: 86px;
    padding: 9px 10px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    scroll-snap-align: start;
    flex-shrink: 0;
  }

  .wave-scenario:hover {
    transform: none;
  }

  .wave-scenario.active {
    background: rgba(255, 223, 0, 0.14);
    border-color: rgba(255, 223, 0, 0.38);
  }

  .ws-pill {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }

  .ws-pill svg {
    width: 17px;
    height: 17px;
  }

  .ws-label {
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
  }

  /* ---- Screen 2: Mobile Collection / Catalog / Search / Artist ---- */
  .panel-surface {
    margin: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    width: 100%;
    height: 100dvh;
    background: #070709;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }

  .panel-topbar {
    padding: calc(56px + var(--tg-top-inset, env(safe-area-inset-top, 0px))) 14px 8px;
    gap: 8px;
    flex-shrink: 0;
  }

  #topbar-upload-btn {
    display: none !important;
  }

  .search-box {
    max-width: none;
    width: 100%;
  }

  .search-box input {
    height: 40px;
    font-size: 14px;
    padding: 0 36px 0 38px;
  }

  .search-icon {
    left: 13px;
  }

  .panel-inner {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 8px 14px 36px;
    margin-bottom: calc(64px + var(--tg-bottom-inset, env(safe-area-inset-bottom, 0px)));
    -webkit-overflow-scrolling: touch;
  }

  /* When mini-player is visible, end scroll viewport cleanly above it so NO tracks sit behind it */
  body.has-current-track:not(.view-is-wave) .panel-inner {
    margin-bottom: calc(140px + var(--tg-bottom-inset, env(safe-area-inset-bottom, 0px))) !important;
    padding-bottom: 36px !important;
  }

  body.view-is-artist .panel-inner {
    padding-top: calc(54px + var(--tg-top-inset, env(safe-area-inset-top, 0px)));
  }

  .view-header {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 12px;
    padding: 4px 0 4px;
    margin-bottom: 18px;
  }

  .view-title {
    font-size: 24px;
  }

  .view-subtitle {
    font-size: 13px;
    margin-top: 3px;
  }

  .view-header-controls {
    width: 100%;
    flex-wrap: wrap;
    gap: 8px;
  }

  .btn-yellow,
  .btn-ghost {
    padding: 9px 15px;
    font-size: 13px;
  }

  /* Collection 2x2 Smart Cards — compact, borderless, crisp */
  .col-cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px;
    margin-bottom: 16px;
  }

  .col-card {
    height: auto !important;
    min-height: 102px;
    padding: 13px 14px !important;
    gap: 10px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.065);
  }

  .col-card::before {
    width: 96px;
    height: 96px;
    top: -24px;
    left: -16px;
    filter: blur(18px);
  }

  .col-card-icon {
    width: 50px;
    height: 50px;
    border-radius: 0;
  }

  .col-card-icon svg {
    width: 18px;
    height: 18px;
  }

  .col-card-play {
    display: grid;
    width: 30px;
    height: 30px;
    opacity: 0.94;
    transform: none;
    box-shadow: 0 6px 14px rgba(255, 223, 0, 0.25);
  }

  .col-card-play svg {
    width: 13px;
    height: 13px;
  }

  .col-card-bottom h3 {
    font-size: 13.5px !important;
    line-height: 1.2;
    font-weight: 700;
  }

  .col-card-bottom p {
    font-size: 11.5px !important;
    margin-top: 2px;
  }

  .col-filter-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    gap: 6px;
    margin: 0 -14px 14px;
    padding: 0 14px;
  }

  .col-filter-tabs::-webkit-scrollbar {
    display: none;
  }

  .col-tab {
    padding: 7px 14px;
    font-size: 12.5px;
    flex-shrink: 0;
  }

  /* Releases grid & horizontal swipeable Artists row on phone! */
  .releases-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px;
  }

  .release-card {
    padding: 9px;
    border-radius: 14px;
    border: none;
  }

  .release-title {
    font-size: 13.5px;
  }

  .release-sub {
    font-size: 11.5px;
  }

  .artists-row {
    display: flex !important;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 10px;
    margin: 0 -14px;
    padding: 2px 14px 6px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .artists-row::-webkit-scrollbar {
    display: none;
  }

  .artist-circle-card {
    width: 96px;
    flex-shrink: 0;
    padding: 10px 6px;
    border: none;
    background: rgba(255, 255, 255, 0.035);
  }

  .artist-circle-img {
    width: 72px;
    height: 72px;
    margin-bottom: 8px;
  }

  .artist-circle-name {
    font-size: 12.5px;
  }

  .artist-circle-sub {
    font-size: 11px;
  }

  /* Clean mobile Track List Rows (Cover | Title+Artist | Like+More) */
  .ym-track-item {
    display: grid !important;
    grid-template-columns: 48px minmax(0, 1fr) auto !important;
    align-items: center;
    gap: 12px;
    padding: 8px 4px;
    border-radius: 12px;
  }

  .ym-track-num,
  .ym-track-index,
  .ym-track-album,
  .ym-lyrics-pill,
  .ym-track-dur {
    display: none !important;
  }

  .ym-more-btn {
    opacity: 1 !important;
    width: 32px;
    height: 32px;
  }

  .ym-track-cover {
    width: 48px !important;
    height: 48px !important;
    border-radius: 10px;
  }

  .ym-track-meta {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .ym-track-title-line {
    min-width: 0;
  }

  .ym-track-title {
    display: block;
    font-size: 14.5px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .ym-track-artist {
    font-size: 12.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .ym-track-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
  }

  /* Artist Profile Mobile Layout */
  .artist-hero {
    margin: 0 -14px 20px;
    padding: 14px 14px 22px;
    border-bottom: none;
  }

  .artist-hero-nav {
    margin-bottom: 10px;
    display: flex;
    justify-content: flex-start;
  }

  .artist-hero-main {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
  }

  .artist-avatar-lg {
    width: 112px;
    height: 112px;
  }

  .artist-hero-info {
    min-width: 0;
    width: 100%;
  }

  .artist-name-lg {
    font-size: 26px;
  }

  .artist-actions-row {
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
  }

  .artist-body-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  /* ---- Floating Mobile Mini-Player (Sleek Smoked Glass + Flush Bottom Progress) ---- */
  .mini-player {
    position: fixed !important;
    left: 10px;
    right: 10px;
    bottom: calc(68px + var(--tg-bottom-inset, env(safe-area-inset-bottom, 0px)));
    z-index: 55;
    margin: 0 !important;
    height: 58px;
    border-radius: 16px !important;
    padding: 0 12px 0 10px;
    background: linear-gradient(
      95deg,
      rgba(var(--wave-glow-rgb, 36, 40, 56), 0.28) 0%,
      rgba(20, 21, 27, 0.96) 100%
    );
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 8px;
    overflow: hidden;
  }

  body.view-is-wave .mini-player,
  body:not(.has-current-track) .mini-player {
    display: none !important;
  }

  .mp-right,
  #mp-shuffle,
  #mp-prev,
  #mp-next,
  #mp-repeat {
    display: none !important;
  }

  .mp-left {
    height: 100%;
    align-items: center;
    gap: 10px;
    cursor: pointer;
  }

  .mp-center {
    padding-bottom: 0;
  }

  #mp-open-expanded,
  .mp-cover-btn {
    width: 42px !important;
    height: 42px !important;
    flex-shrink: 0;
    border-radius: 10px;
    overflow: hidden;
  }

  .mp-center .transport-controls {
    gap: 4px;
  }

  .mp-cover {
    width: 42px !important;
    height: 42px !important;
    border-radius: 10px;
  }

  .mp-title {
    font-size: 13.5px;
    font-weight: 700;
  }

  .mp-artist {
    font-size: 12px;
  }

  .play-circle-btn {
    width: 38px;
    height: 38px;
    background: transparent !important;
    box-shadow: none !important;
    color: #ffffff;
  }

  .mp-progress-top {
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    width: 100%;
    transform: none;
    height: 2.5px;
    border-radius: 0;
  }

  /* ---- Screen 3: Mobile Full-Screen Player (EXACT Match to Screenshots 1 & 4!) ---- */
  .expanded-player {
    z-index: 120;
    width: 100vw;
    height: 100dvh;
    overflow: hidden;
  }

  .ep-shell {
    width: 100%;
    height: 100dvh;
    padding: calc(10px + var(--tg-top-inset, env(safe-area-inset-top, 0px))) 18px calc(30px + var(--tg-bottom-inset, env(safe-area-inset-bottom, 0px)));
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .ep-top-controls {
    position: relative;
    z-index: 15;
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: center;
    padding: 2px 0 10px !important;
    gap: 8px;
    flex-shrink: 0;
  }

  .ep-collapse-circle {
    width: 36px;
    height: 36px;
    background: transparent;
    flex-shrink: 0;
  }

  .ep-top-left {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    overflow: visible;
    max-width: calc(100vw - 82px);
  }

  .ep-top-left .btn-ghost-sm {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.085);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    flex-shrink: 0;
  }

  .ep-top-left .btn-ghost-sm span {
    display: none;
  }

  .ep-top-left .btn-ghost-sm svg {
    width: 16px;
    height: 16px;
  }

  .ep-sync-pill {
    flex-shrink: 0;
    font-size: 11px;
    padding: 2px 5px;
  }

  /* Rock-solid vertical stack — ZERO width jumping between Cover & Lyrics modes! */
  .ep-body {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between;
    align-items: stretch !important;
    flex: 1 1 auto;
    min-height: 0;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    gap: 12px !important;
    overflow: hidden !important;
    position: relative;
  }

  .ep-left {
    display: contents !important;
  }

  /* Override desktop .ep-body.centered 44vw rule, while keeping beat-synced transform/glow + smooth mode transitions alive! */
  .ep-artwork-card,
  .ep-body.centered .ep-artwork-card {
    order: 1;
    width: min(calc(100vw - 44px), 340px, 42dvh) !important;
    height: min(calc(100vw - 44px), 340px, 42dvh) !important;
    aspect-ratio: 1 / 1;
    margin: auto !important;
    border-radius: 16px;
    flex-shrink: 0;
  }

  .ep-body.ep-tab-switching.centered .ep-artwork-card {
    animation: epMobArtReveal 0.36s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .ep-art-overlay {
    display: none !important;
  }

  .ep-body.mob-has-panel .ep-artwork-card {
    display: none !important;
  }

  /* Borderless Karaoke / Queue Panel with silky slide-fade enter animation */
  .ep-right,
  .ep-body.mob-has-panel .ep-right {
    order: 1;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    height: auto !important;
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
    display: none;
    border-radius: 0;
    background: transparent;
    border: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    overflow: hidden;
    position: relative;
  }

  .ep-body.mob-has-panel .ep-right {
    display: flex !important;
    flex-direction: column;
  }

  .ep-body.ep-tab-switching.mob-has-panel .ep-right {
    animation: epMobPanelReveal 0.34s cubic-bezier(0.22, 1, 0.36, 1);
  }

  @keyframes epMobArtReveal {
    0% { opacity: 0.15; transform: scale(0.88); }
    100% { opacity: 1; transform: scale(1); }
  }

  @keyframes epMobPanelReveal {
    0% { opacity: 0; transform: translate3d(0, 18px, 0) scale(0.97); }
    100% { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
  }

  .col-card:active,
  .release-card:active,
  .artist-circle-card:active,
  .wave-scenario:active,
  .mini-player:active {
    transform: scale(0.97);
    transition: transform 0.12s ease;
  }

  body.has-current-track:not(.view-is-wave) .mini-player {
    animation: miniPlayerMobilePop 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  }

  @keyframes miniPlayerMobilePop {
    0% { opacity: 0; transform: translate3d(0, 14px, 0) scale(0.97); }
    100% { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
  }

  .ep-body.centered .ep-right {
    display: none !important;
  }

  .ep-panel.active {
    height: 100%;
    width: 100%;
  }

  .karaoke-container {
    padding: 84px 18px 88px !important;
    gap: 16px;
    mask-image: linear-gradient(
      to bottom,
      transparent 0%,
      transparent 13%,
      black 26%,
      black 86%,
      transparent 100%
    );
    -webkit-mask-image: linear-gradient(
      to bottom,
      transparent 0%,
      transparent 13%,
      black 26%,
      black 86%,
      transparent 100%
    );
  }

  /* Keep constant font-size on mobile so active line smoothly zooms via GPU transform: scale() with ZERO layout reflow! */
  .karaoke-line {
    font-size: 27px !important;
    line-height: 1.26;
    font-weight: 800;
    padding: 10px 8px;
  }

  /* Avoid expensive mobile WebView backdrop-filter blur over animated canvases */
  .wave-capsule,
  .wave-round-btn,
  .wave-lyric-preview,
  .mobile-bottom-nav,
  .mini-player,
  body:not(.view-is-wave) .mobile-topbar {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .mobile-bottom-nav {
    background: rgba(8, 8, 10, 0.98);
  }

  .mini-player {
    background: linear-gradient(
      95deg,
      rgba(var(--wave-glow-rgb, 36, 40, 56), 0.28) 0%,
      rgba(18, 19, 24, 0.98) 100%
    );
  }

  .resync-btn {
    padding: 7px 14px;
    font-size: 12px;
    bottom: 12px;
  }

  /* UtyaDuck sits cleanly in the top-right fade zone of Lyrics on mobile without colliding with text */
  .ep-sticker-stage {
    position: absolute;
    top: 4px;
    right: 4px;
    margin: 0 !important;
    height: 58px !important;
    width: 58px !important;
    z-index: 12;
  }

  .ep-body.centered .ep-sticker-stage {
    display: none !important;
  }

  .ep-sticker-lottie {
    width: 56px !important;
    height: 56px !important;
  }

  /* Track Title + Circular Mini Cover Row (ALWAYS 100% width, never shrinks!) */
  .ep-track-centered,
  .ep-body.centered .ep-track-centered {
    order: 2;
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    align-items: center;
    gap: 12px;
    text-align: left !important;
    flex-shrink: 0;
    transition: none !important;
  }

  .ep-body:not(.mob-has-panel) .ep-mob-mini-cover {
    display: none !important;
  }

  .ep-mob-mini-cover {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.12);
    flex-shrink: 0;
  }

  .ep-mob-mini-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .ep-track-centered-text {
    min-width: 0;
    flex: 1;
  }

  .ep-title {
    font-size: 17px !important;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .ep-artist {
    font-size: 13.5px !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Scrubber (ALWAYS 100% width, visible thumb dot like Screenshots 1 & 4!) */
  .ep-scrubber,
  .ep-body.centered .ep-scrubber {
    order: 3;
    width: 100% !important;
    max-width: 100% !important;
    flex-shrink: 0;
    transition: none !important;
  }

  .seek-slider::-webkit-slider-thumb {
    opacity: 1 !important;
    width: 12px;
    height: 12px;
  }

  .ep-times {
    font-size: 11px;
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.62);
  }

  /* Dedicated Mobile Transport & 3 Bottom Pills (Screenshots 1 & 4 exact layout!) */
  .ep-mob-controls {
    order: 4;
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
    flex-shrink: 0;
    padding-bottom: 2px;
  }

  .ep-mob-transport {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4px;
  }

  .ep-mob-side-btn,
  .ep-mob-skip-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: rgba(255, 255, 255, 0.85);
    transition: transform 0.12s, color 0.15s;
  }

  .ep-mob-side-btn.active,
  .ep-mob-side-btn.liked {
    color: var(--ym-yellow);
  }

  .ep-mob-side-btn:active,
  .ep-mob-skip-btn:active {
    transform: scale(0.9);
  }

  .ep-mob-play-btn {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--ym-yellow);
    color: #000000;
    display: grid;
    place-items: center;
    box-shadow: 0 8px 24px rgba(255, 223, 0, 0.34);
    transition: transform 0.14s;
  }

  .ep-mob-play-btn:active {
    transform: scale(0.92);
  }

  .ep-mob-pills {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .ep-mob-pill {
    position: relative;
    height: 42px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.1);
    border: 1.5px solid transparent;
    color: rgba(255, 255, 255, 0.88);
    display: grid;
    place-items: center;
    transition: background 0.15s, border-color 0.15s, transform 0.12s;
  }

  .ep-mob-pill:active {
    transform: scale(0.95);
  }

  .ep-mob-pill.active {
    background: rgba(255, 223, 0, 0.2);
    border-color: transparent;
    color: var(--ym-yellow);
  }

  /* ---- Native Bottom-Sheet Modals on Mobile ---- */
  .modal-overlay {
    z-index: 220;
    align-items: flex-end;
    padding: 0;
  }

  #auth-modal.modal-overlay {
    align-items: center;
    padding: 16px;
  }

  .modal-card {
    width: 100%;
    max-width: 100%;
    max-height: 88dvh;
    border-radius: 22px 22px 0 0;
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
    overflow-y: auto;
    animation: modalSheetRise 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .auth-modal-card {
    max-width: 400px !important;
    border-radius: 24px !important;
    padding-bottom: 0 !important;
    animation: modalCardPop 0.28s cubic-bezier(0.22, 1, 0.36, 1) !important;
  }

  @keyframes modalSheetRise {
    0% { opacity: 0; transform: translate3d(0, 36px, 0); }
    100% { opacity: 1; transform: translate3d(0, 0, 0); }
  }

  .form-grid,
  .form-grid-2 {
    grid-template-columns: 1fr;
  }

  .toast-container {
    bottom: calc(130px + env(safe-area-inset-bottom));
    left: 14px;
    right: 14px;
    align-items: center;
  }
}


/* ===== Karaoke Lyrics Report Modal & Owner Moderation Cards ===== */
.report-modal-card {
  max-width: 560px;
}

.report-reason-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.report-reason-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
}

.report-reason-pill.active {
  background: rgba(255, 223, 0, 0.14);
  border-color: rgba(255, 223, 0, 0.65);
  color: var(--ym-yellow);
}

.report-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.report-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.report-label {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
}

.report-hint {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.48);
}

.report-lines-list {
  max-height: 156px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.report-line-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 11px;
  border-radius: 10px;
  text-align: left;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.78);
  background: transparent;
  transition: background 0.14s, color 0.14s;
}

.report-line-opt:hover {
  background: rgba(255, 255, 255, 0.07);
}

.report-line-opt.selected {
  background: rgba(255, 223, 0, 0.16);
  color: #ffffff;
  font-weight: 700;
}

.report-line-ts {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.45);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.report-words-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.report-word-chip {
  padding: 7px 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid transparent;
  transition: background 0.14s, color 0.14s, border-color 0.14s, transform 0.1s;
}

.report-word-chip:active {
  transform: scale(0.95);
}

.report-word-chip.selected {
  background: var(--ym-yellow);
  color: #000000;
  font-weight: 800;
  border-color: var(--ym-yellow);
}

/* Owner Moderation Lyrics Report Cards */
.mod-reports-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.mod-report-card {
  padding: 16px 18px;
  border-radius: 16px;
  background: #1a1a1f;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mod-report-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.mod-report-track {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.mod-report-cover {
  width: 42px;
  height: 42px;
  border-radius: 9px;
  overflow: hidden;
  background: #25252b;
  flex-shrink: 0;
  display: grid;
  place-items: center;
}

.mod-report-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mod-report-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #ffffff;
}

.mod-report-meta {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
}

.mod-report-diff {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 14px;
  line-height: 1.45;
}

.mod-diff-context {
  color: rgba(255, 255, 255, 0.72);
}

.mod-diff-old {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(255, 77, 87, 0.22);
  color: #ff8087;
  text-decoration: line-through;
  font-weight: 700;
}

.mod-diff-new {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 6px;
  background: rgba(56, 217, 169, 0.2);
  color: #5cf2c4;
  font-weight: 700;
}

.mod-report-comment {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.65);
  font-style: italic;
}

.mod-report-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

/* ===== Android / Low-Power Mobile Zero-Flicker & 60fps Mode (body.perf-lite) ===== */
/* Keeps full PC per-letter wave, optical glow & rotating rays while eliminating Android Skia flicker & GPU overdraw! */
body.perf-lite .karaoke-container {
  mask-image: none !important;
  -webkit-mask-image: none !important;
}

body.perf-lite .karaoke-line {
  position: relative;
  z-index: 1;
  isolation: auto !important;
  transition: opacity 0.24s ease, transform 0.28s ease !important;
}

body.perf-lite .k-ch {
  backface-visibility: hidden;
}

body.perf-lite .ep-orb-3 {
  display: none !important;
}

body.perf-lite .ep-orb-1,
body.perf-lite .ep-orb-2 {
  width: 96vmax;
  height: 60vmax;
}

body.perf-lite .expanded-player .btn-ghost-sm,
body.perf-lite .expanded-player .icon-btn,
body.perf-lite .ep-mobile-player-sheet {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body.perf-lite .ep-artwork-card {
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.48) !important;
}

/* ===== Luxury Animated Closed Gate & Auth UI ===== */
.closed-gate-screen {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100dvh;
  z-index: 200;
  background: radial-gradient(circle at 50% 25%, #12121a 0%, #050508 72%, #000000 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow: hidden;
}

.closed-gate-screen.hidden {
  display: none !important;
}

.gate-bg-aurora {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.gate-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform, opacity;
}

.gate-orb-1 {
  width: 68vmax;
  height: 68vmax;
  left: -18vmax;
  top: -22vmax;
  background: radial-gradient(circle, rgba(255, 223, 0, 0.2) 0%, rgba(255, 168, 42, 0.06) 44%, transparent 72%);
  animation: gateOrbFloat1 12s ease-in-out infinite alternate;
}

.gate-orb-2 {
  width: 64vmax;
  height: 64vmax;
  right: -18vmax;
  bottom: -24vmax;
  background: radial-gradient(circle, rgba(102, 126, 234, 0.24) 0%, rgba(168, 85, 247, 0.09) 46%, transparent 74%);
  animation: gateOrbFloat2 15s ease-in-out infinite alternate;
}

.gate-orb-3 {
  width: 48vmax;
  height: 48vmax;
  left: 26vw;
  top: 28vh;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.14) 0%, rgba(255, 223, 0, 0.05) 48%, transparent 74%);
  animation: gateOrbFloat3 18s ease-in-out infinite alternate;
}

@keyframes gateOrbFloat1 {
  0% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.72; }
  100% { transform: translate3d(6vw, 5vh, 0) scale(1.14); opacity: 1; }
}

@keyframes gateOrbFloat2 {
  0% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.68; }
  100% { transform: translate3d(-6vw, -6vh, 0) scale(1.16); opacity: 0.96; }
}

@keyframes gateOrbFloat3 {
  0% { transform: translate3d(0, 0, 0) scale(0.95); opacity: 0.55; }
  100% { transform: translate3d(-4vw, 6vh, 0) scale(1.12); opacity: 0.88; }
}

#auth-modal.modal-overlay {
  z-index: 250;
}

.toast-container {
  z-index: 300;
}

.closed-gate-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 416px;
  padding: 34px 28px 30px;
  border-radius: 28px;
  background: linear-gradient(165deg, rgba(24, 25, 33, 0.84) 0%, rgba(12, 12, 16, 0.92) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.78),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(26px) saturate(140%);
  -webkit-backdrop-filter: blur(26px) saturate(140%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  animation: gateCardEnter 0.55s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

@keyframes gateCardEnter {
  0% { opacity: 0; transform: translate3d(0, 22px, 0) scale(0.94); }
  100% { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

.closed-gate-badge {
  padding: 5px 12px;
  border-radius: 99px;
  background: rgba(255, 223, 0, 0.1);
  border: 1px solid rgba(255, 223, 0, 0.24);
  color: #ffe866;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.closed-gate-logo-wrap {
  position: relative;
  display: grid;
  place-items: center;
  margin-top: 4px;
}

.closed-gate-logo-wrap::before {
  content: "";
  position: absolute;
  width: 118px;
  height: 118px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 223, 0, 0.34) 0%, rgba(255, 223, 0, 0) 70%);
  animation: gateLogoPulse 3.6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes gateLogoPulse {
  0%, 100% { transform: scale(0.92); opacity: 0.62; }
  50% { transform: scale(1.12); opacity: 1; }
}

.closed-gate-logo {
  position: relative;
  width: 82px;
  height: 82px;
  border-radius: 22px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.closed-gate-title {
  font-family: "Unbounded", "Onest", sans-serif;
  margin: 2px 0 0;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.025em;
  background: linear-gradient(180deg, #ffffff 0%, #fff3b0 60%, #ffdf00 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.closed-gate-sub {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.66);
}

.closed-gate-error,
.auth-error-banner {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 71, 87, 0.14);
  border: 1px solid rgba(255, 71, 87, 0.42);
  color: #ff808b;
  font-size: 13.5px;
  line-height: 1.45;
  font-weight: 600;
  text-align: left;
}

.closed-gate-login-btn {
  margin-top: 8px;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #fff176 0%, #ffdf00 55%, #f0b900 100%);
  color: #09090b;
  font-size: 15.5px;
  font-weight: 800;
  box-shadow: 0 14px 36px rgba(255, 223, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.65);
  cursor: pointer;
  transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.18s ease, filter 0.18s ease;
}

.closed-gate-login-btn:hover {
  filter: brightness(1.05);
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(255, 223, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.closed-gate-login-btn:active {
  transform: scale(0.97);
}

.closed-gate-login-btn svg {
  transition: transform 0.18s ease;
}

.closed-gate-login-btn:hover svg {
  transform: translateX(3px);
}

/* Upgraded Auth Modal Glass Card */
.auth-modal-card {
  position: relative;
  overflow: hidden !important;
  border-radius: 24px !important;
  background: linear-gradient(165deg, rgba(25, 26, 35, 0.96) 0%, rgba(14, 15, 20, 0.98) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 32px 84px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}

.auth-modal-glow {
  position: absolute;
  top: -70px;
  left: 50%;
  transform: translateX(-50%);
  width: 280px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 223, 0, 0.24) 0%, rgba(120, 140, 255, 0.08) 45%, transparent 74%);
  pointer-events: none;
}

.auth-modal-header {
  position: relative;
  border-bottom-color: rgba(255, 255, 255, 0.07) !important;
}

.auth-brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.auth-brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
  flex-shrink: 0;
}

.auth-modal-card .auth-tabs {
  background: rgba(255, 255, 255, 0.045);
  margin: 14px 22px 0;
  padding: 4px;
  border-radius: 13px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.auth-modal-card .auth-tab {
  border-radius: 10px;
  padding: 9px 12px;
  background: transparent;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.auth-modal-card .auth-tab.active {
  background: var(--ym-yellow);
  color: #09090b;
  box-shadow: 0 4px 14px rgba(255, 223, 0, 0.28);
}

.auth-modal-card .field input {
  border-radius: 12px;
  padding: 11px 14px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.auth-modal-card .field input:focus {
  border-color: rgba(255, 223, 0, 0.65);
  background: rgba(255, 255, 255, 0.085);
  box-shadow: 0 0 0 3px rgba(255, 223, 0, 0.14);
}

/* ===== Admin Closed Beta Testers Panel ===== */
.admin-beta-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-beta-sub {
  margin: 4px 0 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.56);
}

.admin-beta-mode-btn.is-on {
  border-color: rgba(255, 223, 0, 0.45);
  color: #ffdf00;
  background: rgba(255, 223, 0, 0.1);
}

.admin-beta-add-form {
  display: flex;
  gap: 10px;
  margin: 14px 0 16px;
  flex-wrap: wrap;
}

.admin-beta-input-wrap {
  position: relative;
  flex: 1;
  min-width: 240px;
}

.admin-beta-add-form input {
  width: 100%;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  font-size: 14px;
}

.admin-beta-add-form input:focus {
  outline: none;
  border-color: var(--ym-yellow, #ffdf00);
}

.admin-beta-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 60;
  max-height: 260px;
  overflow-y: auto;
  border-radius: 14px;
  background: #16161b;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.72);
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.admin-beta-dropdown.hidden {
  display: none !important;
}

.admin-beta-dd-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 9px 11px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: #ffffff;
  text-align: left;
  cursor: pointer;
  transition: background 0.14s ease;
}

.admin-beta-dd-item:hover {
  background: rgba(255, 223, 0, 0.12);
}

.admin-beta-dd-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.admin-beta-dd-email {
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-beta-dd-meta {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.54);
}

.admin-beta-dd-action {
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  flex-shrink: 0;
  background: rgba(255, 223, 0, 0.16);
  color: #ffdf00;
}

.admin-beta-dd-action.done {
  background: rgba(56, 217, 169, 0.15);
  color: #5cf2c4;
}

.admin-beta-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-beta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease;
}

.admin-beta-row:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
}

.admin-beta-row.is-admin {
  cursor: default;
  border-color: rgba(255, 223, 0, 0.24);
}

.admin-beta-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.admin-beta-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-weight: 800;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.admin-beta-row.is-allowed .admin-beta-avatar {
  background: rgba(56, 217, 169, 0.18);
  color: #5cf2c4;
}

.admin-beta-row.is-admin .admin-beta-avatar {
  background: rgba(255, 223, 0, 0.18);
  color: #ffdf00;
}

.admin-beta-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.admin-beta-name {
  font-size: 14.5px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-beta-email {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.58);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-beta-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.admin-beta-badge {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.admin-beta-badge.owner {
  background: rgba(255, 223, 0, 0.16);
  color: #ffdf00;
}

.admin-beta-badge.allowed {
  background: rgba(56, 217, 169, 0.16);
  color: #5cf2c4;
}

.admin-beta-badge.blocked {
  background: rgba(255, 77, 87, 0.16);
  color: #ff8087;
}

@media (max-width: 600px) {
  .admin-beta-row {
    flex-direction: column;
    align-items: stretch;
  }
  .admin-beta-right {
    justify-content: space-between;
  }
}

/* ===== Pagination ("Показать ещё") & Floating Background Uploader ===== */
.load-more-wrap {
  display: flex;
  justify-content: center;
  padding: 18px 0 12px;
}

.btn-load-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.12s ease;
}

.btn-load-more:hover {
  background: rgba(255, 223, 0, 0.14);
  border-color: rgba(255, 223, 0, 0.42);
  color: var(--ym-yellow);
}

.btn-load-more:active {
  transform: scale(0.97);
}

.artist-circle-more .artist-circle-img {
  background: rgba(255, 223, 0, 0.1);
  border: 1.5px dashed rgba(255, 223, 0, 0.45);
  color: var(--ym-yellow);
  font-size: 20px;
  font-weight: 800;
}

.bg-upload-toast {
  position: fixed;
  right: 18px;
  bottom: 94px;
  z-index: 260;
  width: min(350px, calc(100vw - 24px));
  padding: 13px 15px;
  border-radius: 16px;
  background: rgba(20, 20, 24, 0.96);
  border: 1px solid rgba(255, 223, 0, 0.28);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65);
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.bg-upload-toast.hidden {
  display: none !important;
}

.bg-upload-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.bg-upload-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bg-upload-cancel {
  border: none;
  background: rgba(255, 77, 87, 0.16);
  color: #ff8087;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  flex-shrink: 0;
}

.bg-upload-sub {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bg-upload-bar {
  width: 100%;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.bg-upload-fill {
  height: 100%;
  width: 0%;
  background: var(--ym-yellow);
  border-radius: 999px;
  transition: width 0.2s ease;
}

@media (max-width: 860px) {
  .bg-upload-toast {
    left: 12px;
    right: 12px;
    width: auto;
    bottom: auto;
    top: calc(58px + var(--tg-top-inset, env(safe-area-inset-top, 0px)));
  }
}

.ep-top-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ep-cover-toggle-btn {
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* When a track has a background clip and cover is hidden: hide artwork, show sleek single-row controls */
.expanded-player.cover-hidden-for-clip .ep-artwork-card {
  order: 4;
  height: auto;
  aspect-ratio: auto;
  width: auto;
  max-width: 100%;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible;
  transform: none !important;
}

.expanded-player.cover-hidden-for-clip .ep-artwork {
  display: none;
}

.expanded-player.cover-hidden-for-clip .ep-art-overlay {
  position: relative;
  inset: auto;
  opacity: 1 !important;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  border-radius: 0;
  padding: 2px 0 0;
  width: 264px;
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.expanded-player.cover-hidden-for-clip .ep-art-center-row,
.expanded-player.cover-hidden-for-clip .ep-art-bottom-row {
  display: contents;
}

.expanded-player.cover-hidden-for-clip #ep-shuffle { order: 1; width: 36px; height: 36px; }
.expanded-player.cover-hidden-for-clip #ep-prev { order: 2; width: 38px; height: 38px; }
.expanded-player.cover-hidden-for-clip #ep-play { order: 3; width: 52px; height: 52px; }
.expanded-player.cover-hidden-for-clip #ep-next { order: 4; width: 38px; height: 38px; }
.expanded-player.cover-hidden-for-clip #ep-repeat { order: 5; width: 36px; height: 36px; }
.expanded-player.cover-hidden-for-clip #ep-lyrics-toggle { order: 6; width: 40px; height: 40px; }
.expanded-player.cover-hidden-for-clip #ep-like-btn { order: 7; width: 40px; height: 40px; }
.expanded-player.cover-hidden-for-clip #ep-queue-toggle {
  order: 8;
  position: static;
  margin: 0;
  width: 40px;
  height: 40px;
}

.expanded-player.cover-hidden-for-clip .ep-track-centered {
  order: 2;
}

.expanded-player.cover-hidden-for-clip .ep-scrubber {
  order: 3;
}

@media (min-width: 861px) {
  .expanded-player.cover-hidden-for-clip .ep-left,
  .expanded-player.cover-hidden-for-clip .ep-body.centered .ep-left {
    align-self: flex-end;
    margin-top: auto;
    padding-bottom: 14px;
  }
}

.expanded-player.anim-cover-restore .ep-artwork-card {
  animation: epCoverRestore 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes epCoverRestore {
  0% {
    opacity: 0;
    transform: scale(0.76) translateY(18px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@media (max-width: 860px) {
  .expanded-player.cover-hidden-for-clip .ep-artwork-card {
    order: 1 !important;
    width: min(calc(100vw - 44px), 340px, 42dvh) !important;
    height: min(calc(100vw - 44px), 340px, 42dvh) !important;
    aspect-ratio: 1 / 1 !important;
    margin: auto !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    background: transparent !important;
    box-shadow: none !important;
  }
  .ep-cover-toggle-btn span {
    display: none;
  }
  .ep-cover-toggle-btn {
    width: 38px;
    height: 38px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }
}
.karaoke-unavailable,
button.karaoke-unavailable:disabled {
  opacity: 0.28 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
  filter: grayscale(1);
}

/* ===== Expanded Player Looping Background Clip ===== */
.ep-bg-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.72s cubic-bezier(0.22, 1, 0.36, 1);
}

.ep-bg-video-wrap.is-visible {
  opacity: 1;
}

.ep-bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.56;
  transform: scale(1.03);
  filter: saturate(1.12);
}

.ep-bg-video-scrim {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 42%, rgba(6, 7, 12, 0.28) 0%, rgba(4, 5, 9, 0.74) 100%);
}

.expanded-player.has-bg-clip .ep-bg-ambient {
  mix-blend-mode: screen;
  opacity: 0.86;
}

/* ===== Redesigned Upload / Publish & Clip Trim Modals ===== */
.upload-modal-card {
  width: min(650px, calc(100vw - 24px));
  max-height: 90dvh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(165deg, rgba(24, 24, 32, 0.97) 0%, rgba(13, 13, 18, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.78), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.upload-modal-header {
  padding: 20px 24px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.upload-header-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.upload-header-badge {
  display: inline-flex;
  align-self: flex-start;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(255, 223, 0, 0.15);
  color: var(--ym-yellow);
  border: 1px solid rgba(255, 223, 0, 0.28);
}

.upload-modal-body {
  padding: 18px 24px 22px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.upload-dropzone-pro {
  padding: 24px 18px;
  border-radius: 18px;
  border: 1.5px dashed rgba(255, 223, 0, 0.28);
  background: radial-gradient(circle at 50% 0%, rgba(255, 223, 0, 0.08) 0%, rgba(255, 255, 255, 0.02) 72%);
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.upload-dropzone-pro:hover,
.upload-dropzone-pro.dragover {
  border-color: rgba(255, 223, 0, 0.7);
  background: radial-gradient(circle at 50% 0%, rgba(255, 223, 0, 0.14) 0%, rgba(255, 255, 255, 0.04) 75%);
  transform: translateY(-1px);
}

.dropzone-icon-ring {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  margin: 0 auto 10px;
  background: rgba(255, 223, 0, 0.13);
  color: var(--ym-yellow);
  box-shadow: 0 8px 22px rgba(255, 223, 0, 0.14);
}

.upload-section-card {
  padding: 15px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.upload-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.upload-section-head span {
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
}

.upload-section-head small {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.48);
}

.upload-cover-picker {
  display: flex;
  align-items: center;
  gap: 10px;
}

.upload-cover-thumb {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
}

.clip-picker-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.clip-file-label {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.6);
  flex: 1;
  min-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.clip-trim-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.clip-preview-stage {
  position: relative;
  width: 100%;
  height: 196px;
  border-radius: 14px;
  overflow: hidden;
  background: #07070b;
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.clip-preview-stage video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.clip-duration-pill {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  background: rgba(10, 10, 16, 0.78);
  color: var(--ym-yellow);
  border: 1px solid rgba(255, 223, 0, 0.3);
  backdrop-filter: blur(8px);
}

.clip-timeline-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.clip-timeline {
  position: relative;
  width: 100%;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.06) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
  user-select: none;
  touch-action: none;
}

.clip-timeline-dim {
  position: absolute;
  top: 0;
  bottom: 0;
  background: rgba(5, 5, 10, 0.62);
  pointer-events: none;
  z-index: 1;
}

.clip-timeline-dim.left { left: 0; }
.clip-timeline-dim.right { right: 0; }

.clip-timeline-range {
  position: absolute;
  top: 0;
  bottom: 0;
  border-top: 2.5px solid var(--ym-yellow);
  border-bottom: 2.5px solid var(--ym-yellow);
  background: rgba(255, 223, 0, 0.13);
  cursor: grab;
  z-index: 2;
  touch-action: none;
}

.clip-timeline-range:active {
  cursor: grabbing;
}

.clip-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 16px;
  background: var(--ym-yellow);
  border: none;
  padding: 0;
  cursor: ew-resize;
  display: grid;
  place-items: center;
  touch-action: none;
}

.clip-handle::after {
  content: "";
  width: 3px;
  height: 16px;
  border-radius: 99px;
  background: rgba(0, 0, 0, 0.55);
}

.clip-handle.start {
  left: -1px;
  border-radius: 8px 0 0 8px;
}

.clip-handle.end {
  right: -1px;
  border-radius: 0 8px 8px 0;
}

.clip-timeline-playhead {
  position: absolute;
  top: 3px;
  bottom: 3px;
  width: 2.5px;
  border-radius: 2px;
  background: #ffffff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.85);
  pointer-events: none;
  z-index: 3;
  transform: translateX(-50%);
}

.clip-timeline-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
}

.clip-timeline-meta strong {
  color: #ffffff;
  font-variant-numeric: tabular-nums;
}

.clip-long-hint {
  font-size: 11px;
  font-weight: 600;
  color: var(--ym-yellow);
  background: rgba(255, 223, 0, 0.12);
  padding: 2px 8px;
  border-radius: 999px;
}

.upload-modal-footer {
  padding-top: 6px;
}

@media (max-width: 640px) {
  .upload-modal-header,
  .upload-modal-body {
    padding-left: 16px;
    padding-right: 16px;
  }
  .clip-sliders-grid {
    grid-template-columns: 1fr;
  }
  .clip-preview-stage {
    height: 168px;
  }
}

/* ---------- Admin Studio Moderation & Priority Lyrics ---------- */
.mod-tabs-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
}
.mod-tab-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 15px;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.68);
  background: transparent;
  transition: background 0.16s, color 0.16s;
}
.mod-tab-pill:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}
.mod-tab-pill.active {
  background: var(--ym-yellow);
  color: #000000;
}
.mod-tab-cnt {
  background: rgba(0, 0, 0, 0.2);
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}
.studio-prio-search-wrap input {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  width: 100%;
}
.studio-bound-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.studio-bound-chip {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.9);
}
.studio-bound-chip span {
  color: var(--ym-yellow);
  margin-left: 6px;
}
.studio-subs-list,
.studio-prio-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}
.studio-sub-card,
.studio-prio-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px 14px;
  flex-wrap: wrap;
}
.studio-sub-preview-img {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  object-fit: cover;
}
.studio-sub-preview-vid {
  width: 96px;
  height: 56px;
  border-radius: 8px;
  object-fit: cover;
  background: #000;
}
.studio-sub-actions {
  display: flex;
  gap: 8px;
}
@media (max-width: 720px) {
  .studio-bind-form {
    grid-template-columns: 1fr;
  }
}
