/* ========== CSS Variables ========== */
:root {
    /* Dark Theme Colors - Cyberpunk Style */
    --bg-primary: #0d0d1a;
    --bg-secondary: #1a1a2e;
    --bg-tertiary: #16213e;
    --bg-hover: #0f3460;
    --text-primary: #eaeaea;
    --text-secondary: #94a3b8;
    --text-tertiary: #4e3180;
    --accent-primary: #00d4ff;
    --accent-secondary: #7c3aed;
    --accent-hover: #00b8e6;
    --border-color: #1e293b;
    --shadow: rgba(0, 212, 255, 0.2);
    
    /* Spacing */
    --header-height: 70px;
    --sidebar-width: 280px;
    --container-padding: 2rem;
    --card-gap: 1.5rem;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Light Theme Colors - Warm & Cozy */
body.light-theme {
    --bg-primary: #fafafa;
    --bg-secondary: #f5f3ff;
    --bg-tertiary: #ede9fe;
    --bg-hover: #ddd6fe;
    --text-primary: #1e1b4b;
    --text-secondary: #4c1d95;
    --text-tertiary: #7c3aed;
    --accent-primary: #7c3aed;
    --accent-secondary: #c026d3;
    --accent-hover: #6d28d9;
    --border-color: #e9d5ff;
    --shadow: rgba(124, 58, 237, 0.15);
}

/* ========== Reset & Base Styles ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background-color var(--transition-normal), color var(--transition-normal);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
    transition: all var(--transition-fast);
}

ul {
    list-style: none;
}

/* ========== Header ========== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    backdrop-filter: blur(10px);
    background-color: rgba(19, 19, 26, 0.95);
}

body.light-theme .header {
    background-color: rgba(245, 245, 247, 0.95);
}

.header-container {
    max-width: 100%;
    height: 100%;
    padding: 0 var(--container-padding);
    display: flex;
    align-items: center;
    gap: 2rem;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--accent-primary);
    font-size: 1.25rem;
    font-weight: 700;
}

.logo svg {
    flex-shrink: 0;
}

.logo h1 {
    font-size: 1.25rem;
    font-weight: 700;
}

/* Navigation */
.nav {
    display: flex;
    gap: 2rem;
    margin-left: auto;
}

.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -1.5rem;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    box-shadow: 0 0 10px var(--accent-primary);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
}

/* View Toggle */
.view-toggle {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background-color: var(--bg-tertiary);
    padding: 0.25rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.view-btn {
    width: 38px;
    height: 38px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    background-color: transparent;
    transition: all var(--transition-fast);
}

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

.view-btn.active {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    box-shadow: 0 2px 12px var(--shadow);
}

.theme-toggle,
.search-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    background-color: transparent;
}

.theme-toggle:hover,
.search-toggle:hover {
    background-color: var(--bg-hover);
    color: var(--text-primary);
}

/* Theme Toggle Icons */
body.light-theme .theme-toggle .moon-icon {
    display: none;
}

body.light-theme .theme-toggle .sun-icon {
    display: block;
}

body:not(.light-theme) .theme-toggle .sun-icon {
    display: none;
}

body:not(.light-theme) .theme-toggle .moon-icon {
    display: block;
}

/* Menu Toggle (Mobile) */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background-color: var(--text-primary);
    transition: all var(--transition-fast);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Search Panel */
.search-panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem var(--container-padding);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.search-panel.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.search-container {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1rem;
    background-color: var(--bg-tertiary);
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    border: 1px solid var(--border-color);
}

.search-container svg {
    color: var(--text-tertiary);
    flex-shrink: 0;
}

.search-input {
    flex: 1;
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-size: 1rem;
    outline: none;
}

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

.search-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
}

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

/* ========== Main Wrapper ========== */
.main-wrapper {
    margin-top: var(--header-height);
    display: flex;
    flex: 1;
    position: relative;
}

/* ========== Sidebar ========== */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    height: calc(100vh - var(--header-height));
    position: sticky;
    top: var(--header-height);
    overflow-y: auto;
    transition: transform var(--transition-normal);
}

.sidebar-content {
    padding: 2rem 1.5rem;
}

.sidebar-section {
    margin-bottom: 2.5rem;
}

.sidebar-title {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-tertiary);
    margin-bottom: 1rem;
}

.sidebar-list li {
    margin-bottom: 0.5rem;
}

.sidebar-link {
    display: block;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.sidebar-link:hover {
    background-color: var(--bg-hover);
    color: var(--text-primary);
    transform: translateX(4px);
}

/* Tags */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    padding: 0.375rem 0.875rem;
    background-color: var(--bg-tertiary);
    color: var(--text-secondary);
    border-radius: 20px;
    font-size: 0.875rem;
    transition: all var(--transition-fast);
    border: 1px solid var(--border-color);
}

.tag:hover {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow);
}

