/* Cybroxa FM — interface */
:root {
    color-scheme: dark;
    --bg: #070b12;
    --bg-soft: #0a101a;
    --surface: #0f1826;
    --surface-2: #132032;
    --surface-3: #18273b;
    --line: rgba(180, 205, 235, 0.1);
    --line-strong: rgba(190, 215, 245, 0.18);
    --text: #f2f6fb;
    --muted: #93a6bf;
    --muted-2: #6d8099;
    --lime: #c8ff63;
    --lime-2: #a9eb3e;
    --cyan: #66dcff;
    --violet: #b29cff;
    --orange: #ffb36b;
    --pink: #ff8fa9;
    --danger: #ff7187;
    --danger-soft: rgba(255, 113, 135, 0.12);
    --success: #7ee7a8;
    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
    --font: "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
    --mono: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    overflow-x: clip;
    overscroll-behavior-x: none;
}

body {
    margin: 0;
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
    background:
        radial-gradient(1200px 700px at 8% -10%, rgba(200, 255, 99, 0.075), transparent 55%),
        radial-gradient(1000px 650px at 96% 8%, rgba(102, 220, 255, 0.06), transparent 55%),
        var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    overflow-x: clip;
    overscroll-behavior-x: none;
}

body.nav-open { overflow: hidden; }

