/* ============================================
   PANDA-CONECT RADIO MUSIC v2.5.0
   Estilos Cyberpunk / Gamer / Neon
   ============================================ */

/* Reset y Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --neon-purple: #b829dd;
    --neon-pink: #ff2d95;
    --neon-cyan: #00f0ff;
    --neon-green: #39ff14;
    --neon-blue: #2979ff;
    --dark-bg: #0a0a0f;
    --darker-bg: #050508;
    --card-bg: rgba(15, 15, 25, 0.85);
    --text-primary: #e0e0e0;
    --text-secondary: #8892b0;
    --border-glow: rgba(184, 41, 221, 0.3);
    --font-display: 'Orbitron', sans-serif;
    --font-body: 'Rajdhani', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--dark-bg);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
}

/* ============================================
   FONDO ANIMADO - PARTÍCULAS
   ============================================ */
#particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(184, 41, 221, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(0, 240, 255, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(57, 255, 20, 0.05) 0%, transparent 50%),
        var(--dark-bg);
}

.particle {
    position: absolute;
    border-radius: 50%;
    opacity: 0;
    animation: float-particle linear infinite;
    filter: blur(1px);
}

@keyframes float-particle {
    0% {
        opacity: 0;
        transform: translateY(100vh) scale(0) rotate(0deg);
    }
    10% {
        opacity: 0.8;
    }
    90% {
        opacity: 0.8;
    }
    100% {
        opacity: 0;
        transform: translateY(-10vh) scale(1) rotate(720deg);
    }
}

/* ============================================
   SCANLINES CRT
   ============================================ */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.08) 0px,
        rgba(0, 0, 0, 0.08) 1px,
        transparent 1px,
        transparent 3px
    );
    pointer-events: none;
    z-index: 9999;
    opacity: 0.4;
}

/* ============================================
   HEADER
   ============================================ */
.main-header {
    position: relative;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 3rem;
    background: rgba(10, 10, 15, 0.7);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glow);
    animation: slideDown 0.8s ease-out;
}

@keyframes slideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-panda {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-pink));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    animation: pulse-glow 2s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(184, 41, 221, 0.5);
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(184, 41, 221, 0.5), 0 0 40px rgba(184, 41, 221, 0.2); }
    50% { box-shadow: 0 0 30px rgba(184, 41, 221, 0.8), 0 0 60px rgba(184, 41, 221, 0.4); }
}

.logo-text h1 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: #fff;
    text-transform: uppercase;
}

.logo-text .sub-title {
    font-family: var(--font-display);
    font-size: 0.85rem;
    color: var(--neon-cyan);
    letter-spacing: 4px;
    text-transform: uppercase;
    display: block;
    margin-top: -5px;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

/* Efecto Glitch */
.glitch {
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    animation: glitch-1 3s infinite;
    color: var(--neon-pink);
    z-index: -1;
}

.glitch::after {
    animation: glitch-2 3s infinite;
    color: var(--neon-cyan);
    z-index: -2;
}

@keyframes glitch-1 {
    0%, 90%, 100% { clip-path: inset(0 0 0 0); transform: translate(0); }
    92% { clip-path: inset(20% 0 60% 0); transform: translate(-3px, 2px); }
    94% { clip-path: inset(50% 0 30% 0); transform: translate(3px, -2px); }
    96% { clip-path: inset(10% 0 80% 0); transform: translate(-2px, 1px); }
}

@keyframes glitch-2 {
    0%, 90%, 100% { clip-path: inset(0 0 0 0); transform: translate(0); }
    91% { clip-path: inset(60% 0 10% 0); transform: translate(3px, -2px); }
    93% { clip-path: inset(30% 0 50% 0); transform: translate(-3px, 2px); }
    95% { clip-path: inset(80% 0 5% 0); transform: translate(2px, -1px); }
}

/* Server Status */
.server-status {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-family: var(--font-display);
    font-size: 0.75rem;
    letter-spacing: 1px;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    position: relative;
}

.status-dot.online {
    background: var(--neon-green);
    box-shadow: 0 0 10px var(--neon-green), 0 0 20px var(--neon-green);
    animation: blink 2s ease-in-out infinite;
}

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

.status-text {
    color: var(--neon-green);
    text-shadow: 0 0 8px rgba(57, 255, 20, 0.5);
}

.uptime {
    color: var(--text-secondary);
    font-family: 'Courier New', monospace;
    background: rgba(0,0,0,0.4);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    border: 1px solid rgba(57, 255, 20, 0.2);
}

/* ============================================
   CONTENIDO PRINCIPAL
   ============================================ */
.main-content {
    position: relative;
    z-index: 10;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 3rem 0 2rem;
    animation: fadeInUp 1s ease-out 0.3s both;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(184, 41, 221, 0.15);
    border: 1px solid var(--neon-purple);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--neon-purple);
    margin-bottom: 1.5rem;
    animation: pulse-border 2s infinite;
}

