:root {
    --bg-color: #000000;
    --sidebar-bg: #000000;
    --player-bg: #181818;
    --hover-bg: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #a7a7a7;
    --accent-color: #00A8E1; /* Amazon Music Cyan */
    --accent-hover: #0088b8;
    --font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --divider-color: #282828;
}

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

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

.app-container {
    display: flex;
    flex: 1;
    overflow: hidden;
    height: calc(100vh - 90px);
}

/* Sidebar */
.sidebar {
    width: 250px;
    background-color: var(--sidebar-bg);
    padding: 24px 12px;
    display: flex;
    flex-direction: column;
}

.logo {
    font-size: 26px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 30px;
    padding: 0 12px;
    cursor: pointer;
}

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

.nav-links {
    list-style: none;
    margin-bottom: 24px;
}

.nav-links li {
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 4px;
    transition: color 0.2s ease, background-color 0.2s ease;
}

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

.nav-links li.active {
    color: var(--text-primary);
    background-color: #282828;
}

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

.library-section {
    margin-top: 10px;
}

.library-header {
    padding: 0 16px;
    margin-bottom: 12px;
}

.library-header h3 {
    font-size: 11px;
    color: var(--text-secondary);
    letter-spacing: 1px;
    font-weight: 600;
}

.secondary-links li {
    gap: 12px;
}

.icon-bg {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-bg i {
    font-size: 12px;
    width: auto;
}

.create-icon {
    background-color: #b3b3b3;
    color: #000;
}

.nav-links li:hover .create-icon {
    background-color: #fff;
}

.liked-icon {
    background: linear-gradient(135deg, #450af5, #c4efd9);
    color: #fff;
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: linear-gradient(to bottom, #1e1e1e 0%, var(--bg-color) 40%);
    overflow: hidden;
    border-radius: 8px;
    margin: 8px 8px 0 0;
}

.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background-color: transparent;
    z-index: 10;
    height: 64px;
}

.nav-arrows {
    display: flex;
    gap: 8px;
}

.nav-arrow {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.7);
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-bar {
    display: flex;
    align-items: center;
    background-color: #242424;
    border-radius: 500px;
    padding: 10px 16px;
    width: 100%;
    max-width: 364px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.search-bar:focus-within {
    border-color: rgba(255, 255, 255, 0.2);
    background-color: #2a2a2a;
}

.search-bar i {
    color: var(--text-secondary);
    margin-right: 12px;
    font-size: 18px;
}

.search-bar input {
    background: none;
    border: none;
    color: var(--text-primary);
    width: 100%;
    outline: none;
    font-size: 14px;
    font-weight: 500;
}

.desktop-search {
    display: flex;
    margin-left: 20px;
    flex: 1;
    max-width: 400px;
}

.search-container-mobile {
    display: none;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 16px;
}

.upgrade-btn {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--text-secondary);
    border-radius: 500px;
    padding: 6px 16px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 1px;
    transition: transform 0.1s ease;
}

.upgrade-btn:hover {
    transform: scale(1.04);
    border-color: #fff;
}

.user-profile img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
}

.content-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

/* Custom Scrollbar */
.content-scroll::-webkit-scrollbar {
    width: 12px;
}
.content-scroll::-webkit-scrollbar-track {
    background: transparent;
}
.content-scroll::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    border: 3px solid var(--bg-color);
}
.content-scroll::-webkit-scrollbar-thumb:hover {
    background-color: rgba(255, 255, 255, 0.5);
}

.hero-section {
    padding: 40px 24px;
    display: flex;
    align-items: flex-end;
    min-height: 30vh;
}