::selection { background: var(--lime); color: #0a1104; }

button, input, textarea { font: inherit; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.035em; }
p { color: var(--muted); }
code {
    font-family: var(--mono);
    font-size: 0.87em;
    color: #cfe0f3;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 1px 5px;
}

[hidden] { display: none !important; }

:focus-visible {
    outline: 2px solid var(--lime);
    outline-offset: 3px;
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #243247; border-radius: 20px; border: 2px solid var(--bg); }

.container {
    width: min(1180px, calc(100% - 48px));
    margin-inline: auto;
}

.icon { flex: 0 0 auto; }

.page-aurora {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}
.page-aurora::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(to bottom, black, transparent 70%);
}
.page-aurora i {
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.22;
}
.page-aurora i:nth-child(1) { background: #c8ff63; top: -240px; left: -160px; }
.page-aurora i:nth-child(2) { background: #4a7dff; top: 10%; right: -260px; opacity: 0.15; }
.page-aurora i:nth-child(3) { background: #ff8a5c; bottom: -300px; left: 32%; opacity: 0.07; }

.skip-link {
    position: fixed;
    z-index: 1000;
    top: 12px;
    left: 12px;
    transform: translateY(-160%);
    background: var(--lime);
    color: #0a1104;
    padding: 10px 16px;
    border-radius: 10px;
    font-weight: 800;
}
.skip-link:focus { transform: none; }

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.gradient-text {
    background: linear-gradient(100deg, var(--lime) 5%, #e7ff9f 40%, var(--cyan) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}
.dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--muted);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.045);
}
.dot--lime { background: var(--lime); box-shadow: 0 0 0 4px rgba(200, 255, 99, 0.1), 0 0 18px rgba(200, 255, 99, 0.7); }

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 850;
    font-size: 19px;
    letter-spacing: -0.04em;
    white-space: nowrap;
}
.brand-mark {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 11px;
    background: linear-gradient(145deg, var(--lime), #8fd42a);
    color: #0a1403;
    box-shadow: 0 8px 24px rgba(200, 255, 99, 0.18);
}
.brand-mark svg { width: 25px; height: 25px; }
.brand-name span { color: var(--lime); }
.brand--light .brand-name { color: #fff; }
.brand--muted { opacity: 0.8; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 11px 18px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-weight: 750;
    font-size: 14px;
    line-height: 1.2;
    cursor: pointer;
    transition: transform 0.18s var(--ease), background 0.18s, border-color 0.18s, box-shadow 0.18s, opacity 0.18s;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { cursor: not-allowed; opacity: 0.45; transform: none; }
.btn--primary {
    background: linear-gradient(135deg, #d5ff82, var(--lime) 45%, #b3f344);
    color: #0b1304;
    box-shadow: 0 10px 30px rgba(200, 255, 99, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}
.btn--primary:hover { box-shadow: 0 14px 36px rgba(200, 255, 99, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.55); }
.btn--ghost {
    background: rgba(255, 255, 255, 0.035);
    border-color: var(--line-strong);
    color: var(--text);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.075); border-color: rgba(200, 255, 99, 0.35); }
.btn--danger { background: var(--danger); color: #26040b; }
.btn--danger:hover { background: #ff8c9e; }
.btn--sm { min-height: 36px; padding: 8px 13px; border-radius: 10px; font-size: 13px; }
.btn--lg { min-height: 50px; padding: 14px 22px; border-radius: 13px; font-size: 15px; }
.btn--full { width: 100%; }

.icon-btn {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.035);
    color: var(--muted);
    cursor: pointer;
    transition: color 0.18s, background 0.18s, border-color 0.18s;
}
.icon-btn:hover { color: var(--text); background: rgba(255, 255, 255, 0.08); border-color: var(--line-strong); }
.icon-btn--danger:hover { color: var(--danger); background: var(--danger-soft); border-color: rgba(255, 113, 135, 0.25); }

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--lime);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }

.chip {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(200, 255, 99, 0.08);
    border: 1px solid rgba(200, 255, 99, 0.18);
    color: #d9ff92;
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
}
.count-badge {
    display: inline-grid;
    place-items: center;
    min-width: 26px;
    height: 24px;
    margin-left: 6px;
    padding: 0 8px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.07);
    color: var(--muted);
    font-size: 12px;
    letter-spacing: 0;
    vertical-align: 4px;
}

/* Toasts */
.toast-stack {
    position: fixed;
    z-index: 300;
    top: 18px;
    right: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: min(370px, calc(100% - 32px));
    pointer-events: none;
}
.toast {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 13px 14px;
    border: 1px solid var(--line-strong);
    border-left: 3px solid var(--muted);
    border-radius: 12px;
    background: rgba(15, 24, 38, 0.96);
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(18px);
    pointer-events: auto;
    animation: toast-in 0.4s var(--ease);
}
.toast--success { border-left-color: var(--success); }
.toast--error { border-left-color: var(--danger); }
.toast--warning { border-left-color: var(--orange); }
.toast--info { border-left-color: var(--cyan); }
.toast-icon { color: var(--muted); margin-top: 1px; }
.toast--success .toast-icon { color: var(--success); }
.toast--error .toast-icon { color: var(--danger); }
.toast--warning .toast-icon { color: var(--orange); }
.toast--info .toast-icon { color: var(--cyan); }
.toast-text { flex: 1; font-size: 13px; line-height: 1.5; color: #dce8f5; }
.toast-close { flex: 0 0 auto; border: 0; background: transparent; color: var(--muted-2); cursor: pointer; padding: 2px; }
.toast-close:hover { color: var(--text); }
.toast.is-leaving { opacity: 0; transform: translateX(12px); transition: 0.25s; }

.browser-note {
    position: fixed;
    z-index: 400;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    width: min(480px, calc(100% - 32px));
    padding: 12px 16px;
    border: 1px solid rgba(255, 179, 107, 0.35);
    border-radius: 10px;
    background: #23180f;
    color: #ffd6ad;
    font-size: 13px;
    text-align: center;
}

@keyframes toast-in { from { opacity: 0; transform: translateY(-8px) scale(0.98); } }

/* Site header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid transparent;
    background: rgba(7, 11, 18, 0.7);
    backdrop-filter: blur(20px);
}
.site-header::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--line), transparent);
}
.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    min-height: 76px;
}
.site-nav {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-left: auto;
}
.site-nav a {
    color: var(--muted);
    font-size: 13px;
    font-weight: 650;
    transition: color 0.18s;
}
.site-nav a:hover { color: var(--text); }
.site-actions { display: flex; align-items: center; gap: 14px; }
.nav-signin { color: #dbe6f3; font-size: 13px; font-weight: 700; }
.nav-signin:hover { color: var(--lime); }
.nav-toggle { display: none; }

/* Hero */
.site-main { overflow: hidden; }
.hero {
    position: relative;
    padding: 74px 0 84px;
}
.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(380px, 0.98fr);
    gap: clamp(36px, 6vw, 84px);
    align-items: center;
}
.hero-copy { animation: rise 0.7s var(--ease) both; }
.hero h1 {
    margin: 22px 0 22px;
    font-size: clamp(48px, 6.2vw, 78px);
    font-weight: 850;
    letter-spacing: -0.06em;
    line-height: 0.98;
}
.hero-sub {
    max-width: 540px;
    margin-bottom: 24px;
    font-size: 17px;
    line-height: 1.7;
}
.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 9px 18px;
    margin-bottom: 30px;
}
.hero-tags span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #c8d6e6;
    font-size: 12px;
    font-weight: 600;
}
.hero-tags .icon { color: var(--lime); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    color: var(--muted-2);
    font-size: 12px;
}
.mini-clock { color: var(--orange); display: inline-flex; }
.hero-upload { animation: rise 0.7s 0.12s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

/* Upload panel */
.upload-panel {
    position: relative;
    padding: 24px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(500px 280px at 95% -20%, rgba(200, 255, 99, 0.09), transparent 65%),
        linear-gradient(160deg, rgba(20, 32, 50, 0.96), rgba(9, 15, 24, 0.98));
    box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.045);
    scroll-margin-top: 100px;
}
.upload-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 16px;
}
.upload-panel-head h2 { margin: 7px 0 6px; font-size: 24px; }
.upload-panel-head p { margin: 0; font-size: 12px; line-height: 1.55; }
.upload-secure {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 3px;
    padding: 5px 8px;
    border-radius: 6px;
    border: 1px solid var(--line);
    color: var(--muted);
    background: rgba(255, 255, 255, 0.03);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.upload-secure .icon { color: var(--lime); }

.dropzone {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 292px;
    padding: 34px 24px;
    border: 1.5px dashed rgba(200, 255, 99, 0.28);
    border-radius: 19px;
    background:
        radial-gradient(280px 160px at 50% 110%, rgba(200, 255, 99, 0.08), transparent),
        rgba(5, 10, 17, 0.45);
    cursor: pointer;
    overflow: hidden;
    text-align: center;
    transition: border-color 0.22s, background 0.22s, transform 0.22s var(--ease);
}
.dropzone:hover { border-color: rgba(200, 255, 99, 0.6); background-color: rgba(200, 255, 99, 0.025); }
.dropzone.is-dragging {
    border-color: var(--lime);
    background: rgba(200, 255, 99, 0.075);
    transform: scale(1.008);
}
.drop-rings { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.drop-rings i {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 150px;
    height: 150px;
    border: 1px solid rgba(200, 255, 99, 0.08);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}
.drop-rings i:nth-child(2) { width: 250px; height: 250px; border-color: rgba(102, 220, 255, 0.06); }
.drop-rings i:nth-child(3) { width: 370px; height: 370px; border-color: rgba(255, 255, 255, 0.035); }
.drop-icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    margin-bottom: 18px;
    border-radius: 17px;
    background: linear-gradient(145deg, rgba(200, 255, 99, 0.16), rgba(200, 255, 99, 0.04));
    border: 1px solid rgba(200, 255, 99, 0.25);
    color: var(--lime);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.24);
}
.dropzone strong { font-size: 17px; font-weight: 750; letter-spacing: -0.02em; }
.drop-sub { margin-top: 5px; font-size: 13px; color: var(--muted); }
.drop-sub u { color: var(--lime); text-decoration-color: rgba(200, 255, 99, 0.4); text-underline-offset: 3px; }
.drop-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 14px;
    margin-top: 21px;
    color: var(--muted-2);
    font-family: var(--mono);
    font-size: 9.5px;
    letter-spacing: 0.02em;
}
.drop-meta span { display: inline-flex; align-items: center; gap: 5px; }
.drop-meta span + span::before { content: "·"; margin-right: 9px; color: #3d4d63; }

.upload-foot {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    margin-top: 14px;
    color: var(--muted-2);
    font-size: 11px;
    line-height: 1.5;
}
.upload-foot a { color: var(--lime); font-weight: 700; }
.upload-foot a:hover { text-decoration: underline; }

.upload-queue {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-top: 13px;
    padding-top: 13px;
    border-top: 1px solid var(--line);
}
.upload-task {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.task-state {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
}
.upload-task.is-active .task-state { color: var(--lime); background: rgba(200, 255, 99, 0.12); }
.upload-task.is-done .task-state { color: #0b1304; background: var(--lime); }
.upload-task.is-error .task-state { color: #23060c; background: var(--danger); }
.upload-task:not(.is-done):not(.is-error) .task-state::before { content: "↑"; }
.upload-task.is-done .task-state::before { content: "✓"; }
.upload-task.is-error .task-state::before { content: "!"; }
.task-body { flex: 1; min-width: 0; }
.task-top { display: flex; justify-content: space-between; gap: 8px; }
.task-name { overflow: hidden; font-size: 11.5px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.task-pct { flex: 0 0 auto; color: var(--muted); font-family: var(--mono); font-size: 10px; }
.task-track { height: 3px; margin: 6px 0 4px; border-radius: 3px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.task-bar { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--lime-2), var(--lime), var(--cyan)); transition: width 0.2s linear; }
.upload-task.is-error .task-bar { background: var(--danger); }
.task-meta { display: flex; justify-content: space-between; gap: 10px; color: var(--muted-2); font-size: 9.5px; }
.task-status { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task-size { flex: 0 0 auto; }

/* Alerts */
.inline-alert {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin: 18px 0 0;
    padding: 13px 16px;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.035);
}
.inline-alert--success { border-color: rgba(126, 231, 168, 0.2); background: rgba(126, 231, 168, 0.055); }
.inline-alert-icon { color: var(--success); margin-top: 1px; }
.inline-alert strong { display: block; font-size: 13px; color: var(--text); }
.inline-alert span { display: block; color: var(--muted); font-size: 12px; }

/* Track lists */
.guest-library { padding: 68px 0 8px; }
.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 20px;
}
.section-head h2 { margin: 7px 0 5px; font-size: clamp(27px, 3vw, 36px); }
.section-head p { margin: 0; font-size: 13px; }
.section-head--center { justify-content: center; text-align: center; }
.section-head--center p { max-width: 480px; margin-inline: auto; }
.track-list { display: flex; flex-direction: column; gap: 8px; }
.track-row {
    display: grid;
    grid-template-columns: minmax(240px, 1.45fr) minmax(170px, 0.75fr) 120px auto;
    align-items: center;
    gap: 18px;
    padding: 13px 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(15, 24, 38, 0.72);
    transition: border-color 0.18s, background 0.18s, transform 0.18s var(--ease);
}
.track-row:hover { border-color: rgba(200, 255, 99, 0.18); background: rgba(18, 29, 45, 0.9); }
.track-lead { display: flex; align-items: center; gap: 12px; min-width: 0; }
.track-play {
    --cover-a: #c8ff63;
    --cover-b: #173a33;
    position: relative;
    flex: 0 0 auto;
    width: 52px;
    height: 52px;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background:
        radial-gradient(circle at 26% 14%, var(--cover-a), transparent 55%),
        linear-gradient(145deg, var(--cover-b), #0a111c 78%);
    color: #fff;
    cursor: pointer;
    overflow: hidden;
}
.cover--0 { --cover-a: #c8ff63; --cover-b: #173a33; }
.cover--1 { --cover-a: #66dcff; --cover-b: #182b55; }
.cover--2 { --cover-a: #ffb36b; --cover-b: #4a2d1c; }
.cover--3 { --cover-a: #b29cff; --cover-b: #33265b; }
.cover--4 { --cover-a: #ff8fa9; --cover-b: #4a2231; }
.cover-bars {
    position: absolute;
    left: 9px;
    bottom: 8px;
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 12px;
    opacity: 0.65;
}
.cover-bars i { width: 2px; height: 35%; background: #fff; border-radius: 2px; }
.cover-bars i:nth-child(2) { height: 70%; }
.cover-bars i:nth-child(3) { height: 48%; }
.cover-bars i:nth-child(4) { height: 88%; }
.track-play.is-playing .cover-bars i { animation: eq 0.8s ease-in-out infinite alternate; }
.track-play.is-playing .cover-bars i:nth-child(2) { animation-delay: -0.3s; }
.track-play.is-playing .cover-bars i:nth-child(3) { animation-delay: -0.55s; }
.track-play.is-playing .cover-bars i:nth-child(4) { animation-delay: -0.15s; }
@keyframes eq { from { height: 25%; } to { height: 100%; } }
.play-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(4, 8, 13, 0.15);
    transition: background 0.18s;
}
.play-overlay .icon { filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.5)); }
.track-play:hover .play-overlay { background: rgba(4, 8, 13, 0.42); }
.track-title { min-width: 0; }
.track-title h3 {
    margin: 0 0 2px;
    overflow: hidden;
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: -0.01em;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.track-title p {
    margin: 0;
    overflow: hidden;
    color: var(--muted-2);
    font-family: var(--mono);
    font-size: 9.5px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.track-facts { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; color: var(--muted-2); font-size: 10px; }
.track-expiry {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--orange);
    font-size: 10.5px;
    font-weight: 600;
}
.track-actions { display: flex; align-items: center; justify-content: flex-end; gap: 4px; }
.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 31px;
    padding: 6px 8px;
    border: 1px solid transparent;
    border-radius: 7px;
    background: transparent;
    color: var(--muted);
    font-size: 10.5px;
    font-weight: 650;
    cursor: pointer;
    transition: color 0.15s, background 0.15s, border-color 0.15s;
}
.action-btn:hover { color: var(--text); background: rgba(255, 255, 255, 0.07); border-color: var(--line); }
.action-btn--copy { color: #d7ff90; background: rgba(200, 255, 99, 0.055); border-color: rgba(200, 255, 99, 0.12); }
.action-btn--copy:hover { color: #eaffc0; background: rgba(200, 255, 99, 0.1); border-color: rgba(200, 255, 99, 0.25); }
.action-btn--danger:hover { color: var(--danger); background: var(--danger-soft); border-color: rgba(255, 113, 135, 0.22); }
.session-note {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 12px 2px 0;
    color: var(--muted-2);
    font-size: 10.5px;
}

/* Features */
.feature-section { padding: 100px 0 50px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 30px; }
.feature-card {
    position: relative;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: linear-gradient(155deg, rgba(20, 32, 49, 0.82), rgba(10, 16, 25, 0.7));
    overflow: hidden;
    transition: transform 0.25s var(--ease), border-color 0.25s;
}
.feature-card::after {
    content: "";
    position: absolute;
    top: -60px; right: -60px;
    width: 160px; height: 160px;
    border-radius: 50%;
    background: rgba(200, 255, 99, 0.045);
    filter: blur(20px);
}
.feature-card:hover { transform: translateY(-4px); border-color: rgba(200, 255, 99, 0.2); }
.feature-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-bottom: 30px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.045);
}
.feature-icon--lime { color: var(--lime); background: rgba(200, 255, 99, 0.09); }
.feature-icon--blue { color: var(--cyan); background: rgba(102, 220, 255, 0.09); }
.feature-icon--orange { color: var(--orange); background: rgba(255, 179, 107, 0.09); }
.feature-card h3 { margin-bottom: 8px; font-size: 18px; }
.feature-card p { margin-bottom: 20px; font-size: 12.5px; line-height: 1.7; }
.feature-tag { color: var(--muted-2); font-family: var(--mono); font-size: 9.5px; }

/* How */
.how-section { padding: 50px 0 90px; }
.how-panel {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: clamp(30px, 6vw, 80px);
    padding: clamp(28px, 5vw, 56px);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-xl);
    background:
        radial-gradient(600px 300px at 13% 0%, rgba(102, 220, 255, 0.055), transparent 60%),
        linear-gradient(145deg, rgba(17, 27, 42, 0.9), rgba(8, 13, 21, 0.86));
}
.how-copy h2 { margin: 9px 0 16px; font-size: clamp(32px, 4vw, 48px); }
.how-copy p { font-size: 13.5px; line-height: 1.75; }
.how-copy .btn { margin-top: 10px; }
.steps { display: flex; flex-direction: column; gap: 0; margin: 0; padding: 0; list-style: none; }
.steps li {
    display: flex;
    gap: 18px;
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
}
.steps li:first-child { padding-top: 4px; }
.steps li:last-child { border-bottom: 0; padding-bottom: 4px; }
.step-num {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 37px;
    height: 37px;
    border: 1px solid rgba(200, 255, 99, 0.2);
    border-radius: 10px;
    color: var(--lime);
    background: rgba(200, 255, 99, 0.05);
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 700;
}
.steps strong { display: block; margin-bottom: 3px; font-size: 14px; }
.steps p { margin: 0; font-size: 12px; }

/* CTA */
.cta-band { padding: 0 0 90px; }
.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: clamp(28px, 4vw, 42px);
    border: 1px solid rgba(200, 255, 99, 0.16);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(550px 240px at 90% 10%, rgba(200, 255, 99, 0.11), transparent 65%),
        linear-gradient(145deg, #121d2c, #0a111a);
}
.cta-inner h2 { margin: 8px 0 6px; font-size: clamp(24px, 3vw, 32px); }
.cta-inner p { max-width: 570px; margin: 0; font-size: 13px; }

/* Site footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0; }
.site-footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.site-footer .brand { transform: scale(0.88); transform-origin: left center; }
.site-footer p, .site-footer span { margin: 0; color: var(--muted-2); font-size: 10.5px; }

/* App shell */
.app-shell { display: flex; min-height: 100vh; }
.sidebar {
    position: fixed;
    z-index: 120;
    inset: 0 auto 0 0;
    display: flex;
    flex-direction: column;
    width: 278px;
    padding: 22px 18px 18px;
    border-right: 1px solid var(--line);
    background: rgba(9, 15, 24, 0.92);
    backdrop-filter: blur(24px);
    overflow-y: auto;
}
.sidebar-head { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px 28px; }
.sidebar-close { display: none; }
.side-label {
    margin: 0 0 8px 10px;
    color: var(--muted-2);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}
.side-nav { display: flex; flex-direction: column; gap: 3px; }
.side-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 11px;
    border: 1px solid transparent;
    border-radius: 10px;
    color: var(--muted);
    font-size: 12.5px;
    font-weight: 600;
    transition: color 0.16s, background 0.16s, border-color 0.16s;
}
.side-link:hover { color: var(--text); background: rgba(255, 255, 255, 0.045); }
.side-link.is-active {
    color: #edffd1;
    background: linear-gradient(90deg, rgba(200, 255, 99, 0.11), rgba(200, 255, 99, 0.025));
    border-color: rgba(200, 255, 99, 0.15);
}
.side-link.is-active .icon { color: var(--lime); }
.sidebar-tip {
    margin-top: 30px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.025);
}
.tip-icon { display: inline-grid; place-items: center; width: 32px; height: 32px; margin-bottom: 12px; border-radius: 9px; color: var(--cyan); background: rgba(102, 220, 255, 0.08); }
.sidebar-tip strong { display: block; margin-bottom: 4px; font-size: 11.5px; }
.sidebar-tip p { margin: 0; color: var(--muted-2); font-size: 10.5px; line-height: 1.6; }
.sidebar-foot { margin-top: auto; padding-top: 20px; }
.side-user {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.025);
}
.avatar {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(145deg, rgba(200, 255, 99, 0.25), rgba(102, 220, 255, 0.12));
    border: 1px solid rgba(200, 255, 99, 0.25);
    color: #eaffc5;
    font-size: 14px;
    font-weight: 800;
}
.avatar--sm { flex: 0 0 auto; width: 34px; height: 34px; font-size: 12px; }
.side-user-copy { min-width: 0; flex: 1; }
.side-user-copy strong { display: block; overflow: hidden; font-size: 11.5px; text-overflow: ellipsis; white-space: nowrap; }
.side-user-copy span { display: flex; align-items: center; gap: 3px; overflow: hidden; color: var(--muted-2); font-family: var(--mono); font-size: 7.5px; text-overflow: ellipsis; white-space: nowrap; }
.logout-form { flex: 0 0 auto; }
.logout-form .icon-btn { width: 30px; height: 30px; border: 0; background: transparent; }
.mobile-scrim { display: none; }

.app-main { flex: 1; min-width: 0; margin-left: 278px; }
.topbar {
    position: sticky;
    top: 0;
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 72px;
    padding: 14px clamp(22px, 3vw, 38px);
    border-bottom: 1px solid var(--line);
    background: rgba(7, 11, 18, 0.76);
    backdrop-filter: blur(20px);
}
.topbar-left { display: flex; align-items: center; gap: 12px; }
.topbar-menu { display: none; }
.topbar-title { display: flex; flex-direction: column; line-height: 1.2; }
.topbar-title span { color: var(--muted-2); font-size: 9px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.topbar-title strong { margin-top: 2px; font-size: 14px; font-weight: 750; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 9px;
    border: 1px solid rgba(126, 231, 168, 0.16);
    border-radius: 20px;
    background: rgba(126, 231, 168, 0.055);
    color: #a9f5c6;
    font-size: 9.5px;
    font-weight: 700;
}
.status-pill i { width: 5px; height: 5px; border-radius: 50%; background: var(--success); box-shadow: 0 0 7px var(--success); }
.app-content { width: min(1140px, 100%); margin-inline: auto; padding: 38px clamp(22px, 3vw, 38px) 70px; }

/* Dashboard */
.dashboard-intro {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 28px;
}
.dashboard-intro h1 { margin: 8px 0 9px; font-size: clamp(31px, 4vw, 43px); }
.dashboard-intro p { max-width: 640px; margin: 0; font-size: 13px; }
.intro-actions { display: flex; flex-wrap: wrap; gap: 9px; flex: 0 0 auto; }
.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 9px;
    margin: 20px 0 18px;
}
.stat-card {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 76px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.024);
    min-width: 0;
}
.stat-icon {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    color: var(--lime);
    background: rgba(200, 255, 99, 0.08);
    line-height: 0;
}
.stat-icon .icon { display: block; }
.stat-icon--blue { color: var(--cyan); background: rgba(102, 220, 255, 0.08); }
.stat-icon--orange { color: var(--orange); background: rgba(255, 179, 107, 0.08); }
.stat-icon--violet { color: var(--violet); background: rgba(178, 156, 255, 0.08); }
.stat-card > div { display: flex; flex-direction: column; justify-content: center; gap: 2px; min-width: 0; }
.stat-card span { display: block; color: var(--muted-2); font-size: 9px; font-weight: 600; letter-spacing: 0.05em; line-height: 1.2; text-transform: uppercase; }
.stat-card strong {
    display: block;
    overflow: hidden;
    margin-top: 0;
    color: #e8f0fa;
    font-size: 15px;
    font-weight: 750;
    letter-spacing: -0.02em;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.stat-card--folder strong { font-family: var(--mono); font-size: 10px; font-weight: 500; color: var(--muted); }
.app-content .upload-panel { margin-top: 14px; padding: 22px; }
.app-content .dropzone { min-height: 236px; }
.app-content .upload-panel-head h2 { font-size: 21px; }
.library-section { scroll-margin-top: 90px; padding-top: 38px; }
.library-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 22px;
    margin-bottom: 15px;
}
.library-head h2 { margin: 5px 0 0; font-size: 27px; }
.library-tools { display: flex; align-items: center; gap: 7px; }
.search-box {
    display: flex;
    align-items: center;
    gap: 7px;
    width: 232px;
    height: 36px;
    padding: 0 9px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--muted-2);
    transition: border-color 0.18s, background 0.18s;
}
.search-box:focus-within { border-color: rgba(200, 255, 99, 0.35); background: rgba(200, 255, 99, 0.025); }
.search-box input {
    flex: 1;
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    font-size: 11.5px;
}
.search-box input::placeholder { color: var(--muted-2); }
.search-clear { display: grid; place-items: center; padding: 1px; border: 0; background: transparent; color: var(--muted-2); cursor: pointer; }
.track-list--library .track-row--library {
    grid-template-columns: minmax(230px, 1.3fr) minmax(160px, 0.72fr) minmax(170px, 0.9fr) auto;
    gap: 14px;
}
.track-link {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    padding: 5px 8px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.022);
    color: var(--muted-2);
    font-family: var(--mono);
    font-size: 8.5px;
}
.track-link span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.empty-state, .search-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 54px 24px;
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.018);
    text-align: center;
}
.empty-art {
    display: grid;
    place-items: center;
    width: 66px;
    height: 66px;
    margin-bottom: 18px;
    border-radius: 19px;
    border: 1px solid rgba(200, 255, 99, 0.18);
    background: rgba(200, 255, 99, 0.06);
    color: var(--lime);
}
.empty-state h3 { margin: 0 0 7px; font-size: 21px; }
.empty-state p { max-width: 420px; margin: 0 0 20px; font-size: 12.5px; }
.search-empty { gap: 10px; padding: 38px 20px; }
.search-empty span { color: var(--muted-2); }
.search-empty p { margin: 0; font-size: 12px; }
.links-help {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    padding: 17px 19px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(102, 220, 255, 0.035), rgba(255, 255, 255, 0.018));
}
.links-help-icon { flex: 0 0 auto; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; color: var(--cyan); background: rgba(102, 220, 255, 0.07); }
.links-help div { min-width: 0; }
.links-help h3 { margin: 0 0 2px; font-size: 12.5px; }
.links-help p { margin: 0; font-size: 10.5px; }
.links-help-tag { margin-left: auto; flex: 0 0 auto; padding: 4px 8px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted-2); font-family: var(--mono); font-size: 8px; }

