:root {
  --bg: #09090f;
  --bg-soft: #101019;
  --surface: #151520;
  --surface-raised: #1c1c29;
  --paper: #f4f0e6;
  --text: #f7f3e9;
  --muted: #a9a6b5;
  --muted-strong: #d0ccda;
  --line: rgba(244, 240, 230, .2);
  --line-soft: rgba(244, 240, 230, .1);
  --acid: #d9ff43;
  --cyan: #66dff6;
  --pink: #ff5ba7;
  --orange: #ff754d;
  --green: #a8ef5b;
  --red: #ff4d55;
  --red-bright: #ff737a;
  --gutter: clamp(20px, 4.6vw, 76px);
  --display: 'Syne', Arial, sans-serif;
  --body: 'DM Sans', Arial, sans-serif;
  --mono: 'JetBrains Mono', monospace;
  --pixel: 'Silkscreen', monospace;
  --header-height: 76px;
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 6px;
  --shadow: 12px 12px 0 rgba(0, 0, 0, .34), 0 32px 90px rgba(0, 0, 0, .5);
}

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

html {
  width: 100%;
  max-width: 100%;
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
  background: var(--bg);
}

body {
  width: 100%;
  max-width: 100%;
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(rgba(255, 255, 255, .018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .018) 1px, transparent 1px),
    var(--bg);
  background-size: 40px 40px;
  color: var(--text);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main,
header,
footer,
section,
nav,
form {
  min-width: 0;
}

img,
video,
iframe {
  max-width: 100%;
}

p,
h1,
h2,
h3,
a,
button {
  overflow-wrap: anywhere;
}

body.overlay-open {
  overflow: hidden;
  overscroll-behavior: none;
}

::selection {
  background: var(--acid);
  color: #09090f;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  border: 0;
  cursor: pointer;
}

button:disabled {
  cursor: wait;
  opacity: .65;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  border: 2px solid #09090f;
  background: var(--acid);
  color: #09090f;
  font: 10px var(--pixel);
  transform: translateY(-170%);
  transition: transform .2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  display: flex;
  width: 100%;
  align-items: center;
  min-height: var(--header-height);
  padding: 0 var(--gutter);
  gap: clamp(22px, 3vw, 48px);
  border-bottom: 1px solid transparent;
  background: linear-gradient(180deg, rgba(9, 9, 15, .98), rgba(9, 9, 15, .68) 70%, transparent);
  transition: min-height .25s ease, background .25s ease, border-color .25s ease;
}

.site-header::after {
  position: absolute;
  right: 0;
  bottom: -3px;
  left: 0;
  height: 3px;
  background: repeating-linear-gradient(90deg, var(--acid) 0 12px, transparent 12px 24px);
  content: '';
  opacity: 0;
  transition: opacity .25s ease;
}

.site-header.is-scrolled {
  min-height: 64px;
  border-color: var(--line-soft);
  background: rgba(9, 9, 15, .93);
  backdrop-filter: blur(18px);
}

.site-header.is-scrolled::after {
  opacity: .18;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  color: var(--paper);
  font-family: var(--display);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -1px;
}

.brand-accent,
.footer-brand span {
  color: var(--acid);
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(17px, 2vw, 29px);
  color: var(--muted);
  font: 10px var(--mono);
  letter-spacing: .2px;
  text-transform: uppercase;
}

.primary-nav a {
  position: relative;
  padding: 10px 0;
  transition: color .2s ease;
}

.primary-nav a:hover,
.primary-nav a.is-active {
  color: var(--text);
}

.primary-nav a.is-active::before {
  position: absolute;
  top: 0;
  left: 50%;
  width: 5px;
  height: 5px;
  background: var(--acid);
  content: '';
  transform: translateX(-50%);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 7px;
  padding: 8px 0;
  background: transparent;
  font: 10px var(--mono);
  text-transform: uppercase;
}

.nav-toggle span {
  color: var(--acid);
  font-size: 16px;
  transition: transform .2s ease;
}

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

.icon-button {
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 0;
  place-items: center;
  background: rgba(9, 9, 15, .4);
  font-size: 22px;
  line-height: 1;
  transition: border-color .2s ease, background .2s ease, color .2s ease;
}

.icon-button:hover {
  border-color: var(--acid);
  background: var(--acid);
  color: #09090f;
}

.header-app-button {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  gap: 8px;
  border: 1px solid var(--line);
  background: rgba(10, 10, 16, .6);
  font: 10px var(--mono);
  text-transform: uppercase;
  transition: border-color .2s ease, background .2s ease, color .2s ease;
}

.header-app-button:hover {
  border-color: var(--acid);
  color: var(--acid);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 0;
  font: 700 11px var(--mono);
  letter-spacing: .1px;
  text-transform: uppercase;
  transition: background .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.button:hover {
  transform: translate(-3px, -3px);
}

.button-primary {
  border-color: var(--acid);
  background: var(--acid);
  color: #0a0a10;
  box-shadow: 5px 5px 0 rgba(102, 223, 246, .8);
}

.button-primary:hover {
  background: var(--paper);
  box-shadow: 8px 8px 0 var(--cyan);
}

.button-secondary {
  border-color: var(--line);
  background: transparent;
  color: var(--text);
}

.button-secondary:hover {
  border-color: var(--pink);
  color: var(--pink);
}

.section-kicker,
.original-label,
.pixel-label {
  margin: 0;
  color: var(--acid);
  font: 10px var(--pixel);
  letter-spacing: .6px;
}

.pixel-label span {
  display: inline-block;
  margin-right: 5px;
  color: var(--pink);
  animation: blink 1.4s steps(1) infinite;
}

.title-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted-strong);
  font: 10px var(--mono);
  text-transform: uppercase;
}

