/* ===== Playfy — tema oscuro mobile-first ===== */
:root {
    --bg: #121212;
    --bg-soft: #1c1c1e;
    --bg-card: #202024;
    --border: #2e2e33;
    --text: #f2f2f4;
    --muted: #9a9aa3;
    --accent: #1db954;
    --accent-soft: #1db95422;
    --danger: #e5484d;
    --radius: 14px;
    --player-h: 64px;
    --nav-h: 58px;
}

* { box-sizing: border-box; }

/* Iconos SVG */
.icon { display: inline-block; vertical-align: middle; flex-shrink: 0; }
.icon-text { display: inline-flex; align-items: center; gap: .4rem; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: 'Segoe UI', system-ui, -apple-system, Roboto, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

a { color: var(--accent); text-decoration: none; }
h1 { font-size: 1.5rem; margin: 0 0 .25rem; }
h1:focus { outline: none; }
h2 { font-size: 1.1rem; margin: .5rem 0; }
.muted { color: var(--muted); font-size: .9rem; }
.error { color: var(--danger); background: #e5484d1a; border: 1px solid #e5484d55; padding: .6rem .8rem; border-radius: 10px; margin: .6rem 0; font-size: .9rem; }
.ok { color: var(--accent); margin-top: .5rem; font-size: .9rem; }
.tag { background: var(--accent-soft); color: var(--accent); border-radius: 999px; padding: .1rem .55rem; font-size: .75rem; margin-left: .4rem; }
.tag.alt { background: #8e5cf722; color: #b794f6; }

/* ---- Splash de arranque ---- */
.boot-splash {
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    color: var(--muted);
    letter-spacing: .2em;
    text-transform: uppercase;
    font-size: .8rem;
}
.boot-logo {
    width: 64px; height: 64px;
    border-radius: 18px;
    background: var(--accent);
    color: #06180c;
    display: grid; place-items: center;
    font-size: 1.8rem;
    animation: pulse 1.2s ease-in-out infinite;
}
@keyframes pulse { 50% { transform: scale(1.08); opacity: .85; } }

/* ---- Estructura ---- */
.app-shell { min-height: 100vh; display: flex; flex-direction: column; }

.topbar {
    position: sticky; top: 0; z-index: 20;
    display: flex; align-items: center; justify-content: space-between;
    padding: .7rem 1rem;
    background: #121212ee;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}
.brand { font-weight: 700; font-size: 1.05rem; color: var(--text); display: flex; align-items: center; gap: .45rem; }
.brand::first-letter { color: var(--accent); }
.topbar nav { display: flex; gap: .25rem; }
.topbar nav a {
    color: var(--muted);
    padding: .4rem .7rem;
    border-radius: 999px;
    font-size: .92rem;
}
.topbar nav a.active { color: var(--text); background: var(--bg-card); }

.content {
    flex: 1;
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
    padding: 1rem 1rem calc(var(--player-h) + var(--nav-h) + 1.5rem);
}

/* ---- Sidebar (escritorio): oculto en móvil; overrides al final del archivo ---- */
.sidebar { display: none; }
.pb-vol { display: none; align-items: center; gap: .15rem; }

/* ---- Navbar inferior estilo Spotify (móvil) ---- */
.bottom-nav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    height: calc(var(--nav-h) + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    display: flex;
    background: #0a0a0acc;
    backdrop-filter: blur(16px);
    border-top: 1px solid var(--border);
}
.bn-item {
    flex: 1;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    color: var(--muted); font-size: .68rem; text-decoration: none;
    transition: color .12s ease;
}
.bn-item .bn-ico { font-size: 1.25rem; line-height: 1; filter: grayscale(1) opacity(.7); }
.bn-item.active { color: #fff; }
.bn-item.active .bn-ico { filter: none; }

.page-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin: .5rem 0 1rem; }
.section-title { margin-top: 1.25rem; }

/* ---- Tarjetas / grid ---- */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: .8rem;
    margin-top: 1rem;
}

.playlist-card {
    display: flex; flex-direction: column; gap: .5rem;
    color: var(--text);
    padding: .8rem;
    transition: transform .12s ease, border-color .12s ease;
}
.playlist-card:hover { transform: translateY(-2px); border-color: #4a4a52; }
.cover {
    aspect-ratio: 1;
    border-radius: 10px;
    background: var(--bg-soft);
    display: grid; place-items: center;
    font-size: 2rem;
    overflow: hidden;
}
.cover img { width: 100%; height: 100%; object-fit: cover; }
.pc-name { font-weight: 600; font-size: .95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-sub { color: var(--muted); font-size: .8rem; }
.new-card { justify-content: center; align-items: stretch; border-style: dashed; }
.new-card .cover { font-size: 2.4rem; color: var(--muted); }

/* ---- Hero / onboarding ---- */
.hero { max-width: 480px; margin: 8vh auto 0; text-align: center; padding: 2rem 1.5rem; }
.hero-logo {
    width: 72px; height: 72px; margin: 0 auto 1rem;
    border-radius: 20px; background: var(--accent); color: #06180c;
    display: grid; place-items: center; font-size: 2rem;
}
.steps { text-align: left; color: var(--muted); font-size: .92rem; line-height: 1.7; padding-left: 1.2rem; }
.steps code, code.block {
    background: var(--bg-soft); border: 1px solid var(--border);
    border-radius: 6px; padding: .15rem .4rem; font-size: .82rem;
    word-break: break-all;
}
code.block { display: block; padding: .6rem .8rem; margin: .5rem 0 1rem; }
.demo-line { margin-top: 1.25rem; border-top: 1px solid var(--border); padding-top: 1rem; }

/* ---- Botones e inputs ---- */
.btn {
    background: var(--bg-soft);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: .55rem 1.1rem;
    font-size: .92rem;
    cursor: pointer;
    transition: filter .12s ease;
}
.btn:hover:not(:disabled) { filter: brightness(1.2); }
.btn:disabled { opacity: .45; cursor: default; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #06180c; font-weight: 600; }
.btn.big { font-size: 1.05rem; padding: .8rem 1.6rem; }
.btn.ghost { background: transparent; }
.btn.danger { border-color: var(--danger); color: var(--danger); background: transparent; }
.btn.list { display: block; width: 100%; text-align: left; margin: .35rem 0; border-radius: 10px; }

.icon-btn {
    background: transparent; border: none; color: var(--muted);
    font-size: 1.05rem; cursor: pointer; padding: .35rem .45rem;
    border-radius: 8px; line-height: 0;
    display: inline-flex; align-items: center; justify-content: center;
}
.icon-btn:hover:not(:disabled) { color: var(--text); background: var(--bg-soft); }
.icon-btn:disabled { opacity: .3; cursor: default; }
.icon-btn.danger:hover { color: var(--danger); }
.icon-btn.add { color: var(--accent); font-size: 1.2rem; }
.icon-btn.on { color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }

/* Botón aleatorio en cabecera de playlist: iluminado cuando está activo */
.shuffle-btn.lit {
    background: var(--accent-soft);
    border-color: var(--accent);
    color: var(--accent);
    font-weight: 600;
}

/* Chips de ordenación */
.chips { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; margin: .2rem 0 1rem; }
.chips-label { color: var(--muted); font-size: .82rem; margin-right: .2rem; }
.chip {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    color: var(--muted);
    border-radius: 999px;
    padding: .32rem .8rem;
    font-size: .82rem;
    cursor: pointer;
}
.chip.active { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); font-weight: 600; }

.small { font-size: .85rem; }

/* Pantalla de acceso */
.gate { min-height: 100vh; display: grid; place-items: center; padding: 1.5rem; }
.gate-card { width: 100%; max-width: 380px; text-align: center; }
.gate-logo img { width: 84px; height: 84px; border-radius: 20px; box-shadow: 0 10px 30px #0008; }
.gate-card h1 { margin: 1rem 0 .3rem; }
.gate-form { display: flex; flex-direction: column; gap: .6rem; margin: 1.2rem 0; }
.gate-form input { text-align: center; }
.gate-sep { color: var(--muted); margin: 1rem 0 .6rem; font-size: .85rem; }
.btn.big { width: 100%; }
.gate-waiting { margin: 1.2rem 0; }
.gate-waiting .spinner { margin: 0 auto 1rem; }

/* Buscador estilo Spotify */
.search-box {
    display: flex; align-items: center; gap: .5rem;
    background: #24242a; border-radius: 10px;
    padding: 0 .8rem; margin: .3rem 0 1rem;
}
.search-box .search-ico { color: var(--muted); display: inline-flex; }
.search-box input {
    flex: 1; background: transparent; border: none; padding: .8rem 0; color: var(--text);
}
.search-box input:focus { border: none; outline: none; }
.search-clear { background: none; border: none; color: var(--muted); cursor: pointer; display: inline-flex; padding: .3rem; }
.hist-head { display: flex; align-items: center; justify-content: space-between; }
.hist-head .section-title { margin: 1rem 0 .3rem; }
.btn.small { padding: .3rem .8rem; font-size: .8rem; }
.howto { text-align: left; margin: .6rem 0; }
.howto summary { color: var(--accent); cursor: pointer; font-size: .9rem; }

/* Importar de Spotify / CTA de conexión */
.import-box { margin: 1.4rem 0 1rem; }
.import-box h2 { margin-top: 0; }
.spotify-cta { margin-top: 1.4rem; padding: .8rem 1rem; }

/* Botón que envuelve un InputFile */
.file-btn { position: relative; overflow: hidden; display: inline-block; cursor: pointer; }
.file-btn input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

input {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    padding: .6rem .8rem;
    font-size: .95rem;
    width: 100%;
    outline: none;
}
input:focus { border-color: var(--accent); }
label { display: block; margin: .8rem 0 .3rem; font-size: .85rem; color: var(--muted); }

.row-inline { display: flex; gap: .5rem; margin: .6rem 0; }
.row-inline input { flex: 1; }

/* ---- Cabecera de playlist ---- */
.pl-head { display: flex; gap: 1rem; align-items: center; margin: .5rem 0 1rem; }
.pl-cover {
    width: 110px; height: 110px; flex-shrink: 0;
    border-radius: 12px; background: var(--bg-card);
    display: grid; place-items: center; font-size: 2.5rem; overflow: hidden;
    border: 1px solid var(--border);
}
.pl-cover img { width: 100%; height: 100%; object-fit: cover; }
.pl-actions { display: flex; gap: .5rem; margin-top: .7rem; flex-wrap: wrap; }
.pl-titlebar { display: flex; align-items: flex-start; justify-content: space-between; gap: .5rem; }
.pl-titlebar h1 { min-width: 0; }
.menu-wrap { position: relative; flex-shrink: 0; }
.menu-back { position: fixed; inset: 0; z-index: 40; }
.menu {
    position: absolute; right: 0; top: 100%; z-index: 41;
    background: #26262b; border: 1px solid var(--border); border-radius: 12px;
    box-shadow: 0 12px 34px #000a; padding: .3rem; min-width: 210px;
}
.menu button {
    display: flex; align-items: center; gap: .6rem; width: 100%; text-align: left;
    background: transparent; border: none; color: var(--text); cursor: pointer;
    padding: .6rem .7rem; border-radius: 8px; font-size: .92rem;
}
.menu button:hover { background: #ffffff12; }
.menu button.danger { color: var(--danger); }
.pl-search { margin: .2rem 0 1rem; }

.add-box { margin-bottom: 1rem; padding: .7rem .9rem; }
.add-hint {
    display: block; text-align: center;
    background: var(--bg-card); border: 1px dashed var(--border); border-radius: 10px;
    color: var(--accent); padding: .7rem; margin-bottom: 1rem; font-size: .9rem;
}
.add-hint:hover { border-color: var(--accent); }
.partial-note {
    background: #2a2410; border: 1px solid #5a4a1a; border-radius: 10px;
    padding: .7rem .9rem; margin-bottom: 1rem;
}
.partial-note p { margin: 0 0 .5rem; }

/* ---- Lista de canciones ---- */
.tracklist { display: flex; flex-direction: column; }
.track-row {
    display: flex; align-items: center; gap: .55rem;
    padding: .45rem .35rem;
    border-bottom: 1px solid #ffffff0d;
    border-radius: 8px;
}
.track-row:hover { background: #ffffff08; }
.track-row.clickable { cursor: pointer; }
.track-row.playing { background: var(--accent-soft); }
.track-row.playing .tr-name { color: var(--accent); }
.track-row.slim { border-bottom: none; padding: .3rem .2rem; }
.track-row.sortable-ghost { opacity: .35; background: var(--accent-soft); }

.drag-handle { color: var(--muted); cursor: grab; padding: .3rem .15rem; font-size: 1rem; touch-action: none; }
.tr-play { flex-shrink: 0; }
.tr-art {
    width: 40px; height: 40px; flex-shrink: 0;
    border-radius: 6px; background: var(--bg-card);
    display: grid; place-items: center; overflow: hidden; font-size: 1.1rem;
}
.tr-art img { width: 100%; height: 100%; object-fit: cover; }
.tr-art-play { position: relative; cursor: pointer; }
.tr-art-ov {
    position: absolute; inset: 0; display: none; place-items: center;
    background: #000000a6; color: #fff; border-radius: 6px;
}
.tr-art-play:hover .tr-art-ov { display: grid; }
.tr-info { flex: 1; min-width: 0; cursor: pointer; }
.tr-name { font-size: .95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tr-artist { color: var(--muted); font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tr-dur { color: var(--muted); font-size: .8rem; font-variant-numeric: tabular-nums; }
.tr-actions { display: flex; align-items: center; }

@media (max-width: 560px) {
    .tr-dur { display: none; }
    .pl-cover { width: 84px; height: 84px; }
}

/* ---- Barra de reproducción ---- */
.playerbar {
    position: fixed; left: 0; right: 0; bottom: calc(var(--nav-h) + env(safe-area-inset-bottom)); z-index: 30;
    background: #18181bf2;
    backdrop-filter: blur(14px);
    border-top: 1px solid var(--border);
}
.pb-progress { padding: 8px 0 4px; cursor: pointer; touch-action: none; }
.pb-progress:hover .pb-progress-track { height: 6px; }
.pb-progress-track { height: 4px; background: #ffffff1c; transition: height .1s ease; }
.pb-progress-fill { height: 100%; width: 0; background: var(--accent); }
.pb-time { font-variant-numeric: tabular-nums; }
.pb-skip { font-size: .95rem; }
@media (max-width: 480px) {
    .pb-controls { gap: 0; }
    .pb-row { gap: .45rem; padding: .55rem .6rem; }
}
.pb-row {
    display: flex; align-items: center; gap: .7rem;
    max-width: 860px; margin: 0 auto;
    padding: .55rem 1rem;
}
.pb-art {
    width: 46px; height: 46px; flex-shrink: 0;
    border-radius: 8px; background: var(--bg-card);
    display: grid; place-items: center; overflow: hidden;
}
.pb-art img { width: 100%; height: 100%; object-fit: cover; }
.pb-info { flex: 1; min-width: 0; }
.pb-title { font-weight: 600; font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pb-sub { color: var(--muted); font-size: .78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pb-controls { display: flex; align-items: center; gap: .1rem; }
.pb-play {
    font-size: 1.3rem; color: var(--text);
    background: var(--bg-soft); border-radius: 999px;
    width: 44px; height: 44px; display: grid; place-items: center;
}
.pb-error {
    max-width: 860px; margin: 0 auto;
    padding: 0 1rem .5rem; color: var(--danger); font-size: .78rem;
}
.pb-tap { display: flex; align-items: center; gap: .7rem; flex: 1; min-width: 0; cursor: pointer; }

/* ---- Vista "Now Playing" a pantalla completa ---- */
.np-full {
    position: fixed; inset: 0; z-index: 40;
    background: linear-gradient(180deg, #2a2a2e 0%, var(--bg) 55%);
    display: flex; flex-direction: column; align-items: center;
    padding: 1rem 1.5rem calc(1.5rem + env(safe-area-inset-bottom));
    gap: 1.2rem;
    animation: np-rise .22s ease;
}
@keyframes np-rise { from { transform: translateY(30px); opacity: .4; } }
.np-top { width: 100%; max-width: 480px; display: flex; align-items: center; justify-content: space-between; }
.np-topactions { display: flex; gap: .2rem; }
.np-full { touch-action: pan-y; }
.np-close { font-size: 1.5rem; }
.np-context { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 70%; }
.np-art {
    width: min(78vw, 340px); height: min(78vw, 340px);
    border-radius: 16px; background: var(--bg-card);
    display: grid; place-items: center; font-size: 5rem; overflow: hidden;
    box-shadow: 0 20px 50px #000a; margin-top: auto;
}
.np-art img { width: 100%; height: 100%; object-fit: cover; }
.np-meta { width: 100%; max-width: 480px; text-align: left; }
.np-title { font-size: 1.5rem; font-weight: 700; line-height: 1.2; }
.np-artist { color: var(--muted); font-size: 1rem; margin-top: .2rem; }
.np-src { color: var(--accent); font-size: .78rem; margin-top: .35rem; }
.np-seek { width: 100%; max-width: 480px; display: flex; align-items: center; gap: .6rem; }
.np-bar { flex: 1; padding: 10px 0; cursor: pointer; touch-action: none; }
.np-bar-track { height: 6px; background: #ffffff26; border-radius: 3px; }
.np-bar-fill { height: 100%; width: 0; background: var(--accent); border-radius: 3px; }
.np-controls { width: 100%; max-width: 480px; display: flex; align-items: center; justify-content: space-between; margin-bottom: auto; }
.np-controls .icon-btn { font-size: 1.5rem; }
.np-play { font-size: 2rem !important; background: var(--accent); color: #06180c; border-radius: 999px; width: 64px; height: 64px; display: grid; place-items: center; }
.np-prev, .np-next { font-size: 1.8rem !important; }
.artist-av { border-radius: 50%; background: var(--bg-soft); color: var(--muted); display: grid; place-items: center; }
.rot-270 { transform: rotate(-90deg); color: var(--muted); }
.artist-head { display: flex; align-items: center; gap: .8rem; }
.artist-head .section-title { margin: 1rem 0; }

/* ---- Player de YouTube (oculto fuera de pantalla; ToS: sigue en el DOM) ---- */
#playfy-yt-wrap {
    position: fixed;
    right: 12px;
    bottom: calc(var(--player-h) + 12px);
    width: 200px; height: 112px;
    transform: translateX(120vw);
    z-index: 25;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 30px #000a;
    transition: transform .25s ease;
}
#playfy-yt-wrap.visible { transform: none; }

/* ---- Varios ---- */
.spinner {
    width: 34px; height: 34px;
    margin: 2.5rem auto;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin .8s linear infinite;
}
.spinner.small { width: 20px; height: 20px; margin: .8rem auto; border-width: 2px; }
@keyframes spin { to { transform: rotate(360deg); } }

.settings-card { margin-bottom: 1rem; }
.admin-link { display: block; text-decoration: none; color: var(--text); }
.admin-link:hover { border-color: var(--accent); }
.stats-grid { grid-template-columns: repeat(3, 1fr); }
.stat { text-align: center; padding: 1.1rem .6rem; }
.stat-num { font-size: 1.8rem; font-weight: 700; color: var(--accent); }
.stat-lbl { color: var(--muted); font-size: .8rem; margin-top: .2rem; }
.modal-back {
    position: fixed; inset: 0; z-index: 50;
    background: #000a; backdrop-filter: blur(3px);
    display: grid; place-items: center; padding: 1rem;
}
.modal { width: 100%; max-width: 420px; max-height: 70vh; overflow-y: auto; }

/* Popup de confirmación */
.confirm-modal { max-width: 380px; text-align: center; padding: 1.6rem 1.4rem 1.3rem; animation: confirmIn .18s ease-out; }
@keyframes confirmIn { from { opacity: 0; transform: translateY(10px) scale(.97); } }
.confirm-icon {
    width: 54px; height: 54px; margin: 0 auto .8rem;
    border-radius: 50%; display: grid; place-items: center;
    background: var(--bg-soft); color: var(--muted);
}
.confirm-icon.danger { background: #e5484d1f; color: var(--danger); }
.confirm-title { font-size: 1.2rem; margin: 0 0 .4rem; }
.confirm-msg { font-size: .95rem; line-height: 1.5; margin: 0 0 1.3rem; }
.confirm-actions { display: flex; gap: .6rem; }
.confirm-actions .btn { flex: 1; justify-content: center; }
.btn.danger-solid { background: var(--danger); border-color: var(--danger); color: #fff; font-weight: 600; }

/* Modal de edición de playlist */
.edit-modal { max-width: 400px; animation: confirmIn .18s ease-out; }
.edit-cover-row { display: flex; gap: 1rem; align-items: center; margin: .8rem 0 1rem; }
.edit-cover {
    width: 90px; height: 90px; flex-shrink: 0; border-radius: 10px;
    background: var(--bg-soft); display: grid; place-items: center;
    overflow: hidden; color: var(--muted);
}
.edit-cover img { width: 100%; height: 100%; object-fit: cover; }
.edit-cover-actions { display: flex; flex-direction: column; gap: .5rem; }
.btn.small { padding: .4rem .8rem; font-size: .85rem; }
.edit-label { display: block; color: var(--muted); font-size: .8rem; margin-bottom: .3rem; }
.edit-name {
    width: 100%; box-sizing: border-box; margin-bottom: 1.2rem;
    background: var(--bg-soft); border: 1px solid var(--border); color: var(--text);
    border-radius: 10px; padding: .6rem .8rem; font-size: 1rem;
}
.edit-name:focus { outline: none; border-color: var(--accent); }

#blazor-error-ui {
    background: var(--danger); color: #fff;
    bottom: 0; box-shadow: 0 -1px 6px #0006;
    display: none; left: 0; right: 0;
    padding: .6rem 1.2rem; position: fixed; z-index: 1000;
}
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: .75rem; top: .5rem; }
#blazor-error-ui a { color: #fff; text-decoration: underline; }

/* ================= Escritorio: layout estilo Spotify (overrides finales) ================= */
@media (min-width: 900px) {
    .sidebar {
        display: flex; flex-direction: column;
        position: fixed; left: 0; top: 0; bottom: 0; width: 250px; z-index: 35;
        background: #0a0a0a; border-right: 1px solid var(--border);
        padding: 1rem .8rem; gap: .3rem; overflow: hidden;
    }
    .sidebar .brand { font-size: 1.15rem; padding: .3rem .5rem 1rem; display: flex; align-items: center; gap: .5rem; }
    .side-nav { display: flex; flex-direction: column; gap: .1rem; }
    .side-item {
        display: flex; align-items: center; gap: .8rem; padding: .6rem .7rem; border-radius: 10px;
        color: var(--muted); text-decoration: none; font-weight: 600; font-size: .95rem;
    }
    .side-item:hover { color: var(--text); }
    .side-item.active { color: #fff; background: var(--bg-card); }
    .side-pl { margin-top: 1rem; border-top: 1px solid var(--border); padding-top: .8rem; overflow-y: auto; flex: 1; }
    .side-pl-head { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; padding: 0 .5rem .5rem; }
    .side-pl-item { display: flex; align-items: center; gap: .6rem; padding: .4rem .5rem; border-radius: 8px; color: var(--text); text-decoration: none; }
    .side-pl-item:hover { background: #ffffff0d; }
    .side-pl-cover { width: 38px; height: 38px; flex-shrink: 0; border-radius: 6px; background: var(--bg-card); display: grid; place-items: center; overflow: hidden; color: var(--muted); }
    .side-pl-cover img { width: 100%; height: 100%; object-fit: cover; }
    .side-pl-name { font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

    .bottom-nav { display: none !important; }
    .content { margin-left: 250px; max-width: 1200px; padding: 1.5rem 2rem calc(var(--player-h) + 2rem); }
    .playerbar { left: 250px; bottom: 0; }
    .np-full { left: 250px; }
    .pb-vol { display: flex !important; }
}

/* ---- Control de volumen (solo escritorio) ---- */
.pb-vol-range {
    -webkit-appearance: none; appearance: none;
    width: 90px; height: 4px; border-radius: 999px;
    background: #4a4a52; outline: none; cursor: pointer; margin: 0 .3rem 0 0;
}
.pb-vol-range::-webkit-slider-thumb {
    -webkit-appearance: none; appearance: none;
    width: 12px; height: 12px; border-radius: 50%;
    background: var(--text); border: none; cursor: pointer;
}
.pb-vol-range::-moz-range-thumb {
    width: 12px; height: 12px; border-radius: 50%;
    background: var(--text); border: none; cursor: pointer;
}
.pb-vol:hover .pb-vol-range::-webkit-slider-thumb { background: var(--accent); }
.pb-vol:hover .pb-vol-range::-moz-range-thumb { background: var(--accent); }
