/* MoodFlow - Modern Spotify-like Music App Styles */

:root {
    /* Spotify-inspired Color Palette */
    --primary: #1DB954;
    --primary-hover: #1ed760;
    --primary-dark: #169c45;
    --bg-base: #121212;
    --bg-elevated: #181818;
    --bg-highlight: #282828;
    --bg-pressed: #2a2a2a;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --text-tertiary: #6a6a6a;
    --border-color: #282828;
    --gradient-start: #450af5;
    --gradient-end: #c4efd9;
    
    /* Mood Colors */
    --mood-happy: #FFD700;
    --mood-sad: #6495ED;
    --mood-energetic: #FF6347;
    --mood-relaxed: #90EE90;
    --mood-romantic: #FF69B4;
    --mood-focused: #9370DB;
    --mood-party: #FF1493;
    --mood-chill: #87CEEB;
    
    /* Spacing */
    --sidebar-width: 240px;
    --player-height: 90px;
    --header-height: 64px;
    
    /* Transitions */
    --transition-fast: 0.1s ease;
    --transition-normal: 0.2s ease;
    --transition-slow: 0.3s ease;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 24px;
    --radius-full: 50%;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-base);
    color: var(--text-primary);
    overflow: hidden;
    line-height: 1.5;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    border: 3px solid transparent;
    background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* App Container */
.app-container {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background-color: #000000;
    padding: 24px 12px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    flex-shrink: 0;
}

.sidebar-header {
    padding: 0 12px 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.logo i {
    font-size: 32px;
    color: var(--primary);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.nav-section {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-section-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    padding: 8px 12px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 8px 12px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: color var(--transition-normal), background-color var(--transition-normal);
}

.nav-item:hover {
    color: var(--text-primary);
}

.nav-item.active {
    color: var(--text-primary);
    background-color: var(--bg-highlight);
}

.nav-item i {
    font-size: 20px;
    width: 24px;
    text-align: center;
}

.create-playlist-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 8px 12px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border-radius: var(--radius-md);
    transition: color var(--transition-normal), background-color var(--transition-normal);
    margin-top: 8px;
}

.create-playlist-btn:hover {
    color: var(--text-primary);
    background-color: var(--bg-highlight);
}

.create-playlist-btn i {
    font-size: 20px;
    width: 24px;
    text-align: center;
    background: var(--text-secondary);
    color: #000;
    border-radius: 2px;
    padding: 2px;
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #1a1a2e 0%, var(--bg-base) 40%);
    overflow: hidden;
}

/* Top Bar */
.top-bar {
    height: var(--header-height);
    padding: 16px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.search-container {
    flex: 1;
    max-width: 400px;
    position: relative;
}

.search-container i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 16px;
}

.search-container input {
    width: 100%;
    padding: 10px 12px 10px 40px;
    background: var(--bg-elevated);
    border: 1px solid transparent;
    border-radius: var(--radius-xl);
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    transition: border-color var(--transition-normal), background-color var(--transition-normal);
}

.search-container input:focus {
    border-color: var(--text-primary);
    background: var(--bg-highlight);
}

.search-container input::placeholder {
    color: var(--text-secondary);
}

.top-bar-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mood-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border: none;
    border-radius: var(--radius-xl);
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.mood-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(29, 185, 84, 0.4);
}

.user-menu {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    overflow: hidden;
    cursor: pointer;
}

.user-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Content Area */
.content-area {
    flex: 1;
    overflow-y: auto;
    padding: 0 32px 120px;
}

/* Mood Section */
.mood-section {
    padding: 32px 0;
}

.mood-section h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 24px;
}

.mood-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
}

.mood-card {
    background: var(--bg-elevated);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: transform var(--transition-normal), background-color var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.mood-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.mood-card[data-mood="happy"]::before {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), transparent);
}

.mood-card[data-mood="sad"]::before {
    background: linear-gradient(135deg, rgba(100, 149, 237, 0.2), transparent);
}

