/* =========================================================
   唱片柜 · Record Cabinet
   A warm, editorial home for a personal record collection.
   ========================================================= */

:root {
  --paper: #f2ede2;
  --paper-2: #faf7ef;
  --paper-3: #e9e1d2;
  --ink: #1b1712;
  --ink-soft: #3f3830;
  --muted: #7c7264;
  --muted-2: #9a9081;
  --line: rgba(27, 23, 18, 0.14);
  --line-strong: rgba(27, 23, 18, 0.32);
  --accent: #bb3f28;
  --accent-dark: #992f1c;
  --accent-soft: rgba(187, 63, 40, 0.12);
  --olive: #5f6649;
  --gold: #a77f39;
  --green: #4c7757;
  --serif: "Songti SC", "Noto Serif SC", "Source Han Serif SC", "STSong", "SimSun", Georgia, serif;
  --sans: "Inter", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", "Roboto Mono", "Cascadia Mono", Consolas, monospace;
  --shadow-sm: 0 2px 8px rgba(35, 28, 20, 0.06);
  --shadow-md: 0 18px 50px rgba(35, 28, 20, 0.16);
  --ease: cubic-bezier(0.22, 0.7, 0.2, 1);
  --max: 1320px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0)),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.055'/%3E%3C/svg%3E");
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.is-locked {
  overflow: hidden;
}

[hidden] {
  display: none !important;
}

::selection {
  background: var(--accent);
  color: #fff9ed;
}

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: wait;
  opacity: 0.65;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

svg {
  display: block;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 20px;
  z-index: 999;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-size: 12px;
}

.skip-link:focus {
  top: 12px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(100%, var(--max));
  height: 76px;
  margin: 0 auto;
  padding: 0 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
  flex: 0 0 auto;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: var(--ink);
  transition: transform 0.9s var(--ease);
}

.brand:hover .brand-mark {
  transform: rotate(120deg);
}

.brand-mark svg {
  width: 100%;
  height: 100%;
}

.brand-mark--small {
  width: 30px;
  height: 30px;
}

.brand-type {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-type strong {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.brand-type small {
  margin-top: 6px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.17em;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mode-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 28px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition: color 0.2s, border-color 0.2s;
}

.mode-badge i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(76, 119, 87, 0.12);
}

.mode-badge.is-local i {
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(167, 127, 57, 0.12);
}

.mode-badge.is-guest i,
.mode-badge.is-setup i {
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.mode-badge.is-admin i {
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.mode-badge.is-admin {
  border-color: rgba(187, 63, 40, 0.28);
  color: var(--accent-dark);
}

.mode-badge.is-offline i {
  background: var(--muted-2);
  box-shadow: none;
}

.mode-badge.is-offline {
  color: var(--accent);
  border-color: rgba(187, 63, 40, 0.3);
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 40px;
  min-width: 40px;
  padding: 0 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink-soft);
  font-size: 12px;
  transition: background 0.18s, border-color 0.18s, color 0.18s;
}

.icon-button svg {
  width: 18px;
  height: 18px;
}

.icon-button:hover {
  border-color: var(--line);
  background: rgba(255, 253, 247, 0.55);
  color: var(--ink);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.18s var(--ease), background 0.18s, color 0.18s, box-shadow 0.18s;
}

.button svg {
  width: 17px;
  height: 17px;
}

.button--primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff9ed;
  box-shadow: 3px 3px 0 rgba(27, 23, 18, 0.14);
}

.button--primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 rgba(27, 23, 18, 0.16);
}

.button--primary:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 rgba(27, 23, 18, 0.14);
}

.button--quiet {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--ink);
}

.button--quiet:hover {
  background: var(--paper-3);
}

.button--danger {
  border-color: rgba(187, 63, 40, 0.36);
  background: transparent;
  color: var(--accent-dark);
}

.button--danger:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff9ed;
}

.text-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  background: none;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.6;
  text-decoration: none;
  transition: color 0.18s, border-color 0.18s;
}

.text-button:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.text-button--small {
  font-size: 11px;
}

.text-button--danger {
  color: var(--accent-dark);
  border-color: rgba(187, 63, 40, 0.3);
}

/* ---------- Dropdown ---------- */

.menu-wrap {
  position: relative;
}

.menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 60;
  width: 286px;
  max-height: calc(100vh - 110px);
  max-height: calc(100dvh - 110px);
  padding: 8px;
  border: 1px solid var(--ink);
  background: var(--paper-2);
  box-shadow: 7px 7px 0 rgba(27, 23, 18, 0.13);
  overflow: auto;
  animation: menuIn 0.16s var(--ease) both;
}

@keyframes menuIn {
  from { opacity: 0; transform: translateY(-5px); }
}

.menu button {
  display: grid;
  grid-template-columns: 21px 1fr;
  align-items: start;
  gap: 11px;
  width: 100%;
  padding: 11px 10px;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  transition: background 0.15s;
}

.menu button:hover {
  background: var(--paper-3);
}

.menu button > svg {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  color: var(--muted);
}

.menu button span {
  font-size: 12.5px;
  line-height: 1.5;
}

.menu button small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 400;
}

.menu-rule {
  height: 1px;
  margin: 6px 8px;
  background: var(--line);
}

/* ---------- Hero ---------- */

main {
  overflow: clip;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 440px;
  align-items: center;
  gap: 28px;
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 70px 32px 56px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 17px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.15em;
  line-height: 1.5;
  text-transform: uppercase;
}

.eyebrow-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(44px, 5.1vw, 78px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.hero-mark {
  position: relative;
  display: inline-block;
  color: var(--accent);
}

.hero-mark::after {
  content: "";
  position: absolute;
  right: -2px;
  bottom: -7px;
  left: -2px;
  height: 9px;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 240 12' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 8.5C45 3.2 75 9.8 120 6.1c47-3.9 73 2.8 118-2.7' fill='none' stroke='%23bb3f28' stroke-width='2.2' stroke-linecap='round' opacity='.55'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}

.hero-lede {
  max-width: 540px;
  margin: 27px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.95;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 31px;
}

.hero-actions .button {
  height: 46px;
  padding: 0 21px;
}

.hero-art {
  position: relative;
  width: 440px;
  height: 370px;
  justify-self: end;
}

.hero-sleeve {
  position: absolute;
  top: 21px;
  left: 2px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 302px;
  height: 302px;
  padding: 21px 22px 18px;
  border: 1px solid var(--ink);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.35), transparent 45%),
    #e8ddc9;
  box-shadow: 15px 19px 0 rgba(27, 23, 18, 0.075), 0 26px 60px rgba(27, 23, 18, 0.13);
  transform: rotate(-6.5deg);
  transform-origin: center;
}

.hero-sleeve::after {
  content: "RECORD CABINET · PRIVATE PRESSING · ARCHIVE COPY · ";
  position: absolute;
  right: 24px;
  bottom: 8px;
  left: 24px;
  overflow: hidden;
  color: rgba(27, 23, 18, 0.36);
  font-family: var(--mono);
  font-size: 5px;
  letter-spacing: 0.14em;
  white-space: nowrap;
}

