/* ===================================================================
   Locuna Music: the web player.
   Same layout as Mod Pilot's web player (which follows the Spotify desktop
   app): library + nav on the left, the stage in the middle, now playing on
   the right, one player bar underneath. Colours are Locuna purple.
   Everything is scoped under .lcs so it can't leak into the dashboard.
   =================================================================== */

.lc-music-hub { max-width: none !important; padding: 0 !important; margin: 0 !important; }
.lc-music-hub > .section-heading,
.lc-music-hub #hub-controls { display: none !important; }

.lcs {
    --bg: #05030c; --panel: #0f0a1d; --raise: #171028; --raise2: #221838; --raise3: #2d2148;
    --line: rgba(255, 255, 255, .08);
    --ink: #fff; --sub: #b9b0cd; --dim: #7e7494;
    --accent: #9a5cf7; --accent-hi: #b48cff; --on-accent: #fff;
    --grad: linear-gradient(135deg, #b08cff, #8440e9);
    --radius: 8px; --bar: 88px;
    --tint: rgba(146, 85, 244, .42);

    display: grid;
    grid-template-columns: clamp(220px, 22vw, 300px) minmax(0, 1fr) clamp(260px, 24vw, 340px);
    grid-template-rows: minmax(0, 1fr) var(--bar);
    gap: 8px;
    padding: 8px 8px 0;
    height: calc(100vh - 68px);
    height: calc(100dvh - 68px);
    min-height: 560px;
    background: var(--bg);
    color: var(--ink);
    font-family: "Circular", "DM Sans", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.35;
    overflow: hidden;
    position: relative;
    box-sizing: border-box;
    text-align: left;
}
.lcs.no-right { grid-template-columns: clamp(220px, 22vw, 300px) minmax(0, 1fr); }
.lcs *, .lcs *::before, .lcs *::after { box-sizing: border-box; }
.lcs h1, .lcs h2, .lcs h3, .lcs p, .lcs small, .lcs b, .lcs strong, .lcs label { margin: 0; padding: 0; letter-spacing: normal; text-transform: none; }
.lcs b, .lcs strong { font-weight: 600; }
.lcs small { font-size: 13px; }
.lcs a { color: inherit; text-decoration: none; }
.lcs svg { width: 20px; height: 20px; fill: currentColor; stroke: none; flex: none; display: block; }
.lcs table { border-collapse: collapse; width: 100%; margin: 0; background: none; border: 0; }
.lcs td, .lcs tr, .lcs tbody, .lcs thead, .lcs th { border: 0; background: none; box-shadow: none; }
.lcs .sp-hide { display: none !important; }

/* resets: dashboard styles must not touch the player's controls */
.lcs button {
    all: unset; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer; color: inherit; font: inherit; -webkit-tap-highlight-color: transparent;
}
.lcs button:disabled { cursor: default; opacity: .4; }
.lcs input { all: unset; box-sizing: border-box; font: inherit; color: inherit; }
.lcs :focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 2px; border-radius: 4px; }
.lcs [role="button"] { cursor: pointer; }

.lcs ::-webkit-scrollbar { width: 12px; height: 12px; }
.lcs ::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .22); border-radius: 8px; border: 3px solid transparent; background-clip: content-box; }
.lcs ::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, .4); background-clip: content-box; border: 3px solid transparent; }
.lcs ::-webkit-scrollbar-track { background: transparent; }

.lcs .sp-panel { background: var(--panel); border-radius: var(--radius); overflow: hidden; min-height: 0; min-width: 0; }