/* Custom player */
.player-bar {
    position: fixed;
    z-index: 150;
    left: 50%;
    bottom: 18px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    width: min(760px, calc(100% - 36px));
    padding: 12px 14px;
    border: 1px solid var(--line-strong);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(19, 30, 47, 0.98), rgba(11, 18, 30, 0.98));
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(24px);
    transform: translateX(-50%);
    animation: player-in 0.35s var(--ease);
}
@keyframes player-in { from { opacity: 0; transform: translate(-50%, 14px); } }
.player-bar audio { display: none; }
.player-play {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--lime), #84c52c);
    color: #0b1304;
    cursor: pointer;
    box-shadow: 0 7px 20px rgba(200, 255, 99, 0.2);
    transition: transform 0.18s var(--ease), box-shadow 0.18s;
}
.player-play:hover { transform: translateY(-1px) scale(1.03); box-shadow: 0 9px 24px rgba(200, 255, 99, 0.28); }
.player-play:active { transform: scale(0.97); }
.player-play:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
.player-play-icon { display: grid; place-items: center; }
.player-play-icon[hidden] { display: none; }
.player-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.player-meta { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; min-width: 0; }
.player-copy { display: flex; align-items: baseline; gap: 8px; min-width: 0; overflow: hidden; }
.player-copy strong {
    min-width: 0;
    overflow: hidden;
    font-size: 12.5px;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.player-copy small { overflow: hidden; color: var(--muted-2); font-size: 9.5px; text-overflow: ellipsis; white-space: nowrap; }
.player-time { flex: 0 0 auto; color: var(--muted-2); font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.02em; white-space: nowrap; }
.player-seek {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 14px;
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    cursor: pointer;
}
.player-seek::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    border-radius: 99px;
    background: linear-gradient(
        90deg,
        var(--lime) 0%,
        #a8e545 var(--progress, 0%),
        rgba(255, 255, 255, 0.13) var(--progress, 0%),
        rgba(255, 255, 255, 0.13) 100%
    );
}
.player-seek::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    margin-top: -4px;
    border: 2px solid #9fdf32;
    border-radius: 50%;
    background: #f2ffd6;
    box-shadow: 0 0 0 4px rgba(200, 255, 99, 0.1);
    transition: box-shadow 0.18s, transform 0.18s;
}
.player-seek:hover::-webkit-slider-thumb,
.player-seek:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 6px rgba(200, 255, 99, 0.16); }
.player-seek::-moz-range-track { height: 4px; border-radius: 99px; background: rgba(255, 255, 255, 0.13); }
.player-seek::-moz-range-progress { height: 4px; border-radius: 99px; background: linear-gradient(90deg, var(--lime), #a8e545); }
.player-seek::-moz-range-thumb { width: 10px; height: 10px; border: 2px solid #9fdf32; border-radius: 50%; background: #f2ffd6; }
.player-seek:focus-visible::-webkit-slider-thumb { outline: 2px solid rgba(200, 255, 99, 0.6); outline-offset: 2px; }
.player-close { flex: 0 0 auto; }
body.has-player .app-content,
body.has-player .site-main { padding-bottom: 120px; }

/* Dialogs */
.dialog {
    width: min(460px, calc(100% - 32px));
    padding: 0;
    border: 1px solid var(--line-strong);
    border-radius: 20px;
    background: #0f1927;
    color: var(--text);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.55);
}
.dialog::backdrop { background: rgba(3, 6, 11, 0.72); backdrop-filter: blur(8px); }
.dialog form { padding: 24px; }
.dialog-head { display: flex; gap: 13px; margin-bottom: 20px; }
.dialog-icon { flex: 0 0 auto; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; color: var(--lime); background: rgba(200, 255, 99, 0.08); }
.dialog-icon--danger { color: var(--danger); background: var(--danger-soft); }
.dialog-head h2 { margin: 0 0 4px; font-size: 20px; }
.dialog-head p { margin: 0; font-size: 11.5px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 22px; }
.delete-target { padding: 11px 12px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255, 255, 255, 0.03); font-size: 12px; font-weight: 650; }

/* Forms */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { color: #cbd8e7; font-size: 11.5px; font-weight: 650; }
.field small { color: var(--muted-2); font-size: 10px; line-height: 1.5; }
.field input,
.field textarea,
.field select {
    width: 100%;
    min-height: 43px;
    padding: 10px 12px;
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    outline: 0;
    background: rgba(4, 9, 15, 0.5);
    color: var(--text);
    font-size: 13px;
    transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
}
.field input::placeholder, .field textarea::placeholder { color: #5f7187; }
.field input:focus, .field textarea:focus, .field select:focus {
    border-color: rgba(200, 255, 99, 0.5);
    box-shadow: 0 0 0 3px rgba(200, 255, 99, 0.08);
    background: rgba(6, 12, 19, 0.8);
}
.field input:disabled { opacity: 0.5; }
.input-reveal { position: relative; }
.input-reveal input { padding-right: 54px; }
.reveal-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    padding: 5px 8px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--muted-2);
    font-size: 9.5px;
    font-weight: 700;
    cursor: pointer;
}
.reveal-btn:hover { color: var(--lime); background: rgba(200, 255, 99, 0.06); }
.input-icon { position: relative; }
.input-icon > .icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted-2); pointer-events: none; }
.input-icon input { padding-left: 37px; }
.label-row { display: flex; justify-content: space-between; align-items: center; }
.field-note { color: var(--muted-2); font-size: 9px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.field--full { grid-column: 1 / -1; }
.field-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 3px 0 -2px;
    color: var(--muted-2);
    font-size: 9px;
    font-weight: 750;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}
