/* ========================================
   EFECTO DE NIEVE CAYENDO
   ======================================== */
  
.snow-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.snowflake {
  position: absolute;
  color: white;
  font-size: 10px;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
  animation: snowfall linear infinite;
  opacity: 0.8;
  user-select: none;
}

.dynamic-flake {
  /* Copos dinámicos con movimiento horizontal */
  animation: snowfallWithWind linear infinite;
}

@keyframes snowfallWithWind {
  0% {
    transform: translateY(-100vh) translateX(0px);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(100vh) translateX(var(--horizontal-move, 100px));
    opacity: 0;
  }
}

.snowflake:nth-child(odd) {
  color: rgba(255, 255, 255, 0.9);
  font-size: 8px;
}

.snowflake:nth-child(even) {
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
}

@keyframes snowfall {
  0% {
    transform: translateY(-100vh) translateX(0px);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(100vh) translateX(100px);
    opacity: 0;
  }
}

/* Animaciones con diferentes velocidades para más realismo */
.snowflake:nth-child(1) { animation-duration: 8s; animation-delay: 0s; left: 10%; }
.snowflake:nth-child(2) { animation-duration: 10s; animation-delay: 1s; left: 20%; }
.snowflake:nth-child(3) { animation-duration: 7s; animation-delay: 2s; left: 30%; }
.snowflake:nth-child(4) { animation-duration: 12s; animation-delay: 0.5s; left: 40%; }
.snowflake:nth-child(5) { animation-duration: 9s; animation-delay: 1.5s; left: 50%; }
.snowflake:nth-child(6) { animation-duration: 11s; animation-delay: 2.5s; left: 60%; }
.snowflake:nth-child(7) { animation-duration: 8.5s; animation-delay: 3s; left: 70%; }
.snowflake:nth-child(8) { animation-duration: 10.5s; animation-delay: 3.5s; left: 80%; }
.snowflake:nth-child(9) { animation-duration: 7.5s; animation-delay: 4s; left: 90%; }
.snowflake:nth-child(10) { animation-duration: 13s; animation-delay: 4.5s; left: 15%; }
.snowflake:nth-child(11) { animation-duration: 9.5s; animation-delay: 5s; left: 25%; }
.snowflake:nth-child(12) { animation-duration: 11.5s; animation-delay: 5.5s; left: 35%; }
.snowflake:nth-child(13) { animation-duration: 8.8s; animation-delay: 6s; left: 45%; }
.snowflake:nth-child(14) { animation-duration: 10.2s; animation-delay: 6.5s; left: 55%; }
.snowflake:nth-child(15) { animation-duration: 12.5s; animation-delay: 7s; left: 65%; }
.snowflake:nth-child(16) { animation-duration: 9.8s; animation-delay: 7.5s; left: 75%; }
.snowflake:nth-child(17) { animation-duration: 11.8s; animation-delay: 8s; left: 85%; }
.snowflake:nth-child(18) { animation-duration: 8.2s; animation-delay: 8.5s; left: 95%; }
.snowflake:nth-child(19) { animation-duration: 10.8s; animation-delay: 9s; left: 5%; }
.snowflake:nth-child(20) { animation-duration: 12.2s; animation-delay: 9.5s; left: 75%; }

/* Variaciones de movimiento horizontal para más naturalidad */
.snowflake:nth-child(3n) {
  animation-timing-function: ease-in-out;
}

.snowflake:nth-child(4n) {
  animation-timing-function: ease-out;
}

.snowflake:nth-child(5n) {
  animation-timing-function: ease-in;
}

/* Efectos especiales para diferentes tipos de copos */
.snowflake:nth-child(6n) {
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.9);
  filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.5));
}

