/* Nohead Preview Player Styles */

.nohead-preview-player {
    max-width: 600px;
    margin: 2rem auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Dark Theme */
.nohead-dark {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #ffffff;
}

/* Light Theme */
.nohead-light {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e9f2 100%);
    color: #1a1a2e;
}

/* Header */
.nohead-player-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nohead-light .nohead-player-header {
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

.nohead-player-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.nohead-track-count {
    font-size: 0.875rem;
    opacity: 0.7;
    padding: 0.25rem 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
}

.nohead-light .nohead-track-count {
    background: rgba(0, 0, 0, 0.1);
}

/* Main Player */
.nohead-player-main {
    padding: 2rem;
}

/* Now Playing */
.nohead-now-playing {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.nohead-album-art {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.nohead-light .nohead-album-art {
    background: rgba(0, 0, 0, 0.1);
}

.nohead-music-icon {
    width: 40px;
    height: 40px;
    opacity: 0.6;
}

.nohead-track-info {
    flex: 1;
    min-width: 0;
}

.nohead-track-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nohead-track-artist {
    font-size: 0.875rem;
    opacity: 0.7;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Controls */
.nohead-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.nohead-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: inherit;
}

.nohead-light .nohead-btn {
    background: rgba(0, 0, 0, 0.1);
}

.nohead-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.nohead-light .nohead-btn:hover:not(:disabled) {
    background: rgba(0, 0, 0, 0.2);
}

.nohead-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.nohead-play-pause {
    width: 64px;
    height: 64px;
    background: #ff6b6b;
}

.nohead-play-pause:hover:not(:disabled) {
    background: #ff5252;
}

.nohead-btn svg {
    width: 24px;
    height: 24px;
}

.nohead-play-pause svg {
    width: 32px;
    height: 32px;
}

/* Progress Bar */
.nohead-progress-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.nohead-time-current,
.nohead-time-duration {
    font-size: 0.75rem;
    font-weight: 500;
    opacity: 0.7;
    min-width: 35px;
}

.nohead-progress-bar {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.nohead-light .nohead-progress-bar {
    background: rgba(0, 0, 0, 0.1);
}

.nohead-progress-fill {
    height: 100%;
    background: #ff6b6b;
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s linear;
}

/* Playlist */
.nohead-playlist {
    max-height: 300px;
    overflow-y: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.nohead-light .nohead-playlist {
    border-top-color: rgba(0, 0, 0, 0.1);
}

.nohead-playlist-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: background 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nohead-light .nohead-playlist-item {
    border-bottom-color: rgba(0, 0, 0, 0.05);
}

.nohead-playlist-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.nohead-light .nohead-playlist-item:hover {
    background: rgba(0, 0, 0, 0.05);
}

.nohead-playlist-item.active {
    background: rgba(255, 107, 107, 0.1);
}

.nohead-track-number {
    font-weight: 600;
    font-size: 0.875rem;
    opacity: 0.5;
    min-width: 24px;
}

.nohead-playlist-info {
    flex: 1;
    min-width: 0;
}

.nohead-playlist-title {
    font-weight: 500;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nohead-playlist-artist {
    font-size: 0.75rem;
    opacity: 0.6;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nohead-playing-indicator {
    width: 20px;
    height: 20px;
    color: #ff6b6b;
}

/* Scrollbar Styling */
.nohead-playlist::-webkit-scrollbar {
    width: 8px;
}

.nohead-playlist::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.nohead-light .nohead-playlist::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
}

.nohead-playlist::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.nohead-light .nohead-playlist::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
}

.nohead-playlist::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.nohead-light .nohead-playlist::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

/* Mobile Responsive */
@media (max-width: 640px) {
    .nohead-preview-player {
        margin: 1rem;
        border-radius: 8px;
    }
    
    .nohead-player-header {
        padding: 1rem;
    }
    
    .nohead-player-title {
        font-size: 1.25rem;
    }
    
    .nohead-player-main {
        padding: 1.5rem;
    }
    
    .nohead-now-playing {
        gap: 1rem;
    }
    
    .nohead-album-art {
        width: 60px;
        height: 60px;
    }
    
    .nohead-music-icon {
        width: 30px;
        height: 30px;
    }
    
    .nohead-track-title {
        font-size: 1rem;
    }
    
    .nohead-btn {
        width: 40px;
        height: 40px;
    }
    
    .nohead-play-pause {
        width: 56px;
        height: 56px;
    }
    
    .nohead-btn svg {
        width: 20px;
        height: 20px;
    }
    
    .nohead-play-pause svg {
        width: 28px;
        height: 28px;
    }
    
    .nohead-playlist-item {
        padding: 0.75rem 1rem;
    }
}
