/* music/style.css — Fleet Music app.
   The shared frame (tokens, masthead, starfield) lives in /page/shell.css;
   this file owns the app: sidebar, library views and the player bar. */

.mu-body {
    height: 100dvh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.mu-layout {
    flex: 1 1 auto;
    min-height: 0;
    display: grid;
    grid-template-columns: 248px minmax(0, 1fr);
}

/* ---- Top navbar ----
   Back/forward, brand, an always-visible search box, and a profile-ish
   shortcut on the right. Deliberately NOT a second copy of the sidebar's
   Home/Library/Leaderboard nav — that lives in the sidebar only, this bar
   is global chrome. */

.mu-navbar {
    flex: none;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0 clamp(12px, 2vw, 22px);
    height: 56px;
    background: #08080a;
    border-bottom: 1px solid var(--rule);
}

.mu-navbar__brand {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 0;
    background: none;
    color: var(--mu-accent);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.04em;
    cursor: pointer;
    flex: none;
}
.mu-navbar__logo { display: grid; place-items: center; }

.mu-navbar__search { flex: 1; max-width: 480px; }
.mu-navbar__search input {
    width: 100%;
    min-height: 38px;
    padding: 0 16px;
    border: 1px solid var(--rule);
    border-radius: 999px;
    background: rgba(232, 234, 237, 0.05);
    color: var(--text);
    font-family: inherit;
    font-size: 14px;
}
.mu-navbar__search input::placeholder { color: var(--label); }
.mu-navbar__search input:focus { outline: 1px solid var(--focus); outline-offset: 1px; border-color: transparent; }

.mu-navbar__profile {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: rgba(232, 234, 237, 0.08);
    color: var(--text);
    cursor: pointer;
    flex: none;
}
.mu-navbar__profile:hover { background: rgba(232, 234, 237, 0.14); }

/* ---- Footer ---- */

.mu-footer {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px clamp(12px, 2vw, 22px);
    background: #08080a;
    border-top: 1px solid var(--rule);
    font-size: 12px;
    color: var(--label);
}
.mu-footer__nav { display: flex; gap: 18px; }
.mu-footer__nav button {
    border: 0;
    background: none;
    color: var(--label);
    font-size: 12px;
    cursor: pointer;
}
.mu-footer__nav button:hover { color: var(--text); }

.mu-static { max-width: 640px; }
.mu-static p { color: var(--blurb); line-height: 1.6; }

/* ---- Sidebar ---- */

.mu-sidebar {
    background: #0a0a0c;
    border-right: 1px solid var(--rule);
    padding: 18px 12px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.mu-nav { display: flex; flex-direction: column; gap: 2px; }

.mu-nav__item {
    display: flex;
    align-items: center;
    min-height: var(--tap);
    padding: 0 14px;
    border: 0;
    border-radius: 3px;
    background: none;
    color: var(--label);
    font-family: inherit;
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-align: left;
    cursor: pointer;
    transition: color 160ms var(--ease), background-color 160ms var(--ease);
}
.mu-nav__item:hover { color: var(--text); background: rgba(232, 234, 237, 0.05); }
.mu-nav__item[aria-current="page"] { color: var(--text); background: rgba(74, 127, 181, 0.14); }

.mu-side-title {
    margin: 0 0 8px;
    padding: 0 14px;
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--label);
}

/* The project wordmark — set per project from the catalog, themed by the
   accent so each project's app is recognisably its own. */
.mu-brand {
    margin: 0;
    padding: 0 14px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--mu-accent);
}

.mu-album-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }

.mu-side-album {
    display: block;
    width: 100%;
    min-height: 38px;
    padding: 0 14px;
    border: 0;
    border-radius: 3px;
    background: none;
    color: var(--blurb);
    font-family: inherit;
    font-size: 12px;
    text-align: left;
    cursor: pointer;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 160ms var(--ease), background-color 160ms var(--ease);
}
.mu-side-album:hover { color: var(--text); background: rgba(232, 234, 237, 0.05); }

/* ---- Main ---- */

.mu-main { min-width: 0; display: flex; flex-direction: column; overflow: hidden; }