.snowflake:nth-child(8n) {
  animation-duration: 15s;
  opacity: 0.4;
}

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

  /* ELIMINACIÓN ABSOLUTA DE TODOS LOS OUTLINES - REGLA GLOBAL */
  *,
  *:focus,
  *:active,
  *:focus-visible,
  *:focus-within,
  *:target,
  *:hover,
  *:visited,
  *:link,
  *::before,
  *::after,
  *::selection {
    outline: none !important;
    outline-width: 0 !important;
    outline-style: none !important;
    outline-color: transparent !important;
    outline-offset: 0 !important;
    -webkit-tap-highlight-color: transparent !important;
    -webkit-focus-ring-color: transparent !important;
    -moz-outline: none !important;
    -ms-outline: none !important;
    box-shadow: none !important;
    -webkit-tap-highlight-color: transparent !important;
  }

  /* Regla adicional específica para navegadores problemáticos */
  *, *:before, *:after, *:focus, *:active {
    outline: 0 !important;
    outline: none !important;
    -webkit-tap-highlight-color: rgba(0,0,0,0) !important;
    -webkit-tap-highlight-color: transparent !important;
  }

  /* REGLAS ESPECÍFICAS PARA ELIMINAR OUTLINES EN TODOS LOS ELEMENTOS DEL REPRODUCTOR */
  .radio-player,
  .radio-player *,
  .mini-player,
  .mini-player *,
  .play-pause-btn,
  .control-buttons,
  .control-buttons *,
  .controls,
  .controls *,
  .metadata,
  .metadata *,
  .visualizer,
  .visualizer *,
  .volume-controls,
  .volume-controls *,
  .social-buttons,
  .social-buttons *,
  .theme-section,
  .theme-section *,
  .footer,
  .footer *,
  .album-art-container,
  .album-art-container *,
  canvas,
  audio,
  div,
  span,
  p,
  h1, h2, h3, h4, h5, h6,
  img,
  picture,
  figure {
    outline: none !important;
    outline-width: 0 !important;
    outline-style: none !important;
    outline-color: transparent !important;
    outline-offset: 0 !important;
    -webkit-tap-highlight-color: transparent !important;
    -webkit-focus-ring-color: transparent !important;
    -moz-outline: none !important;
    -ms-outline: none !important;
    border: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
  }

  /* Reglas específicas para elementos con estado hover/focus/active */
  .radio-player:focus,
  .radio-player:active,
  .radio-player:hover,
  .mini-player:focus,
  .mini-player:active,
  .mini-player:hover,
  .play-pause-btn:focus,
  .play-pause-btn:active,
  .play-pause-btn:hover,
  .control-buttons:focus,
  .control-buttons:active,
  .control-buttons:hover,
  .controls:focus,
  .controls:active,
  .controls:hover,
  .metadata:focus,
  .metadata:active,
  .metadata:hover,
  .visualizer:focus,
  .visualizer:active,
  .visualizer:hover,
  .volume-controls:focus,
  .volume-controls:active,
  .volume-controls:hover,
  .social-buttons:focus,
  .social-buttons:active,
  .social-buttons:hover,
  .theme-section:focus,
  .theme-section:active,
  .theme-section:hover,
  .footer:focus,
  .footer:active,
  .footer:hover,
  .album-art-container:focus,
  .album-art-container:active,
  .album-art-container:hover,
  canvas:focus,
  canvas:active,
  canvas:hover,
  audio:focus,
  audio:active,
  audio:hover,
  div:focus,
  div:active,
  div:hover,
  span:focus,
  span:active,
  span:hover,
  p:focus,
  p:active,
  p:hover,
  h1:focus, h2:focus, h3:focus, h4:focus, h5:focus, h6:focus,
  h1:active, h2:active, h3:active, h4:active, h5:active, h6:active,
  h1:hover, h2:hover, h3:hover, h4:hover, h5:hover, h6:hover,
  img:focus,
  img:active,
  img:hover,
  picture:focus,
  picture:active,
  picture:hover,
  figure:focus,
  figure:active,
  figure:hover {
    outline: none !important;
    outline-width: 0 !important;
    outline-style: none !important;
    outline-color: transparent !important;
    outline-offset: 0 !important;
    -webkit-tap-highlight-color: transparent !important;
    -webkit-focus-ring-color: transparent !important;
    -moz-outline: none !important;
    -ms-outline: none !important;
    box-shadow: none !important;
    border: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
  }

  button,
  button:focus,
  button:active,
  button:hover {
    outline: none !important;
    -webkit-tap-highlight-color: transparent !important;
  }

  input,
  input:focus,
  input:active {
    outline: none !important;
    -webkit-tap-highlight-color: transparent !important;
  }

  a,
  a:focus,
  a:active {
    outline: none !important;
    -webkit-tap-highlight-color: transparent !important;
  }

  [tabindex],
  [tabindex]:focus,
  [tabindex]:active {
    outline: none !important;
    -webkit-tap-highlight-color: transparent !important;
  }

  /* Eliminar highlights en elementos específicos del reproductor */
  .social-btn,
  .social-btn:focus,
  .social-btn:active,
  .social-btn:hover,
  .mini-play-pause-btn,
  .mini-play-pause-btn:focus,
  .mini-play-pause-btn:active,
  .mini-play-pause-btn:hover,
  .progress-bar,
  .progress-bar:focus,
  .progress-bar:active,
  .progress,
  .progress:focus,
  .progress:active,
  .volume-btn,
  .volume-btn:focus,
  .volume-btn:active,
  .volume-btn:hover,
  .volume-toggle-btn,
  .volume-toggle-btn:focus,
  .volume-toggle-btn:active,
  .volume-toggle-btn:hover,
  .album-cover,
  .album-cover:focus,
  .album-cover:active,
  .album-cover-container,
  .album-cover-container:focus,
  .album-cover-container:active,
  .theme-toggle,
  .theme-toggle:focus,
  .theme-toggle:active,
  .theme-toggle:hover,
  svg,
  svg:focus,
  svg:active,
  path,
  path:focus,
  path:active {
    -webkit-tap-highlight-color: transparent !important;
    outline: none !important;
    border: none !important;
  }

  /* Estilos para el botón de compartir */

  .share-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
  }

  .share-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
  }

  .share-btn:active {
    transform: scale(0.95);
  }

  /* Efecto de click para Web Share API */
  .share-btn.sharing {
    animation: share-pulse 0.6s ease;
  }

  @keyframes share-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); box-shadow: 0 0 0 10px rgba(102, 126, 234, 0.3); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(102, 126, 234, 0); }
  }

  /* Indicador de éxito */
  .share-btn.success {
    background: linear-gradient(135deg, #27ae60, #2ecc71) !important;
    animation: share-success 1s ease;
  }

  @keyframes share-success {
    0% { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
    50% { background: linear-gradient(135deg, #27ae60, #2ecc71); transform: scale(1.1); }
    100% { background: linear-gradient(135deg, #27ae60, #2ecc71); transform: scale(1); }
  }



  /* Modo oscuro para el botón de compartir */
  body.dark-theme .share-btn {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  }

  /* Estilos para el modal de compartir */
  .share-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
  }

  .share-modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
  }

  .share-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px 15px 25px;
    border-bottom: 1px solid #eee;
  }

  .share-modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
  }

  .close-share-modal {
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    outline: none !important;
    -webkit-tap-highlight-color: transparent !important;
  }

  .close-share-modal:hover {
    color: #666;
  }

  .share-options {
    padding: 20px 25px 25px 25px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .share-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 15px;
    border-radius: 12px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
    outline: none !important;
    -webkit-tap-highlight-color: transparent !important;
  }

  .share-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  }

  .share-option svg {
    width: 24px;
    height: 24px;
    margin-bottom: 8px;
  }

  .share-option span {
    font-size: 14px;
  }

  .share-option.facebook {
    background: linear-gradient(135deg, #1877f2, #42a5f5);
  }

  .share-option.twitter {
    background: linear-gradient(135deg, #1da1f2, #0d8bd9);
  }

  .share-option.whatsapp {
    background: linear-gradient(135deg, #25d366, #128c7e);
  }

  .share-option.instagram {
    background: linear-gradient(135deg, #e1306c, #fd1d1d, #fcb045);
  }

  /* Modo oscuro para el modal */
  body.dark-theme .share-modal-content {
    background-color: #2c3e50;
    color: white;
  }

  body.dark-theme .share-modal-header {
    border-bottom: 1px solid #34495e;
  }

  body.dark-theme .share-modal-header h3 {
    color: white;
  }

  body.dark-theme .close-share-modal {
    color: #bdc3c7;
  }

  body.dark-theme .close-share-modal:hover {
    color: white;
  }

  /* Animación del modal */
  @keyframes modalSlideIn {
    from {
      opacity: 0;
      transform: translateY(-50px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  body {
    /* Modo claro por defecto */
    background: linear-gradient(135deg, #f5f7fa, #c3cfe2);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #2c3e50;
    font-family: Arial, sans-serif;
    padding: 0;
    transition: all 0.3s ease;
  }

  /* Modo oscuro */
  body.dark-theme {
    background: linear-gradient(135deg, #1a237e, #0d47a1);
    color: white;
  }

  .player {
    /* Modo claro por defecto */
    background: linear-gradient(135deg, #f5f7fa, #c3cfe2);
    padding: 20px;
    padding-bottom: 120px; /* Espacio para mini reproductor */
    width: 100%;
    height: 100vh;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
    transition: all 0.3s ease;
  }

  /* Modo oscuro */
  body.dark-theme .player {
    background: linear-gradient(135deg, #1a237e, #0d47a1);
  }

  .album-cover-container {
    width: 180px;
    height: 180px;
    position: relative;
    overflow: hidden;
    margin: 0 auto -15px auto;
    border-radius: 12px;
    aspect-ratio: 1/1;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
    z-index: 100; /* Por encima del visualizador */
    flex-shrink: 0; /* Evita que se deforme */
    min-width: 0; /* Resetea min-width por defecto */
    min-height: 0; /* Resetea min-height por defecto */
  }

  .album-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
    border-radius: 15px;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    background-size: cover;
    display: block;
    aspect-ratio: 1/1;
  }

  .album-cover:not([src]), .album-cover[src=""] {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .album-cover:not([src])::after, .album-cover[src=""]::after {
    content: "♪";
    font-size: 2.7rem;
    color: rgba(255, 255, 255, 0.7);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  }

  .album-cover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255,0,0,0.3), rgba(0,255,255,0.3));
    mix-blend-mode: overlay;
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .album-cover-container:hover .album-cover {
    transform: scale(1.05);
  }

  .album-cover-container:hover .album-cover-overlay {
    opacity: 1;
  }

  .audio-info {
    margin: -15px 0;
    color: #2c3e50; /* Modo claro por defecto */
    font-weight: bold;
    font-size: 1.3em;
    min-height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    flex-shrink: 0;
    text-align: center;
    gap: 2px;
    transition: color 0.3s ease;
    position: relative;
    z-index: 100; /* Por encima del visualizador */
  }

  /* Modo oscuro */
  body.dark-theme .audio-info {
    color: white;
  }

  .metadata-row-1,
  .metadata-row-2 {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .metadata-row-1 {
    margin-bottom: 5px;
  }

  .metadata-row-2 {
    margin-bottom: 15px;
  }

  .audio-info div {
    margin: 0;
    text-align: center;
    word-wrap: break-word;
    max-width: 90%;
    line-height: 1.2;
  }

  #song-title {
    font-size: 1.4em;
    font-weight: bold;
  }

  #artist-name {
    font-size: 1.1em;
    opacity: 0.8;
    font-weight: normal;
  }

  /* Indicador de estado de conexión */
  .connection-status {
    margin-top: 10px;
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
  }

  .connection-status.show {
    opacity: 1;
    transform: translateY(0);
  }

  .connection-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 500;
    transition: all 0.3s ease;
  }

  /* Estados del indicador */
  .connection-status.reconnecting .connection-indicator {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
    animation: reconnecting-pulse 1.5s ease-in-out infinite;
  }

  .connection-status.offline .connection-indicator {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
  }

  .connection-status.error .connection-indicator {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
  }

  .connection-status.online .connection-indicator {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
  }

  .connection-icon {
    font-size: 1em;
    animation: connection-icon-spin 2s linear infinite;
  }

  .connection-status.online .connection-icon {
    animation: none;
  }

  .connection-status.offline .connection-icon {
    animation: none;
  }

  /* Animaciones */
  @keyframes reconnecting-pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
  }

  @keyframes connection-icon-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }

  /* Modo oscuro para el indicador de conexión */
  body.dark-theme .connection-status.reconnecting .connection-indicator {
    background: linear-gradient(135deg, #f39c12, #d68910);
  }

  body.dark-theme .connection-status.offline .connection-indicator {
    background: linear-gradient(135deg, #e74c3c, #cb4335);
  }

  body.dark-theme .connection-status.error .connection-indicator {
    background: linear-gradient(135deg, #e74c3c, #cb4335);
  }

  body.dark-theme .connection-status.online .connection-indicator {
    background: linear-gradient(135deg, #27ae60, #239b56);
  }

  /* Botones de redes sociales */
  .social-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: nowrap;
  }

  .social-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    z-index: 1000; /* Asegurar que estén por encima del visualizador */
  }

  .social-btn svg {
    width: 22px;
    height: 22px;
    transition: transform 0.3s ease;
    z-index: 2;
  }

  .social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  }

  .social-btn:hover svg {
    transform: scale(1.1);
  }

  /* Facebook */
  .social-btn.facebook {
    background: linear-gradient(135deg, #4267B2, #365899);
    color: white;
  }

  .social-btn.facebook:hover {
    background: linear-gradient(135deg, #365899, #2d4373);
    box-shadow: 0 8px 25px rgba(66, 103, 178, 0.4);
  }

  /* Instagram */
  .social-btn.instagram {
    background: linear-gradient(135deg, #E4405F, #C13584, #833AB4);
    color: white;
  }

  .social-btn.instagram:hover {
    background: linear-gradient(135deg, #C13584, #833AB4, #5B51D8);
    box-shadow: 0 8px 25px rgba(225, 48, 108, 0.4);
  }

  /* Twitter */
  .social-btn.twitter {
    background: linear-gradient(135deg, #1DA1F2, #0d8bd9);
    color: white;
  }

  .social-btn.twitter:hover {
    background: linear-gradient(135deg, #0d8bd9, #0a6fa8);
    box-shadow: 0 8px 25px rgba(29, 161, 242, 0.4);
  }

  /* Gmail */
  .social-btn.gmail {
    background: linear-gradient(135deg, #EA4335, #FBBC05, #34A853);
    color: white;
  }

  .social-btn.gmail:hover {
    background: linear-gradient(135deg, #d33b2c, #e6ac00, #2e8b47);
    box-shadow: 0 8px 25px rgba(234, 67, 53, 0.4);
  }







  
  
  


  
  



  /* Mini reproductor */
  .mini-player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 90px;
    /* Degradado vibrante y elegante - Modo claro */
    background: linear-gradient(135deg, 
      rgba(74, 144, 226, 0.95) 0%,
      rgba(116, 185, 255, 0.95) 25%,
      rgba(0, 204, 255, 0.95) 50%,
      rgba(9, 132, 227, 0.95) 75%,
      rgba(106, 90, 205, 0.9) 100%
    );
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    z-index: 1000;
    box-shadow: 
      0 -4px 30px rgba(0, 0, 0, 0.15),
      0 -1px 8px rgba(0, 0, 0, 0.1),
      inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
    animation: slideUpFadeIn 0.6s ease-out;
    overflow: hidden;
  }

  /* Capa de degradado animado adicional para modo claro */
  .mini-player::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(
      90deg,
      transparent 0%,
      rgba(255, 255, 255, 0.1) 25%,
      rgba(0, 255, 153, 0.15) 50%,
      rgba(255, 255, 255, 0.1) 75%,
      transparent 100%
    );
    animation: shimmerEffect 3s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
  }

  @keyframes shimmerEffect {
    0% {
      left: -100%;
    }
    100% {
      left: 100%;
    }
  }

  /* Animación de entrada elegante */
  @keyframes slideUpFadeIn {
    0% {
      transform: translateY(100%);
      opacity: 0;
    }
    100% {
      transform: translateY(0);
      opacity: 1;
    }
  }

  .mini-player:hover {
    background: linear-gradient(135deg, 
      rgba(74, 144, 226, 1) 0%,
      rgba(116, 185, 255, 1) 25%,
      rgba(0, 204, 255, 1) 50%,
      rgba(9, 132, 227, 1) 75%,
      rgba(106, 90, 205, 0.95) 100%
    );
    box-shadow: 
      0 -6px 40px rgba(0, 0, 0, 0.2),
      0 -2px 12px rgba(0, 0, 0, 0.15),
      inset 0 1px 0 rgba(255, 255, 255, 0.4),
      0 0 30px rgba(116, 185, 255, 0.3);
    transform: translateY(-2px);
  }

  .mini-player:hover::after {
    animation-duration: 2s;
  }

  /* Modo oscuro mejorado - sin efectos de shimmer */
  body.dark-theme .mini-player::after {
    display: none;
  }

  /* Modo oscuro mejorado */
  body.dark-theme .mini-player {
    background: linear-gradient(135deg, 
      rgba(30, 60, 114, 0.95), 
      rgba(42, 82, 152, 0.95),
      rgba(45, 55, 72, 0.9)
    );
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 
      0 -4px 30px rgba(0, 0, 0, 0.3),
      0 -1px 8px rgba(0, 0, 0, 0.2),
      inset 0 1px 0 rgba(255, 255, 255, 0.1);
  }

  body.dark-theme .mini-player:hover {
    box-shadow: 
      0 -6px 40px rgba(0, 0, 0, 0.4),
      0 -2px 12px rgba(0, 0, 0, 0.25),
      inset 0 1px 0 rgba(255, 255, 255, 0.15);
  }

  .mini-player-content {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 20px;
    gap: 18px;
    position: relative;
    z-index: 2;
  }

  /* Barra de progreso sutil en la parte superior */
  .mini-player::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(
      90deg,
      rgba(0, 255, 153, 0.8),
      rgba(0, 204, 122, 0.8),
      rgba(0, 255, 153, 0.8)
    );
    background-size: 200% 100%;
    animation: progressFlow 3s linear infinite;
    opacity: 0;
    transition: opacity 0.5s ease;
  }

  .mini-player.playing::before {
    opacity: 1;
  }

  @keyframes progressFlow {
    0% {
      background-position: -200% 0;
    }
    100% {
      background-position: 200% 0;
    }
  }

  .mini-cover-container {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
    box-shadow: 
      0 4px 15px rgba(0, 0, 0, 0.2),
      0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .mini-cover-container:hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 
      0 6px 20px rgba(0, 0, 0, 0.25),
      0 3px 12px rgba(0, 0, 0, 0.15);
  }

  .mini-cover-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.2) 0%,
      transparent 50%,
      rgba(0, 0, 0, 0.1) 100%
    );
    z-index: 1;
    pointer-events: none;
    border-radius: 12px;
  }

  /* Efecto de glow cuando está reproduciéndose */
  .mini-cover-container.playing {
    animation: coverGlow 2s ease-in-out infinite alternate;
  }

  .mini-cover-container.playing::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(
      45deg,
      rgba(0, 255, 153, 0.6),
      rgba(116, 185, 255, 0.6),
      rgba(0, 255, 153, 0.6)
    );
    border-radius: 14px;
    z-index: -1;
    filter: blur(6px);
    opacity: 0.8;
    animation: rotateGlow 4s linear infinite;
  }

  @keyframes coverGlow {
    0% {
      box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.2),
        0 2px 8px rgba(0, 0, 0, 0.1),
        0 0 20px rgba(0, 255, 153, 0.3);
    }
    100% {
      box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.25),
        0 3px 12px rgba(0, 0, 0, 0.15),
        0 0 30px rgba(0, 255, 153, 0.5);
    }
  }

  @keyframes rotateGlow {
    0% {
      transform: rotate(0deg);
    }
    100% {
      transform: rotate(360deg);
    }
  }

  .mini-album-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    transition: transform 0.3s ease;
  }

  .mini-cover-container:hover .mini-album-cover {
    transform: scale(1.1);
  }

  .mini-info {
    flex-grow: 1;
    text-align: left;
    overflow: hidden;
    min-width: 0;
    padding-right: 10px;
  }

  .mini-song-title {
    color: white;
    font-weight: 700;
    font-size: 1.5em;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    margin-bottom: 4px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    animation: slideTextSmooth 20s linear infinite;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
  }

  .mini-song-title:hover {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  }

  .mini-artist-name {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.2em;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    animation: slideTextSmooth 22s linear infinite;
    animation-delay: 3s;
    letter-spacing: 0.2px;
    transition: all 0.3s ease;
  }

  .mini-artist-name:hover {
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  }

  /* Animación deslizante suave y elegante para los títulos del mini reproductor */
  @keyframes slideTextSmooth {
    0% {
      transform: translateX(100%);
    }
    15% {
      transform: translateX(0%);
    }
    85% {
      transform: translateX(0%);
    }
    100% {
      transform: translateX(-100%);
    }
  }

  .mini-controls {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
  }

  .mini-play-button {
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 
      0 4px 15px rgba(0, 0, 0, 0.2),
      inset 0 1px 0 rgba(255, 255, 255, 0.3);
  }

  .mini-play-button::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.4),
      transparent,
      rgba(255, 255, 255, 0.2)
    );
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .mini-play-button:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
    box-shadow: 
      0 6px 20px rgba(0, 0, 0, 0.25),
      inset 0 1px 0 rgba(255, 255, 255, 0.4);
  }

  .mini-play-button:hover::before {
    opacity: 1;
  }

  .mini-play-button:active {
    transform: scale(0.95);
  }

  .mini-play-button.playing {
    background: linear-gradient(135deg, 
      rgba(0, 255, 153, 0.9), 
      rgba(0, 204, 122, 0.9)
    );
    border-color: rgba(0, 255, 153, 0.8);
    animation: playingPulse 2s ease-in-out infinite;
    box-shadow: 
      0 4px 20px rgba(0, 255, 153, 0.4),
      inset 0 1px 0 rgba(255, 255, 255, 0.3);
  }

  .mini-play-button.playing:hover {
    background: linear-gradient(135deg, 
      rgba(0, 255, 153, 1), 
      rgba(0, 204, 122, 1)
    );
    box-shadow: 
      0 6px 25px rgba(0, 255, 153, 0.5),
      inset 0 1px 0 rgba(255, 255, 255, 0.4);
  }

  @keyframes playingPulse {
    0%, 100% {
      box-shadow: 
        0 4px 20px rgba(0, 255, 153, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
    50% {
      box-shadow: 
        0 4px 25px rgba(0, 255, 153, 0.6),
        0 0 15px rgba(0, 255, 153, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
  }

  .mini-play-icon,
  .mini-pause-icon {
    transition: all 0.3s ease;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
    width: 40px !important;
    height: 40px !important;
    min-width: 40px;
    min-height: 40px;
  }

  .mini-play-button:hover .mini-play-icon,
  .mini-play-button:hover .mini-pause-icon {
    transform: scale(1.1);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
  }

  /* Toggle de tema en esquina superior izquierda */
  .theme-toggle-container {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1001;
  }

  .theme-toggle {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
  }

  .theme-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  }

  .theme-toggle svg {
    width: 24px;
    height: 24px;
    color: #2c3e50;
    transition: transform 0.3s ease;
  }

  /* Modo oscuro para el toggle */
  body.dark-theme .theme-toggle {
    background: rgba(30, 60, 114, 0.9);
  }

  body.dark-theme .theme-toggle svg {
    color: white;
  }

  /* Contenedor para controles superiores derechos */
  .top-right-controls {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    z-index: 1001;
  }

  /* Indicador EN VIVO */
  .live-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(139, 0, 0, 0.9);
    padding: 8px 12px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 0, 0, 0.3);
  }

  .live-dot {
    width: 8px;
    height: 8px;
    background: #ff0000;
    border-radius: 50%;
    animation: livePulse 2s ease-in-out infinite;
    box-shadow: 0 0 8px rgba(255, 0, 0, 0.6);
  }

  .live-text {
    color: #ffffff;
    font-size: 0.8em;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  }

  @keyframes livePulse {
    0%, 100% {
      opacity: 1;
      transform: scale(1);
      box-shadow: 0 0 8px rgba(255, 0, 0, 0.6);
    }
    50% {
      opacity: 0.7;
      transform: scale(1.1);
      box-shadow: 0 0 12px rgba(255, 0, 0, 0.8);
    }
  }

  /* === CONTROL DE VOLUMEN FLOTANTE === */
  .floating-volume-container {
    position: relative;
    z-index: 1000;
  }

  /* Botón flotante de volumen */
  .volume-toggle-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    /* Modo claro por defecto */
    background: linear-gradient(135deg, rgba(116, 185, 255, 0.9), rgba(74, 144, 226, 0.9));
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1001;
  }

  /* Modo oscuro para el botón */
  body.dark-theme .volume-toggle-btn {
    background: linear-gradient(135deg, rgba(30, 60, 114, 0.9), rgba(26, 35, 126, 0.9));
  }

  /* Hover del botón */
  .volume-toggle-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
  }

  /* Contenedor deslizante - RESTAURADO A ORIGINAL */
  .volume-slider-container {
    position: absolute;
    top: 60px;
    right: 0;
    width: 60px;
    height: 200px;
    /* Modo claro por defecto */
    background: linear-gradient(135deg, rgba(116, 185, 255, 0.95), rgba(74, 144, 226, 0.95));
    backdrop-filter: blur(15px);
    border-radius: 30px;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transform: translateY(-100%) scale(0.8);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
  }

  /* Modo oscuro para el contenedor */
  body.dark-theme .volume-slider-container {
    background: linear-gradient(135deg, rgba(30, 60, 114, 0.95), rgba(26, 35, 126, 0.95));
  }

  /* Estado visible del contenedor */
  .volume-slider-container.visible {
    transform: translateY(0) scale(1);
    opacity: 1;
    visibility: visible;
  }

  /* Barra de volumen vertical - ORIGINAL */
  .volume-slider-container input[type="range"] {
    -webkit-appearance: none;
    width: 6px;
    height: 140px;
    background: rgba(255, 255, 255, 0.3);
    outline: none;
    border-radius: 3px;
    writing-mode: bt-lr; /* IE */
    -webkit-appearance: slider-vertical; /* WebKit */
    transform: rotate(180deg);
    cursor: pointer;
  }

  /* Thumb de la barra de volumen - ORIGINAL */
  .volume-slider-container input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: linear-gradient(45deg, #00ff99, #00cc7a);
    cursor: pointer;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 255, 153, 0.4);
    transition: all 0.2s ease;
  }

  .volume-slider-container input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 3px 12px rgba(0, 255, 153, 0.6);
  }

  .volume-slider-container input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: linear-gradient(45deg, #00ff99, #00cc7a);
    cursor: pointer;
    border-radius: 50%;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 255, 153, 0.4);
  }

  /* Porcentaje de volumen - ORIGINAL */
  .volume-percentage {
    color: white;
    font-size: 12px;
    font-weight: bold;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    min-height: 16px;
  }

  /* Animaciones individuales para cada barra */



  /* Optimización para móviles - pantalla completa */
  @media (max-width: 768px) {
    body {
      padding: 0;
    }
    
    .player {
      padding: 15px;
      padding-bottom: 100px;
      height: 100vh;
      width: 100vw;
      justify-content: center;
    }

    .album-cover-container {
      width: 280px;
      height: 280px;
      aspect-ratio: 1/1;
      margin-bottom: 15px;
    }

    .album-cover:not([src])::after, .album-cover[src=""]::after {
      font-size: 3.5rem;
    }

    .audio-info {
      font-size: 1.1em;
      min-height: 100px;
      margin: 15px 0;
      gap: 6px;
    }

    .social-buttons {
      gap: 10px;
    }

    .social-btn {
      width: 50px;
      height: 50px;
    }

    .social-btn svg {
      width: 26px;
      height: 26px;
    }



    .share-modal-content {
      width: 95%;
      margin: 5% auto;
    }

    .share-options {
      grid-template-columns: repeat(2, 1fr);
      gap: 12px;
    }

    .share-option {
      padding: 15px 10px;
    }





    .mini-player {
      height: 115px;
      /* Degradado vibrante también en tablets */
      background: linear-gradient(135deg, 
        rgba(74, 144, 226, 0.95) 0%,
        rgba(116, 185, 255, 0.95) 25%,
        rgba(0, 204, 255, 0.95) 50%,
        rgba(9, 132, 227, 0.95) 75%,
        rgba(106, 90, 205, 0.9) 100%
      );
      box-shadow: 
        0 -6px 35px rgba(0, 0, 0, 0.2),
        0 -2px 10px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }

    .mini-player:hover {
      background: linear-gradient(135deg, 
        rgba(74, 144, 226, 1) 0%,
        rgba(116, 185, 255, 1) 25%,
        rgba(0, 204, 255, 1) 50%,
        rgba(9, 132, 227, 1) 75%,
        rgba(106, 90, 205, 0.95) 100%
      );
      box-shadow: 
        0 -8px 45px rgba(0, 0, 0, 0.25),
        0 -3px 15px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        0 0 35px rgba(116, 185, 255, 0.4);
    }

    .mini-player-content {
      padding: 0 18px;
      gap: 16px;
    }

    .mini-cover-container {
      width: 70px;
      height: 70px;
      border-radius: 14px;
      box-shadow: 
        0 5px 18px rgba(0, 0, 0, 0.25),
        0 3px 10px rgba(0, 0, 0, 0.15);
    }

    .mini-song-title {
      font-size: 1.6em;
      margin-bottom: 5px;
    }

    .mini-artist-name {
      font-size: 1.3em;
    }

    .mini-controls {
      gap: 12px;
    }

    .mini-play-button {
      width: 75px;
      height: 75px;
      box-shadow: 
        0 5px 18px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }

    .mini-play-button:hover {
      transform: scale(1.03);
    }

    .top-right-controls {
      top: 15px;
      right: 15px;
      gap: 10px;
    }
    
    .live-indicator {
      padding: 6px 10px;
    }
    
    .live-text {
      font-size: 0.7em;
    }
    
    .live-dot {
      width: 6px;
      height: 6px;
    }
    
    .top-right-controls {
      top: 15px;
      right: 15px;
      gap: 12px;
    }
    
    .volume-toggle-btn {
      width: 45px;
      height: 45px;
    }
    
    .theme-toggle-container {
      top: 15px;
      left: 15px;
    }
    
    .theme-toggle {
      width: 45px;
      height: 45px;
    }
    
    .theme-toggle svg {
      width: 20px;
      height: 20px;
    }
  }

  /* Optimización específica para móviles muy pequeños */
  @media (max-width: 480px) {
    .player {
      padding: 10px;
      padding-bottom: 110px;
    }

    .album-cover-container {
      width: 224px !important;
      height: 224px !important;
      aspect-ratio: 1/1;
      margin-bottom: 20px;
      flex-shrink: 0;
    }

    .album-cover:not([src])::after, .album-cover[src=""]::after {
      font-size: 2.8rem;
    }

    .audio-info {
      font-size: 1em;
      min-height: 90px;
      margin: 20px 0;
      gap: 8px;
    }

    #song-title {
      font-size: 1.2em;
    }

    #artist-name {
      font-size: 1.0em;
    }

    .social-buttons {
      gap: 6px;
    }

    .social-btn {
      width: 45px;
      height: 45px;
    }

    .social-btn svg {
      width: 22px;
      height: 22px;
    }



    .mini-player {
      height: 95px;
      /* Degradado vibrante también en móviles pequeños */
      background: linear-gradient(135deg, 
        rgba(74, 144, 226, 0.95) 0%,
        rgba(116, 185, 255, 0.95) 25%,
        rgba(0, 204, 255, 0.95) 50%,
        rgba(9, 132, 227, 0.95) 75%,
        rgba(106, 90, 205, 0.9) 100%
      );
      box-shadow: 
        0 -4px 25px rgba(0, 0, 0, 0.25),
        0 -1px 8px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }

    .mini-player:hover {
      background: linear-gradient(135deg, 
        rgba(74, 144, 226, 1) 0%,
        rgba(116, 185, 255, 1) 25%,
        rgba(0, 204, 255, 1) 50%,
        rgba(9, 132, 227, 1) 75%,
        rgba(106, 90, 205, 0.95) 100%
      );
      box-shadow: 
        0 -6px 30px rgba(0, 0, 0, 0.3),
        0 -2px 12px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        0 0 25px rgba(116, 185, 255, 0.3);
    }

    .mini-player-content {
      padding: 0 15px;
      gap: 12px;
    }

    .mini-cover-container {
      width: 58px;
      height: 58px;
      border-radius: 10px;
      box-shadow: 
        0 3px 12px rgba(0, 0, 0, 0.2),
        0 2px 6px rgba(0, 0, 0, 0.1);
    }

    .mini-song-title {
      font-size: 1.3em;
      margin-bottom: 3px;
    }

    .mini-artist-name {
      font-size: 1.1em;
    }

    .mini-controls {
      gap: 8px;
    }

    .mini-play-button {
      width: 65px;
      height: 65px;
      box-shadow: 
        0 3px 12px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }

    .mini-play-button:hover {
      transform: scale(1.02);
    }

    .top-right-controls {
      top: 10px;
      right: 10px;
      gap: 8px;
    }
    
    .live-indicator {
      padding: 5px 8px;
    }
    
    .live-text {
      font-size: 0.65em;
    }
    
    .live-dot {
      width: 5px;
      height: 5px;
    }
    
    .top-right-controls {
      top: 10px;
      right: 10px;
      gap: 10px;
    }
    
    .volume-toggle-btn {
      width: 40px;
      height: 40px;
    }
    
    .volume-slider-container {
      width: 50px;
      height: 160px;
    }
    
    .theme-toggle-container {
      top: 10px;
      left: 10px;
    }
    
    .theme-toggle {
      width: 40px;
      height: 40px;
    }
    
    .theme-toggle svg {
      width: 18px;
      height: 18px;
    }
  }

  /* Optimización para tablets en orientación horizontal */
  @media (min-width: 769px) and (max-width: 1024px) and (orientation: landscape) {
    .album-cover-container {
      width: 140px;
      height: 140px;
      aspect-ratio: 1/1;
      margin: 0 auto 12px auto;
    }

    .audio-info {
      margin: 12px 0;
      gap: 5px;
    }

    .social-btn {
      width: 40px;
      height: 40px;
    }

    .social-btn svg {
      width: 20px;
      height: 20px;
    }



    .share-modal-content {
      width: 95%;
      margin: 5% auto;
    }
  }

  /* Optimización para pantallas grandes */
  @media (min-width: 1025px) {
    .album-cover-container {
      width: 180px;
      height: 180px;
      aspect-ratio: 1/1;
    }

    .audio-info {
      font-size: 1.3em;
      margin: 35px 0;
      min-height: 130px;
    }

    .social-buttons {
      gap: 15px;
    }

    .social-btn {
      width: 45px;
      height: 45px;
    }

    .social-btn svg {
      width: 23px;
      height: 23px;
    }
  }

  /* Optimización para móviles en orientación horizontal */
  @media (max-width: 768px) and (orientation: landscape) {
    .album-cover-container {
      width: 126px !important;
      height: 126px !important;
      aspect-ratio: 1/1;
      margin-bottom: 12px;
      flex-shrink: 0;
    }

    .album-cover:not([src])::after, .album-cover[src=""]::after {
      font-size: 3.5rem;
    }

    .player {
      justify-content: center;
      padding: 10px;
      padding-bottom: 110px;
    }

    .audio-info {
      font-size: 0.9em;
      min-height: 80px;
      margin: 15px 0;
    }

    .social-buttons {
      gap: 6px;
    }

    .social-btn {
      width: 45px;
      height: 45px;
    }

    .social-btn svg {
      width: 22px;
      height: 22px;
    }





    .mini-player {
      height: 100px;
    }
  }

  /* Media query adicional para pantallas muy pequeñas */
  @media (max-width: 480px) {
    .album-cover-container {
      width: min(168px, 85vw);
      height: min(168px, 85vw);
      aspect-ratio: 1/1;
      max-width: 168px;
      max-height: 168px;
    }
    
    .album-cover:not([src])::after, .album-cover[src=""]::after {
      font-size: 2.8rem;
    }
  }

  /* Media query para pantallas extremadamente pequeñas */
  @media (max-width: 360px) {
    .album-cover-container {
      width: min(168px, 80vw) !important;
      height: min(168px, 80vw) !important;
      aspect-ratio: 1/1;
      max-width: 168px;
      max-height: 168px;
    }
    
    .album-cover:not([src])::after, .album-cover[src=""]::after {
      font-size: 2.1rem;
    }
  }

  /* Botón flotante de WhatsApp */
  .whatsapp-float {
    position: fixed;
    bottom: 100px;
    right: 20px;
    z-index: 1000;
    animation: bounce 2s infinite;
  }

  .whatsapp-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    outline: none !important;
    -webkit-tap-highlight-color: transparent !important;
    position: relative;
    overflow: hidden;
  }

  /* Efecto de ondas al hacer click */
  .whatsapp-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
  }

  .whatsapp-btn:active::before {
    width: 120px;
    height: 120px;
  }

  .whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
  }

  /* Botón flotante de descarga */
  .download-float {
    position: fixed;
    bottom: 100px;
    right: 140px;
    z-index: 1000;
    animation: bounce 2s infinite;
  }

  .download-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #4285f4, #1a73e8);
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(66, 133, 244, 0.4);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    outline: none !important;
    -webkit-tap-highlight-color: transparent !important;
    position: relative;
    overflow: hidden;
  }

  /* Efecto de ondas al hacer click */
  .download-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
  }

  .download-btn:active::before {
    width: 120px;
    height: 120px;
  }

  .download-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(66, 133, 244, 0.6);
  }

  .download-btn svg {
    width: 32px;
    height: 32px;
    color: white;
  }

  /* Botón flotante de PayPal */
  .paypal-float {
    position: fixed;
    bottom: 100px;
    right: 260px;
    z-index: 1000;
    animation: bounce 2s infinite;
  }

  .paypal-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #0070ba, #003087);
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(0, 112, 186, 0.4);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    outline: none !important;
    -webkit-tap-highlight-color: transparent !important;
    position: relative;
    overflow: hidden;
  }

  .paypal-icon {
    width: 50px;
    height: 50px;
    background-image: url('paypal-icon.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 50%;
  }

  /* Efecto de ondas al hacer click */
  .paypal-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
  }

  .paypal-btn:active::before {
    width: 120px;
    height: 120px;
  }

  .paypal-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 112, 186, 0.6);
  }

  .whatsapp-btn svg {
    width: 32px;
    height: 32px;
    color: white;
    transition: transform 0.3s ease;
    z-index: 2;
    position: relative;
  }

  .whatsapp-btn:hover svg {
    transform: scale(1.1);
  }

  /* Indicador de carga/procesamiento */
  .whatsapp-btn.processing {
    animation: whatsapp-pulse 1s infinite;
  }

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

  /* Mensaje desplegable de WhatsApp */
  .whatsapp-message {
    position: absolute;
    bottom: 300px;
    right: 20px; /* Seguir al botón WhatsApp */
    width: 250px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 9999;
  }

  .whatsapp-message.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0); /* Posición normal sin translateX */
  }

  .whatsapp-message-content {
    padding: 15px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
  }

  .whatsapp-message-text {
    flex: 1;
    font-size: 14px;
    color: #333;
    line-height: 1.4;
    font-weight: 500;
  }

  .whatsapp-message-close {
    background: none;
    border: none;
    font-size: 18px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    outline: none !important;
    -webkit-tap-highlight-color: transparent !important;
  }

  .whatsapp-message-close:hover {
    background: #f0f0f0;
    color: #666;
  }

  .whatsapp-message-arrow {
    position: absolute;
    bottom: -8px;
    right: 25px; /* Ajustar flecha al mensaje alineado con botón */
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid white;
    z-index: 9999;
  }

  /* Animación de rebote */
  @keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
      transform: translateY(0);
    }
    40% {
      transform: translateY(-10px);
    }
    60% {
      transform: translateY(-5px);
    }
  }

  /* Modo oscuro para el botón de WhatsApp */
  body.dark-theme .whatsapp-btn {
    background: linear-gradient(135deg, #25d366, #20b15a);
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
  }

  body.dark-theme .whatsapp-btn:hover {
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.7);
  }

  /* Modo oscuro para el mensaje de WhatsApp */
  body.dark-theme .whatsapp-message {
    background: #2c3e50;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  }

  body.dark-theme .whatsapp-message-text {
    color: #ecf0f1;
  }

  body.dark-theme .whatsapp-message-close {
    color: #bdc3c7;
  }

  body.dark-theme .whatsapp-message-close:hover {
    background: #34495e;
    color: #ecf0f1;
  }

  body.dark-theme .whatsapp-message-arrow {
    border-top-color: #2c3e50;
  }

  /* Modo oscuro para el botón de descarga */
  body.dark-theme .download-btn {
    background: linear-gradient(135deg, #3367d6, #1557c9);
    box-shadow: 0 4px 20px rgba(51, 103, 214, 0.5);
  }

  body.dark-theme .download-btn:hover {
    box-shadow: 0 6px 25px rgba(51, 103, 214, 0.7);
  }

  /* Modo oscuro para el botón de PayPal */
  body.dark-theme .paypal-btn {
    background: linear-gradient(135deg, #0066cc, #003d99);
    box-shadow: 0 4px 20px rgba(0, 102, 204, 0.5);
  }

  body.dark-theme .paypal-btn:hover {
    box-shadow: 0 6px 25px rgba(0, 102, 204, 0.7);
  }

  /* Responsive para dispositivos móviles */
  @media (max-width: 768px) {
    .whatsapp-float {
      bottom: 110px !important;
      right: 30px !important;
    }

    .whatsapp-btn {
      width: 55px;
      height: 55px;
    }

    .whatsapp-btn svg {
      width: 28px;
      height: 28px;
    }

    .whatsapp-message {
      width: 220px;
      bottom: 200px !important;
      right: 30px !important; /* Seguir al botón WhatsApp */
      z-index: 9999 !important;
    }

    .whatsapp-message-content {
      padding: 12px;
    }

    /* Responsive para botón de descarga */
    .download-float {
      bottom: 110px !important;
      right: 150px !important;
    }

    .download-btn {
      width: 55px;
      height: 55px;
    }

    .download-btn svg {
      width: 28px;
      height: 28px;
    }

    /* Responsive para botón de PayPal */
    .paypal-float {
      bottom: 110px !important;
      right: 270px !important;
    }

    .paypal-btn {
      width: 55px;
      height: 55px;
    }

    .paypal-icon {
      width: 45px;
      height: 45px;
    }
  }

    .whatsapp-message-text {
      font-size: 13px;
    }
  }

  @media (max-width: 480px) {
    .whatsapp-float {
      bottom: 90px !important;
      right: 20px !important;
    }

    .whatsapp-btn {
      width: 50px;
      height: 50px;
    }

    .whatsapp-btn svg {
      width: 26px;
      height: 26px;
    }

    .whatsapp-message {
      width: 200px;
      bottom: 170px !important;
      right: 20px !important; /* Seguir al botón WhatsApp */
      z-index: 9999 !important;
    }

    .whatsapp-message-content {
      padding: 10px;
    }

    .whatsapp-message-text {
      font-size: 12px;
    }

    .whatsapp-message-arrow {
      right: 35px; /* Ajustar flecha al mensaje alineado con botón */
    }

    /* Botones de descarga y PayPal para pantallas muy pequeñas */
    .download-float {
      bottom: 90px !important;
      right: 90px !important;
    }

    .download-btn {
      width: 50px;
      height: 50px;
    }

    .download-btn svg {
      width: 26px;
      height: 26px;
    }

    .paypal-float {
      bottom: 90px !important;
      right: 160px !important;
    }

    .paypal-btn {
      width: 50px;
      height: 50px;
    }

    .paypal-icon {
      width: 40px;
      height: 40px;
    }
  }

  /* Responsive para tablets - misma posición que móviles 768px */
  @media (min-width: 769px) and (max-width: 1024px) {
    .whatsapp-float {
      bottom: 110px !important;
      right: 30px !important;
    }

    .download-float {
      bottom: 110px !important;
      right: 150px !important;
    }

    .paypal-float {
      bottom: 110px !important;
      right: 270px !important;
    }

    .whatsapp-message {
      bottom: 200px !important;
      right: 30px !important; /* Seguir al botón WhatsApp */
      z-index: 9999 !important;
    }

    .whatsapp-message-arrow {
      right: 35px; /* Ajustar flecha al mensaje alineado con botón */
    }

    .whatsapp-btn, .download-btn, .paypal-btn {
      width: 55px;
      height: 55px;
    }

    .whatsapp-btn svg, .download-btn svg {
      width: 28px;
      height: 28px;
    }

    .paypal-icon {
      width: 45px;
      height: 45px;
    }
  }