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

:root {
    --dark-bg: #0f1437;
    --card-bg: rgba(20, 25, 50, 0.9);
    --accent-gold: #ffd700;
    --accent-red: #ff4757;
    --accent-cyan: #00d4ff;
    --text-primary: #f0f0f0;
    --text-secondary: #a0a0a0;
    --border-color: rgba(212, 175, 55, 0.3);
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

html, body {
    height: 100vh;
    width: 100vw;
    overflow: hidden;
}

body {
    background: linear-gradient(135deg, #0f1437 0%, #1a0f2e 50%, #0a0e27 100%);
    color: var(--text-primary);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
    overflow-y: hidden;
    scrollbar-width: none;
}

body::-webkit-scrollbar {
    display: none;
}

.container {
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 30px 20px;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.header {
    text-align: center;
    padding: 30px 20px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(0, 212, 255, 0.1) 100%);
    border-radius: 25px;
    border: 2px solid var(--border-color);
    margin-bottom: 20px;
    box-shadow: var(--shadow), 0 0 30px rgba(255, 215, 0, 0.4);
    backdrop-filter: blur(10px);
}

.title {
    font-size: clamp(2.2em, 6vw, 4em);
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-cyan), var(--accent-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    animation: glow 3s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% { filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.6)); }
    50% { filter: drop-shadow(0 0 25px rgba(255, 215, 0, 0.9)); }
}

.subtitle {
    font-size: clamp(1em, 3.5vw, 1.5em);
    color: var(--accent-cyan);
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.main-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 650px;
}

.player-section {
    width: 100%;
}

.player-card {
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(30, 20, 60, 0.7) 100%);
    border: 2px solid var(--border-color);
    border-radius: 30px;
    padding: 35px;
    box-shadow: var(--shadow), 0 0 40px rgba(255, 215, 0, 0.2);
    backdrop-filter: blur(15px);
    width: 100%;
}

.player-display {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.3) 100%);
    border-radius: 25px;
    padding: 35px 25px;
    margin-bottom: 30px;
    border: 2px solid var(--border-color);
    text-align: center;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.visualizer {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 6px;
    height: 50px;
}

.visualizer .bar {
    width: 5px;
    background: linear-gradient(180deg, var(--accent-gold), var(--accent-red), var(--accent-cyan));
    border-radius: 3px;
    animation: pulse-bar 0.6s ease-in-out infinite;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.8);
}

.visualizer .bar:nth-child(1) { animation-delay: 0s; height: 20%; }
.visualizer .bar:nth-child(2) { animation-delay: 0.1s; height: 40%; }
.visualizer .bar:nth-child(3) { animation-delay: 0.2s; height: 60%; }
.visualizer .bar:nth-child(4) { animation-delay: 0.1s; height: 40%; }
.visualizer .bar:nth-child(5) { animation-delay: 0s; height: 20%; }

@keyframes pulse-bar {
    0%, 100% { height: 20%; opacity: 0.8; }
    50% { height: 80%; opacity: 1; }
}

.track-name {
    font-size: clamp(1.4em, 5vw, 2em);
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.progress-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
}

.time {
    font-size: 0.85em;
    color: var(--text-secondary);
    min-width: 40px;
    text-align: center;
}

.progress-bar {
    flex: 1;
    height: 6px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    position: relative;
    cursor: pointer;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-gold), var(--accent-red), var(--accent-cyan));
    width: 0%;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
}

.progress-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.control-btn {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 75, 87, 0.2));
    border: 2px solid var(--accent-gold);
    color: var(--accent-gold);
    width: 55px;
    height: 55px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
    font-weight: bold;
}

.control-btn:hover {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.4), rgba(255, 75, 87, 0.4));
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.8);
    transform: scale(1.15);
    border-color: var(--accent-cyan);
}

.play-btn {
    width: 75px;
    height: 75px;
    font-size: 1.8em;
    border-color: var(--accent-red);
    color: var(--accent-red);
    background: linear-gradient(135deg, rgba(255, 75, 87, 0.3), rgba(255, 215, 0, 0.2));
}

.play-btn:hover {
    background: linear-gradient(135deg, rgba(255, 75, 87, 0.5), rgba(255, 215, 0, 0.35));
    box-shadow: 0 0 40px rgba(255, 75, 87, 0.9), 0 0 20px rgba(255, 215, 0, 0.6);
    transform: scale(1.2);
}

.volume-container {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.volume-icon {
    font-size: 1.2em;
    color: var(--accent-gold);
}

.volume-slider {
    flex: 1;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 5px;
    outline: none;
    cursor: pointer;
    border: 1px solid var(--border-color);
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent-gold);
    cursor: pointer;
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.7);
}

.volume-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent-gold);
    cursor: pointer;
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.7);
    border: none;
}

.volume-value {
    font-size: 0.85em;
    color: var(--accent-gold);
    min-width: 35px;
    text-align: right;
    font-weight: 600;
}

.footer {
    text-align: center;
    padding: 15px 20px;
    margin-top: 15px;
    color: var(--text-secondary);
    font-size: 0.85em;
    border-top: 1px solid var(--border-color);
}

.audio-player {
    display: none;
}

@media (max-width: 768px) {
    .container {
        padding: 20px;
    }

    .header {
        padding: 40px 20px;
        margin-bottom: 40px;
    }

    .title {
        font-size: 2.5em;
    }

    .subtitle {
        font-size: 1.1em;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 12px;
    }

    .header {
        padding: 25px 12px;
        margin-bottom: 25px;
        border-radius: 18px;
    }

    .title {
        font-size: 1.8em;
    }

    .subtitle {
        font-size: 0.9em;
    }

    .player-card {
        padding: 20px;
        border-radius: 20px;
    }

    .controls {
        gap: 12px;
    }

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

    .play-btn {
        width: 60px;
        height: 60px;
        font-size: 1.5em;
    }
}
