:root {
  --bg: #0f1218;
  --bg-soft: #171b24;
  --panel: rgba(20, 26, 36, 0.88);
  --text: #eff3fa;
  --muted: #97a3bb;
  --accent: #e85d3f;
  --accent-soft: #f08d74;
  --line: rgba(255, 255, 255, 0.1);
  --success: #2dc26b;
  --danger: #f4485c;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --drawer-handle: 2.2rem;
  --drawer-width: clamp(320px, 32vw, 380px);
  --drawer-open-offset: calc(var(--drawer-width) + 0.35rem);
  --drawer-top: 0;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
}

body.collection-site {
  --bg: #ece9e3;
  --bg-soft: #f5f2ec;
  --panel: rgba(255, 255, 255, 0.72);
  --shadow: 0 14px 34px rgba(68, 49, 30, 0.16);
}

body.modal-open {
  overflow: hidden;
}

.background-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 80% 10%, rgba(232, 93, 63, 0.26), transparent 40%),
    radial-gradient(circle at 20% 80%, rgba(63, 120, 232, 0.2), transparent 34%),
    linear-gradient(135deg, #0f1218 0%, #1b1f2c 100%);
  z-index: -1;
}

.collection-site .background-layer {
  background:
    radial-gradient(circle at 16% 10%, rgba(255, 255, 255, 0.78), transparent 34%),
    radial-gradient(circle at 82% 16%, rgba(255, 255, 255, 0.62), transparent 42%),
    linear-gradient(180deg, #eeebe5 0%, #e8e2d8 100%);
  background-repeat: no-repeat;
}

.drawer-pull {
  position: fixed;
  top: 0.85rem;
  left: 0.9rem;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(153, 188, 255, 0.62);
  background: linear-gradient(180deg, rgba(17, 23, 35, 0.95), rgba(10, 15, 24, 0.95));
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35);
  z-index: 56;
}

.drawer-pull::before {
  content: '';
  position: absolute;
  left: 50%;
  top: -20px;
  width: 2px;
  height: 20px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(196, 212, 243, 0.85), rgba(196, 212, 243, 0.2));
}

.drawer-pull::after {
  content: '♪';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: rgba(153, 188, 255, 0.95);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}

body.sidebar-open .drawer-pull {
  opacity: 0;
  pointer-events: none;
}

.hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 1.2rem 2rem;
  position: relative;
  z-index: 1;
  transition: margin-left 180ms ease, margin-right 180ms ease, max-width 180ms ease;
}

.hero-kicker {
  margin: 0;
  color: var(--accent-soft);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

h1 {
  margin: 0.4rem 0 0.6rem;
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.2rem, 6vw, 4rem);
  letter-spacing: 0.04em;
}

.hero-desc {
  margin: 0;
  color: var(--muted);
  max-width: 680px;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.2rem 2.6rem;
  display: grid;
  gap: 1rem;
}

.collection-layout {
  max-width: 1380px;
  grid-template-columns: 1fr;
  transition: margin-left 180ms ease, margin-right 180ms ease, width 180ms ease, max-width 180ms ease;
}

body.sidebar-open .hero {
  margin-left: calc(var(--drawer-open-offset) + 1.2rem);
  margin-right: 1.2rem;
  max-width: min(1100px, calc(100vw - var(--drawer-open-offset) - 2.4rem));
}

body.sidebar-open .collection-layout {
  margin-left: calc(var(--drawer-open-offset) + 1.2rem);
  margin-right: 1.2rem;
  width: calc(100vw - var(--drawer-open-offset) - 2.4rem);
  max-width: none;
}

body.collection-site.sidebar-open .collection-layout {
  margin-left: auto;
  margin-right: auto;
  width: auto;
  max-width: 1380px;
}

.scene-layout {
  min-height: 100vh;
  max-width: 1320px;
  padding-top: 1.9rem;
  padding-bottom: 3.4rem;
  display: grid;
  gap: 0.6rem;
}

.scene-panel {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 0;
}