.sleeve-top {
  display: flex;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(27, 23, 18, 0.5);
  font-family: var(--mono);
  font-size: 6.5px;
  letter-spacing: 0.13em;
}

.sleeve-number {
  margin: 15px 0 2px -4px;
  color: var(--accent);
  font-family: var(--serif);
  font-size: 104px;
  font-weight: 700;
  letter-spacing: -0.09em;
  line-height: 0.9;
}

.sleeve-number sup {
  position: relative;
  top: -0.55em;
  margin-left: 2px;
  font-size: 30px;
  letter-spacing: 0;
}

.sleeve-rule {
  width: 100%;
  height: 7px;
  margin-top: 4px;
  background: var(--ink);
}

.sleeve-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: auto;
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.13em;
  line-height: 1.6;
}

.sleeve-stamp {
  display: grid;
  place-items: center;
  width: 47px;
  height: 47px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  color: var(--accent);
  font-family: var(--sans);
  font-size: 6.5px;
  letter-spacing: 0.08em;
  line-height: 1.45;
  text-align: center;
  transform: rotate(9deg);
}

.hero-vinyl {
  position: absolute;
  top: 35px;
  right: -2px;
  z-index: 2;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 33% 27%, rgba(255, 255, 255, 0.17), transparent 28%),
    repeating-radial-gradient(circle at 50% 50%, #14110e 0 1.1px, #29241d 1.4px 2.2px, #100e0c 2.6px 3.3px);
  box-shadow: 0 25px 55px rgba(20, 16, 11, 0.38), inset 0 0 0 1px rgba(255, 255, 255, 0.09);
  animation: vinylSpin 34s linear infinite;
}

.vinyl-grooves {
  position: absolute;
  inset: 4%;
  border-radius: 50%;
  background: repeating-radial-gradient(circle at 50% 50%, transparent 0 5px, rgba(255, 255, 255, 0.028) 5.4px 5.7px);
  -webkit-mask: radial-gradient(circle, transparent 0 35%, #000 35.5% 100%);
  mask: radial-gradient(circle, transparent 0 35%, #000 35.5% 100%);
}

.vinyl-sheen {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: conic-gradient(from 205deg, transparent 0 12%, rgba(255, 248, 225, 0.16) 18%, transparent 25% 52%, rgba(255, 248, 225, 0.11) 59%, transparent 66%);
  mix-blend-mode: screen;
}

.vinyl-label {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 98px;
  height: 98px;
  border: 1px solid rgba(27, 23, 18, 0.5);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, transparent 0 3px, rgba(27, 23, 18, 0.75) 3.5px 4px, transparent 4.5px),
    #eadcc0;
  color: var(--ink);
  transform: translate(-50%, -50%);
  box-shadow: inset 0 0 0 8px rgba(187, 63, 40, 0.1);
}

.vinyl-label-top,
.vinyl-label-bottom {
  font-family: var(--mono);
  font-size: 5px;
  letter-spacing: 0.11em;
  line-height: 1.4;
}

.vinyl-label strong {
  margin: 1px 0 0;
  font-family: var(--serif);
  font-size: 27px;
  line-height: 1;
}

@keyframes vinylSpin {
  to { transform: rotate(360deg); }
}

.now-spinning {
  position: absolute;
  right: 13px;
  bottom: 11px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 4px 4px 0 rgba(27, 23, 18, 0.14);
  color: #fff7e7;
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.12em;
  line-height: 1.5;
  text-align: center;
  transform: rotate(11deg);
}

/* ---------- Ledger ---------- */

.ledger {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) 1.45fr;
  width: min(100%, var(--max));
  margin: 0 auto;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.ledger-item {
  position: relative;
  min-width: 0;
  padding: 21px 24px 23px;
  border-right: 1px solid var(--line);
}

.ledger-index {
  position: absolute;
  top: 22px;
  right: 18px;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.08em;
}

.ledger-label {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.ledger-item p {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 7px 0 0;
}

.ledger-item strong {
  overflow: hidden;
  font-family: var(--serif);
  font-size: clamp(32px, 3.1vw, 44px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ledger-unit {
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
}

.ledger-quote {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 26px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--serif);
  font-size: 11.5px;
  letter-spacing: 0.02em;
  line-height: 1.85;
}

.ledger-quote svg {
  flex: 0 0 auto;
  width: 29px;
  height: 29px;
  color: rgba(242, 237, 226, 0.45);
}

/* ---------- Collection ---------- */

.collection {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 72px 32px 112px;
  scroll-margin-top: 80px;
}

.cabinet-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 54px;
}

.cabinet-tab {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 17px 20px 18px;
  border: 1px solid var(--line-strong);
  background: rgba(250, 247, 239, 0.35);
  color: var(--ink);
  text-align: left;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s var(--ease);
}

.cabinet-tab:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}

.cabinet-tab.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
  transform: none;
}

.cabinet-tab-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.cabinet-tab.is-active .cabinet-tab-top {
  border-bottom-color: rgba(242, 237, 226, 0.2);
  color: rgba(242, 237, 226, 0.58);
}

.cabinet-tab-index {
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.1em;
}

.cabinet-tab-en {
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.12em;
}

.cabinet-tab-main {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-top: 11px;
}

.cabinet-tab-main strong {
  font-family: var(--serif);
  font-size: clamp(24px, 2.4vw, 31px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.cabinet-tab-count {
  color: var(--accent);
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1;
}

.cabinet-tab.is-active .cabinet-tab-count {
  color: #e07a5f;
}

.cabinet-tab-desc {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

.cabinet-tab.is-active .cabinet-tab-desc {
  color: rgba(242, 237, 226, 0.6);
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.section-heading .section-desc {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.7;
}

.collection.is-signed .card-title {
  display: -webkit-box;
  min-height: 2.5em;
  overflow: hidden;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.section-heading .eyebrow {
  margin-bottom: 9px;
}

.section-heading h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(34px, 3.8vw, 48px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.view-switch {
  display: flex;
  border: 1px solid var(--line-strong);
  background: rgba(250, 247, 239, 0.35);
}

.view-switch button {
  display: grid;
  place-items: center;
  width: 39px;
  height: 34px;
  border: 0;
  background: transparent;
  color: var(--muted);
  transition: background 0.16s, color 0.16s;
}

.view-switch button + button {
  border-left: 1px solid var(--line);
}

.view-switch button svg {
  width: 16px;
  height: 16px;
}

.view-switch button:hover {
  color: var(--ink);
}

.view-switch button.is-active {
  background: var(--ink);
  color: var(--paper);
}

.filter-bar {
  display: flex;
  gap: 10px;
  margin-top: 30px;
}

.search-box {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  gap: 10px;
  min-width: 0;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  background: var(--paper-2);
  transition: border-color 0.18s, box-shadow 0.18s;
}

.search-box:focus-within {
  border-color: var(--ink);
  box-shadow: 3px 3px 0 rgba(27, 23, 18, 0.08);
}

.search-box > svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  color: var(--muted);
}

.search-box input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 13px;
}

.search-box input::placeholder {
  color: var(--muted-2);
}

.search-box input::-webkit-search-cancel-button {
  cursor: pointer;
}

.search-box kbd {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 9px;
}

.select-wrap {
  position: relative;
  flex: 0 0 auto;
  min-width: 148px;
}

.select-wrap select {
  width: 100%;
  height: 48px;
  padding: 0 34px 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  outline: 0;
  background: var(--paper-2);
  color: var(--ink-soft);
  font-size: 11.5px;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  transition: border-color 0.18s;
}

.select-wrap select:hover,
.select-wrap select:focus {
  border-color: var(--ink);
}

.select-wrap > svg {
  position: absolute;
  top: 50%;
  right: 10px;
  width: 15px;
  height: 15px;
  color: var(--muted);
  pointer-events: none;
  transform: translateY(-50%);
}

.format-tabs {
  display: flex;
  gap: 30px;
  margin-top: 28px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}

.format-tabs::-webkit-scrollbar {
  display: none;
}

.format-tab {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  flex: 0 0 auto;
  padding: 0 0 12px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 12.5px;
  white-space: nowrap;
  transition: color 0.16s, border-color 0.16s;
}

.format-tab span {
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 8.5px;
}

.format-tab:hover {
  color: var(--ink);
}

.format-tab.is-active {
  border-bottom-color: var(--accent);
  color: var(--ink);
  font-weight: 600;
}

.format-tab.is-active span {
  color: var(--accent);
}

.active-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 17px;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 28px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  font-size: 10.5px;
}

.filter-chip button {
  display: grid;
  place-items: center;
  width: 14px;
  height: 14px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-size: 10px;
  line-height: 1;
}

.result-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 20px 0 22px;
}

.result-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}

.filter-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 9px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 9.5px;
  transition: background 0.16s, color 0.16s, border-color 0.16s;
}

