:root {
  --primary-color: #ffffff;
  --secondary-color: #b3b3b3;
  --accent-color: #ff3b3b;
  --bg-color: #0b0b0b;
  --glass-bg: rgba(20, 20, 20, 0.45);
  --glass-border: rgba(255, 255, 255, 0.08);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body, html {
  height: 100%;
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-color);
  color: var(--primary-color);
  overflow: hidden;
}

.background-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('assets/bg-no-text.jpg');
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.blur-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
}

.player-container {
  position: relative;
  z-index: 10;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px 20px 30px 20px;
}

.player-header {
  text-align: center;
  margin-top: 20px;
}

.subtitle {
  font-size: 0.75rem;
  letter-spacing: 2px;
  color: var(--secondary-color);
  margin-bottom: 8px;
  text-transform: uppercase;
  font-weight: 500;
}

.title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 4px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.artist {
  font-size: 1.1rem;
  color: var(--secondary-color);
  font-weight: 300;
}

.cover-art {
  margin: 10px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  /* Físicamente fuerza un cuadrado inquebrantable basado en las proporciones de pantalla */
  width: min(85vw, 42vh, 360px);
  height: min(85vw, 42vh, 360px);
}

.cover-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.6);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cover-art.playing img {
  transform: scale(1.03);
}

.controls-container {
  padding: 10px 0;
  margin-bottom: 0;
}

.progress-area {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 30px;
}

.time {
  font-size: 0.8rem;
  color: var(--secondary-color);
  font-variant-numeric: tabular-nums;
  min-width: 40px;
}

.progress-bar-bg {
  flex: 1;
  height: 6px;
  background: rgba(255,255,255,0.2);
  border-radius: 10px;
  cursor: pointer;
  position: relative;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #ff3b3b, #ff6b6b);
  box-shadow: 0 0 12px rgba(255, 59, 59, 0.7);
  border-radius: 10px;
  width: 0%;
  position: relative;
  transition: width 0.1s linear;
}

.progress-bar-bg:active .progress-bar {
  background: linear-gradient(90deg, #ff5555, #ff8888);
}

.buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 35px;
  margin-top: 15px;
}

#play-pause-btn {
  background: var(--primary-color);
  color: var(--bg-color);
  border: none;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  font-size: 1.7rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 15px rgba(0,0,0,0.4);
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.2s;
}

#play-pause-btn i {
  margin-left: 4px; /* visually center play triangle */
}
#play-pause-btn.is-playing i {
  margin-left: 0;
}

#play-pause-btn:active {
  transform: scale(0.88);
  box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

#skip-back-btn, #skip-forward-btn {
  background: none;
  border: none;
  color: var(--primary-color);
  font-size: 1.6rem;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s, transform 0.2s;
}

#skip-back-btn:hover, #skip-forward-btn:hover {
  opacity: 1;
}

#skip-back-btn:active, #skip-forward-btn:active {
  transform: scale(0.85);
}