.scene-panel::after {
  display: none;
}

.scene-meta {
  width: 1px;
  height: 1px;
  overflow: hidden;
}

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

.scene-photo {
  --scene-photo-url: url('/room-reference.jpg');
  position: relative;
  width: min(920px, 95vw);
  aspect-ratio: 576 / 768;
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(249, 246, 241, 0.9), rgba(230, 220, 202, 0.92));
  background-image: var(--scene-photo-url);
  background-size: cover;
  background-position: center;
  box-shadow: 0 24px 46px rgba(76, 56, 35, 0.22);
  overflow: hidden;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 1rem;
  backdrop-filter: blur(10px);
}

.panel.filters {
  backdrop-filter: blur(14px) saturate(135%);
  background: linear-gradient(
      180deg,
      rgba(22, 30, 44, 0.94) 0%,
      rgba(20, 26, 36, 0.9) 100%
    ),
    var(--panel);
  box-shadow:
    0 18px 46px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.sidebar-panel {
  position: fixed;
  left: 0;
  top: var(--drawer-top);
  bottom: 0;
  width: var(--drawer-width);
  height: 100vh;
  max-height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 50;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0;
  transform: translateX(-100%);
  transition: transform 180ms ease, box-shadow 180ms ease;
  will-change: transform;
}

.sidebar-panel.open,
.sidebar-panel.pinned {
  transform: translateX(0);
  box-shadow: 22px 0 42px rgba(0, 0, 0, 0.34);
}

.sidebar-head {
  display: flex;
  justify-content: space-between;
  gap: 0.7rem;
  margin-bottom: 0.8rem;
}

.sidebar-title {
  margin: 0;
  font-size: 1.1rem;
}

.sidebar-copy {
  margin: 0.3rem 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.sidebar-toggle {
  align-self: start;
  width: 52px;
  height: 52px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid rgba(139, 176, 255, 0.45);
  background: linear-gradient(180deg, rgba(15, 20, 30, 0.98), rgba(11, 16, 24, 0.98));
  transition: border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}

.sidebar-toggle:hover {
  border-color: rgba(168, 196, 255, 0.9);
}

.sidebar-toggle:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(93, 145, 255, 0.3);
}

.turntable-icon {
  position: relative;
  width: 32px;
  height: 32px;
  display: block;
}

.turntable-platter {
  position: absolute;
  inset: 2px;
  border-radius: 999px;
  border: 1px solid rgba(221, 234, 255, 0.5);
  background:
    radial-gradient(circle at center, rgba(188, 206, 236, 0.2) 0 20%, transparent 21% 100%),
    repeating-radial-gradient(
      circle at center,
      rgba(211, 227, 255, 0.16) 0 1px,
      rgba(15, 20, 30, 0.86) 1px 3px,
      rgba(9, 13, 20, 0.94) 3px 5px
    );
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 3px 9px rgba(0, 0, 0, 0.35);
}

.turntable-center {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #d9e5fb;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 1px rgba(10, 14, 21, 0.88);
}

.turntable-arm-base {
  position: absolute;
  right: 2px;
  top: 2px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  border: 1px solid rgba(217, 230, 255, 0.7);
  background: linear-gradient(180deg, rgba(39, 46, 59, 0.98), rgba(24, 29, 39, 0.98));
  z-index: 3;
}

.turntable-arm,
.turntable-head {
  position: absolute;
  right: 5px;
  top: 5px;
  transform-origin: calc(100% - 1px) 1px;
  transition: transform 180ms ease;
  z-index: 4;
}

.turntable-arm {
  width: 13px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(227, 236, 255, 0.9), rgba(180, 197, 226, 0.9));
  transform: rotate(14deg);
}

.turntable-head {
  width: 5px;
  height: 5px;
  border-radius: 2px;
  border: 1px solid rgba(221, 234, 255, 0.86);
  background: rgba(26, 32, 43, 0.96);
  transform: rotate(14deg) translateX(-11px) translateY(-1px);
}