/* "New tracks" bar: a slim strip between the topbar and the view. */
.mu-notice {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 8px clamp(16px, 3vw, 32px);
    background: rgba(74, 127, 181, 0.16);
    border-bottom: 1px solid var(--rule);
    font-size: 12px;
    letter-spacing: 0.06em;
}

.mu-notice__text { color: var(--text); }

.mu-toast {
    position: fixed;
    left: 50%;
    bottom: 92px;
    transform: translateX(-50%);
    padding: 8px 18px;
    background: #1a1c22;
    border: 1px solid var(--rule);
    border-radius: 20px;
    font-size: 12px;
    color: var(--text);
    z-index: 40;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}
.mu-toast[hidden] { display: none; }

.mu-notice__listen {
    min-height: 32px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: transparent;
    color: var(--text);
    font-family: inherit;
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    cursor: pointer;
}
.mu-notice__listen:hover { background: rgba(74, 127, 181, 0.3); }

.mu-notice__close {
    margin-left: auto;
    width: 32px;
    height: 32px;
    border: 0;
    background: none;
    color: var(--label);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}
.mu-notice__close:hover { color: var(--text); }

.mu-view {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 22px clamp(16px, 3vw, 32px) 40px;
}

.mu-section { margin-top: 36px; }

.mu-section__title {
    margin: 0 0 16px;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--label);
}

/* ---- Hero / album head ---- */

.mu-hero, .mu-album-head {
    display: flex;
    align-items: flex-end;
    gap: clamp(18px, 3vw, 32px);
    flex-wrap: wrap;
}

.mu-hero__eyebrow {
    display: block;
    margin-bottom: 8px;
    font-size: 10px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--label);
}

.mu-hero__title {
    margin: 0;
    font-size: clamp(28px, 5vw, 52px);
    font-weight: 300;
    letter-spacing: 0.06em;
    line-height: 1.05;
    text-wrap: balance;
}

.mu-hero__sub { margin: 8px 0 18px; color: var(--blurb); font-size: 13px; }

.mu-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: var(--tap);
    padding: 0 22px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(74, 127, 181, 0.16);
    color: var(--text);
    font-family: inherit;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 160ms var(--ease), border-color 160ms var(--ease);
}
.mu-cta:hover { background: rgba(74, 127, 181, 0.3); border-color: var(--focus); }

/* ---- Covers ---- */

.mu-cover {
    position: relative;
    display: grid;
    place-items: center;
    border-radius: 4px;
    overflow: hidden;
    background: #101014;
    flex: none;
}

.mu-cover span {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.82);
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

.mu-cover--hero { width: clamp(150px, 22vw, 220px); aspect-ratio: 1; }
.mu-cover--hero span { font-size: 2rem; }
.mu-cover--card { width: 100%; aspect-ratio: 1; }
.mu-cover--sm { width: 44px; height: 44px; }
.mu-cover--sm span { font-size: 0.8rem; }

/* ---- Album grid ---- */

.mu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 18px;
}

.mu-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: rgba(232, 234, 237, 0.03);
    color: var(--text);
    font-family: inherit;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 160ms var(--ease), border-color 160ms var(--ease), transform 160ms var(--ease);
}
.mu-card:hover { background: rgba(232, 234, 237, 0.07); border-color: var(--rule); transform: translateY(-2px); }

.mu-card__name { font-size: 14px; font-weight: 400; }
.mu-card__meta { font-size: 11px; letter-spacing: 0.08em; color: var(--label); }

/* ---- Mood chips (home page filter) ---- */

.mu-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0 0;
}

.mu-chip {
    min-height: 30px;
    padding: 0 16px;
    border: 1px solid var(--rule);
    border-radius: 999px;
    background: transparent;
    color: var(--label);
    font-family: inherit;
    font-size: 12px;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: background-color 160ms var(--ease), border-color 160ms var(--ease), color 160ms var(--ease);
}
.mu-chip:hover { color: var(--text); border-color: var(--line); }
.mu-chip.is-on { color: var(--text); background: rgba(74, 127, 181, 0.24); border-color: var(--focus); }

