* {
  font-family: "Segoe UI", sans-serif;
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background: #0a0a0f;
  height: 100vh;
  overflow: hidden;
}

/* ── NAVBAR ─────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  border-radius: 0px 0px 20px 20px;
  justify-content: space-between;
  background: rgba(10, 10, 20, 0.65);
  backdrop-filter: blur(16px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.6);
  padding: 12px 28px;
  animation: fadeSlideDown 0.8s ease;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-icon {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  border-radius: 6px;
  object-fit: contain;
}

.navbar-brand span {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  background: linear-gradient(90deg, #a855f7, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.navbar-actions {
  display: flex;
  gap: 8px;
}

.nav-btn {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.65);
  transition:
    background 0.25s,
    color 0.25s,
    transform 0.2s;
}

.nav-btn svg {
  width: 17px;
  height: 17px;
}

.nav-btn:hover {
  background: rgba(168, 85, 247, 0.22);
  color: white;
  transform: scale(1.07);
}

@keyframes fadeSlideDown {
  from {
    opacity: 0;
    transform: translateY(-40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

h1 {
  display: none;
}

/* ── SLIDER ──────────────────────────────────── */
.slider {
  position: fixed;
  inset: 0;
  z-index: 1;
}

.slider-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  display: none;
  position: absolute;
  inset: 0;
}

.slide.active {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.55s ease;
}

/* ── ALBUM ART ──────────────────────────────── */
.album-art {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.album-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at center,
    transparent 25%,
    rgba(0, 0, 0, 0.55) 100%
  );
}

/* ── SLIDE CAPTION ───────────────────────────── */
.slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.88));
  color: white;
  padding: 120px 60px 108px;
  z-index: 5;
  animation: fadeIn 0.55s ease;
}

.song-genre {
  display: inline-block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #c084fc;
  background: rgba(168, 85, 247, 0.14);
  border: 1px solid rgba(168, 85, 247, 0.28);
  padding: 3px 11px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.slide-caption h3 {
  margin: 0 0 6px;
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
}

.slide-caption p {
  margin: 0;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.6);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.97);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ── SLIDE DOTS ──────────────────────────────── */
.slide-dots {
  position: absolute;
  bottom: 96px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 7px;
  list-style: none;
  padding: 0;
  margin: 0;
  z-index: 10;
}

.slide-dots li {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition:
    background 0.3s,
    width 0.3s,
    border-radius 0.3s;
}

.slide-dots li.active {
  background: #a855f7;
  width: 22px;
  border-radius: 4px;
}

/* ── PLAYER FOOTER ───────────────────────────── */
.player-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  border-radius: 20px 20px 0px 0px;
  background: rgba(10, 10, 20, 0.88);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 10px 24px 12px;
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  align-items: center;
  gap: 16px;
  animation: fadeSlideUp 0.8s ease;
}

/* Track Info */
.player-track-info {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.player-album-thumb {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  background: linear-gradient(135deg, #7b2ff7, #f107a3);
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(168, 85, 247, 0.4);
  transition: background-image 0.5s ease;
}

.player-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.player-song-title {
  color: white;
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-artist {
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.76rem;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.like-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.3);
  padding: 6px;
  border-radius: 50%;
  transition:
    color 0.25s,
    transform 0.2s;
  flex-shrink: 0;
}

.like-btn svg {
  width: 17px;
  height: 17px;
  display: block;
}

.like-btn:hover {
  color: #ec4899;
  transform: scale(1.18);
}
.like-btn.liked svg {
  fill: #ec4899;
  stroke: #ec4899;
}

/* Controls */
.player-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.player-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
}

.ctrl-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.55);
  padding: 8px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    color 0.2s,
    background 0.2s,
    transform 0.2s;
}

.ctrl-btn svg {
  width: 18px;
  height: 18px;
  display: block;
}

.ctrl-btn:hover {
  color: white;
  background: rgba(255, 255, 255, 0.08);
  transform: scale(1.08);
}

.play-btn {
  background: white !important;
  color: #0a0a0f !important;
  width: 42px;
  height: 42px;
  border-radius: 50% !important;
  box-shadow: 0 4px 16px rgba(168, 85, 247, 0.45);
}

.play-btn:hover {
  transform: scale(1.1) !important;
  box-shadow: 0 6px 22px rgba(168, 85, 247, 0.65) !important;
  background: white !important;
}

.play-btn svg {
  width: 20px;
  height: 20px;
}

.shuffle-btn.active,
.repeat-btn.active {
  color: #a855f7;
}

/* Progress bar */
.progress-bar-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.time-current,
.time-total {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.38);
  min-width: 32px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.progress-bar {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.13);
  border-radius: 2px;
  position: relative;
  cursor: pointer;
}

.progress-bar:hover .progress-thumb {
  opacity: 1;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #a855f7, #ec4899);
  border-radius: 2px;
  transition: width 0.1s linear;
  pointer-events: none;
}

.progress-thumb {
  position: absolute;
  top: 50%;
  left: 0%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: white;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}

/* Volume */
.player-volume {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.volume-icon-btn svg {
  width: 20px;
  height: 20px;
}

.volume-bar {
  width: 90px;
  height: 4px;
  background: rgba(255, 255, 255, 0.13);
  border-radius: 2px;
  position: relative;
  cursor: pointer;
}

.volume-fill {
  height: 100%;
  background: linear-gradient(90deg, #a855f7, #ec4899);
  border-radius: 2px;
  pointer-events: none;
}

.volume-thumb {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: white;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}

.volume-bar:hover .volume-thumb {
  opacity: 1;
}

/* ── RESPONSIVE ──────────────────────────────── */
@media (max-width: 768px) {
  .navbar {
    padding: 8px 16px;
  }

  .navbar-brand span {
    font-size: 1rem;
  }

  .player-footer {
    grid-template-columns: auto 1fr;
    padding: 10px 16px 16px;
    gap: 12px;
  }

  .player-track-info {
    justify-content: flex-start;
  }

  .player-controls {
    align-items: flex-end;
  }

  .player-volume {
    display: none;
  }

  .slide-dots {
    bottom: 90px;
  }

  .slide-caption {
    padding: 60px 24px 110px;
  }

  .slide-caption h3 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .navbar-brand span {
    font-size: 0.9rem;
  }

  .brand-icon {
    width: 36px;
    height: 36px;
  }

  .slide-dots {
    bottom: 180px;
  }

  .slide-caption {
    padding: 40px 16px 200px;
  }

  .slide-caption h3 {
    font-size: 1.4rem;
  }

  .slide-caption p {
    font-size: 0.88rem;
  }

  .song-genre {
    font-size: 0.65rem;
  }

  .player-footer {
    padding: 8px 12px 14px;
    gap: 3px;
  }

  .ctrl-btn {
    padding: 6px;
  }

  .play-btn {
    width: 38px;
    height: 38px;
  }

  .play-btn svg {
    width: 18px;
    height: 18px;
  }

  .player-song-title {
    font-size: 0.8rem;
  }

  .player-artist {
    font-size: 0.7rem;
  }

  .player-album-thumb {
    width: 38px;
    height: 38px;
  }

  .progress-bar-wrap {
    gap: 6px;
  }

  .time-current,
  .time-total {
    font-size: 0.62rem;
    min-width: 26px;
  }
}
