/* ==========================================================================
   MusicBy — hoja de estilos principal
   Identidad: fondo ciruela profundo, acento degradado coral → violeta,
   superficies "cristal", esquinas suaves y movimiento sutil.
   ========================================================================== */

:root {
    --bg: #0d0c14;
    --bg-2: #13111d;
    --surface: #1a1726;
    --surface-2: #221e31;
    --surface-3: #2b263d;
    --line: rgba(255, 255, 255, .08);
    --line-2: rgba(255, 255, 255, .14);
    --text: #ecebf5;
    --text-2: #b4b0c8;
    --text-3: #7f7a96;
    --accent: #ff5e7e;
    --accent-2: #8b5cf6;
    --accent-grad: linear-gradient(135deg, #ff5e7e 0%, #c05cf0 55%, #8b5cf6 100%);
    --ok: #34d399;
    --warn: #fbbf24;
    --danger: #f43f5e;
    --info: #60a5fa;
    --radius: 14px;
    --radius-lg: 20px;
    --radius-sm: 10px;
    --shadow: 0 10px 30px rgba(0, 0, 0, .35);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, .5);
    --sidebar-w: 272px;
    --player-h: 88px;
    --topbar-h: 64px;
    --mobile-nav-h: 0px;
    --ease: cubic-bezier(.2, .8, .2, 1);
    --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
    color-scheme: dark;
}

[data-theme="light"] {
    --bg: #f6f4fb;
    --bg-2: #efecf7;
    --surface: #ffffff;
    --surface-2: #f3f0fa;
    --surface-3: #e8e3f4;
    --line: rgba(20, 10, 50, .08);
    --line-2: rgba(20, 10, 50, .16);
    --text: #1b1730;
    --text-2: #4c4766;
    --text-3: #8a85a3;
    --shadow: 0 10px 30px rgba(40, 20, 90, .12);
    --shadow-lg: 0 24px 60px rgba(40, 20, 90, .2);
    color-scheme: light;
}

