:root {
  --blue: #0639a6;
  --yellow: #ffd329;
  --dark: #141414;
  --wood: #5a3417;
  --wood-dark: #261206;
  --carpet: #263b4a;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  color: white;
  background:
    radial-gradient(circle at top, rgba(255,255,255,.08), transparent 35%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.03) 0 2px, transparent 2px 11px),
    var(--carpet);
}

.store-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--blue);
  border-bottom: 8px solid var(--yellow);
  box-shadow: 0 4px 20px rgba(0,0,0,.35);
}
.search-sort-bar {
  display: flex;
  gap: 8px;
  padding: 0 24px 14px;
}

.search-sort-bar input,
.search-sort-bar select {
  background: rgba(255,255,255,.1);
  border: 2px solid var(--yellow);
  color: white;
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 800;
  font-size: 0.85rem;
  outline: none;
  cursor: pointer;
}

.search-sort-bar input {
  flex: 1;
}

.search-sort-bar input::placeholder {
  color: rgba(255,255,255,.5);
}

.search-sort-bar select option {
  background: #1a1a2e;
  color: white;
}
.marquee {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px 10px;
  letter-spacing: .06em;
}

.marquee span {
  color: var(--yellow);
  font-size: clamp(2rem, 7vw, 5.5rem);
  font-weight: 900;
  line-height: .85;
  text-shadow: 4px 4px 0 rgba(0,0,0,.35);
}


.marquee small {
  font-weight: 800;
  color: white;
  text-align: right;
}

.top-controls {
  display: flex;
  gap: 8px;
  padding: 0 24px 16px;
  overflow-x: auto;
}

.top-controls button {
  border: 2px solid var(--yellow);
  background: transparent;
  color: white;
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.top-controls button.active,
.top-controls button:hover {
  background: var(--yellow);
  color: var(--blue);
}

main { padding-bottom: 48px; }

.aisle-sign {
  width: min(1100px, calc(100% - 32px));
  margin: 26px auto 14px;
  padding: 16px 20px;
  background: rgba(0,0,0,.45);
  border: 2px solid rgba(255,255,255,.25);
  border-radius: 12px;
}

.aisle-sign h1,
.aisle-sign h2 { margin: 0 0 4px; color: var(--yellow); }
.aisle-sign p { margin: 0; color: rgba(255,255,255,.85); }
.aisle-sign code { color: var(--yellow); }

.shelf-wrap {
  width: min(1200px, calc(100% - 24px));
  margin: 0 auto;
  padding: 28px 14px 18px;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.05)),
    linear-gradient(90deg, #6b3d1b, #3a1c08 18%, #7b461e 48%, #2a1306 100%);
  box-shadow: inset 0 0 0 4px rgba(255,255,255,.06), 0 12px 35px rgba(0,0,0,.45);
  overflow-x: auto;
}

.shelf {
  min-height: 345px;
  display: flex;
  align-items: flex-end;
  gap: 5px;
  padding: 34px 24px 26px;
  border-bottom: 28px solid var(--wood);
  background:
    linear-gradient(180deg, transparent calc(100% - 28px), var(--wood-dark) calc(100% - 28px)),
    rgba(0,0,0,.22);
  perspective: 900px;
}
.shelf.multi-row {
  flex-wrap: wrap;
}

.shelf:not(.multi-row) {
  flex-wrap: nowrap;
  overflow-x: auto;
}

.case {
  position: relative;
  flex: 0 0 auto;
  --spine-width: 36px;
  --case-height: 260px;
  --open-width: 430px;
  width: var(--spine-width);
  height: var(--case-height);
  transform-origin: bottom center;
  transition: width .28s ease, transform .28s ease;
  cursor: pointer;
  outline: none;
}

.case.vhs,
.case.recorded-tape {
  --spine-width: 58px;
  --case-height: 292px;
  --open-width: 470px;
}
.case.ds {
  --spine-width: 14px;
  --case-height: 210px;
  --open-width: 14px;
}

.case:hover,
.case:focus-visible {
  width: var(--open-width);
  transform: translateY(-24px) rotateX(2deg);
  z-index: 20;
}

.spine {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: fill;
  border-radius: 3px;
  box-shadow: inset -6px 0 12px rgba(0,0,0,.35), 3px 0 8px rgba(0,0,0,.5);
  background: #111;
}

.case-shadow {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: -18px;
  height: 18px;
  background: rgba(0,0,0,.35);
  filter: blur(7px);
}

.cover-preview {
  position: absolute;
  left: calc(100% + 10px);
  bottom: 0;
  display: flex;
  gap: 10px;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-20px) scale(.98);
  transition: opacity .2s ease .07s, transform .2s ease .07s;
}

.case:hover .cover-preview,
.case:focus-visible .cover-preview {
  opacity: 1;
  transform: translateX(0) scale(1);
}

.cover-card {
  padding: 8px 8px 24px;
  background: rgba(255,255,255,.92);
  color: #111;
  border-radius: 6px;
  box-shadow: 0 14px 30px rgba(0,0,0,.55);
  text-align: center;
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.cover-card img {
  display: block;
  width: 160px;
  height: 230px;
  object-fit: cover;
  margin-bottom: 5px;
  background: #ddd;
}

.vhs .cover-card img,
.recorded-tape .cover-card img {
  width: 170px;
  height: 255px;
}

.details-modal {
  width: min(1000px, calc(100vw - 28px));
  border: 0;
  border-radius: 16px;
  padding: 0;
  background: #101010;
  color: white;
  box-shadow: 0 18px 70px rgba(0,0,0,.8);
}

.details-modal::backdrop { background: rgba(0,0,0,.75); }

.close {
  position: absolute;
  top: 10px;
  right: 14px;
  z-index: 2;
  border: 0;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  background: var(--yellow);
  color: var(--blue);
}
#shelves-container {
  display: flex;
  flex-direction: column;
}

.shelf-label {
  padding: 1.5rem 1rem 0.4rem;
  margin-top: 1rem;
}

.shelf-label h2 {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #888;
  border-left: 3px solid #c44; /* match your accent color */
  padding-left: 0.6rem;
  margin: 0;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 24px;
  padding: 28px;
}

.detail-covers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: start;
}

.detail-covers img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 12px 26px rgba(0,0,0,.55);
  background: #ddd;
}

.rental-tag {
  display: inline-block;
  margin: 0 0 10px;
  padding: 6px 10px;
  background: var(--yellow);
  color: var(--blue);
  font-weight: 900;
  border-radius: 999px;
}

.detail-info h2 {
  margin: 0 0 16px;
  color: var(--yellow);
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: .95;
}

.detail-info dl {
  display: grid;
  gap: 8px;
  margin: 0 0 20px;
}

.detail-info dl div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}

.detail-info dt {
  color: rgba(255,255,255,.62);
  font-weight: 800;
}

.detail-info dd { margin: 0; }
.detail-info h3 { color: var(--yellow); margin-bottom: 6px; }
.detail-info p { line-height: 1.5; }

@media (max-width: 760px) {
  .marquee { display: block; }
  .marquee small { display: block; text-align: left; margin-top: 8px; }
  .shelf { min-height: 310px; padding-left: 12px; }
  .case:hover,
  .case:focus-visible,
  .case.vhs:hover,
  .case.vhs:focus-visible,
  .case.recorded-tape:hover,
  .case.recorded-tape:focus-visible {
    width: min(var(--open-width), 350px);
  }
  .cover-card img { width: 125px; height: 180px; }
  .vhs .cover-card img,
  .recorded-tape .cover-card img { width: 130px; height: 195px; }
  .detail-grid { grid-template-columns: 1fr; }
}