.availability {
  color: var(--acid);
  font-weight: 600;
}

.certificate {
  padding: 2px 6px;
  border: 1px solid var(--line);
  color: var(--muted-strong);
  font-size: 9px;
}

.search-panel {
  position: fixed;
  inset: var(--header-height) 0 auto;
  z-index: 28;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(13, 13, 21, .98);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
  backdrop-filter: blur(20px);
}

.search-inner {
  display: grid;
  grid-template-columns: minmax(190px, .65fr) minmax(260px, 1.35fr) 40px;
  align-items: center;
  width: min(980px, calc(100% - 2 * var(--gutter)));
  min-height: 112px;
  margin: 0 auto;
  gap: 28px;
}

.search-inner label {
  display: block;
  margin-bottom: 5px;
  font-family: var(--display);
  font-size: 15px;
  font-weight: 700;
}

.search-inner p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.search-inner input {
  width: 100%;
  min-height: 48px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 0;
  outline: 0;
  background: var(--surface);
  color: var(--text);
}

.search-inner input:focus {
  border-color: var(--cyan);
  box-shadow: 5px 5px 0 rgba(102, 223, 246, .18);
}

.search-close {
  font-size: 25px;
}

.site-footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: 42px var(--gutter) 46px;
  gap: 13px 28px;
  border-top: 1px solid var(--line);
  background: #07070c;
  color: var(--muted);
  font-size: 12px;
}

.footer-brand {
  color: var(--paper);
  font: 800 18px var(--display);
  letter-spacing: -.7px;
}

.site-footer > p {
  margin: 0;
}

.footer-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
}

.footer-actions a,
.footer-actions button {
  padding: 0;
  background: transparent;
  color: var(--muted-strong);
  font: 10px var(--mono);
  text-transform: uppercase;
}

.footer-actions a:hover,
.footer-actions button:hover {
  color: var(--acid);
}

.copyright {
  grid-column: 1 / -1;
  color: #6f6c79;
  font: 8px var(--pixel);
  letter-spacing: .2px;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 70;
  max-width: min(360px, calc(100vw - 40px));
  padding: 14px 17px;
  border: 1px solid var(--acid);
  background: #171720;
  box-shadow: 6px 6px 0 rgba(217, 255, 67, .22);
  opacity: 0;
  pointer-events: none;
  transform: translateY(15px);
  transition: opacity .2s ease, transform .2s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.dialog {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  overflow-y: auto;
  padding: 24px;
  place-items: center;
  overscroll-behavior: contain;
}

.dialog-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 3, 7, .88);
  backdrop-filter: blur(10px);
}

.dialog-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 760px);
  max-height: calc(100dvh - 48px);
  overflow-x: hidden;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--surface);
  box-shadow: var(--shadow);
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}

