/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #0a0a0a;
    color: #ffffff;
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Light theme */
body.light-theme {
    background-color: #f8f9fa;
    color: #1a1a1a;
}

/* Theme toggle */
.theme-toggle {
    margin-left: 16px;
}

#theme-switcher {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

body.light-theme #theme-switcher {
    background: rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.2);
}

.theme-icon {
    font-size: 18px;
    transition: transform 0.3s ease;
}

body.light-theme .theme-icon {
    content: '☀️';
}

/* Header */
.header {
    background: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    transition: all 0.3s ease;
}

body.light-theme .header {
    background: rgba(255, 255, 255, 0.95);
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* View toggle */
.view-toggle {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 2px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

body.light-theme .view-toggle {
    background: rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.2);
}

.view-btn {
    background: none;
    border: none;
    padding: 8px;
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.light-theme .view-btn {
    color: rgba(0, 0, 0, 0.7);
}

.view-btn:hover {
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
}

.view-btn.active {
    background: #ff6b6b;
    color: white;
}

.view-btn.active:hover {
    background: #ff5252;
}

.logo {
    font-size: 20px;
    font-weight: 700;
    color: #ff6b6b;
}

.logo a {
    text-decoration: none;
    color: inherit;
}

.nav {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

body.light-theme .nav-link {
    color: rgba(0, 0, 0, 0.8);
}

.nav-link:hover,
.nav-link.active {
    color: #ff6b6b;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #ff6b6b;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Search */
.search-container {
    position: relative;
    display: flex;
    align-items: center;
}

.search-toggle {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

body.light-theme .search-toggle {
    color: rgba(0, 0, 0, 0.8);
}

.search-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

body.light-theme .search-toggle:hover {
    background: rgba(0, 0, 0, 0.1);
}

.search-input-container {
    position: absolute;
    right: 0;
    top: 50px;
    background: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    min-width: 300px;
}

body.light-theme .search-input-container {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 0, 0, 0.1);
}

.search-input-container.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.search-input {
    flex: 1;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 14px;
    outline: none;
}

body.light-theme .search-input {
    color: #1a1a1a;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

body.light-theme .search-input::placeholder {
    color: rgba(0, 0, 0, 0.5);
}

.search-submit {
    background: #ff6b6b;
    border: none;
    border-radius: 6px;
    padding: 6px;
    cursor: pointer;
    color: white;
    transition: background 0.3s ease;
}

.search-submit:hover {
    background: #ff5252;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

body.light-theme .mobile-menu-toggle span {
    background: rgba(0, 0, 0, 0.8);
}

/* Container */
.container {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    padding: 90px 20px 0;
    gap: 30px;
}

/* Sidebar */
.sidebar {
    width: 280px;
    flex-shrink: 0;
    background: rgba(18, 18, 18, 0.5);
    border-radius: 16px;
    padding: 24px;
    height: fit-content;
    position: sticky;
    top: 100px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar.mobile-open {
    display: block !important;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: auto;
    z-index: 200;
    border-radius: 0;
    margin: 0;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
}

/* Prevent body scroll when mobile menu is open */
body.mobile-menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

body.light-theme .sidebar {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.1);
}

.sidebar-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #ffffff;
}

body.light-theme .sidebar-title {
    color: #1a1a1a;
}

.category-list {
    list-style: none;
    margin-bottom: 30px;
}

.category-link {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 8px;
    margin-bottom: 4px;
    transition: all 0.3s ease;
}

body.light-theme .category-link {
    color: rgba(0, 0, 0, 0.7);
}

.category-link:hover,
.category-link.active {
    background: rgba(255, 107, 107, 0.2);
    color: #ff6b6b;
}

/* Tags */
.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 30px;
}

.tags {
    margin-top: 20px;
}

.tag, .tags a {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

body.light-theme .tag, body.light-theme .tags a {
    background: rgba(0, 0, 0, 0.1);
    color: rgba(0, 0, 0, 0.8);
}

.tag:hover, .tags a:hover {
    background: rgba(255, 107, 107, 0.3);
    color: #ff6b6b;
}

/* Popular songs */
.popular-songs {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.popular-song-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.3s ease;
    cursor: pointer;
}

.popular-song-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

body.light-theme .popular-song-item:hover {
    background: rgba(0, 0, 0, 0.05);
}

.song-thumb {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
}

.song-info {
    flex: 1;
    min-width: 0;
}

.song-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.song-artist {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

body.light-theme .song-artist {
    color: rgba(0, 0, 0, 0.6);
}

/* Main content */
.main-content {
    flex: 1;
    min-width: 0;
}

/* Songs grid */
.songs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

/* List view */
.songs-list .songs-grid {
    grid-template-columns: 1fr !important;
    gap: 12px;
}

.song-card {
    background: rgba(18, 18, 18, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    backdrop-filter: blur(10px);
    position: relative;
    text-decoration: none;
}

/* Grid view song card (default) */
.song-card {
    display: block;
    height: auto;
    min-height: auto;
    padding: 0;
}

/* List view song card */
.songs-list .song-card {
    display: flex;
    padding: 12px;
    height: auto;
    min-height: 100px;
}

body.light-theme .song-card {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.1);
}

.song-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.2);
}

/* Grid view cover (default) */
.song-cover {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 0;
    flex-shrink: unset;
    margin-right: 0;
}

/* List view cover */
.songs-list .song-cover {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    margin-right: 16px;
}

.song-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.song-card:hover .song-cover img {
    transform: scale(1.05);
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 107, 107, 0.9);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.song-card:hover .play-btn {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.play-btn:hover {
    background: #ff6b6b;
    transform: translate(-50%, -50%) scale(1.2);
}

/* Playing state for song cards */
.song-card.playing .play-btn {
    background: #4CAF50;
}

.song-card.playing .play-btn:hover {
    background: #45a049;
}

.song-card.playing .play-btn .play-icon {
    display: none;
}

.song-card.playing .play-btn .pause-icon {
    display: block;
}

/* Grid view details (default) */
.song-details {
    padding: 16px;
    flex: unset;
    display: block;
}

/* List view details */
.songs-list .song-details {
    padding: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.song-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #ffffff;
}

body.light-theme .song-title {
    color: #1a1a1a;
}

.song-details .song-artist {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

body.light-theme .song-details .song-artist {
    color: rgba(0, 0, 0, 0.7);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
    padding: 20px 0;
    grid-column: 1 / -1;
}

.pagination a, .pagination > span, .page-numbers span {
    text-decoration: none;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
    padding: 6px 10px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

body.light-theme .pagination a, .pagination > span {
    background: rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.2);
    color: rgba(0, 0, 0, 0.8);
}

.pagination a:hover,
.pagination a.active {
    background: #ff6b6b;
    border-color: #ff6b6b;
    color: white;
}

.pagination > span {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-numbers span {
    color: #494949;
    background: #e6e6e4;
}

.page-numbers .nav_ext {
    color: #333;
    padding: 0 8px;
}

body.light-theme .page-dots {
    color: rgba(0, 0, 0, 0.5);
}

.pagination {
    display: flex;
    gap: 4px;
    align-items: center;
}

/* Song detail page */
.song-detail-page {
    max-width: 800px;
    margin: 0 auto;
}

.song-header {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
    align-items: center;
}

.song-cover-large {
    width: 300px;
    height: 300px;
    border-radius: 16px;
    overflow: hidden;
    flex-shrink: 0;
}

.song-cover-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.song-info-large {
    flex: 1;
}

.song-title-large {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #ffffff;
    line-height: 1.2;
}

body.light-theme .song-title-large {
    color: #1a1a1a;
}

.song-artist-large {
    font-size: 24px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 24px;
}

body.light-theme .song-artist-large {
    color: rgba(0, 0, 0, 0.7);
}

.song-actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

.play-large-btn {
    background: #ff6b6b;
    border: none;
    border-radius: 12px;
    padding: 16px 32px;
    color: white;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.play-large-btn:hover {
    background: #ff5252;
    transform: translateY(-2px);
}

.play-large-btn.playing {
    background: #4CAF50;
}

.play-large-btn.playing:hover {
    background: #45a049;
}

.action-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
}

body.light-theme .action-btn {
    background: rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.2);
    color: rgba(0, 0, 0, 0.8);
}

.action-btn:hover {
    background: rgba(255, 107, 107, 0.2);
    border-color: #ff6b6b;
    color: #ff6b6b;
}

.like-btn.liked {
    background: #ff6b6b;
    color: white;
}

.dislike-btn.disliked {
    background: #ff6b6b;
    color: white;
}

.download-btn:hover {
    background: rgba(76, 175, 80, 0.2);
    border-color: #4CAF50;
    color: #4CAF50;
}

.download-btn:active {
    transform: scale(0.95);
}

/* Player section */
.player-section {
    background: rgba(18, 18, 18, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 40px;
    backdrop-filter: blur(10px);
}

body.light-theme .player-section {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.1);
}

.player-container {
    display: flex;
    align-items: center;
    gap: 20px;
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

.player-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
}

body.light-theme .player-btn {
    background: rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.2);
    color: rgba(0, 0, 0, 0.8);
}

.player-btn:hover {
    background: rgba(255, 107, 107, 0.2);
    border-color: #ff6b6b;
    color: #ff6b6b;
    transform: scale(1.05);
}

.player-btn.playing {
    background: #ff6b6b;
    color: white;
}

.progress-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.progress-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
}

body.light-theme .progress-bar {
    background: rgba(0, 0, 0, 0.2);
}

.progress-fill {
    height: 100%;
    background: #ff6b6b;
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s ease;
}

.time-display {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

body.light-theme .time-display {
    color: rgba(0, 0, 0, 0.7);
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 120px;
}

.volume-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
}

body.light-theme .volume-btn {
    background: rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.2);
    color: rgba(0, 0, 0, 0.8);
}

.volume-btn:hover {
    background: rgba(255, 107, 107, 0.2);
    color: #ff6b6b;
}

.volume-bar {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
}

body.light-theme .volume-bar {
    background: rgba(0, 0, 0, 0.2);
}

.volume-fill {
    height: 100%;
    background: #ff6b6b;
    border-radius: 2px;
    width: 70%;
}

/* Related songs */
.related-songs {
    margin-top: 60px;
}

.section-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #ffffff;
}

body.light-theme .section-title {
    color: #1a1a1a;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

/* Footer */
.footer {
    background: rgba(18, 18, 18, 0.9);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 60px;
    padding: 40px 0 20px;
    backdrop-filter: blur(10px);
}

body.light-theme .footer {
    background: rgba(255, 255, 255, 0.9);
    border-top-color: rgba(0, 0, 0, 0.1);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-section {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

body.light-theme .footer-section p {
    color: rgba(0, 0, 0, 0.7);
}

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

body.light-theme .footer-link {
    color: rgba(0, 0, 0, 0.7);
}

.footer-link:hover {
    color: #ff6b6b;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 8px;
    border-radius: 8px;
}

body.light-theme .social-link {
    color: rgba(0, 0, 0, 0.7);
}

.social-link:hover {
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
}

/* Responsive design */
@media (max-width: 1024px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
        gap: 20px;
    }

    .sidebar {
        width: 250px;
    }

    .songs-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 16px;
    }

    .song-title-large {
        font-size: 36px;
    }

    .song-artist-large {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .header-content {
        padding: 0 15px;
        height: 60px;
    }

    .nav {
        display: none;
    }

    .sidebar {
        display: none;
    }

    .header-right {
        gap: 8px;
    }

    .view-btn {
        padding: 6px;
    }

    .view-toggle {
        padding: 1px;
    }

    .view-btn svg {
        width: 16px;
        height: 16px;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .container {
        flex-direction: column;
        padding-top: 80px;
        gap: 20px;
    }

    .sidebar {
        width: 100%;
        position: static;
        order: 2;
    }

    .songs-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 12px;
    }

    .song-header {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }

    .song-cover-large {
        width: 250px;
        height: 250px;
    }

    .song-title-large {
        font-size: 28px;
    }

    .song-artist-large {
        font-size: 18px;
    }

    .song-actions {
        justify-content: center;
    }

    .player-container {
        flex-direction: column;
        gap: 16px;
    }

    .progress-container {
        order: -1;
        width: 100%;
    }

    .volume-control {
        justify-content: center;
        min-width: auto;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .footer-section {
        justify-content: center;
    }

    .pagination {
        flex-wrap: wrap;
        gap: 4px;
    }

    .page-btn {
        padding: 8px 12px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .header-right {
        gap: 6px;
    }

    #theme-switcher {
        width: 36px;
        height: 36px;
    }

    .theme-icon {
        font-size: 16px;
    }

    .mobile-menu-toggle {
        width: 32px;
        height: 32px;
        padding: 6px;
        flex-shrink: 0;
    }

    .mobile-menu-toggle span {
        width: 20px;
        height: 2px;
    }

    .search-container {
        position: relative;
        z-index: 10;
    }
}

    .songs-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }

    .song-details {
        padding: 12px;
    }

    .song-title {
        font-size: 14px;
    }

    .song-details .song-artist {
        font-size: 12px;
    }

    .song-cover-large {
        width: 200px;
        height: 200px;
    }

    .song-title-large {
        font-size: 24px;
    }

    .song-artist-large {
        font-size: 16px;
    }

    .song-actions {
        flex-wrap: wrap;
        gap: 12px;
    }

    .action-btn {
        width: 48px;
        height: 48px;
    }

    .play-large-btn {
        padding: 12px 24px;
        font-size: 16px;
    }

    .player-controls {
        gap: 12px;
    }

    .player-btn {
        width: 40px;
        height: 40px;
    }

    .search-input-container {
        min-width: 250px;
    }

    .page-title {
        font-size: 24px;
    }

    .page-description {
        font-size: 14px;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.song-card {
    animation: fadeIn 0.5s ease-out;
}

.song-card:nth-child(1) { animation-delay: 0.1s; }
.song-card:nth-child(2) { animation-delay: 0.2s; }
.song-card:nth-child(3) { animation-delay: 0.3s; }
.song-card:nth-child(4) { animation-delay: 0.4s; }
.song-card:nth-child(5) { animation-delay: 0.5s; }
.song-card:nth-child(6) { animation-delay: 0.6s; }

/* Utility classes */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Page header */
.page-header {
    margin-bottom: 30px;
    text-align: center;
}

.page-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #ffffff;
}

body.light-theme .page-title {
    color: #1a1a1a;
}

.page-description {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

body.light-theme .page-description {
    color: rgba(0, 0, 0, 0.7);
}

/* Song rank */
.song-rank {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(255, 107, 107, 0.9);
    color: white;
    font-size: 14px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 12px;
    z-index: 10;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 107, 107, 0.5);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ff6b6b;
}

body.light-theme ::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

body.light-theme ::-webkit-scrollbar-thumb {
    background: rgba(255, 107, 107, 0.5);
}