.sidebar-toggle[data-pinned='true'] .turntable-arm {
  transform: rotate(-34deg);
}

.sidebar-toggle[data-pinned='true'] .turntable-head {
  transform: rotate(-34deg) translateX(-11px) translateY(0);
}

.sidebar-toggle[data-pinned='true'] {
  border-color: rgba(232, 93, 63, 0.75);
  background: linear-gradient(180deg, rgba(29, 22, 20, 0.98), rgba(21, 16, 15, 0.98));
}

.sidebar-filter-grid {
  grid-template-columns: 1fr;
  gap: 0.8rem;
}

.sidebar-filter-grid .filter-group,
.sidebar-filter-grid .sidebar-filter-actions {
  grid-column: 1 / -1;
}

.filter-group {
  border: 1px solid rgba(147, 182, 255, 0.2);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(10, 14, 22, 0.72), rgba(10, 14, 22, 0.52));
  padding: 0.62rem 0.64rem 0.7rem;
}

.filter-group-search {
  padding-bottom: 0.64rem;
}

.filter-group-title {
  margin: 0 0 0.56rem;
  color: #d2ddf3;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.filter-group-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.54rem;
}

.sort-stack {
  display: grid;
  gap: 0.56rem;
}

.choice-group {
  display: grid;
  gap: 0.38rem;
}

.segmented-label {
  margin: 0;
  color: #dbe6fb;
  font-size: 0.78rem;
  font-weight: 600;
}

.choice-options {
  display: grid;
  gap: 0.45rem;
}

.choice-options.sort-options {
  grid-template-columns: 1fr;
}

.choice-options.order-options {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.choice-chip {
  position: relative;
  display: block;
}

.choice-chip input[type='radio'] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice-chip span {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 30px;
  border: none;
  border-radius: 0;
  background: transparent;
  color: rgba(224, 232, 245, 0.94);
  padding: 0.18rem 0.12rem;
  font-size: 0.84rem;
  cursor: pointer;
  transition: color 120ms ease;
}

.choice-chip span::before {
  content: '';
  width: 14px;
  height: 14px;
  border: 1px solid rgba(199, 213, 241, 0.58);
  border-radius: 4px;
  background: rgba(10, 14, 22, 0.78);
  flex-shrink: 0;
}

.choice-chip:hover span {
  color: #f5f8ff;
}

.choice-chip input[type='radio']:checked + span {
  border-color: transparent;
  background: transparent;
  color: #ffffff;
  font-weight: 600;
}

.choice-chip input[type='radio']:checked + span::before {
  border-color: rgba(232, 93, 63, 0.88);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath fill='none' stroke='%23ffffff' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round' d='M1.6 5.1 3.8 7.2 8.4 2.7'/%3E%3C/svg%3E")
      center/10px 10px no-repeat,
    rgba(232, 93, 63, 0.82);
}

.choice-chip input[type='radio']:focus-visible + span {
  outline: none;
}

.choice-chip input[type='radio']:focus-visible + span::before {
  outline: 2px solid rgba(232, 93, 63, 0.52);
  outline-offset: 1px;
}

.sidebar-filter-grid label {
  margin: 0;
  border: 1px solid rgba(147, 182, 255, 0.18);
  border-radius: 10px;
  background: rgba(9, 13, 19, 0.52);
  padding: 0.42rem 0.5rem 0.5rem;
  color: rgba(219, 228, 245, 0.92);
  transition: border-color 140ms ease, background 140ms ease;
}

.sidebar-filter-grid label:focus-within {
  border-color: rgba(147, 182, 255, 0.52);
  background: rgba(12, 18, 28, 0.78);
}

.sidebar-filter-grid input,
.sidebar-filter-grid select {
  min-height: 42px;
  margin-top: 0.1rem;
}

.sidebar-filter-grid .custom-select-trigger {
  min-height: 42px;
}

.sidebar-filter-actions {
  align-self: stretch;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.58rem;
  padding-top: 0.76rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.sidebar-filter-actions button {
  width: 100%;
}

.filter-grid,
.form-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

label {
  display: grid;
  gap: 0.3rem;
  color: var(--muted);
  font-size: 0.86rem;
}

input,
select,
textarea,
button {
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(15, 18, 24, 0.84);
  color: var(--text);
  padding: 0.6rem 0.7rem;
  font: inherit;
}

input,
select,
textarea {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

input:focus,
select:focus,
textarea:focus {
  outline: 1px solid var(--accent);
}

input[type='number'] {
  -moz-appearance: textfield;
}

input[type='number']::-webkit-outer-spin-button,
input[type='number']::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type='file'] {
  padding: 0.44rem 0.48rem;
}

input[type='file']::file-selector-button,
input[type='file']::-webkit-file-upload-button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  padding: 0.35rem 0.6rem;
  margin-right: 0.55rem;
  font: inherit;
  cursor: pointer;
}

input[type='checkbox'] {
  width: 18px;
  height: 18px;
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  margin: 0;
  transition: border-color 120ms ease, background-color 120ms ease;
}

input[type='checkbox']:hover {
  border-color: rgba(255, 255, 255, 0.86);
}

input[type='checkbox']:checked {
  border-color: rgba(232, 93, 63, 0.92);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='%23ffffff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' d='M2 6.2 4.8 9 10 3.4'/%3E%3C/svg%3E")
      center/12px 12px no-repeat,
    rgba(232, 93, 63, 0.12);
}

input[type='checkbox']:focus-visible {
  outline: 2px solid rgba(232, 93, 63, 0.75);
  outline-offset: 2px;
}

select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 100%;
  border-color: rgba(139, 176, 255, 0.44);
  background-color: rgba(15, 18, 24, 0.9);
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath fill='%2399bcff' d='M3.2 5.2 7 9l3.8-3.8.9.9L7 10.8 2.3 6.1z'/%3E%3C/svg%3E");
  background-repeat: no-repeat, no-repeat;
  background-position: center, right 0.72rem center;
  background-size: auto, 14px 14px;
  padding-right: 2.2rem;
  transition: border-color 120ms ease, box-shadow 120ms ease, background-color 120ms ease;
}

