:root {
    --background: #09090b;
    --background-light: #111114;
    --panel: #151518;
    --panel-hover: #1d1d22;

    --text: #ffffff;
    --text-secondary: #a3a3aa;
    --text-muted: #68686f;

    --accent: #8b5cf6;
    --accent-light: #a78bfa;

    --border: rgba(255,255,255,0.07);

    --player-height: 92px;

    --radius: 18px;
}


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


html,
body {
    width: 100%;
    height: 100%;
}


body {
    font-family: "Inter", sans-serif;
    background: var(--background);
    color: var(--text);
    overflow: hidden;
}


button,
input {
    font-family: inherit;
}


button {
    border: none;
    cursor: pointer;
}


/* =========================
   APP
========================= */

.app {
    display: grid;

    grid-template-columns: 240px 1fr;

    height: 100vh;

    padding-bottom: var(--player-height);
}


/* =========================
   SIDEBAR
========================= */

.sidebar {
    display: flex;
    flex-direction: column;

    background: #0c0c0e;

    border-right: 1px solid var(--border);

    padding: 26px 16px;
}


.logo {
    display: flex;
    align-items: center;
    gap: 10px;

    padding: 0 10px;

    margin-bottom: 42px;

    font-weight: 800;
    font-size: 18px;
    letter-spacing: 2px;
}


.logo-icon {
    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background: linear-gradient(
        135deg,
        #8b5cf6,
        #ec4899
    );

    font-size: 19px;
}


.navigation {
    display: flex;
    flex-direction: column;

    gap: 5px;
}


.nav-item {
    display: flex;
    align-items: center;

    gap: 14px;

    width: 100%;

    padding: 12px 14px;

    background: transparent;

    color: var(--text-secondary);

    border-radius: 10px;

    text-align: left;

    font-size: 14px;
    font-weight: 600;

    transition: 0.2s;
}


.nav-item span:first-child {
    width: 18px;

    text-align: center;

    font-size: 18px;
}


.nav-item:hover {
    color: white;
    background: rgba(255,255,255,0.05);
}


.nav-item.active {
    color: white;

    background: rgba(139,92,246,0.16);
}


.sidebar-playlists {
    margin-top: 42px;
}


.sidebar-title {
    padding: 0 12px;

    margin-bottom: 14px;

    color: var(--text-muted);

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 1.5px;
}


.playlist-link {
    display: flex;
    align-items: center;

    gap: 12px;

    width: 100%;

    padding: 10px 12px;

    color: var(--text-secondary);

    background: transparent;

    border-radius: 9px;

    text-align: left;

    font-size: 13px;
}


.playlist-link:hover {
    background: rgba(255,255,255,0.05);
    color: white;
}


.playlist-color {
    width: 10px;
    height: 10px;

    border-radius: 3px;
}


.purple {
    background: #8b5cf6;
}


.blue {
    background: #3b82f6;
}


.orange {
    background: #f97316;
}


.sidebar-bottom {
    margin-top: auto;
}


.upload-button {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    width: 100%;

    padding: 12px;

    color: white;

    border: 1px solid var(--border);

    border-radius: 10px;

    cursor: pointer;

    font-size: 12px;
    font-weight: 600;

    transition: 0.2s;
}


.upload-button:hover {
    background: rgba(255,255,255,0.06);
}


/* =========================
   MAIN
========================= */

.main {
    min-width: 0;

    overflow-y: auto;

    background:
        radial-gradient(
            circle at 70% 0%,
            rgba(139,92,246,0.09),
            transparent 35%
        ),
        var(--background);
}


/* =========================
   TOPBAR
========================= */

.topbar {
    position: sticky;

    top: 0;

    z-index: 10;

    display: flex;
    align-items: center;

    gap: 20px;

    height: 74px;

    padding: 0 34px;

    background: rgba(9,9,11,0.75);

    backdrop-filter: blur(18px);

    border-bottom: 1px solid rgba(255,255,255,0.03);
}


.navigation-buttons {
    display: flex;
    gap: 8px;
}


.navigation-buttons button {
    width: 34px;
    height: 34px;

    border-radius: 50%;

    background: rgba(255,255,255,0.06);

    color: white;

    font-size: 24px;

    display: flex;
    align-items: center;
    justify-content: center;
}


.search {
    position: relative;

    width: min(420px, 45vw);
}