.mood-card[data-mood="energetic"]::before {
    background: linear-gradient(135deg, rgba(255, 99, 71, 0.2), transparent);
}

.mood-card[data-mood="relaxed"]::before {
    background: linear-gradient(135deg, rgba(144, 238, 144, 0.2), transparent);
}

.mood-card[data-mood="romantic"]::before {
    background: linear-gradient(135deg, rgba(255, 105, 180, 0.2), transparent);
}

.mood-card[data-mood="focused"]::before {
    background: linear-gradient(135deg, rgba(147, 112, 219, 0.2), transparent);
}

.mood-card[data-mood="party"]::before {
    background: linear-gradient(135deg, rgba(255, 20, 147, 0.2), transparent);
}

.mood-card[data-mood="chill"]::before {
    background: linear-gradient(135deg, rgba(135, 206, 235, 0.2), transparent);
}

.mood-card:hover {
    transform: translateY(-4px);
    background: var(--bg-highlight);
}

.mood-card:hover::before {
    opacity: 1;
}

.mood-card.active {
    background: var(--bg-highlight);
    box-shadow: 0 0 0 2px var(--primary);
}

.mood-card.active::before {
    opacity: 1;
}

.mood-icon {
    font-size: 48px;
    margin-bottom: 12px;
    display: block;
}

.mood-name {
    display: block;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.mood-desc {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
}

/* Section */
.section {
    padding: 24px 0;
}

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

.section-header h2 {
    font-size: 24px;
    font-weight: 700;
}

.see-all {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: color var(--transition-normal);
}

.see-all:hover {
    color: var(--text-primary);
    text-decoration: underline;
}

.refresh-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 16px;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-full);
    transition: color var(--transition-normal), background-color var(--transition-normal);
}

.refresh-btn:hover {
    color: var(--text-primary);
    background: var(--bg-highlight);
}

/* Song Grid */
.song-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 24px;
}