select:hover {
  border-color: rgba(163, 194, 255, 0.86);
}

select:focus {
  outline: none;
  border-color: rgba(153, 188, 255, 1);
  box-shadow: 0 0 0 2px rgba(93, 145, 255, 0.25);
  background-color: rgba(18, 23, 34, 0.95);
}

select:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

select option {
  background: #141a24;
  color: var(--text);
}

select optgroup {
  background: #121722;
  color: #b8c2d8;
  font-style: normal;
  font-weight: 700;
}

select.native-select-hidden {
  position: absolute !important;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.custom-select {
  position: relative;
  width: 100%;
}

.custom-select-trigger {
  width: 100%;
  min-height: 40px;
  border: 1px solid rgba(139, 176, 255, 0.44);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(19, 24, 35, 0.95), rgba(12, 17, 27, 0.95));
  color: var(--text);
  padding: 0.54rem 0.72rem;
  font: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  cursor: pointer;
  transition: border-color 120ms ease, box-shadow 120ms ease, background-color 120ms ease;
}

.custom-select-trigger:hover {
  border-color: rgba(163, 194, 255, 0.86);
}

.custom-select.open .custom-select-trigger,
.custom-select-trigger:focus-visible {
  outline: none;
  border-color: rgba(153, 188, 255, 1);
  box-shadow: 0 0 0 2px rgba(93, 145, 255, 0.25);
  background-color: rgba(18, 23, 34, 0.95);
}

.custom-select.is-disabled .custom-select-trigger {
  opacity: 0.52;
  cursor: not-allowed;
}

