﻿/*
Theme Name: Farmacia de la Musica
Theme URI: https://qaps183.farmaciadelamusica.com
Author: FarmaciaMusica
Description: Tema de radio streaming con musica curada del dominio publico y libre de derechos
Version: 1.0.0
License: GPL v2 or later
Text Domain: farmacia-musica
*/

:root {
    --bg-dark: #0a0a0f;
    --bg-card: #12121a;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --accent: #4ade80;
    --accent-secondary: #22c55e;
    --player-color: #667eea;
    --accent-gradient: #764ba2;
    --transition-smooth: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ========================================
   HEADER
   ======================================== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.5rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(180deg, rgba(10,10,15,0.95) 0%, transparent 100%);
    backdrop-filter: blur(10px);
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-primary);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-secondary) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 8rem 2rem 4rem;
    position: relative;
}

.hero-bg {
    position: absolute;
    inset: 0;
    opacity: 0.4;
    background: radial-gradient(circle at 20% 50%, rgba(74, 222, 128, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(34, 197, 94, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hero h1 span {
    font-style: italic;
    color: var(--accent);
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 2rem;
}

/* Stats Bar */
.stats-bar {
    display: flex !important;
    justify-content: center !important;
    gap: 3rem !important;
    margin-top: 2rem !important;
    padding: 1.5rem 3rem !important;
    background: rgba(255,255,255,0.03) !important;
    border-radius: 100px !important;
    border: 1px solid rgba(255,255,255,0.05) !important;
}

.stat {
    text-align: center !important;
}

.stat-value {
    font-size: 1.5rem !important;
    font-weight: 600 !important;
    color: var(--accent) !important;
}

.stat-label {
    font-size: 0.75rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    color: var(--text-secondary) !important;
}

/* ========================================
   FILTROS
   ======================================== */

.filters {
    padding: 2rem 3rem !important;
    display: flex !important;
    gap: 1rem !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    position: sticky !important;
    top: 80px !important;
    background: var(--bg-dark) !important;
    z-index: 50 !important;
    border-bottom: 1px solid rgba(255,255,255,0.05) !important;
}

.filter-btn {
    background: rgba(255,255,255,0.05) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    color: var(--text-secondary) !important;
    padding: 0.6rem 1.5rem !important;
    border-radius: 100px !important;
    cursor: pointer !important;
    transition: var(--transition-smooth) !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    text-transform: capitalize !important;
    position: relative !important;
    overflow: hidden !important;
}

.filter-btn:hover,
.filter-btn.active {
    background: linear-gradient(135deg, var(--player-color) 0%, var(--accent-gradient) 100%) !important;
    border-color: transparent !important;
    color: white !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3) !important;
}

/* ========================================
   GRID DE CANALES - VERSIÓN ÚNICA Y CORREGIDA
   ======================================== */

.channels-section {
    padding: 2rem 3rem 6rem !important;
    max-width: 1400px !important;
    margin: 0 auto !important;
}

.section-title {
    font-size: 0.875rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.15em !important;
    color: var(--text-secondary) !important;
    margin-bottom: 2rem !important;
    display: flex !important;
    align-items: center !important;
    gap: 1rem !important;
}

.section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255,255,255,0.1);
}

/* GRID - ESTA ES LA DEFINICIÓN CORRECTA */
.channels-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)) !important;
    gap: 1.5rem !important;
    min-height: 300px !important;
}

/* TARJETAS DE CANAL - DEFINICIÓN ÚNICA */
.channel-card-link {
    text-decoration: none !important;
    color: inherit !important;
    display: block !important;
    transition: transform 0.3s ease !important;
}

.channel-card-link:hover {
    transform: translateY(-5px) !important;
}

.channel-card {
    position: relative !important;
    aspect-ratio: 4/3 !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    cursor: pointer !important;
    text-decoration: none !important;
    background: var(--bg-card) !important;
    transition: var(--transition-smooth) !important;
    border: 1px solid rgba(255,255,255,0.05) !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3) !important;
    color: white !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
    padding: 1.5rem !important;
}

