/* ========================================
   CUSTOM.CSS - LA DEL RANCHO
   VERSIÓN FINAL - Barra de controles pequeña
   ======================================== */

/* =======================================
   1. COLOR AZUL
   ======================================= */

:root {
  --player-primary: #3498db !important;
}

html.dark {
  --player-primary: #5dade2 !important;
}

/* =======================================
   2. LOGO MÁS GRANDE
   ======================================= */

.header-logo {
  padding: 1.5rem 1rem;
  background: linear-gradient(135deg, rgba(52, 152, 219, 0.08), rgba(41, 128, 185, 0.04));
  border-radius: 12px;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 15px rgba(52, 152, 219, 0.1);
}

.header-brand {
  height: 100px !important;
  max-height: 100px !important;
  width: auto !important;
  filter: brightness(1.2) contrast(1.15) drop-shadow(0 6px 20px rgba(0, 0, 0, 0.3));
  transition: all 0.3s ease;
}

.header-brand:hover {
  transform: scale(1.06);
}

html.dark .header-brand {
  filter: brightness(1.4) contrast(1.25) drop-shadow(0 6px 20px rgba(255, 255, 255, 0.2));
}

html.dark .header-logo {
  background: linear-gradient(135deg, rgba(84, 172, 237, 0.1), rgba(41, 128, 185, 0.05));
}

@media (min-width: 768px) {
  .header-brand {
    height: 120px !important;
    max-height: 120px !important;
  }
}

@media (min-width: 992px) {
  .header-brand {
    height: 140px !important;
    max-height: 140px !important;
  }
}

/* =======================================
   3. PLAYER - ALTURA OPTIMIZADA
   ======================================= */

#player-section {
  aspect-ratio: auto !important;
  max-height: 560px;
  min-height: 470px;
}

.player.is-static {
  max-height: 560px;
  min-height: 470px;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15) !important;
}

