* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* BrunoAce en local */
@font-face {
  font-family: 'BrunoAce';
  src: url('fonts/bruno_ace/BrunoAce-Regular.ttf') format('truetype');
}

/* ============================================
   TOGGLE DE IDIOMA
   ============================================ */
.language-toggle {
  position: fixed;
  top: 20px;
  left: 20px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  border-radius: 12px;
  padding: 5px;
  display: flex;
  gap: 5px;
  z-index: 1000;
  box-shadow: 
    0 4px 16px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.lang-option {
  padding: 8px 16px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-family: "BrunoAce", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  min-width: 40px;
}

.lang-option:hover {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
}

.lang-option.active {
  background: rgba(255, 255, 255, 0.3);
  color: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* ============================================
   BODY - Ocupa toda la pantalla disponible
   ============================================ */
body {
  width: 100vw;
  height: 100vh;
  margin: 0;
  padding: 0;
  overflow: hidden;
  
  /* Gradiente expandido: Violeta, Rosa, Naranja, Azul, Cian */
  background: linear-gradient(135deg, 
    #6366f1, /* Indigo */
    #a855f7, /* Violeta */
    #ec4899, /* Rosa */
    #f97316, /* Naranja */
    #3b82f6, /* Azul */
    #06b6d4, /* Cian */
    #6366f1  /* Cierre */
  );
  
  background-size: 600% 600%;
  animation: gradientShift 15s ease infinite;
  
  font-family: "BrunoAce", sans-serif;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Efecto de luz mejorado */
body::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg, 
    transparent, 
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.8s ease-in-out;
  pointer-events: none;
  z-index: 99;
}

body:hover::before {
  left: 150%;
}

/* ============================================
   ANIMATED BACKGROUND BLOBS
   ============================================ */
.blobs-container {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.blob {
  position: absolute;
  width: 384px;
  height: 384px;
  border-radius: 50%;
  mix-blend-mode: multiply;
  filter: blur(60px);
  opacity: 0.7;
  animation: blob 7s infinite;
}

.blob-1 {
  top: 25%;
  left: 25%;
  background: #a78bfa;
}

.blob-2 {
  top: 33%;
  right: 25%;
  background: #f9a8d4;
  animation-delay: 2s;
}

.blob-3 {
  bottom: 25%;
  left: 33%;
  background: #93c5fd;
  animation-delay: 4s;
}

@keyframes blob {
  0%, 100% { 
    transform: translate(0, 0) scale(1); 
  }
  25% { 
    transform: translate(20px, -20px) scale(1.1); 
  }
  50% { 
    transform: translate(-20px, 20px) scale(0.9); 
  }
  75% { 
    transform: translate(20px, 20px) scale(1.05); 
  }
}

/* ============================================
   MENÚ HAMBURGUESA
   ============================================ */
.menu-button {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: all 0.3s ease;
  box-shadow: 
    0 8px 32px 0 rgba(31, 38, 135, 0.37),
    inset 0 2px 0 0 rgba(255, 255, 255, 0.4);
  font-family: "BrunoAce", sans-serif;
}

.menu-button:hover {
  transform: scale(1.05);
  background: rgba(255, 255, 255, 0.25);
}

.menu-button span {
  width: 24px;
  height: 3px;
  background: white;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.menu-button.active span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

.menu-button.active span:nth-child(2) {
  opacity: 0;
}

.menu-button.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Panel del menú */
.menu-panel {
  position: fixed;
  top: 0;
  right: -350px;
  width: 350px;
  height: 100vh;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(40px) saturate(180%);
  border-left: 1px solid rgba(255, 255, 255, 0.3);
  z-index: 999;
  transition: right 0.3s ease;
  padding: 80px 20px 20px;
  box-shadow: -10px 0 50px rgba(0, 0, 0, 0.3);
  overflow-y: auto;
}

.menu-panel.active {
  right: 0;
}

.menu-panel h3 {
  color: white;
  font-size: 18px;
  margin-bottom: 20px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-family: "BrunoAce", sans-serif;
}

/* Items del menú */
.menu-item {
  width: 100%;
  padding: 15px 20px;
  margin-bottom: 10px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  transition: all 0.3s ease;
  cursor: pointer;
  font-size: 14px;
  font-family: "BrunoAce", sans-serif;
}

.menu-item:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateX(-5px);
}

.menu-item i {
  font-size: 18px;
  width: 25px;
  text-align: center;
}

.menu-item .arrow {
  margin-left: auto;
  transition: transform 0.3s ease;
}

.menu-item.active .arrow {
  transform: rotate(90deg);
}

/* Submenú de Redes Sociales */
.submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease;
  opacity: 0;
  margin-bottom: 10px;
}

.submenu.active {
  max-height: 500px;
  opacity: 1;
}

.submenu-content {
  padding: 10px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  margin-top: 5px;
}

.social-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  margin-bottom: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 13px;
  font-family: "BrunoAce", sans-serif;
}

.social-menu-item:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateX(-3px);
}

