@charset "utf-8";
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@300;400;700;900&display=swap');

/* ================================================
   CSS Variables & Root Configuration
================================================ */
:root {
    --primary-color: #00ffff;
    --secondary-color: #ff00ff;
    --accent-color: #ffff00;
    --neon-blue: #00d4ff;
    --neon-blue-light: #66e4ff;
    --neon-purple: #9d4edd;
    --bg-dark: #0a0a0a;
    --bg-darker: #050505;
    --text-light: #ffffff;
    --text-muted: #cccccc;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow-glow: 0 0 20px var(--primary-color);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ================================================
   Base Styles
================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    font-family: 'Orbitron', monospace;
    font-weight: 300;
    color: var(--text-light);
    background: var(--bg-dark);
    overflow-x: hidden;
    overflow-y: hidden;
    height: 100vh;
    width: 100vw;
    max-width: 100vw;
}

/* ================================================
   Decorative layers disabled for stability
   (prevented screen shaking and player flicker)
================================================ */
.space-background,
.wave-background,
.geometric-shapes,
.reactive-grid {
    display: none !important;
}

/* ================================================
   Welcome Popup Notice
================================================ */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
    transition: all 0.3s ease;
}

.popup-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.popup-content {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.95), rgba(22, 33, 62, 0.95));
    border: 2px solid var(--primary-color);
    border-radius: 20px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 
        0 0 30px rgba(0, 255, 255, 0.3),
        0 20px 40px rgba(0, 0, 0, 0.5);
    animation: popupSlideIn 0.5s ease-out;
}

@keyframes popupSlideIn {
    0% {
        transform: translateY(-50px) scale(0.9);
        opacity: 0;
    }
    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.popup-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: var(--transition);
    z-index: 1;
}

.popup-close-btn:hover {
    background: var(--primary-color);
    color: var(--bg-dark);
    transform: scale(1.1);
    box-shadow: 0 0 15px var(--primary-color);
}

.popup-header {
    text-align: center;
    margin-bottom: 20px;
}

.popup-header h2 {
    font-size: 24px;
    font-weight: 400;
    color: var(--primary-color);
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.popup-body {
    margin-bottom: 25px;
    line-height: 1.6;
}

.popup-body p {
    margin-bottom: 15px;
    font-size: 16px;
}

.popup-body ul {
    list-style: none;
    padding-left: 0;
    margin: 15px 0;
}

.popup-body li {
    padding: 8px 0;
    font-size: 14px;
    color: var(--text-muted);
    border-left: 3px solid var(--secondary-color);
    padding-left: 15px;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0 8px 8px 0;
}

.popup-tip {
    font-size: 14px;
    color: var(--accent-color);
    text-align: center;
    padding: 15px;
    background: rgba(255, 255, 0, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 0, 0.3);
}

.popup-footer {
    text-align: center;
}

.popup-start-btn {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: var(--bg-dark);
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 255, 255, 0.3);
}

.popup-start-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 255, 255, 0.5);
}

/* Mobile popup adjustments */
@media (max-width: 600px) {
    .popup-content {
        padding: 20px;
        margin: 20px;
    }
    
    .popup-header h2 {
        font-size: 20px;
    }
    
    .popup-body p, .popup-body li {
        font-size: 13px;
    }
    
    .popup-start-btn {
        padding: 12px 25px;
        font-size: 14px;
    }
}

/* ================================================
   App Container & Background
================================================ */
.app-container {
    position: relative;
    width: 100%;
    max-width: 100vw;
    height: 100vh;
    overflow-x: hidden;
    background: linear-gradient(135deg, 
        #0c0c0c 0%, 
        #1a1a2e 25%, 
        #16213e 50%, 
        #0f0f23 75%, 
        #000000 100%
    );
}

/* Enhanced Space Background */
.space-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.stars {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #eee, transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.8), transparent),
        radial-gradient(1px 1px at 90px 40px, #fff, transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255,255,255,0.6), transparent),
        radial-gradient(2px 2px at 160px 30px, #ddd, transparent),
        radial-gradient(3px 3px at 300px 200px, var(--primary-color), transparent),
        radial-gradient(2px 2px at 500px 150px, var(--secondary-color), transparent),
        radial-gradient(1px 1px at 700px 300px, var(--accent-color), transparent);
    background-repeat: repeat;
    background-size: 400px 300px;
    animation: twinkle 4s ease-in-out infinite alternate;
}

/* Floating Particles */
.space-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(0, 255, 255, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 0, 255, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 255, 0, 0.2) 0%, transparent 50%);
    animation: floatingOrbs 15s ease-in-out infinite;
}