html.dark .player.is-static {
  background: linear-gradient(135deg, #1a1d29 0%, #0f1419 100%) !important;
}

.player.is-static .player-wrapper {
  padding: 1.5rem 1rem 65px !important;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.player.is-static .player-left {
  aspect-ratio: auto !important;
  max-width: 100%;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 1rem !important;
  position: relative;
}

/* =======================================
   4. IMAGEN CUADRADA
   ======================================= */

.player.is-static .player-picture {
  width: 200px !important;
  height: 200px !important;
  max-width: 200px !important;
  min-height: 200px !important;
  border-radius: 16px !important;
  box-shadow: 0 15px 40px rgba(52, 152, 219, 0.3) !important;
  border: 5px solid rgba(52, 152, 219, 0.2) !important;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}

.player.is-static .player-picture-wrapper {
  border-radius: 12px !important;
  overflow: hidden;
}

.player.is-static .player-picture img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

@media (min-width: 768px) {
  .player.is-static .player-picture {
    width: 220px !important;
    height: 220px !important;
    max-width: 220px !important;
    min-height: 220px !important;
  }
}

@media (min-width: 1200px) {
  .player.is-static .player-picture {
    width: 230px !important;
    height: 230px !important;
    max-width: 230px !important;
    min-height: 230px !important;
  }
}

/* =======================================
   5. METADATA - TEXTO MUY VISIBLE
   ======================================= */

.player.is-static .player-meta {
  position: relative !important;
  left: auto !important;
  bottom: auto !important;
  width: 100% !important;
  text-align: center !important;
  padding: 0 1rem;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  max-width: 100%;
}

.player.is-static .player-desc {
  flex-direction: column !important;
  align-items: center !important;
  gap: 0.45rem;
  width: 100%;
}

/* Badge DIRECTO */
.badge {
  display: inline-flex !important;
  padding: 0.35rem 0.9rem !important;
  background: linear-gradient(135deg, #e74c3c, #c0392b) !important;
  color: white !important;
  border-radius: 25px !important;
  font-size: 0.7rem !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.15rem;
  box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* =======================================
   6. NOMBRE DEL ARTISTA - MUY VISIBLE
   ======================================= */

.player.is-static .player-desc .artist-name {
  display: block !important;
  background-color: transparent !important;
  padding: 0.45rem 0.9rem !important;
  color: #1a1a1a !important;
  font-size: 1.15rem !important;
  font-weight: 800 !important;
  text-align: center !important;
  line-height: 1.3 !important;
  opacity: 1 !important;
  visibility: visible !important;
  margin-bottom: 0.2rem;
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
  hyphens: auto !important;
  max-width: 100%;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  background: linear-gradient(135deg, rgba(52, 152, 219, 0.08), rgba(41, 128, 185, 0.05));
  border-radius: 10px;
  border: 2px solid rgba(52, 152, 219, 0.15);
}

html.dark .player.is-static .player-desc .artist-name {
  color: #ffffff !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  background: linear-gradient(135deg, rgba(84, 172, 237, 0.15), rgba(41, 128, 185, 0.1));
  border-color: rgba(84, 172, 237, 0.25);
}

/* =======================================
   7. NOMBRE DE LA CANCIÓN - MUY VISIBLE
   ======================================= */

.player.is-static .player-fix {
  width: 100%;
  text-align: center;
  margin-top: 0.35rem;
}

.player.is-static .player-fix strong {
  background: rgba(52, 152, 219, 0.1) !important;
  padding: 0.5rem 0.85rem !important;
  color: #2c3e50 !important;
  font-weight: 700 !important;
  font-size: 1rem !important;
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  line-height: 1.4 !important;
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
  hyphens: auto !important;
  border-radius: 8px;
  border: 2px solid rgba(52, 152, 219, 0.2);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  box-shadow: 0 2px 8px rgba(52, 152, 219, 0.15);
}

html.dark .player.is-static .player-fix strong {
  color: #ecf0f1 !important;
  background: rgba(84, 172, 237, 0.15) !important;
  border-color: rgba(84, 172, 237, 0.3);
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.player.is-static .player-fix .inline-artist-name {
  display: inline !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* =======================================
   8. NOMBRE DE LA ESTACIÓN - COMPACTO
   ======================================= */

.player-station-name {
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  display: block !important;
  visibility: visible !important;
  text-align: center;
  color: #3498db !important;
  margin-top: 0.4rem;
  padding: 0.45rem 1rem;
  background: rgba(52, 152, 219, 0.12);
  border-radius: 20px;
  border: 2px solid rgba(52, 152, 219, 0.3);
  box-shadow: 0 3px 10px rgba(52, 152, 219, 0.2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

html.dark .player-station-name {
  color: #5dade2 !important;
  background: rgba(84, 172, 237, 0.2);
  border-color: rgba(84, 172, 237, 0.35);
}

.player-station-desc {
  font-size: 0.8rem !important;
  color: #7f8c8d !important;
  margin-top: 0.25rem;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

html.dark .player-station-desc {
  color: #bdc3c7 !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* =======================================
   9. BARRA DE CONTROLES - MÁS PEQUEÑA
   ======================================= */

.player.is-static .player-right {
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 1rem !important;
  padding: 0.75rem 1rem !important;
  background: linear-gradient(135deg, #3498db, #2980b9) !important;
  box-shadow: 0 -3px 15px rgba(52, 152, 219, 0.3);
  height: 65px;
}

/* Botón Play - Más pequeño */
.player.is-static .player-button-play {
  width: 50px !important;
  height: 50px !important;
  background: white !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25) !important;
  position: relative !important;
  left: auto !important;
  right: auto !important;
  transition: all 0.3s ease !important;
}

.player.is-static .player-button-play:hover {
  transform: scale(1.12) !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35) !important;
}

.player.is-static .player-button-play svg {
  color: #3498db !important;
  width: 22px !important;
  height: 22px !important;
}

/* Botón de volumen - Más pequeño */
.volume-toggle {
  width: 42px !important;
  height: 42px !important;
  background: rgba(255, 255, 255, 0.2) !important;
  border-radius: 50% !important;
  border: 2px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.volume-toggle:hover {
  background: rgba(255, 255, 255, 0.3) !important;
  transform: scale(1.1);
}

.volume-toggle svg {
  color: white !important;
  width: 18px !important;
  height: 18px !important;
}

/* =======================================
   10. COLORES AZULES EN TODO EL SITIO
   ======================================= */

.header-top {
  background: linear-gradient(135deg, #3498db, #2980b9) !important;
}

.btn-primary,
.btn-full.station-prm,
.install-button {
  background: linear-gradient(135deg, #3498db, #2980b9) !important;
}

.btn-primary:hover,
.btn-full:hover {
  background: linear-gradient(135deg, #5dade2, #3498db) !important;
  transform: translateY(-2px);
}

.header-menu-list a.is-active {
  background-color: #3498db !important;
  color: white !important;
}

.header-menu-list a:hover,
.mobile-menu-list a.is-active {
  color: #3498db !important;
}

.section-heading::after {
  background-color: #3498db !important;
}

.swiper-button-prev,
.swiper-button-next {
  background: rgba(52, 152, 219, 0.9) !important;
}

.swiper-pagination-bullet-active {
  background: #3498db !important;
}

.program-button.is-active,
.program-button:hover {
  background: linear-gradient(135deg, #3498db, #2980b9) !important;
  color: white !important;
}

.song-progress-container::after,
.volume-range-fill {
  background: linear-gradient(90deg, #3498db, #5dade2) !important;
}

.scrollbar::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #3498db, #2980b9);
}

/* =======================================
   11. RESPONSIVE MOBILE
   ======================================= */

@media (max-width: 767px) {
  .header-brand {
    height: 80px !important;
    max-height: 80px !important;
  }
  
  #player-section,
  .player.is-static {
    max-height: 520px;
    min-height: 450px;
  }
  
  .player.is-static .player-wrapper {
    padding: 1.25rem 0.85rem 60px !important;
  }
  
  .player.is-static .player-picture {
    width: 170px !important;
    height: 170px !important;
    max-width: 170px !important;
    min-height: 170px !important;
  }
  
  .player.is-static .player-desc .artist-name {
    font-size: 1.05rem !important;
    padding: 0.4rem 0.75rem !important;
  }
  
  .player.is-static .player-fix strong {
    font-size: 0.95rem !important;
    padding: 0.45rem 0.7rem !important;
  }
  
  .player-station-name {
    font-size: 0.85rem !important;
    padding: 0.4rem 0.9rem;
  }
  
  .player.is-static .player-right {
    padding: 0.65rem 0.85rem !important;
    height: 60px;
  }
  
  .player.is-static .player-button-play {
    width: 46px !important;
    height: 46px !important;
  }
  
  .player.is-static .player-button-play svg {
    width: 20px !important;
    height: 20px !important;
  }
  
  .volume-toggle {
    width: 38px !important;
    height: 38px !important;
  }
  
  .volume-toggle svg {
    width: 16px !important;
    height: 16px !important;
  }
}

@media (max-width: 575px) {
  .header-brand {
    height: 70px !important;
    max-height: 70px !important;
  }
  
  .player.is-static .player-picture {
    width: 150px !important;
    height: 150px !important;
    max-width: 150px !important;
    min-height: 150px !important;
  }
  
  .player.is-static .player-desc .artist-name {
    font-size: 1rem !important;
  }
  
  .player.is-static .player-fix strong {
    font-size: 0.9rem !important;
  }
  
  .player.is-static .player-right {
    padding: 0.6rem 0.75rem !important;
    height: 55px;
  }
}

/* =======================================
   12. ASEGURAR VISIBILIDAD TOTAL
   ======================================= */

.artist-name,
.station-name,
.player-title,
.song-now,
.player-fix strong,
.player-station-name,
.player-station-desc {
  opacity: 1 !important;
  visibility: visible !important;
}

.player.is-static .player-desc .artist-name,
.player.is-static .player-fix strong {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

html.dark .player.is-static .player-desc .artist-name,
html.dark .player.is-static .player-fix strong {
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
}

/* FIN */