.channel-card:hover {
    transform: translateY(-8px) scale(1.02) !important;
    box-shadow: 0 30px 60px -15px rgba(0,0,0,0.5) !important;
    border-color: rgba(255,255,255,0.1) !important;
}

.channel-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.8) 100%);
    z-index: 1;
    pointer-events: none;
}

.channel-card-content {
    position: relative !important;
    z-index: 2 !important;
    transform: translateY(10px);
    transition: transform 0.3s ease;
}

.channel-card:hover .channel-card-content {
    transform: translateY(0);
}

.channel-icon {
    font-size: 2.5rem !important;
    margin-bottom: 0.5rem !important;
    opacity: 0.9;
}

.channel-name {
    font-size: 1.3rem !important;
    font-weight: 600 !important;
    margin-bottom: 0.25rem !important;
    color: white !important;
}

.channel-tagline {
    font-size: 0.9rem !important;
    color: rgba(255,255,255,0.8) !important;
    margin-bottom: 0.75rem !important;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease 0.1s;
}

.channel-card:hover .channel-tagline {
    opacity: 1 !important;
    transform: translateY(0);
}

.channel-meta {
    display: flex !important;
    gap: 1rem !important;
    font-size: 0.75rem !important;
    color: rgba(255,255,255,0.7) !important;
}

.channel-meta span {
    color: rgba(255,255,255,0.7) !important;
}

/* Play Overlay */
.play-overlay {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) scale(0) !important;
    width: 60px !important;
    height: 60px !important;
    background: rgba(255,255,255,0.2) !important;
    backdrop-filter: blur(10px) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    z-index: 3 !important;
    pointer-events: none;
}

.channel-card:hover .play-overlay {
    transform: translate(-50%, -50%) scale(1) !important;
}

.play-overlay svg {
    width: 24px !important;
    height: 24px !important;
    fill: white !important;
    margin-left: 3px;
}

/* Skeletons */
.skeleton {
    background: linear-gradient(90deg, #2a2a3a 25%, #3a3a4a 50%, #2a2a3a 75%) !important;
    background-size: 200% 100% !important;
    animation: loading 1.5s infinite !important;
    border-radius: 16px !important;
    min-height: 210px !important;
}

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

/* Mensajes */
.error, .no-channels {
    text-align: center !important;
    padding: 3rem !important;
    color: var(--text-secondary) !important;
    font-size: 1.1rem !important;
    grid-column: 1 / -1 !important;
    background: transparent !important;
}

/* ========================================
   PLAYER
   ======================================== */

.player-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 2rem;
}

.bg-image {
    position: fixed;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background-size: cover;
    background-position: center;
    filter: blur(40px) brightness(0.3);
    z-index: -2;
    transition: background-image 0.8s ease;
    transform: scale(1.1);
}

.bg-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, transparent 0%, var(--bg-dark) 70%);
    z-index: -1;
}

.player-container {
    background: rgba(26, 26, 46, 0.85);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 3rem;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 25px 80px rgba(0,0,0,0.6),
                0 0 0 1px rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.1);
    position: relative;
    overflow: hidden;
}

.artwork-container {
    width: 280px;
    height: 280px;
    margin: 0 auto 2rem;
    position: relative;
    border-radius: 50%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5),
                0 0 0 10px rgba(255,255,255,0.05),
                0 0 0 20px rgba(255,255,255,0.02);
    transition: var(--transition-smooth);
}

.artwork-container.playing {
    animation: vinyl-spin 3s linear infinite;
}

#artwork {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.artwork-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    pointer-events: none;
    background: repeating-radial-gradient(
        transparent 0,
        transparent 2px,
        rgba(0,0,0,0.1) 3px,
        rgba(0,0,0,0.1) 4px
    );
    opacity: 0.6;
}

