/* music.css - macOS Music App */
.music-window {
    background: linear-gradient(180deg, #1a1a1a 0%, #000 100%) !important;
    color: #fff;
}

.music-container {
    display: flex;
    height: 100%;
    background: #000;
}

/* Sidebar */
.music-sidebar {
    width: 240px;
    background: rgba(20, 20, 20, 0.95);
    border-right: 1px solid #333;
    padding: 20px 0;
    overflow-y: auto;
}

.music-logo {
    padding: 0 20px 25px;
    text-align: center;
    border-bottom: 1px solid #333;
    margin-bottom: 20px;
}

.music-logo h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(90deg, #FF2D55, #5856D6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-section {
    padding: 0 20px 20px;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    color: #b3b3b3;
    font-size: 14px;
    cursor: pointer;
    border-radius: 6px;
    margin-bottom: 5px;
    transition: all 0.2s;
}

.nav-item:hover {
    background: #282828;
    color: #fff;
}

.nav-item.active {
    background: #282828;
    color: #fff;
    font-weight: 500;
}

.nav-item i {
    margin-right: 12px;
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.nav-item .count {
    margin-left: auto;
    background: #333;
    color: #999;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
}

/* Playlists */
.playlists-section {
    border-top: 1px solid #333;
    padding-top: 20px;
}

.playlist-item {
    display: flex;
    align-items: center;
    padding: 8px 15px;
    cursor: pointer;
}

.playlist-icon {
    width: 30px;
    height: 30px;
    border-radius: 4px;
    margin-right: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
}

.playlist-name {
    font-size: 13px;
    color: #b3b3b3;
    flex: 1;
}

.playlist-count {
    font-size: 11px;
    color: #666;
}

/* Main Content */
.music-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Now Playing Bar */
.now-playing-bar {
    height: 90px;
    background: #181818;
    border-top: 1px solid #282828;
    display: flex;
    align-items: center;
    padding: 0 20px;
    position: relative;
    z-index: 1000;
}

.now-playing-info {
    display: flex;
    align-items: center;
    min-width: 200px;
}

.album-art-small {
    width: 56px;
    height: 56px;
    border-radius: 4px;
    margin-right: 15px;
    background: #333;
    overflow: hidden;
}

.album-art-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.track-info {
    flex: 1;
}

.track-title {
    font-size: 14px;
    color: #fff;
    margin: 0 0 4px 0;
    font-weight: 500;
}

.track-artist {
    font-size: 12px;
    color: #b3b3b3;
    margin: 0;
}

/* Player Controls */
.player-controls {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 600px;
}

.control-buttons {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 12px;
}

.control-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: #b3b3b3;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.control-btn:hover {
    color: #fff;
    transform: scale(1.1);
}

.control-btn.play-pause {
    width: 40px;
    height: 40px;
    background: #fff;
    color: #000;
}

.control-btn.play-pause:hover {
    transform: scale(1.05);
}

.progress-container {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
}

.time-current,
.time-total {
    font-size: 11px;
    color: #b3b3b3;
    min-width: 40px;
}

.progress-bar {
    flex: 1;
    height: 4px;
    background: #404040;
    border-radius: 2px;
    position: relative;
    cursor: pointer;
}

.progress {
    height: 100%;
    background: #1DB954;
    border-radius: 2px;
    width: 0%;
    transition: width 0.1s;
}

/* Extra Controls */
.extra-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 200px;
    justify-content: flex-end;
}

.volume-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.volume-icon {
    color: #b3b3b3;
    font-size: 16px;
}

.volume-slider {
    width: 80px;
    height: 4px;
    background: #404040;
    border-radius: 2px;
    -webkit-appearance: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
}

/* Library View */
.library-view {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
}

.library-header {
    margin-bottom: 30px;
}

.library-title {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 10px 0;
}

.library-subtitle {
    font-size: 14px;
    color: #b3b3b3;
    margin: 0;
}

/* Songs List */
.songs-list {
    margin-top: 20px;
}