.social-menu-item i {
  font-size: 16px;
  width: 20px;
  text-align: center;
}

/* ============================================
   MODAL "ACERCA DE"
   ============================================ */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.modal-overlay.active {
  display: flex;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-content-wrapper {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(40px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 24px;
  width: 90%;
  max-width: 600px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.5),
    inset 0 2px 0 0 rgba(255, 255, 255, 0.4);
  animation: slideUp 0.3s ease;
  position: relative;
}

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

.modal-header {
  background: rgba(255, 255, 255, 0.1);
  padding: 20px 25px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 24px 24px 0 0;
}

.modal-header h2 {
  color: white;
  font-size: 20px;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "BrunoAce", sans-serif;
}

.modal-close {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  width: 35px;
  height: 35px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  transition: all 0.3s ease;
  font-family: "BrunoAce", sans-serif;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.modal-body {
  padding: 25px;
  color: white;
}

.modal-section {
  margin-bottom: 25px;
}

.modal-section h3 {
  font-size: 16px;
  margin-bottom: 12px;
  color: white;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 8px;
  font-family: "BrunoAce", sans-serif;
}

.modal-section p {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 10px;
  font-family: "BrunoAce", sans-serif;
}

.modal-section ul {
  list-style: none;
  padding-left: 0;
}

.modal-section li {
  font-size: 13px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
  padding-left: 20px;
  position: relative;
  font-family: "BrunoAce", sans-serif;
}

.modal-section li:before {
  content: "▸";
  position: absolute;
  left: 0;
  color: rgba(255, 255, 255, 0.6);
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 10px;
  margin-top: 15px;
  justify-items: center;
}

.tech-item {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 12px;
  text-align: center;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 120px;
}

.tech-item:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px) scale(1.05);
}

.tech-item i {
  font-size: clamp(20px, 4vw, 28px); /* Se ajusta automáticamente */
  margin-bottom: clamp(6px, 1.5vw, 10px);
  display: block;
  flex-shrink: 0;
}

.tech-item span {
  font-size: clamp(9px, 2vw, 12px); /* Se ajusta automáticamente */
  display: block;
  font-family: "BrunoAce", sans-serif;
  line-height: 1.3;
  word-break: break-word;
  hyphens: auto;
}

/* Ajustes para pantallas muy pequeñas */
@media (max-width: 400px) {
  .tech-grid {
    grid-template-columns: repeat(auto-fit, minmax(65px, 1fr));
    gap: 8px;
  }
  
  .tech-item {
    padding: 8px;
    max-width: 100px;
  }
}

/* Ajustes para pantallas medianas */
@media (min-width: 401px) and (max-width: 768px) {
  .tech-grid {
    grid-template-columns: repeat(auto-fit, minmax(85px, 1fr));
    gap: 10px;
  }
}

/* Ajustes para pantallas grandes */
@media (min-width: 769px) {
  .tech-grid {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 12px;
  }
  
  .tech-item {
    max-width: 130px;
  }
}

.credit {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 15px;
  text-align: center;
  margin-top: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.credit p {
  margin: 5px 0;
  font-size: 13px;
  font-family: "BrunoAce", sans-serif;
  text-align: center;
}

.credit strong {
  font-size: 15px;
  color: #fff;
  font-family: "BrunoAce", sans-serif;
  display: block;
  text-align: center;
}

/* Scrollbar personalizada para modal */
.modal-content-wrapper::-webkit-scrollbar {
  width: 8px;
}

.modal-content-wrapper::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

.modal-content-wrapper::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 10px;
}

.modal-content-wrapper::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

/* Scrollbar para menu panel */
.menu-panel::-webkit-scrollbar {
  width: 6px;
}