/* Popular Tracks */
.popular-tracks {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.popular-track {
    display: flex;
    gap: 0.75rem;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all var(--transition-fast);
}

.popular-track:hover {
    background-color: var(--bg-hover);
    transform: translateX(4px);
}

.popular-track-cover {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.popular-track-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

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

.popular-track-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.popular-track-artist {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ========== Main Content ========== */
.content {
    flex: 1;
    padding: var(--container-padding);
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 3rem 0;
    margin-bottom: 3rem;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px var(--shadow);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
}

/* Songs Section */
.songs-section {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.songs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--card-gap);
    transition: all var(--transition-normal);
}

/* List View */
.songs-grid.list-view {
    grid-template-columns: 1fr;
    gap: 1rem;
}

/* Song Card */
.song-card {
    position: relative;
    background-color: var(--bg-secondary);
    border-radius: 12px;
    padding: 1rem;
    transition: all var(--transition-normal);
    cursor: pointer;
    border: 1px solid transparent;
}

.song-card:hover {
    background-color: var(--bg-tertiary);
    transform: translateY(-8px);
    box-shadow: 0 12px 24px var(--shadow);
    border-color: var(--border-color);
}

.song-cover {
    position: relative;
    width: 100%;
    padding-top: 100%;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.song-cover svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.song-cover img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-btn {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: all var(--transition-normal);
    z-index: 10;
    box-shadow: 0 4px 16px var(--shadow), 0 0 20px var(--shadow);
}

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

.play-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px var(--shadow), 0 0 30px var(--accent-primary);
}

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

.song-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.song-artist {
    font-size: 0.875rem;
    color: var(--text-tertiary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.song-link {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

/* List View Styles */
.songs-grid.list-view .song-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem 1.5rem;
    position: relative;
}

.songs-grid.list-view .song-card:hover {
    transform: translateY(0) translateX(4px);
}

.songs-grid.list-view .song-cover {
    width: 80px;
    height: 80px;
    padding-top: 0;
    margin-bottom: 0;
    flex-shrink: 0;
}

.songs-grid.list-view .song-info {
    text-align: left;
    flex: 1;
    min-width: 0;
}

.songs-grid.list-view .song-title {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    white-space: normal;
}

.songs-grid.list-view .song-artist {
    font-size: 0.9375rem;
    white-space: normal;
}

.songs-grid.list-view .play-btn {
    opacity: 0.8;
    transform: none;
    z-index: 10;
    flex-shrink: 0;
    bottom: 1rem;
    right: 1rem;
}

/* ========== Song Page ========== */
.song-page {
    max-width: 900px;
    margin: 0 auto;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: var(--bg-secondary);
    color: var(--text-secondary);
    border-radius: 8px;
    margin-bottom: 2rem;
    transition: all var(--transition-fast);
}

.back-btn:hover {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    transform: translateX(-4px);
}

.song-page-content {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.song-page-cover {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px var(--shadow);
}

.song-page-cover img {
    width: 100%;
    height: auto;
    display: block;
}

.song-page-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.song-page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.song-page-artist {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

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

.player-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

.player-btn.secondary-btn {
    background-color: var(--bg-tertiary);
}

.player-btn.secondary-btn:hover {
    background-color: var(--bg-hover);
    transform: scale(1.1);
}

.player-btn.secondary-btn.active {
    background-color: var(--accent-primary);
    color: white;
}

.player-btn.primary-play-btn {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    box-shadow: 0 8px 16px rgba(99, 102, 241, 0.3);
}

.player-btn.primary-play-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 24px rgba(99, 102, 241, 0.4);
}

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

.time-current,
.time-total {
    font-size: 0.875rem;
    color: var(--text-tertiary);
    min-width: 40px;
}

.progress-bar {
    flex: 1;
    height: 6px;
    background-color: var(--bg-tertiary);
    border-radius: 3px;
    position: relative;
    cursor: pointer;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s linear;
    pointer-events: none;
}

.progress-input {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 100%;
    transform: translateY(-50%);
    opacity: 0;
    cursor: pointer;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.action-btn {
    flex: 1;
    min-width: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background-color: var(--bg-tertiary);
    color: var(--text-secondary);
    border-radius: 8px;
    transition: all var(--transition-fast);
}

.action-btn:hover {
    background-color: var(--bg-hover);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.action-btn.active {
    background-color: var(--accent-primary);
    color: white;
}

.action-btn svg {
    width: 20px;
    height: 20px;
}

/* Song Details */
.song-details {
    background-color: var(--bg-tertiary);
    border-radius: 12px;
    padding: 1.5rem;
    display: grid;
    gap: 1rem;
}

.song-detail-item {
    display: flex;
    justify-content: space-between;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.song-detail-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.detail-label {
    color: var(--text-tertiary);
    font-size: 0.875rem;
}

.detail-value {
    color: var(--text-primary);
    font-weight: 500;
}

/* Related Songs */
.related-songs {
    margin-top: 4rem;
}

/* ========== Pagination ========== */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
    padding: 2rem 0;
    grid-column: 1 / -1;
}

.pagination-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    border-radius: 8px;
    font-weight: 500;
    transition: all var(--transition-fast);
    border: 1px solid var(--border-color);
}

.pagination-btn:hover:not(:disabled) {
    background-color: var(--bg-tertiary);
    transform: translateX(-2px);
    border-color: var(--accent-primary);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-next:hover:not(:disabled) {
    transform: translateX(2px);
}

.pagination-numbers {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pagination-numbers a {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    font-weight: 500;
    transition: all var(--transition-fast);
    border: 1px solid var(--border-color);
}

.pagination-numbers a:hover {
    background-color: var(--bg-tertiary);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

.pagination-numbers a.active {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    border-color: transparent;
}

.pagination-dots {
    color: var(--text-tertiary);
    padding: 0 0.5rem;
}

/* ========== Footer ========== */
.footer {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 2rem var(--container-padding);
    margin-top: auto;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.footer-left p {
    color: var(--text-tertiary);
    font-size: 0.875rem;
}

.footer-center {
    display: flex;
    gap: 2rem;
}

.footer-link {
    color: var(--text-secondary);
    font-size: 0.875rem;
    transition: color var(--transition-fast);
}

.footer-link:hover {
    color: var(--text-primary);
}

.footer-right {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    background-color: var(--bg-tertiary);
    transition: all var(--transition-fast);
}

.social-link:hover {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    transform: translateY(-4px);
    box-shadow: 0 4px 12px var(--shadow);
}

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

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--bg-hover);
}

/* ========== Responsive Design ========== */

/* Tablet */
@media (max-width: 1024px) {
    :root {
        --sidebar-width: 240px;
        --container-padding: 1.5rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .song-page-content {
        grid-template-columns: 300px 1fr;
        gap: 2rem;
    }
    
    .song-page-title {
        font-size: 2rem;
    }
    
    .song-page-artist {
        font-size: 1.25rem;
    }
}

@media (max-width: 900px) {
    .nav {
        display: none;
    }
    
    .menu-toggle {
        display: flex;
    }
}

@media (max-width: 900px) {
    .header-actions {
        gap: 0.5rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    :root {
        --container-padding: 1rem;
        --card-gap: 1rem;
    }
    
    .logo h1 {
        display: none;
    }
    
    .view-toggle {
        padding: 0.2rem;
    }
    
    .view-btn {
        width: 34px;
        height: 34px;
    }
    
    .hero {
        padding: 2rem 0;
        margin-bottom: 2rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .songs-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .songs-grid.list-view {
        grid-template-columns: 1fr;
    }
    
    .songs-grid.list-view .song-card {
        gap: 1rem;
        padding: 1rem;
    }
    
    .songs-grid.list-view .song-cover {
        width: 60px;
        height: 60px;
    }
    
    .songs-grid.list-view .song-title {
        font-size: 1rem;
    }
    
    .songs-grid.list-view .song-artist {
        font-size: 0.875rem;
    }

    .songs-grid.list-view .play-btn {
        bottom: 0.8rem;
        right: 0.8rem;
        width: 35px;
        height: 35px;
    }
    
    .pagination {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .pagination-btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
    
    .pagination-numbers {
        order: 3;
        width: 100%;
        justify-content: center;
    }
    
    .pagination-numbers a {
        width: 36px;
        height: 36px;
    }
    
    .sidebar {
        position: fixed;
        left: 0;
        top: var(--header-height);
        transform: translateX(-100%);
        z-index: 999;
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .content {
        width: 100%;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-center {
        flex-direction: column;
        gap: 1rem;
    }
    
    .song-page-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .song-page-cover {
        max-width: 350px;
        margin: 0 auto;
    }
    
    .song-page-title {
        font-size: 1.75rem;
    }
    
    .song-page-artist {
        font-size: 1.125rem;
    }
    
    .player-controls {
        gap: 0.5rem;
    }
    
    .player-btn.secondary-btn {
        width: 40px;
        height: 40px;
    }
    
    .player-btn.primary-play-btn {
        width: 56px;
        height: 56px;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .action-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    :root {
        --header-height: 60px;
    }
    
    .header-container {
        padding: 0 1rem;
        gap: 0.5rem;
    }
    
    .logo svg {
        width: 28px;
        height: 28px;
    }
    
    .header-actions {
        gap: 0.5rem;
    }
    
    .view-toggle {
        padding: 0.15rem;
        gap: 0.15rem;
    }
    
    .view-btn {
        width: 32px;
        height: 32px;
    }
    
    .view-btn svg {
        width: 16px;
        height: 16px;
    }
    
    .theme-toggle,
    .search-toggle {
        width: 36px;
        height: 36px;
    }
    
    .theme-toggle svg,
    .search-toggle svg {
        width: 18px;
        height: 18px;
    }
    
    .songs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .section-title {
        font-size: 1.5rem;
    }
}

/* ========== Animations ========== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.song-card {
    animation: fadeIn var(--transition-slow) ease-out;
}

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

.player-btn.primary-play-btn.playing {
    animation: pulse 2s ease-in-out infinite;
}

/* ========== Utility Classes ========== */
.hidden {
    display: none !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

