/* ═══════════════════════════════════════════════
   HERO LAYOUT
═══════════════════════════════════════════════ */
.hero {
  min-height: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-h);
}

.hero-bg-photo {
  position: absolute; inset: 0;
  background-image: url('https://psimedia.ru/media/images/hero-bg.webp');
  background-size: cover;
  background-position: center left;
  z-index: 0;
}
.hero-bg-photo::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(
    to right,
    rgba(10,8,18,0.35) 0%,
    rgba(10,8,18,0.5) 30%,
    rgba(10,8,18,0.93) 58%,
    rgba(10,8,18,0.99) 100%
  );
}

.hero-left {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; justify-content: center;
  padding: 48px 40px 48px var(--section-px);
  min-height: calc(100vh - var(--nav-h));
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(240,180,41,.12);
  border: 0.5px solid rgba(240,180,41,.3);
  border-radius: 20px; padding: 5px 14px;
  font-size: 12px; color: var(--gold); font-weight: 500;
  margin-bottom: 22px; width: fit-content;
}
.hero-badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold); animation: badge-pulse 2s infinite;
}
@keyframes badge-pulse { 0%,100%{opacity:1} 50%{opacity:.4} }

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 44px);
  font-weight: 700; line-height: 1.15;
  letter-spacing: -0.5px; margin-bottom: 16px; color: #fff;
}
.hero h1 .gold { color: var(--gold); }
.hero-sub {
  font-size: 14px; color: rgba(255,255,255,0.58);
  line-height: 1.7; margin-bottom: 24px; max-width: 380px;
}
.hero-perks { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.hero-perk { display: flex; align-items: center; gap: 10px; font-size: 13px; color: rgba(255,255,255,0.6); }
.hero-perk-icon {
  width: 28px; height: 28px; border-radius: 6px;
  background: rgba(255,255,255,0.07);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; flex-shrink: 0;
}
.hero-perk strong { color: #fff; font-weight: 600; }
.hero-btns { display: flex; gap: 10px; flex-wrap: wrap; }

.hero-right {
  position: relative; z-index: 1;
  display: flex; align-items: flex-start; justify-content: center;
  padding: 16px 24px 16px 8px;
  align-self: start;
}

.hp-widget {
  width: 100%;
  background: rgba(11,9,22,0.9);
  backdrop-filter: blur(28px); -webkit-backdrop-filter: blur(28px);
  border: 0.5px solid rgba(255,255,255,0.1);
  border-radius: 20px; overflow: visible;
}

/* ═══════════════════════════════════════════════
   HERO PLAYER WIDGET
═══════════════════════════════════════════════ */

/* Header */
.hp-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px 10px;
  border-bottom: 0.5px solid rgba(255,255,255,0.06);
}
.hp-header-title { font-family: var(--font-display); font-size: 13px; font-weight: 700; color: #fff; }
.hp-header-sub { font-size: 11px; color: var(--muted); margin-top: 2px; display: flex; align-items: center; gap: 4px; }
.hp-header-sub-dot { color: var(--accent2); }
.hp-heart { background: none; border: none; color: rgba(255,255,255,0.25); font-size: 15px; cursor: pointer; transition: color .2s; line-height: 1; }
.hp-heart:hover { color: #f87171; }

.hp-main-area { display: flex; position: relative; }
.hp-player-area { flex: 1; min-width: 0; position: relative; overflow: visible; }

/* Body: cover | info | canvas-circle */
.hp-body {
  display: grid;
  grid-template-columns: 110px 1fr 110px;
  min-height: 110px;
  max-height: 110px;
}

.hp-cover {
  width: 110px; height: 110px;
  position: relative; overflow: hidden; flex-shrink: 0;
  background: linear-gradient(135deg, #1e1040, #0d0825);
}
.hp-cover img {
  width: 100%; height: 100%; object-fit: cover;
  display: none; position: absolute; inset: 0;
}
.hp-cover img.loaded { display: block; }
.hp-cover-icon {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; opacity: 0.5;
}
.hp-cover-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, transparent 50%, rgba(11,9,22,0.5));
}

.hp-info {
  padding: 12px 10px 8px;
  display: flex; flex-direction: column; gap: 4px; min-width: 0;
  overflow: hidden;
}
.hp-genre { font-size: 11px; color: var(--accent2); font-weight: 600; letter-spacing: 0.5px; }
.hp-title {
  font-size: 14px; font-weight: 700; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.3;
}
.hp-tags { display: flex; gap: 5px; flex-wrap: nowrap; overflow: hidden; margin-top: 2px; }
.hp-tag {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 10px; padding: 2px 8px; border-radius: 20px;
  background: rgba(124,92,252,.14); border: 0.5px solid rgba(124,92,252,.25);
  color: var(--accent2); white-space: nowrap; flex-shrink: 0;
}
.hp-desc { font-size: 11px; color: rgba(255,255,255,0.3); }

/* Canvas circle */
.hp-circle-wrap {
  width: 110px; display: flex; align-items: center; justify-content: center;
  padding: 8px; flex-shrink: 0;
  background: transparent;
}
.hp-circle-canvas-wrap {
  position: relative;
  width: 90px; height: 90px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  background: transparent;
}
#hp-circle-canvas {
  position: absolute;
  top: 0; left: 0;
  width: 90px; height: 90px;
  z-index: 1;
  pointer-events: none;
  display: block;
  border-radius: 50%;
}
.hp-circle-btn {
  position: relative; z-index: 2;
  width: 54px; height: 54px; border-radius: 50%;
  background: rgba(14,10,30,0.9);
  border: 1.5px solid rgba(255,255,255,0.15);
  color: #fff; font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: transform .15s, background .2s;
  flex-shrink: 0;
}
.hp-circle-btn:hover { background: rgba(124,92,252,0.4); transform: scale(1.06); }

/* Waveform */
.hp-wave-section { padding: 8px 14px 4px; }
.hp-waveform-wrap {
  position: relative; height: 40px; cursor: pointer;
  border-radius: 4px; overflow: hidden;
}
.hp-waveform-cursor {
  position: absolute; top: 0; bottom: 0; width: 2px;
  background: rgba(255,255,255,0.8); border-radius: 1px;
  pointer-events: none; left: 0; transition: left .1s linear;
  box-shadow: 0 0 5px rgba(255,255,255,0.5);
}
.hp-wave-times {
  display: flex; justify-content: space-between;
  font-size: 10px; color: var(--muted); padding: 4px 0 0;
}

/* EQ section — compact */
.hp-eq-section { padding: 0 14px 8px; }
.hp-eq-visualizer {
  width: 100%; height: 36px; border-radius: 4px;
  overflow: hidden; background: rgba(0,0,0,0.2);
  margin-bottom: 6px; cursor: pointer; display: block;
}
.hp-eq-controls {
  display: flex; align-items: flex-end; gap: 6px;
}
.hp-eq-band {
  display: flex; flex-direction: column; align-items: center; gap: 2px; flex: 1;
}
.hp-eq-band label { font-size: 9px; color: var(--muted); white-space: nowrap; }
.hp-eq-slider {
  writing-mode: vertical-lr; direction: rtl;
  width: 3px; height: 36px;
  appearance: none; background: rgba(255,255,255,0.1);
  border-radius: 2px; outline: none; cursor: pointer;
}
.hp-eq-slider::-webkit-slider-thumb {
  appearance: none; width: 10px; height: 10px;
  border-radius: 50%; background: var(--accent2); cursor: pointer;
}
.hp-eq-val { font-size: 9px; color: var(--accent2); min-width: 18px; text-align: center; }

/* Controls row — single line */
.hp-controls {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 14px 8px; gap: 6px; flex-wrap: wrap;
}
.hp-ctrl-left { display: flex; align-items: center; gap: 5px; flex-wrap: nowrap; }
.hp-ctrl-right { display: flex; align-items: center; gap: 5px; flex-wrap: nowrap; }

.hp-vol { display: flex; align-items: center; gap: 4px; }
.hp-vol-icon { color: rgba(255,255,255,0.35); flex-shrink: 0; }
.hp-vol-slider {
  width: 48px; height: 3px; background: rgba(255,255,255,0.12);
  border-radius: 2px; appearance: none; cursor: pointer; outline: none;
}
.hp-vol-slider::-webkit-slider-thumb {
  appearance: none; width: 10px; height: 10px;
  border-radius: 50%; background: var(--accent2); cursor: pointer;
}

/* EQ Presets — horizontal chips */
.hp-eq-presets {
  padding: 4px 14px 10px;
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.hp-eq-presets-label { font-size: 10px; color: var(--muted); flex-shrink: 0; }
.hp-eq-preset-chips { display: flex; gap: 4px; flex-wrap: wrap; }
.eq-preset {
  padding: 3px 9px; border-radius: 10px; font-size: 10px; font-weight: 500;
  border: 0.5px solid rgba(255,255,255,0.15);
  background: transparent; color: var(--muted2); cursor: pointer; transition: all .2s;
}
.eq-preset:hover { border-color: var(--accent); color: var(--accent2); }
.eq-preset.active { background: var(--accent); color: #fff; border-color: var(--accent); }

.hp-cover {
  width: 120px; height: 120px;
  position: relative; overflow: hidden; flex-shrink: 0;
  background: linear-gradient(135deg, #1e1040, #0d0825);
}
.hp-cover img {
  width: 100%; height: 100%; object-fit: cover;
  display: none; position: absolute; inset: 0;
}
.hp-cover img.loaded { display: block; }
.hp-cover-icon {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 36px; opacity: 0.5;
}
.hp-cover-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, transparent 50%, rgba(11,9,22,0.5));
}

.hp-info {
  padding: 14px 10px 10px;
  display: flex; flex-direction: column; gap: 5px; min-width: 0;
}
.hp-genre { font-size: 11px; color: var(--accent2); font-weight: 600; letter-spacing: 0.5px; }
.hp-title {
  font-size: 14px; font-weight: 700; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.3;
}
.hp-tags { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 2px; }
.hp-tag {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 10px; padding: 2px 8px; border-radius: 20px;
  background: rgba(124,92,252,.14); border: 0.5px solid rgba(124,92,252,.25);
  color: var(--accent2);
}
.hp-desc { font-size: 11px; color: rgba(255,255,255,0.35); margin-top: 2px; }

/* Canvas circle — replaces SVG */
.hp-circle-wrap {
  width: 110px; display: flex; align-items: center; justify-content: center;
  padding: 10px;
}
.hp-circle-canvas-wrap {
  position: relative; width: 90px; height: 90px;
  display: flex; align-items: center; justify-content: center;
}
#hp-circle-canvas {
  position: absolute; inset: 0; width: 90px; height: 90px;
}
.hp-circle-btn {
  position: relative; z-index: 1;
  width: 54px; height: 54px; border-radius: 50%;
  background: rgba(20,16,40,0.9);
  border: 1.5px solid rgba(255,255,255,0.15);
  color: #fff; font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: transform .15s, background .15s;
}
.hp-circle-btn:hover { background: rgba(124,92,252,0.3); transform: scale(1.06); }

/* Waveform */
.hp-wave-section { padding: 10px 16px 4px; }
.hp-waveform-wrap {
  position: relative; height: 44px; cursor: pointer;
  border-radius: 4px; overflow: hidden;
}
.hp-waveform-cursor {
  position: absolute; top: 0; bottom: 0; width: 2px;
  background: rgba(255,255,255,0.8); border-radius: 1px;
  pointer-events: none; left: 0; transition: left .1s linear;
  box-shadow: 0 0 6px rgba(255,255,255,0.5);
}
.hp-wave-times {
  display: flex; justify-content: space-between;
  font-size: 11px; color: var(--muted); padding: 5px 0 0;
}

/* Equalizer */
.hp-eq-section { padding: 0 16px 12px; }
.hp-eq-visualizer {
  width: 100%; height: 44px; border-radius: 5px;
  overflow: hidden; background: rgba(0,0,0,0.25);
  margin-bottom: 8px; cursor: pointer; display: block;
}
.hp-eq-controls {
  display: flex; align-items: flex-end; gap: 8px;
}
.hp-eq-band {
  display: flex; flex-direction: column; align-items: center; gap: 3px; flex: 1;
}
.hp-eq-band label { font-size: 9px; color: var(--muted); white-space: nowrap; }
.hp-eq-slider {
  writing-mode: vertical-lr; direction: rtl;
  width: 3px; height: 44px;
  appearance: none; background: rgba(255,255,255,0.1);
  border-radius: 2px; outline: none; cursor: pointer;
}
.hp-eq-slider::-webkit-slider-thumb {
  appearance: none; width: 11px; height: 11px;
  border-radius: 50%; background: var(--accent2); cursor: pointer;
}
.hp-eq-val { font-size: 9px; color: var(--accent2); min-width: 20px; text-align: center; }

/* Controls */
.hp-controls {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 16px 14px; gap: 8px;
}
.hp-ctrl-left { display: flex; align-items: center; gap: 6px; }
.hp-ctrl-right { display: flex; align-items: center; gap: 6px; }

.hp-vol { display: flex; align-items: center; gap: 5px; }
.hp-vol-icon { color: rgba(255,255,255,0.35); flex-shrink: 0; }
.hp-vol-slider {
  width: 52px; height: 3px; background: rgba(255,255,255,0.12);
  border-radius: 2px; appearance: none; cursor: pointer; outline: none;
}
.hp-vol-slider::-webkit-slider-thumb {
  appearance: none; width: 10px; height: 10px;
  border-radius: 50%; background: var(--accent2); cursor: pointer;
}
.hp-ctrl-btn {
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,0.07); border: none;
  color: rgba(255,255,255,0.55); font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all .2s; flex-shrink: 0;
}
.hp-ctrl-btn:hover { color: #fff; background: rgba(255,255,255,0.14); }
.hp-ctrl-btn.active { color: var(--accent2); background: rgba(124,92,252,0.15); }

.hp-btn-order {
  background: var(--accent); color: #fff; border: none;
  border-radius: var(--radius-sm); padding: 8px 14px;
  font-size: 12px; font-weight: 600; cursor: pointer;
  transition: all .2s; white-space: nowrap;
}
.hp-btn-order:hover { background: #6a4ce8; }

.hp-btn-tg {
  background: rgba(36,177,205,0.12); color: #24b1cd;
  border: 0.5px solid rgba(36,177,205,0.25);
  border-radius: var(--radius-sm); padding: 8px 12px;
  font-size: 12px; cursor: pointer; transition: all .2s;
  display: flex; align-items: center; gap: 5px; white-space: nowrap;
}
.hp-btn-tg:hover { background: rgba(36,177,205,0.22); }

/* EQ Presets */
.hp-eq-presets {
  padding: 6px 16px 10px;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.hp-eq-presets-label { font-size: 10px; color: var(--muted); flex-shrink: 0; }
.hp-eq-preset-chips { display: flex; gap: 5px; flex-wrap: wrap; }
.eq-preset {
  padding: 3px 10px; border-radius: 12px; font-size: 10px; font-weight: 500;
  border: 0.5px solid rgba(255,255,255,0.15);
  background: transparent; color: var(--muted2); cursor: pointer;
  transition: all .2s;
}
.eq-preset:hover { border-color: var(--accent); color: var(--accent2); }
.eq-preset.active { background: var(--accent); color: #fff; border-color: var(--accent); }

.hp-load-btn {
  background: rgba(45,212,191,0.1); color: #2dd4bf;
  border: 0.5px solid rgba(45,212,191,0.25);
  border-radius: var(--radius-sm); padding: 8px 10px;
  font-size: 12px; cursor: pointer; transition: all .2s;
  display: flex; align-items: center; gap: 4px; white-space: nowrap;
}
.hp-load-btn:hover { background: rgba(45,212,191,0.2); }
#hp-file-input { display: none; }
.hp-tracks-col {
  width: 180px; flex-shrink: 0;
  border-left: 0.5px solid rgba(255,255,255,0.06);
  display: flex; flex-direction: column;
  overflow: hidden;
  max-height: 520px;
}
.hp-track-items {
  flex: 1;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(124,92,252,0.3) transparent;
}
.hp-track-items::-webkit-scrollbar { width: 3px; }
.hp-track-items::-webkit-scrollbar-thumb { background: rgba(124,92,252,0.4); border-radius: 2px; }
.hp-track-items::-webkit-scrollbar-track { background: transparent; }
.hp-tracks-header {
  padding: 12px 12px 8px;
  font-size: 10px; color: var(--muted);
  font-weight: 600; letter-spacing: 0.8px; text-transform: uppercase;
  display: flex; align-items: center; gap: 5px;
  border-bottom: 0.5px solid rgba(255,255,255,0.06);
}
.hp-track-items { flex: 1; overflow-y: auto; }
.hp-track-row {
  display: flex; align-items: center; gap: 7px;
  padding: 8px 10px; cursor: pointer;
  border-bottom: 0.5px solid rgba(255,255,255,0.04);
  transition: background .15s;
}
.hp-track-row:hover { background: rgba(255,255,255,0.04); }
.hp-track-row.active { background: rgba(124,92,252,0.1); }
.hp-track-row-cover {
  width: 34px; height: 34px; border-radius: 5px; flex-shrink: 0;
  overflow: hidden; background: linear-gradient(135deg, #1e1040, #0d0825);
  display: flex; align-items: center; justify-content: center; font-size: 13px;
  position: relative;
}
.hp-track-row-cover img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: none; border-radius: 5px;
}
.hp-track-row-cover img.loaded { display: block; }
.hp-track-row-info { flex: 1; min-width: 0; }
.hp-track-row-name { font-size: 11px; font-weight: 500; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hp-track-row-meta { font-size: 10px; color: var(--muted); margin-top: 1px; }
.hp-track-row-wave {
  display: flex; align-items: center; gap: 1px; height: 10px; margin-top: 2px;
}
.hp-track-row-wave span { width: 2px; border-radius: 1px; background: rgba(124,92,252,0.45); display: inline-block; }
.hp-track-row-play {
  width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
  background: rgba(124,92,252,.18); border: none;
  color: var(--accent2); font-size: 8px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all .2s;
}
.hp-track-row-play:hover { background: var(--accent); color: #fff; }
.hp-tracks-footer {
  padding: 8px 12px;
  border-top: 0.5px solid rgba(255,255,255,0.06);
  font-size: 10px; color: var(--accent2);
  cursor: pointer; text-align: right;
}
.hp-tracks-footer:hover { color: #fff; }

/* ═══════════════════════════════════════════════
   STATS
═══════════════════════════════════════════════ */
.stats-row {
  display: grid; grid-template-columns: repeat(4,1fr);
  border-top: 0.5px solid var(--border);
  border-bottom: 0.5px solid var(--border);
  background: var(--bg2); position: relative; z-index: 2;
}
.stat { padding: 18px 24px; text-align: center; border-right: 0.5px solid var(--border); }
.stat:last-child { border-right: none; }
.stat-num { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--gold); margin-bottom: 4px; }
.stat-lbl { font-size: 11px; color: var(--muted); }

/* ═══════════════════════════════════════════════
   STICKY PLAYER
═══════════════════════════════════════════════ */
.sticky-player {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
  background: rgba(10,8,18,0.97);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-top: 0.5px solid rgba(255,255,255,0.1);
  padding: 10px 32px;
  display: none; align-items: center; gap: 16px;
  transform: translateY(100%); transition: transform 0.3s ease;
}
.sticky-player.visible { display: flex; transform: translateY(0); }
.sticky-cover {
  width: 42px; height: 42px; border-radius: 7px; flex-shrink: 0;
  overflow: hidden; background: linear-gradient(135deg,#1e1040,#0d0825);
  display: flex; align-items: center; justify-content: center; font-size: 16px;
  position: relative;
}
.sticky-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: none; }
.sticky-cover img.loaded { display: block; }
.sticky-info { min-width: 0; flex-shrink: 0; width: 150px; }
.sticky-title { font-size: 12px; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-genre { font-size: 10px; color: var(--muted); }
.sticky-controls { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.sticky-wave { flex: 1; position: relative; height: 30px; cursor: pointer; }
.sticky-progress-line {
  position: absolute; top: 0; bottom: 0; width: 2px;
  background: #fff; pointer-events: none; left: 0;
  box-shadow: 0 0 4px rgba(255,255,255,0.5); transition: left .1s linear;
}
.sticky-times { display: flex; gap: 5px; font-size: 10px; color: var(--muted); flex-shrink: 0; }

/* ═══════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════ */
@media (max-width: 1200px) {
  .hp-tracks-col { display: flex; width: 160px; }
}
@media (max-width: 900px) {
  .hp-tracks-col { display: none; }
}
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-left { padding: 48px var(--section-px) 24px; }
  .hero-right { padding: 0 var(--section-px) 48px; }
  .hero-bg-photo::after {
    background: linear-gradient(to bottom, rgba(10,8,18,0.3), rgba(10,8,18,0.97) 65%);
  }
}
@media (max-width: 640px) {
  .hero h1 { font-size: 24px; }
  .hero-btns { flex-direction: column; }
  .hero-btns .btn { justify-content: center; }
  .hp-body { grid-template-columns: 90px 1fr 90px; }
  .hp-cover { width: 90px; height: 90px; }
  .hp-circle-wrap { width: 90px; }
  .hp-circle-canvas-wrap { width: 74px; height: 74px; }
  #hp-circle-canvas { width: 74px; height: 74px; }
  .hp-circle-btn { width: 44px; height: 44px; font-size: 16px; }
  .stats-row { grid-template-columns: repeat(2,1fr); }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(3) { border-top: 0.5px solid var(--border); }
  .sticky-player { padding: 8px 16px; gap: 10px; }
  .sticky-wave { display: none; }
  .sticky-times { display: none; }
}

/* ── Popup panels drop DOWN from bottom-bar ── */
.hp-popup-panel {
  position: absolute;
  left: 0; right: 0;
  top: calc(100% + 2px);
  background: rgba(14,12,26,0.97);
  backdrop-filter: blur(20px);
  border: 0.5px solid rgba(124,92,252,0.25);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  z-index: 100;
  padding: 12px 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  display: flex; flex-direction: column; gap: 10px;
}
.hp-effects-row {
  display: flex; align-items: flex-start; gap: 16px; flex-wrap: wrap;
}
.hp-effect-group {
  display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0;
}
.hp-effect-label {
  font-size: 10px; color: var(--muted);
  display: flex; align-items: center; gap: 4px;
}
.hp-effect-label span { color: var(--accent2); }
.hp-speed-chips { display: flex; gap: 3px; flex-wrap: wrap; }
.hp-speed-chip {
  padding: 2px 7px; border-radius: 8px; font-size: 10px;
  border: 0.5px solid rgba(255,255,255,0.12);
  background: transparent; color: var(--muted2); cursor: pointer; transition: all .2s;
}
.hp-speed-chip:hover { border-color: var(--accent); color: var(--accent2); }
.hp-speed-chip.active { background: rgba(124,92,252,0.2); color: var(--accent2); border-color: var(--accent); }
.hp-stereo-indicator {
  font-size: 10px; color: var(--accent2); letter-spacing: 2px;
}
.hp-sleep-countdown { font-size: 10px; color: var(--gold); }
.hp-fx-slider {
  width: 100%; height: 3px; background: rgba(255,255,255,0.1);
  border-radius: 2px; appearance: none; cursor: pointer; outline: none;
}
.hp-fx-slider::-webkit-slider-thumb {
  appearance: none; width: 10px; height: 10px;
  border-radius: 50%; background: var(--accent2); cursor: pointer;
}

/* ═══ METADATA PANEL ═══ */
.hp-meta-toggle {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 14px 8px;
  border-top: 0.5px solid rgba(255,255,255,0.06);
  gap: 8px;
}
.hp-marquee-wrap {
  flex: 1; overflow: hidden; min-width: 0;
}
.hp-marquee-text {
  display: inline-block;
  font-size: 11px; color: var(--muted);
  white-space: nowrap;
  animation: marquee-scroll 18s linear infinite;
  padding-right: 40px;
}
@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.hp-meta-right {
  display: flex; align-items: center; gap: 8px; flex-shrink: 0;
}
.hp-bpm-badge {
  font-size: 10px; color: var(--gold);
  background: rgba(240,180,41,0.1);
  border: 0.5px solid rgba(240,180,41,0.2);
  border-radius: 8px; padding: 2px 8px;
}
.hp-meta-btn {
  display: flex; align-items: center; gap: 4px;
  font-size: 10px; color: var(--muted2);
  background: rgba(255,255,255,0.05);
  border: 0.5px solid rgba(255,255,255,0.1);
  border-radius: 8px; padding: 3px 10px;
  cursor: pointer; transition: all .2s;
}
.hp-meta-btn:hover { color: #fff; border-color: var(--accent); }
.hp-meta-btn.open { color: var(--accent2); border-color: var(--accent); }

.hp-meta-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 6px 16px;
}
.hp-meta-row {
  display: flex; flex-direction: column; gap: 1px;
}
.hp-meta-key { font-size: 9px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; }
.hp-meta-val { font-size: 11px; color: rgba(255,255,255,0.8); }
.hp-meta-lyrics { margin-top: 10px; border-top: 0.5px solid rgba(255,255,255,0.06); padding-top: 10px; }
.hp-meta-lyrics-title { font-size: 10px; color: var(--muted); margin-bottom: 6px; }
.hp-meta-lyrics-text { font-size: 12px; color: rgba(255,255,255,0.7); line-height: 1.7; max-height: 120px; overflow-y: auto; }

/* ═══ BOTTOM BAR ═══ */
.hp-bottom-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 5px 14px 8px; gap: 8px;
  border-top: 0.5px solid rgba(255,255,255,0.06);
  position: relative;
}
.hp-bottom-bar-right { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }

/* ── Sidebar genre filter ── */
.hp-sidebar-filter {
  padding: 6px 8px;
  display: flex; flex-wrap: wrap; gap: 3px;
  border-bottom: 0.5px solid rgba(255,255,255,0.06);
}
.hp-sf-btn {
  font-size: 9px; padding: 2px 6px; border-radius: 8px;
  border: 0.5px solid rgba(255,255,255,0.12);
  background: transparent; color: var(--muted2);
  cursor: pointer; transition: all .15s; white-space: nowrap;
}
.hp-sf-btn:hover { border-color: var(--accent); color: var(--accent2); }
.hp-sf-btn.active { background: rgba(124,92,252,0.2); color: var(--accent2); border-color: var(--accent); }

/* ── Genre dropdown ── */
.hp-genre-dropdown-wrap {
  position: relative;
}
.hp-genre-dropdown {
  position: absolute; top: calc(100% + 4px); right: 0;
  background: rgba(14,12,22,0.97);
  backdrop-filter: blur(20px);
  border: 0.5px solid rgba(124,92,252,0.3);
  border-radius: var(--radius-sm);
  padding: 10px; z-index: 50;
  min-width: 200px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.hp-genre-dropdown-inner {
  display: flex; flex-wrap: wrap; gap: 4px;
}
.hp-gd-chip {
  font-size: 10px; padding: 3px 8px; border-radius: 8px;
  border: 0.5px solid rgba(255,255,255,0.12);
  background: transparent; color: var(--muted2);
  cursor: pointer; transition: all .15s; white-space: nowrap;
}
.hp-gd-chip:hover { border-color: var(--accent); color: var(--accent2); }
.hp-gd-chip.active { background: rgba(124,92,252,0.2); color: var(--accent2); border-color: var(--accent); }

/* ── Crystal button ── */
.hp-crystal-btn {
  display: flex; align-items: center; gap: 5px;
  padding: 5px 12px; border-radius: 20px; height: 28px;
  background: linear-gradient(135deg, rgba(124,92,252,0.2), rgba(192,132,252,0.15));
  border: 0.5px solid rgba(124,92,252,0.5);
  color: #c084fc; font-size: 11px; font-weight: 600;
  cursor: pointer; transition: all .2s;
  white-space: nowrap;
}
.hp-crystal-btn:hover {
  background: linear-gradient(135deg, rgba(124,92,252,0.35), rgba(192,132,252,0.25));
  border-color: #c084fc;
  box-shadow: 0 0 12px rgba(124,92,252,0.4);
}
.hp-crystal-btn svg { animation: crystal-spin 4s linear infinite; }
@keyframes crystal-spin { to { transform: rotate(360deg); } }
