@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Fraunces:opsz,wght@9..144,600;9..144,700&display=swap');

:root {
    --ink: #1d1a18;
    --ink-soft: #69615b;
    --paper: #f6f2ec;
    --card: #fffdf9;
    --line: #ded7cf;
    --accent: #c95538;
    --accent-dark: #9e3e28;
    --sidebar: #1d1b1a;
    --success: #2f7457;
    --danger: #a43e34;
    --shadow: 0 18px 50px rgba(48, 37, 29, .09);
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
    margin: 0;
    color: var(--ink);
    background: radial-gradient(circle at 82% 5%, rgba(201, 85, 56, .08), transparent 24rem), var(--paper);
    font-family: "DM Sans", system-ui, sans-serif;
    line-height: 1.5;
}
a { color: inherit; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.page { min-height: 100vh; }

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 20;
    display: flex;
    flex-direction: column;
    width: 276px;
    padding: 32px 22px;
    color: #fff;
    border-right: 1px solid rgba(255,255,255,.12);
    background:
        radial-gradient(circle at 25% 92%, rgba(201, 85, 56, .28), transparent 15rem),
        linear-gradient(180deg, #262321 0%, #181615 100%);
    box-shadow: 10px 0 35px rgba(25, 20, 17, .12);
}
.brand-block { padding: 2px 8px 30px; border-bottom: 1px solid rgba(255,255,255,.16); }
.brand, .mobile-brand { display: flex; align-items: center; gap: 13px; text-decoration: none; }
.brand strong { display: block; color: #fff; font-family: "Fraunces", Georgia, serif; font-size: 1.3rem; }
.brand small { display: block; margin-top: 2px; color: #d5cec8; font-size: .7rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.record-mark {
    position: relative;
    display: inline-grid;
    flex: 0 0 auto;
    width: 45px;
    height: 45px;
    place-items: center;
    border-radius: 50%;
    background: repeating-radial-gradient(circle, #24201e 0 3px, #3d3733 4px 5px);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.1);
}
.record-mark::after { content: ""; width: 13px; height: 13px; border-radius: 50%; background: var(--accent); }
.record-mark i { position: absolute; z-index: 1; width: 4px; height: 4px; border-radius: 50%; background: #f4dfd6; }
.record-mark.small { width: 31px; height: 31px; }
.record-mark.small::after { width: 10px; height: 10px; }
.record-mark.large { width: 86px; height: 86px; }
.record-mark.large::after { width: 24px; height: 24px; }
.nav-list { display: grid; gap: 9px; padding-top: 27px; }
.nav-section-title {
    margin: 0 12px 5px;
    color: #aaa29c;
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
}
.nav-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 52px;
    padding: 9px 12px;
    color: #f2ede9;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 11px;
    background: rgba(255,255,255,.055);
    font-size: .95rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform .16s ease, color .16s ease, background .16s ease, border-color .16s ease;
}
.nav-icon {
    display: grid;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    place-items: center;
    color: #fff;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 9px;
    background: rgba(255,255,255,.1);
    font-size: .88rem;
    font-weight: 800;
    text-align: center;
}
.nav-label { min-width: 0; }
.nav-link:hover {
    transform: translateX(3px);
    color: #fff;
    border-color: rgba(255,255,255,.24);
    background: rgba(255,255,255,.11);
}
.nav-link:focus-visible { outline: 3px solid #f5b19d; outline-offset: 2px; }
.nav-link.active {
    color: #201b18;
    border-color: #fff5ef;
    background: #fff7f2;
    box-shadow: 0 10px 26px rgba(0,0,0,.2);
}
.nav-link.active::before {
    content: "";
    position: absolute;
    top: 12px;
    bottom: 12px;
    left: -11px;
    width: 4px;
    border-radius: 99px;
    background: var(--accent);
}
.nav-link.active .nav-icon {
    color: #fff;
    border-color: var(--accent);
    background: var(--accent);
    box-shadow: 0 5px 13px rgba(201,85,56,.25);
}
.sidebar-note { margin-top: auto; padding: 17px; border: 1px solid rgba(255,255,255,.17); border-radius: 12px; background: rgba(255,255,255,.075); }
.sidebar-note span { display: block; color: #fff; font-size: .78rem; font-weight: 700; }
.sidebar-note span::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: #6fc99f; box-shadow: 0 0 0 4px rgba(111,201,159,.1); }
.sidebar-note small { display: block; margin-top: 7px; color: #cbc4be; font-size: .7rem; line-height: 1.5; }
.logout-form { margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.13); }
.logout-form button {
    display: flex;
    width: 100%;
    min-height: 42px;
    align-items: center;
    gap: 11px;
    padding: 8px 13px;
    color: #d7d0ca;
    border: 0;
    border-radius: 9px;
    background: transparent;
    cursor: pointer;
    font-size: .78rem;
    font-weight: 700;
    text-align: left;
}
.logout-form button:hover { color: #fff; background: rgba(255,255,255,.09); }
.logout-form button:focus-visible { outline: 3px solid #f5b19d; outline-offset: 2px; }
.logout-form button span { width: 25px; font-size: 1rem; text-align: center; }
.main { min-height: 100vh; margin-left: 276px; }
.content { width: min(1200px, 100%); margin: 0 auto; padding: 64px 56px 80px; }
.mobile-topbar { display: none; }

.page-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 38px; }
.page-header.compact { align-items: flex-start; margin-bottom: 24px; }
.page-header h1, .detail-copy h1 { margin: 2px 0 8px; font: 700 clamp(2.25rem, 5vw, 4.2rem)/.98 "Fraunces", Georgia, serif; letter-spacing: -.035em; }
.page-header.compact h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
.eyebrow { margin: 0 0 9px; color: var(--accent); font-size: .72rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.lead { margin: 0; color: var(--ink-soft); font-size: 1.05rem; }
.back-link { display: inline-block; margin-bottom: 26px; color: var(--ink-soft); font-size: .86rem; font-weight: 600; text-decoration: none; }
.back-link:hover { color: var(--accent); }
.button {
    display: inline-flex;
    min-height: 45px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border: 1px solid transparent;
    border-radius: 9px;
    cursor: pointer;
    font-size: .87rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.button:hover { transform: translateY(-1px); }
.button:disabled { cursor: wait; opacity: .65; transform: none; }
.button.primary { color: #fff; background: var(--accent); box-shadow: 0 9px 25px rgba(201,85,56,.23); }
.button.primary:hover { background: var(--accent-dark); }
.button.dark { color: #fff; background: var(--ink); }
.button.secondary { color: var(--ink); border-color: var(--line); background: var(--card); }
.button.danger { color: #fff; background: var(--danger); }

.search-panel { margin-bottom: 28px; padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,253,249,.76); box-shadow: 0 8px 34px rgba(48,37,29,.04); }
.search-panel > label { display: block; margin-bottom: 9px; font-size: .75rem; font-weight: 700; letter-spacing: .04em; }
.search-row { position: relative; display: flex; gap: 9px; }
.search-row input { width: 100%; min-height: 47px; padding: 10px 44px; color: var(--ink); outline: none; border: 1px solid #d7d0c9; border-radius: 9px; background: #fff; }
.search-row input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(201,85,56,.11); }
.search-icon { position: absolute; top: 9px; left: 14px; z-index: 1; color: #8b837d; font-size: 1.25rem; }
.clear-button { position: absolute; top: 7px; right: 102px; width: 34px; height: 34px; color: #837b75; border: 0; background: transparent; cursor: pointer; font-size: 1.3rem; }
.result-bar { display: flex; gap: 7px; margin: 0 2px 18px; color: var(--ink-soft); font-size: .82rem; }
.result-bar strong { color: var(--ink); }
.record-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.record-card { overflow: hidden; color: inherit; border: 1px solid var(--line); border-radius: 13px; background: var(--card); box-shadow: 0 5px 20px rgba(48,37,29,.04); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.record-card:hover { transform: translateY(-4px); border-color: #cfc4bb; box-shadow: var(--shadow); }
.cover { overflow: hidden; background: #e8e1d9; aspect-ratio: 1; }
.cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cover-placeholder { display: grid; width: 100%; height: 100%; place-items: center; background: linear-gradient(135deg, #ddd4cb, #f2ece5); }
.cover-placeholder .record-mark { width: 42%; height: 42%; box-shadow: 6px 10px 20px rgba(40,31,25,.2); }
.cover-placeholder .record-mark::after { width: 25%; height: 25%; }
.record-copy { padding: 17px 17px 15px; }
.record-copy h2 { overflow: hidden; margin: 12px 0 2px; font: 600 1.15rem/1.2 "Fraunces", Georgia, serif; text-overflow: ellipsis; white-space: nowrap; }
.record-copy > p { overflow: hidden; margin: 0; color: var(--ink-soft); font-size: .79rem; text-overflow: ellipsis; white-space: nowrap; }
.format-pill { display: inline-flex; padding: 4px 8px; color: var(--accent-dark); border-radius: 999px; background: #f6e4dc; font-size: .63rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.record-copy dl { display: grid; grid-template-columns: 1fr 1fr; margin: 16px 0 0; padding-top: 12px; border-top: 1px solid #ebe5df; }
.record-copy dl div:last-child { text-align: right; }
.record-copy dt { color: #928a84; font-size: .59rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.record-copy dd { margin: 2px 0 0; font-size: .73rem; font-weight: 600; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 34px; color: var(--ink-soft); font-size: .8rem; }
.page-button { width: 39px; height: 39px; color: var(--ink); border: 1px solid var(--line); border-radius: 50%; background: var(--card); cursor: pointer; }
.page-button:disabled { cursor: default; opacity: .35; }

.loading-state, .empty-state { display: flex; min-height: 280px; align-items: center; justify-content: center; color: var(--ink-soft); }
.loading-state { gap: 12px; }
.spinner { width: 20px; height: 20px; border: 2px solid #d2c9c1; border-top-color: var(--accent); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty-state { flex-direction: column; padding: 50px; text-align: center; }
.empty-state h1, .empty-state h2 { margin: 22px 0 5px; font: 600 1.6rem "Fraunces", Georgia, serif; }
.empty-state p { margin: 0; }
.setup-card, .status-message { display: flex; gap: 18px; margin-bottom: 28px; padding: 22px; border-radius: 13px; }
.setup-card { align-items: flex-start; border: 1px solid #e2c8ba; background: #fff6f0; }
.setup-card h2 { margin: 0 0 5px; font: 600 1.25rem "Fraunces", Georgia, serif; }
.setup-card p { margin: 0 0 13px; color: var(--ink-soft); }
.setup-card code { display: block; overflow-x: auto; padding: 10px 12px; border-radius: 7px; color: #f2ebe7; background: var(--ink); font-size: .76rem; white-space: nowrap; }
.setup-icon { display: grid; width: 39px; height: 39px; flex: 0 0 auto; place-items: center; color: #fff; border-radius: 50%; background: var(--accent); }
.status-message { align-items: flex-start; border: 1px solid #e3bbb6; background: #fff0ee; }
.status-message > span { display: grid; width: 28px; height: 28px; flex: 0 0 auto; place-items: center; color: #fff; border-radius: 50%; background: var(--danger); font-weight: 800; }
.status-message.success { border-color: #b8d9c9; background: #eff9f4; }
.status-message.success > span { background: var(--success); }
.status-message strong { font-size: .85rem; }
.status-message p { margin: 2px 0 0; color: var(--ink-soft); font-size: .82rem; }

.editor-card, .detail-card, .stat-card, .metric-card { border: 1px solid var(--line); border-radius: 15px; background: var(--card); box-shadow: 0 8px 35px rgba(48,37,29,.05); }
.editor-card { overflow: hidden; }
.cover-editor { display: flex; align-items: center; gap: 28px; padding: 28px; border-bottom: 1px solid var(--line); background: #f0eae3; }
.editor-cover { width: 150px; flex: 0 0 150px; border-radius: 9px; box-shadow: 0 10px 25px rgba(45,34,27,.13); }
.cover-editor h2 { margin: 0 0 4px; font: 600 1.35rem "Fraunces", Georgia, serif; }
.cover-editor p { margin: 0 0 17px; color: var(--ink-soft); font-size: .78rem; }
.file-button { position: relative; overflow: hidden; }
.file-button input { position: absolute; inset: 0; cursor: pointer; opacity: 0; }
.text-button { padding: 8px 12px; border: 0; background: transparent; cursor: pointer; font-size: .76rem; font-weight: 700; }
.danger-text { color: var(--danger); }
.form-section { padding: 34px; }
.section-heading { display: flex; gap: 14px; margin-bottom: 27px; }
.section-heading > span { display: grid; width: 34px; height: 34px; place-items: center; color: var(--accent); border: 1px solid #e7c2b6; border-radius: 50%; font-size: .66rem; font-weight: 700; }
.section-heading h2 { margin: 0; font: 600 1.3rem "Fraunces", Georgia, serif; }
.section-heading p { margin: 2px 0 0; color: var(--ink-soft); font-size: .76rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field.full { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: 7px; font-size: .72rem; font-weight: 700; }
.field input, .field select { width: 100%; min-height: 45px; padding: 9px 12px; color: var(--ink); outline: none; border: 1px solid #d7d0c9; border-radius: 8px; background: #fff; }
.field input:focus, .field select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(201,85,56,.1); }
.validation-message { display: block; margin-top: 5px; color: var(--danger); font-size: .7rem; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; padding: 20px 34px; border-top: 1px solid var(--line); background: #faf7f3; }

.detail-card { display: grid; grid-template-columns: minmax(280px, 45%) 1fr; overflow: hidden; }
.detail-cover { min-height: 100%; aspect-ratio: 1; }
.detail-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(32px, 5vw, 68px); }
.detail-copy h1 { margin-top: 14px; font-size: clamp(2.3rem, 5vw, 4.5rem); }
.detail-copy .artist { margin: 4px 0 30px; color: var(--ink-soft); font-size: 1.2rem; }
.detail-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin: 0; padding: 24px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.detail-facts dt { color: #8c847d; font-size: .62rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.detail-facts dd { margin: 4px 0 0; font-weight: 600; }
.detail-actions { display: flex; gap: 10px; margin-top: 28px; }
.modal-backdrop { position: fixed; inset: 0; z-index: 100; display: grid; padding: 20px; place-items: center; background: rgba(20,17,15,.66); backdrop-filter: blur(4px); }
.confirm-dialog { width: min(440px, 100%); padding: 34px; border-radius: 16px; background: var(--card); box-shadow: 0 25px 80px rgba(0,0,0,.25); text-align: center; }
.dialog-icon { display: grid; width: 46px; height: 46px; margin: 0 auto 17px; place-items: center; color: #fff; border-radius: 50%; background: var(--danger); font-weight: 800; }
.confirm-dialog h2 { margin: 0 0 8px; font: 600 1.55rem "Fraunces", Georgia, serif; }
.confirm-dialog p { margin: 0 0 25px; color: var(--ink-soft); }
.dialog-actions { display: flex; justify-content: center; gap: 9px; }

.metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 22px; }
.metric-card { display: flex; min-height: 170px; flex-direction: column; justify-content: center; padding: 27px; }
.metric-card.accent { color: #fff; border-color: var(--accent); background: var(--accent); }
.metric-card > span { font-size: .69rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; opacity: .75; }
.metric-card > strong { margin: 7px 0 0; font: 700 3.1rem "Fraunces", Georgia, serif; }
.metric-card > strong.text-value { overflow: hidden; font-size: 1.7rem; text-overflow: ellipsis; white-space: nowrap; }
.metric-card > small { opacity: .7; }
.statistics-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 22px; }
.stat-card { padding: 28px; }
.stat-heading { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 24px; }
.stat-heading h2 { margin: 0; font: 600 1.45rem "Fraunces", Georgia, serif; }
.stat-heading > span { color: var(--ink-soft); font-size: .72rem; }
.artist-toolbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin: -6px 0 16px; padding-bottom: 16px; border-bottom: 1px solid #eee8e2; }
.artist-toolbar label { display: grid; gap: 6px; }
.artist-toolbar label > span { color: var(--ink-soft); font-size: .64rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.artist-toolbar select { min-width: 190px; min-height: 40px; padding: 7px 34px 7px 11px; color: var(--ink); outline: none; border: 1px solid #d7d0c9; border-radius: 8px; background: #fff; cursor: pointer; }
.artist-toolbar select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(201,85,56,.1); }
.artist-range { padding-bottom: 10px; color: var(--ink-soft); font-size: .7rem; white-space: nowrap; }
.bar-row { margin-bottom: 18px; }
.bar-row > div:first-child { display: flex; justify-content: space-between; margin-bottom: 6px; font-size: .76rem; }
.bar-track { overflow: hidden; height: 7px; border-radius: 99px; background: #ede7e0; }
.bar-track i { display: block; height: 100%; border-radius: inherit; background: var(--accent); }
.artist-list { display: grid; }
.artist-list a { display: grid; grid-template-columns: 39px 1fr auto; align-items: center; gap: 12px; padding: 11px 3px; border-bottom: 1px solid #eee8e2; text-decoration: none; }
.artist-list a:last-child { border-bottom: 0; }
.artist-list a:hover strong { color: var(--accent); }
.artist-avatar { display: grid; width: 36px; height: 36px; place-items: center; color: var(--accent-dark); border-radius: 50%; background: #f5e3dc; font-size: .68rem; font-weight: 800; }
.artist-list strong, .artist-list small { display: block; }
.artist-list strong { font-size: .8rem; }
.artist-list small { color: var(--ink-soft); font-size: .68rem; }
.artist-pagination { margin-top: 22px; padding-top: 20px; border-top: 1px solid #eee8e2; }

#blazor-error-ui { position: fixed; right: 18px; bottom: 18px; z-index: 1000; display: none; padding: 13px 18px; color: #fff; border-radius: 8px; background: var(--danger); box-shadow: var(--shadow); }
#blazor-error-ui a { margin-left: 8px; font-weight: 700; }
#blazor-error-ui .dismiss { margin-left: 12px; cursor: pointer; }

.login-shell {
    display: grid;
    min-height: 100vh;
    padding: clamp(18px, 4vw, 48px);
    place-items: center;
    background:
        radial-gradient(circle at 14% 12%, rgba(201,85,56,.28), transparent 28rem),
        radial-gradient(circle at 86% 88%, rgba(255,255,255,.07), transparent 30rem),
        linear-gradient(145deg, #26211e 0%, #151312 100%);
}
.login-card {
    display: grid;
    grid-template-columns: minmax(330px, .9fr) minmax(390px, 1.1fr);
    width: min(920px, 100%);
    min-height: 600px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 24px;
    background: var(--card);
    box-shadow: 0 35px 110px rgba(0,0,0,.42);
}
.login-showcase {
    position: relative;
    display: flex;
    overflow: hidden;
    flex-direction: column;
    padding: 34px;
    color: #fff;
    background:
        linear-gradient(160deg, rgba(255,255,255,.06), transparent 35%),
        #201d1b;
}
.login-showcase::after {
    content: "";
    position: absolute;
    right: -85px;
    bottom: -105px;
    width: 280px;
    height: 280px;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 50%;
    box-shadow: 0 0 0 42px rgba(255,255,255,.025), 0 0 0 84px rgba(255,255,255,.02);
}
.login-brand { position: relative; z-index: 2; display: flex; align-items: center; gap: 13px; }
.login-brand strong { display: block; color: #fff; font: 700 1.3rem "Fraunces", Georgia, serif; }
.login-brand small { display: block; margin-top: 2px; color: #bbb2ac; font-size: .65rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.login-record { width: 47px; height: 47px; box-shadow: 0 8px 20px rgba(0,0,0,.3); }
.vinyl-scene { position: relative; width: 100%; height: 275px; margin: 34px 0 20px; }
.album-sleeve {
    position: absolute;
    top: 18px;
    left: 4px;
    z-index: 2;
    display: flex;
    width: 210px;
    height: 210px;
    flex-direction: column;
    justify-content: space-between;
    padding: 23px;
    color: #2a211c;
    border-radius: 4px;
    background:
        linear-gradient(135deg, transparent 48%, rgba(255,255,255,.25) 49%, transparent 52%),
        #d9795e;
    box-shadow: 15px 18px 38px rgba(0,0,0,.3);
    transform: rotate(-4deg);
}
.album-sleeve span { font: 700 1.25rem/1.05 "Fraunces", Georgia, serif; letter-spacing: -.02em; }
.album-sleeve i { font: normal 700 .75rem "DM Sans", sans-serif; letter-spacing: .12em; }
.hero-record {
    position: absolute;
    top: 7px;
    right: -42px;
    width: 238px;
    height: 238px;
    border-radius: 50%;
    background:
        radial-gradient(circle, #efd7ce 0 3px, #c95538 4px 22px, #151312 23px 27px, transparent 28px),
        repeating-radial-gradient(circle, #171514 0 4px, #34302d 5px 6px);
    box-shadow: 11px 18px 35px rgba(0,0,0,.42);
}
.hero-record::after { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; }
.hero-record i { position: absolute; inset: 49%; z-index: 1; width: 5px; height: 5px; border-radius: 50%; background: #f7ece7; }
.showcase-copy { position: relative; z-index: 2; margin-top: auto; }
.showcase-copy p { margin: 0 0 8px; font: 600 2rem/1.05 "Fraunces", Georgia, serif; letter-spacing: -.025em; }
.showcase-copy span { color: #aaa19b; font-size: .73rem; }
.login-form-panel { display: flex; flex-direction: column; justify-content: center; padding: clamp(38px, 6vw, 68px); }
.security-label { display: flex; align-items: center; gap: 9px; color: var(--success); font-size: .67rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.lock-mark { position: relative; display: inline-block; width: 22px; height: 18px; margin-top: 4px; border-radius: 5px; background: #dff0e8; }
.lock-mark::before { content: ""; position: absolute; top: -7px; left: 6px; width: 10px; height: 10px; border: 2px solid var(--success); border-bottom: 0; border-radius: 7px 7px 0 0; }
.lock-mark i { position: absolute; top: 6px; left: 10px; width: 3px; height: 6px; border-radius: 2px; background: var(--success); }
.login-copy { padding: 21px 0 27px; }
.login-copy h1 { margin: 4px 0 13px; font: 700 clamp(2.55rem, 5vw, 3.55rem)/.94 "Fraunces", Georgia, serif; letter-spacing: -.045em; }
.login-copy > p:last-child { max-width: 350px; margin: 0; color: var(--ink-soft); font-size: .85rem; line-height: 1.65; }
.login-error { display: grid; gap: 2px; margin-bottom: 18px; padding: 12px 14px; color: #7f2f29; border: 1px solid #e5bcb6; border-radius: 9px; background: #fff0ee; font-size: .75rem; }
.login-error strong { font-size: .78rem; }
.login-error span { color: #99605a; }
.login-form label { display: block; margin-bottom: 8px; font-size: .71rem; font-weight: 800; letter-spacing: .03em; }
.password-field { position: relative; }
.password-keyhole { position: absolute; top: 18px; left: 18px; width: 8px; height: 9px; border-radius: 50% 50% 3px 3px; background: var(--accent); }
.password-keyhole::after { content: ""; position: absolute; top: 6px; left: 3px; width: 2px; height: 5px; background: var(--accent); }
.password-field input {
    width: 100%;
    min-height: 54px;
    padding: 11px 15px 11px 45px;
    color: var(--ink);
    outline: none;
    border: 1px solid #d4ccc5;
    border-radius: 10px;
    background: #fff;
}
.password-field input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(201,85,56,.11); }
.login-button { width: 100%; justify-content: space-between; margin-top: 13px; padding-inline: 20px; }
.login-button > span:last-child { font-size: 1.15rem; transition: transform .16s ease; }
.login-button:hover > span:last-child { transform: translateX(3px); }
.login-footnote { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 19px; color: #8c837d; font-size: .66rem; }
.privacy-dot { width: 6px; height: 6px; border-radius: 50%; background: #6ab18d; box-shadow: 0 0 0 3px rgba(106,177,141,.12); }

@media (max-width: 1100px) { .record-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 820px) {
    .sidebar { inset: auto 0 0; width: auto; height: 70px; flex-direction: row; padding: 7px 12px; }
    .brand-block, .sidebar-note { display: none; }
    .nav-list { display: grid; grid-template-columns: repeat(3, 1fr); height: 100%; flex: 1; padding: 0; }
    .nav-section-title { display: none; }
    .nav-link { min-height: auto; flex-direction: column; justify-content: center; gap: 2px; padding: 4px; border-color: transparent; background: transparent; font-size: .62rem; }
    .nav-icon { width: 26px; height: 26px; flex-basis: 26px; border: 0; background: transparent; font-size: .9rem; }
    .nav-link:hover { transform: none; }
    .nav-link.active { color: #fff; border-color: transparent; background: rgba(201,85,56,.22); box-shadow: none; }
    .nav-link.active::before { display: none; }
    .nav-link.active .nav-icon { border-color: transparent; box-shadow: none; }
    .logout-form { width: 25%; margin: 0; padding: 0; border: 0; }
    .logout-form button { height: 100%; flex-direction: column; justify-content: center; gap: 1px; padding: 4px; color: #ddd6d0; font-size: .62rem; text-align: center; }
    .logout-form button span { height: 24px; font-size: 1rem; }
    .main { margin-left: 0; padding-bottom: 70px; }
    .mobile-topbar { display: flex; height: 58px; align-items: center; padding: 0 20px; color: #fff; background: var(--sidebar); }
    .mobile-brand { font: 600 1rem "Fraunces", Georgia, serif; }
    .content { padding: 36px 22px 55px; }
    .record-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
    .detail-card { grid-template-columns: 1fr; }
    .detail-cover { min-height: auto; }
    .metric-grid, .statistics-grid { grid-template-columns: 1fr; }
    .login-card { grid-template-columns: 280px minmax(360px, 1fr); }
    .login-showcase { padding: 28px; }
    .vinyl-scene { transform: scale(.85); transform-origin: left center; }
    .login-form-panel { padding: 42px; }
}
@media (max-width: 540px) {
    .content { padding: 30px 16px 48px; }
    .page-header { display: block; margin-bottom: 27px; }
    .page-header .button { width: 100%; margin-top: 20px; }
    .page-header h1 { font-size: 2.55rem; }
    .search-panel { padding: 14px; }
    .search-row { display: grid; grid-template-columns: 1fr; }
    .search-row .button { width: 100%; }
    .clear-button { top: 7px; right: 7px; }
    .record-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .record-copy { padding: 12px; }
    .record-copy h2 { font-size: .98rem; }
    .record-copy dl { display: none; }
    .format-pill { font-size: .55rem; }
    .cover-editor { align-items: flex-start; gap: 18px; padding: 20px; }
    .editor-cover { width: 105px; flex-basis: 105px; }
    .cover-editor .button { padding: 8px 10px; font-size: .72rem; }
    .text-button { display: block; padding-left: 0; }
    .form-section { padding: 24px 20px; }
    .form-grid { grid-template-columns: 1fr; }
    .field.full { grid-column: auto; }
    .form-actions { padding: 16px 20px; }
    .detail-copy { padding: 28px 22px; }
    .detail-facts { grid-template-columns: 1fr 1fr; }
    .detail-actions .button { flex: 1; }
    .dialog-actions { flex-direction: column-reverse; }
    .dialog-actions .button { width: 100%; }
    .artist-toolbar { align-items: stretch; flex-direction: column; gap: 8px; }
    .artist-toolbar select { width: 100%; }
    .artist-range { padding-bottom: 0; }
    .login-shell { align-items: start; padding: 0; background: var(--card); }
    .login-card { display: block; min-height: 100vh; border: 0; border-radius: 0; box-shadow: none; }
    .login-showcase { min-height: 120px; padding: 23px 24px; border-radius: 0 0 24px 24px; }
    .vinyl-scene, .showcase-copy { display: none; }
    .login-form-panel { padding: 38px 24px 32px; }
    .login-copy h1 { font-size: 2.75rem; }
}