.song-header {
    display: grid;
    grid-template-columns: 40px 3fr 2fr 1fr 40px;
    padding: 10px 15px;
    border-bottom: 1px solid #282828;
    color: #b3b3b3;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.song-item {
    display: grid;
    grid-template-columns: 40px 3fr 2fr 1fr 40px;
    padding: 10px 15px;
    border-bottom: 1px solid #282828;
    cursor: pointer;
    transition: background 0.2s;
    align-items: center;
}

.song-item:hover {
    background: #282828;
}

.song-item.playing {
    background: rgba(29, 185, 84, 0.1);
}

.song-number {
    color: #b3b3b3;
    font-size: 14px;
    text-align: center;
}

.song-title {
    display: flex;
    align-items: center;
    gap: 15px;
}

.song-album-art {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    background: #333;
    overflow: hidden;
}

.song-album-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.song-name {
    font-size: 14px;
    color: #fff;
    margin: 0;
}

.song-artist {
    font-size: 14px;
    color: #b3b3b3;
}

.song-album {
    font-size: 14px;
    color: #b3b3b3;
}

.song-duration {
    font-size: 14px;
    color: #b3b3b3;
    text-align: right;
}

.song-actions {
    text-align: center;
}

.action-btn {
    background: transparent;
    border: none;
    color: #b3b3b3;
    cursor: pointer;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.2s;
}

.song-item:hover .action-btn {
    opacity: 1;
}

.action-btn:hover {
    color: #fff;
}

/* Now Playing View */
.now-playing-view {
    flex: 1;
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.now-playing-view.active {
    display: flex;
}

.now-playing-art {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: linear-gradient(180deg, #1a1a1a 0%, #000 100%);
}

.album-art-large {
    width: 300px;
    height: 300px;
    border-radius: 10px;
    background: #282828;
    margin-bottom: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    position: relative;
}

.album-art-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.album-info {
    text-align: center;
    max-width: 400px;
}

.album-title {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px 0;
}

.album-details {
    font-size: 16px;
    color: #b3b3b3;
    margin: 0;
}

/* Visualizer */
.visualizer {
    height: 120px;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.visualizer-canvas {
    width: 100%;
    height: 100%;
}

.visualizer-controls {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
}

.visualizer-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    backdrop-filter: blur(10px);
}

.visualizer-btn.active {
    background: #1DB954;
}

/* Queue */
.queue-view {
    width: 320px;
    background: #181818;
    border-left: 1px solid #282828;
    padding: 20px;
    overflow-y: auto;
    display: none;
}

.queue-view.active {
    display: block;
}

.queue-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.queue-title {
    font-size: 18px;
    color: #fff;
    margin: 0;
}

.queue-clear {
    background: transparent;
    border: none;
    color: #1DB954;
    cursor: pointer;
    font-size: 12px;
}

.queue-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-radius: 4px;
    cursor: pointer;
    margin-bottom: 5px;
}

.queue-item:hover {
    background: #282828;
}

.queue-item.playing {
    background: rgba(29, 185, 84, 0.1);
}

.queue-art {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    margin-right: 12px;
    background: #333;
    overflow: hidden;
}

.queue-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.queue-info {
    flex: 1;
}

.queue-song {
    font-size: 13px;
    color: #fff;
    margin: 0 0 2px 0;
}

.queue-artist {
    font-size: 11px;
    color: #b3b3b3;
    margin: 0;
}

/* Responsive */
@media (max-width: 1200px) {
    .queue-view {
        display: none;
    }
    
    .now-playing-art {
        padding: 20px;
    }
    
    .album-art-large {
        width: 250px;
        height: 250px;
    }
}

@media (max-width: 768px) {
    .music-sidebar {
        display: none;
    }
    
    .extra-controls {
        display: none;
    }
}

/* Animations */
@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

.playing .song-number {
    animation: pulse 1.5s infinite;
}

/* Lyrics View */
.lyrics-container {
    padding: 30px;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.lyrics-line {
    font-size: 18px;
    color: #b3b3b3;
    margin: 15px 0;
    transition: all 0.3s;
}

.lyrics-line.active {
    color: #fff;
    font-size: 22px;
    font-weight: 500;
}

/* Loading Animation */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #333;
    border-top: 2px solid #1DB954;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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