/* Nebula Effect */
.space-background::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(ellipse at 20% 30%, rgba(0, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 70%, rgba(255, 0, 255, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 10%, rgba(255, 255, 0, 0.08) 0%, transparent 50%);
    animation: nebulaRotate 30s linear infinite;
}

@keyframes twinkle {
    0% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
    100% { opacity: 0.6; transform: scale(0.9); }
}

@keyframes floatingOrbs {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -20px) scale(1.1); }
    50% { transform: translate(-20px, 30px) scale(0.9); }
    75% { transform: translate(20px, 10px) scale(1.05); }
}

@keyframes nebulaRotate {
    0% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(90deg) scale(1.1); }
    50% { transform: rotate(180deg) scale(1); }
    75% { transform: rotate(270deg) scale(0.9); }
    100% { transform: rotate(360deg) scale(1); }
}

/* ================================================
   Dynamic Wave Background
================================================ */
.wave-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 2;
    overflow: hidden;
    pointer-events: none;
}

.wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 100px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(0, 255, 255, 0.1) 25%, 
        rgba(255, 0, 255, 0.1) 50%, 
        rgba(255, 255, 0, 0.1) 75%, 
        transparent 100%);
    animation: waveMove 8s ease-in-out infinite;
}

.wave1 {
    animation-delay: 0s;
    animation-duration: 8s;
    opacity: 0.7;
}

.wave2 {
    animation-delay: -2s;
    animation-duration: 12s;
    opacity: 0.5;
    height: 80px;
    bottom: 20px;
}

.wave3 {
    animation-delay: -4s;
    animation-duration: 15s;
    opacity: 0.3;
    height: 60px;
    bottom: 40px;
}

@keyframes waveMove {
    0%, 100% { transform: translateX(-50%) rotateZ(0deg); }
    25% { transform: translateX(-45%) rotateZ(1deg); }
    50% { transform: translateX(-55%) rotateZ(-1deg); }
    75% { transform: translateX(-48%) rotateZ(0.5deg); }
}

/* ================================================
   Floating Geometric Shapes
================================================ */
.geometric-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 3;
    pointer-events: none;
    overflow: hidden;
}

.shape {
    position: absolute;
    opacity: 0.6;
    animation: float 20s linear infinite;
}

.triangle {
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-bottom: 25px solid var(--primary-color);
    top: 10%;
    left: 80%;
    animation-delay: 0s;
    filter: blur(1px);
}

.circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--secondary-color), transparent);
    top: 60%;
    left: 10%;
    animation-delay: -5s;
}

.hexagon {
    width: 30px;
    height: 17px;
    background: var(--accent-color);
    position: relative;
    top: 30%;
    left: 90%;
    animation-delay: -10s;
}

.hexagon:before {
    content: "";
    position: absolute;
    top: -8.5px;
    left: 0;
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-bottom: 8.5px solid var(--accent-color);
}

.hexagon:after {
    content: "";
    position: absolute;
    bottom: -8.5px;
    left: 0;
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 8.5px solid var(--accent-color);
}

.square {
    width: 25px;
    height: 25px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    transform: rotate(45deg);
    top: 80%;
    left: 70%;
    animation-delay: -15s;
}

@keyframes float {
    0% { 
        transform: translateY(100vh) translateX(0) rotate(0deg) scale(1);
        opacity: 0;
    }
    10% { opacity: 0.6; }
    90% { opacity: 0.6; }
    100% { 
        transform: translateY(-100px) translateX(50px) rotate(360deg) scale(0.5);
        opacity: 0;
    }
}

/* ================================================
   Music-Reactive Grid
================================================ */
.reactive-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 4;
    pointer-events: none;
    overflow: hidden;
    background-image: 
        linear-gradient(rgba(0, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 100px 100px;
    animation: gridPulse 4s ease-in-out infinite;
}

@keyframes gridPulse {
    0%, 100% { 
        opacity: 0.2; 
        transform: scale(1);
        background-size: 100px 100px;
    }
    50% { 
        opacity: 0.4; 
        transform: scale(1.02);
        background-size: 110px 110px;
    }
}

/* ================================================
   Main Layout - 3 Column Grid
================================================ */
.main-layout {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: 350px 1fr 380px;
    gap: 30px;
    height: 100vh;
    padding: 20px 20px 50px 20px; /* Added bottom padding for footer */
    max-width: 1600px;
    margin: 0 auto;
}

/* ================================================
   Left Column - Music Player
================================================ */
.left-column {
    display: flex;
    align-items: center;
    justify-content: center;
}

.music-player {
    width: 100%;
    max-width: 320px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    border: 1px solid var(--glass-border);
    padding: 30px;
    text-align: center;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.25), 0 20px 40px rgba(0, 0, 0, 0.3);
}