/* ---- Track rail (horizontal-scroll row, the home page's album rows) ---- */

.mu-rail {
    display: flex;
    gap: 16px;
    margin: 0;
    padding: 4px 4px 12px;
    list-style: none;
    overflow-x: auto;
    scroll-snap-type: x proximity;
}

.mu-rail__item {
    flex: none;
    width: 150px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    scroll-snap-align: start;
}

.mu-rail__play {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}

.mu-rail__playglyph {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #fff;
    background: rgba(0, 0, 0, 0.32);
    opacity: 0;
    border-radius: 4px;
    transition: opacity 160ms var(--ease);
}
.mu-rail__play:hover .mu-rail__playglyph,
.mu-rail__play:focus-visible .mu-rail__playglyph { opacity: 1; }

.mu-rail__title {
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.mu-rail__artist { font-size: 11px; color: var(--label); }

/* ---- Track list ---- */

.mu-tracks { list-style: none; margin: 0; padding: 0; }

.mu-track {
    display: grid;
    /* play | # | title | mood | votes | share | duration */
    grid-template-columns: 40px 28px minmax(0, 1fr) 100px auto 32px 52px;
    align-items: center;
    gap: 10px;
    min-height: 54px;
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 140ms var(--ease);
}
.mu-track:hover { background: rgba(232, 234, 237, 0.05); }
.mu-track.is-active .mu-track__title { color: var(--focus); }

.mu-track__play {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--rule);
    border-radius: 50%;
    background: transparent;
    color: var(--text);
    cursor: pointer;
    opacity: 0;
    transition: opacity 140ms var(--ease), border-color 140ms var(--ease);
}
.mu-track:hover .mu-track__play,
.mu-track.is-active .mu-track__play,
.mu-track__play:focus-visible { opacity: 1; }
.mu-track__play:hover { border-color: var(--text); }

.mu-track__index { font-size: 12px; color: var(--label); text-align: right; }
.mu-track:hover .mu-track__index { opacity: 0; }