@keyframes pulse-border {
    0%, 100% { box-shadow: 0 0 5px rgba(184, 41, 221, 0.3); }
    50% { box-shadow: 0 0 20px rgba(184, 41, 221, 0.6); }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff, var(--neon-cyan), var(--neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* ============================================
   REPRODUCTOR PRINCIPAL
   ============================================ */
.player-section {
    margin: 2rem 0 4rem;
    animation: fadeInUp 1s ease-out 0.5s both;
}

.player-card {
    background: var(--card-bg);
    border: 1px solid var(--border-glow);
    border-radius: 24px;
    padding: 2.5rem;
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 0 40px rgba(184, 41, 221, 0.1),
        inset 0 1px 0 rgba(255,255,255,0.05);
}

.player-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg,
        transparent 0%,
        rgba(184, 41, 221, 0.1) 10%,
        transparent 20%,
        rgba(0, 240, 255, 0.1) 30%,
        transparent 40%,
        rgba(57, 255, 20, 0.1) 50%,
        transparent 60%,
        rgba(255, 45, 149, 0.1) 70%,
        transparent 80%,
        rgba(41, 121, 255, 0.1) 90%,
        transparent 100%
    );
    animation: rotate-slow 20s linear infinite;
    pointer-events: none;
}

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

.player-inner {
    position: relative;
    z-index: 2;
}

/* Visualizador */
.visualizer-container {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 4px;
    height: 80px;
    margin-bottom: 2rem;
    padding: 1rem;
    background: rgba(0,0,0,0.3);
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.05);
}

.visualizer-bar {
    width: 6px;
    background: linear-gradient(to top, var(--neon-purple), var(--neon-cyan));
    border-radius: 3px;
    transition: height 0.1s ease;
    opacity: 0.8;
}

.visualizer-bar:nth-child(odd) {
    background: linear-gradient(to top, var(--neon-pink), var(--neon-green));
}

/* Info de la canción */
.now-playing {
    text-align: center;
    margin-bottom: 2rem;
}

.now-playing .genre-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    display: block;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.now-playing h2 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    margin-bottom: 0.3rem;
    color: #fff;
}

.now-playing .genre-label {
    display: inline-block;
    padding: 0.3rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.now-playing p {
    color: var(--text-secondary);
    font-size: 1rem;
}

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

.control-btn {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-primary);
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.control-btn:hover {
    background: rgba(184, 41, 221, 0.2);
    border-color: var(--neon-purple);
    box-shadow: 0 0 20px rgba(184, 41, 221, 0.3);
    transform: scale(1.1);
}

.control-btn.play-btn {
    width: 75px;
    height: 75px;
    font-size: 1.8rem;
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-pink));
    border: none;
    box-shadow: 0 0 30px rgba(184, 41, 221, 0.4);
    animation: pulse-glow 2s ease-in-out infinite;
}

.control-btn.play-btn:hover {
    transform: scale(1.15);
    box-shadow: 0 0 50px rgba(184, 41, 221, 0.6);
}

/* Volumen */
.volume-control {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.volume-control i {
    color: var(--neon-cyan);
    font-size: 1.1rem;
}

.volume-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 200px;
    height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
    outline: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
    transition: transform 0.2s;
}

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

/* ============================================
   SELECTOR DE GÉNEROS
   ============================================ */
.genres-section {
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease-out 0.7s both;
}