.artwork-overlay::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-card) 100%);
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.1);
    box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
}

.now-playing {
    text-align: center;
    margin-bottom: 2rem;
}

.track-info h2 {
    color: var(--player-color);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 600;
    opacity: 0.8;
}

.track-details {
    margin-top: 1rem;
}

.track-info h3 {
    color: #fff;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.track-info p {
    color: var(--text-secondary);
    margin: 0.3rem 0;
    font-size: 1rem;
}

#year {
    display: inline-block;
    background: rgba(255,255,255,0.1);
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

.progress-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.progress-bar {
    flex: 1;
    height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
}

#progressFill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--player-color) 0%, var(--accent-gradient) 100%);
    border-radius: 3px;
    transition: width 0.1s linear;
    position: relative;
}

.progress-container span {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-variant-numeric: tabular-nums;
    min-width: 40px;
}

.controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.control-btn {
    background: rgba(255,255,255,0.05);
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 1rem;
    border-radius: 50%;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.control-btn:hover {
    background: rgba(255,255,255,0.1);
    transform: scale(1.1);
    color: white;
}

.control-btn svg {
    fill: currentColor;
    position: relative;
    z-index: 1;
}

.play-btn {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--player-color) 0%, var(--accent-gradient) 100%);
    color: white;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.up-next {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1rem;
    background: rgba(0,0,0,0.2);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.05);
}

.up-next-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    letter-spacing: 2px;
    margin-bottom: 0.3rem;
    text-transform: uppercase;
}

#upNext {
    color: var(--text-primary);
    font-size: 0.9rem;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.back-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
    font-size: 0.9rem;
}

.back-link:hover {
    color: white;
}

.back-link svg {
    fill: currentColor;
    transition: transform 0.2s ease;
}

.back-link:hover svg {
    transform: translateX(-3px);
}

@keyframes vinyl-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1024px) {
    .channels-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)) !important;
    }
}

@media (max-width: 768px) {
    .site-header {
        padding: 1rem;
    }
    
    .hero {
        padding: 6rem 1rem 2rem;
    }
    
    .stats-bar {
        flex-direction: column !important;
        gap: 1rem !important;
        padding: 1.5rem !important;
        border-radius: 20px !important;
    }
    
    .filters {
        padding: 1rem !important;
        top: 70px !important;
    }
    
    .channels-section {
        padding: 1rem 1rem 4rem !important;
    }
    
    .channels-grid {
        grid-template-columns: 1fr !important;
    }
    
    .player-container {
        padding: 2rem 1.5rem;
        margin: 1rem;
    }
    
    .artwork-container {
        width: 220px;
        height: 220px;
    }
    
    .track-info h3 {
        font-size: 1.4rem;
    }
    
    .play-btn {
        width: 70px;
        height: 70px;
    }
}

/* ========================================
   ACCESIBILIDAD
   ======================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .artwork-container.playing {
        animation: none;
    }
}

.control-btn:focus-visible,
.filter-btn:focus-visible,
.back-link:focus-visible {
    outline: 2px solid var(--player-color);
    outline-offset: 2px;
}
/* ========================================
   FIX URGENTE - FORZAR VISIBILIDAD DE CANALES
   ======================================== */

.channels-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    gap: 1.5rem !important;
    min-height: 300px !important;
}