.mu-track__body { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mu-track__title { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mu-track__artist { font-size: 11px; color: var(--label); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mu-track__mood { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--label); }
.mu-track__dur { font-size: 12px; color: var(--label); text-align: right; font-variant-numeric: tabular-nums; }

.mu-empty { color: var(--blurb); max-width: 60ch; line-height: 1.8; }
.mu-empty p { margin: 0 0 10px; }

/* ---- Player bar ---- */

.mu-player {
    flex: none;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr);
    align-items: center;
    gap: 18px;
    padding: 10px clamp(12px, 2vw, 22px) calc(10px + env(safe-area-inset-bottom, 0px));
    background: #08080a;
    border-top: 1px solid var(--rule);
}

.mu-now { display: flex; align-items: center; gap: 8px; min-width: 0; }
.mu-now__main {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1;
    border: 0;
    background: none;
    text-align: left;
    cursor: pointer;
    padding: 0;
}
.mu-now__actions { display: flex; align-items: center; gap: 2px; flex: none; }
.mu-now__meta { min-width: 0; display: flex; flex-direction: column; }
.mu-now__title { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.mu-now__artist { font-size: 11px; color: var(--label); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mu-now__expand {
    display: grid;
    place-items: center;
    flex: none;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    color: var(--label);
    opacity: 0.55;
    transition: opacity 140ms var(--ease), background-color 140ms var(--ease), color 140ms var(--ease);
}
.mu-now__main:hover .mu-now__expand,
.mu-now__main:focus-visible .mu-now__expand { opacity: 1; background: rgba(232, 234, 237, 0.08); color: var(--text); }

.mu-viz { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0.9; }

.mu-lyrics-panel {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 78px;
    max-height: 42vh;
    display: flex;
    flex-direction: column;
    background: #0c0c10;
    border-top: 1px solid var(--rule);
    z-index: 5;
}
.mu-lyrics-panel[hidden] { display: none; }
.mu-lyrics-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    border-bottom: 1px solid var(--rule);
    cursor: pointer;
    flex: none;
}
.mu-lyrics-panel__body {
    margin: 0;
    padding: 16px;
    overflow-y: auto;
    font-family: inherit;
    font-size: 13px;
    line-height: 1.6;
    white-space: pre-wrap;
    color: var(--text);
}
.mu-lyrics-panel.is-collapsed .mu-lyrics-panel__body { display: none; }
.mu-lyrics-panel.is-collapsed { max-height: none; }

.mu-transport { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.mu-transport__row { display: flex; align-items: center; gap: 14px; }

.mu-iconbtn {
    display: grid;
    place-items: center;
    width: var(--tap);
    height: var(--tap);
    border: 0;
    border-radius: 50%;
    background: none;
    color: var(--text);
    cursor: pointer;
    transition: color 140ms var(--ease), background-color 140ms var(--ease);
}
.mu-iconbtn:hover { background: rgba(232, 234, 237, 0.08); }
.mu-iconbtn.is-on { color: var(--mu-accent); }

.mu-playbtn {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    background: var(--text);
    color: #08080a;
    cursor: pointer;
    transition: transform 140ms var(--ease), background-color 140ms var(--ease);
}
.mu-playbtn:hover { transform: scale(1.05); background: #ffffff; }

.mu-seek { display: flex; align-items: center; gap: 10px; width: 100%; max-width: 620px; }
.mu-time { font-size: 11px; color: var(--label); font-variant-numeric: tabular-nums; min-width: 34px; text-align: center; }

.mu-vol { display: flex; align-items: center; gap: 8px; justify-content: flex-end; }

/* Range inputs — one look across the seek and volume controls. */
.mu-range {
    -webkit-appearance: none;
    appearance: none;
    flex: 1;
    height: 4px;
    border-radius: 999px;
    background: rgba(232, 234, 237, 0.18);
    cursor: pointer;
}
.mu-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 13px;
    height: 13px;
    border: 0;
    border-radius: 50%;
    background: var(--text);
}
.mu-range::-moz-range-thumb {
    width: 13px;
    height: 13px;
    border: 0;
    border-radius: 50%;
    background: var(--text);
}
.mu-range:disabled { opacity: 0.4; cursor: default; }
.mu-range--vol { max-width: 110px; }

/* ---- Mobile: nav becomes a top strip, player stacks ---- */

@media (max-width: 760px) {
    .mu-layout { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }

    .mu-sidebar {
        flex-direction: row;
        align-items: center;
        gap: 4px;
        padding: 6px 10px;
        border-right: 0;
        border-bottom: 1px solid var(--rule);
        overflow-x: auto;
    }
    .mu-nav { flex-direction: row; }
    .mu-nav__item { min-height: 38px; padding: 0 12px; font-size: 11px; }
    .mu-side-section { display: none; }

    .mu-navbar { gap: 10px; padding: 0 12px; }
    .mu-navbar__search { max-width: none; }

    .mu-player {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas: "now transport" "seek seek";
        gap: 6px 12px;
    }
    .mu-now { grid-area: now; }
    .mu-transport { grid-area: transport; }
    .mu-transport__row { gap: 6px; }
    .mu-seek { grid-area: seek; max-width: none; }
    .mu-vol { display: none; }

    .mu-track { grid-template-columns: 40px minmax(0, 1fr) 44px; gap: 8px; }
    .mu-track__index, .mu-track__mood { display: none; }
    .mu-track__play { opacity: 1; }
    .mu-track:hover .mu-track__index { opacity: 1; }
}

@media (max-width: 420px) {
    .mu-hero, .mu-album-head { align-items: center; }
    .mu-cover--hero { width: 120px; }
}

/* ---- Judging: like/dislike + stars ---- */

.mu-votes {
    display: flex;
    align-items: center;
    gap: 2px;
    white-space: nowrap;
}

.mu-vote,
.mu-star {
    display: grid;
    place-items: center;
    /* The row is dense, so these sit below the 44px tap floor visually but
       keep a 44px touch target via the ::after overlay below. */
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: none;
    color: var(--label);
    cursor: pointer;
    position: relative;
    transition: color 120ms var(--ease), background-color 120ms var(--ease);
}

.mu-vote::after,
.mu-star::after {
    content: "";
    position: absolute;
    inset: 50% auto auto 50%;
    width: var(--tap);
    height: var(--tap);
    transform: translate(-50%, -50%);
}

.mu-vote:hover { color: var(--text); background: rgba(232, 234, 237, 0.07); }
.mu-vote--like.is-on { color: var(--mu-accent); }
.mu-vote--dislike.is-on { color: #ff6b6b; }

.mu-vote__net {
    min-width: 26px;
    text-align: center;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    color: var(--blurb);
}

.mu-stars {
    display: flex;
    align-items: center;
    gap: 0;
    margin-left: 6px;
}

.mu-star { width: 22px; height: 22px; }
.mu-star:hover { color: var(--text); }
.mu-star.is-on { color: #ffc857; }

/* Hovering a star lights every star before it, the way a rating control is
   expected to behave. Pure CSS: :has() on the row, no JS hover tracking. */
.mu-stars:hover .mu-star { color: #ffc857; }
.mu-stars .mu-star:hover ~ .mu-star { color: var(--label); }

.mu-star__avg {
    margin-left: 6px;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    color: var(--blurb);
}
.mu-star__avg--none { color: var(--label); }

@media (max-width: 860px) {
    /* Stars are the first thing to go on a narrow row; the reactions and the
       net score carry the signal. */
    .mu-stars { display: none; }
    .mu-track { grid-template-columns: 40px 28px minmax(0, 1fr) auto 52px; }
    .mu-track__mood { display: none; }
}

/* ---- Leaderboard ---- */

.mu-lb__head { padding: 8px 0 18px; }
.mu-lb__head .mu-hero__title { display: flex; align-items: center; gap: 10px; }

.mu-tabs {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    flex-wrap: wrap;
}
.mu-tabs__spacer { flex: 1 1 auto; }

.mu-tab {
    min-height: 34px;
    padding: 0 14px;
    border: 1px solid var(--rule);
    border-radius: 999px;
    background: none;
    color: var(--blurb);
    font-size: 13px;
    cursor: pointer;
    transition: color 120ms var(--ease), border-color 120ms var(--ease), background-color 120ms var(--ease);
}
.mu-tab:hover { color: var(--text); }
.mu-tab.is-on {
    color: var(--mu-accent-ink);
    background: var(--mu-accent);
    border-color: var(--mu-accent);
}
.mu-tab--wide.is-on {
    /* The cross-project toggle is a state, not a selection — outline it
       rather than filling it, so it never reads as a fourth tab. */
    color: var(--mu-accent);
    background: none;
    border-color: var(--mu-accent);
}

.mu-lb { list-style: none; margin: 0; padding: 0; }

.mu-lb__row,
.mu-lb__labels {
    display: grid;
    align-items: center;
    gap: 12px;
    padding: 6px 10px;
    border-radius: 6px;
    min-height: 48px;
}

.mu-lb--song .mu-lb__row,
.mu-lb--song .mu-lb__labels {
    grid-template-columns: 34px 34px minmax(0, 1fr) 130px 60px 64px;
}
.mu-lb--lyricist .mu-lb__row,
.mu-lb--lyricist .mu-lb__labels,
.mu-lb--generator .mu-lb__row,
.mu-lb--generator .mu-lb__labels {
    grid-template-columns: 34px minmax(0, 1fr) 90px 60px 64px;
}

.mu-lb__labels {
    min-height: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--rule);
    border-radius: 0;
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--label);
}

.mu-lb__row:hover { background: rgba(232, 234, 237, 0.05); }
.mu-lb__row.is-active .mu-lb__name { color: var(--focus); }

.mu-rank {
    font-size: 13px;
    font-variant-numeric: tabular-nums;
    color: var(--label);
    text-align: center;
}
.mu-rank--top { color: var(--mu-accent); font-weight: 600; }

.mu-lb__play {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border: 1px solid var(--rule);
    border-radius: 50%;
    background: none;
    color: var(--text);
    cursor: pointer;
}
.mu-lb__play:hover { border-color: var(--mu-accent); color: var(--mu-accent); }

.mu-lb__name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.mu-lb__meta { font-size: 12px; color: var(--blurb); }
.mu-lb__net {
    font-variant-numeric: tabular-nums;
    text-align: right;
    color: var(--text);
}
.mu-lb__rating {
    font-variant-numeric: tabular-nums;
    text-align: right;
    color: #ffc857;
}
.mu-lb__of { font-size: 11px; color: var(--label); }
.mu-lb__rating--none { color: var(--label); }

/* ---- Full-screen player ---- */

.mu-fp-wrap {
    position: fixed;
    inset: 0;
    z-index: 30;
    background: var(--mu-bg);
    overflow-y: auto;
}
.mu-fp-wrap[hidden] { display: none; }

.mu-fp {
    max-width: 640px;
    margin: 0 auto;
    padding: 20px clamp(16px, 4vw, 32px) calc(100px + env(safe-area-inset-bottom, 0px));
}

.mu-fp__body { display: block; }

@media (min-width: 900px) {
    .mu-fp { max-width: 1080px; }
    .mu-fp__body {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 40px;
        align-items: start;
    }
    .mu-fp__hero { align-items: flex-start; text-align: left; margin-top: 24px; }
    .mu-fp__transport { justify-content: flex-start; }
    .mu-fp__actions { justify-content: flex-start; }
    .mu-fp__right {
        position: sticky;
        top: 20px;
        max-height: calc(100vh - 140px);
        overflow-y: auto;
    }
}

.mu-fp__close {
    display: grid;
    place-items: center;
    width: var(--tap);
    height: var(--tap);
    border: 0;
    border-radius: 50%;
    background: none;
    color: var(--text);
    cursor: pointer;
}
.mu-fp__close:hover { background: rgba(232, 234, 237, 0.08); }

.mu-fp__hero { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; margin: 12px 0 28px; }
.mu-cover--fp { width: min(320px, 70vw); aspect-ratio: 1; border-radius: 12px; }
.mu-cover--fp span { font-size: 3rem; }
.mu-fp__title { margin: 0; font-size: 22px; font-weight: 700; }
.mu-fp__artist { margin: 0; color: var(--blurb); font-size: 14px; }

.mu-fp__transport { display: flex; align-items: center; justify-content: center; gap: 20px; margin-bottom: 16px; }
.mu-playbtn--lg { width: 62px; height: 62px; }
.mu-fp__seek { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; }
.mu-fp__seek .mu-range { flex: 1; }

.mu-fp__actions { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 32px; }

.mu-fp__subhead {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--label);
}
.mu-fp__lyrics { margin-bottom: 32px; }
.mu-fp__lyrics-body {
    margin: 0;
    font-family: inherit;
    font-size: 13px;
    line-height: 1.7;
    white-space: pre-wrap;
    color: var(--text);
}
.mu-fp__queue { margin-bottom: 20px; }
/* The full player's column is narrower than the main view queue rows were
   sized for — drop the mood/duration columns here rather than truncate
   titles down to a couple of letters. */
.mu-fp__queue .mu-track {
    grid-template-columns: 36px 22px minmax(0, 1fr) auto 28px;
    gap: 6px;
}
.mu-fp__queue .mu-track__mood, .mu-fp__queue .mu-track__dur { display: none; }

@media (max-width: 720px) {
    .mu-lb--song .mu-lb__row,
    .mu-lb--song .mu-lb__labels { grid-template-columns: 28px 30px minmax(0, 1fr) 52px 56px; }
    .mu-lb--song .mu-lb__meta { display: none; }
    .mu-lb--lyricist .mu-lb__row,
    .mu-lb--lyricist .mu-lb__labels,
    .mu-lb--generator .mu-lb__row,
    .mu-lb--generator .mu-lb__labels { grid-template-columns: 28px minmax(0, 1fr) 52px 56px; }
    .mu-lb--lyricist .mu-lb__meta,
    .mu-lb--generator .mu-lb__meta { display: none; }
}