.field-divider::before, .field-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.notice {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-bottom: 18px;
    padding: 12px 14px;
    border: 1px solid var(--line-strong);
    border-left: 3px solid var(--muted);
    border-radius: 9px;
    font-size: 11.5px;
    line-height: 1.55;
    color: #cfdae8;
}
.notice strong { font-size: 12px; }
.notice span { color: var(--muted); }
.notice--error { border-left-color: var(--danger); background: rgba(255, 113, 135, 0.06); border-color: rgba(255, 113, 135, 0.18); }
.notice--success { border-left-color: var(--success); background: rgba(126, 231, 168, 0.055); }
.notice--warning { border-left-color: var(--orange); background: rgba(255, 179, 107, 0.055); }
.notice--info { border-left-color: var(--cyan); }

/* Auth */
.auth-page { min-height: 100vh; }
.auth-main {
    display: grid;
    grid-template-columns: minmax(0, 1.06fr) minmax(430px, 0.94fr);
    min-height: 100vh;
}
.auth-art {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: clamp(28px, 5vw, 58px);
    border-right: 1px solid var(--line);
    background:
        radial-gradient(750px 550px at 12% 7%, rgba(200, 255, 99, 0.09), transparent 55%),
        radial-gradient(700px 500px at 92% 80%, rgba(102, 220, 255, 0.075), transparent 60%),
        linear-gradient(150deg, #0c1521, #080d15);
    overflow: hidden;
}
.auth-art::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
    background-size: 58px 58px;
    mask-image: linear-gradient(135deg, black, transparent 78%);
}
.auth-art::after {
    content: "";
    position: absolute;
    z-index: -1;
    right: -190px;
    top: 14%;
    width: 480px;
    height: 480px;
    border: 1px solid rgba(200, 255, 99, 0.1);
    border-radius: 50%;
    box-shadow: 0 0 0 70px rgba(200, 255, 99, 0.016), 0 0 0 140px rgba(102, 220, 255, 0.012);
}
.auth-art-copy { max-width: 570px; margin-block: auto; padding: 72px 0 42px; }
.auth-art-copy h1 {
    margin: 17px 0 18px;
    font-size: clamp(42px, 5vw, 68px);
    font-weight: 850;
    letter-spacing: -0.06em;
    line-height: 0.99;
}
.auth-art-copy p { max-width: 470px; font-size: 14px; line-height: 1.75; }
.auth-art-foot { color: var(--muted-2); font-family: var(--mono); font-size: 9px; letter-spacing: 0.04em; }
.art-wave {
    display: flex;
    align-items: center;
    gap: 5px;
    height: 74px;
    margin-bottom: 25px;
    opacity: 0.7;
}
.art-wave i {
    flex: 1;
    height: var(--h);
    max-height: 70px;
    border-radius: 4px;
    background: linear-gradient(to top, rgba(200, 255, 99, 0.1), rgba(200, 255, 99, 0.55), rgba(102, 220, 255, 0.3));
}
.mini-tracks { display: flex; flex-direction: column; gap: 7px; margin-bottom: 28px; }
.mini-track {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.025);
    backdrop-filter: blur(10px);
}
.mini-cover {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    width: 35px;
    height: 35px;
    padding: 8px;
    border-radius: 8px;
    background:
        radial-gradient(circle at 25% 15%, var(--cover-a), transparent 65%),
        linear-gradient(145deg, var(--cover-b), #0a111c);
}
.mini-cover i { width: 2px; height: 35%; background: rgba(255, 255, 255, 0.75); border-radius: 2px; }
.mini-cover i:nth-child(2) { height: 75%; }
.mini-cover i:nth-child(3) { height: 50%; }
.mini-track > span:nth-child(2) { flex: 1; min-width: 0; }
.mini-track strong { display: block; overflow: hidden; font-size: 10.5px; text-overflow: ellipsis; white-space: nowrap; }
.mini-track small { color: var(--muted-2); font-size: 8.5px; }
.mini-track em { color: var(--muted-2); font-family: var(--mono); font-size: 9px; font-style: normal; }
.auth-points { display: flex; flex-direction: column; gap: 10px; margin: 0 0 30px; padding: 0; list-style: none; }
.auth-points li { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 11.5px; }
.auth-points .icon { color: var(--lime); }
.auth-points strong { color: #dbe7f3; font-family: var(--mono); font-size: 10px; font-weight: 500; }

.auth-card-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 30px;
    background:
        radial-gradient(600px 400px at 70% 30%, rgba(200, 255, 99, 0.025), transparent 60%),
        rgba(7, 11, 18, 0.45);
}
.auth-card {
    width: min(410px, 100%);
    padding: 30px;
    border: 1px solid var(--line-strong);
    border-radius: 22px;
    background: linear-gradient(155deg, rgba(18, 29, 44, 0.9), rgba(9, 15, 24, 0.94));
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.auth-card--wide { width: min(670px, 100%); padding: clamp(28px, 4vw, 40px); }
.auth-card-head { margin-bottom: 22px; }
.auth-card-head h2 { margin: 6px 0 7px; font-size: 28px; }
.auth-card-head p { margin: 0; font-size: 12px; line-height: 1.6; }
.step-label { color: var(--lime); font-size: 9px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; }
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-form .btn { margin-top: 4px; }
.auth-switch { margin: 20px 0 0; color: var(--muted-2); font-size: 11.5px; text-align: center; }
.auth-switch a { color: var(--lime); font-weight: 700; }
.auth-switch a:hover { text-decoration: underline; }
.auth-legal {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    color: var(--muted-2);
    font-size: 9px;
    text-align: center;
}
.auth-actions { display: flex; flex-direction: column; gap: 8px; }
.auth-card .notice { margin-bottom: 17px; }

/* Setup */
.setup-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 20px; }
.setup-check { display: flex; align-items: center; gap: 7px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 7px; color: var(--muted); font-size: 9.5px; }
.setup-check.is-ok { border-color: rgba(126, 231, 168, 0.12); background: rgba(126, 231, 168, 0.025); }
.setup-check.is-bad { border-color: rgba(255, 113, 135, 0.2); background: rgba(255, 113, 135, 0.045); color: #ffbec8; }
.check-icon { display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; font-size: 9px; font-weight: 800; }
.is-ok .check-icon { color: #0b1304; background: var(--success); }
.is-bad .check-icon { color: #23060c; background: var(--danger); }
.setup-form { margin-top: 4px; }
.setup-manual { margin-top: 20px; padding-top: 15px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10.5px; }
.setup-manual summary { color: var(--muted); cursor: pointer; font-weight: 650; }
.setup-manual summary:hover { color: var(--text); }
.setup-manual ol { margin: 12px 0 0; padding-left: 18px; }
.setup-manual li { margin-bottom: 6px; }

/* Playlists */
.playlist-section { scroll-margin-top: 90px; padding-top: 38px; }
.playlist-folder-note {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: -4px 0 12px;
    color: var(--muted-2);
    font-size: 10.5px;
    line-height: 1.5;
}
.playlist-folder-note .icon { flex: 0 0 auto; color: #c9bcff; }
.playlist-folder-note code {
    padding: 1px 4px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.025);
    color: var(--muted);
    font-family: var(--mono);
    font-size: 9.5px;
    overflow-wrap: anywhere;
}
.playlist-grid { display: grid; gap: 8px; }
.playlist-card {
    display: grid;
    grid-template-columns: minmax(220px, 1.1fr) minmax(220px, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 13px 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(15, 24, 38, 0.72);
    transition: border-color 0.18s, background 0.18s;
}
.playlist-card:hover { border-color: rgba(178, 156, 255, 0.24); background: rgba(18, 29, 45, 0.9); }
.playlist-card-main { display: flex; align-items: center; gap: 12px; min-width: 0; }
.playlist-mark {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(178, 156, 255, 0.22);
    border-radius: 12px;
    background:
        radial-gradient(circle at 28% 16%, rgba(200, 255, 99, 0.2), transparent 55%),
        linear-gradient(145deg, rgba(178, 156, 255, 0.16), rgba(102, 220, 255, 0.06));
    color: #d9ceff;
    line-height: 0;
}
.playlist-copy { min-width: 0; }
.playlist-copy strong {
    display: block;
    overflow: hidden;
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: -0.01em;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.playlist-copy small {
    display: block;
    overflow: hidden;
    margin-top: 1px;
    color: var(--muted-2);
    font-family: var(--mono);
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.playlist-card-url {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    padding: 5px 8px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.022);
    color: var(--muted-2);
    font-family: var(--mono);
    font-size: 8.5px;
}
.playlist-card-url span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.playlist-card-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 4px; }
.playlist-empty {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    border: 1px dashed var(--line-strong);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.018);
}
.playlist-empty > div { flex: 1; min-width: 0; }
.playlist-empty strong { display: block; font-size: 13px; }
.playlist-empty p { margin: 2px 0 0; color: var(--muted-2); font-size: 11px; line-height: 1.55; }
.playlist-empty .playlist-mark { width: 42px; height: 42px; border-radius: 11px; }

/* Public playlist page */
.playlist-page .site-main { padding-bottom: 40px; }
.playlist-hero { padding: 44px 0 0; }
.playlist-hero-panel {
    position: relative;
    display: flex;
    align-items: center;
    gap: clamp(20px, 3.4vw, 34px);
    padding: clamp(24px, 4vw, 40px);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(680px 320px at 8% 0%, rgba(178, 156, 255, 0.13), transparent 62%),
        radial-gradient(520px 260px at 96% 100%, rgba(200, 255, 99, 0.06), transparent 60%),
        linear-gradient(145deg, rgba(20, 32, 49, 0.9), rgba(9, 15, 24, 0.92));
    overflow: hidden;
}
.playlist-art {
    position: relative;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: clamp(96px, 14vw, 152px);
    aspect-ratio: 1;
    border: 1px solid rgba(178, 156, 255, 0.28);
    border-radius: clamp(20px, 3vw, 30px);
    background:
        radial-gradient(circle at 28% 14%, rgba(200, 255, 99, 0.35), transparent 52%),
        linear-gradient(145deg, #34275e, #151d35 68%, #0a111c);
    color: #f4ffdf;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.playlist-art .icon { width: 38%; height: 38%; filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.35)); }
.playlist-art-bars {
    position: absolute;
    left: 50%;
    bottom: 12%;
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 14%;
    transform: translateX(-50%);
    opacity: 0.55;
}
.playlist-art-bars i { width: 3px; height: 38%; border-radius: 2px; background: var(--lime); }
.playlist-art-bars i:nth-child(2) { height: 72%; }
.playlist-art-bars i:nth-child(3) { height: 100%; }
.playlist-art-bars i:nth-child(4) { height: 58%; }
.playlist-art-bars i:nth-child(5) { height: 84%; }
.playlist-hero-copy { flex: 1; min-width: 0; }
.playlist-hero-copy h1 {
    margin: 8px 0 10px;
    font-size: clamp(32px, 5vw, 54px);
    font-weight: 850;
    letter-spacing: -0.045em;
    line-height: 1.02;
    overflow-wrap: anywhere;
}
.playlist-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; color: var(--muted-2); font-size: 11px; }
.playlist-meta strong { color: var(--muted); font-weight: 700; }
.playlist-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.playlist-delete-btn:hover { color: var(--danger); border-color: rgba(255, 113, 135, 0.28); background: var(--danger-soft); }
.playlist-url-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    margin-top: 12px;
    padding: 8px 9px 8px 14px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.025);
}
.playlist-url-label {
    flex: 0 0 auto;
    color: var(--muted-2);
    font-size: 8.5px;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}
.playlist-url-bar code {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.playlist-url-bar .action-btn { flex: 0 0 auto; }
.playlist-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 11px 2px 0;
    color: var(--muted-2);
    font-size: 10.5px;
}
.playlist-hint .icon { flex: 0 0 auto; color: var(--lime); }
.playlist-hint strong { color: var(--muted); }
.playlist-content { padding: 26px 0 10px; }
.playlist-toolbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 13px; }
.playlist-toolbar h2 { margin: 4px 0 0; font-size: 22px; }
.playlist-toolbar-note { color: var(--muted-2); font-family: var(--mono); font-size: 9px; }
.playlist-track-list { gap: 7px; }
.playlist-track-row { grid-template-columns: 28px minmax(0, 1fr) auto auto; gap: 12px; }
.playlist-index { color: var(--muted-2); font-family: var(--mono); font-size: 11px; text-align: center; }
.playlist-remove-form { margin: 0; }
.playlist-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 58px 24px;
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.018);
    text-align: center;
}
.playlist-empty-state .playlist-mark { width: 64px; height: 64px; margin-bottom: 17px; border-radius: 18px; }
.playlist-empty-state h2 { margin: 0 0 6px; font-size: 23px; }
.playlist-empty-state p { max-width: 420px; margin: 0 0 20px; font-size: 12.5px; }
.playlist-missing { padding: 80px 0 100px; }
.playlist-missing-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 520px;
    margin-inline: auto;
    padding: 48px 30px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-lg);
    background: linear-gradient(155deg, rgba(18, 29, 44, 0.85), rgba(9, 15, 24, 0.9));
    text-align: center;
}
.playlist-missing-card .playlist-mark { width: 64px; height: 64px; margin-bottom: 18px; border-radius: 18px; }
.playlist-missing-card h1 { margin: 9px 0 9px; font-size: clamp(30px, 5vw, 42px); }
.playlist-missing-card p { max-width: 390px; margin: 0 0 22px; font-size: 12.5px; }

