/* slash/system32 — v2 styles (editorial redesign) */

:root {
  --bg:        #0a0a0b;
  --surface:   #111113;
  --surface2:  #121214;
  --line:      #26262a;
  --line2:     #3a3a40;
  --text:      #f3eee6;
  --text-2:    #c9c2b6;
  --muted:     #a39d93;
  --red:       #ff003c;   /* accents and text on black */
  --red-btn:   #d40032;   /* button fill: passes contrast with white text */
  --font-ui:      'Orbitron', sans-serif;
  --font-display: 'Bodoni Moda', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --wrap: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: 16px; line-height: 1.5;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: var(--text); text-decoration: none; }
a:hover { color: var(--red); }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.ui { font-family: var(--font-ui); letter-spacing: 0.16em; text-transform: uppercase; }
.kicker { font-family: var(--font-ui); font-size: 12px; letter-spacing: 0.22em; color: var(--red); margin: 0; }
.display { font-family: var(--font-display); font-weight: 400; line-height: 1; margin: 0; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Buttons ───────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-ui); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase;
  min-height: 48px; padding: 0 24px; cursor: pointer; border-radius: 0;
  border: 1px solid var(--line2); background: transparent; color: var(--text);
  transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { border-color: var(--text); color: var(--text); }
.btn-primary { background: var(--red-btn); border-color: var(--red-btn); color: #fff; font-weight: 700; }
.btn-primary:hover { background: var(--red); border-color: var(--red); color: #fff; }
.btn-ghost { background: transparent; }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 11px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

/* ── Top strip + nav ───────────────────────────── */
.topstrip {
  border-bottom: 1px solid var(--line); padding: 10px 24px;
  display: flex; justify-content: center; gap: 28px; flex-wrap: wrap;
  font-family: var(--font-ui); font-size: 11px; letter-spacing: 0.14em; color: var(--muted);
}
.topstrip .dot { color: var(--red); }

.navbar {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(10,10,11,0.94); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.navbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.logo { font-family: var(--font-ui); font-weight: 700; font-size: 20px; letter-spacing: 0.04em; color: var(--text); white-space: nowrap; }
.logo span { color: var(--red); }
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; margin: 0; padding: 0; }
.nav-links a { font-family: var(--font-ui); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; }
.nav-right { display: flex; align-items: center; gap: 4px; }
.cart-btn {
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
  font-family: var(--font-ui); font-size: 12px; letter-spacing: 0.16em;
  color: var(--text); background: transparent; border: 1px solid var(--line2);
  min-height: 44px; padding: 0 16px;
}
.cart-btn:hover { border-color: var(--text); }
.cart-btn svg { display: none; }
.cart-count {
  min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px;
  background: var(--red-btn); color: #fff; font-size: 10px; letter-spacing: 0;
  display: inline-flex; align-items: center; justify-content: center;
}
.nav-toggle { display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; align-items: center; justify-content: center; }

/* ── Hero ──────────────────────────────────────── */
.hero { padding-top: 8px; }
.hero-frame {
  position: relative; border: 1px solid var(--line); background: var(--surface);
  width: 100%; aspect-ratio: 1900 / 625; min-height: 440px; overflow: hidden;
}
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.hero-frame::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(10,10,11,0.92) 0%, rgba(10,10,11,0.75) 38%, rgba(10,10,11,0) 66%);
}
.hero-content {
  position: absolute; z-index: 1; left: 0; top: 0; bottom: 0; width: 62%;
  padding: 48px 56px; display: flex; flex-direction: column; justify-content: center; gap: 18px;
}
.hero-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(40px, 5vw, 72px); line-height: 0.98; margin: 0; letter-spacing: 0; }
.hero-sub { margin: 0; max-width: 520px; color: var(--text-2); font-size: 17px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 6px; }