.song-card {
    background: var(--bg-elevated);
    border-radius: var(--radius-md);
    padding: 16px;
    cursor: pointer;
    transition: background-color var(--transition-normal), transform var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.song-card:hover {
    background: var(--bg-highlight);
    transform: translateY(-4px);
}

.song-card:hover .play-overlay {
    opacity: 1;
}

.song-card:hover .song-image {
    transform: scale(1.05);
}

.song-image-container {
    position: relative;
    margin-bottom: 16px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    aspect-ratio: 1;
}

.song-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.play-overlay {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 48px;
    height: 48px;
    background: var(--primary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity var(--transition-normal), transform var(--transition-normal);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.song-card:hover .play-overlay {
    opacity: 1;
    transform: translateY(0);
}

.play-overlay i {
    color: #000;
    font-size: 20px;
    margin-left: 2px;
}

.song-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.song-artist {
    font-size: 14px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Song List */
.song-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.song-list-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background-color var(--transition-normal);
}

.song-list-item:hover {
    background: var(--bg-elevated);
}

.song-list-item.playing {
    background: var(--bg-highlight);
}

.song-number {
    width: 24px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
}

.song-list-item.playing .song-number {
    color: var(--primary);
}

.song-list-item.playing .song-number::before {
    content: '\f001';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.song-list-image {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.song-list-info {
    flex: 1;
    min-width: 0;
}

.song-list-title {
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.song-list-item.playing .song-list-title {
    color: var(--primary);
}

.song-list-artist {
    font-size: 12px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.song-list-album {
    flex: 1;
    font-size: 14px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.song-list-duration {
    font-size: 14px;
    color: var(--text-secondary);
    width: 50px;
    text-align: right;
}

.song-list-actions {
    display: flex;
    gap: 8px;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.song-list-item:hover .song-list-actions {
    opacity: 1;
}

.song-list-actions button {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-full);
    transition: color var(--transition-normal), background-color var(--transition-normal);
}

.song-list-actions button:hover {
    color: var(--text-primary);
    background: var(--bg-highlight);
}

/* Player Bar */
.player-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--player-height);
    background: var(--bg-elevated);
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    z-index: 1000;
}

.player-left {
    flex: 1;
    min-width: 180px;
    max-width: 30%;
}

.now-playing {
    display: flex;
    align-items: center;
    gap: 12px;
}

.album-art {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.track-info {
    min-width: 0;
}

.track-name {
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.artist-name {
    font-size: 12px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.like-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-full);
    transition: color var(--transition-normal), transform var(--transition-normal);
}

.like-btn:hover {
    color: var(--primary);
    transform: scale(1.1);
}

.like-btn.liked {
    color: var(--primary);
}

.like-btn.liked i {
    font-weight: 900;
}

/* Player Center */
.player-center {
    flex: 2;
    max-width: 40%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

.control-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-full);
    transition: color var(--transition-normal), transform var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover {
    color: var(--text-primary);
    transform: scale(1.1);
}

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

.play-btn {
    width: 40px;
    height: 40px;
    background: var(--text-primary);
    color: #000;
}

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

.play-btn i {
    font-size: 16px;
}

.shuffle-btn.active,
.repeat-btn.active {
    color: var(--primary);
}

/* Progress Bar */
.progress-container {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

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

.progress-bar {
    flex: 1;
    height: 4px;
    background: var(--bg-highlight);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--text-primary);
    border-radius: 2px;
    width: 0%;
    transition: width 0.1s linear;
}

.progress-bar:hover .progress-fill {
    background: var(--primary);
}

.progress-handle {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: var(--text-primary);
    border-radius: var(--radius-full);
    opacity: 0;
    transition: opacity var(--transition-normal);
    pointer-events: none;
}

.progress-bar:hover .progress-handle {
    opacity: 1;
}

/* Player Right */
.player-right {
    flex: 1;
    min-width: 180px;
    max-width: 30%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.volume-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 136px;
}

.volume-slider {
    flex: 1;
    height: 4px;
    background: var(--bg-highlight);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
}

.volume-fill {
    height: 100%;
    background: var(--text-primary);
    border-radius: 2px;
    width: 70%;
    transition: width var(--transition-fast);
}

.volume-slider:hover .volume-fill {
    background: var(--primary);
}

.volume-handle {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: var(--text-primary);
    border-radius: var(--radius-full);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.volume-slider:hover .volume-handle {
    opacity: 1;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-elevated);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 500px;
    overflow: hidden;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    font-size: 20px;
    font-weight: 700;
}

.close-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 24px;
    cursor: pointer;
    padding: 4px;
    border-radius: var(--radius-full);
    transition: color var(--transition-normal), background-color var(--transition-normal);
}

.close-btn:hover {
    color: var(--text-primary);
    background: var(--bg-highlight);
}

.modal-body {
    padding: 24px;
}

.mood-detection-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 16px;
}

.detection-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px;
    background: var(--bg-highlight);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: border-color var(--transition-normal), background-color var(--transition-normal);
}

.detection-option:hover {
    border-color: var(--primary);
    background: var(--bg-pressed);
}

.detection-option i {
    font-size: 32px;
    color: var(--primary);
}

.detection-option span {
    font-size: 14px;
    font-weight: 600;
}

.text-mood-input {
    margin-top: 24px;
}

.text-mood-input textarea {
    width: 100%;
    padding: 12px;
    background: var(--bg-highlight);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 14px;
    resize: vertical;
    min-height: 100px;
    outline: none;
    transition: border-color var(--transition-normal);
}

.text-mood-input textarea:focus {
    border-color: var(--primary);
}

.analyze-btn {
    margin-top: 16px;
    width: 100%;
    padding: 12px;
    background: var(--primary);
    border: none;
    border-radius: var(--radius-md);
    color: #000;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color var(--transition-normal), transform var(--transition-normal);
}

.analyze-btn:hover {
    background: var(--primary-hover);
    transform: scale(1.02);
}

/* Queue Sidebar */
.queue-sidebar {
    position: fixed;
    top: 0;
    right: -350px;
    width: 350px;
    height: 100vh;
    background: var(--bg-elevated);
    z-index: 1500;
    transition: right var(--transition-slow);
    display: flex;
    flex-direction: column;
}

.queue-sidebar.active {
    right: 0;
}

.queue-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
}

.queue-header h3 {
    font-size: 20px;
    font-weight: 700;
}

.close-queue {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 24px;
    cursor: pointer;
    padding: 4px;
    border-radius: var(--radius-full);
    transition: color var(--transition-normal);
}

.close-queue:hover {
    color: var(--text-primary);
}

.queue-list {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.queue-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background-color var(--transition-normal);
}

.queue-item:hover {
    background: var(--bg-highlight);
}

.queue-item-image {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.queue-item-info {
    flex: 1;
    min-width: 0;
}

.queue-item-title {
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.queue-item-artist {
    font-size: 12px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--primary);
    color: #000;
    padding: 12px 24px;
    border-radius: var(--radius-xl);
    font-size: 14px;
    font-weight: 600;
    z-index: 3000;
    opacity: 0;
    transition: transform var(--transition-normal), opacity var(--transition-normal);
}

.toast.active {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .sidebar {
        width: 72px;
        padding: 24px 8px;
    }
    
    .sidebar .logo span,
    .sidebar .nav-item span,
    .sidebar .nav-section-title,
    .sidebar .create-playlist-btn span {
        display: none;
    }
    
    .logo {
        justify-content: center;
    }
    
    .nav-item {
        justify-content: center;
        padding: 12px;
    }
    
    .nav-item i {
        margin: 0;
    }
    
    .create-playlist-btn {
        justify-content: center;
        padding: 12px;
    }
    
    .create-playlist-btn i {
        margin: 0;
    }
}

@media (max-width: 768px) {
    .app-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        flex-direction: row;
        padding: 8px;
        position: fixed;
        bottom: var(--player-height);
        top: auto;
        z-index: 100;
    }
    
    .sidebar-header {
        display: none;
    }
    
    .sidebar-nav {
        flex-direction: row;
        width: 100%;
        justify-content: space-around;
    }
    
    .nav-section {
        flex-direction: row;
    }
    
    .nav-section-title,
    .playlist-item,
    .create-playlist-btn {
        display: none;
    }
    
    .main-content {
        margin-bottom: 140px;
    }
    
    .top-bar {
        padding: 12px 16px;
    }
    
    .search-container {
        max-width: 200px;
    }
    
    .mood-btn span {
        display: none;
    }
    
    .content-area {
        padding: 0 16px 100px;
    }
    
    .mood-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .song-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .player-left {
        min-width: 120px;
    }
    
    .album-art {
        width: 40px;
        height: 40px;
    }
    
    .track-info {
        display: none;
    }
    
    .player-center {
        max-width: 50%;
    }
    
    .player-right {
        min-width: auto;
    }
    
    .volume-controls {
        display: none;
    }
    
    .lyrics-btn {
        display: none;
    }
}

@media (max-width: 480px) {
    .mood-grid {
        grid-template-columns: 1fr;
    }
    
    .song-grid {
        grid-template-columns: 1fr;
    }
    
    .player-controls {
        gap: 8px;
    }
    
    .control-btn {
        padding: 6px;
    }
    
    .play-btn {
        width: 36px;
        height: 36px;
    }
}

/* Loading Animation */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--bg-highlight);
    border-top-color: var(--primary);
    border-radius: var(--radius-full);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, var(--bg-elevated) 25%, var(--bg-highlight) 50%, var(--bg-elevated) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Visualizer Animation */
.visualizer {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 20px;
}

.visualizer-bar {
    width: 3px;
    background: var(--primary);
    border-radius: 1px;
    animation: visualize 0.5s ease-in-out infinite alternate;
}

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

@keyframes visualize {
    from {
        transform: scaleY(0.3);
    }
    to {
        transform: scaleY(1);
    }
}

/* Custom Selection */
::selection {
    background: var(--primary);
    color: #000;
}

/* Focus Styles */
button:focus-visible,
a:focus-visible,
input:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}