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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #0a0a0a;
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 20px 100px 20px;
    position: relative;
}

/* Efecto de fondo dinámico */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at 20% 50%, rgba(29, 78, 216, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 50%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
                linear-gradient(180deg, #0a0a0a 0%, #1a1a1a 100%);
}

/* Partículas flotantes */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: float 8s infinite linear;
}

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

.app {
    max-width: 1400px;
    width: 100%;
    background: rgba(18, 18, 18, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* Header */
.header {
    padding: 30px 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    font-size: 32px;
    filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.5));
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, #fff 0%, #a5b4fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-badge {
    background: rgba(59, 130, 246, 0.2);
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 12px;
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.header-actions {
    display: flex;
    gap: 15px;
}

.action-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px;
    border-radius: 30px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 18px;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

/* Search */
.search-container {
    position: relative;
    max-width: 400px;
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.5);
}

.search-input {
    width: 100%;
    padding: 16px 20px 16px 55px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 40px;
    color: white;
    font-size: 16px;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #3b82f6;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Categories */
.categories-section {
    padding: 30px 40px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.section-count {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

.section-link {
    color: #3b82f6;
    cursor: pointer;
    font-size: 14px;
    transition: color 0.3s ease;
}

.section-link:hover {
    color: #8b5cf6;
}

.categories-scroll {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: none;
}

.categories-scroll::-webkit-scrollbar {
    display: none;
}

.category-chip {
    padding: 12px 28px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 40px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-size: 15px;
}

.category-chip:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.category-chip.active {
    background: #3b82f6;
    border-color: #3b82f6;
    color: white;
    box-shadow: 0 10px 20px -10px rgba(59, 130, 246, 0.5);
}

/* Radios Grid */
.radios-section {
    padding: 0 40px 40px;
}

.radios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.radio-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.radio-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.radio-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.5);
}

.radio-card:hover::before {
    opacity: 1;
}

.radio-card.active {
    border: 2px solid #3b82f6;
    background: rgba(59, 130, 246, 0.1);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.3);
}

.radio-content {
    position: relative;
    z-index: 1;
    flex: 1;
}

.radio-icon {
    font-size: 48px;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.radio-card:hover .radio-icon {
    transform: rotate(10deg) scale(1.1);
}

.radio-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

.radio-genre {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 10px;
}

.radio-stats {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 10px;
}

.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: rgba(239, 68, 68, 0.2);
    border-radius: 40px;
    color: #ef4444;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 15px;
    width: fit-content;
}

.live-dot {
    width: 6px;
    height: 6px;
    background: #ef4444;
    border-radius: 50%;
    animation: blink 1s infinite;
}

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

/* Botones de compartir - Solo iconos */
.share-buttons {
    display: flex;
    gap: 12px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 2;
    justify-content: center;
}

.share-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    color: white;
    backdrop-filter: blur(5px);
}

.share-icon.whatsapp {
    background: rgba(37, 211, 102, 0.2);
    border: 1px solid rgba(37, 211, 102, 0.3);
}

.share-icon.whatsapp:hover {
    background: #25d366;
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
}

.share-icon.facebook {
    background: rgba(24, 119, 242, 0.2);
    border: 1px solid rgba(24, 119, 242, 0.3);
}

.share-icon.facebook:hover {
    background: #1877f2;
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 5px 15px rgba(24, 119, 242, 0.4);
}

.share-icon.copy {
    background: rgba(139, 92, 246, 0.2);
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.share-icon.copy:hover {
    background: #8b5cf6;
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 5px 15px rgba(139, 92, 246, 0.4);
}

/* Tooltip para copiado */
.tooltip {
    position: fixed;
    background: #3b82f6;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    z-index: 10000;
    pointer-events: none;
    animation: fadeInOut 2s ease;
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.3);
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0; transform: translateY(10px); }
    10%, 90% { opacity: 1; transform: translateY(0); }
}

/* Loading */
.loading {
    text-align: center;
    padding: 60px;
    color: rgba(255, 255, 255, 0.5);
    display: none;
}

.loading.show {
    display: block;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(59, 130, 246, 0.1);
    border-radius: 50%;
    border-top-color: #3b82f6;
    animation: spin 1s ease-in-out infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== REPRODUCTOR FIJO EN EL PIE ===== */
.fixed-player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 16px 30px;
    z-index: 1000;
    box-shadow: 0 -10px 30px -10px rgba(0, 0, 0, 0.5);
}

.player-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 30px;
}

.player-info-mini {
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 250px;
}

.player-art-mini {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 10px 20px -5px rgba(59, 130, 246, 0.5);
}

.player-details-mini {
    flex: 1;
}

.player-label-mini {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.player-title-mini {
    font-size: 16px;
    font-weight: 600;
    color: white;
    margin-bottom: 2px;
}

.player-genre-mini {
    font-size: 12px;
    color: #3b82f6;
}

.player-controls-mini {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
    justify-content: center;
}

.control-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

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

.control-btn.play-pause {
    background: #3b82f6;
    color: white;
    width: 48px;
    height: 48px;
    font-size: 20px;
    box-shadow: 0 5px 15px -3px rgba(59, 130, 246, 0.5);
}

.control-btn.play-pause:hover {
    background: #2563eb;
    transform: scale(1.05);
}

.volume-control-mini {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 150px;
}

.volume-icon-mini {
    color: rgba(255, 255, 255, 0.5);
    font-size: 18px;
}

.volume-slider-mini {
    flex: 1;
    height: 4px;
    -webkit-appearance: none;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    outline: none;
}

.volume-slider-mini::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}

.volume-slider-mini::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    background: #3b82f6;
}

.player-time {
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    min-width: 100px;
    text-align: right;
}

/* Ocultar el audio original */
#main-audio {
    display: none;
}

/* Responsive */
@media (max-width: 900px) {
    .player-content {
        flex-wrap: wrap;
        gap: 15px;
    }

    .player-info-mini {
        min-width: 100%;
        order: 1;
    }

    .player-controls-mini {
        order: 2;
        flex: 1;
    }

    .volume-control-mini {
        order: 3;
        min-width: 120px;
    }

    .player-time {
        order: 4;
        min-width: auto;
    }
}

@media (max-width: 600px) {
    body {
        padding: 10px 10px 120px 10px;
    }
    
    .header {
        padding: 20px;
    }
    
    .categories-section {
        padding: 20px;
    }
    
    .radios-section {
        padding: 0 20px 20px;
    }
    
    .fixed-player {
        padding: 12px 15px;
    }

    .player-controls-mini {
        gap: 10px;
    }

    .volume-control-mini {
        display: none;
    }

    .player-time {
        display: none;
    }
    
    .share-buttons {
        gap: 8px;
    }
    
    .share-icon {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
}