.menu-panel::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
}

.menu-panel::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 10px;
}

/* ============================================
   MAIN PLAYER CONTAINER - RESPONSIVE
   ============================================ */
.player-container {
  position: relative;
  width: 90%;
  max-width: 500px;
  height: auto;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 2;
}

/* Responsive breakpoints */
@media (max-width: 768px) {
  .player-container {
    width: 95%;
    max-width: 450px;
    padding: 15px;
  }
  
  .menu-panel {
    width: 300px;
    right: -300px;
  }
  
  .modal-content-wrapper {
    width: 95%;
    max-height: 90vh;
  }
  
  .language-toggle {
    top: 15px;
    left: 15px;
    padding: 4px;
  }
  
  .lang-option {
    padding: 6px 12px;
    font-size: 11px;
    min-width: 35px;
  }
}

@media (max-width: 480px) {
  .player-container {
    width: 98%;
    max-width: 100%;
    padding: 10px;
  }
  
  .menu-panel {
    width: 280px;
    right: -280px;
  }
  
  .language-toggle {
    top: 10px;
    left: 10px;
    padding: 3px;
  }
  
  .lang-option {
    padding: 5px 10px;
    font-size: 10px;
    min-width: 30px;
  }
}

/* ============================================
   PLAYER CARD
   ============================================ */
.player-card {
  backdrop-filter: blur(40px) saturate(180%);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 18px;
  box-shadow: 
    0 8px 32px 0 rgba(31, 38, 135, 0.37),
    0 16px 64px 0 rgba(0, 0, 0, 0.2),
    inset 0 2px 0 0 rgba(255, 255, 255, 0.7),
    inset 0 -2px 0 0 rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  width: 100%;
  height: 100%;
  position: relative;
}

.player-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.25) 0%,
    rgba(255, 255, 255, 0) 100%
  );
  border-radius: 24px 24px 0 0;
  pointer-events: none;
}

.player-content {
  display: flex;
  flex-direction: row;
  gap: 24px;
  height: 100%;
  align-items: center;
}

/* Layout responsive */
@media (max-width: 480px) {
  .player-content {
    flex-direction: column;
    gap: 15px;
  }
  
  .player-card {
    padding: 15px;
  }
}

/* ============================================
   ALBUM ART
   ============================================ */
.album-art-container {
  position: relative;
  flex-shrink: 0;
  padding: 8px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(30px) saturate(150%);
  border-radius: 24px;
  box-shadow: 
    0 8px 32px 0 rgba(31, 38, 135, 0.4),
    0 16px 48px 0 rgba(0, 0, 0, 0.15),
    inset 0 3px 6px 0 rgba(255, 255, 255, 0.8),
    inset 0 -3px 6px 0 rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.7) !important;
  box-sizing: content-box !important;
  /*outline: 1px solid rgba(255, 255, 255, 0.2);
  outline-offset: 4px;
  /*filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.25))
          drop-shadow(0 0 28px rgba(160, 100, 255, 0.35));*/
}

.album-art-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.4) 0%,
    rgba(255, 255, 255, 0) 50%,
    rgba(0, 0, 0, 0.15) 100%
  );
  border-radius: 32px;
  pointer-events: none;
}

.album-art {
  width: 150px;
  height: 150px;
  min-width: 150px;   /* ← AGREGAR esta línea */
  min-height: 150px;  /* ← AGREGAR esta línea */
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 
    0 4px 16px 0 rgba(0, 0, 0, 0.3),
    inset 0 1px 2px 0 rgba(255, 255, 255, 0.2);
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.2) 0%, rgba(249, 168, 212, 0.2) 100%);
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.55) !important;
  box-sizing: content-box !important;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.album-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 10;
}

/* Responsive album art */
@media (max-width: 480px) {
  .album-art {
    width: 120px;
    height: 120px;
  }
}

/* ON AIR Badge */
.on-air-badge {
  position: absolute;
  top: -23px;
  right: -1px;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  padding: 3px 10px;
  border-radius: 9999px;
  font-size: 10px;
  font-weight: bold;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 10;
  border: 1px solid rgba(255, 255, 255, 0.9);
  font-family: "BrunoAce", sans-serif;
}

@media (max-width: 480px) {
  .on-air-badge {
    top: 8px;
    right: -110px;
    bottom: auto;
    left: auto;
  }
}