.hero-content h4 {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.hero-content h1 {
    font-size: 72px;
    margin-bottom: 8px;
    font-weight: 800;
    line-height: 1;
}

.hero-content p {
    font-size: 14px;
    margin-bottom: 24px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

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

.play-btn-large {
    background-color: var(--accent-color);
    color: #000;
    border: none;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.1s ease, background-color 0.2s ease;
}

.play-btn-large:hover {
    transform: scale(1.05);
    background-color: #00c0ff;
}

.action-btn-large {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 32px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.action-btn-large:hover {
    color: var(--text-primary);
}

.songs-section {
    padding: 0 24px 40px;
}

.songs-header {
    margin-bottom: 16px;
}

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

.songs-list-header {
    display: flex;
    align-items: center;
    padding: 0 16px 8px;
    color: var(--text-secondary);
    font-size: 12px;
    border-bottom: 1px solid var(--divider-color);
    margin-bottom: 16px;
}

.header-num {
    width: 30px;
    text-align: right;
    margin-right: 16px;
}

.header-title {
    flex: 1;
}

.header-album {
    width: 30%;
    margin-right: 16px;
}

.header-time {
    width: 40px;
    text-align: center;
}

.songs-list {
    display: flex;
    flex-direction: column;
}

.song-item {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

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

.song-item.playing .song-number,
.song-item.playing .header-num {
    display: none;
}

.song-item.playing .playing-icon {
    display: block;
}

.song-item.playing .song-info-list h4 {
    color: var(--accent-color);
}

.song-number {
    width: 30px;
    color: var(--text-secondary);
    text-align: right;
    font-size: 16px;
    margin-right: 16px;
    font-variant-numeric: tabular-nums;
}

.playing-icon {
    display: none;
    width: 30px;
    text-align: right;
    margin-right: 16px;
}

.playing-icon img {
    width: 14px;
    height: 14px;
}

.song-image {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    margin-right: 16px;
    object-fit: cover;
}

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

.song-info-list h4 {
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 2px;
    color: var(--text-primary);
}

.song-info-list p {
    font-size: 14px;
    color: var(--text-secondary);
}

.song-album-name {
    width: 30%;
    font-size: 14px;
    color: var(--text-secondary);
    margin-right: 16px;
}

.song-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

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

.song-actions i {
    color: var(--text-secondary);
    font-size: 18px;
    cursor: pointer;
}

.song-actions i:hover {
    color: var(--text-primary);
}

.song-duration {
    color: var(--text-secondary);
    font-size: 14px;
    width: 40px;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

/* Bottom Player Bar */
.player-bar {
    height: 90px;
    background-color: var(--player-bg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    z-index: 100;
}

.song-info {
    display: flex;
    align-items: center;
    width: 30%;
    min-width: 180px;
}

.song-info img {
    width: 56px;
    height: 56px;
    border-radius: 4px;
    margin-right: 16px;
    object-fit: cover;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

.song-details {
    margin-right: 16px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.song-details h4 {
    font-size: 14px;
    margin-bottom: 4px;
    font-weight: 500;
    cursor: pointer;
}

.song-details h4:hover {
    text-decoration: underline;
}

.song-details p {
    font-size: 12px;
    color: var(--text-secondary);
    cursor: pointer;
}

.song-details p:hover {
    text-decoration: underline;
    color: var(--text-primary);
}

.like-btn {
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 16px;
    transition: color 0.2s;
}

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

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

.player-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 40%;
    max-width: 722px;
}

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

.control-icon {
    color: var(--text-secondary);
    font-size: 16px;
    cursor: pointer;
    transition: color 0.2s;
}

.control-icon:hover {
    color: var(--text-primary);
}

.play-pause-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--text-primary);
    border: none;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.1s ease;
}

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

.play-pause-btn i {
    font-size: 14px;
    margin-left: 2px;
}

.play-pause-btn.playing i {
    margin-left: 0;
}

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

.progress-container span {
    font-size: 11px;
    color: var(--text-secondary);
    min-width: 40px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 4px;
    background: #4d4d4d;
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.2s;
    box-shadow: 0 2px 4px 0 rgba(0,0,0,.5);
}

.progress-container:hover input[type="range"]::-webkit-slider-thumb,
.volume-container:hover input[type="range"]::-webkit-slider-thumb {
    opacity: 1;
}

input[type="range"]:focus {
    outline: none;
}

input[type="range"]::-webkit-slider-runnable-track {
    background: linear-gradient(#fff, #fff) 0/var(--value, 0%) 100% no-repeat #4d4d4d;
}

.progress-container:hover input[type="range"]::-webkit-slider-runnable-track,
.volume-container:hover input[type="range"]::-webkit-slider-runnable-track {
    background: linear-gradient(var(--accent-color), var(--accent-color)) 0/var(--value, 0%) 100% no-repeat #4d4d4d;
}


.extra-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 30%;
    min-width: 180px;
    gap: 16px;
    color: var(--text-secondary);
}

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

.volume-container input[type="range"] {
    width: 100%;
}

.extra-controls i {
    cursor: pointer;
    font-size: 16px;
}

.extra-controls i:hover {
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .sidebar {
        display: none;
    }
    .desktop-search {
        display: none;
    }
    .search-container-mobile {
        display: block;
        margin-bottom: 20px;
    }
    .app-container {
        flex-direction: column;
    }
    .main-content {
        margin: 0;
        border-radius: 0;
    }
    .song-info {
        width: auto;
        flex: 1;
    }
    .extra-controls {
        display: none;
    }
    .player-controls {
        width: auto;
        margin-right: 16px;
    }
    .progress-container {
        display: none;
    }
    .hero-content h1 {
        font-size: 40px;
    }
    .header-album {
        display: none;
    }
    .song-album-name {
        display: none;
    }
}
