/* ==========================================================================
   MEDIA MART: "the basement"
   A wood-paneled rec room after dark: a neon sign over the door, an amber
   LED ticker, the portfolio on a console TV, totals on a VCR display,
   the collection kept as typewritten catalog cards, and shelf view as tapes
   on real shelves. One deliberate look (always lights-low), not light/dark.
   ========================================================================== */
:root {
  color-scheme: dark;
  /* the room */
  --wall: #2b1a10;  --wall-2: #3a2416;  --wall-3: #4a2e1b;  --groove: #170d07;
  --lamp: rgba(255, 176, 92, .16);
  /* page-level text sits on wood */
  --fg: #f3e6c9;  --muted: #c2a27c;  --faint: #8d7155;
  --bg: #1d120b;
  --line: rgba(243, 230, 201, .14);  --line2: rgba(243, 230, 201, .26);
  /* objects */
  --paper: #f0e4c6;  --paper-2: #e7d7b3;  --paper-ink: #2a2017;  --paper-muted: #6f5a44;  --paper-rule: rgba(110, 80, 45, .20);
  --margin-red: rgba(196, 60, 46, .55);
  --tape: #e8dbab;  --tape-ink: #3a2c14;
  --sticker: #ff7a1a;  --sticker-ink: #2a1203;
  --neon: #ff3f6c;  --neon-soft: rgba(255, 63, 108, .55);
  --crt: #08110b;  --phosphor: #8dffaa;  --phosphor-dim: #5fae78;
  --vfd: #7fe0ff;
  --led: #ffae3b;
  --cabinet: #6a4126;  --cabinet-2: #4a2a16;
  /* semantic */
  --up: #8dffaa;  --down: #ffb347;
  --up-soft: rgba(141, 255, 170, .14);  --down-soft: rgba(255, 179, 71, .16);
  --blu: #2f6ee0;  --on-blu: #ffffff;
  --label: #ff7a1a;  --label-ink: #2a1203;  --label-text: #ffb347;
  --shadow: 0 18px 40px rgba(0, 0, 0, .55);

  --f-sign: "Bungee", "Arial Black", Impact, sans-serif;
  --f-body: "Courier Prime", "Courier New", Courier, monospace;
  --f-hand: "Permanent Marker", "Marker Felt", "Comic Sans MS", cursive;
  --f-vcr: "VT323", "Courier New", monospace;
  --f-display: var(--f-sign);
  --f-mono: var(--f-body);
}

/* Paper surfaces redefine the text tokens, so everything inside them reads dark-on-cream. */
.paper-tokens, .coll, .drawer, .modal, .auth-form {
  --fg: #2a2017; --muted: #6f5a44; --faint: #9a8468; --bg: #f0e4c6;
  --line: rgba(110, 80, 45, .22); --line2: rgba(110, 80, 45, .38);
  --panel: #f6ecd3; --panel2: #e9dab6;
  --up: #2f7d3a; --down: #b3401f; --up-soft: rgba(47, 125, 58, .13); --down-soft: rgba(179, 64, 31, .12);
  --label-text: #a8480c;
}
/* Screens (the TV and the drawer's little monitor) glow green. */
.port, #dChart {
  --fg: #c9ffd6; --muted: var(--phosphor-dim); --faint: #3f7a52; --bg: #06100a;
  --line: rgba(141, 255, 170, .12); --line2: rgba(141, 255, 170, .24);
  --up: #8dffaa; --down: #ffb347; --up-soft: rgba(141, 255, 170, .12); --down-soft: rgba(255, 179, 71, .14);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; color: var(--fg); }
html { background: var(--groove); }
body {
  font-family: var(--f-body); font-size: 15px; line-height: 1.45; -webkit-font-smoothing: antialiased;
  min-height: 100%;
  /* wood paneling: planks with grooves, a little grain */
  background:
    repeating-linear-gradient(90deg, transparent 0 118px, var(--groove) 118px 121px, rgba(255,255,255,.035) 121px 122px),
    repeating-linear-gradient(90deg, rgba(0,0,0,.10) 0 3px, transparent 3px 11px, rgba(255,210,160,.035) 11px 13px, transparent 13px 29px),
    linear-gradient(90deg, var(--wall) 0%, var(--wall-2) 22%, var(--wall) 38%, var(--wall-3) 61%, var(--wall-2) 79%, var(--wall) 100%);
  background-attachment: fixed;
}
/* a lamp in the corner and dark edges */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(1100px 700px at 18% -10%, var(--lamp), transparent 70%),
    radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,.55) 100%);
}
body > * { position: relative; z-index: 1; }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px dashed var(--sticker); outline-offset: 3px; }
.num { font-variant-numeric: tabular-nums; }
.up { color: var(--up); } .down { color: var(--down); } .muted { color: var(--muted); }