/* ------------------------------------------------------------------ cover art */
.lcs .sp-cv {
    display: grid; place-items: center; overflow: hidden; flex: none; position: relative;
    width: 48px; height: 48px; border-radius: 4px; background: var(--raise2); color: var(--dim);
}
.lcs .sp-cv img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lcs .sp-cv.empty { background: linear-gradient(135deg, #2d2148, #1b1230); }
.lcs .sp-cv.mosaic { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.lcs .sp-cv.tile { width: 100%; height: 100%; border-radius: 0; }

/* ------------------------------------------------------------------ left column */
.lcs .sp-side { display: flex; flex-direction: column; gap: 8px; min-height: 0; min-width: 0; }
.lcs .sp-navp { padding: 8px; flex: none; }
.lcs .sp-brand { display: flex; align-items: center; gap: 10px; padding: 10px 12px 14px; font-weight: 800; font-size: 18px; letter-spacing: -.2px; }
.lcs .sp-brand i { width: 30px; height: 30px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; color: var(--on-accent); overflow: hidden; flex: none; }
.lcs .sp-brand i svg { width: 17px; height: 17px; }
.lcs .sp-brand i img { width: 100%; height: 100%; object-fit: cover; }
.lcs .sp-nav button {
    display: flex; justify-content: flex-start; align-items: center; gap: 16px; width: 100%; padding: 10px 12px;
    color: var(--sub); font-weight: 700; font-size: 15px; border-radius: 6px; transition: color .15s;
}
.lcs .sp-nav button:hover, .lcs .sp-nav button.on { color: var(--ink); }
.lcs .sp-nav button.on svg { color: var(--accent-hi); }
.lcs .sp-lib { flex: 1; display: flex; flex-direction: column; padding: 8px; }
.lcs .sp-lib-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 8px 12px 12px; color: var(--sub); font-weight: 700; }
.lcs .sp-lib-head > span { display: flex; align-items: center; gap: 12px; }
.lcs .sp-lib-head button { width: 32px; height: 32px; border-radius: 50%; transition: background .15s, color .15s; }
.lcs .sp-lib-head button:hover { background: var(--raise); color: var(--ink); }
.lcs .sp-lib-list { overflow-y: auto; flex: 1; min-height: 0; }
.lcs .sp-row { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 6px; width: 100%; cursor: pointer; }
.lcs .sp-row:hover { background: var(--raise); }
.lcs .sp-row.on { background: var(--raise2); }
.lcs .sp-t { min-width: 0; display: block; }
.lcs .sp-t b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lcs .sp-t small { display: block; color: var(--sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lcs .sp-row.on .sp-t b, .lcs .sp-t b.now { color: var(--accent-hi); }
.lcs .sp-lib-empty { background: var(--raise); border-radius: 8px; padding: 16px; margin: 4px; }
.lcs .sp-lib-empty b { display: block; margin-bottom: 4px; }
.lcs .sp-lib-empty small { display: block; color: var(--sub); margin-bottom: 14px; }

/* ------------------------------------------------------------------ middle column */
.lcs .sp-main {
    position: relative; display: flex; flex-direction: column;
    background: linear-gradient(180deg, var(--tint) 0, var(--panel) 340px), var(--panel);
    transition: --tint .3s;
}
.lcs .sp-main[data-tint="soft"] { --tint: rgba(146, 85, 244, .20); }
.lcs .sp-main[data-tint="none"] { --tint: rgba(146, 85, 244, .08); }
.lcs .sp-top { display: flex; align-items: center; gap: 12px; padding: 14px 20px; flex: none; position: relative; z-index: 2; }
.lcs .sp-hist { display: flex; gap: 8px; }
.lcs .sp-hist button { width: 32px; height: 32px; border-radius: 50%; background: rgba(0, 0, 0, .55); color: var(--ink); }
.lcs .sp-hist button:hover:not(:disabled) { background: rgba(0, 0, 0, .8); }
.lcs .sp-hist svg { width: 18px; height: 18px; }
.lcs .sp-search {
    flex: 1; max-width: 420px; display: flex; align-items: center; gap: 10px; background: var(--raise); border-radius: 999px;
    padding: 0 8px 0 16px; height: 46px; border: 2px solid transparent; color: var(--sub); cursor: text;
}
.lcs .sp-search:hover { background: var(--raise2); }
.lcs .sp-search:focus-within { border-color: var(--ink); background: var(--raise2); color: var(--ink); }
.lcs .sp-search input { flex: 1; min-width: 0; font-size: 15px; color: var(--ink); }
.lcs .sp-search input::placeholder { color: var(--dim); }
.lcs .sp-search .sp-x { width: 30px; height: 30px; border-radius: 50%; color: var(--sub); }
.lcs .sp-search .sp-x:hover { color: var(--ink); }
.lcs .sp-grow { flex: 1; }
.lcs .sp-pill {
    display: flex; align-items: center; gap: 8px; padding: 6px 14px 6px 10px; border-radius: 999px;
    background: var(--raise); color: var(--sub); font-weight: 600; max-width: 340px; min-width: 0;
}
.lcs .sp-pill:hover { background: var(--raise2); color: var(--ink); }
.lcs .sp-pill .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--dim); flex: none; }
.lcs .sp-pill .dot.live { background: #4ade80; box-shadow: 0 0 0 4px rgba(74, 222, 128, .18); }
.lcs .sp-pill span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lcs .sp-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--raise2) center/cover no-repeat; border: 4px solid var(--raise); box-sizing: content-box; flex: none; display: block; }
.lcs .sp-view { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 4px 24px 32px; min-height: 0; position: relative; z-index: 1; }

.lcs .sp-hero { display: flex; align-items: flex-end; gap: 24px; padding: 20px 0 24px; }
.lcs .sp-hero > div { min-width: 0; }
.lcs .sp-hero .art { width: 200px; height: 200px; border-radius: 6px; box-shadow: 0 8px 40px rgba(0, 0, 0, .5); font-size: 0; }
.lcs .sp-hero .art svg { width: 64px; height: 64px; }
.lcs .sp-hero .art.round { border-radius: 6px; }
.lcs .sp-hero small { font-weight: 700; font-size: 13px; }
.lcs .sp-hero h1 {
    font-size: clamp(26px, 3.6vw, 56px); font-weight: 900; letter-spacing: -1.2px; line-height: 1.05; margin: 6px 0 12px; overflow-wrap: anywhere;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.lcs .sp-hero p { color: var(--sub); font-weight: 600; }
.lcs .sp-hero p b { color: var(--ink); font-weight: 700; }
.lcs h2.sp-h2 { font-size: 22px; font-weight: 800; margin: 26px 0 14px; letter-spacing: -.3px; display: flex; align-items: center; justify-content: space-between; }
.lcs h2.sp-h2 button { font-size: 13px; font-weight: 700; color: var(--sub); }
.lcs h2.sp-h2 button:hover { color: var(--ink); text-decoration: underline; }
.lcs .sp-actions { display: flex; align-items: center; gap: 18px; margin: 4px 0 18px; }
.lcs .sp-bigplay {
    width: 56px; height: 56px; border-radius: 50%; background: var(--grad); color: var(--on-accent);
    transition: transform .1s, filter .1s; box-shadow: 0 8px 24px rgba(132, 64, 233, .35);
}
.lcs .sp-bigplay:hover:not(:disabled) { transform: scale(1.06); filter: brightness(1.1); }
.lcs .sp-bigplay svg { width: 26px; height: 26px; }
.lcs .sp-ib { width: 36px; height: 36px; border-radius: 50%; color: var(--sub); position: relative; transition: color .15s, transform .1s; }
.lcs .sp-ib:hover:not(:disabled) { color: var(--ink); }
.lcs .sp-ib.on { color: var(--accent-hi); }
.lcs .sp-ib.on::after { content: ""; position: absolute; bottom: 3px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--accent-hi); }
.lcs .sp-ib.lg svg { width: 32px; height: 32px; }
.lcs .sp-notice {
    display: flex; align-items: center; gap: 14px; flex-wrap: wrap; background: rgba(146, 85, 244, .14); border: 1px solid rgba(180, 140, 255, .38);
    color: #ede4ff; padding: 12px 14px; border-radius: 8px; margin: 8px 0 8px;
}
.lcs .sp-notice > span { flex: 1; min-width: 200px; }
.lcs .sp-notice.bad { background: rgba(244, 63, 94, .12); border-color: rgba(244, 63, 94, .4); color: #ffd7de; }

/* track tables */
.lcs .sp-tracks { width: 100%; }
.lcs .sp-tracks th { height: 36px; padding: 0 12px; color: var(--sub); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; text-align: left; border-bottom: 1px solid var(--line); }
.lcs .sp-tracks th:first-child { text-align: right; width: 48px; }
.lcs .sp-tracks th:last-child { text-align: right; padding-right: 20px; }
.lcs .sp-tracks th svg { width: 16px; height: 16px; display: inline-block; vertical-align: middle; }
.lcs .sp-tracks td { padding: 8px 12px; height: 56px; vertical-align: middle; }
.lcs .sp-tr { border-radius: 6px; }
.lcs .sp-tracks tbody tr:hover td { background: rgba(255, 255, 255, .09); }
.lcs .sp-tracks tbody tr.cur td { background: rgba(255, 255, 255, .05); }
.lcs .sp-tracks td:first-child { border-radius: 6px 0 0 6px; width: 48px; color: var(--sub); text-align: right; font-variant-numeric: tabular-nums; position: relative; }
.lcs .sp-tracks td:last-child { border-radius: 0 6px 6px 0; text-align: right; white-space: nowrap; color: var(--sub); font-variant-numeric: tabular-nums; }
.lcs .sp-song { display: flex; align-items: center; gap: 12px; min-width: 0; }
.lcs .sp-song .sp-cv { width: 40px; height: 40px; }
.lcs .sp-tr.cur .sp-t b { color: var(--accent-hi); }
.lcs .sp-n .rp { display: none; position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; color: var(--ink); }
.lcs .sp-n .rp svg { width: 18px; height: 18px; }
.lcs .sp-tr:hover .sp-n .num, .lcs .sp-tr:focus-within .sp-n .num { visibility: hidden; }
.lcs .sp-tr:hover .sp-n .rp, .lcs .sp-tr:focus-within .sp-n .rp { display: inline-flex; }
.lcs .sp-more { display: inline-block; opacity: 0; margin-left: 8px; vertical-align: middle; }
.lcs .sp-tr:hover .sp-more, .lcs .sp-tr:focus-within .sp-more { opacity: 1; }
.lcs .sp-more button { width: 32px; height: 32px; border-radius: 50%; color: var(--sub); }
.lcs .sp-more button:hover { color: var(--ink); background: var(--raise2); }
.lcs .sp-more.none { visibility: hidden; }
.lcs .sp-eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.lcs .sp-eq i { width: 3px; background: var(--accent-hi); border-radius: 1px; animation: sp-eq 1s ease-in-out infinite; height: 40%; }
.lcs .sp-eq i:nth-child(2) { animation-delay: -.4s; } .lcs .sp-eq i:nth-child(3) { animation-delay: -.75s; } .lcs .sp-eq i:nth-child(4) { animation-delay: -.2s; }
.lcs .sp-eq.off i { animation-play-state: paused; }
@keyframes sp-eq { 0%, 100% { height: 25%; } 50% { height: 100%; } }

/* cards */
.lcs .sp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; }
.lcs .sp-card { background: var(--raise); padding: 14px; border-radius: 8px; text-align: left; transition: background .2s; position: relative; cursor: pointer; display: block; min-width: 0; }
.lcs .sp-card:hover { background: var(--raise2); }
.lcs .sp-card .sp-cvw { position: relative; margin-bottom: 14px; }
.lcs .sp-card .sp-cv { width: 100%; height: auto; aspect-ratio: 1; border-radius: 6px; box-shadow: 0 8px 24px rgba(0, 0, 0, .5); }
.lcs .sp-card .sp-cv svg { width: 40%; height: 40%; }
.lcs .sp-card .sp-t b { font-size: 15px; margin-bottom: 4px; }
.lcs .sp-fp {
    position: absolute; right: 8px; bottom: 8px; width: 48px; height: 48px; border-radius: 50%; background: var(--grad); color: var(--on-accent);
    opacity: 0; transform: translateY(8px); transition: opacity .2s, transform .2s, filter .1s; box-shadow: 0 8px 20px rgba(0, 0, 0, .5);
}
.lcs .sp-fp svg { width: 22px; height: 22px; }
.lcs .sp-card:hover .sp-fp, .lcs .sp-card:focus-within .sp-fp { opacity: 1; transform: translateY(0); }
.lcs .sp-fp:hover { transform: scale(1.06) !important; filter: brightness(1.1); }
.lcs .sp-empty { color: var(--sub); padding: 30px 0; text-align: center; }
.lcs .sp-empty b { display: block; color: var(--ink); font-size: 18px; margin-bottom: 6px; }
.lcs .sp-empty.left { text-align: left; padding: 0; }
.lcs .sp-empty .sp-btn { margin-top: 16px; }

/* search page */
.lcs .sp-sr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 24px; }
.lcs .sp-top-card { padding: 20px; background: var(--raise); border-radius: 8px; cursor: pointer; position: relative; transition: background .2s; }
.lcs .sp-top-card:hover { background: var(--raise2); }
.lcs .sp-top-card .sp-cv { width: 92px; height: 92px; border-radius: 6px; box-shadow: 0 8px 24px rgba(0, 0, 0, .5); margin-bottom: 20px; }
.lcs .sp-top-card b { font-size: 28px; font-weight: 800; letter-spacing: -.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 8px; white-space: normal; line-height: 1.1; }
.lcs .sp-top-card small { color: var(--sub); }
.lcs .sp-top-card .sp-fp { opacity: 0; right: 20px; bottom: 20px; }
.lcs .sp-top-card:hover .sp-fp { opacity: 1; transform: translateY(0); }
.lcs .sp-skel { height: 56px; border-radius: 6px; margin-bottom: 4px; background: linear-gradient(90deg, var(--raise) 25%, var(--raise2) 50%, var(--raise) 75%); background-size: 200% 100%; animation: sp-skel 1.2s linear infinite; }
@keyframes sp-skel { to { background-position: -200% 0; } }
.lcs .sp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.lcs .sp-chip { padding: 8px 14px; border-radius: 999px; background: var(--raise2); font-weight: 600; font-size: 13px; }
.lcs .sp-chip:hover { background: var(--raise3); }
.lcs .sp-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.lcs .sp-tile { position: relative; overflow: hidden; height: 110px; border-radius: 8px; padding: 14px; font-size: 20px; font-weight: 800; letter-spacing: -.3px; cursor: pointer; transition: transform .15s; text-shadow: 0 1px 8px rgba(0, 0, 0, .25); }
.lcs .sp-tile:hover { transform: scale(1.03); }
.lcs .sp-tile::after { content: ""; position: absolute; right: -18px; bottom: -10px; width: 74px; height: 74px; border-radius: 6px; background: rgba(0, 0, 0, .22); transform: rotate(25deg); }
.lcs .sp-tile::before { content: ""; position: absolute; right: -6px; bottom: 6px; width: 54px; height: 54px; border-radius: 50%; background: rgba(255, 255, 255, .18); z-index: 1; }

