:root {
    --primary: #c9008c;
    --secondary: #121212;
    --accent: #bd003f;
    --text: #ffffff;
    --background: #0a0a0a;
    --glow: 0 0 20px rgba(255, 0, 255, 0.596);
}

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

body {
    font-family: 'Poppins', sans-serif;
    background: var(--background);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Sfondo animato */
.animated-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.wave {
    position: absolute;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, #000000, #6940ff, #050004);
    opacity: 0.1;
    animation: wave 20s infinite linear;
}

.wave:nth-child(2) {
    animation-delay: -5s;
    opacity: 0.05;
}

.wave:nth-child(3) {
    animation-delay: -10s;
    opacity: 0.07;
}

@keyframes wave {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Menu di navigazione */
.nav-menu {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
}

.nav-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.nav-item {
    position: relative;
    color: var(--text);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.nav-item i {
    font-size: 1.2rem;
    z-index: 1;
    transition: transform 0.3s ease;
}

.nav-item span {
    font-size: 0.8rem;
    z-index: 1;
}

.nav-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(129, 1, 119, 0.849);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.nav-item:hover .nav-glow,
.nav-item.active .nav-glow {
    transform: translateY(0);
}

.nav-item:hover i,
.nav-item.active i {
    transform: translateY(-3px);
}

/* Container principale */
.container {
    max-width: 1200px;
    margin: 80px auto 0;
    padding: 2rem;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.glass-effect {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Player Section */
.player-section {
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

/* Audio Visualizer */
.audio-visualizer {
    display: flex;
    justify-content: center;
    gap: 4px;
    height: 60px;
    margin-bottom: 2rem;
}

.bar {
    width: 4px;
    background: var(--primary);
    border-radius: 2px;
    animation: soundBars 1.2s infinite ease;
}

.bar:nth-child(2n) { animation-delay: 0.2s; }
.bar:nth-child(3n) { animation-delay: 0.4s; }
.bar:nth-child(4n) { animation-delay: 0.6s; }

@keyframes soundBars {
    0%, 100% { height: 15px; }
    50% { height: 45px; }
}

/* Album Container */
.album-container {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto 2rem;
}

.album-ring {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    animation: ringRotate 10s linear infinite;
}

.album-art {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: var(--glow);
}

.album-art.rotating {
    animation: rotate 20s linear infinite;
}

.album-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

@keyframes ringRotate {
    100% { transform: rotate(-360deg); }
}

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

.marquee {
    overflow: hidden;
    white-space: nowrap;
}

.track-title {
    display: inline-block;
    color: var(--primary);
    animation: marquee 15s linear infinite;
}

@keyframes marquee {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Controls */
.controls {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.play-pause-btn {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    background: var(--primary);
    color: var(--secondary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
}

.btn-ripple {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: scale(0);
    animation: ripple 1s infinite;
}

@keyframes ripple {
    to {
        transform: scale(2);
        opacity: 0;
    }
}

/* Volume Control */
.volume-control {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.volume-slider {
    flex-grow: 1;
    position: relative;
}

.volume-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
    transition: height 0.2s ease;
}

.volume-bar:hover,
.volume-bar.dragging {
    height: 6px;
}

.volume-handle {
    width: 16px;
    height: 16px;
    background: var(--primary);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    cursor: grab;
    box-shadow: var(--glow);
    transition: transform 0.2s ease, width 0.2s ease, height 0.2s ease;
}

.volume-handle:hover,
.volume-bar.dragging .volume-handle {
    transform: translateY(-50%) scale(1.2);
    cursor: grabbing;
}

.volume-progress {
    height: 100%;
    background: var(--primary);
    border-radius: 2px;
    position: relative;
    transition: width 0.1s ease;
}

/* Disabilita la selezione del testo durante il trascinamento */
.volume-bar.dragging {
    user-select: none;
}

.volume-handle {
    width: 16px;
    height: 16px;
    background: var(--primary);
    border-radius: 50%;
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: var(--glow);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.volume-handle:hover {
    transform: translateY(-50%) scale(1.2);
}

/* Info Section */
.info-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.live-pulse {
    width: 10px;
    height: 10px;
    background: #ff4081;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

.glow-text {
    color: var(--primary);
    text-shadow: var(--glow);
}

/* Social Links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-btn {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    background: rgba(255, 255, 255, 0.1);
    text-decoration: none;
    transition: all 0.3s ease;
    overflow: hidden;
}

.hover-float:hover {
    transform: translateY(-5px);
}

.social-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-btn:hover .social-glow {
    opacity: 0.2;
}

/* Animazioni */
@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}

.pulse-icon {
    animation: pulse 2s infinite;
}

/* Media Queries */
@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

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

    .nav-menu {
        bottom: 0;
        top: auto;
    }

    .nav-item span {
        display: none;
    }
}

/* Stili per il popup */
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1001;
    backdrop-filter: blur(5px);
}

.popup-content {
    position: relative;
    background: rgba(18, 18, 18, 0.95);
    margin: 5% auto;
    padding: 20px;
    width: 90%;
    max-width: 600px;
    border-radius: 15px;
    border: 1px solid rgba(255, 0, 212, 0.1);
    box-shadow: 0 0 20px rgba(212, 0, 255, 0.2);
}

.close-popup {
    position: absolute;
    right: 15px;
    top: 10px;
    color: var(--primary);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-popup:hover {
    transform: scale(1.1);
    color: #ff4081;
}
@media screen and (max-width: 768px) {
    .hide-on-mobile {
        display: none !important;
    }
}