.section-title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    text-align: center;
    margin-bottom: 2rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.genres-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.genre-card {
    background: var(--card-bg);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    padding: 2rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(15px);
}

.genre-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.genre-card:hover::before,
.genre-card.active::before {
    transform: scaleX(1);
}

.genre-card[data-genre="rock"]::before { background: linear-gradient(90deg, var(--neon-pink), #ff6b6b); }
.genre-card[data-genre="pop"]::before { background: linear-gradient(90deg, var(--neon-cyan), #4facfe); }
.genre-card[data-genre="electro"]::before { background: linear-gradient(90deg, var(--neon-green), #00ff88); }

.genre-card:hover,
.genre-card.active {
    transform: translateY(-8px);
    border-color: transparent;
}

.genre-card[data-genre="rock"]:hover,
.genre-card[data-genre="rock"].active {
    box-shadow: 0 10px 40px rgba(255, 45, 149, 0.2), 0 0 60px rgba(255, 45, 149, 0.1);
    border-color: rgba(255, 45, 149, 0.3);
}

.genre-card[data-genre="pop"]:hover,
.genre-card[data-genre="pop"].active {
    box-shadow: 0 10px 40px rgba(0, 240, 255, 0.2), 0 0 60px rgba(0, 240, 255, 0.1);
    border-color: rgba(0, 240, 255, 0.3);
}

.genre-card[data-genre="electro"]:hover,
.genre-card[data-genre="electro"].active {
    box-shadow: 0 10px 40px rgba(57, 255, 20, 0.2), 0 0 60px rgba(57, 255, 20, 0.1);
    border-color: rgba(57, 255, 20, 0.3);
}

.genre-icon-big {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    display: block;
}

.genre-card h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.genre-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.genre-status {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    background: rgba(0,0,0,0.3);
}

.genre-status .live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--neon-green);
    animation: blink 1.5s infinite;
}

.genre-status span {
    color: var(--neon-green);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================
   INFO SECTION
   ============================================ */
.info-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease-out 0.9s both;
}

.info-card {
    background: var(--card-bg);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    padding: 1.8rem;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(15px);
}

.info-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-glow);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.info-card i {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    display: block;
}

.info-card h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.info-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ============================================
   FOOTER
   ============================================ */
.main-footer {
    position: relative;
    z-index: 10;
    background: rgba(5, 5, 8, 0.95);
    border-top: 1px solid var(--border-glow);
    padding: 3rem 2rem 1rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-section p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    color: var(--text-secondary);
    padding: 0.4rem 0;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-section ul li:hover {
    color: var(--neon-cyan);
}

.social-links {
    display: flex;
    gap: 0.8rem;
    margin-top: 1rem;
}

.social-btn {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-btn:hover {
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-pink));
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(184, 41, 221, 0.4);
}

/* Server Stats en Footer */
.server-stats {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.stat {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.stat-label {
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    color: var(--text-secondary);
    width: 35px;
}

.stat-bar {
    flex: 1;
    height: 6px;
    background: rgba(255,255,255,0.08);
    border-radius: 3px;
    overflow: hidden;
}

.stat-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--neon-green), var(--neon-cyan));
    border-radius: 3px;
    animation: fill-bar 2s ease-out;
}

@keyframes fill-bar {
    from { width: 0%; }
}

.stat-value {
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    color: var(--neon-cyan);
    width: 35px;
    text-align: right;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-bottom p {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.neon-text {
    color: var(--neon-purple);
    text-shadow: 0 0 10px rgba(184, 41, 221, 0.5);
    font-weight: 700;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .main-header {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .logo-text h1 {
        font-size: 1.2rem;
    }

    .player-card {
        padding: 1.5rem;
    }

    .control-btn {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }

    .control-btn.play-btn {
        width: 60px;
        height: 60px;
        font-size: 1.4rem;
    }

    .volume-slider {
        width: 140px;
    }

    .genres-grid {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .main-content {
        padding: 1rem;
    }
}

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

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Scrollbar personalizada */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--darker-bg);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--neon-purple), var(--neon-pink));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--neon-pink), var(--neon-cyan));
}

/* Selección de texto */
::selection {
    background: rgba(184, 41, 221, 0.4);
    color: #fff;
}