/* ---------- neon sign ---------- */
.logo {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none;
  padding: 6px 14px 5px; border: 2px solid var(--neon); border-radius: 10px;
  color: #ffe3ea;
  box-shadow: 0 0 6px var(--neon-soft), 0 0 18px var(--neon-soft), inset 0 0 8px var(--neon-soft);
  background: rgba(20, 6, 10, .55);
}
.logo b { font-family: var(--f-sign); font-weight: 400; font-size: 20px; letter-spacing: .06em; line-height: 1;
  text-shadow: 0 0 4px #fff, 0 0 10px var(--neon), 0 0 22px var(--neon), 0 0 40px var(--neon-soft); }
.logo .reel { width: 11px; height: 11px; border-radius: 50%; border: 2px solid #ffe3ea; box-shadow: 0 0 8px var(--neon); flex: none; }
@media (prefers-reduced-motion: no-preference) {
  .top .logo b { animation: buzz 7s infinite; }
  @keyframes buzz { 0%, 91%, 94%, 100% { opacity: 1; } 92% { opacity: .55; } 93% { opacity: .9; } 93.5% { opacity: .4; } }
}

/* ---------- top bar: shelf lip + LED marquee ---------- */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: linear-gradient(#24160d, #1a0f08); border-bottom: 3px solid #0e0804; box-shadow: 0 6px 18px rgba(0,0,0,.5); }
.top-row { display: flex; align-items: center; gap: 16px; padding: 10px 16px; }
.ticker { flex: 1; min-width: 0; overflow: hidden; background: #0d0703; border: 2px solid #3b2414; border-radius: 4px;
  box-shadow: inset 0 0 12px rgba(0,0,0,.9); padding: 3px 0;
  background-image: radial-gradient(rgba(255,174,59,.07) 1px, transparent 1.2px); background-size: 4px 4px; }
.ticker-track { display: inline-flex; gap: 34px; white-space: nowrap; animation: tick 60s linear infinite; padding-left: 20px; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.tk { font-family: var(--f-vcr); font-size: 20px; line-height: 1.1; display: inline-flex; gap: 9px; align-items: baseline; color: var(--led); text-shadow: 0 0 6px rgba(255,174,59,.7); }
.tk .t { text-transform: uppercase; }
.tk .f { opacity: .7; font-size: 16px; }
.tk .up { color: #9dffb4; text-shadow: 0 0 6px rgba(141,255,170,.6); }
.tk .down { color: #ff7b5c; text-shadow: 0 0 6px rgba(255,123,92,.6); }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }
.who { display: flex; align-items: center; gap: 8px; flex: none; }
.who-name { font-family: var(--f-hand); font-size: 15px; color: var(--muted); }

/* ---------- buttons: masking tape and price stickers ---------- */
.btn { display: inline-flex; align-items: center; gap: 6px; border: 0; background: var(--tape); color: var(--tape-ink);
  padding: 7px 13px; border-radius: 2px; font-family: var(--f-body); font-weight: 700; font-size: 13.5px;
  box-shadow: 0 2px 0 rgba(0,0,0,.35), 0 3px 8px rgba(0,0,0,.25);
  clip-path: polygon(0 6%, 3% 0, 97% 4%, 100% 0, 99% 50%, 100% 96%, 96% 100%, 4% 96%, 0 100%, 1% 50%); }
.btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--sticker); color: var(--sticker-ink); font-family: var(--f-sign); font-weight: 400; letter-spacing: .03em;
  clip-path: none; border-radius: 6px; box-shadow: 0 3px 0 #9c4307, 0 6px 14px rgba(0,0,0,.35); }
.btn.ghost { background: transparent; color: var(--muted); box-shadow: none; clip-path: none; text-decoration: underline; text-underline-offset: 3px; }
.btn.ghost:hover { color: var(--fg); }
.btn.danger { background: #c4432e; color: #fff3e8; clip-path: none; border-radius: 4px; }
.btn.small { padding: 5px 10px; font-size: 12.5px; }
.btn.primary.small { font-size: 12px; }
.btn[disabled] { opacity: .6; cursor: default; transform: none; }

/* a handwritten note taped to the wall */
.banner { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 14px auto 0; max-width: 760px; width: calc(100% - 32px);
  padding: 10px 16px; background: #fff6b8; color: #3a2c14; font-family: var(--f-hand); font-size: 15px;
  box-shadow: 0 6px 14px rgba(0,0,0,.4); transform: rotate(-.6deg); }
.banner b { font-weight: 400; color: #b3401f; }

/* ---------- layout ---------- */
.shell { display: grid; grid-template-columns: 240px minmax(0, 1fr); max-width: 1440px; margin: 0 auto; }
main { min-width: 0; padding: 26px 26px 70px; display: flex; flex-direction: column; gap: 34px; }

/* sidebar: masking-tape labels stuck on the paneling */
.side { padding: 24px 14px 40px; display: flex; flex-direction: column; gap: 10px; min-height: calc(100vh - 60px); }
.side h3 { font-family: var(--f-sign); font-weight: 400; font-size: 12px; letter-spacing: .14em; color: var(--muted); margin: 14px 6px 2px; text-shadow: 0 1px 0 #000; }
.lib { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 8px; text-align: left; width: 100%; border: 0;
  background: var(--tape); color: var(--tape-ink); padding: 9px 12px 8px; box-shadow: 0 3px 8px rgba(0,0,0,.35);
  clip-path: polygon(0 8%, 4% 0, 30% 5%, 60% 0, 96% 6%, 100% 0, 98% 50%, 100% 100%, 70% 95%, 35% 100%, 3% 94%, 0 100%, 2% 50%);
  transform: rotate(-.8deg); transition: transform .15s; }
.lib:nth-of-type(even) { transform: rotate(.7deg); }
.lib:hover { transform: rotate(0) translateX(3px); }
.lib.on { background: #fff1b0; box-shadow: 0 0 0 0 transparent, 0 6px 14px rgba(0,0,0,.45); transform: rotate(0) scale(1.03); }
.lib-name { font-family: var(--f-hand); font-size: 17px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lib.on .lib-name::before { content: "▶ "; color: #c4432e; font-family: var(--f-body); font-size: 12px; vertical-align: 2px; }
.lib-val { font-family: var(--f-body); font-weight: 700; font-size: 13px; align-self: center; }
.lib-sub { font-size: 11.5px; grid-column: 1 / -1; opacity: .75; }
.newlib { display: flex; gap: 6px; margin: 8px 2px 0; }
.newlib input { flex: 1; min-width: 0; background: rgba(0,0,0,.35); border: 1px dashed var(--line2); border-radius: 3px; padding: 6px 8px; font-size: 13px; color: var(--fg); }
.newlib input::placeholder { color: var(--faint); }
.side-foot { margin-top: auto; padding: 16px 6px 0; font-size: 12px; color: var(--faint); line-height: 1.5; }

/* library heading: painted sign on the wall */
.libhead { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; }
.eyebrow { font-family: var(--f-body); font-weight: 700; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
h1 { font-family: var(--f-sign); font-weight: 400; font-size: clamp(32px, 4.6vw, 54px); line-height: .95; margin: 6px 0 0; color: #ffe9b8;
  text-shadow: 0 2px 0 #7a3a12, 0 4px 0 #3d1c08, 0 10px 20px rgba(0,0,0,.6); text-wrap: balance; }
.libactions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* ---------- the console TV ---------- */
.panel { border-radius: 10px; }
.port { position: relative; padding: 24px 26px 18px; margin: 18px 18px 46px;
  background: radial-gradient(ellipse at 50% 40%, #0f2216 0%, #08110b 60%, #040805 100%);
  border-radius: 34px / 30px; color: var(--fg); font-family: var(--f-vcr); font-size: 18px;
  box-shadow:
    inset 0 0 70px rgba(0,0,0,.85), inset 0 0 6px rgba(141,255,170,.25),
    0 0 0 6px #111, 0 0 0 18px var(--cabinet), 0 0 0 20px var(--cabinet-2), 0 26px 40px 18px rgba(0,0,0,.6); }
/* scanlines + glass glare */
.port::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 2;
  background: repeating-linear-gradient(180deg, rgba(0,0,0,.22) 0 1px, transparent 1px 3px); }
.port::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 2;
  background: radial-gradient(ellipse 70% 40% at 30% 8%, rgba(255,255,255,.07), transparent 70%); }
.port .eyebrow { font-family: var(--f-vcr); font-size: 18px; letter-spacing: .12em; color: var(--phosphor-dim); }
.port-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 20px; align-items: flex-start; }
.bigval { font-family: var(--f-vcr); font-size: clamp(44px, 6vw, 68px); line-height: .95; color: var(--phosphor);
  text-shadow: 0 0 8px rgba(141,255,170,.65), 0 0 22px rgba(141,255,170,.3); font-variant-numeric: tabular-nums; }
.chg { font-family: var(--f-vcr); font-size: 20px; margin-top: 4px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.chg .pill { padding: 0 7px; border-radius: 3px; }
.chg .pill.up { background: var(--up-soft); } .chg .pill.down { background: var(--down-soft); }
.hoverdate { color: var(--muted); font-size: .9em; }
/* channel buttons */
.ranges { display: inline-flex; gap: 6px; }
.ranges button { font-family: var(--f-vcr); font-size: 18px; min-width: 44px; padding: 3px 8px; border: 0; border-radius: 4px;
  background: linear-gradient(#d9d2c3, #9d968a); color: #1b1712; box-shadow: 0 3px 0 #4b463f, 0 4px 6px rgba(0,0,0,.6); }
.ranges button.on { transform: translateY(2px); box-shadow: 0 1px 0 #4b463f; background: linear-gradient(#fff3c9, #e2c56d); }
.chart { position: relative; margin-top: 14px; touch-action: pan-y; }
.chart svg { display: block; width: 100%; overflow: visible; }
.port .chart svg path[fill="none"] { filter: drop-shadow(0 0 4px rgba(141,255,170,.6)); }
.chart .ax { font-family: var(--f-vcr); font-size: 15px; fill: var(--muted); }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .base { stroke: var(--faint); stroke-width: 1; stroke-dasharray: 2 4; }
.chart .cross { stroke: var(--muted); stroke-width: 1; }
.chart-empty { height: 200px; display: grid; place-items: center; color: var(--muted); border: 1px dashed var(--line2); border-radius: 12px; text-align: center; padding: 16px;
  font-family: var(--f-vcr); font-size: 22px; text-transform: uppercase; letter-spacing: .06em; }
/* the VCR under the TV */
.stats { position: relative; z-index: 3; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 2px;
  margin: 18px -26px -18px; padding: 12px 18px 14px; border-radius: 0 0 30px 30px;
  background: linear-gradient(#2b2b2d, #161617); border-top: 2px solid #3d3d40; box-shadow: inset 0 1px 0 rgba(255,255,255,.08); }
.stat { padding: 8px 10px; background: #070b0f; border-radius: 3px; box-shadow: inset 0 0 8px rgba(0,0,0,.9); min-width: 0; }
.stat .k { font-family: var(--f-body); font-weight: 700; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: #8c8c92; }
.stat .v { font-family: var(--f-vcr); font-size: 24px; line-height: 1.05; margin-top: 2px; color: var(--vfd); text-shadow: 0 0 8px rgba(127,224,255,.6);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat .v.up { color: var(--vfd); } .stat .v.down { color: #ff9a7a; text-shadow: 0 0 8px rgba(255,154,122,.5); }
.stat .hoverdate { font-family: var(--f-vcr); font-size: 15px; color: #7c8a94; }
.mix { display: flex; height: 9px; border-radius: 2px; overflow: hidden; gap: 2px; margin-top: 8px; }
.mix span { display: block; height: 100%; }
.mixleg { display: flex; flex-wrap: wrap; gap: 2px 10px; margin-top: 5px; font-family: var(--f-vcr); font-size: 15px; color: #9aa5ad; }
.mixleg i { display: inline-block; width: 8px; height: 8px; margin-right: 5px; }
.c-VHS { background: #f0e4c6; } .c-DVD { background: #9aa5ad; } .c-BLU { background: #3c7cec; }
.note { position: relative; z-index: 3; font-family: var(--f-body); font-size: 12px; color: #8d8f94; margin: 26px -6px -4px; line-height: 1.5; }
.srcpill { display: inline-block; font-family: var(--f-body); font-weight: 700; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase;
  padding: 1px 7px; border-radius: 2px; margin-right: 6px; vertical-align: 1px; }
.srcpill.live { background: #1e5a2c; color: #c9ffd6; }
.srcpill.sim { background: var(--sticker); color: var(--sticker-ink); }
.note .down { color: #ff9a7a; }

/* ---------- the catalog binder (list view) ---------- */
.coll { position: relative; background: var(--paper); color: var(--fg); border-radius: 3px;
  box-shadow: 0 2px 0 #cdb98f, 0 4px 0 #b9a47a, 0 18px 40px rgba(0,0,0,.55);
  background-image:
    linear-gradient(90deg, transparent 54px, var(--margin-red) 54px 56px, transparent 56px),
    radial-gradient(ellipse at 20% 0%, rgba(255,255,255,.35), transparent 60%),
    radial-gradient(ellipse at 90% 100%, rgba(120,80,30,.18), transparent 55%); }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 16px 16px 14px 70px; border-bottom: 2px solid var(--line2); }
.search { flex: 1 1 200px; min-width: 0; position: relative; }
.search input { width: 100%; background: transparent; border: 0; border-bottom: 2px solid var(--line2); border-radius: 0; padding: 7px 8px 6px 28px; font-size: 15px; }
.search input::placeholder { color: var(--faint); }
.search svg { position: absolute; left: 4px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; stroke: var(--muted); fill: none; stroke-width: 2; }
.chips { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.chip { border: 1.5px solid var(--line2); background: transparent; border-radius: 3px; padding: 4px 10px; font-size: 13px; font-weight: 700; color: var(--muted); }
.chip.on { background: var(--paper-ink); color: var(--paper); border-color: var(--paper-ink); }
.sel { background: transparent; border: 1.5px solid var(--line2); border-radius: 3px; padding: 6px 8px; font-size: 13.5px; max-width: 100%; }
.viewtog { display: inline-flex; border: 1.5px solid var(--line2); border-radius: 3px; overflow: hidden; }
.viewtog button { background: transparent; border: 0; padding: 5px 11px; font-size: 13px; font-weight: 700; color: var(--muted); }
.viewtog button.on { background: var(--paper-ink); color: var(--paper); }

.tablewrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
.coll table { background-image: repeating-linear-gradient(180deg, transparent 0 56px, var(--paper-rule) 56px 57px); }
th { font-family: var(--f-body); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700;
  text-align: left; padding: 10px 12px; border-bottom: 2px solid var(--line2); white-space: nowrap; user-select: none; }
.coll th:first-child, .coll td:first-child { padding-left: 70px; }
th.sortable { cursor: pointer; } th.sortable:hover { color: var(--fg); }
th.r, td.r { text-align: right; }
th .arr { color: #b3401f; margin-left: 3px; }
td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tbody tr { cursor: pointer; }
.coll tbody tr:hover td { background: rgba(255, 235, 140, .45); }
tbody tr:last-child td { border-bottom: 0; }
.tcell { display: flex; align-items: center; gap: 12px; min-width: 0; }
.spine { width: 9px; height: 38px; border-radius: 1px; flex: none; box-shadow: inset -2px 0 0 rgba(0,0,0,.25), inset 2px 0 0 rgba(255,255,255,.15); }
.ttl { font-weight: 700; line-height: 1.2; }
.dir { font-size: 12.5px; color: var(--muted); }
.fmt { display: inline-block; font-family: var(--f-body); font-size: 11px; font-weight: 700; letter-spacing: .08em; padding: 2px 6px; border-radius: 2px; white-space: nowrap; }
.fmt.VHS { background: #1b1612; color: #f0e4c6; }
.fmt.DVD { border: 1.5px solid currentColor; color: var(--fg); background: transparent; }
.fmt.BLU { background: var(--blu); color: var(--on-blu); }
.cond { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; white-space: nowrap; }
.cond .bars { display: inline-flex; gap: 2px; }
.cond .bars i { width: 4px; height: 11px; background: var(--line2); }
.cond .bars i.f { background: var(--fg); }
.cond.sealed .bars i.f { background: var(--sticker); }
.ed { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.val { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pct { font-size: 13px; white-space: nowrap; font-weight: 700; font-variant-numeric: tabular-nums; }
.spark { display: block; }
.pending { display: inline-block; font-size: 11px; font-weight: 700; color: var(--muted); border: 1.5px dashed var(--line2); padding: 1px 6px; white-space: nowrap; }

/* ---------- shelf view: tapes on wooden shelves ---------- */
.coll:has(.shelf) { background: #24150c; background-image: none; box-shadow: inset 0 0 40px rgba(0,0,0,.7), 0 18px 40px rgba(0,0,0,.55); border: 10px solid #4a2c18; border-radius: 4px; }
.coll:has(.shelf) .toolbar { background: var(--paper); margin: 0; }
.shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 46px 18px; padding: 26px 22px 40px; }
.case { position: relative; background: transparent; border: 0; padding: 0; text-align: left; display: flex; flex-direction: column; gap: 6px; color: #f3e6c9; }
.case::after { /* the shelf plank under each row */ content: ""; position: absolute; left: -10px; right: -10px; top: calc(100% + 12px); height: 16px;
  background: linear-gradient(#7a4a29, #5a341b 60%, #3b210f); box-shadow: 0 8px 12px rgba(0,0,0,.6); border-top: 1px solid #9a6a42; }
.cover { aspect-ratio: 2 / 3; max-width: 100%; border-radius: 3px; position: relative; overflow: hidden; display: flex; flex-direction: column;
  box-shadow: 0 8px 14px rgba(0,0,0,.6), inset 0 0 0 1px rgba(0,0,0,.4); transition: transform .15s ease; }
.case:hover .cover { transform: translateY(-6px) rotate(-1deg); }
.cover .poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover .lines { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, rgba(255,255,255,.18) 0%, transparent 22%, transparent 70%, rgba(255,255,255,.06) 85%, transparent 100%); }
.cover .band { position: relative; z-index: 1; font-family: var(--f-body); font-size: 10px; font-weight: 700; letter-spacing: .16em; padding: 5px 8px; color: #fff; background: rgba(0,0,0,.6); }
.cover .band.BLU { background: #2f6ee0; } .cover .band.DVD { background: #e8e8ea; color: #111; }
.cover .ctitle { position: relative; margin-top: auto; padding: 10px; font-family: var(--f-sign); font-weight: 400; font-size: 17px; line-height: 1; text-transform: uppercase;
  color: #fff; text-wrap: balance; text-shadow: 0 2px 0 rgba(0,0,0,.4); }
.cover .cyear { position: relative; padding: 0 10px 10px; font-family: var(--f-body); font-size: 10.5px; color: rgba(255,255,255,.8); }
.cover.has-poster .ctitle, .cover.has-poster .cyear { background: linear-gradient(transparent, rgba(0,0,0,.78)); }
.cover.has-poster .ctitle { padding-top: 24px; }
.cover .sealtag { position: absolute; z-index: 1; top: 30px; right: -26px; transform: rotate(35deg); background: var(--sticker); color: var(--sticker-ink);
  font-family: var(--f-body); font-size: 9.5px; font-weight: 700; letter-spacing: .14em; padding: 2px 30px; }
.case .meta { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
/* price-gun sticker */
.case .meta .val { font-family: var(--f-sign); font-weight: 400; font-size: 12.5px; background: var(--sticker); color: var(--sticker-ink);
  padding: 3px 8px; border-radius: 999px; transform: rotate(-4deg); box-shadow: 0 2px 4px rgba(0,0,0,.5); }
.case .meta .val .pending { color: var(--sticker-ink); border-color: rgba(42,18,3,.5); }
.case .meta .pct { font-size: 12px; }
.case .meta .pct .up { color: #9dffb4; } .case .meta .pct .down { color: #ffb347; }
.case .dir { color: #c2a27c; font-size: 12px; }

.empty { padding: 50px 20px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.empty .tape { width: 130px; height: 80px; border-radius: 6px; background: #1b1612; position: relative; box-shadow: 0 6px 12px rgba(0,0,0,.35); }
.empty .tape::before, .empty .tape::after { content: ""; position: absolute; top: 26px; width: 28px; height: 28px; border-radius: 50%; border: 6px solid #f0e4c6; }
.empty .tape::before { left: 20px; } .empty .tape::after { right: 20px; }
.empty h2 { font-family: var(--f-sign); font-weight: 400; font-size: 26px; margin: 4px 0 0; }
.empty p { color: var(--muted); max-width: 46ch; margin: 0; }

/* ---------- overlays: the back of the box ---------- */
.scrim { position: fixed; inset: 0; background: rgba(8, 4, 2, .7); z-index: 40; display: flex; justify-content: flex-end; }
.drawer { width: min(620px, 100%); height: 100%; overflow-y: auto; background: var(--paper); color: var(--fg); box-shadow: var(--shadow);
  background-image: radial-gradient(ellipse at 10% 0%, rgba(255,255,255,.4), transparent 50%), radial-gradient(ellipse at 100% 100%, rgba(120,80,30,.2), transparent 60%);
  padding: calc(env(safe-area-inset-top, 0px) + 20px) 24px calc(env(safe-area-inset-bottom, 0px) + 40px); display: flex; flex-direction: column; gap: 20px; }
.dhead { display: flex; gap: 16px; align-items: flex-start; }
.dhead .cover { width: 100px; flex: none; }
.dhead .cover .ctitle { font-size: 12px; padding: 7px; }
.dhead .cover .band { font-size: 8.5px; padding: 4px 6px; }
.dhead .cover .cyear { display: none; }
.dhead h2 { font-family: var(--f-sign); font-weight: 400; font-size: 30px; line-height: 1; margin: 4px 0 8px; text-wrap: balance; }
.facts { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13.5px; color: var(--muted); }
.facts b { color: var(--fg); }
.x { margin-left: auto; background: transparent; border: 1.5px solid var(--line2); border-radius: 3px; width: 34px; height: 34px; display: grid; place-items: center; color: var(--muted); flex: none; }
.x:hover { color: var(--fg); }
.sec h4 { font-family: var(--f-body); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; font-weight: 700;
  border-bottom: 1.5px dashed var(--line2); padding-bottom: 5px; }
.dval { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.drawer .bigval, .modal .bigval { font-family: var(--f-sign); font-weight: 400; font-size: 36px; color: var(--fg); text-shadow: none; }
.drawer .chg { font-family: var(--f-body); font-size: 14px; font-weight: 700; }
.drawer .ranges button { font-size: 16px; min-width: 40px; }
/* a little monitor in the drawer */
#dChart { margin-top: 12px; padding: 14px 10px 6px 14px; border-radius: 18px / 16px;
  background: radial-gradient(ellipse at 50% 40%, #0f2216, #06100a 75%);
  border: 7px solid #333336; outline: 2px solid #111; outline-offset: -2px;
  box-shadow: inset 0 0 40px rgba(0,0,0,.85), 0 8px 18px rgba(0,0,0,.3); }
#dChart .chart-empty { height: 150px; font-size: 18px; }
#dChart svg path[fill="none"] { filter: drop-shadow(0 0 3px rgba(141,255,170,.6)); }
.seg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; background: var(--panel2); border: 1.5px solid var(--line2); border-radius: 4px; padding: 4px; }
.seg button { border: 0; background: transparent; border-radius: 3px; padding: 8px 4px; font-size: 13px; font-weight: 700; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 1px; }
.seg button small { font-size: 11.5px; font-weight: 400; color: var(--faint); }
.seg button.on { background: var(--paper-ink); color: var(--paper); }
.seg button.on small { color: #ffcf8a; }
.formrow { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field label { font-size: 12.5px; color: var(--muted); font-weight: 700; }
.field input, .field select, .field textarea { background: var(--panel); border: 1.5px solid var(--line2); border-radius: 3px; padding: 8px 10px; width: 100%; min-width: 0; color: var(--fg); }
.field textarea { min-height: 70px; resize: vertical; background-image: repeating-linear-gradient(180deg, transparent 0 21px, var(--paper-rule) 21px 22px); line-height: 22px; }
.libchecks { display: flex; flex-wrap: wrap; gap: 6px; }
.libchecks label { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; color: var(--tape-ink); background: var(--tape); padding: 4px 10px 4px 8px; font-family: var(--f-hand); font-size: 14px; font-weight: 400; cursor: pointer; }
.libchecks input { accent-color: #b3401f; margin: 0; }
.cmp { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.cmp > div { background: var(--panel); border: 1.5px solid var(--line2); border-radius: 3px; padding: 10px 12px; }
.cmp > div.me { border-color: var(--sticker); box-shadow: 0 0 0 2px rgba(255,122,26,.3); }
.cmp .v { font-weight: 700; font-size: 17px; margin-top: 4px; }
.comps { width: 100%; font-size: 13px; }
.comps td, .comps th { padding: 7px 8px; }
.comps tbody tr { cursor: default; }
.comps .lt { max-width: 34ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.comps a { color: #a8480c; font-weight: 700; }
.logsale { display: flex; flex-direction: column; gap: 6px; padding: 14px; border: 1.5px dashed var(--line2); background: var(--panel); }
.confirm { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13.5px; }
.hint { font-size: 13px; color: var(--muted); }
.hint code { font-family: var(--f-body); font-weight: 700; color: var(--fg); background: var(--panel2); padding: 1px 5px; }
.linkish { background: none; border: 0; padding: 0; color: #a8480c; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; font-size: 13px; }
.err { color: var(--down); font-size: 13px; min-height: 1em; font-weight: 700; }

/* add-a-film: an index card */
.modal-scrim { position: fixed; inset: 0; background: rgba(8, 4, 2, .7); z-index: 45; display: flex; align-items: flex-start; justify-content: center; overflow-y: auto;
  padding: calc(env(safe-area-inset-top, 0px) + 6vh) 16px 40px; }
.modal { width: min(640px, 100%); background: var(--paper); color: var(--fg); border-radius: 3px; box-shadow: var(--shadow); padding: 22px 22px 22px 28px;
  display: flex; flex-direction: column; gap: 16px;
  background-image: linear-gradient(180deg, transparent 58px, rgba(196,60,46,.5) 58px 60px, transparent 60px), repeating-linear-gradient(180deg, transparent 0 27px, rgba(70,110,170,.16) 27px 28px); }
.modal h2 { font-family: var(--f-sign); font-weight: 400; font-size: 28px; margin: 0; line-height: 1; }
.mhead { display: flex; align-items: center; gap: 12px; min-height: 34px; }
.results { display: flex; flex-direction: column; border: 1.5px solid var(--line2); max-height: 300px; overflow-y: auto; background: var(--panel); }
.res { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 9px 12px; background: transparent; border: 0; border-bottom: 1px solid var(--line); text-align: left; color: var(--fg); }
.res:last-child { border-bottom: 0; }
.res:hover { background: rgba(255, 235, 140, .5); }
.res .spine { height: 32px; }
.res .yr { font-weight: 700; color: var(--muted); }
.thumb { width: 30px; height: 45px; object-fit: cover; flex: none; }
.picked { display: flex; gap: 12px; align-items: center; padding: 12px; background: var(--panel); border: 1.5px solid var(--line2); }
.picked .thumb { width: 40px; height: 60px; }
.estimate { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; background: #fff6c4; border: 1.5px dashed var(--line2); }
.estimate .bigval { font-size: 26px; }

/* ---------- sign-in: the door to the basement ---------- */
.auth { position: fixed; inset: 0; z-index: 60; overflow-y: auto; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); background: inherit; background-color: var(--wall); }
.auth-art { position: relative; overflow: hidden; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; min-height: 100%; }
.auth-art h1 { font-size: clamp(44px, 6.5vw, 88px); line-height: .9; max-width: 9ch; }
.auth-art p { color: var(--muted); max-width: 42ch; font-size: 16px; margin: 0; }
.auth-art .eyebrow { color: var(--led); font-family: var(--f-vcr); font-size: 22px; letter-spacing: .1em; text-shadow: 0 0 6px rgba(255,174,59,.6); }
.auth-stack { flex: none; display: flex; gap: 4px; align-items: flex-end; height: 190px; padding: 0 6px; border-bottom: 16px solid #6a3f22; box-shadow: 0 10px 14px -6px rgba(0,0,0,.7); }
.auth-stack span { width: 24px; border-radius: 2px 2px 0 0; display: block; box-shadow: inset -3px 0 0 rgba(0,0,0,.3), inset 3px 0 0 rgba(255,255,255,.12); }
.auth-form { align-self: center; display: flex; flex-direction: column; justify-content: center; gap: 16px; max-width: 460px; width: calc(100% - 32px); margin: 40px auto;
  padding: 30px 28px; background: var(--paper); color: var(--fg); box-shadow: var(--shadow); border-radius: 3px; transform: rotate(.6deg);
  background-image: repeating-linear-gradient(180deg, transparent 0 27px, rgba(70,110,170,.14) 27px 28px); }
.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--line2); }
.tabs button { background: none; border: 0; border-bottom: 3px solid transparent; padding: 8px 2px; margin: 0 16px -2px 0; color: var(--muted); font-weight: 700; font-size: 15px; }
.tabs button.on { color: var(--fg); border-bottom-color: #b3401f; }
.auth-form .field input { padding: 10px 12px; font-size: 16px; }

.toast { position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 22px); transform: translateX(-50%) rotate(-1deg); z-index: 80;
  background: var(--tape); color: var(--tape-ink); padding: 10px 18px; font-family: var(--f-hand); font-size: 15px; box-shadow: 0 8px 18px rgba(0,0,0,.5); max-width: calc(100% - 32px); }
.closed { position: fixed; inset: 0; z-index: 90; background: #120a05; display: grid; place-items: center; text-align: center; padding: 24px 16px; }
.closed h2 { font-family: var(--f-sign); font-weight: 400; font-size: 34px; margin: 22px 0 6px; color: #ffe9b8; }
.closed p { color: var(--muted); margin: 0; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hide-lg { display: none; }
}
@media (max-width: 860px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { min-height: 0; padding: 12px 16px 6px; flex-direction: row; overflow-x: auto; gap: 10px; align-items: center; }
  .side h3, .side-foot, .lib-sub { display: none; }
  .lib { flex: none; width: auto; grid-template-columns: auto auto; padding: 7px 12px; }
  .newlib { margin: 0; flex: none; }
  .newlib input { width: 140px; }
  main { padding: 18px 16px 50px; gap: 28px; }
  .ticker { display: none; }
  .top-row { justify-content: space-between; }
  .hide-md { display: none; }
  .auth { display: block; }
  .auth-art { padding: 28px 16px 10px; min-height: 0; overflow: visible; }
  .auth-stack { height: 90px; }
  .auth-form { margin: 10px auto 40px; transform: none; }
  .port { margin: 14px 12px 40px; }
}
@media (max-width: 560px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hide-sm { display: none; }
  .port { padding: 18px 16px 14px; margin: 12px 10px 36px; border-radius: 24px / 20px;
    box-shadow: inset 0 0 50px rgba(0,0,0,.85), 0 0 0 4px #111, 0 0 0 11px var(--cabinet), 0 0 0 12px var(--cabinet-2), 0 18px 30px 10px rgba(0,0,0,.6); }
  .stats { margin: 16px -16px -14px; border-radius: 0 0 20px 20px; padding: 10px 10px 12px; }
  .note { margin: 22px -4px -2px; }
  .formrow { grid-template-columns: 1fr; }
  .cmp { grid-template-columns: 1fr; }
  .shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 16px; padding: 22px 16px 36px; }
  .drawer { padding-left: 16px; padding-right: 16px; }
  .dhead .cover { width: 76px; }
  .dhead h2 { font-size: 24px; }
  .who-name { max-width: 92px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
  td, th { padding: 9px 8px; }
  .coll th:first-child, .coll td:first-child { padding-left: 30px; }
  .toolbar { padding-left: 30px; }
  .coll { background-image: linear-gradient(90deg, transparent 18px, var(--margin-red) 18px 20px, transparent 20px); }
  .logo b { font-size: 16px; }
  .btn.small { padding: 5px 8px; }
}

.basis { display: inline-block; margin-top: 4px; font-size: 12px; font-weight: 700; color: var(--muted); border-left: 3px solid var(--sticker); padding-left: 7px; }
.side-foot .credit { margin: 10px 0 0; font-size: 11px; color: var(--faint); }
.side-foot .credit a { color: var(--muted); }
.sethead { font-family: var(--f-body); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 4px 0 -6px; border-bottom: 1.5px dashed var(--line2); padding-bottom: 5px; }
.modal .field .hint a { color: #a8480c; font-weight: 700; }

/* ==========================================================================
   THE STACKS (stats strip) — a pegboard over the shelves
   ========================================================================== */
.stacks { margin: -6px 0 0; padding: 18px 20px 20px; border-radius: 6px; color: var(--fg);
  background: radial-gradient(rgba(0,0,0,.35) 1.6px, transparent 2px) 0 0 / 18px 18px, linear-gradient(#5b3a22, #4a2e1b);
  box-shadow: inset 0 0 0 3px #2f1c10, inset 0 0 40px rgba(0,0,0,.45), 0 12px 26px rgba(0,0,0,.45); }
.stacks-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.stacks-head h2 { font-family: var(--f-sign); font-weight: 400; font-size: 24px; margin: 0; color: #ffe9b8; text-shadow: 0 2px 0 #3d1c08; }
.stacks-head span { font-family: var(--f-hand); color: var(--tape); font-size: 15px; }
.stacks-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px 22px; align-items: end; }
.stack-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.fact { background: var(--tape); color: var(--tape-ink); padding: 8px 10px 7px; box-shadow: 0 3px 8px rgba(0,0,0,.35); min-width: 0;
  clip-path: polygon(0 6%, 4% 0, 96% 5%, 100% 0, 99% 50%, 100% 96%, 95% 100%, 5% 96%, 0 100%, 1% 50%); }
.fact:nth-child(3n+2) { transform: rotate(.8deg); } .fact:nth-child(3n) { transform: rotate(-.6deg); }
.fact b { display: block; font-family: var(--f-sign); font-weight: 400; font-size: 20px; line-height: 1.1; }
.fact span { display: block; font-family: var(--f-hand); font-size: 13px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.decades { display: flex; align-items: flex-end; gap: 9px; height: 130px; padding: 0 4px; border-bottom: 10px solid #6f4426; }
.dec { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; background: none; border: 0; padding: 0; color: var(--tape); }
.dec-bar { width: 100%; max-width: 46px; position: relative; border-radius: 2px 2px 0 0; transition: filter .15s, transform .15s;
  background: repeating-linear-gradient(180deg, #1b1612 0 9px, #f0e4c6 9px 10px, #1b1612 10px 13px, #c4432e 13px 14px); box-shadow: inset -3px 0 0 rgba(0,0,0,.35); }
.dec:hover .dec-bar { filter: brightness(1.25); transform: translateY(-3px); }
.dec.on .dec-bar { background: repeating-linear-gradient(180deg, #ff7a1a 0 9px, #fff1b0 9px 10px, #ff7a1a 10px 13px, #2a1203 13px 14px); }
.dec-n { position: absolute; top: -20px; left: 50%; transform: translateX(-50%); font-family: var(--f-vcr); font-size: 17px; color: var(--led); text-shadow: 0 0 6px rgba(255,174,59,.6); }
.dec-label { font-family: var(--f-vcr); font-size: 15px; color: var(--fg); white-space: nowrap; }
.dec.on .dec-label { color: var(--sticker); }
.genre-tags { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; }
.gtag { border: 0; background: rgba(0,0,0,.35); color: var(--fg); padding: 5px 11px; border-radius: 999px; font-family: var(--f-body); font-weight: 700; font-size: 13px; box-shadow: inset 0 0 0 1.5px rgba(243,230,201,.25); }
.gtag small { color: var(--muted); font-weight: 400; margin-left: 3px; }
.gtag:hover { box-shadow: inset 0 0 0 1.5px var(--tape); }
.gtag.on { background: var(--sticker); color: var(--sticker-ink); box-shadow: none; }
.gtag.on small { color: var(--sticker-ink); }
.stacks .linkish { color: var(--tape); }

/* toolbar labels */
.sel-wrap { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }

/* ==========================================================================
   AISLES — the video-store floor
   ========================================================================== */
.coll:has(.aisles), .coll:has(.spinewall) { background: #22140b; background-image: none; border: 10px solid #4a2c18; border-radius: 4px;
  box-shadow: inset 0 0 40px rgba(0,0,0,.7), 0 18px 40px rgba(0,0,0,.55); }
.coll:has(.aisles) .toolbar, .coll:has(.spinewall) .toolbar { background: var(--paper); }
.aisles, .spinewall { --fg: #f3e6c9; --muted: #c2a27c; --faint: #8d7155; color: var(--fg); }
.aisles { display: flex; flex-direction: column; gap: 30px; padding: 24px 0 30px; }
.aisle-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 0 20px; margin-bottom: 12px; }
/* Aisle markers: a plain walnut sign with cream lettering, like the ones hanging over a real store's shelves. */
.aisle-sign { display: inline-flex; align-items: stretch; gap: 0; border-radius: 3px; overflow: hidden; color: #eadbb8;
  background: linear-gradient(#2c1c11, #22160d); border: 1px solid #5b3c24;
  box-shadow: inset 0 1px 0 rgba(255,240,210,.06), 0 3px 8px rgba(0,0,0,.45); }
.aisle-no { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 40px; padding: 3px 7px 4px;
  background: #e8d9b5; color: #2a1708; }
.aisle-no small { font-family: var(--f-body); font-weight: 700; font-size: 8px; letter-spacing: .18em; text-transform: uppercase; line-height: 1; opacity: .75; }
.aisle-no b { font-family: var(--f-body); font-weight: 700; font-size: 17px; line-height: 1.05; }
.aisle-name { display: flex; align-items: center; padding: 4px 13px 4px 11px; font-family: var(--f-body); font-weight: 700; font-size: 14px;
  letter-spacing: .14em; text-transform: uppercase; line-height: 1.1; }
.aisle-meta { font-family: var(--f-body); color: var(--muted); font-size: 13.5px; }
.aisle-meta b { color: var(--fg); }
.aisle-toggle { margin-left: auto; color: var(--tape) !important; font-size: 13.5px; }
.aisle-row-wrap { position: relative; }
.aisle-row { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x proximity; padding: 6px 20px 26px; scrollbar-width: thin; scrollbar-color: #6f4426 transparent;
  background: linear-gradient(transparent calc(100% - 18px), #6f4426 calc(100% - 18px), #4a2c18 calc(100% - 6px), rgba(0,0,0,.6) 100%); }
.aisle-row.open { flex-wrap: wrap; overflow: visible; row-gap: 34px;
  background: repeating-linear-gradient(transparent 0 calc(var(--rowh, 268px) - 18px), #6f4426 calc(var(--rowh, 268px) - 18px) calc(var(--rowh, 268px) - 6px), rgba(0,0,0,.5) calc(var(--rowh, 268px) - 6px) var(--rowh, 268px)); }
.aisle-arrow { position: absolute; top: 40%; z-index: 2; width: 36px; height: 52px; border: 0; border-radius: 6px; font-size: 28px; line-height: 1;
  background: rgba(20,10,4,.82); color: var(--tape); box-shadow: 0 4px 12px rgba(0,0,0,.6); opacity: 0; transition: opacity .15s; }
.aisle-arrow.left { left: 6px; } .aisle-arrow.right { right: 6px; }
.aisle-row-wrap:hover .aisle-arrow { opacity: 1; }
@media (hover: none) { .aisle-arrow { display: none; } }

.tape-card { flex: none; width: 132px; scroll-snap-align: start; background: none; border: 0; padding: 0; text-align: left; color: var(--fg); display: flex; flex-direction: column; gap: 3px; }
.aisle-row.open .tape-card { width: 132px; }
.tc-art { position: relative; display: block; aspect-ratio: 2 / 3; border-radius: 3px; overflow: hidden; background: #111;
  box-shadow: 0 8px 14px rgba(0,0,0,.6), inset 0 0 0 1px rgba(255,255,255,.08); transition: transform .18s ease, box-shadow .18s; }
.tc-art > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tc-art > .cover { width: 100%; height: 100%; box-shadow: none; }
.tc-art > .cover .ctitle { font-size: 14px; } .tc-art > .cover .cyear { display: none; }
.tc-art::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, rgba(255,255,255,.16) 0%, transparent 25%, transparent 75%, rgba(255,255,255,.05) 100%); }
.tape-card:hover .tc-art, .tape-card:focus-visible .tc-art { transform: translateY(-8px) rotate(-1.5deg); box-shadow: 0 16px 22px rgba(0,0,0,.7); }
.tc-fmt { position: absolute; top: 0; left: 0; right: 0; z-index: 1; padding: 3px 6px; font-family: var(--f-body); font-size: 9.5px; font-weight: 700; letter-spacing: .14em; color: #fff; background: rgba(0,0,0,.72); }
.tc-fmt.DVD { background: rgba(232,232,234,.92); color: #111; } .tc-fmt.BLU { background: #2f6ee0; }
.tc-sealed { position: absolute; top: 24px; right: -24px; z-index: 1; transform: rotate(35deg); background: var(--sticker); color: var(--sticker-ink); font-family: var(--f-body); font-size: 8.5px; font-weight: 700; letter-spacing: .14em; padding: 2px 26px; }
.tc-price { position: absolute; right: 6px; bottom: 6px; z-index: 1; font-family: var(--f-sign); font-size: 11.5px; background: var(--sticker); color: var(--sticker-ink); padding: 2px 7px; border-radius: 999px; transform: rotate(-5deg); box-shadow: 0 2px 4px rgba(0,0,0,.5); }
.tc-title { font-weight: 700; font-size: 13px; line-height: 1.2; margin-top: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tc-sub { font-size: 11.5px; color: var(--muted); }

/* ==========================================================================
   SPINES — the whole collection as a wall of tapes
   ========================================================================== */
.spinewall { padding: 20px 18px 30px; }
.wall-sign { display: flex; align-items: baseline; gap: 10px; margin: 18px 4px 10px; }
.wall-sign:first-child { margin-top: 0; }
.wall-sign span { font-family: var(--f-hand); font-size: 20px; color: var(--tape-ink); background: var(--tape); padding: 2px 12px; transform: rotate(-1deg); box-shadow: 0 3px 8px rgba(0,0,0,.4); }
.wall-sign small { font-family: var(--f-vcr); font-size: 17px; color: var(--led); }
.wall-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0 3px; padding: 0 8px;
  background: repeating-linear-gradient(transparent 0 196px, #6f4426 196px 208px, rgba(0,0,0,.55) 208px 214px); }
.vspine { position: relative; height: 188px; margin: 8px 0 26px; padding: 0; border: 0; border-radius: 2px 2px 1px 1px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; color: #f3e6c9; overflow: visible;
  background: linear-gradient(90deg, rgba(0,0,0,.35), transparent 18%, transparent 82%, rgba(0,0,0,.4)), linear-gradient(hsl(var(--h) 42% 26%), hsl(var(--h) 48% 15%));
  box-shadow: 0 2px 0 rgba(0,0,0,.4); transition: transform .15s ease; }
.vspine.VHS { width: 34px; }
.vspine.DVD { width: 22px; height: 180px; background: linear-gradient(90deg, rgba(0,0,0,.3), transparent 20%, transparent 80%, rgba(0,0,0,.35)), linear-gradient(hsl(var(--h) 25% 34%), hsl(var(--h) 30% 20%)); }
.vspine.BLU { width: 18px; height: 168px; }
.vs-band { flex: none; width: 100%; padding: 3px 0; font-family: var(--f-body); font-size: 8px; font-weight: 700; letter-spacing: .05em; text-align: center; background: #0f0f10; color: #fff; }
.vspine.DVD .vs-band { background: #e6e6ea; color: #111; font-size: 7px; }
.vspine.BLU .vs-band { background: #2f6ee0; font-size: 7px; }
.vs-title { flex: 1; min-height: 0; writing-mode: vertical-rl; transform: rotate(180deg); font-family: var(--f-sign); font-size: 12px; line-height: 1; text-transform: uppercase;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 6px 0; letter-spacing: .02em; }
.vspine.DVD .vs-title, .vspine.BLU .vs-title { font-family: var(--f-body); font-weight: 700; font-size: 10px; }
.vs-year { flex: none; font-family: var(--f-vcr); font-size: 13px; padding-bottom: 4px; opacity: .8; }
.vspine:hover, .vspine:focus-visible { transform: translateY(-14px); z-index: 5; }
.vs-peek { position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%) scale(.9); width: 120px; opacity: 0; pointer-events: none;
  transition: opacity .15s, transform .15s; z-index: 6; }
.vs-peek > img, .vs-peek > .cover { display: block; width: 120px; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 3px; box-shadow: 0 12px 24px rgba(0,0,0,.75); }
.vs-peek > .cover .ctitle { font-size: 13px; }
.vs-peek-cap { display: block; margin-top: 6px; padding: 4px 6px; background: var(--tape); color: var(--tape-ink); font-family: var(--f-body); font-size: 11px; font-weight: 700; line-height: 1.25; text-align: center; box-shadow: 0 4px 10px rgba(0,0,0,.5); }
.vspine:hover .vs-peek, .vspine:focus-visible .vs-peek { opacity: 1; transform: translateX(-50%) scale(1); }
.wall-sign:first-child + .wall-row .vs-peek { bottom: auto; top: calc(100% + 6px); }
@media (prefers-reduced-motion: reduce) { .tape-card .tc-art, .vspine, .vs-peek { transition: none; } }

@media (max-width: 860px) {
  .stacks-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .stacks { padding: 14px 12px 16px; }
  .stack-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .decades { height: 110px; gap: 4px; }
  .dec-label, .dec-n { font-size: 14px; }
  .aisle-head { padding: 0 14px; }
  .aisle-row { padding: 6px 14px 24px; gap: 12px; }
  .tape-card, .aisle-row.open .tape-card { width: 112px; }
  .aisle-row.open { --rowh: 238px; }
  .aisle-name { font-size: 13px; }
  .sel-wrap span { display: none; }
}

/* ==========================================================================
   FLOOR TOP — quick-sort stickers + store directory
   ========================================================================== */
.floor-top { display: flex; flex-direction: column; gap: 14px; padding: 0 20px; }
.qsort { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 8px; }
.qs-label { font-family: var(--f-hand); color: var(--tape); font-size: 17px; margin-right: 4px; transform: rotate(-2deg); }
.qs { border: 0; cursor: pointer; font-family: var(--f-sign); font-size: 12px; letter-spacing: .02em; padding: 5px 11px 4px; border-radius: 999px;
  background: #f3e6c9; color: #2a1203; box-shadow: 0 2px 0 rgba(0,0,0,.45), inset 0 0 0 1px rgba(0,0,0,.12);
  transform: rotate(var(--tilt, -2deg)); transition: transform .12s, background .12s; }
.qs:nth-child(3n) { --tilt: 2deg; } .qs:nth-child(4n) { --tilt: -1deg; } .qs:nth-child(5n) { --tilt: 3deg; }
.qs:hover { transform: rotate(0) translateY(-2px); }
.qs.on { background: var(--sticker); color: var(--sticker-ink); box-shadow: 0 2px 0 rgba(0,0,0,.45), 0 0 14px rgba(255,122,26,.45); }
.qs.flip { font-family: var(--f-body); font-weight: 700; font-size: 15px; padding: 3px 10px; background: #3a2414; color: var(--tape); box-shadow: inset 0 0 0 1px #6f4426; }
.qs-now { margin-left: auto; font-size: 12.5px; color: var(--muted); }
.qs-now b { color: var(--fg); }

.directory { position: relative; align-self: flex-start; max-width: 100%; padding: 10px 14px 12px; border-radius: 4px;
  background: #15100b; box-shadow: 0 0 0 3px #111, 0 0 0 5px #6f4426, 0 10px 20px rgba(0,0,0,.55); }
.dir-head { display: block; font-family: var(--f-vcr); font-size: 20px; letter-spacing: .12em; text-transform: uppercase; color: #7dffb0;
  text-shadow: 0 0 8px rgba(125,255,176,.6); margin-bottom: 6px; }
.dir-list { display: flex; flex-wrap: wrap; gap: 4px 6px; max-height: 128px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #6f4426 transparent; }
.dir-list button { display: inline-flex; align-items: baseline; gap: 6px; border: 0; background: none; padding: 3px 7px; border-radius: 3px; cursor: pointer;
  font-family: var(--f-body); font-size: 13px; color: var(--fg); }
.dir-list button:hover, .dir-list button:focus-visible { background: rgba(255,122,26,.16); }
.dir-list b { font-family: var(--f-vcr); font-size: 17px; font-weight: 400; color: var(--sticker); min-width: 1.4em; text-align: right; }
.dir-list small { color: var(--faint); font-size: 11px; }
.aisle, .wall-sign { scroll-margin-top: 16px; }
.spinewall > .floor-top { padding: 18px 20px 6px; }

/* shelf talker: the little tag that shows what you're sorting by */
.tc-talk { align-self: flex-start; margin-top: 2px; font-family: var(--f-hand); font-size: 12.5px; line-height: 1.25; color: #2a1203;
  background: #f3e6c9; padding: 1px 7px 2px; border-radius: 2px; transform: rotate(-1.5deg); box-shadow: 0 2px 3px rgba(0,0,0,.45);
  max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc-talk.up { background: #c9f2c4; color: #0f3d14; }
.tc-talk.down { background: #ffd0c4; color: #5a1406; }

@media (max-width: 720px) {
  .floor-top { padding: 0 14px; }
  .qs-label { flex-basis: 100%; }
  .qs-now { display: none; }
  .directory { align-self: stretch; }
}

/* "Whole catalog by price" switch */
.price-slot { display: inline-flex; align-items: center; gap: 8px; }
.price-switch { display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; padding: 2px 0; cursor: pointer;
  font-family: var(--f-body); font-weight: 700; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ps-track { position: relative; width: 50px; height: 26px; border-radius: 999px; background: #3a2414; box-shadow: inset 0 2px 4px rgba(0,0,0,.6), 0 0 0 2px #6f4426; transition: background .15s; flex: none; }
.ps-knob { position: absolute; top: 2px; left: 2px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  background: #f3e6c9; color: #2a1203; font-family: var(--f-sign); font-size: 12px; box-shadow: 0 2px 3px rgba(0,0,0,.5); transition: transform .18s ease, background .15s; }
.price-switch.on .ps-track { background: #6b2f08; box-shadow: inset 0 2px 4px rgba(0,0,0,.5), 0 0 0 2px var(--sticker), 0 0 12px rgba(255,122,26,.45); }
.price-switch.on .ps-knob { transform: translateX(24px) rotate(-8deg); background: var(--sticker); }
.price-switch.on .ps-txt { color: var(--fg); }
.price-dir { font-size: 12px; }
.sel:disabled { opacity: .5; }

/* rank tag in the whole-catalog price view */
.tc-rank { position: absolute; left: 6px; top: 25px; z-index: 1; font-family: var(--f-vcr); font-size: 19px; line-height: 1; padding: 1px 6px 2px;
  background: rgba(10,6,3,.82); color: #7dffb0; text-shadow: 0 0 6px rgba(125,255,176,.6); border-radius: 3px; }

/* full-grid aisles: every tape the same height so the shelf planks line up under each row */
.aisle-row.open { --rowh: 284px; align-items: flex-start; }
.aisle-row.open .tape-card { height: 250px; }
@media (max-width: 720px) {
  .aisle-row.open { --rowh: 256px; }
  .aisle-row.open .tape-card { height: 222px; }
}

/* Find it on eBay */
.ebay-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 12px; }
.ebay-btn { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px 6px; border-radius: 999px; text-decoration: none;
  font-family: var(--f-sign); font-size: 13px; letter-spacing: .02em; background: var(--sticker); color: var(--sticker-ink);
  box-shadow: 0 2px 0 rgba(0,0,0,.35); transform: rotate(-1.5deg); transition: transform .12s; }
.ebay-btn:hover, .ebay-btn:focus-visible { transform: rotate(0) translateY(-2px); }
.ebay-btn.alt { background: #fff6dc; color: #2a1203; box-shadow: 0 2px 0 rgba(0,0,0,.25), inset 0 0 0 1px rgba(0,0,0,.18); transform: rotate(1deg); }
.eb-tag { font-family: var(--f-body); font-weight: 700; font-size: 10.5px; letter-spacing: .06em; background: #2a1203; color: #fff6dc; padding: 1px 5px; border-radius: 3px; }
.eb-q { flex-basis: 100%; font-size: 12px; color: var(--muted); }

/* ==========================================================================
   SIGN IN WITH GOOGLE + ACCOUNT
   ========================================================================== */
.google-wrap { display: flex; flex-direction: column; gap: 14px; }
.gbtn { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 11px 16px; border-radius: 4px; text-decoration: none;
  background: #fff; color: #1f1f1f; border: 1px solid #747775; font-family: Roboto, "Helvetica Neue", Arial, sans-serif; font-weight: 500; font-size: 15px;
  box-shadow: 0 2px 0 rgba(0,0,0,.25); transition: box-shadow .12s, transform .12s; }
.gbtn:hover, .gbtn:focus-visible { box-shadow: 0 4px 8px rgba(0,0,0,.3); transform: translateY(-1px); }
.gbtn svg { width: 20px; height: 20px; flex: none; }
.or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.or::before, .or::after { content: ""; flex: 1; border-top: 2px dashed var(--line2); }

.who-name { background: none; border: 0; padding: 2px 4px; cursor: pointer; border-bottom: 1px dashed transparent; }
.who-name:hover, .who-name:focus-visible { color: var(--tape); border-bottom-color: currentColor; }
.acct-card { padding: 12px 14px; background: #fff6b8; color: #3a2c14; box-shadow: 0 3px 8px rgba(0,0,0,.18); transform: rotate(-.6deg); }
.acct-card .hint { color: #6b5a3a; }
.acct-name { font-family: var(--f-hand); font-size: 22px; }
.acct-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line2); font-size: 14.5px; }
.copyrow { display: flex; gap: 8px; align-items: center; }
.copyrow code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; padding: 8px 10px; background: rgba(0,0,0,.06); border: 1px solid var(--line2); border-radius: 3px; font-size: 12.5px; }

/* ==========================================================================
   ACCOUNTS: sign-up extras, email banner, account panel, forms
   ========================================================================== */
.fine { margin: -4px 0 0; font-size: 11.5px; color: var(--muted); text-align: center; }
.fine a, .agree a, .modal .hint a { color: #a8480c; font-weight: 700; }
.agree { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.45; color: var(--fg); cursor: pointer; }
.agree input { width: 18px; height: 18px; margin: 1px 0 0; flex: none; accent-color: #b3401f; }
.forgot { align-self: center; font-size: 13.5px; }
.verify-banner { background: #fff6b8; color: #3a2c14; border-bottom: 2px dashed #c9a24a; flex-wrap: wrap; gap: 8px 14px; }
.verify-banner b { color: #2a1203; }
.vb-actions { display: inline-flex; gap: 8px; margin-left: auto; }
.mfoot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 4px; }
.inline-form { padding: 10px 12px 12px; margin: 4px 0 8px; background: rgba(0,0,0,.04); border: 1px dashed var(--line2); border-radius: 3px; display: flex; flex-direction: column; gap: 10px; }
.inline-form[hidden] { display: none !important; }
.data-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.file-btn { position: relative; overflow: hidden; cursor: pointer; }
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 0; }
.sethead.danger { color: #a3261a; }
.danger-link { color: #a3261a !important; font-size: 13.5px; }
.btn.danger-btn { background: #a3261a; color: #fff; border-color: #6e170f; }
#importMsg:not(:empty) { margin-top: 8px; font-weight: 700; color: var(--fg); }
/* account dialogs (forgot/reset password) must sit above the sign-in screen */
#settingsScrim { z-index: 70; }
/* never let a dialog grow wider than the screen */
.modal { min-width: 0; max-width: 100%; }
.modal .hint, .acct-row span { overflow-wrap: anywhere; }
@media (max-width: 720px) { .who { flex-wrap: wrap; justify-content: flex-end; flex: 1 1 auto; min-width: 0; } }
#changeEmailBtn, #delBtn { align-self: flex-start; }

/* ==========================================================================
   PEOPLE: avatars, membership card, visiting someone's shelf
   ========================================================================== */
.av { display: inline-grid; place-items: center; flex: none; border-radius: 50%; overflow: hidden; background: #3a2414;
  box-shadow: 0 0 0 2px #f3e6c9, 0 2px 6px rgba(0,0,0,.5); }
.av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.av-s { width: 24px; height: 24px; font-size: 10px; box-shadow: 0 0 0 1.5px #f3e6c9; }
.av-m { width: 44px; height: 44px; font-size: 16px; }
.av-l { width: 92px; height: 92px; font-size: 32px; box-shadow: 0 0 0 3px #f3e6c9, 0 0 0 5px var(--sticker), 0 6px 14px rgba(0,0,0,.5); }
.av-init { font-family: var(--f-sign); color: #fff; letter-spacing: .02em;
  background: radial-gradient(circle at 30% 25%, hsl(var(--av-h) 70% 58%), hsl(var(--av-h) 65% 32%)); text-shadow: 0 1px 0 rgba(0,0,0,.35); }
.who-name { display: inline-flex; align-items: center; gap: 7px; }
.people-btn { position: relative; }
.req-badge { position: absolute; top: -7px; right: -7px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--sticker);
  color: var(--sticker-ink); font-family: var(--f-sign); font-size: 10.5px; line-height: 18px; text-align: center; box-shadow: 0 1px 3px rgba(0,0,0,.5); }

.ptag { display: inline-block; font-family: var(--f-body); font-weight: 700; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase;
  padding: 2px 7px; border-radius: 3px; background: rgba(42,18,3,.1); color: #6b4a1c; vertical-align: middle; }
.ptag.friends { background: var(--sticker); color: var(--sticker-ink); }
.btn.following .lbl-off { display: none; }
.btn.following:hover .lbl-on, .btn.following:focus-visible .lbl-on { display: none; }
.btn.following:hover .lbl-off, .btn.following:focus-visible .lbl-off { display: inline; }
.locked-note { margin-top: 22px; text-align: center; padding: 34px 20px; border: 2px dashed rgba(243,230,201,.3); border-radius: 6px; color: var(--fg); }
.locked-note h2 { font-family: var(--f-sign); font-weight: 400; margin: 10px 0 6px; }
.locked-note p { color: var(--muted); max-width: 460px; margin: 0 auto; }
.values-hidden { margin: 12px 0 0; font-size: 13px; color: var(--muted); }

/* visiting someone else's shelf: read-only, nothing private */
.visiting .own-only, .visiting .newlib, .visiting .side-foot, .visiting #libEdit { display: none !important; }
.visiting .seg button { pointer-events: none; }
.visiting .seg button:not(.on) { opacity: .45; }
.locked .port, .locked #stacks, .locked .coll, .locked .libhead { display: none !important; }
.hide-values .tc-price, .hide-values .lib-val, .hide-values .port, .hide-values .ticker, .hide-values .gv,
.hide-values td.val, .hide-values th[data-sort="value"], .hide-values .case .val, .hide-values .vs-peek-cap br ~ *,
.hide-values .tc-rank, .hide-values .price-slot, .hide-values .drawer .dval, .hide-values .drawer .cmp .v, .hide-values .seg small { display: none !important; }

/* People panel */
.me-strip { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 12px; background: #fff6b8; color: #3a2c14; box-shadow: 0 3px 8px rgba(0,0,0,.15); }
.me-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.me-act { display: inline-flex; gap: 8px; flex-wrap: wrap; }
.warnline { margin: 0; }
.ptabs { display: flex; gap: 2px; border-bottom: 2px solid var(--line2); overflow-x: auto; }
.ptabs button { flex: none; background: none; border: 0; border-bottom: 3px solid transparent; margin-bottom: -2px; padding: 8px 10px; font-weight: 700; font-size: 14px; color: var(--muted); cursor: pointer; }
.ptabs button.on { color: var(--fg); border-bottom-color: #b3401f; }
.ptabs small { font-weight: 400; opacity: .8; }
.ptabs small.hot { background: var(--sticker); color: var(--sticker-ink); border-radius: 999px; padding: 0 6px; font-weight: 700; opacity: 1; }
.people-list { display: flex; flex-direction: column; max-height: 52vh; overflow-y: auto; }
.person { display: flex; align-items: center; gap: 10px; padding: 9px 2px; border-bottom: 1px dashed var(--line2); }
.person-main { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; background: none; border: 0; padding: 0; text-align: left; color: var(--fg); cursor: pointer; }
.person-main:hover .person-name { text-decoration: underline; }
.person-text { display: flex; flex-direction: column; min-width: 0; }
.person-name { font-weight: 700; font-size: 15px; overflow-wrap: anywhere; }
.person-sub, .person-bio { font-size: 12.5px; color: var(--muted); }
.person-bio { font-family: var(--f-hand); font-size: 14px; }
.person-act { display: inline-flex; gap: 6px; align-items: center; flex: none; }

/* profile editor */
.prof-edit { display: flex; flex-direction: column; gap: 12px; }
.prof-pic { display: flex; align-items: center; gap: 16px; }
.prof-pic-btns { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.radio { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; line-height: 1.4; margin: 4px 0; cursor: pointer; }
.radio input { margin-top: 2px; accent-color: #b3401f; }

@media (max-width: 720px) {
  .av-l { width: 68px; height: 68px; font-size: 24px; }
  .who-name > span:last-child { display: none; }
  .person { flex-wrap: wrap; }
  .person-act { margin-left: 56px; }
}
/* fixes: privacy radios, locked profile layout */
.field .radio { display: flex; flex-direction: row; align-items: flex-start; gap: 8px; font-weight: 400; color: var(--fg); font-size: 13.5px; }
.field .radio input { width: auto; flex: none; padding: 0; margin: 3px 0 0; }
.field .radio span { flex: 1; }
.locked .side { visibility: hidden; }

.mc-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; max-width: 700px; margin-top: 14px; }
.mc-right { display: inline-flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.mc-more { position: relative; }
.mc-more summary { list-style: none; cursor: pointer; padding: 4px 10px; border-radius: 3px; background: var(--paper); color: var(--fg); font-weight: 700; letter-spacing: .1em; border: 1px solid var(--line2); }
.mc-more summary::-webkit-details-marker { display: none; }
.mc-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; min-width: 210px; display: flex; flex-direction: column; padding: 6px;
  background: var(--paper); border-radius: 4px; box-shadow: 0 10px 24px rgba(0,0,0,.5); }
.mc-menu button { text-align: left; background: none; border: 0; padding: 9px 10px; border-radius: 3px; font: inherit; font-size: 14px; color: var(--fg); cursor: pointer; }
.mc-menu button:hover, .mc-menu button:focus-visible { background: rgba(179,64,31,.12); }
.block-list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.report { padding: 12px 2px; border-bottom: 1px dashed var(--line2); display: flex; flex-direction: column; gap: 8px; }
.report-top { display: flex; align-items: center; gap: 12px; }
.report-top .person-text { flex: 1; }
.report-details { margin: 0; font-family: var(--f-hand); font-size: 15px; }
.report-acts { display: flex; flex-wrap: wrap; gap: 6px; }

.mc-more summary, .mc-menu button { color: #2a1203; }
.mc-more summary { background: #f3e6c9; border-color: #c9b78f; }
.mc-menu { background: #f3e6c9; border: 1px solid #c9b78f; }

/* ==========================================================================
   MEMBERSHIP CARD: rental-counter card in black cassette plastic
   ========================================================================== */
.profile-head { margin: 0 0 22px; }
.member-card { position: relative; max-width: 700px; border-radius: 18px; overflow: hidden; color: #f3e6c9; transform: rotate(-.8deg);
  background:
    linear-gradient(118deg, transparent 32%, rgba(255,255,255,.07) 44%, transparent 56%),
    radial-gradient(circle at 30% 30%, rgba(255,255,255,.035) 0 1px, transparent 1.5px) 0 0 / 5px 5px,
    linear-gradient(180deg, #2b2522 0%, #1b1714 100%);
  box-shadow: 0 0 0 1px #000, inset 0 1px 0 rgba(255,255,255,.12), inset 0 0 0 2px rgba(255,179,122,.18), 0 18px 34px rgba(0,0,0,.7); }
.mc-hole { position: absolute; z-index: 2; top: 24px; left: 22px; width: 15px; height: 15px; border-radius: 50%;
  background: #0d0b0a; box-shadow: inset 0 2px 3px rgba(0,0,0,.9), 0 0 0 2px rgba(243,230,201,.55); }
/* the paper label with tracking stripes */
.mc-label { margin: 14px 14px 0; border-radius: 6px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,.6); }
.mc-stripes { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 12px; padding: 10px 14px 10px 44px;
  background: linear-gradient(180deg, #ff7a1a 0 30%, #f3e6c9 30% 36%, #e8a33d 36% 64%, #f3e6c9 64% 70%, #8a3d12 70% 100%); }
.mc-logo { font-family: var(--f-sign); font-size: 22px; line-height: 1; color: #2a1203; background: #f3e6c9; padding: 4px 12px 3px; border-radius: 3px; box-shadow: 0 0 0 2px #2a1203; }
.mc-sub { font-family: var(--f-body); font-weight: 700; font-size: 10px; letter-spacing: .26em; text-transform: uppercase; color: #2a1203; background: #f3e6c9; padding: 4px 9px; border-radius: 3px; }
.mc-body { display: flex; gap: 20px; align-items: flex-start; padding: 18px 24px 10px; }
.mc-photo { flex: none; display: flex; flex-direction: column; align-items: center; gap: 4px; transform: rotate(-2.5deg); }
.av-id { width: 100px; height: 112px; border-radius: 2px; font-size: 34px; box-shadow: 0 0 0 5px #f3e6c9, 0 0 0 6px rgba(0,0,0,.6), 0 6px 12px rgba(0,0,0,.6); }
.mc-photo-cap { margin-top: 6px; font-family: var(--f-body); font-weight: 700; font-size: 9px; letter-spacing: .25em; text-transform: uppercase; color: #a88b62; }
.mc-info { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 6px; }
/* embossed lettering, raised out of dark plastic */
.mc-no, .mc-name { font-family: var(--f-body); font-weight: 700; text-transform: uppercase; text-shadow: -1px -1px 0 rgba(255,255,255,.2), 1px 1px 0 #000, 2px 2px 1px rgba(0,0,0,.6); }
.mc-no { font-size: 19px; letter-spacing: .22em; color: #cdb88d; }
.mc-name { font-size: clamp(19px, 3.6vw, 25px); letter-spacing: .1em; line-height: 1.15; color: #f0e2c2; overflow-wrap: anywhere; }
.mc-handle { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.dymo { display: inline-block; padding: 3px 9px 2px; border-radius: 2px; background: #c94f12; color: #fff3e3; transform: rotate(-1.2deg);
  font-family: var(--f-body); font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  text-shadow: 0 1px 0 rgba(0,0,0,.45); box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.6); }
.member-card .ptag { background: #f3e6c9; color: #2a1203; }
.member-card .ptag.friends { background: var(--sticker); color: var(--sticker-ink); }
.mc-bio { margin: 4px 0 0; font-family: var(--f-hand); font-size: 17px; line-height: 1.3; color: #f3cf6b; overflow-wrap: anywhere; transform: rotate(-.6deg); }
/* the tape window: stats between two reels */
.mc-window { display: flex; align-items: center; gap: 16px; margin: 4px 24px 12px; padding: 10px 16px; border-radius: 10px;
  background: linear-gradient(180deg, rgba(60,40,25,.85), rgba(25,18,12,.92)); box-shadow: inset 0 0 0 2px #0d0b0a, inset 0 4px 12px rgba(0,0,0,.85); }
.mc-reel { flex: none; width: 46px; height: 46px; border-radius: 50%; background: radial-gradient(circle, #f3e6c9 0 8px, #0d0b0a 8px 10px, #3b2a1c 10px 100%); box-shadow: 0 0 0 2px #0d0b0a; }
.mc-stats { flex: 1; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 8px 10px; }
.mc-box { display: flex; flex-direction: column; min-width: 0; }
.mc-k { font-family: var(--f-body); font-weight: 700; font-size: 9px; letter-spacing: .22em; text-transform: uppercase; color: #a88b62; }
.mc-v { font-family: var(--f-sign); font-size: 18px; color: #f3e6c9; overflow-wrap: anywhere; }
.mc-v.money { color: #ffb37a; }
/* signature: a strip of lined label paper */
.mc-sig { display: flex; align-items: center; gap: 12px; margin: 0 24px 12px; min-height: 40px; padding: 2px 12px; border-radius: 3px;
  background: repeating-linear-gradient(180deg, #f3e6c9 0 19px, #d9c49b 19px 20px); box-shadow: 0 1px 3px rgba(0,0,0,.6); }
.mc-sig-k { flex: none; max-width: 72px; font-family: var(--f-body); font-weight: 700; font-size: 8.5px; line-height: 1.2; letter-spacing: .18em; text-transform: uppercase; color: #8a6a3c; }
.mc-sig-v { font-family: var(--f-hand); font-size: 23px; color: #2a1203; transform: rotate(-2.5deg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 24px 14px; border-top: 1px solid rgba(0,0,0,.6); box-shadow: inset 0 1px 0 rgba(255,255,255,.05); }
.mc-foot-text { display: flex; flex-direction: column; gap: 3px; }
.mc-motto { font-family: var(--f-sign); font-size: 11px; letter-spacing: .08em; color: var(--sticker); }
.mc-since { font-family: var(--f-body); font-weight: 700; font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: #a88b62; }
.mc-code { flex: none; display: inline-flex; flex-direction: column; align-items: center; padding: 6px 9px 3px; background: #fbf6ea; border-radius: 2px; transform: rotate(-2deg); box-shadow: 0 2px 6px rgba(0,0,0,.6); }
.mc-bars { display: flex; gap: 1.5px; height: 34px; }
.mc-bars i { display: block; background: #111; }
.mc-digits { font-family: var(--f-body); font-size: 9px; letter-spacing: .2em; color: #111; }

@media (max-width: 720px) {
  .member-card { transform: none; border-radius: 14px; }
  .mc-label { margin: 10px 10px 0; }
  .mc-stripes { padding: 8px 10px 8px 36px; }
  .mc-hole { top: 19px; left: 16px; }
  .mc-logo { font-size: 17px; } .mc-sub { font-size: 8px; letter-spacing: .18em; }
  .mc-body { padding: 14px 14px 6px; gap: 14px; }
  .av-id { width: 74px; height: 84px; font-size: 26px; }
  .mc-no { font-size: 14px; letter-spacing: .14em; }
  .mc-window { margin: 4px 14px 10px; padding: 10px 12px; gap: 10px; }
  .mc-reel { width: 30px; height: 30px; background: radial-gradient(circle, #f3e6c9 0 5px, #0d0b0a 5px 7px, #3b2a1c 7px 100%); }
  .mc-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mc-sig { margin: 0 14px 10px; }
  .mc-foot { padding: 8px 14px 12px; }
  .mc-motto { font-size: 9px; }
}

/* ==========================================================================
   WELCOME PAGE: a peek through the store window
   ========================================================================== */
.auth { background-color: var(--wall);
  background-image:
    radial-gradient(ellipse 60% 50% at 28% 30%, rgba(255,122,26,.10), transparent 70%),
    radial-gradient(ellipse 50% 40% at 80% 50%, rgba(255,92,168,.06), transparent 70%),
    repeating-linear-gradient(90deg, #2b1a0e 0 118px, #24150b 118px 121px, #2f1d10 121px 240px); }
.auth-art { justify-content: flex-start; gap: 22px; padding: 40px 44px 44px; }
.aa-spot { position: absolute; inset: -20% -10% auto -10%; height: 70%; pointer-events: none;
  background: radial-gradient(ellipse at 35% 0%, rgba(255,214,150,.16), transparent 60%); }
.aa-logo { align-self: flex-start; font-size: 1.25em; transform-origin: left center; scale: 1.25; margin: 6px 0 4px 6px; }
.aa-logo b { animation: buzz 7s infinite; }
.aa-ticker { flex: none; display: block; max-width: 640px; }
.aa-ticker .ticker-track { animation-duration: 40s; }
.aa-head { position: relative; }
.auth-art .eyebrow { font-size: 22px; }
.auth-art h1 { font-family: var(--f-sign); font-weight: 400; font-size: clamp(44px, 6vw, 84px); line-height: .92; max-width: 10ch; margin: 6px 0 0;
  color: #f3e6c9; text-shadow: 0 3px 0 #b3401f, 0 6px 0 rgba(0,0,0,.45), 0 0 40px rgba(255,122,26,.25); }
.auth-art p { font-size: 16.5px; color: #d8c3a0; max-width: 46ch; }
.aa-scene { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 22px; align-items: end; max-width: 760px; }

/* little TV with the portfolio line */
.aa-tv { position: relative; padding: 12px 12px 26px; border-radius: 18px; background: linear-gradient(160deg, #6b4022, #3e2412);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.07), 0 14px 24px rgba(0,0,0,.6); transform: rotate(-2deg); }
.aa-screen { position: relative; overflow: hidden; height: 150px; padding: 12px 14px; border-radius: 14px / 22px; background: radial-gradient(ellipse at 50% 40%, #12301d, #061209 80%);
  box-shadow: inset 0 0 0 3px #0a0603, inset 0 0 30px rgba(0,0,0,.9); }
.aa-screen::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(0,0,0,.25) 0 1px, transparent 1px 3px); }
.aa-tv-k { font-family: var(--f-vcr); font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: #7dbf8f; }
.aa-tv-v { font-family: var(--f-vcr); font-size: 38px; line-height: 1; color: #9dffb4; text-shadow: 0 0 10px rgba(141,255,170,.7); }
.aa-tv-c { font-family: var(--f-vcr); font-size: 17px; color: #9dffb4; } .aa-tv-c span { color: #7dbf8f; }
.aa-tv-chart { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 58px; }
.aa-tv-chart .line { fill: none; stroke: #9dffb4; stroke-width: 2.2; filter: drop-shadow(0 0 4px rgba(141,255,170,.8)); vector-effect: non-scaling-stroke; }
.aa-tv-chart .fill { fill: rgba(141,255,170,.12); }
.aa-tv-knobs { position: absolute; left: 16px; right: 16px; bottom: 6px; display: flex; align-items: center; gap: 8px; }
.aa-tv-knobs i { width: 12px; height: 12px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #d9c49b, #6b5232); box-shadow: 0 1px 2px rgba(0,0,0,.6); }
.aa-tv-knobs span { margin-left: auto; font-family: var(--f-vcr); font-size: 13px; color: #ffae3b; text-shadow: 0 0 6px rgba(255,174,59,.7); }

/* a lit aisle of tapes */
.aa-aisle { gap: 10px; padding: 0; }
.aa-aisle .aisle-head { padding: 0; margin: 0; }
.aa-row { display: flex; gap: 12px; padding: 4px 6px 22px; overflow: hidden;
  background: linear-gradient(transparent calc(100% - 18px), #6f4426 calc(100% - 18px), #4a2c18 calc(100% - 6px), rgba(0,0,0,.6) 100%);
  mask-image: linear-gradient(90deg, #000 85%, transparent); -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); }
.aa-tape { flex: none; width: 92px; animation: aa-bob 6s ease-in-out infinite; animation-delay: calc(var(--i) * -.7s); }
.aa-tape .tc-art { aspect-ratio: 2 / 3; }
.aa-tape .tc-art > .cover .ctitle { font-size: 11px; }
.aa-tape .tc-price { font-size: 10px; padding: 2px 6px; }
.aa-tape:nth-child(odd) .tc-art { transform: rotate(-1.5deg); }
.aa-tape:nth-child(3n) .tc-art { transform: rotate(1.2deg) translateY(-3px); }
@keyframes aa-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -4px; } }

/* sign-up card wears the membership card's striped label */
.auth-form { padding-top: 0; overflow: hidden; }
.auth-label { margin: 0 -28px 4px -28px; border-radius: 0; box-shadow: none; }
.auth-label .mc-stripes { padding: 12px 22px; justify-content: center; }
.auth-form .tabs button.on { color: #2a1203; }

@media (prefers-reduced-motion: reduce) { .aa-tape, .aa-logo b { animation: none; } }
@media (max-width: 1100px) { .aa-scene { grid-template-columns: minmax(0, 1fr); } .aa-tv { max-width: 280px; } }
@media (max-width: 720px) {
  .auth-art { padding: 24px 16px 8px; gap: 16px; }
  .aa-logo { scale: 1.05; }
  .aa-ticker { display: block !important; }
  .auth-art h1 { font-size: 44px; }
  .aa-scene { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .aa-tv { max-width: 260px; }
  .aa-screen { height: 120px; } .aa-tv-v { font-size: 30px; }
  .aa-tape { width: 80px; }
}
.auth-form { background-image: repeating-linear-gradient(180deg, transparent 0 27px, rgba(150,100,50,.16) 27px 28px); }
.aa-aisle, .aa-scene > * { min-width: 0; }
.aa-ticker { max-width: min(640px, 100%); }
.auth { overflow-x: hidden; } .aa-spot { inset: -20% 0 auto 0; }

/* Neon sign, re-lit in warm amber to match the wood and the price stickers */
.logo { --neon: #ff9a2e; --neon-soft: rgba(255, 138, 30, .5); color: #fff1d6; background: rgba(24, 12, 4, .6); border-color: #ffb45c; }
.logo b { text-shadow: 0 0 4px #fff4e0, 0 0 10px var(--neon), 0 0 22px var(--neon), 0 0 42px var(--neon-soft); }
.logo .reel { border-color: #fff1d6; }
.top .logo { cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; }
.top .logo:hover, .top .logo:focus-visible { transform: translateY(-1px); box-shadow: 0 0 8px var(--neon-soft), 0 0 26px var(--neon-soft), inset 0 0 10px var(--neon-soft); }
.top .logo:active { transform: translateY(1px); }
.logo.zap b { animation: zap .55s steps(1) 1; }
.logo.zap { animation: zapbox .55s steps(1) 1; }
@keyframes zap { 0% { opacity: .2; } 15% { opacity: 1; } 30% { opacity: .35; } 45% { opacity: 1; } 60% { opacity: .6; } 75%, 100% { opacity: 1; } }
@keyframes zapbox { 0% { border-color: #6b4a2a; } 15% { border-color: #ffb45c; } 30% { border-color: #6b4a2a; } 45%, 100% { border-color: #ffb45c; } }

/* Add a film: search / manual tabs */
.add-mode { margin-bottom: 2px; }
.add-mode button { white-space: normal; line-height: 1.2; }

/* ==========================================================================
   THE STACKS v2 — your own stat cards + era / genre charts
   ========================================================================== */
.stacks-head { align-items: center; }
.stack-edit { margin-left: auto; border: 0; cursor: pointer; font-family: var(--f-hand); font-size: 15px; padding: 3px 11px; border-radius: 3px;
  background: rgba(0,0,0,.3); color: var(--tape); box-shadow: inset 0 0 0 1.5px rgba(243,230,201,.25); }
.stack-edit:hover, .stack-edit.on { background: var(--tape); color: var(--tape-ink); box-shadow: none; }
button.fact { border: 0; text-align: left; cursor: pointer; font: inherit; transition: transform .12s, filter .12s; }
button.fact:hover, button.fact:focus-visible { filter: brightness(1.06); transform: translateY(-2px) rotate(0); }
.stack-facts > .hint { grid-column: 1 / -1; margin: 0; color: var(--muted); }

.stack-pick { margin: 0 0 16px; padding: 12px 14px; border-radius: 4px; background: #f3e6c9; color: #2a1203; box-shadow: 0 6px 16px rgba(0,0,0,.4); }
.sp-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: 10px; font-size: 13px; }
.sp-head b { font-family: var(--f-sign); font-weight: 400; font-size: 17px; }
.sp-head span { color: #6b5338; }
.sp-list { display: flex; flex-wrap: wrap; gap: 6px; }
.sp { display: inline-flex; align-items: center; gap: 6px; border: 0; cursor: pointer; padding: 5px 11px; border-radius: 999px; font-family: var(--f-body); font-weight: 700; font-size: 12.5px;
  background: rgba(42,18,3,.07); color: #2a1203; box-shadow: inset 0 0 0 1.5px rgba(42,18,3,.25); }
.sp:hover:not(:disabled) { box-shadow: inset 0 0 0 1.5px #a8480c; }
.sp.on { background: #2a1203; color: #f3e6c9; box-shadow: none; }
.sp b { display: inline-grid; place-items: center; min-width: 18px; height: 18px; border-radius: 50%; background: var(--sticker); color: var(--sticker-ink); font-size: 11px; }
.sp:disabled { opacity: .4; cursor: not-allowed; }
.sp-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
.stack-pick .linkish { color: #a8480c; }

.stack-chart { min-width: 0; display: flex; flex-direction: column; gap: 10px; align-self: stretch; }
.sc-tabs { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.sc-seg { display: inline-flex; padding: 3px; gap: 3px; border-radius: 4px; background: rgba(0,0,0,.35); box-shadow: inset 0 0 0 1px rgba(243,230,201,.15); }
.sc-seg button { border: 0; cursor: pointer; padding: 4px 11px; border-radius: 3px; background: none; color: var(--muted); font-family: var(--f-body); font-weight: 700; font-size: 12.5px; }
.sc-seg button:hover { color: var(--fg); }
.sc-seg button.on { background: var(--tape); color: var(--tape-ink); }
.sc-seg.small button { font-size: 11.5px; padding: 3px 9px; }
.sc-body { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; min-height: 150px; }
.sc-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; font-size: 11.5px; color: var(--muted); }
.sc-legend span { display: inline-flex; align-items: center; gap: 6px; }
.sc-legend i { display: inline-block; width: 16px; height: 10px; border-radius: 1px; }
.sc-tip { margin-left: auto; font-family: var(--f-hand); font-size: 13px; color: var(--tape) !important; }
.stack-filter { grid-column: 1 / -1; font-size: 13px; color: var(--muted); }
.stack-filter b { color: var(--fg); }

/* format "cases" used by both charts and the legend */
.seg-vhs { background: repeating-linear-gradient(180deg, #1b1612 0 9px, #f0e4c6 9px 10px, #1b1612 10px 13px, #c4432e 13px 14px); }
.seg-dvd { background: repeating-linear-gradient(180deg, #5c2617 0 5px, #e2c49a 5px 6px, #5c2617 6px 8px, #2a0f08 8px 9px); }
.seg-blu { background: repeating-linear-gradient(180deg, #3f4c46 0 4px, #c9d4c8 4px 5px, #3f4c46 5px 6px, #1d2622 6px 7px); }

/* era: stacked tapes and cases per decade */
.decades { height: 150px; }
.dec-bar { display: flex; flex-direction: column-reverse; background: none; box-shadow: none; overflow: visible; }
.dec-bar > i { display: block; flex: 1 1 0; min-height: 2px; box-shadow: inset -3px 0 0 rgba(0,0,0,.35); }
.dec-bar > i:last-of-type { border-radius: 2px 2px 0 0; }
.dec.on .dec-bar > i { box-shadow: inset -3px 0 0 rgba(0,0,0,.35), inset 0 0 0 2px var(--sticker); }
.dec.on .dec-bar { background: none; filter: drop-shadow(0 0 8px rgba(255,122,26,.55)); }
.dec-n { top: -21px; white-space: nowrap; }

/* genre: spines lined up on a shelf, longest shelf wins */
.gchart { display: flex; flex-direction: column; gap: 5px; }
.grow { display: grid; grid-template-columns: minmax(0, 8.5em) minmax(0, 1fr); align-items: center; gap: 10px; border: 0; background: none; padding: 1px 4px; border-radius: 3px; cursor: pointer; color: var(--fg); text-align: left; }
.grow:hover { background: rgba(0,0,0,.2); }
.grow-name { font-family: var(--f-body); font-weight: 700; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.grow-track { display: flex; align-items: center; gap: 8px; min-width: 0; border-bottom: 3px solid #6f4426; padding-bottom: 1px; }
.grow-bar { display: flex; height: 15px; min-width: 6px; transform-origin: left; }
.grow-bar > i { display: block; flex: 1 1 0; min-width: 2px;
  background-image: linear-gradient(transparent 32%, rgba(240,228,198,.8) 32% 52%, transparent 52%), repeating-linear-gradient(90deg, transparent 0 8px, rgba(0,0,0,.55) 8px 9px); }
.grow-bar > .seg-vhs { background-color: #1b1612; } .grow-bar > .seg-dvd { background-color: #5c2617; } .grow-bar > .seg-blu { background-color: #3f4c46; }
.grow-n { font-family: var(--f-vcr); font-size: 16px; color: var(--led); text-shadow: 0 0 6px rgba(255,174,59,.5); white-space: nowrap; }
.grow.on .grow-name { color: var(--sticker); }
.grow.on .grow-bar { outline: 2px solid var(--sticker); outline-offset: 1px; }
.gmore { margin: 2px 0 0 4px; font-size: 12px; color: var(--muted); }

.sc-body.anim .dec-bar { animation: mm-grow-up .7s cubic-bezier(.2,.8,.2,1) backwards; animation-delay: calc(var(--i, 0) * 45ms); transform-origin: bottom; }
.sc-body.anim .grow-bar { animation: mm-grow-right .7s cubic-bezier(.2,.8,.2,1) backwards; animation-delay: calc(var(--i, 0) * 45ms); }
@keyframes mm-grow-up { from { transform: scaleY(0); } }
@keyframes mm-grow-right { from { transform: scaleX(0); } }
@media (prefers-reduced-motion: reduce) { .sc-body.anim .dec-bar, .sc-body.anim .grow-bar { animation: none; } }
@media (max-width: 720px) {
  .sc-tip { display: none; }
  .grow { grid-template-columns: minmax(0, 7em) minmax(0, 1fr); }
  .stack-edit { font-size: 14px; }
}
.stacks-grid { align-items: start; }
.stack-facts { align-content: start; }
.grow { min-height: 0; padding: 2px 4px; line-height: 1.2; }
.gchart { gap: 4px; }
.grow-bar { height: 19px; }
.grow-bar > i { background-image:
  linear-gradient(transparent 38%, rgba(240,228,198,.38) 38% 62%, transparent 62%),
  repeating-linear-gradient(90deg, transparent 0 6px, rgba(255,240,210,.22) 6px 7px, rgba(0,0,0,.6) 7px 8px); }
.decades.value .dec-n { font-size: 13px; top: -18px; }
@media (max-width: 720px) {
  .sc-legend .sc-tip { display: none; }
  .decades { gap: 3px; padding: 0; }
  .decades .dec-label { font-size: 12px; }
  .decades .dec-n { font-size: 13px; }
  .decades.value .dec-n { font-size: 10px; top: -15px; }
}

/* Aisle signs, take 3: the calm walnut plate, with the store's lettering and a little hardware back. */
.aisle-head { padding-top: 10px; }
.aisle-sign { position: relative; overflow: visible; border-radius: 4px; border: 0; color: #f1e3c0;
  background: linear-gradient(#33200f, #241609);
  box-shadow: inset 0 0 0 1px #6f4426, inset 0 0 0 3px #241609, inset 0 0 0 4px rgba(232,217,181,.28), inset 0 1px 0 4px rgba(255,240,210,.05), 0 4px 10px rgba(0,0,0,.5); }
/* two little hangers, like it's hung from the ceiling grid */
.aisle-sign::before, .aisle-sign::after { content: ""; position: absolute; top: -10px; width: 6px; height: 10px; border: 2px solid #8a6a46; border-bottom: 0; border-radius: 4px 4px 0 0; }
.aisle-sign::before { left: 18px; } .aisle-sign::after { right: 18px; }
.aisle-no { margin: 4px 0 4px 4px; border-radius: 2px; min-width: 42px; padding: 3px 7px 3px; background: #ead9b3;
  box-shadow: inset 0 0 0 1px rgba(42,23,8,.25); }
.aisle-no small { font-size: 7.5px; letter-spacing: .22em; }
.aisle-no b { font-family: var(--f-sign); font-weight: 400; font-size: 19px; line-height: 1; margin-top: 1px; }
.aisle-name { flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px; padding: 5px 16px 6px 12px;
  font-family: var(--f-sign); font-weight: 400; font-size: 17px; letter-spacing: .05em; line-height: 1; text-shadow: 0 1px 0 #120a04; }
/* the store's orange / amber / rust pinstripe under the name */
.aisle-name::after { content: ""; display: block; width: 100%; min-width: 40px; height: 5px; border-radius: 1px;
  background: linear-gradient(#ff7a1a 0 1.5px, transparent 1.5px 2px, #e8a33d 2px 3.5px, transparent 3.5px 4px, #a8481c 4px 5px); opacity: .85; }
@media (max-width: 720px) {
  .aisle-name { font-size: 15px; }
  .aisle-no b { font-size: 17px; }
}

/* ==========================================================================
   MEMBERSHIP — Walk-in / Member
   ========================================================================== */
/* the foil sticker slapped on a Member's card */
.mc-sticker { position: absolute; z-index: 3; top: 58px; right: 22px; width: 88px; height: 88px; display: grid; place-items: center; transform: rotate(12deg);
  filter: drop-shadow(0 3px 4px rgba(0,0,0,.55)); pointer-events: auto; }
.mc-sticker::before { content: ""; position: absolute; inset: 0;
  clip-path: polygon(50% 0%, 57% 12%, 69% 4%, 72% 18%, 85% 15%, 82% 29%, 96% 31%, 88% 43%, 100% 50%, 88% 57%, 96% 69%, 82% 71%, 85% 85%, 72% 82%, 69% 96%, 57% 88%, 50% 100%, 43% 88%, 31% 96%, 28% 82%, 15% 85%, 18% 71%, 4% 69%, 12% 57%, 0% 50%, 12% 43%, 4% 31%, 18% 29%, 15% 15%, 28% 18%, 31% 4%, 43% 12%);
  background: radial-gradient(circle at 35% 30%, #fff6c8 0 8%, transparent 30%), linear-gradient(135deg, #f7d26b, #d9a22e 45%, #fbe39a 60%, #b8801b); }
.mc-sticker > span { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 50%;
  border: 1.5px dashed rgba(60,30,5,.55); font-family: var(--f-sign); font-size: 13px; line-height: 1; color: #3b1d06; text-shadow: 0 1px 0 rgba(255,240,200,.6); letter-spacing: .02em; }
.mc-sticker small { font-family: var(--f-body); font-weight: 700; font-size: 7.5px; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 3px; }
.mc-sticker.founder::before { background: radial-gradient(circle at 35% 30%, #fff6c8 0 8%, transparent 30%),
  conic-gradient(from 20deg, #f7d26b, #ff9a2e, #fbe39a, #e8a33d, #f7d26b, #ffcf7a, #f7d26b); }
.mc-sticker.founder > span { background: radial-gradient(circle, rgba(201,79,18,.18), transparent 70%); border-color: rgba(138,61,18,.7); }
.mc-sticker.static { position: relative; top: auto; right: auto; flex: none; }
.member-card.is-member .mc-info { padding-right: 92px; }
@media (max-width: 720px) {
  .mc-sticker { top: 50px; right: 12px; width: 70px; height: 70px; }
  .mc-sticker > span { width: 52px; height: 52px; font-size: 11px; }
  .member-card.is-member .mc-info { padding-right: 70px; }
}

/* header chip */
.tier-chip { border: 0; cursor: pointer; font-family: var(--f-body); font-weight: 700; font-size: 11.5px; letter-spacing: .04em; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.tier-chip.walkin { background: rgba(243,230,201,.12); color: var(--tape, #f3e6c9); box-shadow: inset 0 0 0 1.5px rgba(243,230,201,.35); }
.tier-chip.walkin:hover { background: var(--sticker); color: var(--sticker-ink); box-shadow: none; }
.tier-chip.member, .tier-chip.founder { background: linear-gradient(135deg, #f7d26b, #d9a22e 50%, #fbe39a); color: #3b1d06; }

/* locks */
.ranges button.locked { opacity: .55; }
.ranges button.locked:hover { opacity: .9; }
.lock { font-size: .8em; margin-left: 3px; }
.member-more { display: flex; align-items: center; gap: 10px; width: 100%; margin: 8px 0 0; padding: 9px 12px; border: 1.5px dashed rgba(168,72,12,.45); border-radius: 6px;
  background: rgba(255,122,26,.06); color: inherit; font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
.member-more:hover { background: rgba(255,122,26,.14); }
.member-more .mm-cta { margin-left: auto; font-weight: 700; color: #a8480c; white-space: nowrap; }
.cap-note { margin: 0 0 14px; padding: 12px 14px; border-radius: 6px; background: #fff6d6; border: 1.5px dashed #c99b3a; color: #3a2c14; font-size: 14px; line-height: 1.5; }

/* the membership panel */
.mem-why { margin: 0 0 12px; font-size: 15px; }
table.tiers { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.tiers th, table.tiers td { padding: 7px 8px; border-bottom: 1px solid rgba(0,0,0,.1); text-align: center; }
table.tiers th:first-child, table.tiers td:first-child { text-align: left; }
table.tiers thead th { font-family: var(--f-sign); font-weight: 400; font-size: 15px; vertical-align: bottom; }
table.tiers thead th small { display: block; font-family: var(--f-body); font-weight: 700; font-size: 11px; color: #6b5338; }
table.tiers th:last-child, table.tiers td:last-child { background: rgba(247,210,107,.18); }
.mem-buy { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 14px 0 4px; }
.redeem { margin-top: 14px; padding-top: 12px; border-top: 1px dashed rgba(0,0,0,.18); }
.redeem label { display: block; font-weight: 700; font-size: 13px; margin-bottom: 6px; }
.redeem-row { display: flex; gap: 8px; }
.redeem-row input { flex: 1; min-width: 0; font-family: var(--f-body); letter-spacing: .08em; text-transform: uppercase; }
.mem-status { display: flex; align-items: center; gap: 16px; margin: 0 0 14px; }
details.gift { margin: 4px 0 6px; }
details.gift summary { cursor: pointer; font-size: 13px; color: #a8480c; font-weight: 700; }
.redeem-row input { background: #f6ecd4; color: #2a1203; border: 1.5px solid #b9a57f; border-radius: 4px; padding: 8px 10px; font-size: 15px; }
.redeem-row input::placeholder { color: #9c8a6a; }
@media (max-width: 720px) { .tier-chip { font-size: 10.5px; padding: 3px 8px; } }

/* welcome page: FAQ link */
.aa-faq { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; margin-top: 4px; padding: 6px 14px 6px 6px; border-radius: 999px;
  background: rgba(0,0,0,.35); box-shadow: inset 0 0 0 1.5px rgba(243,230,201,.25); color: #f3e6c9; font-family: var(--f-body); font-weight: 700; font-size: 14px; text-decoration: none; }
.aa-faq:hover { box-shadow: inset 0 0 0 1.5px var(--sticker); }
.aa-free { font-family: var(--f-sign); font-weight: 400; font-size: 12px; color: #2a1203; background: linear-gradient(135deg, #f7d26b, #d9a22e 50%, #fbe39a); padding: 3px 9px; border-radius: 999px; transform: rotate(-3deg); }
.faq-line { text-align: center; margin: 2px 0 0; }
.aa-free { white-space: nowrap; flex: none; }
