/* ==== Global background + overlay ==== */
html, body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: url('https://i.ibb.co/spg2fhJ1/photo-2025-06-15-20-46-26.jpg') center/cover no-repeat fixed !important;
  color: #eaeef3 !important;
  font-family: Arial, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(1200px 800px at 70% 10%, rgba(0,0,0,0), rgba(0,0,0,0.8)),
              linear-gradient(180deg, rgba(0,0,0,0.4), rgba(0,0,0,0.85));
  pointer-events: none;
  z-index: -1;
}

/* ==== Card / player container ==== */
.player-card {
  background: linear-gradient(180deg, #131922, #0c121a);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
  width: 95%;
  max-width: 460px;
  padding: 15px;
  box-sizing: border-box;
  margin: 15px auto;
}

/* ==== Top Header ==== */
.player-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.header-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none !important;
  box-shadow: none !important;
}
.player-header h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: bold;
  color: #eaf1f7;
  letter-spacing: 0.5px;
}

/* ==== Now Playing Area ==== */
.now-playing-container {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-bottom: 20px;
}

.cover-art {
  width: 75px;
  height: 75px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.06);
  object-fit: cover;
}

.track-info {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.song-title {
  color: #eaf1f7;
  font-size: 0.85rem;
  font-weight: bold;
  margin-bottom: 2px;
  white-space: normal;
  line-height: 1.2;
}

.song-artist {
  color: #9bd4ff;
  font-size: 0.75rem;
  font-weight: normal;
  margin-bottom: 10px;
  white-space: normal;
  line-height: 1.2;
}

/* ==== Progress Bar ==== */
.progress-container {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.time-text {
  font-size: 0.7rem;
  color: #b9c3cf;
}

.progress-bar-wrapper {
  flex-grow: 1;
  height: 6px;
  background: rgba(255,255,255,0.1);
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar {
  width: 0%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff004c,#ff7b00,#ffee00,#35e07b,#00d4ff,#8b00ff,#ff004c);
  background-size: 300% 100%;
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
  transition: width 0.5s linear;
  animation: progressEqualizer 10s linear infinite;
}

@keyframes progressEqualizer {
  0%   { background-position: 0% 0%; }
  25%  { background-position: 50% 0%; }
  50%  { background-position: 100% 0%; }
  75%  { background-position: 50% 0%; }
  100% { background-position: 0% 0%; }
}

.divider {
  border: 0;
  height: 1px;
  background: rgba(255,255,255,0.1);
  margin: 15px 0;
}

/* ==== Controls Area ==== */
.controls-container {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

/* ==== Buttons ==== */
.btn {
  appearance: none;
  background: linear-gradient(180deg, #2a3442, #1b2430);
  border: 1px solid rgba(255,255,255,0.08);
  color: #eaeef3;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.4), 0 6px 18px rgba(0,0,0,0.3);
  transition: transform .2s ease, filter .2s ease, box-shadow .3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn:hover { 
  transform: translateY(-1px); 
  filter: saturate(1.1); 
}

/* ==== Play button ==== */
.btn-play {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  font-size: 1rem;
}

/* ==== Play button RGB glow ==== */
.btn-play.playing {
  box-shadow: 0 0 8px #ff004c, 0 0 16px #ff7b00, 0 0 24px #ffee00, 0 0 32px #35e07b, 0 0 40px #00d4ff, 0 0 48px #8b00ff;
}

/* ==== Equalizer ==== */
.rgb-equalizer-container {
  flex-grow: 1;
}

#eq-canvas {
  width: 100%;
  height: 30px;
  background: rgba(20,20,30,0.3);
  border-radius: 6px;
  box-shadow: inset 0 0 4px rgba(0,0,0,0.4);
  display: block;
}

/* ==== Volume slider ==== */
.volume-container {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
}

.btn-vol {
  width: 40px;
  height: 35px;
  font-size: 0.9rem;
}

input[type="range"].form-range {
  -webkit-appearance: none;
  appearance: none;
  flex-grow: 1;
  height: 6px;
  border-radius: 999px;
  outline: none;
  background: linear-gradient(90deg, #ff004c,#ff7b00,#ffee00,#35e07b,#00d4ff,#8b00ff,#ff004c);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.2);
  box-shadow: 0 2px 6px rgba(0,0,0,0.35);
  cursor: pointer;
}

/* ==== Bottom Actions ==== */
.action-buttons {
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.action-btn {
  flex: 1;
  padding: 6px 4px;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.action-btn i {
  font-size: 0.8rem;
}

/* ==== Iframe Modal Area ==== */
.iframe-container {
  width: 95%;
  max-width: 460px;
  background: linear-gradient(180deg, #131922, #0c121a);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
  margin-bottom: 20px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.iframe-container.hidden {
  display: none;
}

.iframe-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
  background: rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  font-size: 0.85rem;
  font-weight: bold;
}

.close-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
}

.iframe-container iframe {
  width: 100%;
  min-height: 350px;
  border: none;
  display: block;
}