@keyframes neonGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(0, 255, 255, 0.25), 0 20px 40px rgba(0, 0, 0, 0.3); }
}

@keyframes neonGlowSecondary {
    0% { box-shadow: 0 0 15px rgba(255, 0, 255, 0.2), 0 20px 40px rgba(0, 0, 0, 0.3); }
    100% { box-shadow: 0 0 25px rgba(255, 0, 255, 0.4), 0 20px 40px rgba(0, 0, 0, 0.3); }
}

@keyframes neonGlowTertiary {
    0% { box-shadow: 0 0 15px rgba(255, 255, 0, 0.2), 0 20px 40px rgba(0, 0, 0, 0.3); }
    100% { box-shadow: 0 0 25px rgba(255, 255, 0, 0.3), 0 20px 40px rgba(0, 0, 0, 0.3); }
}

.player-header h1 {
    font-size: 22px;
    font-weight: 300;
    margin-bottom: 25px;
    letter-spacing: 1px;
    color: var(--neon-blue);
    text-shadow: 
        0 0 10px var(--neon-blue),
        0 0 20px var(--neon-blue),
        0 0 30px var(--neon-purple);
}

/* Album Cover */
.album-cover {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 20px;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
}

.album-cover:hover {
    transform: scale(1.05);
}

.album-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.album-cover:hover .play-overlay {
    opacity: 1;
}

.play-overlay i {
    font-size: 48px;
    color: var(--primary-color);
}

/* Track Info */
.track-info {
    margin-bottom: 25px;
}

.track-info h2 {
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 8px;
    color: var(--neon-blue-light);
    text-shadow: 
        0 0 8px var(--neon-blue),
        0 0 15px var(--neon-purple);
}

.track-info p {
    font-size: 14px;
    color: var(--neon-blue);
    opacity: 0.9;
    text-shadow: 0 0 5px var(--neon-blue);
}

/* Player Controls */
.player-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.control-btn {
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 50%;
    background: var(--glass-bg);
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    border: 1px solid var(--glass-border);
}

.control-btn:hover {
    background: var(--primary-color);
    color: var(--bg-dark);
    transform: scale(1.1);
    box-shadow: 0 0 15px var(--primary-color);
}

.play-btn {
    width: 60px;
    height: 60px;
    font-size: 20px;
    background: var(--primary-color);
    color: var(--bg-dark);
}

.play-btn:hover {
    background: var(--text-light);
    transform: scale(1.15);
}

/* Progress Section */
.progress-section {
    margin-bottom: 20px;
}

.time-display {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 12px;
    color: var(--neon-blue);
    text-shadow: 0 0 3px var(--neon-blue);
    opacity: 0.9;
}

.progress-bar {
    position: relative;
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    cursor: pointer;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s ease;
}

.progress-handle {
    position: absolute;
    top: 50%;
    left: 0%;
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    box-shadow: 0 0 10px var(--primary-color);
}

/* Volume Section */
.volume-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.volume-section i {
    color: var(--text-muted);
    font-size: 16px;
}

.volume-bar {
    position: relative;
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    cursor: pointer;
}

.volume-fill {
    height: 100%;
    background: var(--primary-color);
    border-radius: 2px;
    width: 70%;
    transition: width 0.1s ease;
}

.volume-handle {
    position: absolute;
    top: 50%;
    left: 70%;
    width: 10px;
    height: 10px;
    background: var(--primary-color);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
}

/* ================================================
   Center Column - Equalizer
================================================ */
.center-column {
    display: flex;
    align-items: center;
    justify-content: center;
}

.equalizer-container {
    text-align: center;
    width: 100%;
    max-width: 500px;
}

.equalizer-title {
    font-size: 18px;
    font-weight: 300;
    color: var(--neon-blue);
    margin-bottom: 30px;
    letter-spacing: 1px;
    text-shadow: 
        0 0 10px var(--neon-blue),
        0 0 20px var(--neon-blue),
        0 0 30px var(--neon-purple);
}

.equalizer-visual {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 8px;
    height: 250px;
    padding: 20px;
    background: var(--glass-bg);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.2), 0 20px 40px rgba(0, 0, 0, 0.3);
}