.channel-card-link {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.channel-card {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    min-height: 210px !important;
    background: linear-gradient(135deg, #667eea, #764ba2) !important;
    border-radius: 12px !important;
    padding: 1.5rem !important;
    color: white !important;
    position: relative !important;
    overflow: hidden !important;
}

.channel-card-content {
    position: relative !important;
    z-index: 2 !important;
}

.channel-icon {
    font-size: 2.5rem !important;
    margin-bottom: 0.5rem !important;
}

.channel-name {
    font-size: 1.25rem !important;
    font-weight: 600 !important;
    color: white !important;
}

.channel-tagline {
    font-size: 0.875rem !important;
    color: rgba(255,255,255,0.8) !important;
}

.channel-meta {
    display: flex !important;
    gap: 1rem !important;
    font-size: 0.75rem !important;
    color: rgba(255,255,255,0.7) !important;
}

.player-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.player-container {
    background: rgba(26, 26, 46, 0.95);
    border-radius: 24px;
    padding: 2.5rem;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 10;
}

/* Info del Canal */
.channel-info {
    text-align: center;
    margin-bottom: 1.5rem;
}

.channel-info h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    margin: 0 0 0.5rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Artwork */
.artwork-container {
    position: relative;
    width: 250px;
    height: 250px;
    margin: 0 auto 2rem;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.artwork-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.artwork-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.4) 100%);
    pointer-events: none;
}

/* Track Info */
.track-info {
    text-align: center;
    margin-bottom: 2rem;
}

.track-info h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
    margin: 0 0 0.5rem 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-info p {
    color: #a0a0b0;
    margin: 0.25rem 0;
    font-size: 0.9rem;
}

#year {
    display: inline-block;
    background: rgba(102, 126, 234, 0.2);
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    margin-top: 0.5rem;
}

/* Progress Bar */
.progress-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.progress-container span {
    font-size: 0.75rem;
    color: #666;
    font-variant-numeric: tabular-nums;
    min-width: 35px;
}

.progress-bar {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

#progressFill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s linear;
}

.progress-handle {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
}

.progress-bar:hover .progress-handle {
    opacity: 1;
}

/* Controls */
.controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.control-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 0.75rem;
    border-radius: 50%;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

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

.control-btn.play-btn {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.control-btn.play-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.4);
}

.control-btn svg {
    fill: currentColor;
}

/* Up Next */
.up-next {
    text-align: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.up-next-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #666;
    margin-bottom: 0.25rem;
}

#upNext {
    color: #a0a0b0;
    font-size: 0.9rem;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Back Link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
    margin-top: 1rem;
}

.back-link:hover {
    color: #fff;
}

.back-link svg {
    fill: currentColor;
}

/* Background */
.bg-image {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    filter: blur(60px) brightness(0.4);
    z-index: 1;
    transition: background-image 0.5s ease;
}

.bg-gradient {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(26, 26, 46, 0.8) 0%, rgba(22, 33, 62, 0.9) 100%);
    z-index: 2;
}

/* Responsive */
@media (max-width: 600px) {
    .player-page {
        padding: 1rem;
    }

    .player-container {
        padding: 1.5rem;
    }

    .artwork-container {
        width: 200px;
        height: 200px;
    }

    .track-info h2 {
        font-size: 1.1rem;
    }
}

/* Animaciones */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.playing .artwork-container img {
    animation: spin 20s linear infinite;
}

/* Error notification */
#error-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #e74c3c;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    z-index: 10000;
    display: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
/* Animaciones para el SPA */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

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

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

/* Scrollbar personalizada para playlist */
#player-playlist::-webkit-scrollbar {
    width: 6px;
}

#player-playlist::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.2);
    border-radius: 3px;
}

#player-playlist::-webkit-scrollbar-thumb {
    background: rgba(102,126,234,0.5);
    border-radius: 3px;
}

/* Hover effects */
#btn-play:hover {
    transform: scale(1.1) !important;
}

#btn-prev-song:hover, #btn-skip-song:hover {
    background: rgba(255,255,255,0.2) !important;
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
    #spa-player .player-inner {
        padding: 1rem !important;
    }
    
    #btn-prev-collection, #btn-next-collection {
        width: 36px !important;
        height: 36px !important;
        font-size: 16px !important;
    }
    
    #btn-prev-collection {
        left: -40px !important;
    }
    
    #btn-next-collection {
        right: -40px !important;
    }
}