/* Playlist add dialog */
.dialog--wide { width: min(560px, calc(100% - 32px)); }
.playlist-pick-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 9px; color: var(--muted-2); font-size: 10px; }
.playlist-pick-head strong { color: var(--text); }
.playlist-pick-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
    max-height: min(340px, 48vh);
    margin: 0 -4px;
    padding: 4px;
    overflow-y: auto;
}
.playlist-pick {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.022);
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}
.playlist-pick:hover { border-color: rgba(200, 255, 99, 0.24); background: rgba(200, 255, 99, 0.035); }
.playlist-pick input { flex: 0 0 auto; width: 16px; height: 16px; accent-color: var(--lime); cursor: pointer; }
.playlist-pick-copy { min-width: 0; }
.playlist-pick-copy strong { display: block; overflow: hidden; font-size: 11.5px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.playlist-pick-copy small { display: block; color: var(--muted-2); font-family: var(--mono); font-size: 8.5px; }
.playlist-pick-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 26px 20px;
    border: 1px dashed var(--line-strong);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.018);
    text-align: center;
}
.playlist-pick-empty-icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 12px; border-radius: 13px; color: var(--lime); background: rgba(200, 255, 99, 0.08); }
.playlist-pick-empty strong { font-size: 13px; }
.playlist-pick-empty p { max-width: 340px; margin: 4px 0 15px; color: var(--muted-2); font-size: 10.5px; line-height: 1.6; }

