/* ==========================================================================
   PEDIDOS MIX - REPRODUCTOR DEL CLIENTE ESTILO APPLE MUSIC (LIGHT MODE)
   Inspirado en la interfaz de iOS / Apple Music: fluido, táctil, limpio y elegante
   ========================================================================== */

.client-app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px 40px;
  position: relative;
  z-index: 1;
}

/* Tarjeta Principal Estilo Apple Sheet / Music Card */
.player-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-glass-card);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius-xl);
  padding: 28px 24px 24px;
  box-shadow: var(--shadow-elevated);
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
  transition: transform var(--transition-normal);
}

/* Encabezado */
.player-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-tag {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.brand-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-primary);
}

/* Arte de Portada / Disco Apple Music */
.art-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 8px 0;
}

.vinyl-disc {
  width: 180px;
  height: 180px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #1d1d1f 0%, #2c2c2e 50%, #151516 100%);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.16), 0 2px 6px rgba(0, 0, 0, 0.06);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0.93);
  transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.2), box-shadow 0.6s ease;
  overflow: hidden;
}

/* Expansión dinámica del arte al reproducir (Efecto característico de Apple Music) */
.vinyl-disc.playing {
  transform: scale(1);
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.22), 0 4px 10px rgba(0, 0, 0, 0.08);
}

.vinyl-center {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.04) 70%, transparent 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.vinyl-center::after {
  content: '';
  width: 12px;
  height: 12px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

/* Información del Mix */
.mix-info {
  text-align: center;
}

.mix-title {
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.024em;
  color: var(--text-main);
  margin-bottom: 4px;
  line-height: 1.25;
}

.mix-client {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

.mix-client span {
  color: var(--accent-primary);
  font-weight: 600;
}

/* Ecualizador Animado iOS */
.visualizer-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3.5px;
  height: 28px;
  margin-top: -6px;
}

.vis-bar {
  width: 3px;
  height: 4px;
  background: rgba(0, 0, 0, 0.12);
  border-radius: 2px;
  transition: height 0.15s ease, background-color 0.2s ease;
}

.visualizer-container.playing .vis-bar {
  background: var(--accent-primary);
}

/* Barra de Progreso Estilo iOS */
.progress-area {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.progress-bar-wrap {
  width: 100%;
  height: 6px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-full);
  position: relative;
  cursor: pointer;
  touch-action: none;
  transition: height 0.15s ease;
}

.progress-bar-wrap:hover {
  height: 8px;
}

.progress-buffered {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-full);
  pointer-events: none;
}

.progress-current {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: var(--text-main);
  border-radius: var(--radius-full);
  pointer-events: none;
}

.progress-thumb {
  position: absolute;
  top: 50%;
  left: 0%;
  width: 14px;
  height: 14px;
  background: #ffffff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  pointer-events: none;
  transition: transform 0.1s ease;
}

.progress-bar-wrap:active .progress-thumb {
  transform: translate(-50%, -50%) scale(1.3);
}

.time-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}

/* Controles de Reproducción Estilo iOS */
.controls-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  padding: 4px 0;
}

.btn-skip {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: transparent;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.btn-skip:hover {
  background: rgba(0, 0, 0, 0.05);
  transform: scale(1.06);
}

.btn-skip:active {
  transform: scale(0.92);
}

.btn-play {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: var(--text-main);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
  transition: all var(--transition-fast);
}

.btn-play:hover {
  background: #000000;
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.btn-play:active {
  transform: scale(0.93);
}

.btn-play svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

/* Control de Volumen Estilo Centro de Control iOS */
.volume-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 2px 4px;
}

.btn-volume-icon {
  color: var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  transition: color var(--transition-fast);
}

.btn-volume-icon:hover {
  color: var(--text-main);
}

.volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 5px;
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.08);
  outline: none;
  cursor: pointer;
  padding: 0;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: transform 0.1s ease;
}

.volume-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

/* Sección de Descarga (Apple App Store / Download Capsule) */
.download-section {
  padding-top: 6px;
  animation: slideAppleIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.btn-download-mix {
  width: 100%;
  padding: 13px 20px;
  font-size: 0.95rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: var(--accent-primary);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(0, 113, 227, 0.25);
  transition: all var(--transition-fast);
}

.btn-download-mix:hover {
  background: var(--accent-primary-hover);
  box-shadow: 0 8px 24px rgba(0, 113, 227, 0.35);
  transform: translateY(-1px);
}

.btn-download-mix:active {
  transform: scale(0.97);
}

.download-badge-size {
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.25);
  padding: 2px 7px;
  border-radius: var(--radius-full);
  font-weight: 500;
}

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

/* Estado de Solo Escuchar */
.listen-only-badge-row {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Pie del reproductor */
.player-footer {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 4px;
}
