/* ═══════════════════════════════════════
   EXPANDED PLAYER OVERLAY
═══════════════════════════════════════ */
.exp-overlay {
  position: fixed;
  inset: 0;
  z-index: 800;
  background: var(--bg);
  display: none;
  flex-direction: column;
  align-items: center;
  overflow: hidden;

  /* Slide up from bottom */
  transform: translateY(100%);
  transition: transform .4s cubic-bezier(0.4, 0, 0.2, 1), opacity .3s ease;
  opacity: 0;
}
.exp-overlay.open {
  display: flex;
  transform: translateY(0);
  opacity: 1;
}

/* Blurred album art as background */
.exp-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--exp-bg-img, none);
  background-size: cover;
  background-position: center;
  filter: blur(60px) saturate(1.4);
  opacity: 0.18;
  z-index: 0;
  pointer-events: none;
}

.exp-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 28px 0;
  overflow: hidden;
}

/* ── Close button ── */
.exp-close {
  align-self: flex-start;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 18px;
  cursor: pointer;
  padding: 4px 8px 4px 0;
  transition: color .2s;
  margin-bottom: 12px;
}
.exp-close:hover { color: var(--text); }

/* ── Cover art ── */
.exp-cover-wrap {
  width: 240px;
  height: 240px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  flex-shrink: 0;
  transition: transform .3s ease;
}
.exp-cover-wrap:hover { transform: scale(1.02); }
.exp-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Track meta ── */
.exp-meta {
  text-align: center;
  margin-top: 22px;
  width: 100%;
}
.exp-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  letter-spacing: 2px;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.exp-artist {
  font-size: 12px;
  color: var(--muted);
  font-family: 'Space Mono', monospace;
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Seek bar ── */
.exp-seek-wrap {
  width: 100%;
  margin-top: 24px;
}
.exp-seek-track {
  position: relative;
  height: 4px;
  background: var(--surface3);
  border-radius: 2px;
  cursor: pointer;
}
.exp-seek-fill {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  background: var(--accent2);
  border-radius: 2px;
  width: 0%;
  pointer-events: none;
  transition: width .1s linear;
}
.exp-seek-input {
  position: absolute;
  inset: -10px 0;
  width: 100%;
  opacity: 0;
  cursor: pointer;
  margin: 0;
}
.exp-time-row {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  color: var(--muted);
}

/* ── Controls ── */
.exp-controls {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 20px;
}
.exp-ctrl-btn {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color .2s, transform .15s;
  padding: 6px;
}
.exp-ctrl-btn:hover {
  color: var(--text);
  transform: scale(1.12);
}
.exp-ctrl-btn.active { color: var(--accent2); }
.exp-ctrl-play {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--text);
  color: var(--bg) !important;
  font-size: 20px;
  flex-shrink: 0;
}
.exp-ctrl-play:hover {
  background: #eee;
  transform: scale(1.06) !important;
}

/* ── Lyrics panel ── */
.exp-lyrics-panel {
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  margin-top: 28px;
  padding-bottom: 24px;
}
.exp-lyrics-label {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 13px;
  letter-spacing: 3px;
  color: var(--muted);
  margin-bottom: 12px;
  text-align: center;
}
.exp-lyrics-body {
  flex: 1;
  overflow-y: auto;
  padding: 0 4px 20px;
  scroll-behavior: smooth;
}
.exp-lyrics-body::-webkit-scrollbar { width: 3px; }
.exp-lyrics-body::-webkit-scrollbar-thumb { background: var(--surface3); border-radius: 2px; }

.exp-lyric-line {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  text-align: center;
  padding: 8px 12px;
  border-radius: 8px;
  line-height: 1.5;
  transition: color .25s ease, transform .25s ease, opacity .25s ease;
  cursor: default;
  opacity: 0.45;
}
.exp-lyric-line.active {
  color: var(--text);
  font-size: 17px;
  opacity: 1;
  transform: scale(1.04);
}
.exp-lyrics-empty {
  text-align: center;
  color: var(--muted);
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  padding: 40px 0;
  opacity: 0.6;
}

/* ── Mobile tweaks ── */
.is-mobile .exp-inner          { padding: 16px 18px 0; }
.is-mobile .exp-cover-wrap     { width: 190px; height: 190px; }
.is-mobile .exp-title          { font-size: 22px; }
.is-mobile .exp-controls       { gap: 18px; }
.is-mobile .exp-ctrl-play      { width: 46px; height: 46px; font-size: 18px; }
.is-mobile .exp-lyric-line     { font-size: 14px; }
.is-mobile .exp-lyric-line.active { font-size: 16px; }
