/* Music Player Custom Styles */

@keyframes spin {
    to { transform: rotate(360deg); }
  }
  
  @keyframes cd-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
  }
  
  @keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
  }
  
  .player-container {
    margin: 2rem 0;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    border: 1px solid rgba(110, 240, 138, 0.1);
  }
  
  .now-playing {
    margin-bottom: 2rem;
  }
  
  .cd-display {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
  }
  
  .cd-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    position: relative;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(110, 240, 138, 0.1);
    animation: cd-rotate 20s linear infinite paused;
  }
  
  .cd-image.playing {
    animation-play-state: running;
  }
  
  .track-info {
    flex: 1;
    min-width: 200px;
  }
  
  .track-info h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--accent);
    word-wrap: break-word;
  }
  
  .custom-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
  }
  
  .control-btn {
    background: transparent;
    border: 2px solid var(--accent);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--accent);
  }
  
  .control-btn:hover {
    background: rgba(110, 240, 138, 0.1);
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(110, 240, 138, 0.3);
  }
  
  .control-btn:active {
    transform: scale(0.95);
  }
  
  .play-btn {
    width: 70px;
    height: 70px;
    border-width: 3px;
  }
  
  .volume-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 25px;
  }
  
  .volume-control input[type="range"] {
    width: 100px;
    cursor: pointer;
  }
  
  .volume-control input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
  }
  
  .volume-control input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent);
    border: none;
    cursor: pointer;
  }
  
  .progress-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
  }
  
  .progress-container span {
    font-family: 'Source Code Pro', monospace;
    font-size: 0.9rem;
    color: var(--muted);
    min-width: 45px;
    text-align: center;
  }
  
  .progress-container input[type="range"] {
    flex: 1;
    height: 6px;
    cursor: pointer;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.1);
  }
  
  .progress-container input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(110, 240, 138, 0.5);
  }
  
  .progress-container input[type="range"]::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent);
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(110, 240, 138, 0.5);
  }
  
  .search-box {
    margin: 1.5rem 0;
  }
  
  .search-box input {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--muted);
    font-family: 'Source Code Pro', monospace;
    font-size: 1rem;
    transition: all 0.3s ease;
  }
  
  .search-box input:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(110, 240, 138, 0.1);
  }
  
  /* Galería de Discos CD */
  .music-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    padding: 1rem 0;
  }
  
  .cd-item {
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
  }
  
  .cd-item:hover {
    transform: translateY(-8px);
  }
  
  .cd-cover {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    position: relative;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
  }
  
  .cd-item:hover .cd-cover {
    box-shadow: 0 12px 48px rgba(110, 240, 138, 0.3);
    animation: pulse 0.6s ease-in-out;
  }
  
  .cd-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid var(--accent);
    opacity: 0.3;
  }
  
  .cd-label {
    color: var(--accent);
    font-family: 'Source Code Pro', monospace;
    font-weight: 600;
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
  }
  
  .cd-title {
    margin-top: 0.5rem;
    font-family: 'Source Code Pro', monospace;
    font-size: 0.85rem;
    color: var(--muted);
    word-wrap: break-word;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
  
  /* Responsive */
  @media (max-width: 768px) {
    .music-gallery {
      grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
      gap: 1.5rem;
    }
    
    .cd-cover {
      width: 120px;
      height: 120px;
    }
  
    .custom-controls {
      gap: 1rem;
    }
  
    .control-btn {
      width: 45px;
      height: 45px;
    }
  
    .play-btn {
      width: 60px;
      height: 60px;
    }
  
    .cd-display {
      flex-direction: column;
      text-align: center;
    }
  
    .track-info {
      text-align: center;
    }
  }
  
  @media (max-width: 480px) {
    .music-gallery {
      grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
      gap: 1rem;
    }
  
    .cd-cover {
      width: 100px;
      height: 100px;
    }
  
    .cd-title {
      font-size: 0.75rem;
    }
  
    .player-container {
      padding: 1rem;
    }
  }