@media (prefers-color-scheme: light) {
    [data-theme="system"] {
        --bg: #f6f4fb; --bg-2: #efecf7; --surface: #fff; --surface-2: #f3f0fa; --surface-3: #e8e3f4;
        --line: rgba(20, 10, 50, .08); --line-2: rgba(20, 10, 50, .16);
        --text: #1b1730; --text-2: #4c4766; --text-3: #8a85a3;
        --shadow: 0 10px 30px rgba(40, 20, 90, .12); --shadow-lg: 0 24px 60px rgba(40, 20, 90, .2);
        color-scheme: light;
    }
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
button:disabled { cursor: not-allowed; opacity: .5; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -.02em; }
p { margin: 0; }
code { background: var(--surface-2); padding: 1px 6px; border-radius: 6px; font-size: .9em; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; border-radius: 6px; }

.icon { width: 20px; height: 20px; flex: none; fill: none; vertical-align: middle; }
.icon-verified { color: #60a5fa; width: 18px; height: 18px; }
.muted { color: var(--text-2); }
.small { font-size: .85rem; }
.center { text-align: center; margin-top: 1rem; }
.grad-text { background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 999; background: var(--surface); padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { left: 8px; }

/* ---------- Scrollbars ---------- */
* { scrollbar-width: thin; scrollbar-color: var(--surface-3) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 10px; border: 2px solid transparent; background-clip: padding-box; }

/* ==========================================================================
   Botones
   ========================================================================== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 42px; padding: 0 20px; border-radius: 999px; font-weight: 600; font-size: .95rem;
    border: 1px solid transparent; transition: transform .15s var(--ease), background .2s, box-shadow .2s, opacity .2s;
    white-space: nowrap; text-decoration: none !important;
}
.btn:active { transform: scale(.97); }
.btn .icon { width: 18px; height: 18px; }
.btn-primary { background: var(--accent-grad); color: #fff; box-shadow: 0 8px 22px rgba(192, 92, 240, .3); }
.btn-primary:hover { box-shadow: 0 10px 28px rgba(255, 94, 126, .38); }
.btn-ghost { background: var(--surface-2); color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface-3); }
.btn-outline { border-color: var(--line-2); color: var(--text); }
.btn-outline:hover, .btn-outline.is-active { border-color: var(--text); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger-text { color: var(--danger); }
.btn-block { width: 100%; }
.btn-lg { height: 52px; padding: 0 28px; font-size: 1.02rem; }
.btn-sm { height: 34px; padding: 0 14px; font-size: .85rem; }

.icon-btn {
    width: 36px; height: 36px; display: inline-grid; place-items: center; border-radius: 50%;
    color: var(--text-2); transition: background .15s, color .15s;
}
.icon-btn:hover { background: var(--surface-3); color: var(--text); }
.round-btn {
    width: 36px; height: 36px; display: inline-grid; place-items: center; border-radius: 50%;
    background: rgba(0, 0, 0, .28); color: var(--text);
}
[data-theme="light"] .round-btn { background: var(--surface-2); }
.round-btn:hover { background: var(--surface-3); }

.play-fab {
    width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
    background: var(--accent-grad); color: #fff; box-shadow: 0 10px 26px rgba(255, 94, 126, .35);
    transition: transform .2s var(--ease);
}
.play-fab:hover { transform: scale(1.06); }
.play-fab .icon { width: 26px; height: 26px; margin-left: 3px; }

.like-btn { width: 34px; height: 34px; display: inline-grid; place-items: center; color: var(--text-3); border-radius: 50%; transition: color .15s, transform .2s var(--ease); }
.like-btn:hover { color: var(--text); }
.like-btn.is-active { color: var(--accent); }
.like-btn.is-active .icon { fill: currentColor; }
.like-btn.pop { animation: pop .35s var(--ease); }
.like-btn--lg { width: 46px; height: 46px; }
.like-btn--lg .icon { width: 30px; height: 30px; }
@keyframes pop { 50% { transform: scale(1.3); } }

.chip { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: .82rem; font-weight: 600; margin-top: 10px; }
.chip:hover { background: var(--surface-3); text-decoration: none; }

/* ==========================================================================
   App shell
   ========================================================================== */
.app { overflow: hidden; }
.shell {
    display: grid;
    grid-template-columns: var(--sidebar-w) minmax(0, 1fr) auto;
    height: calc(100dvh - var(--player-h) - var(--mobile-nav-h));
    gap: 8px; padding: 8px 8px 0;
}

/* Sidebar */
.sidebar {
    background: var(--bg-2); border-radius: var(--radius-lg); border: 1px solid var(--line);
    display: flex; flex-direction: column; overflow: hidden; min-height: 0;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 20px 20px 14px; font-weight: 800; font-size: 1.3rem; letter-spacing: -.03em; }
.brand:hover { text-decoration: none; }
.side-nav { display: flex; flex-direction: column; gap: 2px; padding: 4px 10px 12px; border-bottom: 1px solid var(--line); }
.side-nav a {
    display: flex; align-items: center; gap: 14px; padding: 10px 12px; border-radius: 12px;
    color: var(--text-2); font-weight: 600; transition: background .15s, color .15s;
}
.side-nav a:hover { color: var(--text); background: var(--surface); text-decoration: none; }
.side-nav a.is-active { color: var(--text); background: var(--surface-2); }
.side-nav a.is-active .icon { color: var(--accent); }
.side-nav .icon { width: 22px; height: 22px; }

.side-playlists { flex: 1; display: flex; flex-direction: column; min-height: 0; padding: 12px 10px; }
.side-playlists header { display: flex; align-items: center; justify-content: space-between; padding: 0 8px 8px; }
.side-playlists h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); }
#side-playlists { overflow-y: auto; flex: 1; }
.side-pl { display: flex; align-items: center; gap: 12px; padding: 7px 8px; border-radius: 10px; }
.side-pl:hover { background: var(--surface); text-decoration: none; }
.side-pl.is-active { background: var(--surface-2); }
.side-pl-art { width: 42px; height: 42px; border-radius: 8px; object-fit: cover; flex: none; background: var(--surface-2); }
.side-pl span { display: flex; flex-direction: column; min-width: 0; }
.side-pl strong { font-size: .92rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-pl small { color: var(--text-3); font-size: .78rem; }
.liked-art { display: grid; place-items: center; background: var(--accent-grad); color: #fff; }
.liked-art .icon { fill: #fff; width: 18px; height: 18px; }
.liked-art--xl .icon { width: 84px; height: 84px; }
.liked-art--card { aspect-ratio: 1; border-radius: 12px; margin-bottom: 12px; }
.liked-art--card .icon { width: 48px; height: 48px; }

/* Main */
.main-wrap {
    background: linear-gradient(180deg, var(--surface) 0, var(--bg-2) 340px);
    border-radius: var(--radius-lg); border: 1px solid var(--line);
    display: flex; flex-direction: column; min-width: 0; min-height: 0; overflow: hidden; position: relative;
}
.main-wrap::before {
    content: ""; position: absolute; inset: 0 0 auto 0; height: 320px; pointer-events: none;
    background: var(--tint, radial-gradient(120% 100% at 0 0, rgba(139, 92, 246, .22), transparent 60%));
    transition: background .6s;
}
.topbar {
    position: relative; z-index: 5; display: flex; align-items: center; gap: 14px;
    height: var(--topbar-h); padding: 0 20px; flex: none;
}
.topbar-nav { display: flex; gap: 8px; }
.top-search {
    flex: 1; max-width: 460px; display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px;
    background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; transition: border-color .2s, background .2s;
}
.top-search:focus-within { border-color: var(--accent-2); background: var(--surface-3); }
.top-search input { flex: 1; background: none; border: 0; outline: 0; min-width: 0; }
.top-search .icon { color: var(--text-3); }

.user-menu { margin-left: auto; position: relative; }
.user-chip { display: flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px; border-radius: 999px; background: rgba(0, 0, 0, .3); font-weight: 600; font-size: .9rem; }
[data-theme="light"] .user-chip { background: var(--surface-2); }
.user-chip img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.user-chip .icon { width: 16px; height: 16px; }
.dropdown {
    position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px; padding: 6px;
    background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--radius); box-shadow: var(--shadow-lg);
    animation: fadeUp .18s var(--ease);
}
.dropdown a, .dropdown button {
    display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 9px; text-align: left; font-size: .92rem;
}
.dropdown a:hover, .dropdown button:hover { background: var(--surface-3); text-decoration: none; }
.dropdown form { margin: 0; }

.main { position: relative; flex: 1; overflow-y: auto; overflow-x: hidden; outline: none; scroll-behavior: smooth; }
.page { padding: 8px 28px 48px; animation: pageIn .35s var(--ease); }
@keyframes pageIn { from { opacity: 0; transform: translateY(8px); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } }
.main.is-loading .page { opacity: .35; transition: opacity .2s; }

/* Queue panel */
.queue-panel {
    width: 340px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-lg);
    display: flex; flex-direction: column; min-height: 0; animation: fadeUp .2s var(--ease);
}
.queue-panel header { display: flex; justify-content: space-between; align-items: center; padding: 16px 16px 8px; }
.queue-panel h2 { font-size: 1.05rem; }
.queue-body { overflow-y: auto; padding: 0 8px 16px; flex: 1; }
.queue-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); padding: 14px 8px 6px; }
.queue-item { display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: center; padding: 6px 8px; border-radius: 10px; cursor: pointer; }
.queue-item:hover { background: var(--surface); }
.queue-item img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; }
.queue-item strong { display: block; font-size: .9rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.queue-item small { color: var(--text-3); font-size: .8rem; }
.queue-item.is-current strong { color: var(--accent); }
.queue-item .icon-btn { opacity: 0; }
.queue-item:hover .icon-btn { opacity: 1; }

/* ==========================================================================
   Reproductor
   ========================================================================== */
.player {
    position: fixed; left: 0; right: 0; bottom: var(--mobile-nav-h); height: var(--player-h); z-index: 40;
    display: grid; grid-template-columns: minmax(180px, 1fr) minmax(320px, 2fr) minmax(180px, 1fr); align-items: center; gap: 16px;
    padding: 0 18px; background: var(--bg);
}
.player-track { display: flex; align-items: center; gap: 12px; min-width: 0; }
.player-art { flex: none; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); }
.player-art img { width: 56px; height: 56px; object-fit: cover; }
.player-meta { display: flex; flex-direction: column; min-width: 0; }
.player-title { font-weight: 700; font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-artist { color: var(--text-2); font-size: .82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-artist a:hover { color: var(--text); }
.player[data-state="empty"] .like-btn { visibility: hidden; }

.player-center { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.player-controls, .fullplayer-controls { display: flex; align-items: center; gap: 14px; }
.ctrl { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; color: var(--text-2); transition: color .15s, transform .15s; position: relative; }
.ctrl:hover { color: var(--text); }
.ctrl:active { transform: scale(.92); }
.ctrl-sm .icon { width: 18px; height: 18px; }
.ctrl[aria-pressed="true"], .ctrl[data-mode="all"], .ctrl[data-mode="one"] { color: var(--accent); }
.ctrl[aria-pressed="true"]::after, .ctrl[data-mode="all"]::after, .ctrl[data-mode="one"]::after {
    content: ""; position: absolute; bottom: 1px; width: 4px; height: 4px; border-radius: 50%; background: currentColor;
}
.ctrl .i-repeat-one, .ctrl[data-mode="one"] .i-repeat { display: none; }
.ctrl[data-mode="one"] .i-repeat-one { display: block; }
.ctrl-main { width: 42px; height: 42px; background: var(--text); color: var(--bg); }
.ctrl-main:hover { color: var(--bg); transform: scale(1.05); }
.ctrl-main .icon { width: 20px; height: 20px; }
.ctrl-main .i-play { margin-left: 2px; }
.ctrl-main .i-pause, .player.is-playing .ctrl-main .i-play, .fullplayer.is-playing .ctrl-main .i-play { display: none; }
.player.is-playing .ctrl-main .i-pause, .fullplayer.is-playing .ctrl-main .i-pause { display: block; }
.spinner { display: none; position: absolute; inset: -3px; border-radius: 50%; border: 2px solid transparent; border-top-color: var(--accent); animation: spin .8s linear infinite; }
.is-buffering .ctrl-main .spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

.player-progress { display: flex; align-items: center; gap: 10px; width: 100%; max-width: 640px; }
.time { font-size: .75rem; color: var(--text-3); min-width: 38px; text-align: center; font-variant-numeric: tabular-nums; }

.slider { position: relative; flex: 1; height: 16px; cursor: pointer; touch-action: none; display: flex; align-items: center; }
.slider::before { content: ""; position: absolute; left: 0; right: 0; height: 4px; border-radius: 4px; background: var(--surface-3); }
.slider-buffer, .slider-fill { position: absolute; left: 0; height: 4px; border-radius: 4px; width: 0; pointer-events: none; }
.slider-buffer { background: var(--line-2); }
.slider-fill { background: var(--text); }
.slider:hover .slider-fill, .slider.is-dragging .slider-fill { background: var(--accent-grad); }
.slider-thumb {
    position: absolute; left: 0; width: 13px; height: 13px; border-radius: 50%; background: #fff; transform: translateX(-50%) scale(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, .4); transition: transform .15s; pointer-events: none;
}
.slider:hover .slider-thumb, .slider.is-dragging .slider-thumb, .slider:focus-visible .slider-thumb { transform: translateX(-50%) scale(1); }
.slider--volume { max-width: 110px; }
.player-extra { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.player-extra .i-vol-low, .player-extra .i-mute { display: none; }
.player-extra[data-vol="low"] .i-vol, .player-extra[data-vol="mute"] .i-vol { display: none; }
.player-extra[data-vol="low"] .i-vol-low, .player-extra[data-vol="mute"] .i-mute { display: block; }
.toggle-queue-active { color: var(--accent) !important; }
.mini-progress { display: none; }

/* Reproductor expandido (móvil) */
.fullplayer {
    position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; gap: 18px;
    padding: max(16px, env(safe-area-inset-top)) 24px max(28px, env(safe-area-inset-bottom));
    background: var(--bg); overflow: hidden; animation: slideUp .32s var(--ease);
}
@keyframes slideUp { from { transform: translateY(100%); } }
.fullplayer-bg { position: absolute; inset: -20%; background-size: cover; background-position: center; filter: blur(60px) saturate(1.4); opacity: .45; z-index: -1; }
.fullplayer-head { display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; }
.fullplayer-art { width: min(100%, 420px); aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); margin: auto auto 8px; }
.fullplayer-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.fullplayer-meta h2 { font-size: 1.5rem; }
.fullplayer-meta p { color: var(--text-2); }
.slider--lg { flex: none; }
.fullplayer-times { display: flex; justify-content: space-between; font-size: .8rem; color: var(--text-2); margin-top: -10px; }
.fullplayer-controls { justify-content: space-between; }
.ctrl-lg .icon { width: 30px; height: 30px; }
.ctrl-lg { width: 52px; height: 52px; color: var(--text); }
.ctrl-xl { width: 72px; height: 72px; }
.ctrl-xl .icon { width: 30px; height: 30px; }

/* ==========================================================================
   Contenido: encabezados, estanterías y tarjetas
   ========================================================================== */
.page-hero { padding: 24px 0 18px; }
.page-hero h1 { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 800; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0 18px; flex-wrap: wrap; }
.page-head h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; }
.eyebrow { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--text-2); display: flex; align-items: center; gap: 6px; }
.eyebrow .icon { width: 16px; height: 16px; }

.shelf { margin-top: 30px; }
.shelf-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.shelf-head h2 { font-size: 1.35rem; font-weight: 800; }
.link-more { color: var(--text-3); font-size: .85rem; font-weight: 700; }
.shelf-row {
    display: grid; grid-auto-flow: column; grid-auto-columns: minmax(158px, 1fr); gap: 18px;
    overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; margin: 0 -4px; padding-inline: 4px;
}
.shelf-row::-webkit-scrollbar { height: 0; }
@media (min-width: 1400px) { .shelf-row { grid-auto-columns: minmax(180px, calc((100% - 5 * 18px) / 6)); } }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 20px; }