/* lyrics */
.lcs .sp-lyrics { position: absolute; inset: 0; z-index: 4; background: linear-gradient(180deg, #6d36d6, #240a52 70%, #150636); display: flex; flex-direction: column; border-radius: var(--radius); }
.lcs .sp-lyrics .sp-top { background: none; }
.lcs .sp-ly-title { font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.lcs .sp-ly-title small { font-weight: 500; opacity: .75; margin-left: 8px; }
.lcs .sp-sync { display: flex; align-items: center; gap: 2px; background: rgba(0, 0, 0, .28); border-radius: 999px; padding: 2px 4px; font-size: 12px; font-weight: 700; flex: none; }
.lcs .sp-sync button { width: 26px; height: 26px; border-radius: 50%; font-size: 15px; }
.lcs .sp-sync button:hover { background: rgba(255, 255, 255, .15); }
.lcs .sp-sync span { min-width: 48px; text-align: center; font-variant-numeric: tabular-nums; }
.lcs .sp-ly-view { flex: 1; position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(transparent, #000 10%, #000 85%, transparent); mask-image: linear-gradient(transparent, #000 10%, #000 85%, transparent); }
.lcs #sp-ly-lines { position: absolute; left: 0; right: 0; top: 0; padding: 22vh 40px 40vh; transition: transform .6s cubic-bezier(.22, .8, .3, 1); }
.lcs .sp-ll { font-size: clamp(24px, 3.4vw, 36px); font-weight: 800; line-height: 1.3; padding: 8px 0; color: rgba(0, 0, 0, .5); letter-spacing: -.4px; transition: color .3s; cursor: pointer; }
.lcs .sp-ll:hover { color: rgba(255, 255, 255, .85); }
.lcs .sp-ll.past { color: rgba(255, 255, 255, .6); }
.lcs .sp-ll.on { color: #fff; }
.lcs .sp-ll.dots { display: flex; gap: .3em; align-items: center; height: 1.3em; cursor: default; }
.lcs .sp-ll.dots i { width: .3em; height: .3em; border-radius: 50%; background: currentColor; display: block; }
.lcs .sp-ll.dots.on i { animation: sp-pd 1.4s ease-in-out infinite; }
.lcs .sp-ll.dots.on i:nth-child(2) { animation-delay: .2s; } .lcs .sp-ll.dots.on i:nth-child(3) { animation-delay: .4s; }
.lcs .sp-ll.dots.past { display: none; }
@keyframes sp-pd { 0%, 100% { opacity: .35; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.1); } }
.lcs #sp-ly-plain { white-space: pre-wrap; font-size: clamp(20px, 2.6vw, 28px); font-weight: 800; line-height: 1.5; padding: 20px 40px 80px; overflow-y: auto; height: 100%; color: #fff; }
.lcs .sp-ly-note { position: absolute; left: 40px; bottom: 16px; color: rgba(255, 255, 255, .75); font-weight: 600; font-size: 13px; display: flex; gap: 12px; align-items: center; }
.lcs .sp-ly-note button { text-decoration: underline; }

/* studio */
.lcs .sp-fx { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.lcs .sp-fx button { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; text-align: left; background: var(--raise); border: 2px solid transparent; border-radius: 10px; padding: 18px 16px; min-height: 104px; gap: 10px; width: 100%; transition: background .15s; }
.lcs .sp-fx button:hover:not(:disabled) { background: var(--raise2); }
.lcs .sp-fx button.on { border-color: var(--accent); background: rgba(146, 85, 244, .16); }
.lcs .sp-fx b { font-size: 16px; font-weight: 700; }
.lcs .sp-fx small { color: var(--sub); }
.lcs .sp-knobs { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.lcs .sp-knob { background: var(--raise); border-radius: 10px; padding: 16px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.lcs .sp-knob .sp-t small { white-space: normal; }
.lcs .sp-seg { display: flex; background: var(--raise2); border-radius: 999px; padding: 3px; }
.lcs .sp-seg button { padding: 6px 12px; border-radius: 999px; color: var(--sub); font-weight: 600; font-size: 13px; }
.lcs .sp-seg button.on { background: var(--grad); color: var(--on-accent); }
.lcs .sp-knob .sp-range { max-width: 160px; }

/* sliders */
.lcs input.sp-range {
    -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 4px; border-radius: 2px; cursor: pointer;
    background: linear-gradient(90deg, var(--ink) var(--v, 0%), #4d4560 var(--v, 0%));
}
.lcs input.sp-range:hover:not(:disabled), .lcs .sp-ctrl:hover input.sp-range:not(:disabled) { background: linear-gradient(90deg, var(--accent-hi) var(--v, 0%), #4d4560 var(--v, 0%)); }
.lcs input.sp-range:disabled { opacity: .35; cursor: default; }
.lcs input.sp-range::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; border-radius: 50%; background: #fff; opacity: 0; box-shadow: 0 2px 6px rgba(0, 0, 0, .5); }
.lcs input.sp-range:hover::-webkit-slider-thumb, .lcs input.sp-range:focus-visible::-webkit-slider-thumb, .lcs .sp-ctrl:hover input.sp-range::-webkit-slider-thumb { opacity: 1; }
.lcs input.sp-range::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 0; }

/* ------------------------------------------------------------------ right column */
.lcs .sp-right { display: flex; flex-direction: column; }
.lcs .sp-right-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 16px 8px; font-weight: 700; }
.lcs .sp-right-head button { width: 32px; height: 32px; border-radius: 50%; color: var(--sub); }
.lcs .sp-right-head button:hover { color: var(--ink); background: var(--raise); }
.lcs .sp-right-body { overflow-y: auto; padding: 0 16px 16px; min-height: 0; }
.lcs .sp-np-art { width: 100%; aspect-ratio: 1; border-radius: 8px; margin: 6px 0 16px; box-shadow: 0 8px 30px rgba(0, 0, 0, .5); }
.lcs .sp-np-art svg { width: 30%; height: 30%; }
.lcs .sp-np-title { font-size: 22px; font-weight: 800; letter-spacing: -.3px; overflow-wrap: anywhere; line-height: 1.2; }
.lcs .sp-np-sub { color: var(--sub); font-weight: 600; margin-top: 4px; }
.lcs .sp-box { background: var(--raise); border-radius: 8px; padding: 14px; margin-top: 16px; }
.lcs .sp-box h3 { font-size: 15px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; }
.lcs .sp-box h3 > span { display: flex; align-items: center; gap: 8px; min-width: 0; }
.lcs .sp-box h3 svg { width: 18px; height: 18px; }
.lcs .sp-box h3 button { color: var(--sub); font-size: 13px; font-weight: 700; flex: none; }
.lcs .sp-box h3 button:hover { color: var(--ink); text-decoration: underline; }
.lcs .sp-box small { color: var(--sub); display: block; }
.lcs .sp-box .sp-row { padding: 6px; }

/* ------------------------------------------------------------------ player bar */
.lcs .sp-bar { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(180px, 30%) 1fr minmax(180px, 30%); align-items: center; padding: 0 8px; gap: 12px; min-width: 0; }
.lcs .sp-bar-now { display: flex; align-items: center; gap: 12px; min-width: 0; }
.lcs .sp-bar-now .sp-cv { width: 56px; height: 56px; }
.lcs .sp-bar-now .sp-t b { font-size: 14px; }
.lcs .sp-bar-now .sp-t b:hover { text-decoration: underline; cursor: pointer; }
.lcs .sp-bar-now .sp-t small { font-size: 12px; }
.lcs .sp-bar-now .sp-ib { width: 32px; height: 32px; flex: none; }
.lcs .sp-bar-now .sp-ib svg { width: 18px; height: 18px; }
.lcs .sp-ctrl { display: flex; flex-direction: column; align-items: center; gap: 6px; max-width: 720px; width: 100%; justify-self: center; min-width: 0; }
.lcs .sp-ctrl-row { display: flex; align-items: center; gap: 16px; }
.lcs .sp-play { width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: #000; transition: transform .1s, background .15s; }
.lcs .sp-play svg { width: 18px; height: 18px; }
.lcs .sp-play:hover:not(:disabled) { transform: scale(1.06); background: var(--accent-hi); }
.lcs .sp-prog { display: flex; align-items: center; gap: 8px; width: 100%; color: var(--sub); font-size: 12px; font-variant-numeric: tabular-nums; }
.lcs .sp-prog span { width: 40px; text-align: center; flex: none; }
.lcs .sp-prog input.sp-range { flex: 1; }
.lcs .sp-bar-right { display: flex; align-items: center; justify-content: flex-end; gap: 4px; min-width: 0; }
.lcs .sp-vol { display: flex; align-items: center; gap: 6px; width: 140px; flex: none; }
.lcs .sp-loop1 { position: absolute; font-size: 9px; font-weight: 800; margin: -14px 0 0 14px; color: var(--accent-hi); }
.lcs .sp-mnav { display: none; }

/* ------------------------------------------------------------------ overlays */
.lcs .sp-toast { position: fixed; left: 50%; bottom: calc(var(--bar) + 24px); transform: translateX(-50%); background: #fff; color: #000; padding: 10px 16px; border-radius: 8px; font-weight: 600; z-index: 1050; max-width: min(520px, calc(100vw - 32px)); box-shadow: 0 8px 24px rgba(0, 0, 0, .45); pointer-events: none; }
.lcs .sp-toast.bad { background: #fecaca; }
.lcs .sp-menu { position: fixed; z-index: 1100; background: #2a1f42; border-radius: 6px; padding: 4px; min-width: 230px; max-width: 320px; max-height: min(64vh, 440px); overflow-y: auto; box-shadow: 0 16px 28px rgba(0, 0, 0, .55); }
.lcs .sp-menu button { display: flex; justify-content: flex-start; width: 100%; text-align: left; padding: 10px 12px; border-radius: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lcs .sp-menu button:hover, .lcs .sp-menu button:focus-visible { background: rgba(255, 255, 255, .1); }
.lcs .sp-menu hr { border: 0; border-top: 1px solid rgba(255, 255, 255, .12); margin: 4px 0; }
.lcs .sp-menu small { display: block; padding: 8px 12px 4px; color: var(--sub); font-size: 12px; }
.lcs .sp-modal { position: fixed; inset: 0; background: rgba(0, 0, 0, .7); display: grid; place-items: center; z-index: 1080; padding: 16px; }
.lcs .sp-modal form { background: #2a1f42; border-radius: 10px; padding: 22px; width: min(420px, 100%); display: flex; flex-direction: column; gap: 14px; box-shadow: 0 24px 60px rgba(0, 0, 0, .6); }
.lcs .sp-modal h3 { font-size: 20px; font-weight: 800; }
.lcs .sp-modal p { color: var(--sub); }
.lcs .sp-modal label { font-size: 13px; font-weight: 700; color: var(--sub); display: flex; flex-direction: column; gap: 6px; }
.lcs .sp-modal input { background: #3b2d5a; border: 1px solid transparent; border-radius: 4px; padding: 10px 12px; color: var(--ink); font-size: 14px; }
.lcs .sp-modal input:focus { outline: 0; border-color: var(--accent-hi); }
.lcs .sp-modal .btns { display: flex; justify-content: flex-end; gap: 10px; }
.lcs .sp-btn { padding: 10px 22px; border-radius: 999px; font-weight: 700; transition: transform .1s, filter .1s, color .15s; }
.lcs .sp-btn.pri { background: var(--grad); color: var(--on-accent); }
.lcs .sp-btn.pri:hover { transform: scale(1.03); filter: brightness(1.1); }
.lcs .sp-btn.ghost { color: var(--sub); }
.lcs .sp-btn.ghost:hover { color: var(--ink); }
.lcs .sp-btn.line { border: 1px solid rgba(255, 255, 255, .3); color: var(--ink); }
.lcs .sp-btn.line:hover { border-color: var(--ink); transform: scale(1.03); }
.lcs .sp-btn.danger { background: #e11d48; color: #fff; }

/* ------------------------------------------------------------------ small screens */
@media (max-width: 980px) {
    .lcs, .lcs.no-right { grid-template-columns: 1fr; }
    .lcs .sp-side, .lcs .sp-right { display: none; }
    .lcs .sp-sr { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
    .lcs { --bar: 196px; padding: 0; gap: 0; height: calc(100vh - 56px); height: calc(100dvh - 56px); }
    .lcs .sp-main { border-radius: 0; }
    .lcs .sp-search { min-width: 0; height: 42px; }
    .lcs .sp-pill { padding: 10px; } .lcs .sp-pill span, .lcs .sp-avatar, .lcs .sp-hist { display: none; }
    .lcs .sp-view { padding: 4px 16px 24px; }
    .lcs .sp-top { padding: 12px 16px; }
    .lcs .sp-hero { flex-direction: column; align-items: flex-start; padding: 12px 0 16px; }
    .lcs .sp-hero .art { width: 140px; height: 140px; }
    .lcs .sp-bar { grid-template-columns: 1fr auto; grid-template-rows: auto auto auto; padding: 8px 12px 0; gap: 6px 10px; background: var(--panel); }
    .lcs .sp-ctrl { grid-column: 1 / -1; grid-row: 2; }
    .lcs .sp-bar-right .sp-vol, .lcs .sp-bar-right .wide { display: none; }
    .lcs .sp-mnav { display: flex; grid-column: 1 / -1; justify-content: space-around; border-top: 1px solid var(--line); }
    .lcs .sp-mnav button { flex: 1; padding: 8px 0; flex-direction: column; gap: 2px; font-size: 11px; color: var(--sub); }
    .lcs .sp-mnav button.on { color: var(--accent-hi); }
    .lcs #sp-ly-lines { padding: 20vh 16px 40vh; } .lcs #sp-ly-plain { padding: 16px; } .lcs .sp-ly-note { left: 16px; }
    .lcs .sp-tracks td { padding: 8px 6px; } .lcs .sp-tracks td:first-child, .lcs .sp-tracks th:first-child { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .lcs #sp-ly-lines { transition: none; } .lcs .sp-ll.dots.on i, .lcs .sp-eq i, .lcs .sp-skel { animation: none; }
}