.filter-toggle span {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 8.5px;
}

.filter-toggle:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.filter-toggle.is-active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff7e7;
}

.filter-toggle.is-active span {
  color: #ffe2d9;
}

#resultCount {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.04em;
}

/* ---------- Covers ---------- */

.cover-media {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #d9d0c0;
  container-type: inline-size;
}

.cover-media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease), filter 0.4s;
}

.cover-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 8.5% 8%;
  background: var(--cf-bg, #d8cdb8);
  color: var(--cf-fg, #1b1712);
  overflow: hidden;
}

.cover-fallback::before {
  content: "";
  position: absolute;
  right: -18cqw;
  bottom: -23cqw;
  width: 78cqw;
  height: 78cqw;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: 0.28;
}

.cover-fallback::after {
  content: "";
  position: absolute;
  right: -4cqw;
  bottom: -9cqw;
  width: 48cqw;
  height: 48cqw;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: 0.18;
}

.cf-top,
.cf-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2cqw;
  font-family: var(--mono);
  font-size: 3.7cqw;
  letter-spacing: 0.08em;
  line-height: 1.4;
}

.cf-center {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  flex: 1;
  min-height: 0;
  padding: 5cqw 0;
}

.cf-title {
  display: -webkit-box;
  overflow: hidden;
  font-family: var(--serif);
  font-size: 11.5cqw;
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.07;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.cf-bottom {
  align-items: flex-end;
}

.cf-artist {
  display: -webkit-box;
  overflow: hidden;
  max-width: 70%;
  font-family: var(--sans);
  font-size: 4.2cqw;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.cf-mark {
  flex: 0 0 auto;
  color: var(--cf-accent, #bb3f28);
  font-family: var(--serif);
  font-size: 6cqw;
  font-weight: 700;
  letter-spacing: -0.06em;
}

.palette-0 { --cf-bg: #d9cdb7; --cf-fg: #1b1712; --cf-accent: #a73723; }
.palette-1 { --cf-bg: #1e2c2b; --cf-fg: #eee5d5; --cf-accent: #d4834f; }
.palette-2 { --cf-bg: #b44731; --cf-fg: #fff5e4; --cf-accent: #f2c57d; }
.palette-3 { --cf-bg: #43503c; --cf-fg: #ede6d8; --cf-accent: #e0a35f; }
.palette-4 { --cf-bg: #d9b46b; --cf-fg: #241d14; --cf-accent: #962f1d; }
.palette-5 { --cf-bg: #2d2a37; --cf-fg: #ece3d6; --cf-accent: #b9a4d8; }
.palette-6 { --cf-bg: #e7ded0; --cf-fg: #2f2a24; --cf-accent: #49645a; }
.palette-7 { --cf-bg: #8d3a33; --cf-fg: #f8ecd9; --cf-accent: #d8b16c; }

/* ---------- Record grid ---------- */

.record-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 35px 24px;
}

.record-card {
  min-width: 0;
  cursor: pointer;
  animation: cardIn 0.52s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 35ms);
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(12px); }
}

.record-card .card-cover {
  position: relative;
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(27, 23, 18, 0.5);
  background: var(--paper-3);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.record-card:hover .card-cover {
  transform: translateY(-4px);
  box-shadow: 8px 10px 0 rgba(27, 23, 18, 0.1), 0 20px 35px rgba(27, 23, 18, 0.11);
}

.record-card:hover .cover-media > img {
  transform: scale(1.035);
}

.format-badge {
  position: absolute;
  top: 9px;
  left: 9px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 7px;
  border: 1px solid rgba(27, 23, 18, 0.28);
  background: rgba(250, 247, 239, 0.92);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 7.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.cover-open {
  position: absolute;
  right: 9px;
  bottom: 9px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 24px;
  padding: 0 8px;
  background: var(--ink);
  color: var(--paper);
  font-size: 8.5px;
  letter-spacing: 0.04em;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s, transform 0.2s;
}

.record-card:hover .cover-open,
.record-card:focus-visible .cover-open {
  opacity: 1;
  transform: translateY(0);
}

.card-body {
  padding: 13px 2px 0;
}

.card-title {
  overflow: hidden;
  margin: 0;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.28;
  text-overflow: ellipsis;
  text-wrap: balance;
  white-space: nowrap;
}

.card-artist {
  overflow: hidden;
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 9px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.card-facts {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.card-facts .dot {
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: var(--muted-2);
}

.card-rating {
  display: inline-flex;
  gap: 1px;
  color: var(--gold);
  font-size: 9px;
  letter-spacing: 0;
  line-height: 1;
}

.card-rating .off {
  color: var(--line-strong);
}

.card-note {
  flex: 0 0 auto;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 8px;
}

.card-missing {
  flex: 0 0 auto;
  color: var(--accent-dark);
  font-size: 8px;
  letter-spacing: 0.02em;
}

.card-tags {
  display: flex;
  gap: 4px;
  overflow: hidden;
  margin-top: 7px;
  white-space: nowrap;
}

.card-tags span {
  overflow: hidden;
  max-width: 96px;
  padding: 2px 6px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 8.5px;
  line-height: 1.4;
  text-overflow: ellipsis;
}

/* ---------- Record list ---------- */

.record-list {
  border-top: 1px solid var(--ink);
}

.list-head,
.record-row {
  display: grid;
  grid-template-columns: 62px minmax(180px, 2fr) minmax(120px, 1.1fr) 82px 80px 80px 96px 30px;
  align-items: center;
  gap: 16px;
}

.list-head {
  padding: 9px 9px 8px;
  border-bottom: 1px solid var(--line);
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.08em;
}

.record-row {
  padding: 11px 9px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background 0.16s;
}

.record-row:hover {
  background: rgba(250, 247, 239, 0.6);
}

.row-cover {
  position: relative;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(27, 23, 18, 0.35);
  overflow: hidden;
}

.row-title {
  min-width: 0;
}

.row-title strong {
  display: block;
  overflow: hidden;
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.row-title span {
  display: block;
  overflow: hidden;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.row-cell {
  overflow: hidden;
  color: var(--muted);
  font-size: 10.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.row-format {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.05em;
}

.row-price {
  font-family: var(--mono);
  font-size: 9.5px;
}

.row-rating {
  color: var(--gold);
  font-size: 9px;
  letter-spacing: 1px;
}

.row-arrow {
  color: var(--muted-2);
  font-size: 14px;
  text-align: right;
  transition: transform 0.2s, color 0.2s;
}

.record-row:hover .row-arrow {
  color: var(--accent);
  transform: translateX(3px);
}

/* ---------- Empty state ---------- */

.empty-state {
  padding: 12px 0 0;
}

.empty-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 68px 24px 72px;
  border: 1px dashed var(--line-strong);
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.5), transparent 45%),
    rgba(250, 247, 239, 0.34);
  text-align: center;
}

.empty-disc {
  position: relative;
  display: grid;
  place-items: center;
  width: 152px;
  height: 152px;
  margin-bottom: 26px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.15), transparent 30%),
    repeating-radial-gradient(circle at 50% 50%, #1a1713 0 1.2px, #2c261f 1.5px 2.4px, #15120f 2.8px 3.6px);
  box-shadow: 0 22px 40px rgba(27, 23, 18, 0.23);
  animation: vinylSpin 40s linear infinite;
}

.empty-disc::before {
  content: "";
  width: 48px;
  height: 48px;
  border: 1px solid rgba(242, 237, 226, 0.3);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: inset 0 0 0 11px rgba(250, 247, 239, 0.1);
}

.empty-disc::after {
  content: "";
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--paper);
}

.empty-inner h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 29px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.empty-inner p {
  max-width: 460px;
  margin: 11px 0 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.85;
}

.empty-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 26px;
}

.empty-state--filtered .empty-inner {
  padding: 54px 24px;
  border-style: solid;
}

.empty-state--filtered .empty-disc {
  width: 96px;
  height: 96px;
  margin-bottom: 21px;
}

.empty-state--filtered .empty-disc::before {
  width: 30px;
  height: 30px;
  box-shadow: none;
}

.empty-state--filtered .empty-inner h3 {
  font-size: 24px;
}

/* ---------- Skeleton ---------- */

.skeleton-card {
  animation: none;
}

.sk-cover {
  aspect-ratio: 1;
  border: 1px solid var(--line);
  background: linear-gradient(100deg, #e4dccd 20%, #eee7da 38%, #e4dccd 56%);
  background-size: 220% 100%;
  animation: shimmer 1.5s linear infinite;
}

.sk-line {
  height: 10px;
  margin-top: 12px;
  background: #e4dccd;
  animation: shimmer 1.5s linear infinite;
}

.sk-line--short {
  width: 54%;
  margin-top: 8px;
  opacity: 0.7;
}

@keyframes shimmer {
  to { background-position: -220% 0; }
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--ink);
  background: rgba(233, 225, 210, 0.4);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 30px 32px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 11px;
}

.footer-brand div {
  display: flex;
  flex-direction: column;
}

.footer-brand strong {
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: 0.1em;
}

.footer-brand span {
  color: var(--muted);
  font-size: 9.5px;
}

.footer-note {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
}

/* ---------- Modal shell ---------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
}

.modal--confirm {
  z-index: 120;
}

.modal--lightbox {
  z-index: 140;
  padding: 0;
}

.lightbox-backdrop {
  background: rgba(12, 9, 7, 0.94);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.lightbox-figure {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: 92vw;
  max-height: 92vh;
  margin: 0;
}

.lightbox-figure img {
  display: block;
  max-width: 90vw;
  max-height: 82vh;
  object-fit: contain;
  border: 1px solid rgba(242, 237, 226, 0.2);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.lightbox-figure figcaption {
  color: rgba(242, 237, 226, 0.68);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
}

.lightbox-close {
  position: fixed;
  top: 22px;
  right: 22px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(242, 237, 226, 0.34);
  background: rgba(27, 23, 18, 0.5);
  color: var(--paper);
}

.lightbox-close:hover {
  background: var(--paper);
  color: var(--ink);
}

.lightbox-close svg {
  width: 18px;
  height: 18px;
}

.lightbox-nav {
  position: fixed;
  top: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 44px;
  height: 58px;
  border: 1px solid rgba(242, 237, 226, 0.24);
  background: rgba(27, 23, 18, 0.45);
  color: var(--paper);
  transform: translateY(-50%);
}

.lightbox-nav:hover {
  background: var(--paper);
  color: var(--ink);
}

.lightbox-nav[hidden] {
  display: none !important;
}

.lightbox-nav svg {
  width: 22px;
  height: 22px;
}

.lightbox-prev {
  left: 22px;
}

.lightbox-next {
  right: 22px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(22, 17, 12, 0.57);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  animation: backdropIn 0.22s ease both;
}

@keyframes backdropIn {
  from { opacity: 0; }
}

.modal-panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  border: 1px solid var(--ink);
  background: var(--paper-2);
  box-shadow: 14px 14px 0 rgba(18, 14, 10, 0.22), var(--shadow-md);
  animation: modalIn 0.3s var(--ease) both;
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(16px) scale(0.992); }
}

.modal-panel--wide {
  max-width: 1020px;
}

.modal-panel--detail {
  max-width: 980px;
}

.modal-panel--stats {
  max-width: 900px;
}

.modal-panel--about {
  max-width: 740px;
}

.modal-panel--auth {
  max-width: 470px;
}

#authForm {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.auth-body {
  flex: 1;
  min-height: 0;
  padding: 25px 28px 18px;
  overflow: auto;
}

.auth-lock {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 17px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--accent);
}

.auth-lock svg {
  width: 21px;
  height: 21px;
}

.auth-intro {
  margin: 0;
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.65;
}

.auth-sub {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.8;
}

.auth-field {
  margin-top: 16px;
}

.auth-field:first-of-type {
  margin-top: 20px;
}

.auth-field .input {
  height: 45px;
}

.auth-error {
  margin: 13px 0 0;
  padding: 8px 10px;
  border-left: 2px solid var(--accent);
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 10.5px;
  line-height: 1.65;
}

.auth-notice {
  margin-top: 17px;
  padding: 10px 12px;
  border-left: 2px solid var(--gold);
  background: #f0e8d9;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.8;
}

.auth-notice code {
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 9px;
}

.modal-panel--confirm {
  max-width: 448px;
  padding: 32px;
  box-shadow: 9px 9px 0 rgba(18, 14, 10, 0.2), var(--shadow-md);
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex: 0 0 auto;
  padding: 22px 28px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
}

.modal-head .eyebrow {
  margin-bottom: 5px;
}

.modal-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.modal-close {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-soft);
  transition: background 0.16s, color 0.16s, border-color 0.16s;
}

.modal-close:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.modal-close svg {
  width: 17px;
  height: 17px;
}

.modal-close--floating {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
  border-color: rgba(27, 23, 18, 0.25);
  background: rgba(250, 247, 239, 0.9);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

/* ---------- Editor ---------- */

#recordForm {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.editor-body {
  display: grid;
  flex: 1;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 36px;
  min-height: 0;
  padding: 27px 30px 30px;
  overflow: auto;
}

.cover-field {
  min-width: 0;
}

.field-label {
  display: block;
  margin-bottom: 7px;
  color: var(--ink-soft);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.5;
}

.field-label em {
  color: var(--accent);
  font-style: normal;
}

.field-optional {
  float: right;
  color: var(--muted-2);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0;
}

.drop-zone {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px dashed var(--line-strong);
  background: var(--paper-3);
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s;
}

.drop-zone:hover,
.drop-zone:focus-visible {
  border-color: var(--ink);
  background: #eee6d7;
}

.drop-zone.is-dragover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.cover-preview {
  width: 100%;
  height: 100%;
}

.cover-preview > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cover-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 20px;
  color: var(--muted);
  text-align: center;
}

.cover-placeholder svg {
  width: 45px;
  height: 45px;
  margin-bottom: 14px;
  color: var(--muted-2);
}

.cover-placeholder strong {
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 600;
}

.cover-placeholder span {
  margin-top: 5px;
  color: var(--muted-2);
  font-size: 9px;
}

.drop-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(187, 63, 40, 0.88);
  color: #fff7e7;
  font-size: 12px;
  letter-spacing: 0.05em;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
}

.drop-zone.is-dragover .drop-overlay {
  opacity: 1;
}

.image-field {
  min-width: 0;
}

.image-field-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 7px;
}

.image-field-head .field-label {
  margin-bottom: 0;
}

.image-count {
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.04em;
}

.image-editor {
  aspect-ratio: auto;
  min-height: 270px;
  padding: 8px;
  overflow: hidden;
  border: 1px dashed var(--line-strong);
  background: #eee6d7;
  cursor: default;
}

.image-editor:hover {
  background: #eee6d7;
}

.image-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.image-grid.is-empty {
  grid-template-columns: 1fr;
}

.image-tile {
  position: relative;
  aspect-ratio: 1;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(27, 23, 18, 0.35);
  background: #d8cfbf;
}

.image-tile > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-tile-badge {
  position: absolute;
  top: 5px;
  left: 5px;
  z-index: 1;
  padding: 2px 5px;
  background: rgba(250, 247, 239, 0.94);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 6.5px;
  letter-spacing: 0.05em;
}

.image-tile-actions {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  display: flex;
  background: rgba(27, 23, 18, 0.86);
  transform: translateY(100%);
  transition: transform 0.16s var(--ease);
}

.image-tile:hover .image-tile-actions,
.image-tile:focus-within .image-tile-actions {
  transform: translateY(0);
}

.image-tile-actions button {
  flex: 1;
  height: 25px;
  padding: 0 2px;
  border: 0;
  background: transparent;
  color: var(--paper);
  font-size: 7px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.image-tile-actions button:hover {
  background: rgba(242, 237, 226, 0.16);
}

.image-tile-actions button + button {
  border-left: 1px solid rgba(242, 237, 226, 0.2);
}

.image-add-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 100%;
  min-width: 0;
  aspect-ratio: 1;
  padding: 8px;
  border: 1px dashed var(--line-strong);
  background: rgba(250, 247, 239, 0.4);
  color: var(--muted);
  transition: border-color 0.16s, background 0.16s, color 0.16s;
}

.image-add-tile:hover {
  border-color: var(--ink);
  background: rgba(250, 247, 239, 0.8);
  color: var(--ink);
}

.image-add-tile svg {
  width: 24px;
  height: 24px;
  color: var(--muted-2);
}

.image-add-tile strong {
  font-size: 9.5px;
  font-weight: 600;
  line-height: 1.3;
}

.image-add-tile small {
  color: var(--muted-2);
  font-size: 7.5px;
  line-height: 1.3;
}

.image-grid.is-empty .image-add-tile {
  min-height: 252px;
}

.image-grid.is-empty .image-add-tile strong {
  font-size: 11px;
}

.image-grid.is-empty .image-add-tile small {
  display: block;
  font-size: 9px;
}

.field-hint.is-busy {
  color: var(--accent-dark);
}

.cover-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
}

.field-hint {
  margin: 9px 0 0;
  color: var(--muted-2);
  font-size: 9.5px;
  line-height: 1.65;
}

.form-fields {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.field {
  position: relative;
  min-width: 0;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.category-choice {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.category-option {
  position: relative;
  display: block;
  cursor: pointer;
}

.category-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.category-option-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: 56px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  background: #fffdf7;
  transition: background 0.16s, border-color 0.16s, color 0.16s, box-shadow 0.16s;
}

.category-option-body strong {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
}

.category-option-body small {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.5;
}

.category-option:hover .category-option-body {
  border-color: var(--line-strong);
}

.category-option input:checked + .category-option-body {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
  box-shadow: 3px 3px 0 rgba(27, 23, 18, 0.12);
}

.category-option input:checked + .category-option-body small {
  color: rgba(242, 237, 226, 0.62);
}

.category-option input:focus-visible + .category-option-body {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.input {
  display: block;
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 0;
  outline: 0;
  background: #fffdf7;
  color: var(--ink);
  font-size: 12px;
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
}

.input:hover {
  border-color: rgba(27, 23, 18, 0.4);
}

.input:focus {
  border-color: var(--ink);
  background: #fffefb;
  box-shadow: 3px 3px 0 rgba(27, 23, 18, 0.07);
}

.input::placeholder {
  color: #aaa091;
}

.input--title {
  height: 49px;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.input-prefix {
  position: relative;
}

.input-prefix > span {
  position: absolute;
  top: 50%;
  left: 12px;
  z-index: 1;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  transform: translateY(-50%);
}

.input-prefix .input {
  padding-left: 28px;
}

.select-wrap--field {
  min-width: 0;
}

.select-wrap--field select {
  height: 44px;
  background: #fffdf7;
  border-color: var(--line);
  font-size: 12px;
}

.textarea {
  height: auto;
  min-height: 92px;
  padding: 10px 12px 22px;
  line-height: 1.75;
  resize: vertical;
}

.char-count {
  position: absolute;
  right: 10px;
  bottom: 5px;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 8px;
  pointer-events: none;
}

.rating-field {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 38px;
}

.star-input {
  display: flex;
  gap: 1px;
}

.star-input button {
  padding: 1px;
  border: 0;
  background: transparent;
  color: #c8bfb0;
  font-size: 23px;
  line-height: 1;
  transition: color 0.12s, transform 0.12s;
}

.star-input button:hover,
.star-input button.is-preview {
  color: var(--gold);
  transform: translateY(-1px);
}

.star-input button.is-on {
  color: var(--gold);
}

.rating-readout {
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
}

.field-error {
  display: none;
  margin-top: 5px;
  color: var(--accent);
  font-size: 10px;
}

.field.has-error .input {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-soft);
}

.field.has-error .field-error {
  display: block;
}

.modal-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex: 0 0 auto;
  padding: 16px 30px;
  border-top: 1px solid var(--line);
  background: rgba(250, 247, 239, 0.97);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.save-hint {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
}

.modal-foot-actions {
  display: flex;
  gap: 9px;
}

/* ---------- Detail ---------- */

.detail-body {
  display: grid;
  flex: 1;
  grid-template-columns: 370px minmax(0, 1fr);
  align-items: start;
  gap: 40px;
  min-height: 0;
  padding: 34px;
  overflow: auto;
}

.detail-visual {
  min-width: 0;
}

.detail-caption {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 13px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.07em;
  line-height: 1.5;
}

.detail-thumbs {
  display: flex;
  gap: 6px;
  margin-top: 10px;
  padding-bottom: 2px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.detail-thumbs button {
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--paper-3);
  opacity: 0.58;
  overflow: hidden;
  transition: opacity 0.16s, border-color 0.16s;
}

.detail-thumbs button:hover {
  opacity: 0.86;
}

.detail-thumbs button.is-active {
  border-color: var(--accent);
  opacity: 1;
}

.detail-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-cover {
  cursor: zoom-in;
}

.detail-cover {
  position: relative;
  aspect-ratio: 1;
  border: 1px solid var(--ink);
  box-shadow: 10px 12px 0 rgba(27, 23, 18, 0.09);
  overflow: hidden;
}

.detail-content {
  min-width: 0;
  padding: 8px 4px 0 0;
}

.detail-content .eyebrow {
  margin-bottom: 10px;
}

.detail-content h2 {
  overflow-wrap: anywhere;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(31px, 3.9vw, 45px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.12;
  text-wrap: balance;
}

.detail-artist {
  margin: 9px 0 0;
  color: var(--ink-soft);
  font-size: 15px;
  letter-spacing: 0.01em;
}

.detail-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 13px;
  color: var(--gold);
  font-size: 13px;
  letter-spacing: 2px;
}

.detail-rating .off {
  color: var(--line-strong);
}

.detail-rating small {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.04em;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 15px;
}

.detail-tags span {
  padding: 3px 8px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 9px;
  line-height: 1.5;
}

.detail-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 22px 0 0;
  border-top: 1px solid var(--line);
}

.detail-meta > div {
  min-width: 0;
  padding: 10px 8px 10px 0;
  border-bottom: 1px solid var(--line);
}

.detail-meta > div:nth-child(even) {
  padding-left: 12px;
  border-left: 1px solid var(--line);
}

.detail-meta dt {
  color: var(--muted-2);
  font-size: 8.5px;
  letter-spacing: 0.06em;
  line-height: 1.5;
}

.detail-meta dd {
  overflow: hidden;
  margin: 3px 0 0;
  color: var(--ink-soft);
  font-size: 11.5px;
  line-height: 1.55;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-notes {
  margin-top: 20px;
  padding: 14px 16px;
  border-left: 2px solid var(--accent);
  background: #eee6d7;
}

.detail-notes h3 {
  margin: 0 0 5px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.1em;
}

.detail-notes p {
  margin: 0;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 13px;
  line-height: 1.85;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.detail-notes p.is-empty {
  color: var(--muted-2);
  font-family: var(--sans);
  font-size: 11px;
}

.detail-actions {
  display: flex;
  gap: 9px;
  margin-top: 24px;
}

.detail-actions .button {
  height: 40px;
  font-size: 11px;
}

/* ---------- Stats ---------- */

.stats-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 28px 30px 34px;
}

.stats-intro {
  margin: 0 0 22px;
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.65;
}

.stats-intro strong {
  color: var(--accent);
  font-weight: 600;
}

.insight-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.insight-card {
  min-width: 0;
  padding: 17px 17px 16px;
  background: var(--paper-2);
}

.insight-card span {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.05em;
}

.insight-card strong {
  display: block;
  overflow: hidden;
  margin-top: 5px;
  font-family: var(--serif);
  font-size: 29px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.insight-card small {
  display: block;
  margin-top: 5px;
  color: var(--muted-2);
  font-size: 8.5px;
  line-height: 1.5;
}

.chart-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 31px;
}

.chart-block {
  min-width: 0;
}

.chart-block--wide {
  grid-column: 1 / -1;
}

.chart-block h3 {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 13px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--ink);
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
}

.chart-block h3 small {
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 7.5px;
  font-weight: 400;
  letter-spacing: 0.07em;
}

.bar-row {
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 9px;
  margin-bottom: 9px;
}

.bar-label {
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bar-track {
  height: 8px;
  background: #e7dfd0;
}

.bar-fill {
  height: 100%;
  background: var(--ink);
  transform-origin: left center;
  animation: barGrow 0.7s var(--ease) both;
}

.bar-row:nth-child(3n) .bar-fill {
  background: var(--accent);
}

.bar-row:nth-child(4n) .bar-fill {
  background: var(--olive);
}

@keyframes barGrow {
  from { transform: scaleX(0); }
}

.bar-value {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  text-align: right;
}

.decade-row {
  display: flex;
  align-items: flex-end;
  gap: 7px;
  height: 115px;
  margin-top: 17px;
  padding-top: 8px;
  border-bottom: 1px solid var(--line-strong);
}

.decade-col {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  min-width: 0;
}

.decade-col .decade-bar {
  width: 100%;
  max-width: 36px;
  min-height: 3px;
  background: var(--ink);
  animation: decadeGrow 0.7s var(--ease) both;
  transform-origin: bottom;
}

.decade-col:nth-child(even) .decade-bar {
  background: var(--accent);
}

@keyframes decadeGrow {
  from { transform: scaleY(0); }
}

.decade-col span {
  margin-top: 6px;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 7px;
}

.decade-col strong {
  margin-bottom: 4px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 7.5px;
  font-weight: 400;
}

.stats-empty {
  padding: 54px 20px;
  border: 1px dashed var(--line-strong);
  color: var(--muted);
  font-family: var(--serif);
  font-size: 19px;
  text-align: center;
}

.chart-empty {
  margin: 0;
  padding: 28px 18px;
  border: 1px dashed var(--line);
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.8;
  text-align: center;
}

.stats-foot {
  margin: 28px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 8.5px;
  line-height: 1.7;
}

/* ---------- About ---------- */

.about-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 26px 30px 32px;
}

.about-lead {
  margin: 0 0 20px;
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.65;
}

.about-block {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.about-block h3 {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.about-block p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.85;
}

.share-row {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.share-row input {
  flex: 1;
  min-width: 0;
  height: 39px;
  padding: 0 10px;
  border: 1px solid var(--line);
  background: #fffdf7;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
}

.share-row .button {
  height: 39px;
  flex: 0 0 auto;
  font-size: 10px;
}

.about-note {
  margin-top: 12px;
  padding: 10px 12px;
  border-left: 2px solid var(--gold);
  background: #f0e8d9;
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.75;
}

.about-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-top: 19px;
}

.about-actions .button {
  height: 38px;
  font-size: 10px;
}

.about-actions .text-button {
  margin-left: auto;
}

/* ---------- Confirm ---------- */

.confirm-kicker {
  margin: 0 0 7px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.12em;
}

.modal-panel--confirm h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.confirm-message {
  margin: 11px 0 0;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 25px;
}

.confirm-actions--three {
  display: grid;
  grid-template-columns: 0.8fr 1fr 1fr;
}

.confirm-actions--three .button {
  padding: 0 10px;
  font-size: 11px;
}

.confirm-actions .button {
  height: 40px;
}

/* ---------- Toast ---------- */

.toast-region {
  position: fixed;
  bottom: 24px;
  left: 50%;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  width: min(90vw, 520px);
  transform: translateX(-50%);
  pointer-events: none;
}

body.is-locked .toast-region {
  bottom: 118px;
}

.toast {
  display: flex;
  align-items: center;
  gap: 9px;
  max-width: 100%;
  padding: 10px 15px;
  border: 1px solid rgba(242, 237, 226, 0.22);
  background: var(--ink);
  box-shadow: 0 10px 30px rgba(20, 16, 11, 0.24);
  color: var(--paper);
  font-size: 11px;
  line-height: 1.5;
  text-align: left;
  animation: toastIn 0.25s var(--ease) both;
  pointer-events: auto;
}

.toast.is-leaving {
  animation: toastOut 0.2s ease forwards;
}

.toast::before {
  content: "";
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #9fb78d;
}

.toast--error::before {
  background: #e48c77;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(8px); }
}

@keyframes toastOut {
  to { opacity: 0; transform: translateY(5px); }
}

/* ---------- Guest ---------- */

body.is-readonly .edit-only,
body.is-readonly #heroAddBtn {
  display: none !important;
}

body.is-readonly .detail-actions {
  display: none;
}

/* ---------- Responsive ---------- */

@media (max-width: 1120px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) 370px;
  }

  .hero-art {
    width: 370px;
    height: 330px;
  }

  .hero-sleeve {
    width: 260px;
    height: 260px;
    padding: 18px 19px 15px;
  }

  .sleeve-number {
    font-size: 88px;
  }

  .hero-vinyl {
    width: 258px;
    height: 258px;
    top: 31px;
  }

  .vinyl-label {
    width: 84px;
    height: 84px;
  }

  .vinyl-label strong {
    font-size: 23px;
  }

  .now-spinning {
    width: 64px;
    height: 64px;
    font-size: 6px;
  }

  .ledger {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .ledger-quote {
    display: none;
  }

  .record-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .list-head,
  .record-row {
    grid-template-columns: 58px minmax(160px, 2fr) minmax(100px, 1fr) 74px 76px 76px 88px 24px;
    gap: 12px;
  }
}

@media (max-width: 900px) {
  .header-inner {
    padding: 0 22px;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 15px;
    padding: 56px 22px 48px;
  }

  .hero h1 {
    font-size: clamp(40px, 6vw, 58px);
  }

  .hero-lede {
    font-size: 13px;
  }

  .hero-art {
    width: 310px;
    height: 290px;
  }

  .hero-sleeve {
    width: 218px;
    height: 218px;
    padding: 15px 16px 13px;
  }

  .sleeve-number {
    margin-top: 10px;
    font-size: 73px;
  }

  .sleeve-number sup {
    font-size: 22px;
  }

  .sleeve-bottom {
    font-size: 6px;
  }

  .sleeve-stamp {
    width: 38px;
    height: 38px;
    font-size: 5.5px;
  }

  .hero-vinyl {
    width: 218px;
    height: 218px;
    top: 29px;
    right: 0;
  }

  .vinyl-label {
    width: 72px;
    height: 72px;
  }

  .vinyl-label strong {
    font-size: 19px;
  }

  .vinyl-label-top,
  .vinyl-label-bottom {
    font-size: 4px;
  }

  .now-spinning {
    width: 55px;
    height: 55px;
    right: 6px;
    bottom: 3px;
    font-size: 5.5px;
  }

  .ledger {
    margin: 0 22px;
  }

  .ledger-item {
    padding: 18px 16px 19px;
  }

  .ledger-index {
    top: 19px;
    right: 13px;
  }

  .collection {
    padding: 68px 22px 92px;
  }

  .filter-bar {
    flex-wrap: wrap;
  }

  .search-box {
    flex-basis: 100%;
  }

  .select-wrap {
    flex: 1 1 0;
    min-width: 0;
  }

  .editor-body {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 25px;
    padding: 23px 24px 26px;
  }

  .detail-body {
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 28px;
    padding: 28px;
  }

  .detail-content h2 {
    font-size: 33px;
  }

  .chart-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .chart-block--wide {
    grid-column: auto;
  }

  .list-head,
  .record-row {
    grid-template-columns: 54px minmax(150px, 2fr) 76px 24px;
  }

  .list-head > :nth-child(3),
  .list-head > :nth-child(4),
  .list-head > :nth-child(6),
  .list-head > :nth-child(7),
  .record-row > :nth-child(3),
  .record-row > :nth-child(4),
  .record-row > :nth-child(6),
  .record-row > :nth-child(7) {
    display: none;
  }
}

@media (max-width: 760px) {
  .header-inner {
    height: 65px;
    padding: 0 17px;
  }

  .brand-mark {
    width: 31px;
    height: 31px;
  }

  .brand-type strong {
    font-size: 19px;
  }

  .brand-type small {
    font-size: 6.5px;
    margin-top: 5px;
  }

  .header-actions {
    gap: 5px;
  }

  .mode-badge {
    width: 26px;
    height: 26px;
    padding: 0;
    justify-content: center;
  }

  .mode-badge span {
    display: none;
  }

  .header-stats span {
    display: none;
  }

  .header-stats {
    min-width: 34px;
    padding: 0 7px;
  }

  #addBtn {
    height: 38px;
    padding: 0 12px;
  }

  #addBtn span {
    display: none;
  }

  #addBtn svg {
    width: 19px;
    height: 19px;
  }

  .hero {
    display: block;
    padding: 39px 18px 37px;
  }

  .hero h1 {
    font-size: clamp(38px, 10.8vw, 49px);
  }

  .hero-art {
    display: none;
  }

  .hero-lede {
    margin-top: 22px;
    font-size: 12.5px;
  }

  .hero-lede br {
    display: none;
  }

  .hero-actions {
    gap: 18px;
    margin-top: 25px;
  }

  .hero-actions .button {
    height: 43px;
    padding: 0 16px;
  }

  .ledger {
    grid-template-columns: 1fr 1fr;
    margin: 0 18px;
  }

  .ledger-item {
    border-bottom: 1px solid var(--line);
  }

  .ledger-item:nth-child(2n) {
    border-right: 0;
  }

  .ledger-item:nth-child(3),
  .ledger-item:nth-child(4) {
    border-bottom: 0;
  }

  .ledger-item strong {
    font-size: 36px;
  }

  .collection {
    padding: 60px 18px 76px;
  }

  .cabinet-switch {
    gap: 8px;
    margin-bottom: 36px;
  }

  .cabinet-tab {
    padding: 12px 12px 14px;
  }

  .cabinet-tab-top {
    padding-bottom: 8px;
  }

  .cabinet-tab-index,
  .cabinet-tab-en {
    font-size: 6px;
  }

  .cabinet-tab-main {
    margin-top: 9px;
  }

  .cabinet-tab-main strong {
    font-size: clamp(20px, 5.6vw, 24px);
  }

  .cabinet-tab-count {
    font-size: 23px;
  }

  .cabinet-tab-desc {
    display: none;
  }

  .section-heading {
    align-items: flex-end;
  }

  .section-heading h2 {
    font-size: 34px;
  }

  .section-desc {
    font-size: 10.5px !important;
  }

  .result-bar {
    align-items: flex-start;
  }

  .result-actions {
    gap: 10px;
  }

  .auth-body {
    padding: 20px 18px 15px;
  }

  .auth-intro {
    font-size: 17px;
  }

  .filter-bar {
    margin-top: 23px;
  }

  .format-tabs {
    gap: 23px;
    margin-top: 22px;
  }

  .record-grid {
    grid-template-columns: 1fr 1fr;
    gap: 27px 14px;
  }

  .card-title {
    font-size: 16px;
  }

  .card-artist {
    font-size: 11px;
  }

  .card-foot {
    margin-top: 7px;
    padding-top: 6px;
  }

  .card-facts {
    font-size: 7.5px;
  }

  .card-tags {
    display: none;
  }

  .empty-inner {
    padding: 48px 18px 52px;
  }

  .empty-disc {
    width: 118px;
    height: 118px;
  }

  .empty-disc::before {
    width: 38px;
    height: 38px;
  }

  .empty-inner h3 {
    font-size: 25px;
  }

  .empty-actions {
    flex-direction: column;
    gap: 16px;
  }

  .footer-inner {
    flex-wrap: wrap;
    gap: 15px;
    padding: 25px 18px;
  }

  .footer-note {
    order: 3;
    flex-basis: 100%;
    padding-top: 13px;
    border-top: 1px solid var(--line);
  }

  .modal {
    padding: 10px;
  }

  .modal-panel {
    max-height: calc(100dvh - 20px);
    box-shadow: 7px 7px 0 rgba(18, 14, 10, 0.18);
  }

  .modal-head {
    padding: 17px 18px 15px;
  }

  .modal-head h2 {
    font-size: 23px;
  }

  .editor-body {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 19px 18px 23px;
  }

  .cover-field {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    grid-template-rows: auto auto 1fr;
    column-gap: 14px;
    align-items: start;
  }

  .cover-field > .field-label {
    grid-column: 1 / -1;
  }

  .drop-zone {
    grid-column: 1;
    grid-row: 2 / 4;
    width: 132px;
  }

  .cover-placeholder {
    padding: 8px;
  }

  .cover-placeholder svg {
    width: 28px;
    height: 28px;
    margin-bottom: 7px;
  }

  .cover-placeholder strong {
    font-size: 9.5px;
  }

  .cover-placeholder span {
    display: none;
  }

  .cover-tools {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-top: 2px;
  }

  .cover-field > .field-hint {
    grid-column: 2;
    grid-row: 3;
    align-self: end;
    margin-top: 10px;
  }

  .image-field {
    display: block;
  }

  .image-field .drop-zone {
    grid-column: auto;
    grid-row: auto;
    width: 100%;
  }

  .image-field .field-hint {
    grid-column: auto;
    grid-row: auto;
    margin-top: 9px;
  }

  .image-editor {
    min-height: 185px;
  }

  .image-grid {
    grid-template-columns: 1fr 1fr;
  }

  .image-grid.is-empty .image-add-tile {
    min-height: 168px;
  }

  .image-tile-actions {
    transform: translateY(0);
  }

  .image-tile-actions button {
    height: 27px;
    font-size: 8px;
  }

  .detail-thumbs button {
    width: 58px;
    height: 58px;
  }

  .lightbox-close {
    top: 12px;
    right: 12px;
  }

  .lightbox-nav {
    width: 38px;
    height: 50px;
  }

  .lightbox-prev {
    left: 8px;
  }

  .lightbox-next {
    right: 8px;
  }

  .lightbox-figure img {
    max-width: 88vw;
    max-height: 78vh;
  }

  .field-row {
    grid-template-columns: 1fr 1fr;
    gap: 11px;
  }

  .modal-foot {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 10px;
    padding: 13px 18px;
  }

  .save-hint {
    text-align: center;
  }

  .modal-foot-actions {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
  }

  .detail-body {
    display: block;
    padding: 18px;
  }

  .detail-visual {
    width: min(100%, 310px);
    margin: 0 auto 24px;
  }

  .detail-cover {
    width: 100%;
    margin: 0;
    box-shadow: 7px 8px 0 rgba(27, 23, 18, 0.08);
  }

  .detail-content {
    padding: 0;
  }

  .detail-content h2 {
    font-size: 31px;
  }

  .detail-meta {
    margin-top: 17px;
  }

  .stats-body {
    padding: 20px 18px 26px;
  }

  .insight-grid {
    grid-template-columns: 1fr 1fr;
  }

  .insight-card:first-child {
    grid-column: 1 / -1;
  }

  .about-body {
    padding: 20px 18px 25px;
  }

  .about-lead {
    font-size: 17px;
  }

  .share-row {
    flex-direction: column;
  }

  .share-row .button {
    align-self: flex-start;
  }

  .about-actions .text-button {
    margin-left: 0;
  }

  .record-list {
    border-top: 0;
  }

  .list-head {
    display: none;
  }

  .record-row {
    grid-template-columns: 56px minmax(0, 1fr) 48px 20px;
    gap: 10px;
    padding: 11px 2px;
  }

  .record-row > :nth-child(3),
  .record-row > :nth-child(4),
  .record-row > :nth-child(6),
  .record-row > :nth-child(7) {
    display: none;
  }

  .row-cover {
    width: 52px;
    height: 52px;
  }

  .row-title strong {
    font-size: 15px;
  }

  .toast-region {
    bottom: 15px;
  }
}

@media (max-width: 430px) {
  .brand-type small {
    display: none;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero-lede {
    font-size: 12px;
    line-height: 1.9;
  }

  .hero-actions {
    flex-wrap: wrap;
  }

  .ledger-item {
    padding: 15px 13px 16px;
  }

  .ledger-item strong {
    font-size: 33px;
  }

  .ledger-label {
    font-size: 9px;
  }

  .record-grid {
    gap: 23px 11px;
  }

  .card-title {
    font-size: 15px;
  }

  .card-rating {
    font-size: 8px;
  }

  .card-note {
    display: none;
  }

  .detail-actions {
    flex-direction: column;
  }

  .detail-actions .button {
    width: 100%;
  }

  .empty-actions .button {
    width: 100%;
  }

  .confirm-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

@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;
  }
}