.card {
    position: relative; padding: 12px; border-radius: var(--radius); background: transparent;
    transition: background .2s var(--ease); scroll-snap-align: start; min-width: 0;
}
.card:hover { background: var(--surface-2); }
.card-link { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.card-art { position: relative; aspect-ratio: 1; margin-bottom: 12px; border-radius: 12px; overflow: hidden; background: var(--surface-2); box-shadow: var(--shadow); }
.card-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.card:hover .card-art img { transform: scale(1.04); }
.card--artist .card-art { border-radius: 50%; }
.card-title { font-size: .98rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 4px; }
.card-sub { font-size: .84rem; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 3px; }
.card-sub a { position: relative; z-index: 2; }
.card-play {
    position: absolute; right: 10px; bottom: 10px; z-index: 2; width: 48px; height: 48px; border-radius: 50%;
    display: grid; place-items: center; background: var(--accent-grad); color: #fff; box-shadow: 0 8px 18px rgba(0, 0, 0, .4);
    opacity: 0; transform: translateY(8px); transition: opacity .2s, transform .25s var(--ease);
}
.card-play .icon { width: 22px; height: 22px; margin-left: 2px; }
.card:hover .card-play, .card-play:focus-visible, .quick-tile:hover .card-play { opacity: 1; transform: none; }
.card-play--sm { position: static; width: 38px; height: 38px; margin-right: 10px; flex: none; }
.card-play--sm .icon { width: 18px; height: 18px; }

.quick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; margin-top: 8px; }
.quick-tile {
    display: flex; align-items: center; gap: 14px; background: rgba(255, 255, 255, .06); border-radius: 10px; overflow: hidden;
    transition: background .2s; min-width: 0;
}
[data-theme="light"] .quick-tile { background: var(--surface); box-shadow: var(--shadow); }
.quick-tile:hover { background: rgba(255, 255, 255, .12); }
.quick-tile img { width: 64px; height: 64px; object-fit: cover; flex: none; }
.quick-tile a { flex: 1; font-weight: 700; font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.genre-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.genre-grid--lg { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.genre-tile {
    position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between;
    aspect-ratio: 16 / 9; padding: 16px; border-radius: var(--radius); color: #fff;
    background: linear-gradient(135deg, var(--genre), color-mix(in srgb, var(--genre) 40%, #000));
    transition: transform .25s var(--ease), box-shadow .25s;
}
.genre-tile::after { content: ""; position: absolute; right: -24px; bottom: -24px; width: 96px; height: 96px; border-radius: 22px; background: rgba(255, 255, 255, .18); transform: rotate(25deg); }
.genre-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); text-decoration: none; }
.genre-tile span { font-weight: 800; font-size: 1.15rem; }
.genre-tile small { opacity: .85; font-weight: 600; }

/* Detalle (canción, álbum, playlist) */
.detail-hero { display: flex; align-items: flex-end; gap: 28px; padding: 28px 0 22px; }
.detail-art { width: 232px; height: 232px; flex: none; border-radius: var(--radius); object-fit: cover; box-shadow: var(--shadow-lg); }
.detail-info { min-width: 0; }
.detail-info h1 { font-size: clamp(2rem, 5vw, 4.2rem); font-weight: 900; margin: 8px 0 12px; word-break: break-word; }
.detail-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; color: var(--text-2); font-size: .92rem; }
.detail-meta a, .detail-meta strong { color: var(--text); font-weight: 700; }
.avatar-xs { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.detail-actions { display: flex; align-items: center; gap: 16px; padding: 10px 0 18px; flex-wrap: wrap; }
.detail-hero--liked .detail-art { display: grid; }
.hero-actions { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.page-hero--genre { margin: 0 -28px; padding: 48px 28px 28px; background: linear-gradient(180deg, color-mix(in srgb, var(--genre) 55%, transparent), transparent); }
.page-hero--genre h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); font-weight: 900; }

.artist-hero {
    position: relative; margin: -8px -28px 0; min-height: 320px; display: flex; align-items: flex-end; padding: 28px;
    background: linear-gradient(180deg, rgba(13, 12, 20, .1), var(--bg-2)), var(--hero) center / cover;
}
.artist-hero::before { content: ""; position: absolute; inset: 0; backdrop-filter: blur(24px) brightness(.6); -webkit-backdrop-filter: blur(24px) brightness(.6); mask: linear-gradient(180deg, #000, transparent); }
.artist-hero-inner { position: relative; display: flex; align-items: flex-end; gap: 26px; color: #fff; }
.artist-hero h1 { font-size: clamp(2.4rem, 6vw, 5rem); font-weight: 900; margin: 6px 0 10px; text-shadow: 0 4px 24px rgba(0, 0, 0, .4); }
.artist-hero .detail-meta { color: rgba(255, 255, 255, .85); }
.artist-avatar { width: 200px; height: 200px; border-radius: 50%; object-fit: cover; box-shadow: var(--shadow-lg); border: 4px solid rgba(255, 255, 255, .1); }
.eyebrow--verified { color: #fff; }
.about-card { background: var(--surface-2); border-radius: var(--radius-lg); padding: 24px; max-width: 820px; }
.bio { color: var(--text-2); white-space: pre-line; margin-top: 12px; }

/* Lista de canciones */
.tracklist { --cols: 48px minmax(0, 1.6fr) minmax(0, 1fr) 40px 56px 40px; margin-top: 4px; }
.tracklist--no-album { --cols: 48px minmax(0, 1fr) 40px 56px 40px; }
.track {
    display: grid; grid-template-columns: var(--cols); align-items: center; gap: 12px;
    padding: 6px 10px; border-radius: 10px; min-height: 56px; transition: background .12s;
}
.track:not(.track--head):hover, .track.is-selected { background: var(--surface-2); }
.track--head { min-height: 36px; color: var(--text-3); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; border-bottom: 1px solid var(--line); border-radius: 0; margin-bottom: 8px; }
.track--head .icon { width: 16px; height: 16px; }
.track-num { position: relative; display: grid; place-items: center; color: var(--text-3); font-variant-numeric: tabular-nums; }
.track-play, .track-num .eq { display: none; }
.track:hover .num { display: none; }
.track:hover .track-play { display: grid; color: var(--text); }
.track-play .icon { width: 16px; height: 16px; }
.track.is-current .track-title { color: var(--accent); }
.track.is-current .num { display: none; }
.track.is-current .eq { display: flex; }
.track.is-current:hover .eq { display: none; }
.eq { gap: 2px; align-items: flex-end; height: 14px; }
.eq i { width: 3px; background: var(--accent); border-radius: 2px; animation: eq 1s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -.3s; }
.eq i:nth-child(3) { animation-delay: -.6s; }
body:not(.is-playing) .eq i { animation-play-state: paused; height: 4px; }
@keyframes eq { 0%, 100% { height: 4px; } 50% { height: 14px; } }
.track-main { display: flex; align-items: center; gap: 12px; min-width: 0; }
.track-main img { width: 40px; height: 40px; border-radius: 6px; object-fit: cover; flex: none; }
.track-text { display: flex; flex-direction: column; min-width: 0; }
.track-title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track-artist, .col-album { color: var(--text-2); font-size: .86rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track-artist a:hover, .col-album a:hover { color: var(--text); }
.track-dur { color: var(--text-3); font-size: .86rem; text-align: right; font-variant-numeric: tabular-nums; }
.track .like-btn { opacity: 0; }
.track:hover .like-btn, .track .like-btn.is-active { opacity: 1; }
.track .icon-btn { opacity: 0; }
.track:hover .icon-btn, .track .icon-btn:focus-visible { opacity: 1; }
.badge-e { display: inline-grid; place-items: center; width: 16px; height: 16px; font-size: .62rem; border-radius: 3px; background: var(--text-3); color: var(--bg); margin-left: 6px; vertical-align: 2px; }
.track-text .badge-e { display: none; }
.track[draggable="true"] { cursor: grab; }
.track.is-dragging { opacity: .4; }
.track.drop-before { box-shadow: inset 0 2px 0 var(--accent); }
.track.drop-after { box-shadow: inset 0 -2px 0 var(--accent); }
.hint { display: flex; align-items: center; gap: 6px; color: var(--text-3); font-size: .82rem; margin-bottom: 4px; }
.hint .icon { width: 16px; height: 16px; }

/* Tabs, vacío, paginación */
.tabs { display: flex; gap: 8px; margin-bottom: 22px; flex-wrap: wrap; }
.tab { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 999px; background: var(--surface-2); font-weight: 600; font-size: .9rem; }
.tab small { color: var(--text-3); }
.tab:hover { text-decoration: none; background: var(--surface-3); }
.tab.is-active { background: var(--text); color: var(--bg); }
.tab.is-active small { color: var(--bg); opacity: .7; }
.empty { text-align: center; padding: 64px 20px; max-width: 460px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.empty-icon { width: 56px; height: 56px; color: var(--text-3); margin-bottom: 6px; }
.empty h3 { font-size: 1.3rem; }
.empty p { color: var(--text-2); margin-bottom: 10px; }
.pager { display: flex; justify-content: center; gap: 12px; margin-top: 28px; }
.card--liked { display: block; }
.card--liked:hover { text-decoration: none; }

/* Búsqueda */
.search-hero {
    display: flex; align-items: center; gap: 14px; margin: 18px 0 8px; height: 60px; padding: 0 22px;
    background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; max-width: 720px;
}
.search-hero:focus-within { border-color: var(--accent-2); }
.search-hero input { flex: 1; background: none; border: 0; outline: 0; font-size: 1.15rem; min-width: 0; }
.search-hero .icon { width: 24px; height: 24px; color: var(--text-3); }
.search-hero input::-webkit-search-cancel-button { filter: grayscale(1); }

/* ==========================================================================
   Formularios, paneles, alertas
   ========================================================================== */
.form { display: flex; flex-direction: column; gap: 16px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: .85rem; font-weight: 600; color: var(--text-2); }
.field small { color: var(--text-3); font-size: .78rem; }
.field input, .field select, .field textarea, .input {
    width: 100%; height: 44px; padding: 0 14px; background: var(--surface-2); border: 1px solid var(--line-2);
    border-radius: var(--radius-sm); outline: none; transition: border-color .15s, background .15s;
}
.field textarea { height: auto; padding: 10px 14px; resize: vertical; }
.field input[type="file"] { padding: 9px 12px; }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus { border-color: var(--accent-2); background: var(--surface-3); }
.field-error { color: var(--danger); font-style: normal; font-size: .82rem; }
.field.has-error input { border-color: var(--danger); }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--text-2); }
.check input { margin-top: 3px; accent-color: var(--accent); }

.switch { display: flex; align-items: center; gap: 14px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch-ui { flex: none; width: 46px; height: 26px; border-radius: 999px; background: var(--surface-3); position: relative; transition: background .2s; }
.switch-ui::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s var(--ease); }
.switch input:checked + .switch-ui { background: var(--accent-grad); }
.switch input:checked + .switch-ui::after { transform: translateX(20px); }
.switch input:focus-visible + .switch-ui { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.switch strong { display: block; font-size: .95rem; }
.switch small { color: var(--text-3); font-size: .82rem; }
.segmented { display: flex; gap: 4px; border: 0; padding: 4px; margin: 0; background: var(--surface-2); border-radius: 999px; width: fit-content; }
.segmented legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.segmented label { cursor: pointer; }
.segmented input { position: absolute; opacity: 0; }
.segmented span { display: block; padding: 7px 16px; border-radius: 999px; font-weight: 600; font-size: .88rem; color: var(--text-2); }
.segmented input:checked + span { background: var(--text); color: var(--bg); }
.segmented input:focus-visible + span { outline: 2px solid var(--accent-2); }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; }
.panel h2 { font-size: 1.15rem; margin-bottom: 16px; }
.panel--danger { border-color: color-mix(in srgb, var(--danger) 40%, transparent); }
.settings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 18px; margin-top: 24px; align-items: start; }
.profile-hero { display: flex; align-items: flex-end; gap: 26px; padding: 28px 0 8px; }
.profile-hero h1 { font-size: clamp(2rem, 5vw, 3.6rem); font-weight: 900; margin: 6px 0 10px; }
.avatar-edit { position: relative; width: 160px; height: 160px; border-radius: 50%; overflow: hidden; flex: none; cursor: pointer; box-shadow: var(--shadow-lg); }
.avatar-edit img { width: 100%; height: 100%; object-fit: cover; }
.avatar-edit span { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; background: rgba(0, 0, 0, .55); color: #fff; font-weight: 700; opacity: 0; transition: opacity .2s; }
.avatar-edit:hover span, .avatar-edit:focus-within span { opacity: 1; }
.device-list { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.device-list li { display: flex; gap: 12px; align-items: center; }
.device-list span { display: flex; flex-direction: column; }
.device-list small { color: var(--text-3); }

.alert { padding: 12px 16px; border-radius: var(--radius-sm); font-size: .9rem; margin-bottom: 14px; border: 1px solid transparent; }
.alert a { text-decoration: underline; }
.alert-error { background: color-mix(in srgb, var(--danger) 14%, transparent); border-color: color-mix(in srgb, var(--danger) 40%, transparent); color: color-mix(in srgb, var(--danger) 70%, var(--text)); }
.alert-success { background: color-mix(in srgb, var(--ok) 14%, transparent); border-color: color-mix(in srgb, var(--ok) 40%, transparent); }
.alert-info { background: color-mix(in srgb, var(--info) 12%, transparent); border-color: color-mix(in srgb, var(--info) 35%, transparent); }
.alert-warn { background: color-mix(in srgb, var(--warn) 14%, transparent); border-color: color-mix(in srgb, var(--warn) 40%, transparent); }

/* ==========================================================================
   Toasts, menú contextual, modales, skeletons
   ========================================================================== */
.toasts { position: fixed; left: 50%; bottom: calc(var(--player-h) + var(--mobile-nav-h) + 16px); transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast {
    display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 12px; background: var(--text); color: var(--bg);
    font-weight: 600; font-size: .9rem; box-shadow: var(--shadow-lg); animation: toastIn .3s var(--ease); pointer-events: auto; max-width: 90vw;
}
.toast--error { background: var(--danger); color: #fff; }
.toast.is-leaving { animation: toastOut .25s forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px) scale(.96); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(8px); } }

.ctx-menu {
    position: fixed; z-index: 90; min-width: 230px; max-width: 300px; max-height: 70vh; overflow-y: auto; padding: 6px;
    background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--radius); box-shadow: var(--shadow-lg); animation: fadeUp .15s var(--ease);
}
.ctx-menu button, .ctx-menu a { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border-radius: 8px; font-size: .9rem; text-align: left; }
.ctx-menu button:hover, .ctx-menu a:hover { background: var(--surface-3); text-decoration: none; }
.ctx-menu hr { border: 0; border-top: 1px solid var(--line); margin: 4px 0; }
.ctx-menu .ctx-label { padding: 8px 12px 4px; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); }

.modal-backdrop { position: fixed; inset: 0; z-index: 95; background: rgba(5, 4, 10, .6); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 16px; animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.modal { width: min(520px, 100%); max-height: 90vh; overflow-y: auto; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); animation: modalIn .25s var(--ease); }
.modal--wide { width: min(820px, 100%); }
@keyframes modalIn { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 20px 22px 6px; }
.modal-head h2 { font-size: 1.2rem; }
.modal-body { padding: 14px 22px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 8px 22px 22px; }

.skeleton { position: relative; overflow: hidden; background: var(--surface-2); border-radius: 10px; }
.skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .06), transparent); animation: shimmer 1.3s infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }
.sk-title { height: 38px; width: 40%; margin: 28px 0 22px; }
.sk-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(158px, 1fr); gap: 18px; overflow: hidden; }
.sk-card { aspect-ratio: 1; border-radius: 12px; }
.sk-line { height: 14px; margin-top: 10px; width: 70%; }
.sk-track { height: 52px; margin-bottom: 8px; }