.search input {
    width: 100%;

    height: 40px;

    padding: 0 16px 0 42px;

    background: #18181c;

    color: white;

    border: 1px solid transparent;

    border-radius: 22px;

    outline: none;

    font-size: 13px;
}


.search input:focus {
    border-color: rgba(139,92,246,0.5);
}


.search-icon {
    position: absolute;

    left: 16px;

    top: 50%;

    transform: translateY(-50%);

    color: var(--text-muted);

    font-size: 20px;

    pointer-events: none;
}


.profile {
    display: flex;
    align-items: center;

    gap: 10px;

    margin-left: auto;

    font-size: 12px;
    font-weight: 600;
}


.avatar {
    width: 32px;
    height: 32px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            #6366f1,
            #ec4899
        );

    font-size: 12px;
}


.profile-arrow {
    color: var(--text-muted);
}


/* =========================
   CONTENT
========================= */

.content {
    max-width: 1250px;

    margin: auto;

    padding: 36px 42px 120px;
}


/* =========================
   HERO
========================= */

.hero {
    position: relative;

    min-height: 330px;

    display: flex;
    align-items: center;

    overflow: hidden;

    padding: 50px;

    border-radius: 24px;

    background:
        linear-gradient(
            120deg,
            #181322,
            #100f17 50%,
            #15121f
        );

    border: 1px solid rgba(255,255,255,0.06);
}


.hero::after {
    content: "";

    position: absolute;

    width: 500px;
    height: 500px;

    right: -150px;
    top: -250px;

    border-radius: 50%;

    background: #8b5cf6;

    filter: blur(140px);

    opacity: 0.16;
}


.hero-text {
    position: relative;

    z-index: 2;

    max-width: 570px;
}


.eyebrow {
    color: var(--accent-light);

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 2px;
}


.hero h1 {
    margin-top: 12px;

    font-size: clamp(38px, 5vw, 64px);

    line-height: 0.98;

    letter-spacing: -3px;
}


.hero p {
    max-width: 470px;

    margin-top: 18px;

    color: var(--text-secondary);

    font-size: 14px;

    line-height: 1.7;
}


.primary-button {
    margin-top: 25px;

    padding: 12px 20px;

    color: white;

    background: var(--accent);

    border-radius: 24px;

    font-size: 13px;
    font-weight: 700;

    box-shadow:
        0 8px 30px rgba(139,92,246,0.25);

    transition: 0.2s;
}


.primary-button:hover {
    background: var(--accent-light);

    transform: translateY(-2px);
}


/* =========================
   HERO VISUAL
========================= */

.hero-visual {
    position: absolute;

    right: 70px;

    width: 250px;
    height: 250px;
}


.disc {
    position: absolute;

    width: 210px;
    height: 210px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            #19191e 0 8%,
            #050505 9% 16%,
            #202025 17% 20%,
            #050505 21% 30%,
            #17171b 31% 45%,
            #050505 46% 100%
        );

    box-shadow:
        0 30px 80px rgba(0,0,0,0.5);

    border: 1px solid #2b2b30;
}


.disc::after {
    content: "";

    position: absolute;

    inset: 35%;

    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            #8b5cf6,
            #ec4899
        );

    border: 5px solid #101014;
}


.disc-one {
    transform: rotate(-18deg);
}


.disc-two {
    top: 35px;
    left: 35px;

    transform: rotate(12deg);

    opacity: 0.7;
}


.disc-three {
    top: 70px;
    left: 70px;

    opacity: 0.4;
}


/* =========================
   SECTION HEADER
========================= */

.section-header {
    display: flex;
    align-items: end;

    justify-content: space-between;

    margin-top: 42px;

    margin-bottom: 18px;
}


.section-header h2 {
    font-size: 22px;

    letter-spacing: -0.5px;
}


.section-header p {
    margin-top: 5px;

    color: var(--text-muted);

    font-size: 11px;
}


.sort-button {
    padding: 8px 12px;

    color: var(--text-secondary);

    background: transparent;

    border: 1px solid var(--border);

    border-radius: 8px;

    font-size: 11px;
}


/* =========================
   DROP ZONE
========================= */

.drop-zone {
    display: flex;
    align-items: center;

    gap: 15px;

    padding: 15px 18px;

    margin-bottom: 14px;

    border: 1px dashed rgba(139,92,246,0.25);

    border-radius: 12px;

    color: var(--text-secondary);

    background: rgba(139,92,246,0.03);

    transition: 0.2s;
}


