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

:root {
    --bg-0: #050608;
    --bg-1: #0b0d11;
    --bg-2: #151821;
    --border-soft: #252836;
    --text-main: #f5f5f7;
    --text-muted: #8b8fa0;
    --textra-muted:#79777d;
    --accent: #d0d3dd;
}

/* Layout */

body {
    font-family: "Outfit", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: var(--bg-0);
    color: var(--text-main);
    min-height: 100vh;
}

.layout {
    display: flex;
    min-height: 100vh;
}

/* Sidebar (desktop) */

.sidebar {
    width: 220px;
    background: linear-gradient(180deg, var(--bg-1), var(--bg-0));
    border-right: 1px solid var(--border-soft);
    padding: 1.5rem 1.25rem;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 40;
}

.logo {
    font-size: 1.1rem;
    letter-spacing: 0.08em;
    color: var(--text-main);
    margin-bottom: 2rem;
}

.nav-links {
    list-style: none;
    margin-top: 10vh;
}

.nav-links li {
    margin-bottom: 2rem;
}

.nav-links a {
    display: block;
    padding: 0.55rem 0.75rem;
    font-size: 0.95rem;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 6px;
    border: 1px solid transparent;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.nav-links li.active a,
.nav-links a:hover {
    color: var(--text-main);
    background: var(--bg-2);
    border-color: var(--border-soft);
}

/* Hamburger button (desktop: hidden) */

.hamburger {
    display: none;
    position: relative;
    width: 28px;
    height: 22px;
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
}

.hamburger span {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--text-main);
    border-radius: 999px;
    transition: transform 0.18s ease, opacity 0.18s ease, top 0.18s ease;
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 10px; }
.hamburger span:nth-child(3) { top: 20px; }

/* When menu is open (X icon) */

.sidebar.open .hamburger span:nth-child(1) {
    top: 10px;
    transform: rotate(45deg);
}

.sidebar.open .hamburger span:nth-child(2) {
    opacity: 0;
}

.sidebar.open .hamburger span:nth-child(3) {
    top: 10px;
    transform: rotate(-45deg);
}

/* Main column: centered content with sticky header */

.main-column {
    margin-left: 220px;
    flex: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Sticky header bar (desktop) */

.page-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: linear-gradient(180deg, var(--bg-1) 0%, rgba(5, 6, 8, 0.96) 100%);
    border-bottom: 1px solid var(--border-soft);
    padding: 1.1rem 0;
}

.page-header h1 {
    font-size: 1.4rem;
    font-weight: 500;
    text-align: center;
    color: var(--textra-muted);
    letter-spacing: 0.05em;
}

/* Main content */

.main-content {
    flex: 1;
    padding: 2rem 1.5rem 3rem;
    display: flex;
    justify-content: flex-start;
}

.main-content > .section {
    margin: 0 auto;
    width: 50%;
}

/* Sections */

.section {
    display: none;
}

.section.active {
    display: block;
}

.section h2 {
    font-size: 1.3rem;
    margin-bottom: 1.25rem;
    font-weight: 500;
}

/* EP blocks */

.playlist {
    border: 1px solid var(--border-soft);
    background: radial-gradient(circle at top left, var(--bg-2), var(--bg-1));
    padding: 1.25rem 1.4rem;
    margin-bottom: 1.8rem;
    border-radius: 8px;
}

.playlist h2 {
    margin-bottom: 0.4rem;
}

.ep-note {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 0.9rem;
}

/* Player list */

.player-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 0.9rem;
}

.music-player {
    display: flex;
    align-items: center;
    border-radius: 8px;
    border: 1px solid var(--border-soft);
    background: rgba(10, 12, 18, 0.9);
    padding: 0.5rem 0.7rem;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.music-player:hover {
    background: rgba(16, 18, 26, 0.95);
    border-color: #323546;
    transform: translateY(-1px);
}

.music-player.hidden {
    display: none;
}

.play-btn {
    width: 32px;
    height: 32px;
    border-radius: 7px;
    border: 1px solid var(--border-soft);
    background: #10121a;
    color: var(--text-main);
    font-size: 0.9rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.play-btn:hover {
    background: #181b25;
    border-color: #3a3f54;
    transform: translateY(-1px);
}

.play-btn.playing {
    background: #e5e7f0;
    color: #050608;
}

.track-info {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.track-title {
    font-size: 0.98rem;
}

.track-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Playlist CTA */

.playlist-play {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.9rem;
    font-size: 0.9rem;
    border-radius: 7px;
    border: 1px solid var(--border-soft);
    background: #10121a;
    color: var(--text-main);
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.playlist-play:hover {
    background: #181b25;
    border-color: #3a3f54;
    transform: translateY(-1px);
}

/* About / Contact text */

#about,
#contact {
    text-align: center;
}

#about p,
#contact p {
    margin-top: 25vh;
    margin-bottom: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-left: auto;
    margin-right: auto;
}

/* mobile-only header text inside sidebar */
.mobile-title {
    display: none;
    font-size: 1rem;
    font-weight: 500;
    color: var(--textra-muted);
}

/* Responsive tweaks */

@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        width: 100%;
        height: 56px;
        display: flex;
        align-items: center;
        padding: 0 1rem;
        border-right: none;
        border-bottom: 1px solid var(--border-soft);
        z-index: 50;
    }

    .mobile-title {
        display: block;
        flex: 1;
        text-align: center;
        font-size: 1rem;
        font-weight: 500;
        color: var(--textra-muted);
    }

    .hamburger {
        display: block;
        margin-left: auto;
        margin-right: 1rem;
    }

    /* Mobile nav: smaller padding + scrollable if tall */
    .nav-links {
        position: fixed;
        top: 56px;
        left: 0;
        right: 0;
        background: var(--bg-1);
        border-bottom: 1px solid var(--border-soft);
        display: none;
        flex-direction: column;
        padding: 0.5rem 0.75rem;
        margin-top: 0;
        gap: 0.15rem;
        max-height: 60vh;
        overflow-y: auto;
    }

    .sidebar.open .nav-links {
        display: flex;
    }

    .nav-links li {
        margin-bottom: 0.25rem;
    }

    .nav-links a {
        width: 100%;
        padding: 0.5rem 0.6rem;
        font-size: 0.9rem;
    }

    .main-column {
        margin-left: 0;
        padding-top: 56px;
    }

    /* hide desktop sticky header on mobile */
    .page-header {
        display: none;
    }

    .main-content {
        padding: 1.5rem 1rem 2.5rem;
    }

    .main-content > .section {
        width: 100%;
    }

    #about p,
    #contact p {
        margin-top: 15vh;
    }
}