/* Modern Dark Theme Variables */
:root {
    --primary-color: #9333EA;
    --primary-dark: #7928CA;
    --primary-light: #A855F7;
    --text-color: #ffffff;
    --background-dark: #121212;
    --background-light: #1e1e24;
    --accent-color: #9333EA;
    --hover-color: #A855F7;
    --transition: all 0.3s ease;
}

/* Animated Background */
@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Wave Animation */
@keyframes wave {
    0% {
        transform: translateX(0) translateZ(0) scaleY(1);
    }
    50% {
        transform: translateX(-25%) translateZ(0) scaleY(0.55);
    }
    100% {
        transform: translateX(-50%) translateZ(0) scaleY(1);
    }
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(180deg, #121212 0%, #1e1e24 100%);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
}

/* Waves Container */
.waves-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    height: 100vh;
    overflow: hidden;
    pointer-events: none;
}

.wave {
    position: absolute;
    left: 0;
    width: 200%;
    height: 100%;
    background-repeat: repeat-x;
    background-position: center bottom;
    transform-origin: center bottom;
}

.wave1 {
    bottom: -5%;
    height: 50%;
    opacity: 0.15;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 88.7'%3E%3Cpath d='M800 56.9c-155.5 0-204.9-50-405.5-49.9-200 0-250 49.9-394.5 49.9v31.8h800v-.2-31.6z' fill='%23933EA'/%3E%3C/svg%3E");
    animation: wave 22s cubic-bezier(0.36, 0.45, 0.63, 0.53) infinite;
}

.wave2 {
    bottom: -8%;
    height: 55%;
    opacity: 0.1;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 88.7'%3E%3Cpath d='M800 56.9c-155.5 0-204.9-50-405.5-49.9-200 0-250 49.9-394.5 49.9v31.8h800v-.2-31.6z' fill='%23933EA'/%3E%3C/svg%3E");
    animation: wave 18s cubic-bezier(0.36, 0.45, 0.63, 0.53) infinite reverse;
}

.wave3 {
    bottom: -10%;
    height: 60%;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 88.7'%3E%3Cpath d='M800 56.9c-155.5 0-204.9-50-405.5-49.9-200 0-250 49.9-394.5 49.9v31.8h800v-.2-31.6z' fill='%23933EA'/%3E%3C/svg%3E");
    animation: wave 15s cubic-bezier(0.36, 0.45, 0.63, 0.53) infinite;
}

.wave4 {
    bottom: -15%;
    height: 65%;
    opacity: 0.075;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 88.7'%3E%3Cpath d='M800 56.9c-155.5 0-204.9-50-405.5-49.9-200 0-250 49.9-394.5 49.9v31.8h800v-.2-31.6z' fill='%23933EA'/%3E%3C/svg%3E");
    animation: wave 25s cubic-bezier(0.36, 0.45, 0.63, 0.53) infinite reverse;
}

.container {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Player Section */
.player-section {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
    padding: 40px 0;
}

.now-playing {
    background-color: rgba(30, 30, 30, 0.7);
    padding: 40px;
    border-radius: 16px;
    width: 100%;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.track-info {
    text-align: center;
    margin-bottom: 30px;
}

.track-info h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--accent-color);
}

.track-title {
    font-size: 2rem;
    margin: 10px 0;
}

.artist {
    color: var(--text-color);
    font-size: 1.1rem;
}

/* Audio Visualizer */
#visualizer {
    width: 100%;
    height: 180px;
    margin: 20px 0;
    border-radius: 12px;
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
}

/* Player Controls */
.player-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.control-btn {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition);
    padding: 10px;
}

.control-btn:hover {
    color: var(--primary-light);
}

.play-btn {
    background-color: var(--primary-color);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.play-btn:hover {
    background-color: var(--primary-light);
    color: var(--text-color);
    transform: scale(1.05);
}

.volume-control {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

input[type="range"] {
    width: 120px;
    accent-color: var(--primary-color);
    cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    transition: background 0.2s;
}

input[type="range"]::-webkit-slider-thumb:hover {
    background: var(--primary-light);
}

input[type="range"]::-moz-range-thumb {
    width: 15px;
    height: 15px;
    border: none;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    transition: background 0.2s;
}

input[type="range"]::-moz-range-thumb:hover {
    background: var(--primary-light);
}

/* Footer */
footer {
    text-align: center;
    padding: 20px 0;
    margin-top: auto;
}

.social-links {
    margin-bottom: 15px;
}

.social-links a {
    color: var(--text-color);
    margin: 0 15px;
    font-size: 20px;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--primary-light);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    .now-playing {
        padding: 25px;
    }

    .track-title {
        font-size: 1.5rem;
    }

    .player-controls {
        gap: 15px;
    }

    .play-btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}