.drop-zone.dragging {
    background: rgba(139,92,246,0.12);

    border-color: var(--accent);
}


.drop-icon {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background: rgba(139,92,246,0.12);

    color: var(--accent-light);

    font-size: 18px;
}


.drop-zone strong {
    display: block;

    color: white;

    font-size: 12px;
}


.drop-zone span {
    display: block;

    margin-top: 3px;

    font-size: 11px;

    color: var(--text-muted);
}


/* =========================
   TRACK LIST
========================= */

.track-list {
    display: flex;
    flex-direction: column;

    gap: 4px;
}


.track {
    display: grid;

    grid-template-columns: 44px minmax(0, 1fr) 120px 70px 40px;

    align-items: center;

    gap: 15px;

    padding: 8px 12px;

    border-radius: 10px;

    transition: 0.2s;
}


.track:hover {
    background: rgba(255,255,255,0.045);
}


.track.active {
    background: rgba(139,92,246,0.10);
}


.track-cover {
    width: 44px;
    height: 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    border-radius: 7px;

    background:
        linear-gradient(
            135deg,
            #27272a,
            #18181b
        );

    color: #a1a1aa;

    font-size: 18px;
}


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


.track-title {
    overflow: hidden;

    white-space: nowrap;

    text-overflow: ellipsis;

    color: white;

    font-size: 13px;
    font-weight: 600;
}


.track-artist {
    margin-top: 4px;

    overflow: hidden;

    white-space: nowrap;

    text-overflow: ellipsis;

    color: var(--text-muted);

    font-size: 11px;
}


.track-album {
    overflow: hidden;

    white-space: nowrap;

    text-overflow: ellipsis;

    color: var(--text-muted);

    font-size: 11px;
}


.track-duration {
    color: var(--text-muted);

    font-size: 11px;

    text-align: right;
}


.track-actions {
    display: flex;
    justify-content: flex-end;
}


.track-favorite {
    background: transparent;

    color: var(--text-muted);

    font-size: 17px;
}


.track-favorite:hover,
.track-favorite.favorite {
    color: #f43f5e;
}


.empty-state {
    padding: 60px 20px;

    text-align: center;

    color: var(--text-muted);
}


.empty-state-icon {
    margin-bottom: 12px;

    color: var(--accent);

    font-size: 35px;
}


.empty-state strong {
    display: block;

    margin-bottom: 7px;

    color: white;

    font-size: 14px;
}


.empty-state span {
    font-size: 12px;
}


/* =========================
   PLAYER
========================= */

.player {
    position: fixed;

    z-index: 100;

    left: 0;
    right: 0;
    bottom: 0;

    height: var(--player-height);

    display: grid;

    grid-template-columns: 280px 1fr 240px;

    align-items: center;

    gap: 30px;

    padding: 12px 22px;

    background: rgba(15,15,18,0.94);

    backdrop-filter: blur(25px);

    border-top: 1px solid var(--border);
}


.current-track {
    display: flex;
    align-items: center;

    min-width: 0;

    gap: 11px;
}


.current-cover {
    width: 54px;
    height: 54px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 8px;

    background:
        linear-gradient(
            135deg,
            #27272a,
            #18181b
        );

    color: #a78bfa;

    font-size: 20px;
}


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


.current-info strong {
    display: block;

    overflow: hidden;

    white-space: nowrap;

    text-overflow: ellipsis;

    font-size: 12px;
}


.current-info span {
    display: block;

    overflow: hidden;

    white-space: nowrap;

    text-overflow: ellipsis;

    margin-top: 5px;

    color: var(--text-muted);

    font-size: 10px;
}


.favorite-button {
    margin-left: 5px;

    color: var(--text-secondary);

    background: transparent;

    font-size: 21px;
}


.favorite-button.favorite {
    color: #f43f5e;
}


/* =========================
   PLAYER CONTROLS
========================= */

.player-center {
    width: 100%;

    max-width: 650px;

    justify-self: center;
}


.controls {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 18px;

    margin-bottom: 8px;
}


.control-button {
    width: 25px;
    height: 25px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: transparent;

    color: var(--text-secondary);

    font-size: 15px;

    transition: 0.2s;
}


.control-button:hover {
    color: white;

    transform: scale(1.1);
}


.control-button.active {
    color: var(--accent-light);
}


.play-button {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: white;

    color: #09090b;

    font-size: 14px;

    transition: 0.2s;
}


.play-button:hover {
    transform: scale(1.08);
}