/* Responsiveness */
@media (max-width: 1180px) {
    .hero-grid { gap: 44px; }
    .track-row--library,
    .track-list--library .track-row--library { grid-template-columns: minmax(220px, 1.2fr) minmax(150px, 0.7fr) auto; }
    .track-row--library .track-link { display: none; }
    .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-102%);
        transition: transform 0.3s var(--ease);
        box-shadow: 20px 0 70px rgba(0, 0, 0, 0.4);
    }
    body.nav-open .sidebar { transform: translateX(0); }
    .sidebar-close { display: grid; }
    .mobile-scrim {
        display: block;
        position: fixed;
        z-index: 110;
        inset: 0;
        padding: 0;
        border: 0;
        background: rgba(3, 7, 12, 0.65);
        backdrop-filter: blur(4px);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.25s;
    }
    body.nav-open .mobile-scrim { opacity: 1; pointer-events: auto; }
    .app-main { margin-left: 0; }
    .topbar-menu { display: grid; }
    .auth-main { grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr); }
    .auth-art-copy h1 { font-size: clamp(38px, 4.6vw, 52px); }
    .auth-art-copy { padding-top: 40px; }
    .mini-tracks { display: none; }
}

@media (max-width: 900px) {
    .hero { padding-top: 48px; }
    .hero-grid { grid-template-columns: 1fr; gap: 36px; }
    .hero-copy { max-width: 680px; }
    .hero-upload { width: 100%; max-width: 660px; }
    .feature-grid { grid-template-columns: 1fr; }
    .feature-card { display: grid; grid-template-columns: auto 1fr; column-gap: 16px; }
    .feature-icon { grid-row: span 3; margin-bottom: 0; }
    .feature-card h3 { margin-top: 4px; }
    .feature-card .feature-tag { grid-column: 2; }
    .how-panel { grid-template-columns: 1fr; }
    .cta-inner { flex-direction: column; align-items: flex-start; }
    .auth-main { display: block; min-height: 100vh; }
    .auth-art {
        min-height: 0;
        padding: 26px 24px 8px;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }
    .auth-art::after, .art-wave { display: none; }
    .auth-art-copy { max-width: 560px; margin: 20px auto 12px; padding: 0; }
    .auth-art-copy h1 { margin: 11px 0 10px; font-size: clamp(36px, 9vw, 48px); }
    .auth-art-copy p { margin: 0; font-size: 12.5px; }
    .auth-points { display: none; }
    .auth-art-foot { display: none; }
    .auth-card-wrap { padding: 26px 20px 50px; }
    .auth-card { padding: 24px; }
    .auth-card--wide { padding: 25px; }
    .auth-art .brand { margin-inline: auto; width: fit-content; }
    .auth-art-foot { text-align: center; }
    .track-row,
    .track-row--library,
    .track-list--library .track-row--library {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 8px 14px;
    }
    .track-lead { grid-column: 1; }
    .track-facts { grid-column: 1; }
    .track-expiry { grid-column: 2; grid-row: 2; justify-self: end; }
    .track-actions { grid-column: 1 / -1; justify-content: flex-start; border-top: 1px solid var(--line); padding-top: 7px; }
    .track-link { display: none !important; }
    .guest-library .track-row { grid-template-columns: minmax(0, 1fr) auto; }
    .dashboard-intro { align-items: flex-start; flex-direction: column; gap: 16px; }
}

