/* css/music.css - Music Room with Visualizer */

.music-body {
    background: radial-gradient(ellipse at center, #1a1a3e 0%, #0a0a1a 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.visualizer-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 2rem;
}

#visualizer-canvas {
    width: 100%;
    max-width: 800px;
    height: 300px;
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    background: rgba(0,0,0,0.5);
}

.now-playing {
    text-align: center;
    margin: 2rem 0;
}

.now-playing h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.now-playing .artist {
    color: var(--empire-text-muted);
    font-size: 1.2rem;
}

.player-controls {
    display: flex;
    gap: 2rem;
    align-items: center;
    justify-content: center;
    margin: 2rem 0;
}

.control-btn {
    background: transparent;
    border: 2px solid var(--empire-gold);
    color: var(--empire-gold);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.control-btn:hover {
    background: var(--empire-gold);
    color: var(--empire-dark);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

.control-btn.play-btn {
    width: 80px;
    height: 80px;
    font-size: 2rem;
}

.playlist-sidebar {
    position: fixed;
    right: 0;
    top: 0;
    width: 300px;
    height: 100vh;
    background: var(--glass-bg);
    border-left: 1px solid var(--glass-border);
    padding: 2rem;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 100;
}

.playlist-sidebar.open {
    transform: translateX(0);
}

.mood-filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.mood-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--glass-border);
    background: transparent;
    color: var(--empire-text-muted);
    font-size: 0.8rem;
    border-radius: 20px;
}

.mood-btn.active, .mood-btn:hover {
    border-color: var(--empire-gold);
    color: var(--empire-gold);
    background: rgba(212, 175, 55, 0.1);
}

.track-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.track-item {
    padding: 1rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid transparent;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.track-item:hover, .track-item.active {
    border-color: var(--empire-gold);
    background: rgba(212, 175, 55, 0.1);
}

.track-info h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
    color: var(--empire-text);
}

.track-info span {
    font-size: 0.8rem;
    color: var(--empire-text-muted);
}

.track-duration {
    color: var(--empire-gold);
    font-size: 0.9rem;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.volume-slider {
    -webkit-appearance: none;
    width: 150px;
    height: 4px;
    background: var(--glass-border);
    border-radius: 2px;
    outline: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: var(--empire-gold);
    border-radius: 50%;
    cursor: pointer;
}

.toggle-playlist {
    position: fixed;
    right: 20px;
    top: 20px;
    z-index: 101;
    background: var(--glass-bg);
    border: 1px solid var(--empire-gold);
    color: var(--empire-gold);
    padding: 1rem;
    border-radius: 5px;
}

@media (max-width: 768px) {
    .playlist-sidebar { width: 100%; }
    #visualizer-canvas { height: 200px; }
}