.custom-select-value {
  display: inline-block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.custom-select-arrow {
  color: #99bcff;
  font-size: 0.82rem;
  line-height: 1;
  transition: transform 120ms ease;
}

.custom-select.open .custom-select-arrow {
  transform: rotate(180deg);
}

.custom-select-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 0.32rem);
  z-index: 90;
  border: 1px solid rgba(153, 188, 255, 0.4);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(18, 23, 34, 0.98), rgba(12, 17, 27, 0.98));
  box-shadow: 0 18px 34px rgba(4, 7, 12, 0.45);
  padding: 0.3rem;
  max-height: 230px;
  overflow: auto;
  display: none;
}

.custom-select.open .custom-select-menu {
  display: block;
}

.custom-select-option {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--text);
  text-align: left;
  font: inherit;
  padding: 0.42rem 0.52rem;
  cursor: pointer;
}

.custom-select-option:hover {
  border-color: rgba(153, 188, 255, 0.45);
  background: rgba(93, 145, 255, 0.14);
}

.custom-select-option.active {
  border-color: rgba(232, 93, 63, 0.54);
  background: rgba(232, 93, 63, 0.14);
}

.custom-select-option:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

button {
  cursor: pointer;
  background: linear-gradient(135deg, #e85d3f, #ee7d5f);
  border: none;
  font-weight: 700;
}

button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

button.secondary {
  background: rgba(255, 255, 255, 0.08);
}

button.danger {
  background: linear-gradient(135deg, #c03d4f, #f4485c);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.collection-head {
  margin-bottom: 0.55rem;
}

h2 {
  margin: 0;
  font-size: 1.05rem;
}

.filter-actions,
.form-actions {
  display: flex;
  gap: 0.6rem;
}

.filter-actions {
  align-self: end;
}

.subtle {
  color: var(--muted);
  margin: 0.6rem 0 0;
  font-size: 0.88rem;
}

.vinyl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.9rem;
}

.collection-panel {
  background: linear-gradient(160deg, rgba(23, 29, 40, 0.95), rgba(15, 20, 29, 0.92));
  transition: none;
}

.wall-stage {
  position: absolute;
  left: 21.7%;
  top: 12.2%;
  width: 58%;
  display: block;
}

.wall-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid rgba(69, 52, 34, 0.2);
  background: rgba(255, 255, 255, 0.66);
  color: rgba(58, 43, 28, 0.76);
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.94rem;
  line-height: 1;
  box-shadow: 0 3px 8px rgba(44, 32, 18, 0.15);
  z-index: 2;
}

.wall-nav span {
  transform: translateY(-0.5px);
}

.wall-nav:hover:not(:disabled) {
  border-color: rgba(60, 45, 27, 0.34);
  background: rgba(255, 255, 255, 0.82);
}

.wall-nav:disabled {
  opacity: 0.3;
}

#prev-page.wall-nav {
  left: -10%;
}

#next-page.wall-nav {
  right: -10%;
}

.wall-surface {
  position: relative;
  width: 100%;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.wall-surface::before {
  content: none;
}

.wall-grid {
  position: relative;
  z-index: 1;
  width: 100%;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11.2% 7.2%;
}

.vinyl-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #0e1118;
  cursor: pointer;
  transition: transform 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}

.vinyl-card:hover {
  transform: translateY(-2px);
  border-color: rgba(147, 182, 255, 0.7);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.28);
}

.wall-grid .vinyl-card {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border: none;
  border-radius: 2px;
  background: transparent;
  overflow: hidden;
  box-shadow: 0 8px 14px rgba(34, 25, 14, 0.24);
  transform: none !important;
}

.wall-grid .vinyl-card:hover {
  transform: none !important;
  box-shadow: 0 9px 16px rgba(34, 25, 14, 0.27);
}

.wall-grid .vinyl-body {
  display: none;
}

.wall-grid .vinyl-cover {
  width: 100%;
  height: 100%;
  display: block;
  aspect-ratio: auto;
  object-fit: cover;
}

.vinyl-card:focus-visible {
  outline: 2px solid rgba(147, 182, 255, 0.9);
  outline-offset: 2px;
}

.vinyl-cover {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.06);
}