@media (max-width: 760px) {
    .container { width: calc(100% - 32px); }
    .site-header-inner { min-height: 66px; }
    .site-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 16px;
        right: 16px;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        margin: 4px 0 0;
        padding: 8px;
        border: 1px solid var(--line-strong);
        border-radius: 14px;
        background: rgba(12, 20, 32, 0.98);
        box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
    }
    .site-header.is-open .site-nav { display: flex; }
    .site-nav a { padding: 10px 12px; border-radius: 8px; }
    .site-nav a:hover { background: rgba(255, 255, 255, 0.05); }
    .nav-toggle { display: grid; }
    .nav-signin { display: none; }
    .hero { padding: 45px 0 58px; }
    .hero h1 { font-size: clamp(42px, 12.5vw, 60px); }
    .hero-sub { font-size: 15px; }
    .hero-actions .btn { flex: 1; }
    .upload-panel { padding: 18px; border-radius: 20px; }
    .dropzone { min-height: 250px; padding: 26px 18px; }
    .section-head { align-items: flex-start; flex-direction: column; gap: 12px; }
    .feature-section { padding-top: 60px; }
    .cta-band { padding-bottom: 60px; }
    .site-footer-inner { flex-direction: column; align-items: flex-start; gap: 10px; }
    .topbar { padding: 12px 16px; }
    .topbar-actions .status-pill { display: none; }
    .app-content { padding: 26px 16px 60px; }
    .stat-grid { grid-template-columns: 1fr 1fr; }
    .stat-card { padding: 12px; }
    .library-head { align-items: flex-start; flex-direction: column; gap: 11px; }
    .library-tools { width: 100%; }
    .search-box { flex: 1; width: auto; }
    .track-actions .action-btn span { display: none; }
    .track-actions .action-btn { width: 33px; justify-content: center; padding: 6px; }
    .links-help { align-items: flex-start; }
    .links-help-tag { display: none; }
    .player-bar { gap: 10px; padding: 10px 11px; bottom: 10px; width: calc(100% - 20px); border-radius: 16px; }
    .player-play { width: 40px; height: 40px; }
    .player-copy { gap: 6px; }
    .player-copy strong { font-size: 11px; }
    .player-copy small { font-size: 9px; }
    .player-time { font-size: 8.5px; }
    .player-close { width: 30px; height: 30px; }
    body.has-player .app-content, body.has-player .site-main { padding-bottom: 135px; }
    .setup-checks { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
    .dialog-actions .btn { flex: 1; }
}