.dialog-panel::before {
  display: block;
  width: 100%;
  height: 4px;
  background: repeating-linear-gradient(90deg, var(--pink) 0 12px, var(--cyan) 12px 24px, var(--acid) 24px 36px);
  content: '';
}

.dialog-close {
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 0;
  place-items: center;
  background: #0e0e15;
  font-size: 25px;
  line-height: 1;
  transition: background .2s ease, color .2s ease;
}

.dialog-close:hover {
  background: var(--acid);
  color: #09090f;
}

.player-panel {
  width: min(100%, 1080px);
}

.player-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 10px 17px 10px 21px;
  gap: 20px;
}

.player-bar p,
.player-bar h2 {
  margin: 0;
}

.player-bar p {
  margin-bottom: 4px;
  color: var(--acid);
  font: 8px var(--pixel);
}

.player-bar h2 {
  font-family: var(--display);
  font-size: 15px;
}

.player-frame {
  aspect-ratio: 16 / 9;
  background: #000;
}

.player-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.details-panel {
  width: min(100%, 780px);
}

.details-art {
  position: relative;
  min-height: 360px;
  background-position: center;
  background-size: cover;
}

.details-art-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, var(--surface), transparent 72%), linear-gradient(90deg, rgba(0, 0, 0, .52), transparent 70%);
}

.details-art .dialog-close {
  position: absolute;
  top: 17px;
  right: 17px;
  z-index: 2;
}

.details-heading {
  position: absolute;
  right: 30px;
  bottom: 19px;
  left: 30px;
  z-index: 1;
}

.details-heading h2 {
  max-width: 650px;
  margin: 10px 0 0;
  font: 800 clamp(38px, 6vw, 65px)/.92 var(--display);
  letter-spacing: -2.6px;
}

.details-content {
  padding: 16px 30px 31px;
}

.details-content > p {
  max-width: 660px;
  margin: 18px 0 24px;
  color: var(--muted-strong);
  font-size: 14px;
  line-height: 1.65;
}

@keyframes blink {
  50% { opacity: .25; }
}

@media (max-width: 980px) {
  .site-header {
    gap: 20px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .primary-nav {
    position: absolute;
    top: calc(100% + 3px);
    left: var(--gutter);
    display: grid;
    width: min(300px, calc(100% - 2 * var(--gutter)));
    padding: 8px;
    gap: 0;
    border: 1px solid var(--line);
    background: rgba(19, 19, 28, .99);
    box-shadow: 8px 8px 0 rgba(0, 0, 0, .45), 0 25px 60px rgba(0, 0, 0, .6);
    opacity: 0;
    transform: translateY(-8px);
    visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
  }

  .site-header.nav-open .primary-nav {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
  }

  .site-header.nav-open .nav-toggle span {
    transform: rotate(45deg);
  }

  .primary-nav a {
    padding: 12px;
  }

  .primary-nav a:hover,
  .primary-nav a.is-active {
    background: rgba(255, 255, 255, .06);
    color: var(--acid);
  }

  .primary-nav a.is-active::before {
    display: none;
  }

  .search-inner {
    grid-template-columns: 1fr 1.4fr 40px;
  }
}

@media (max-width: 640px) {
  :root {
    --header-height: 64px;
  }

  .site-header {
    min-height: var(--header-height);
  }

  .brand {
    font-size: 17px;
  }

  .search-inner {
    grid-template-columns: 1fr 40px;
    min-height: 138px;
    padding: 17px 0;
    gap: 10px;
  }

  .search-inner > div {
    grid-column: 1 / -1;
  }

  .search-inner input {
    grid-column: 1;
  }

  .search-close {
    grid-column: 2;
  }

  .site-footer {
    display: flex;
    align-items: flex-start;
    padding-block: 34px;
    flex-direction: column;
  }

  .footer-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .copyright {
    margin-top: 10px !important;
  }

  .dialog {
    padding: 10px;
  }

  .dialog-panel {
    max-height: calc(100dvh - 20px);
  }

  .details-art {
    min-height: 255px;
  }

  .details-heading {
    right: 20px;
    left: 20px;
  }

  .details-heading h2 {
    font-size: 40px;
  }

  .details-content {
    padding: 14px 20px 23px;
  }
}

@media (max-width: 380px) {
  :root {
    --gutter: 14px;
  }

  .site-header {
    gap: 10px;
  }

  .brand {
    font-size: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