.vinyl-body {
  padding: 0.8rem;
  display: grid;
  gap: 0.45rem;
}

.vinyl-title {
  font-weight: 700;
  margin: 0;
}

.vinyl-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.tag {
  display: inline-block;
  font-size: 0.74rem;
  background: rgba(232, 93, 63, 0.2);
  color: var(--accent-soft);
  border-radius: 999px;
  padding: 0.12rem 0.5rem;
}

.full-width {
  grid-column: 1 / -1;
}

.hidden {
  display: none !important;
}

.empty-state {
  color: var(--muted);
  padding: 1rem 0.3rem 0.5rem;
}

.wall-page-indicator {
  display: flex;
  justify-content: center;
  padding-top: 0.5rem;
}

.wall-page-indicator p {
  margin: 0;
  color: var(--muted);
  min-width: 116px;
  text-align: center;
  font-size: 0.86rem;
}

.pagination {
  margin-top: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
}

.pagination p {
  margin: 0;
  color: var(--muted);
  min-width: 110px;
  text-align: center;
}

.media-console {
  display: none;
}

.admin-list {
  display: grid;
  gap: 0.55rem;
}

.admin-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.65rem;
  align-items: center;
}

.admin-row.selected {
  border-color: rgba(232, 93, 63, 0.55);
  background: rgba(255, 255, 255, 0.02);
  box-shadow: none;
}

.admin-row-main {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex: 1;
  min-width: 0;
  cursor: pointer;
}

.admin-row-main input[type='checkbox'] {
  flex-shrink: 0;
}

.admin-row p {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-row-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.admin-row button {
  padding: 0.4rem 0.65rem;
}

.batch-tools {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 0.7rem;
}

.batch-tools input[type='file'] {
  max-width: 260px;
}

.batch-tools select {
  min-width: 190px;
}

.batch-tools .custom-select {
  min-width: 190px;
}

.batch-tools label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--muted);
  font-size: 0.86rem;
}

.delete-confirm-dialog {
  width: min(560px, 100%);
  padding: 1.15rem;
}

.delete-confirm-dialog h2 {
  margin: 0.1rem 0 0.45rem;
  font-size: 1.2rem;
}

.detail-modal,
.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
}

.detail-modal {
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.detail-backdrop,
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 9, 14, 0.76);
  backdrop-filter: blur(4px);
}

.detail-dialog {
  position: relative;
  width: min(980px, 100%);
  max-height: calc(100vh - 2.5rem);
  margin: 0;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: linear-gradient(155deg, rgba(19, 27, 40, 0.98), rgba(14, 19, 28, 0.97));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  padding: 1rem;
}

.detail-close,
.lightbox-close {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(14, 19, 28, 0.74);
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1;
  padding: 0;
  display: grid;
  place-items: center;
  z-index: 2;
  font-family: inherit;
  font-weight: 500;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
  gap: 1rem;
}

.detail-cover-wrap {
  position: sticky;
  top: 0;
}

.detail-cover {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: zoom-in;
}