/* ==========================================================================
   Navegación móvil
   ========================================================================== */
.mobile-nav { display: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1180px) {
    :root { --sidebar-w: 84px; }
    .brand span, .side-nav span, .side-playlists header h2, .side-pl span { display: none; }
    .brand { justify-content: center; padding: 20px 0 14px; }
    .side-nav a { justify-content: center; }
    .side-playlists header { justify-content: center; }
    .side-pl { justify-content: center; }
    .queue-panel { position: fixed; right: 8px; top: 8px; bottom: calc(var(--player-h) + 8px); z-index: 45; box-shadow: var(--shadow-lg); }
    .tracklist { --cols: 40px minmax(0, 1fr) 40px 52px 36px; }
    .tracklist .col-album { display: none; }
}

@media (max-width: 820px) {
    :root { --player-h: 66px; --mobile-nav-h: calc(62px + env(safe-area-inset-bottom)); }
    .shell { grid-template-columns: minmax(0, 1fr); padding: 0; gap: 0; }
    .sidebar { display: none; }
    .main-wrap { border-radius: 0; border: 0; }
    .topbar { padding: 0 14px; gap: 10px; height: 58px; }
    .topbar-nav { display: none; }
    .top-search { height: 40px; }
    .user-chip span, .user-chip .icon { display: none; }
    .user-chip { padding: 2px; }
    .page { padding: 4px 16px 32px; }
    .page-hero--genre, .artist-hero { margin-left: -16px; margin-right: -16px; }

    .mobile-nav {
        display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 41; height: var(--mobile-nav-h);
        padding-bottom: env(safe-area-inset-bottom); background: color-mix(in srgb, var(--bg) 92%, transparent);
        backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--line);
    }
    .mobile-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: .7rem; font-weight: 600; color: var(--text-3); }
    .mobile-nav a.is-active { color: var(--text); }
    .mobile-nav a.is-active .icon { color: var(--accent); }
    .mobile-nav a:hover { text-decoration: none; }
    .mobile-nav .icon { width: 24px; height: 24px; }

    /* Reproductor compacto */
    .player {
        left: 8px; right: 8px; bottom: calc(var(--mobile-nav-h) + 6px); height: 60px; border-radius: 12px;
        grid-template-columns: minmax(0, 1fr) auto; padding: 0 8px 0 6px; gap: 6px;
        background: color-mix(in srgb, var(--surface-3) 94%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
        box-shadow: var(--shadow); overflow: hidden;
    }
    .player[data-state="empty"] { display: none; }
    .player-art img { width: 46px; height: 46px; }
    .player-center { flex-direction: row; }
    .player-controls .ctrl:not(.ctrl-main), .player-progress, .player-extra { display: none; }
    .player-controls { gap: 4px; }
    .player .ctrl-main { background: none; color: var(--text); width: 40px; height: 40px; }
    .player .ctrl-main .icon { width: 24px; height: 24px; }
    .player .like-btn { order: 0; }
    .mini-progress { display: block; position: absolute; left: 10px; right: 10px; bottom: 0; height: 2px; background: var(--line); border-radius: 2px; }
    .mini-progress div { height: 100%; width: 0; background: var(--text); border-radius: 2px; }
    .toasts { bottom: calc(var(--mobile-nav-h) + 80px); }
    .shell { height: 100dvh; }
    .main { padding-bottom: calc(var(--mobile-nav-h) + 72px); }

    .queue-panel { position: fixed; inset: 0; width: auto; z-index: 70; border-radius: 0; bottom: 0; }

    .detail-hero, .profile-hero { flex-direction: column; align-items: flex-start; gap: 18px; padding-top: 16px; }
    .detail-art { width: min(64vw, 260px); height: auto; aspect-ratio: 1; align-self: center; }
    .detail-hero--liked .detail-art { width: min(64vw, 260px); }
    .artist-hero { min-height: 260px; padding: 20px 16px; }
    .artist-hero-inner { flex-direction: column; align-items: flex-start; gap: 14px; }
    .artist-avatar { width: 120px; height: 120px; }
    .tracklist { --cols: 32px minmax(0, 1fr) 36px 36px; }
    .track { gap: 8px; padding: 6px 4px; }
    .track-dur, .track--head { display: none; }
    .track .like-btn, .track .icon-btn { opacity: 1; }
    .track .like-btn:not(.is-active) { display: none; }
    .tracklist .track { grid-template-columns: 32px minmax(0, 1fr) auto 36px; }
    .shelf-row { grid-auto-columns: 42%; gap: 12px; }
    .card { padding: 6px; }
    .card-play { opacity: 1; transform: none; width: 40px; height: 40px; }
    .quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .quick-tile img { width: 52px; height: 52px; }
    .quick-tile .card-play { display: none; }
    .settings-grid { grid-template-columns: 1fr; }
    .avatar-edit { width: 120px; height: 120px; }
    .search-hero { height: 52px; }
}