/* ── Sections ──────────────────────────────────── */
.section { padding-top: 112px; }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  border-bottom: 1px solid var(--line); padding-bottom: 24px;
}
.section-head .stack { display: flex; flex-direction: column; gap: 8px; }
.section-title { font-size: 56px; }
.section-sub { margin: 0; color: var(--muted); }

.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  font-family: var(--font-ui); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  min-height: 44px; padding: 0 16px; cursor: pointer;
  border: 1px solid var(--line2); background: transparent; color: var(--text);
}
.chip:hover { border-color: var(--text); }
.chip[aria-pressed="true"] { background: var(--red-btn); border-color: var(--red-btn); color: #fff; }

/* ── Album / product cards ─────────────────────── */
.album-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 40px 28px; padding-top: 40px;
}
.album-card { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.album-link {
  display: flex; flex-direction: column; gap: 14px; color: var(--text);
  background: none; border: 0; padding: 0; text-align: left; cursor: pointer; font: inherit;
}
.album-link:hover { color: var(--text); }
.album-link:hover .cover { border-color: var(--red); }
.album-link:hover .album-title { color: var(--red); }
.cover {
  position: relative; aspect-ratio: 1 / 1; background: var(--surface2);
  border: 1px solid var(--line); overflow: hidden; transition: border-color .15s;
}
.cover img { width: 100%; height: 100%; object-fit: cover; }
.cover-type {
  position: absolute; inset: 0; padding: 18px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.cover-type .top { display: flex; justify-content: space-between; font-family: var(--font-ui); font-size: 10px; letter-spacing: 0.18em; color: var(--muted); }
.cover-type .name { word-break: keep-all; overflow-wrap: normal; font-family: var(--font-display); font-style: italic; font-size: 28px; line-height: 1.05; color: var(--text); }
.cover-type .game { font-family: var(--font-ui); font-size: 10px; letter-spacing: 0.18em; color: var(--red); text-transform: uppercase; }
.cover-tag {
  position: absolute; top: 12px; right: 12px; z-index: 1;
  background: var(--red-btn); color: #fff; font-family: var(--font-ui); font-size: 10px; letter-spacing: 0.14em;
  padding: 5px 10px;
}
.album-title { word-break: keep-all; margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 21px; line-height: 1.2; transition: color .15s; }
.album-meta { margin: -6px 0 0; font-size: 14px; color: var(--muted); }
.album-buy { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: auto; }
.price { font-family: var(--font-ui); font-size: 15px; letter-spacing: 0.06em; }
.price-original { text-decoration: line-through; opacity: .5; margin-right: 6px; font-size: .85em; }
.price-sale { color: var(--red); font-weight: 700; }
.empty-note { color: var(--muted); padding-top: 40px; }

/* ── Value strip ───────────────────────────────── */
.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.value { padding: 36px 28px; display: flex; flex-direction: column; gap: 8px; }
.value + .value { border-left: 1px solid var(--line); }
.value:first-child { padding-left: 0; }
.value:last-child { padding-right: 0; }
.value p { margin: 0; font-family: var(--font-display); font-size: 24px; line-height: 1.25; }

/* ── YouTube ───────────────────────────────────── */
.yt { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.yt-text { flex: 1 1 380px; display: flex; flex-direction: column; gap: 16px; }
.yt-text h2 { font-size: 52px; line-height: 1.02; }
.yt-text p { margin: 0; color: var(--text-2); max-width: 440px; }
.yt-thumb { flex: 1 1 520px; aspect-ratio: 16 / 9; border: 1px solid var(--line); background: var(--surface); overflow: hidden; }
.yt-thumb img { width: 100%; height: 100%; object-fit: cover; }
.yt-embed { width: 100%; height: 100%; border: 0; display: block; }

/* ── Footer ────────────────────────────────────── */
.footer { margin-top: 128px; border-top: 1px solid var(--line); }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; align-items: flex-end; padding-top: 56px; padding-bottom: 40px; }
.footer-brand .logo { font-size: 28px; }
.footer-brand p { margin: 10px 0 0; font-family: var(--font-ui); font-size: 12px; letter-spacing: 0.22em; color: var(--muted); }
.footer-links { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-links a { font-family: var(--font-ui); font-size: 12px; letter-spacing: 0.16em; min-height: 44px; display: inline-flex; align-items: center; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-bottom: 40px; font-size: 13px; color: var(--muted); }

/* ── Album detail page ─────────────────────────── */
.crumbs { display: flex; gap: 10px; flex-wrap: wrap; padding-top: 24px; font-family: var(--font-ui); font-size: 11px; letter-spacing: 0.16em; color: var(--muted); text-transform: uppercase; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--red); }
.crumbs .here { color: var(--text); }
.album-hero { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; padding-top: 32px; }
.album-hero .cover { flex: 1 1 420px; max-width: 560px; }
.album-hero .cover-type { padding: 32px; }
.album-hero .cover-type .name { font-size: 56px; }
.album-hero .cover-type .top, .album-hero .cover-type .game { font-size: 12px; }
.album-info { flex: 1 1 440px; display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.album-info h1 { font-size: 64px; line-height: 0.98; }
.album-info h1 em { color: var(--text-2); }
.album-big-price { font-family: var(--font-ui); font-size: 30px; letter-spacing: 0.04em; }
.album-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.album-actions .btn { min-height: 52px; }
.zip { border-top: 1px solid var(--line); padding-top: 22px; display: flex; flex-direction: column; gap: 10px; }
.zip-label { font-family: var(--font-ui); font-size: 11px; letter-spacing: 0.18em; color: var(--muted); }
.zip-items { display: flex; gap: 10px; flex-wrap: wrap; }
.zip-items span { border: 1px solid var(--line2); padding: 6px 12px; font-size: 14px; }
.album-blurb { margin: 0; font-family: var(--font-display); font-size: 20px; line-height: 1.5; color: #d9d3c8; white-space: pre-line; }
.album-lower { display: flex; flex-wrap: wrap; gap: 56px; padding-top: 96px; }
.album-lower > div { flex: 1 1 440px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.album-lower h2 { font-size: 44px; }
.tracklist { list-style: none; margin: 4px 0 0; padding: 0; border-top: 1px solid var(--line); }
.tracklist li { display: flex; gap: 20px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); }
.tracklist .n { font-family: var(--font-ui); font-size: 12px; letter-spacing: .1em; color: var(--red); width: 28px; flex: none; }
.tracklist .t { font-family: var(--font-display); font-size: 20px; }
.listen-box { aspect-ratio: 16 / 9; border: 1px solid var(--line); background: var(--surface); overflow: hidden; position: relative; }
.listen-box > a { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.listen-box > a img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.listen-box .play { position: relative; z-index: 1; }
.not-found { padding: 120px 0; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }

/* ── Cart drawer ───────────────────────────────── */
.cart-overlay { display: none; position: fixed; inset: 0; z-index: 1100; background: rgba(0,0,0,.7); }
.cart-overlay.open { display: block; }
.cart-drawer {
  position: fixed; top: 0; right: -440px; z-index: 1200; width: 420px; max-width: 100%; height: 100vh; height: 100dvh;
  background: var(--bg); border-left: 1px solid var(--line);
  display: flex; flex-direction: column; transition: right .3s cubic-bezier(.4,0,.2,1);
}
.cart-drawer.open { right: 0; }
.cart-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.cart-header h3 { margin: 0; font-family: var(--font-ui); font-size: 14px; letter-spacing: .18em; }
.icon-btn { width: 44px; height: 44px; background: none; border: 0; color: var(--text); cursor: pointer; font-size: 18px; }
.cart-items { flex: 1; overflow-y: auto; padding: 8px 24px; }
.cart-empty { color: var(--muted); text-align: center; margin-top: 48px; }
.cart-item { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-item-thumb { width: 64px; height: 64px; flex: none; background: var(--surface2); border: 1px solid var(--line); overflow: hidden; display: flex; align-items: center; justify-content: center; font-size: 10px; color: var(--muted); }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-family: var(--font-display); font-weight: 600; font-size: 16px; line-height: 1.25; margin-bottom: 2px; }
.cart-item-meta { font-size: 13px; color: var(--muted); }
.cart-item-price { font-family: var(--font-ui); font-size: 13px; margin-top: 4px; }
.cart-item-remove { width: 44px; height: 44px; margin: -10px -12px 0 0; background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 16px; }
.cart-item-remove:hover { color: var(--red); }
.cart-footer { padding: 20px 24px 24px; border-top: 1px solid var(--line); }
.cart-total { font-family: var(--font-ui); font-size: 15px; letter-spacing: .08em; margin-bottom: 14px; }
.cart-footer .btn { width: 100%; }
.cart-note { margin: 12px 0 0; font-size: 12px; color: var(--muted); text-align: center; }

/* ── Modal (merch) ─────────────────────────────── */
.modal-overlay { display: none; position: fixed; inset: 0; z-index: 1300; background: rgba(0,0,0,.85); }
.modal-overlay.open { display: block; }
.modal {
  position: fixed; top: 50%; left: 50%; z-index: 1400; transform: translate(-50%,-50%) scale(.96);
  background: var(--bg); border: 1px solid var(--line); width: 92%; max-width: 600px; max-height: 88vh; overflow-y: auto;
  opacity: 0; pointer-events: none; transition: transform .2s, opacity .2s;
}
.modal.open { transform: translate(-50%,-50%) scale(1); opacity: 1; pointer-events: all; }
.modal-close { position: absolute; top: 8px; right: 8px; z-index: 2; }
.modal-body { padding: 32px; }
.modal-img-wrap { position: relative; margin-bottom: 24px; cursor: zoom-in; }
.modal-img-wrap.zoomed { cursor: zoom-out; position: fixed; inset: 16px; z-index: 1500; margin: 0; background: var(--bg); display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); }
.modal-img { width: 100%; max-height: 320px; object-fit: cover; }
.modal-img-wrap.zoomed .modal-img { max-height: 100%; width: auto; max-width: 100%; object-fit: contain; }
.modal-img-zoom-icon { display: none; }
.modal-product-img { aspect-ratio: 1; max-height: 280px; background: var(--surface2); margin-bottom: 24px; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 12px; }
.modal-title { margin: 0 0 4px; font-family: var(--font-display); font-weight: 400; font-size: 32px; line-height: 1.1; }
.modal-artist { margin: 0 0 16px; font-family: var(--font-ui); font-size: 11px; letter-spacing: .18em; color: var(--muted); text-transform: uppercase; }
.modal-desc { margin: 0 0 20px; color: var(--text-2); line-height: 1.7; white-space: pre-line; }
.modal-price { font-family: var(--font-ui); font-size: 26px; margin-bottom: 20px; }
.modal-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.size-label { display: block; font-family: var(--font-ui); font-size: 11px; letter-spacing: .18em; color: var(--muted); margin-bottom: 8px; }
.size-select { background: var(--bg); border: 1px solid var(--line2); color: var(--text); min-height: 44px; padding: 0 12px; font-family: var(--font-body); font-size: 15px; margin-bottom: 20px; }

/* ── Toast ─────────────────────────────────────── */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 2000;
  background: var(--bg); border: 1px solid var(--red); color: var(--text);
  font-family: var(--font-ui); font-size: 12px; letter-spacing: .08em;
  padding: 14px 24px; opacity: 0; pointer-events: none; transition: opacity .3s; max-width: calc(100% - 32px); text-align: center;
}
.toast.show { opacity: 1; }

/* ── Success page ──────────────────────────────── */
.success-wrap { min-height: calc(100vh - 120px); display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.success-box { max-width: 560px; width: 100%; display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.success-box h1 { font-size: 56px; }
.success-box p { margin: 0; color: var(--text-2); }

/* ── Responsive ────────────────────────────────── */
@media (max-width: 900px) {
  .values { grid-template-columns: 1fr; }
  .value, .value:first-child, .value:last-child { padding: 22px 0; }
  .value + .value { border-left: 0; border-top: 1px solid var(--line); }
  .value p { font-size: 20px; }
}

@media (max-width: 768px) {
  .wrap { padding: 0 16px; }
  .topstrip { padding: 8px 16px; gap: 10px; font-size: 10px; }
  .navbar-inner { min-height: 60px; gap: 8px; }
  .logo { font-size: 17px; }
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(10,10,11,.98); border-bottom: 1px solid var(--line); padding: 8px 16px;
  }
  .nav-links.open { display: flex; }
  .nav-links li + li { border-top: 1px solid var(--line); }
  .nav-links a { display: flex; align-items: center; min-height: 52px; font-size: 13px; }
  .cart-btn { border: 0; padding: 0; width: 44px; justify-content: center; position: relative; }
  .cart-btn .cart-label { display: none; }
  .cart-btn svg { display: block; }
  .cart-count { position: absolute; top: 2px; right: 0; }
  .cart-count[data-n="0"] { display: none; }

  .hero { padding-top: 0; }
  .hero > .wrap { padding: 0; }
  .hero-frame { aspect-ratio: auto; min-height: 0; border: 0; border-bottom: 1px solid var(--line); background: var(--bg); }
  .hero-frame::after { display: none; }
  .hero-img { position: relative; height: 240px; }
  .hero-content { position: relative; width: auto; padding: 28px 16px 0; gap: 14px; }
  .hero-title { font-size: clamp(36px, 11vw, 48px); }
  .hero-sub { font-size: 16px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; min-height: 52px; }

  .section { padding-top: 64px; }
  .section-title { font-size: 40px; }
  .filters { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 0 16px 4px; width: calc(100% + 32px); }
  .chip { flex: none; font-size: 10px; padding: 0 14px; }
  .section-head { border-bottom: 0; padding-bottom: 0; }
  .album-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 14px; padding-top: 20px; }
  .cover-type { padding: 12px; }
  .cover-type .top, .cover-type .game { font-size: 8px; }
  .cover-type .name { font-size: 20px; }
  .cover-tag { font-size: 8px; padding: 4px 6px; top: 8px; right: 8px; }
  .album-title { font-size: 17px; }
  .album-meta { font-size: 13px; }
  .album-buy { flex-direction: column; align-items: stretch; gap: 8px; }
  .album-buy .btn { width: 100%; }
  .show-more { display: flex; padding-top: 28px; }
  .show-more .btn { width: 100%; min-height: 52px; }

  .yt { gap: 20px; }
  .yt-text h2 { font-size: 38px; }
  .yt-thumb { flex-basis: 100%; }

  .footer { margin-top: 72px; }
  .footer-top { padding-top: 36px; flex-direction: column; align-items: flex-start; }
  .footer-brand .logo { font-size: 22px; }

  .album-hero { gap: 28px; padding-top: 20px; }
  .album-hero .cover { flex-basis: 100%; }
  .album-hero .cover-type { padding: 20px; }
  .album-hero .cover-type .name { font-size: 40px; }
  .album-info h1 { font-size: 44px; }
  .album-actions .btn { flex: 1 1 100%; }
  .album-lower { padding-top: 64px; gap: 48px; }
  .album-lower h2 { font-size: 36px; }
  .tracklist .t { font-size: 18px; }

  .modal-body { padding: 24px 20px; }
  .success-box h1 { font-size: 40px; }
}

@media (min-width: 769px) { .show-more { display: none !important; } }
@media (max-width: 768px) { .album-grid.collapsed .album-card:nth-child(n+7) { display: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