.pulse-dot {
  width: 10px;
  height: 10px;
  background: rgb(255, 0, 0);
  border-radius: 50%;
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

/* ============================================
   CONTROLS CONTAINER
   ============================================ */
.controls-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}

/* Header */
.header {
  text-align: center;
  width: 100%;
}

.title {
  font-size: 22px;
  font-weight: 100;
  color: white;
  text-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-bottom: 8px;
  font-family: "BrunoAce", sans-serif;
}

@media (max-width: 480px) {
  .title {
    font-size: 18px;
  }
}

.divider {
  height: 1px;
  width: 96px;
  margin: 0 auto;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.5), transparent);
}

/* Song Info */
.song-info {
  text-align: center;
  margin: 8px 0;
  width: 100%;
  padding: 0 10px;
  max-width: 100%;
  overflow: hidden;
}

.artist {
  font-size: 14px;
  font-weight: 200;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 4px;
  max-width: 100%;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
  font-family: "BrunoAce", sans-serif;
}

.song-title {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  max-width: 100%;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
  font-family: "BrunoAce", sans-serif;
}

@media (max-width: 480px) {
  .artist {
    font-size: 12px;
    line-height: 1.4;
  }
  
  .song-title {
    font-size: 10px;
    line-height: 1.4;
  }
}

/* ============================================
   PLAY BUTTON
   ============================================ */
.play-button-container {
  display: flex;
  justify-content: center;
  margin: 8px 0;
}

.play-button {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 
    0 8px 32px 0 rgba(31, 38, 135, 0.37),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.4),
    inset 0 -1px 0 0 rgba(0, 0, 0, 0.1);
  position: relative;
  font-family: "BrunoAce", sans-serif;
}

.play-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.2) 0%,
    rgba(255, 255, 255, 0) 50%,
    rgba(0, 0, 0, 0.1) 100%
  );
  border-radius: 50%;
  pointer-events: none;
}

.play-button:hover {
  transform: scale(1.1);
  box-shadow: 
    0 12px 40px 0 rgba(31, 38, 135, 0.5),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.5),
    inset 0 -1px 0 0 rgba(0, 0, 0, 0.15);
}

.play-button .icon {
  width: 28px;
  height: 28px;
  transition: transform 0.3s ease;
  position: relative;
  z-index: 1;
}

.play-button:hover .icon {
  transform: scale(1.1);
}

.play-icon {
  padding-left: 3px;
}

.hidden {
  display: none;
}

/* ============================================
   VOLUME CONTROL
   ============================================ */
.volume-control {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 1px 0 6px;
  width: 100%;
  max-width: 100%;
}

.volume-control > *:not(.volume-slider-container) {
  flex-shrink: 0;
}

.volume-button {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
  box-shadow: 
    0 4px 16px 0 rgba(31, 38, 135, 0.2),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.3),
    inset 0 -1px 0 0 rgba(0, 0, 0, 0.1);
  position: relative;
  font-family: "BrunoAce", sans-serif;
}

.volume-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.15) 0%,
    rgba(255, 255, 255, 0) 50%,
    rgba(0, 0, 0, 0.05) 100%
  );
  border-radius: 50%;
  pointer-events: none;
}

.volume-button:hover {
  transform: scale(1.1);
}

.volume-button .icon {
  width: 20px;
  height: 20px;
  position: relative;
  z-index: 1;
}

.volume-slider-container {
  flex: 1;
  position: relative;
  min-width: 0;
}

.volume-slider {
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  appearance: none;
  cursor: pointer;
  outline: none;
}

.volume-slider::-webkit-slider-thumb {
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: white;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: all 0.2s;
}

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

.volume-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: white;
  cursor: pointer;
  border: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.volume-text {
  color: white;
  font-weight: 100;
  min-width: 35px;
  text-align: left;
  font-size: 11px;
  margin-left: -3px;
  font-family: "BrunoAce", sans-serif;
}

@media (max-width: 480px) {
  .volume-control {
    gap: 8px;
  }
  
  .volume-button {
    width: 30px;
    height: 30px;
  }
  
  .volume-button .icon {
    width: 18px;
    height: 18px;
  }
  
  .volume-text {
    font-size: 10px;
    min-width: 30px;
  }
}

/* ============================================
   SOCIAL LINKS (debajo del player)
   ============================================ */
.icon-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 5px;
  max-width: 100%;
  box-sizing: border-box;
}