@media (min-width: 821px) {
    .fullplayer { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ==========================================================================
   Páginas de acceso (login, registro, instalador) y portada
   ========================================================================== */
.auth-page { min-height: 100vh; background: radial-gradient(80% 60% at 10% 0%, rgba(255, 94, 126, .18), transparent 60%), radial-gradient(70% 60% at 100% 100%, rgba(139, 92, 246, .22), transparent 60%), var(--bg); }
.auth-shell { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 16px; gap: 24px; }
.auth-shell--wide .auth-card { width: min(760px, 100%); }
.auth-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.5rem; letter-spacing: -.03em; }
.auth-brand:hover { text-decoration: none; }
.auth-card { width: min(440px, 100%); background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(20px); border: 1px solid var(--line-2); border-radius: 24px; padding: 34px; box-shadow: var(--shadow-lg); }
.auth-card h1 { font-size: 1.7rem; font-weight: 800; margin-bottom: 6px; }
.auth-card > .muted { margin-bottom: 22px; }
.auth-card .form > .muted { margin-top: 10px; font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; }
.auth-alt { text-align: center; color: var(--text-2); margin-top: 20px; font-size: .92rem; }
.auth-alt a { color: var(--text); font-weight: 700; text-decoration: underline; }

.check-list { list-style: none; padding: 0; margin: 0 0 22px; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 6px 16px; }
.check-list li { position: relative; padding: 8px 10px 8px 34px; border-radius: 10px; background: var(--surface-2); font-size: .88rem; }
.check-list li::before { content: ""; position: absolute; left: 11px; top: 13px; width: 12px; height: 12px; border-radius: 50%; background: var(--ok); }
.check-list li.fail::before { background: var(--danger); }
.check-list li.warn::before { background: var(--warn); }
.check-list strong { display: block; }
.check-list small { color: var(--text-3); }

.landing { min-height: 100vh; display: flex; flex-direction: column; }
.landing-nav { display: flex; align-items: center; justify-content: space-between; padding: 22px clamp(16px, 5vw, 64px); }
.landing-nav nav { display: flex; gap: 10px; }
.hero { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 40px; padding: 40px clamp(16px, 5vw, 64px) 60px; flex: 1; overflow: hidden; }
.hero-orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .5; pointer-events: none; }
.hero-orb--a { width: 420px; height: 420px; background: #ff5e7e; left: -120px; top: -80px; }
.hero-orb--b { width: 480px; height: 480px; background: #8b5cf6; right: -140px; bottom: -160px; }
.hero-copy { position: relative; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); font-weight: 900; letter-spacing: -.04em; margin: 12px 0 20px; }
.lead { font-size: 1.15rem; color: var(--text-2); max-width: 560px; }
.hero-cta { display: flex; gap: 12px; margin: 30px 0; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 32px; list-style: none; padding: 0; margin: 0; }
.hero-stats strong { display: block; font-size: 1.6rem; font-weight: 800; }
.hero-stats span { color: var(--text-3); font-size: .85rem; }
.hero-visual { position: relative; display: grid; place-items: center; min-height: 380px; }
.vinyl { width: min(380px, 80vw); aspect-ratio: 1; border-radius: 50%; background: repeating-radial-gradient(circle, #15131f 0 2px, #1d1a2a 3px 5px); box-shadow: var(--shadow-lg), inset 0 0 0 10px #0d0c14; display: grid; place-items: center; animation: spin 14s linear infinite; }
.vinyl-label { width: 36%; aspect-ratio: 1; border-radius: 50%; background: var(--accent-grad); box-shadow: inset 0 0 0 10px rgba(0, 0, 0, .2); position: relative; }
.vinyl-label::after { content: ""; position: absolute; inset: 44%; border-radius: 50%; background: var(--bg); }
.wave { position: absolute; bottom: 10px; display: flex; gap: 5px; align-items: flex-end; height: 70px; }
.wave i { width: 6px; border-radius: 4px; background: var(--accent-grad); animation: eq 1.2s ease-in-out infinite; animation-delay: calc(var(--i) * -0.09s); }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; padding: 0 clamp(16px, 5vw, 64px) 60px; }
.features article { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; }
.features .icon { width: 30px; height: 30px; color: var(--accent); margin-bottom: 12px; }
.features h3 { font-size: 1.1rem; margin-bottom: 6px; }
.features p { color: var(--text-2); font-size: .92rem; }
.landing-foot { padding: 24px; text-align: center; color: var(--text-3); font-size: .85rem; }
@media (max-width: 860px) {
    .hero { grid-template-columns: 1fr; }
    .hero-visual { min-height: 260px; order: -1; }
    .vinyl { width: 220px; }
    .landing-nav .btn-ghost { display: none; }
}