.eq-bar {
    width: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

/* eq-bar ::before removed — JS sets .eq-bar height directly with a static gradient */
.eq-bar {
    background: linear-gradient(to top, #00d4ff 0%, #0088ff 100%) !important;
    transition: height 0.15s linear;
}

/* ================================================
   Right Column - Playlist
================================================ */
.right-column {
    padding: 20px 0;
}

.playlist-container {
    height: 100%;
    background: var(--glass-bg);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    padding: 25px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 20px rgba(255, 255, 0, 0.15), 0 20px 40px rgba(0, 0, 0, 0.3);
}

.playlist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--glass-border);
}

.playlist-header h3 {
    font-size: 18px;
    font-weight: 400;
    color: var(--primary-color);
}

.track-count {
    font-size: 12px;
    color: var(--text-muted);
}

.playlist-scroll {
    flex: 1;
    overflow-y: auto;
    padding-right: 10px;
}

.playlist-scroll::-webkit-scrollbar {
    width: 6px;
}

.playlist-scroll::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.playlist-scroll::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

.track-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    margin-bottom: 8px;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
}

.track-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.track-item.active {
    background: rgba(0, 255, 255, 0.2);
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

.track-item.playing {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 15px rgba(0, 255, 255, 0.3); }
    50% { box-shadow: 0 0 25px rgba(0, 255, 255, 0.6); }
}

.track-number {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-color);
    min-width: 25px;
    text-align: center;
}

.track-details {
    flex: 1;
}

.track-title {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-light);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-artist {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-duration {
    font-size: 12px;
    color: var(--text-muted);
}

.track-album {
    font-size: 11px;
    color: var(--accent-color);
    font-weight: 400;
    opacity: 0.9;
}

/* ================================================
   Control Button States (Shuffle/Repeat)
================================================ */
.control-btn.active {
    transform: scale(1.05);
}

.control-btn[data-repeat="1"]::after {
    content: "1";
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--primary-color);
    color: #000;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    font-size: 10px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

/* ================================================
   Copyright Footer
================================================ */
.copyright-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 20px;
    z-index: 100;
}

.copyright-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.copyright-text {
    font-size: 11px;
    color: var(--neon-blue);
    margin: 0 0 2px 0;
    font-weight: 400;
    text-shadow: 
        0 0 5px var(--neon-blue),
        0 0 10px var(--neon-purple);
}

.copyright-details {
    font-size: 10px;
    color: var(--neon-blue-light);
    margin: 0;
    font-weight: 300;
    opacity: 0.9;
    text-shadow: 0 0 3px var(--neon-blue);
}

/* ================================================
   Audio Elements (Hidden)
================================================ */
.audio-elements {
    display: none;
}