.detail-hint {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.detail-content h3 {
  margin: 0;
  font-size: 1.45rem;
}

.detail-content {
  display: grid;
  gap: 0.85rem;
}

.detail-header {
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.detail-subtitle {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

.detail-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.detail-pill {
  min-width: 120px;
  padding: 0.45rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(147, 182, 255, 0.36);
  background: rgba(93, 145, 255, 0.12);
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
}

.detail-pill span {
  color: rgba(201, 217, 255, 0.9);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.detail-pill strong {
  color: #eef4ff;
  font-size: 0.95rem;
}

.detail-facts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.fact-card,
.detail-tags-wrap,
.detail-notes-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  padding: 0.65rem 0.75rem;
}

.fact-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.fact-value {
  margin: 0.25rem 0 0;
  color: var(--text);
  font-size: 0.98rem;
}

.detail-tags {
  margin-top: 0.42rem;
}

.detail-tags .tag {
  background: rgba(147, 182, 255, 0.18);
  color: #dce8ff;
  font-size: 0.78rem;
}

.detail-notes-card {
  display: grid;
  gap: 0.35rem;
}

.detail-notes {
  margin: 0;
  color: rgba(228, 235, 247, 0.92);
  line-height: 1.45;
  white-space: pre-wrap;
}

.image-lightbox {
  z-index: 80;
  display: grid;
  place-items: center;
}

.lightbox-image {
  position: relative;
  z-index: 1;
  width: min(92vw, 1200px);
  max-height: 90vh;
  object-fit: contain;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.58);
}

.image-lightbox .lightbox-close {
  top: 1rem;
  right: 1rem;
}

@media (max-width: 1180px) {
  :root {
    --drawer-width: clamp(270px, 38vw, 330px);
    --drawer-open-offset: calc(var(--drawer-width) + 0.3rem);
  }

  .scene-photo {
    width: min(860px, 95vw);
  }

  .wall-nav {
    width: 22px;
    height: 22px;
    font-size: 0.86rem;
  }
}

@media (max-width: 900px) {
  :root {
    --drawer-width: min(86vw, 360px);
    --drawer-open-offset: 0px;
  }

  .drawer-pull {
    display: block;
    top: 0.75rem;
    left: 0.75rem;
  }

  body.sidebar-open::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 45;
    background: rgba(7, 10, 16, 0.46);
    backdrop-filter: blur(2px);
  }

  body.sidebar-open .drawer-pull {
    opacity: 1;
    pointer-events: auto;
  }

  body.sidebar-open .hero {
    margin-left: auto;
    margin-right: auto;
    max-width: 1100px;
  }

  body.sidebar-open .collection-layout {
    margin-left: auto;
    margin-right: auto;
    width: auto;
    max-width: 1380px;
  }

  .sidebar-panel,
  .panel.filters {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: var(--drawer-width);
    height: 100dvh;
    max-height: 100dvh;
    overflow-y: auto;
    overflow-x: hidden;
    transform: translateX(calc(-100% - 0.4rem));
    border: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0;
    z-index: 50;
  }

  .sidebar-panel.open,
  .sidebar-panel.pinned {
    transform: translateX(0);
    box-shadow: 22px 0 42px rgba(0, 0, 0, 0.34);
  }

  .sidebar-panel::after {
    display: none;
  }

  .sidebar-toggle {
    display: none;
  }

  .sidebar-panel .sidebar-copy {
    display: block;
  }

  .sidebar-panel .sidebar-filter-grid {
    display: grid;
    grid-template-columns: 1fr;
    padding-bottom: max(1rem, env(safe-area-inset-bottom));
  }

  .filter-group-grid {
    grid-template-columns: 1fr;
  }

  .filter-group-title {
    margin-bottom: 0.48rem;
  }

  .sidebar-filter-grid label {
    padding: 0.38rem 0.46rem 0.44rem;
  }

  .panel.filters {
    max-height: 100dvh;
  }

  .collection-panel {
    margin-left: 0;
  }

  .scene-layout {
    padding-top: 0.8rem;
  }

  .scene-photo {
    width: min(94vw, 680px);
  }

  .wall-stage {
    left: 21.7%;
    top: 12.2%;
    width: 58%;
  }

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

  .detail-layout {
    grid-template-columns: 1fr;
  }

  .detail-cover-wrap {
    position: static;
  }
}

@media (max-width: 620px) {
  .scene-photo {
    width: 96vw;
  }

  .wall-stage {
    left: 21.7%;
    top: 12.2%;
    width: 58%;
  }

  .wall-nav {
    width: 20px;
    height: 20px;
    font-size: 0.76rem;
  }

  #prev-page.wall-nav {
    left: -9%;
  }

  #next-page.wall-nav {
    right: -9%;
  }

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

  .detail-facts-grid {
    grid-template-columns: 1fr;
  }

  .detail-dialog {
    padding: 0.85rem;
    border-radius: 14px;
  }
}
