:root {
    --bg: #0b0c10;
    --text: #e9eef7;
    --muted: #a9b2c3;
    --border: rgba(255, 255, 255, 0.1);
    --stroke: rgba(255, 255, 255, 0.12);
}

/* =========================
   Header shell
   ========================= */

.songsHeader {
    position: sticky;
    top: 0;
    z-index: 40;
    padding: 8px 0 8px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: linear-gradient(to bottom,
            rgba(11, 12, 16, 0.92),
            rgba(11, 12, 16, 0.55),
            rgba(11, 12, 16, 0));
}

.songsHeader .topbar {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
        "controls burger"
        "title title";
    gap: 12px;
    align-items: start;
}

/* =========================
   Row areas
   ========================= */

.songsHeader .controls {
    grid-area: controls;
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    min-width: 0;
}

.songsHeader .titleblock {
    grid-area: title;
    min-width: 0;
    margin-left: 5px;
}

.songsHeader .burgerWrap {
    grid-area: burger;
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    justify-self: end;
    align-self: start;
    margin-top: 0;
    margin-right: 5px;
}

/* =========================
   Title + meta lines
   ========================= */

.songsHeader h1 {
    margin: 0;
    font-size: clamp(28px, 4.6vw, 28px);
    line-height: 1.12;
}

.songsHeader .subtitle,
.songsHeader .mutedLine {
    color: var(--muted);
    font-size: 17px;
    margin-top: 6px;
}

.songsHeader .activeFilter {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Optional pill version if you use it later */
.songsHeader .activeFilter .filterPill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(159, 211, 255, 0.12);
    border: 1px solid rgba(159, 211, 255, 0.35);
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
}

.songsHeader .activeFilter .filterLabel {
    opacity: 0.75;
}

.songsHeader .activeFilter .filterClear {
    border: none;
    background: transparent;
    color: var(--text);
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    padding: 0;
}

.songsHeader .activeFilter .filterClear:hover {
    opacity: 0.7;
}

/* =========================
   Left-side buttons / pills
   ========================= */

.songsHeader .filterRow {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    flex: 1;
    min-width: 0;
    justify-content: flex-start;
}

.songsHeader .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 999px;
    padding: 10px 15px;
    font-size: 14px;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}

.songsHeader .btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

a.homeBtn,
a.statsBtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid var(--stroke);
    background: rgba(255, 255, 255, 0.08);
    color: #2dff00;
    text-decoration: none;
    transition: all 0.15s ease;
    flex: 0 0 auto;
    margin-left: 5px;
}

a.homeBtn:hover {
    background: rgba(96, 165, 250, 0.25);
    border-color: rgba(96, 165, 250, 0.6);
    transform: translateY(-2px);
}

a.statsBtn:hover {
    background: rgba(168, 85, 247, 0.25);
    border-color: rgba(168, 85, 247, 0.6);
    transform: translateY(-2px);
}
/* =========================
   Burger button
   ========================= */

.burgerBtn {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.06);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 0 12px;
}

.burgerBtn span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}
/* =========================
   Burger dropdown
   ========================= */

.burgerMenu {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    min-width: 240px;
    padding: 10px;
    border-radius: 14px;
    background: rgba(20, 22, 28, 0.98);
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
    display: none;
    flex-direction: column;
    gap: 6px;
    z-index: 50;
}
.menuSection {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.6;
    padding: 8px 14px 4px;
}

.menuItem,
.burgerMenu a {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    padding: 10px 14px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    transition: background 0.12s ease, transform 0.12s ease;
}

.menuItem:hover,
.burgerMenu a:hover {
    background: rgba(159, 211, 255, 0.12);
    transform: translateY(-1px);
}

.menuItem svg,
.burgerMenu a svg {
    flex: 0 0 auto;
}

/* =========================
   Mobile
   ========================= */

@media (max-width: 820px) {
    .songsHeader .topbar {
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "controls burger"
            "title title";
    }

    .songsHeader .burgerWrap {
        justify-self: end;
        align-self: start;
        margin-top: 0;
    }
}

@media (max-width: 640px) {
    .songsHeader h1 {
        font-size: 24px;
    }

    .songsHeader .subtitle,
    .songsHeader .mutedLine {
        font-size: 15px;
    }

    .songsHeader .burgerWrap {
        position: absolute;
        top: 10px;
        right: 10px;
        margin-right: 0;
    }

    .burgerBtn {
        width: 40px;
        height: 40px;
    }

    .songsHeader .btn {
        font-size: 13px;
        padding: 8px 12px;
    }

    a.homeBtn,
    a.statsBtn {
        width: 38px;
        height: 38px;
        margin-left: 0;
    }

    .songsHeader .activeFilter {
        font-size: 12px;
    }
}

@media (orientation: landscape) and (max-height: 430px) {
    .songsHeader h1 {
        font-size: 16px;
    }

    .songsHeader .subtitle,
    .songsHeader .mutedLine {
        display: none;
    }
}