/* ================================================
   Touch and Mobile Optimizations
================================================ */
@media (hover: none) and (pointer: coarse) {
    /* Mobile touch devices */
    .control-btn, .track-item, .album-cover {
        -webkit-tap-highlight-color: rgba(0, 255, 255, 0.3);
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        user-select: none;
    }
    
    .control-btn:active {
        transform: scale(0.95);
        background: var(--primary-color);
        color: var(--bg-dark);
    }
    
    .track-item:active {
        transform: translateX(10px) scale(0.98);
        background: rgba(0, 255, 255, 0.3);
    }
    
    .album-cover:active {
        transform: scale(0.95);
    }
    
    /* Larger touch targets for mobile */
    .progress-bar, .volume-bar {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    .progress-handle, .volume-handle {
        width: 20px;
        height: 20px;
        min-width: 20px;
        min-height: 20px;
    }
}

/* ================================================
   Enhanced Responsive Design
================================================ */
@media (max-width: 1200px) {
    .main-layout {
        grid-template-columns: 280px 1fr 300px;
        gap: 15px;
        padding: 15px;
    }
    
    .music-player {
        padding: 20px;
    }
    
    .album-cover {
        width: 160px;
        height: 160px;
    }
    
    .equalizer-visual {
        height: 200px;
        padding: 15px;
    }
    
    .eq-bar {
        width: 16px;
    }
}

@media (max-width: 968px) {
    .main-layout {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        gap: 20px;
        padding: 15px 15px 50px 15px;
        height: auto;
        overflow-y: auto;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .app-container {
        overflow-x: hidden;
        overflow-y: auto;
        height: auto;
        min-height: 100vh;
        padding: 10px 0;
    }

    body {
        overflow-x: hidden;
        overflow-y: auto;
        height: auto;
    }
    
    .left-column {
        order: 1;
    }
    
    .center-column {
        order: 2;
    }
    
    .right-column {
        order: 3;
    }
    
    .equalizer-visual {
        height: 180px;
        padding: 15px;
        gap: 6px;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .eq-bar {
        width: 18px;
        max-height: 150px;
    }
    
    .playlist-container {
        height: 300px;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .music-player {
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .main-layout {
        gap: 15px;
        padding: 10px;
    }
    
    .equalizer-visual {
        height: 150px;
        padding: 10px;
        gap: 4px;
        overflow: hidden;
    }
    
    .eq-bar {
        width: 14px;
        max-height: 130px;
        min-width: 12px;
    }
    
    .equalizer-title {
        font-size: 16px;
        margin-bottom: 20px;
    }
    
    .music-player {
        padding: 20px 15px;
    }
    
    .album-cover {
        width: 180px;
        height: 180px;
    }
    
    .player-header h1 {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .playlist-container {
        height: 280px;
        padding: 20px;
    }
    
    .track-item {
        padding: 10px;
        margin-bottom: 6px;
    }
    
    .track-title {
        font-size: 13px;
    }
    
    .track-artist {
        font-size: 11px;
    }
}

@media (max-width: 600px) {
    .equalizer-visual {
        height: 120px;
        padding: 8px;
        gap: 4px;
        justify-content: space-between;
        max-width: 100%;
        width: 100%;
        overflow: hidden;
        box-sizing: border-box;
    }

    .eq-bar {
        flex: 1 1 0;
        min-width: 0;
        width: auto;
        max-width: 20px;
        max-height: 100px;
    }

    /* Ensure equalizer doesn't overflow */
    .equalizer-container {
        max-width: 100%;
        width: 100%;
        overflow: hidden;
        box-sizing: border-box;
    }

    .center-column {
        max-width: 100%;
        width: 100%;
        overflow: hidden;
        box-sizing: border-box;
    }
}

@media (max-width: 480px) {
    .main-layout {
        padding: 8px;
        gap: 12px;
    }
    
    .music-player {
        padding: 15px;
    }
    
    .album-cover {
        width: 140px;
        height: 140px;
    }
    
    .player-controls {
        gap: 8px;
    }
    
    .control-btn {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    
    .play-btn {
        width: 48px;
        height: 48px;
        font-size: 18px;
    }
    
    .equalizer-visual {
        height: 100px;
        padding: 6px;
        gap: 2px;
        max-width: calc(100vw - 40px);
        margin: 0 auto;
    }
    
    .eq-bar {
        width: 10px;
        max-height: 80px;
        min-width: 8px;
    }
    
    .equalizer-title {
        font-size: 14px;
        margin-bottom: 15px;
    }
    
    .playlist-container {
        height: 250px;
        padding: 15px;
    }
    
    .track-number {
        min-width: 20px;
        font-size: 12px;
    }
    
    .track-title {
        font-size: 12px;
    }
    
    .track-artist {
        font-size: 10px;
    }
    
    .track-duration {
        font-size: 10px;
    }
    
    .track-album {
        font-size: 9px;
    }
    
    /* Copyright footer mobile styles */
    .copyright-footer {
        padding: 6px 15px;
    }
    
    .copyright-text {
        font-size: 10px;
    }
    
    .copyright-details {
        font-size: 9px;
    }
    
    /* Mobile background optimizations */
    .geometric-shapes .shape {
        display: none; /* Hide floating shapes on mobile for performance */
    }
    
    .reactive-grid {
        background-size: 50px 50px; /* Smaller grid on mobile */
    }
    
    .wave {
        height: 60px !important; /* Smaller waves on mobile */
    }
    
    .wave2 {
        height: 40px !important;
    }
    
    .wave3 {
        height: 30px !important;
    }
}

@media (max-width: 360px) {
    .equalizer-visual {
        height: 80px;
        padding: 4px;
        gap: 1px;
        max-width: calc(100vw - 20px);
    }
    
    .eq-bar {
        width: 8px;
        max-height: 60px;
        min-width: 6px;
    }
    
    .music-player {
        padding: 12px;
    }
    
    .album-cover {
        width: 120px;
        height: 120px;
    }
    
    .control-btn {
        width: 36px;
        height: 36px;
        font-size: 12px;
    }
    
    .play-btn {
        width: 44px;
        height: 44px;
        font-size: 16px;
    }
    
    .player-controls {
        gap: 6px;
    }
    
    .playlist-container {
        height: 200px;
        padding: 12px;
    }
}