@media (max-width: 520px) {
    .site-actions .btn { min-height: 34px; padding: 7px 11px; font-size: 11px; }
    .brand { font-size: 17px; }
    .brand-mark { width: 32px; height: 32px; border-radius: 9px; }
    .brand-mark svg { width: 22px; height: 22px; }
    .hero-tags { gap: 7px 12px; }
    .hero-note { align-items: flex-start; }
    .drop-meta { gap: 3px 8px; }
    .drop-meta span:nth-child(3) { display: none; }
    .upload-secure { display: none; }
    .stat-grid { grid-template-columns: 1fr; }
    .stat-card--folder { grid-column: auto; }
    .track-row { padding: 11px; }
    .track-play { width: 46px; height: 46px; border-radius: 10px; }
    .track-facts span:nth-child(3) { display: none; }
    .dashboard-intro h1 { font-size: 34px; }
    .intro-actions { width: 100%; }
    .intro-actions .btn { flex: 1 1 calc(50% - 5px); }
    .library-head h2 { font-size: 24px; }
    .links-help { flex-wrap: wrap; }
    .auth-art { padding: 20px 16px 4px; }
    .auth-card-wrap { padding: 18px 12px 40px; }
    .auth-card { padding: 20px; border-radius: 17px; }
    .auth-card-head h2 { font-size: 24px; }
    .cta-inner { padding: 24px 20px; }
    .cta-inner .btn { width: 100%; }
    .toast-stack { top: 10px; right: 10px; width: calc(100% - 20px); }
    .player-copy strong { max-width: 180px; }
    .upload-panel-head h2 { font-size: 20px; }
}

@media (max-width: 1180px) {
    .playlist-card { grid-template-columns: minmax(200px, 1fr) auto; }
    .playlist-card-url { display: none; }
}

@media (max-width: 900px) {
    .playlist-hero-panel { flex-direction: column; align-items: flex-start; }
    .playlist-art { width: 88px; border-radius: 20px; }
    .playlist-track-row { grid-template-columns: 24px minmax(0, 1fr) auto; }
    .playlist-index { grid-column: 1; grid-row: 1 / span 2; align-self: start; padding-top: 18px; }
    .playlist-track-row .track-lead { grid-column: 2; grid-row: 1; }
    .playlist-track-row .track-facts { grid-column: 2; grid-row: 2; }
    .playlist-remove-form { grid-column: 3; grid-row: 1 / span 2; align-self: center; }
}

@media (max-width: 760px) {
    .playlist-card { grid-template-columns: 1fr; }
    .playlist-card-actions { justify-content: flex-start; border-top: 1px solid var(--line); padding-top: 8px; }
    .playlist-empty { flex-wrap: wrap; }
    .playlist-empty > .btn { width: 100%; }
    .playlist-url-bar { flex-wrap: wrap; padding-left: 10px; }
    .playlist-url-bar code { flex: 1 1 100%; order: 2; }
    .playlist-url-bar .action-btn { order: 3; margin-left: auto; }
    .playlist-toolbar { align-items: flex-start; flex-direction: column; gap: 4px; }
    .playlist-actions .btn { flex: 1 1 calc(50% - 4px); }
}

@media (max-width: 520px) {
    .playlist-hero { padding-top: 26px; }
    .playlist-hero-panel { gap: 18px; padding: 20px 16px; }
    .playlist-url-label { display: block; order: 1; }
    .playlist-url-bar code { order: 3; font-size: 9px; }
    .playlist-url-bar .action-btn { order: 2; }
    .playlist-track-row { grid-template-columns: minmax(0, 1fr) auto; }
    .playlist-index { display: none; }
    .playlist-track-row .track-lead { grid-column: 1; grid-row: 1; }
    .playlist-track-row .track-facts { grid-column: 1; grid-row: 2; }
    .playlist-remove-form { grid-column: 2; grid-row: 1 / span 2; }
    .playlist-remove-form .action-btn { width: 33px; justify-content: center; padding: 6px; }
    .playlist-remove-form .action-btn span { display: none; }
    .playlist-toolbar-note { display: none; }
    .playlist-missing { padding: 40px 0 60px; }
    .playlist-missing-card { padding: 34px 20px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
}