.icon-container a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: #ffffff;
  font-size: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 
    0 2px 8px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.2);
  position: relative;
}

.icon-container a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0) 50%
  );
  border-radius: 8px;
  pointer-events: none;
}

.icon-container a:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-3px);
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.3);
}

.icon-container a:active {
  transform: translateY(0);
}

@media (max-width: 480px) {
  .icon-container {
    gap: 4px;
  }
  
  .icon-container a {
    width: 22px;
    height: 22px;
    font-size: 11px;
  }
}

/* ============================================
   NOTIFICACIÓN DE COMPARTIR
   ============================================ */
.share-notification {
  position: fixed;
  bottom: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(99, 102, 241, 0.95);
  backdrop-filter: blur(20px);
  color: white;
  padding: 15px 25px;
  border-radius: 12px;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.3);
  z-index: 10000;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  transition: bottom 0.3s ease;
  font-family: "BrunoAce", sans-serif;
}

.share-notification.show {
  bottom: 30px;
}

.share-notification i {
  font-size: 18px;
  color: #4ade80;
}

@media (max-width: 480px) {
  .share-notification {
    font-size: 13px;
    padding: 12px 20px;
    bottom: -100px;
  }
  
  .share-notification.show {
    bottom: 20px;
  }
}

/* ============================================
   MODAL HISTORIAL DE CANCIONES
   ============================================ */
.history-modal {
  max-width: 500px;
}

.history-list {
  max-height: 400px;
  overflow-y: auto;
  padding-right: 5px;
}

.history-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  margin-bottom: 10px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.history-item:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateX(-3px);
}

.history-artwork {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.history-artwork img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.history-info {
  flex: 1;
  min-width: 0;
}

.history-artist {
  font-size: 13px;
  font-weight: 600;
  color: white;
  margin-bottom: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: "BrunoAce", sans-serif;
}

.history-title {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.8);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: "BrunoAce", sans-serif;
}

.history-time {
  flex-shrink: 0;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 300;
  min-width: 40px;
  text-align: right;
  font-family: "BrunoAce", sans-serif;
}

/* Mensaje cuando está vacío */
.history-empty {
  text-align: center;
  padding: 40px 20px;
  color: rgba(255, 255, 255, 0.7);
}

.history-empty i {
  font-size: 48px;
  margin-bottom: 15px;
  opacity: 0.5;
  display: block;
}

.history-empty p {
  margin: 8px 0;
  font-size: 14px;
  font-family: "BrunoAce", sans-serif;
}

.history-empty .small {
  font-size: 12px;
  opacity: 0.7;
  font-family: "BrunoAce", sans-serif;
}

/* Acciones del historial */
.history-actions {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  justify-content: center;
}

.clear-history-btn {
  padding: 10px 20px;
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.4);
  border-radius: 10px;
  color: white;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  font-family: "BrunoAce", sans-serif;
}

.clear-history-btn:hover:not(:disabled) {
  background: rgba(239, 68, 68, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.clear-history-btn:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.clear-history-btn i {
  font-size: 14px;
}

/* Scrollbar para lista de historial */
.history-list::-webkit-scrollbar {
  width: 6px;
}

.history-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

.history-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 10px;
}

.history-list::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

/* ============================================
   POPUP / PANTALLAS CON POCA ALTURA
   Cuando el reproductor se abre como popup móvil
   ============================================ */
@media (max-height: 650px) {
  body {
    height: auto;
    min-height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    align-items: flex-start;
    padding: 70px 0 20px;
  }

  .player-container {
    padding: 10px;
    min-height: unset;
  }

  .album-art {
    width: 100px;
    height: 100px;
  }

  .title {
    font-size: 16px;
  }

  .controls-container {
    gap: 6px;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .history-modal {
    width: 95%;
  }
  
  .history-list {
    max-height: 350px;
  }
}

@media (max-width: 480px) {
  .history-item {
    padding: 10px;
    gap: 10px;
  }
  
  .history-artwork {
    width: 45px;
    height: 45px;
  }
  
  .history-artist {
    font-size: 12px;
  }
  
  .history-title {
    font-size: 10px;
  }
  
  .history-time {
    font-size: 10px;
    min-width: 35px;
  }
  
  .clear-history-btn {
    font-size: 12px;
    padding: 8px 16px;
  }
}