/* =========================
   PROGRESS
========================= */

.progress-container {
    display: flex;
    align-items: center;

    gap: 9px;
}


.progress-container span {
    width: 35px;

    color: var(--text-muted);

    font-size: 9px;

    text-align: center;
}


input[type="range"] {
    appearance: none;

    width: 100%;

    height: 4px;

    background: #3a3a40;

    border-radius: 10px;

    outline: none;

    cursor: pointer;
}


input[type="range"]::-webkit-slider-thumb {
    appearance: none;

    width: 11px;
    height: 11px;

    border-radius: 50%;

    background: white;

    opacity: 0;

    transition: 0.15s;
}


input[type="range"]:hover::-webkit-slider-thumb {
    opacity: 1;
}


input[type="range"]::-moz-range-thumb {
    width: 11px;
    height: 11px;

    border: none;

    border-radius: 50%;

    background: white;
}


/* =========================
   VOLUME
========================= */

.volume {
    display: flex;
    align-items: center;

    justify-content: flex-end;

    gap: 10px;
}


.volume span {
    font-size: 14px;
}


.volume input {
    width: 100px;
}


/* =========================
   TOAST
========================= */

.toast {
    position: fixed;

    z-index: 200;

    left: 50%;
    bottom: 115px;

    transform:
        translate(-50%, 20px);

    padding: 11px 18px;

    color: white;

    background: #242429;

    border: 1px solid var(--border);

    border-radius: 9px;

    box-shadow: 0 15px 40px rgba(0,0,0,0.4);

    font-size: 12px;

    opacity: 0;

    pointer-events: none;

    transition: 0.25s;
}


.toast.show {
    opacity: 1;

    transform:
        translate(-50%, 0);
}


/* =========================
   SCROLLBAR
========================= */

::-webkit-scrollbar {
    width: 7px;
}


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


::-webkit-scrollbar-thumb {
    background: #2b2b30;

    border-radius: 20px;
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 950px) {

    .app {
        grid-template-columns: 80px 1fr;
    }

    .sidebar {
        padding: 20px 10px;
    }

    .logo {
        justify-content: center;
        padding: 0;
    }

    .logo span {
        display: none;
    }

    .nav-item {
        justify-content: center;
        padding: 13px;
    }

    .nav-item span:last-child {
        display: none;
    }

    .sidebar-playlists {
        display: none;
    }

    .upload-button {
        font-size: 0;
    }

    .upload-button span {
        font-size: 22px;
    }

    .hero-visual {
        right: -20px;
        opacity: 0.6;
    }

    .player {
        grid-template-columns: 220px 1fr 130px;
        gap: 15px;
    }

    .volume input {
        width: 70px;
    }
}


@media (max-width: 700px) {

    body {
        overflow: auto;
    }

    .app {
        display: block;

        height: auto;

        padding-bottom: 150px;
    }

    .sidebar {
        display: none;
    }

    .topbar {
        padding: 0 16px;

        gap: 10px;
    }

    .navigation-buttons {
        display: none;
    }

    .search {
        width: 100%;
    }

    .profile span:not(.profile-arrow) {
        display: none;
    }

    .content {
        padding: 20px 16px 40px;
    }

    .hero {
        min-height: 390px;

        padding: 30px;

        align-items: flex-start;
    }

    .hero h1 {
        font-size: 42px;
    }

    .hero-visual {
        right: -70px;
        bottom: -60px;

        opacity: 0.5;

        transform: scale(0.8);
    }

    .track {
        grid-template-columns: 44px minmax(0,1fr) 35px;

        gap: 10px;
    }

    .track-album,
    .track-duration {
        display: none;
    }

    .track-actions {
        justify-content: center;
    }

    .player {
        height: auto;
        min-height: 110px;

        grid-template-columns: 1fr auto;

        gap: 8px;

        padding: 12px 15px;
    }

    .player-center {
        grid-column: 1 / -1;

        grid-row: 2;

        max-width: none;
    }

    .current-track {
        grid-column: 1;
    }

    .volume {
        grid-column: 2;
    }

    .volume input {
        display: none;
    }

    .controls {
        margin-bottom: 5px;
    }
    .hero-visual {
    position: absolute;

    right: 50px;

    width: 200px;
    height: 200px;

    z-index: 2;
	}

.hero-visual img {
    width: 100%;
    height: 100%;

    object-fit: contain;

    border-radius: 24px;

    display: block;
	}