/* =========================================================
   VACFLIX — late-night VHS cinema
   Display: Oswald · Body: Manrope · Tech: JetBrains Mono
   ========================================================= */

:root {
  --bg:         #080506;
  --bg-soft:    #0e080b;
  --panel:      #150b11;
  --panel-2:    #1b0d15;
  --red:        #f23b3b;
  --red-hot:    #ff5252;
  --red-deep:   #9c0d1b;
  --blue:       #4f68ff;
  --blue-deep:  #1b2a9c;
  --cream:      #f6ecd4;
  --paper:      #c9bca5;
  --muted:      #8e8073;
  --amber:      #ffb648;
  --line:       rgba(246, 236, 212, 0.13);
  --line-soft:  rgba(246, 236, 212, 0.07);
  --line-red:   rgba(242, 59, 59, 0.38);

  --font-display: "Oswald", "Arial Narrow", Impact, sans-serif;
  --font-body: "Manrope", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "Courier New", monospace;

  --radius: 24px;
  --container: 1240px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(156, 13, 27, 0.22), transparent 65%),
    radial-gradient(ellipse 50% 40% at 100% 15%, rgba(27, 42, 156, 0.14), transparent 70%),
    var(--bg);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--red);
  color: var(--cream);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 4px;
}

/* ---------- global film texture ---------- */

.grain,
.scanlines,
.page-glow {
  position: fixed;
  pointer-events: none;
}

.grain {
  inset: -50%;
  z-index: 200;
  opacity: 0.055;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grainShift 0.55s steps(5) infinite;
}

.scanlines {
  inset: 0;
  z-index: 199;
  opacity: 0.6;
  background:
    repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.022) 0 1px, transparent 1px 3px),
    radial-gradient(ellipse at 50% 45%, transparent 58%, rgba(0, 0, 0, 0.34) 100%);
  mix-blend-mode: overlay;
}

.page-glow {
  width: 520px;
  height: 520px;
  z-index: -1;
  filter: blur(110px);
  opacity: 0.22;
  border-radius: 50%;
}

.page-glow--red {
  top: 8%;
  left: -240px;
  background: var(--red);
}

.page-glow--blue {
  top: 42%;
  right: -260px;
  background: var(--blue);
  opacity: 0.14;
}

.container {
  width: min(var(--container), calc(100% - 56px));
  margin-inline: auto;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(8, 5, 6, 0.72);
  backdrop-filter: blur(18px) saturate(1.25);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(8, 5, 6, 0.92);
  border-color: var(--line);
}

.header-inner {
  width: min(var(--container), calc(100% - 56px));
  min-height: 100px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 22px;
  transition: min-height 0.3s var(--ease);
}

.site-header.is-scrolled .header-inner {
  min-height: 76px;
}

.brand {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-poster {
  width: 86px;
  height: 82px;
  padding: 4px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(242, 59, 59, 0.42);
  border-radius: 11px;
  background:
    radial-gradient(circle at 50% 26%, rgba(242, 59, 59, 0.2), transparent 66%),
    #12080c;
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.5),
    inset 0 0 26px rgba(242, 59, 59, 0.08);
  transform: rotate(-2deg);
  transition: width 0.3s var(--ease), height 0.3s var(--ease), transform 0.3s var(--ease), border-color 0.3s ease;
}

.brand:hover .brand-poster {
  transform: rotate(0) scale(1.03);
  border-color: var(--red);
}

.brand-poster img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 3px 8px rgba(242, 59, 59, 0.28));
}

.site-header.is-scrolled .brand-poster {
  width: 62px;
  height: 59px;
}

.brand-caption {
  position: absolute;
  left: calc(100% + 9px);
  top: 50%;
  transform: translateY(-50%) rotate(180deg);
  writing-mode: vertical-rl;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.22em;
  color: var(--muted);
  text-transform: uppercase;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.site-header.is-scrolled .brand-caption {
  opacity: 0;
  visibility: hidden;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}

.main-nav a {
  position: relative;
  padding: 9px 16px;
  border-radius: 999px;
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 3px;
  height: 1px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}

.main-nav a:hover {
  color: var(--cream);
  background: rgba(246, 236, 212, 0.04);
}

.main-nav a:hover::after,
.main-nav a.is-active::after {
  transform: scaleX(1);
}

.main-nav a.is-active {
  color: var(--cream);
  background: rgba(246, 236, 212, 0.055);
}

.main-nav a.is-active::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 7px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 10px var(--red);
  transform: translateY(-50%);
}

.header-status,
.footer-status {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-left: 20px;
  border-left: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.14em;
  color: var(--muted);
  white-space: nowrap;
}

.rec {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--red);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.rec i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 10px var(--red);
  animation: recBlink 1.6s steps(2) infinite;
}

/* ---------- shared type ---------- */

.eyebrow,
.kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--amber);
  text-transform: uppercase;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 12px var(--red);
  animation: recBlink 1.6s steps(2) infinite;
}

.kicker {
  margin-bottom: 16px;
  color: var(--amber);
}

.kicker::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--red);
}

.section-title,
.page-title {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.012em;
  line-height: 0.94;
  text-transform: uppercase;
}

.section-title {
  font-size: clamp(38px, 5.6vw, 74px);
}

.section-title span {
  color: var(--red);
}

.section-lead {
  max-width: 430px;
  padding-bottom: 7px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line-red);
  color: var(--cream);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.text-link span {
  color: var(--red);
  font-size: 14px;
  transition: transform 0.2s ease;
}

.text-link:hover {
  color: var(--red);
  border-color: var(--red);
}

.text-link:hover span {
  transform: translateX(4px);
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  min-height: 54px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.13em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  user-select: none;
  transition:
    transform 0.18s var(--ease),
    filter 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.btn--primary {
  background: linear-gradient(180deg, var(--red-hot) 0%, var(--red) 42%, var(--red-deep) 100%);
  border-color: rgba(255, 255, 255, 0.14);
  color: #fff7e7;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.24) inset,
    0 -3px 0 rgba(0, 0, 0, 0.22) inset,
    0 10px 34px rgba(242, 59, 59, 0.28);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.25);
}

.btn--primary:hover {
  filter: brightness(1.09);
  transform: translateY(-2px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.28) inset,
    0 -3px 0 rgba(0, 0, 0, 0.22) inset,
    0 16px 44px rgba(242, 59, 59, 0.4);
}

.btn--primary:active {
  transform: translateY(1px);
}

.btn--ghost {
  background: rgba(246, 236, 212, 0.025);
  border-color: rgba(246, 236, 212, 0.24);
  color: var(--cream);
}

.btn--ghost:hover {
  background: rgba(242, 59, 59, 0.08);
  border-color: var(--red);
  color: var(--cream);
  transform: translateY(-2px);
}

.btn--small {
  min-height: 44px;
  padding: 0 18px;
  font-size: 9px;
}

.btn--large {
  min-height: 64px;
  padding: 0 34px;
}

.btn-play {
  font-size: 9px;
  line-height: 1;
  transform: translateY(-1px);
}

.btn-arrow {
  font-size: 14px;
  transition: transform 0.2s ease;
}

.btn:hover .btn-arrow {
  transform: translateX(4px);
}

.btn[disabled] {
  pointer-events: none;
  opacity: 0.7;
}

.btn.is-flashing {
  animation: buttonFlash 0.35s steps(2) 2;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-top: 34px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-ghost {
  position: absolute;
  font-family: var(--font-display);
  font-size: clamp(150px, 22vw, 340px);
  font-weight: 700;
  line-height: 0.75;
  color: transparent;
  -webkit-text-stroke: 1px rgba(246, 236, 212, 0.055);
  user-select: none;
}

.hero-ghost--1 {
  top: 2%;
  left: -2%;
}

.hero-ghost--2 {
  right: -2%;
  bottom: 9%;
}

.hero-grid {
  position: absolute;
  right: -10%;
  bottom: -20%;
  width: 95%;
  height: 62%;
  background-image:
    linear-gradient(rgba(242, 59, 59, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242, 59, 59, 0.09) 1px, transparent 1px);
  background-size: 64px 64px;
  transform: perspective(480px) rotateX(62deg);
  transform-origin: center bottom;
  mask-image: linear-gradient(to top, #000 0%, transparent 78%);
  -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 78%);
  opacity: 0.65;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(380px, 0.94fr);
  align-items: center;
  gap: clamp(28px, 5vw, 70px);
  padding: 62px 0 82px;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-title {
  display: flex;
  flex-direction: column;
  margin: 18px 0 26px;
  font-family: var(--font-display);
  font-size: clamp(64px, 8.8vw, 132px);
  font-weight: 700;
  letter-spacing: -0.018em;
  line-height: 0.8;
  text-transform: uppercase;
}

.hero-title .line {
  display: block;
}

.line--cream {
  color: var(--cream);
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.15),
    0 16px 60px rgba(246, 236, 212, 0.09);
}

.line--red {
  color: var(--red);
  text-shadow:
    3px 3px 0 var(--blue-deep),
    7px 7px 0 rgba(0, 0, 0, 0.45),
    0 0 44px rgba(242, 59, 59, 0.34);
}

.hero-lead {
  max-width: 530px;
  color: var(--paper);
  font-size: 16px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 0 26px;
  border-left: 1px solid var(--line);
}

.stat:first-child {
  padding-left: 0;
  border-left: 0;
}

.stat strong {
  font-family: var(--font-display);
  font-size: 29px;
  font-weight: 600;
  line-height: 1;
  color: var(--cream);
}

.stat span {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-transform: uppercase;
}

.hero-art {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 520px;
}

.hero-halo {
  position: absolute;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 42% 40%, rgba(242, 59, 59, 0.32), transparent 56%),
    radial-gradient(circle at 62% 66%, rgba(79, 104, 255, 0.26), transparent 58%);
  filter: blur(36px);
  animation: haloPulse 7s ease-in-out infinite;
}

.poster {
  position: relative;
  width: min(430px, 100%);
  padding: 15px;
  border: 1px solid rgba(246, 236, 212, 0.17);
  border-radius: 30px;
  background:
    radial-gradient(ellipse at 50% 35%, rgba(242, 59, 59, 0.12), transparent 66%),
    linear-gradient(155deg, rgba(246, 236, 212, 0.055), rgba(246, 236, 212, 0.012) 55%, rgba(79, 104, 255, 0.06));
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(0, 0, 0, 0.55),
    inset 0 0 70px rgba(242, 59, 59, 0.07);
  transform: rotate(1.8deg);
  animation: posterFloat 8s ease-in-out infinite;
}

.poster::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(246, 236, 212, 0.075);
  border-radius: 23px;
  pointer-events: none;
}

.poster-img {
  position: relative;
  z-index: 1;
  width: 100%;
  filter: drop-shadow(0 20px 28px rgba(0, 0, 0, 0.42));
}

.poster-scan {
  position: absolute;
  inset: 15px;
  z-index: 2;
  border-radius: 20px;
  background: repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 4px);
  mix-blend-mode: overlay;
  opacity: 0.3;
  pointer-events: none;
}

.poster-sticker {
  position: absolute;
  right: 24px;
  bottom: 24px;
  z-index: 3;
  padding: 5px 8px;
  background: var(--cream);
  color: #170a0e;
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.12em;
  box-shadow: 2px 2px 0 var(--red);
  transform: rotate(3deg);
}

.poster-corner {
  position: absolute;
  width: 20px;
  height: 20px;
  z-index: 3;
  border-color: rgba(246, 236, 212, 0.55);
  border-style: solid;
  pointer-events: none;
}

.poster-corner--tl {
  top: 22px;
  left: 22px;
  border-width: 1px 0 0 1px;
}

.poster-corner--tr {
  top: 22px;
  right: 22px;
  border-width: 1px 1px 0 0;
}

.poster-corner--bl {
  bottom: 22px;
  left: 22px;
  border-width: 0 0 1px 1px;
}

.poster-corner--br {
  right: 22px;
  bottom: 22px;
  border-width: 0 1px 1px 0;
}

.float-chip {
  position: absolute;
  z-index: 4;
  padding: 7px 11px;
  border: 1px solid var(--line-red);
  border-radius: 999px;
  background: rgba(8, 5, 6, 0.62);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--cream);
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  animation: chipFloat 6s ease-in-out infinite;
}

.float-chip--1 {
  top: 7%;
  left: -1%;
  color: var(--amber);
  border-color: rgba(255, 182, 72, 0.4);
}

.float-chip--2 {
  top: 32%;
  right: -3%;
  color: var(--red);
  animation-delay: -1.8s;
}

.float-chip--3 {
  bottom: 14%;
  left: 0;
  color: #9eafff;
  border-color: rgba(79, 104, 255, 0.44);
  animation-delay: -3.2s;
}

.hero-time {
  position: absolute;
  right: 2%;
  bottom: 1%;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.hero-time .rec {
  color: var(--amber);
}

.hero-time .rec i {
  background: var(--amber);
  box-shadow: 0 0 10px var(--amber);
}

/* ---------- marquee ---------- */

.marquee {
  position: relative;
  z-index: 3;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(10, 6, 8, 0.75);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 32s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-group {
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 16px 26px 16px 0;
}

.marquee-group span {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--paper);
  white-space: nowrap;
}

.marquee-group i {
  color: var(--red);
  font-size: 9px;
  font-style: normal;
}

/* ---------- sections ---------- */

.section {
  position: relative;
  padding: 100px 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 42px;
}

.section-head > div {
  max-width: 720px;
}

.section-head .section-lead {
  padding-bottom: 5px;
}

.section--random {
  padding-top: 92px;
}

.section--genres {
  border-top: 1px solid var(--line-soft);
}

/* ---------- tape slot ---------- */

.tape-slot {
  min-height: 270px;
}

.tape-empty {
  position: relative;
  display: flex;
  align-items: center;
  gap: 26px;
  min-height: 270px;
  padding: 34px 38px;
  overflow: hidden;
  border: 1px dashed rgba(246, 236, 212, 0.19);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 8% 50%, rgba(242, 59, 59, 0.1), transparent 32%),
    linear-gradient(135deg, rgba(246, 236, 212, 0.03), transparent 55%);
}

.tape-empty::after {
  content: "NO SIGNAL";
  position: absolute;
  right: 22px;
  bottom: 12px;
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.26em;
  color: rgba(246, 236, 212, 0.16);
}

.reels {
  position: relative;
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.reels span {
  position: relative;
  width: 52px;
  height: 52px;
  border: 1px solid var(--line-red);
  border-radius: 50%;
  background:
    radial-gradient(circle at center, var(--red) 0 3px, transparent 4px),
    repeating-conic-gradient(from 0deg, rgba(242, 59, 59, 0.45) 0 12deg, transparent 12deg 60deg);
  animation: reelSpin 3.2s linear infinite;
}

.reels span::after {
  content: "";
  position: absolute;
  inset: 13px;
  border: 1px solid rgba(246, 236, 212, 0.2);
  border-radius: 50%;
}

.tape-empty-copy {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.tape-empty-copy strong {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--cream);
}

.tape-empty-copy p {
  max-width: 430px;
  color: var(--muted);
  font-size: 13px;
}

.tape-empty .btn {
  margin-left: auto;
  flex-shrink: 0;
}

/* ---------- tape card ---------- */

.tape-card {
  display: grid;
  grid-template-columns: 74px minmax(270px, 340px) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(246, 236, 212, 0.14);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 85% 10%, rgba(79, 104, 255, 0.09), transparent 32%),
    linear-gradient(145deg, #1a0c13 0%, #10080b 55%, #0a0507 100%);
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.tape-card.is-in {
  animation: tapeIn 0.5s var(--ease) both;
}

.tape-spine {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  background: linear-gradient(180deg, var(--red-hot), var(--red) 34%, var(--red-deep));
  color: #1b070b;
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.tape-spine span {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.tape-spine b {
  font-size: 7px;
  opacity: 0.72;
}

.tape-cover {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 340px;
  padding: 24px 24px 20px;
  overflow: hidden;
  background:
    repeating-linear-gradient(to bottom, rgba(24, 10, 14, 0.035) 0 1px, transparent 1px 3px),
    radial-gradient(circle at 80% 0%, rgba(255, 255, 255, 0.55), transparent 40%),
    #f2e6c9;
  color: #170a0e;
}

.tape-cover::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 7px;
  background: linear-gradient(90deg, var(--red), var(--red-deep));
}

.cover-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 4px;
  font-family: var(--font-mono);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--red-deep);
}

.cover-top span:last-child {
  color: #6b4a3d;
}

.cover-title {
  margin: 22px 0 10px;
  font-family: var(--font-display);
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 0.94;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.cover-genres {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.14em;
  line-height: 1.6;
  color: #6b4a3d;
  text-transform: uppercase;
}

.cover-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px dashed rgba(23, 10, 14, 0.35);
}

.cover-rating {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.cover-rating strong {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  color: var(--red-deep);
}

.cover-rating span {
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.14em;
  color: #6b4a3d;
}

.barcode {
  width: 104px;
  height: 32px;
  opacity: 0.88;
  background-image:
    repeating-linear-gradient(
      90deg,
      #170a0e 0 2px,
      transparent 2px 4px,
      #170a0e 4px 7px,
      transparent 7px 11px,
      #170a0e 11px 12px,
      transparent 12px 17px,
      #170a0e 17px 20px,
      transparent 20px 23px
    );
}

.tape-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 30px 32px 28px;
}

.tape-kicker {
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--red);
  text-transform: uppercase;
}

.tape-note {
  position: relative;
  margin: 15px 0 22px;
  padding-left: 18px;
  border-left: 2px solid var(--red);
  color: var(--cream);
  font-size: 17px;
  line-height: 1.55;
}

.tape-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 18px;
  margin-bottom: 24px;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.meta-item span {
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.16em;
  color: var(--muted);
  text-transform: uppercase;
}

.meta-item strong {
  overflow: hidden;
  color: var(--cream);
  font-size: 13px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tape-links {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
}

.tape-links a,
.tape-links button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(246, 236, 212, 0.025);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.tape-links a::before {
  content: "▶";
  font-size: 6px;
  color: currentColor;
}

.tape-links a.imdb {
  color: var(--amber);
  border-color: rgba(255, 182, 72, 0.34);
}

.tape-links a.vk {
  color: #9eafff;
  border-color: rgba(79, 104, 255, 0.36);
}

.tape-links a.rutube {
  color: #ff8b8b;
  border-color: rgba(242, 59, 59, 0.34);
}

.tape-links a.movielab {
  color: var(--paper);
}

.tape-links a:hover,
.tape-links button:hover {
  background: rgba(246, 236, 212, 0.08);
  border-color: currentColor;
}

.tape-links .js-reroll {
  margin-left: auto;
  color: var(--cream);
  border-color: var(--line-red);
}

/* ---------- genre cards ---------- */

.genre-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.genre-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.genre-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 200px;
  padding: 20px 21px 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    linear-gradient(155deg, rgba(246, 236, 212, 0.035), transparent 50%),
    rgba(18, 10, 15, 0.6);
  color: var(--cream);
  text-align: left;
  cursor: pointer;
  transition:
    transform 0.24s var(--ease),
    border-color 0.24s ease,
    background 0.24s ease,
    box-shadow 0.24s ease;
}

.genre-tile::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--red), var(--red-deep), transparent);
  transform: scaleX(0.18);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.genre-tile::after {
  content: "";
  position: absolute;
  right: -38px;
  bottom: -55px;
  width: 130px;
  height: 130px;
  border: 1px solid rgba(242, 59, 59, 0.12);
  border-radius: 50%;
  transition: transform 0.4s var(--ease), border-color 0.3s ease;
}

.genre-tile:hover {
  transform: translateY(-4px);
  border-color: var(--line-red);
  background:
    radial-gradient(circle at 12% 0%, rgba(242, 59, 59, 0.12), transparent 42%),
    rgba(24, 12, 19, 0.9);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.34);
}

.genre-tile:hover::before {
  transform: scaleX(1);
}

.genre-tile:hover::after {
  transform: translate(-10px, -10px) scale(1.14);
  border-color: rgba(242, 59, 59, 0.22);
}

.genre-tile.is-active {
  border-color: var(--red);
  background:
    radial-gradient(circle at 12% 0%, rgba(242, 59, 59, 0.18), transparent 45%),
    rgba(27, 12, 20, 0.95);
  box-shadow: 0 0 0 1px rgba(242, 59, 59, 0.22), 0 20px 44px rgba(0, 0, 0, 0.34);
}

.genre-tile.is-active::before {
  transform: scaleX(1);
}

.genre-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.genre-num {
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--red);
}

.genre-count {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  color: var(--paper);
  opacity: 0.72;
  text-transform: uppercase;
}

.genre-tile h3 {
  position: relative;
  z-index: 1;
  margin: 17px 0 8px;
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 600;
  letter-spacing: 0.005em;
  line-height: 1;
  text-transform: uppercase;
}

.genre-tile .desc {
  position: relative;
  z-index: 1;
  max-width: 250px;
  color: var(--paper);
  font-size: 13px;
  line-height: 1.5;
  opacity: 0.82;
}

.genre-watermark {
  position: absolute;
  right: 12px;
  bottom: 2px;
  z-index: 0;
  font-family: var(--font-display);
  font-size: 94px;
  font-weight: 700;
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 1px rgba(242, 59, 59, 0.14);
  pointer-events: none;
  transition: -webkit-text-stroke-color 0.28s ease, transform 0.28s var(--ease);
}

.genre-tile:hover .genre-watermark {
  -webkit-text-stroke-color: rgba(242, 59, 59, 0.34);
  transform: translateY(-3px);
}

.genre-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
}

.genre-years {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  color: var(--amber);
}

.genre-arrow {
  color: var(--red);
  font-family: var(--font-mono);
  font-size: 14px;
  transition: transform 0.2s ease;
}

.genre-tile:hover .genre-arrow {
  transform: translateX(4px);
}

.genre-grid .genre-tile {
  min-height: 224px;
  padding: 24px 24px 20px;
}

.genre-grid .genre-tile h3 {
  font-size: 28px;
}

/* ---------- toolbar ---------- */

.genre-toolbar {
  display: flex;
  align-items: center;
  gap: 34px;
  flex-wrap: wrap;
  margin-bottom: 30px;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(246, 236, 212, 0.035), transparent 60%);
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-width: 230px;
}

.filter-group label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.16em;
  color: var(--amber);
  text-transform: uppercase;
}

.filter-group output {
  color: var(--cream);
  font-size: 11px;
  font-weight: 700;
}

input[type="range"] {
  width: 100%;
  height: 18px;
  margin: 0;
  background: transparent;
  cursor: pointer;
  accent-color: var(--red);
  -webkit-appearance: none;
  appearance: none;
}

input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--red) 0 var(--range-progress, 58%), rgba(246, 236, 212, 0.14) var(--range-progress, 58%) 100%);
}

input[type="range"]::-moz-range-track {
  height: 4px;
  border-radius: 99px;
  background: rgba(246, 236, 212, 0.14);
}

input[type="range"]::-moz-range-progress {
  height: 4px;
  border-radius: 99px;
  background: var(--red);
}

input[type="range"]::-webkit-slider-thumb {
  width: 15px;
  height: 15px;
  margin-top: -5.5px;
  border: 2px solid var(--cream);
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 3px rgba(242, 59, 59, 0.18);
  -webkit-appearance: none;
  appearance: none;
}

input[type="range"]::-moz-range-thumb {
  width: 13px;
  height: 13px;
  border: 2px solid var(--cream);
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 3px rgba(242, 59, 59, 0.18);
}

.active-channel {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.active-channel-label {
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.active-channel strong {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--cream);
  text-transform: uppercase;
}

.genre-toolbar .btn {
  margin-left: auto;
}

/* ---------- rules ---------- */

.section--rules {
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background:
    radial-gradient(ellipse at 18% 50%, rgba(156, 13, 27, 0.11), transparent 48%),
    rgba(12, 7, 9, 0.5);
}

.rules-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  align-items: center;
  gap: clamp(40px, 7vw, 100px);
}

.rules-copy .section-title {
  font-size: clamp(36px, 4.7vw, 60px);
}

.rules-copy p:not(.kicker) {
  max-width: 460px;
  margin: 22px 0 30px;
  color: var(--paper);
  font-size: 15px;
  line-height: 1.7;
}

.rules-grid {
  display: grid;
  gap: 10px;
}

.rule-card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 2px 18px;
  padding: 21px 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(246, 236, 212, 0.035), transparent 60%);
  transition: border-color 0.2s ease, transform 0.2s var(--ease);
}

.rule-card:hover {
  border-color: var(--line-red);
  transform: translateX(4px);
}

.rule-num {
  grid-row: 1 / 3;
  align-self: center;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  color: var(--red);
}

.rule-card h3 {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.rule-card p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

/* ---------- CTA ---------- */

.section--cta {
  padding: 88px 0;
}

.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  padding: 46px 48px;
  border: 1px solid var(--line-red);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 12% 0%, rgba(242, 59, 59, 0.17), transparent 44%),
    radial-gradient(circle at 90% 100%, rgba(79, 104, 255, 0.12), transparent 40%),
    linear-gradient(135deg, #1a0c13, #0d070a);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

.cta .section-title {
  font-size: clamp(36px, 5vw, 66px);
}

/* ---------- page hero (genre / criteria) ---------- */

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 68px 0 26px;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.page-hero-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  min-height: 330px;
  padding-bottom: 36px;
}

.page-hero-copy {
  max-width: 820px;
}

.page-title {
  display: flex;
  flex-direction: column;
  margin: 18px 0 22px;
  font-size: clamp(68px, 9.2vw, 126px);
  line-height: 0.82;
}

.page-title span {
  color: var(--cream);
  text-shadow: 0 16px 60px rgba(246, 236, 212, 0.08);
}

.page-title em {
  color: var(--red);
  font-style: normal;
  text-shadow:
    3px 3px 0 var(--blue-deep),
    6px 6px 0 rgba(0, 0, 0, 0.4),
    0 0 44px rgba(242, 59, 59, 0.28);
}

.page-lead {
  max-width: 560px;
  color: var(--paper);
  font-size: 15px;
  line-height: 1.7;
}

.channel-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-shrink: 0;
  width: 224px;
  height: 268px;
  padding: 20px;
  overflow: hidden;
  border: 1px solid rgba(246, 236, 212, 0.17);
  border-radius: 20px;
  background:
    repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 3px),
    radial-gradient(circle at 50% 42%, rgba(242, 59, 59, 0.16), transparent 62%),
    linear-gradient(150deg, #190b12, #0a0507);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.45);
  transform: rotate(2.4deg);
}

.channel-card::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(246, 236, 212, 0.07);
  border-radius: 14px;
  pointer-events: none;
}

.channel-card-label {
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.2em;
  color: var(--amber);
}

.channel-digits {
  font-family: var(--font-display);
  font-size: 108px;
  font-weight: 700;
  line-height: 0.8;
  text-align: center;
  color: var(--red);
  text-shadow:
    3px 3px 0 var(--blue-deep),
    0 0 40px rgba(242, 59, 59, 0.25);
}

.channel-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.channel-card-bottom span:last-child {
  color: var(--red);
}

.criteria-stamp {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 236px;
  height: 236px;
  border: 1px dashed rgba(242, 59, 59, 0.6);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(242, 59, 59, 0.12), transparent 62%),
    rgba(10, 6, 8, 0.42);
  transform: rotate(-8deg);
  box-shadow: inset 0 0 0 8px rgba(242, 59, 59, 0.035);
}

.criteria-stamp::after {
  content: "";
  position: absolute;
  inset: 15px;
  border: 1px solid rgba(242, 59, 59, 0.24);
  border-radius: 50%;
}

.criteria-stamp-top,
.criteria-stamp-bottom {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.2em;
  color: var(--paper);
}

.criteria-stamp-main {
  margin: 5px 0;
  font-family: var(--font-display);
  font-size: 66px;
  font-weight: 700;
  line-height: 0.9;
  color: var(--red);
  text-shadow: 2px 2px 0 var(--blue-deep);
}

/* ---------- criteria page ---------- */

.section--criteria {
  padding-top: 46px;
}

.criteria-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  align-items: start;
  gap: clamp(30px, 5vw, 64px);
}

.criteria-nav {
  position: sticky;
  top: 120px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

.criteria-nav-title {
  margin-bottom: 13px;
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.criteria-nav a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 7px 0;
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.18s ease;
}

.criteria-nav a span {
  color: var(--red);
  font-size: 8px;
}

.criteria-nav a:hover {
  color: var(--cream);
}

.criteria-content {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.criteria-block {
  position: relative;
  padding: 30px 34px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(246, 236, 212, 0.035), transparent 52%),
    rgba(14, 8, 11, 0.72);
}

.criteria-block::before {
  content: "";
  position: absolute;
  top: 26px;
  bottom: 26px;
  left: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--red), transparent);
}

.criteria-block-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.criteria-num {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--red);
}

.criteria-block h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  text-transform: uppercase;
}

.criteria-text {
  max-width: 760px;
  margin-bottom: 12px;
  color: var(--paper);
  font-size: 15px;
  line-height: 1.68;
}

.criteria-text:last-child {
  margin-bottom: 0;
}

.criteria-text strong {
  color: var(--cream);
  font-weight: 700;
}

.timeline {
  margin-top: 26px;
  padding-top: 8px;
}

.timeline-bar {
  position: relative;
  height: 5px;
  border-radius: 99px;
  background: rgba(246, 236, 212, 0.12);
  overflow: hidden;
}

.timeline-fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--red) 0%, var(--red) 45%, var(--blue) 100%);
  box-shadow: 0 0 18px rgba(242, 59, 59, 0.35);
}

.timeline-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 9px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.hero-names {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 18px 0 20px;
}

.hero-names span {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  color: var(--paper);
  text-transform: uppercase;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.hero-names span:hover {
  border-color: var(--line-red);
  color: var(--cream);
}

.criteria-list {
  display: flex;
  flex-direction: column;
  list-style: none;
  margin-top: 8px;
}

.criteria-list li {
  position: relative;
  padding: 9px 0 9px 20px;
  border-top: 1px dashed var(--line);
  color: var(--paper);
  font-size: 13px;
}

.criteria-list li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--red);
}

.rating-row {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  align-items: center;
  gap: 30px;
}

.rating-dial {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 154px;
  height: 154px;
  border: 6px solid transparent;
  border-radius: 50%;
  background:
    linear-gradient(var(--panel), var(--panel)) padding-box,
    conic-gradient(var(--red) 0 32%, rgba(246, 236, 212, 0.12) 32% 100%) border-box;
  box-shadow: 0 0 40px rgba(242, 59, 59, 0.13);
}

.rating-value {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 600;
  line-height: 1;
  color: var(--cream);
}

.rating-label {
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.genre-index {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 24px;
  margin-top: 6px;
}

.genre-index a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 2px;
  border-bottom: 1px dashed var(--line);
  color: var(--cream);
  text-decoration: none;
  transition: color 0.18s ease, padding-left 0.18s ease;
}

.genre-index a span {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.genre-index a em {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 7px;
  font-style: normal;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.genre-index a:hover {
  padding-left: 8px;
  color: var(--red);
}

.criteria-block .btn {
  margin-top: 18px;
}

.criteria-quote {
  position: relative;
  margin-top: 10px;
  padding: 26px 30px 24px 72px;
  border-left: 2px solid var(--red);
  background: linear-gradient(90deg, rgba(242, 59, 59, 0.07), transparent 60%);
}

.quote-mark {
  position: absolute;
  top: 6px;
  left: 24px;
  font-family: var(--font-display);
  font-size: 76px;
  line-height: 1;
  color: var(--red);
  opacity: 0.55;
}

.criteria-quote p {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.8vw, 32px);
  font-weight: 500;
  line-height: 1.2;
  color: var(--cream);
}

.criteria-quote cite {
  display: block;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 8px;
  font-style: normal;
  letter-spacing: 0.16em;
  color: var(--muted);
  text-transform: uppercase;
}

/* ---------- footer ---------- */

.site-footer {
  position: relative;
  margin-top: 20px;
  padding: 48px 0 22px;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 50% 120%, rgba(156, 13, 27, 0.14), transparent 60%),
    #070405;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
}

.footer-mark {
  width: 48px;
  height: 53px;
  padding: 4px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-red);
  border-radius: 8px;
  background: #12080c;
}

.footer-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.footer-brand > span:last-child {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-brand strong {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.footer-brand small {
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.09em;
  color: var(--muted);
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.footer-nav a {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.14em;
  color: var(--paper);
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.18s ease;
}

.footer-nav a:hover {
  color: var(--red);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 34px;
  padding-top: 17px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.12em;
  color: rgba(142, 128, 115, 0.8);
  text-transform: uppercase;
}

/* ---------- reveal ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.7s ease,
    transform 0.7s var(--ease);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.js .genre-tile {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.5s ease,
    transform 0.5s var(--ease),
    border-color 0.24s ease,
    background 0.24s ease,
    box-shadow 0.24s ease;
}

.js .genre-tile.is-visible {
  opacity: 1;
  transform: none;
}

.js .genre-tile.is-visible:hover,
.js .genre-tile.is-visible.is-active {
  transform: translateY(-4px);
}

/* ---------- animations ---------- */

@keyframes grainShift {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-4%, 2%); }
  40% { transform: translate(3%, -3%); }
  60% { transform: translate(-2%, 4%); }
  80% { transform: translate(4%, -1%); }
  100% { transform: translate(0, 0); }
}

@keyframes recBlink {
  0%, 42%, 100% { opacity: 1; }
  43%, 70% { opacity: 0.32; }
}

@keyframes posterFloat {
  0%, 100% { transform: rotate(1.8deg) translateY(0); }
  50% { transform: rotate(1.1deg) translateY(-14px); }
}

@keyframes chipFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes haloPulse {
  0%, 100% { transform: scale(1); opacity: 0.75; }
  50% { transform: scale(1.08); opacity: 1; }
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes reelSpin {
  to { transform: rotate(360deg); }
}

@keyframes tapeIn {
  from { opacity: 0; transform: translateY(16px) scale(0.985); }
  to { opacity: 1; transform: none; }
}

@keyframes buttonFlash {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.45) saturate(0.7); }
}

/* ---------- responsive ---------- */

@media (max-width: 1120px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1.1fr) minmax(330px, 0.9fr);
  }

  .hero-art {
    min-height: 460px;
  }

  .poster {
    width: min(380px, 100%);
  }

  .float-chip--1 {
    left: -2%;
  }

  .float-chip--2 {
    right: -1%;
  }
}

@media (max-width: 980px) {
  .header-status {
    display: none;
  }

  .brand-caption {
    display: none;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 34px;
    padding-top: 46px;
  }

  .hero-copy {
    max-width: 740px;
  }

  .hero-title {
    font-size: clamp(64px, 14vw, 120px);
  }

  .hero-art {
    min-height: 0;
    padding: 26px 0 34px;
  }

  .poster {
    width: min(400px, 78vw);
  }

  .hero-halo {
    width: 70vw;
    height: 70vw;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .section-lead {
    max-width: 620px;
  }

  .rules-inner {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .rules-copy p:not(.kicker) {
    max-width: 620px;
  }

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

  .criteria-nav {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0 18px;
    padding: 14px 0 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .criteria-nav-title {
    width: 100%;
    margin-bottom: 5px;
  }

  .criteria-nav a {
    padding: 5px 0;
  }

  .tape-card {
    grid-template-columns: 64px minmax(250px, 310px) minmax(0, 1fr);
  }

  .tape-body {
    padding: 26px;
  }

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

  .page-hero-inner {
    gap: 28px;
  }

  .channel-card {
    width: 190px;
    height: 236px;
  }

  .channel-digits {
    font-size: 88px;
  }

  .criteria-stamp {
    width: 190px;
    height: 190px;
  }

  .criteria-stamp-main {
    font-size: 54px;
  }
}

@media (max-width: 780px) {
  .container,
  .header-inner {
    width: calc(100% - 36px);
  }

  .header-inner {
    min-height: 84px;
    gap: 10px;
  }

  .site-header.is-scrolled .header-inner {
    min-height: 68px;
  }

  .brand-poster {
    width: 66px;
    height: 63px;
  }

  .site-header.is-scrolled .brand-poster {
    width: 54px;
    height: 52px;
  }

  .main-nav a {
    padding: 8px 10px;
    font-size: 9px;
    letter-spacing: 0.1em;
  }

  .main-nav a::after {
    left: 10px;
    right: 10px;
  }

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

  .hero {
    padding-top: 16px;
  }

  .hero-inner {
    padding: 34px 0 56px;
  }

  .hero-title {
    margin-top: 16px;
  }

  .hero-lead {
    font-size: 14px;
  }

  .hero-stats {
    margin-top: 34px;
  }

  .stat {
    padding: 0 18px;
  }

  .stat strong {
    font-size: 24px;
  }

  .float-chip {
    font-size: 7px;
    padding: 6px 9px;
  }

  .hero-time {
    display: none;
  }

  .poster {
    width: min(330px, 72vw);
    padding: 11px;
    border-radius: 24px;
  }

  .poster-scan {
    inset: 11px;
    border-radius: 17px;
  }

  .poster-sticker {
    top: 14px;
    right: 14px;
  }

  .section {
    padding: 72px 0;
  }

  .section--random {
    padding-top: 64px;
  }

  .tape-empty {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 28px;
  }

  .tape-empty .btn {
    margin-left: 0;
  }

  .tape-card {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .tape-cover {
    min-height: 300px;
  }

  .tape-body {
    grid-column: 2;
    padding: 24px;
  }

  .tape-spine {
    grid-row: 1 / 3;
  }

  .page-hero {
    padding-top: 44px;
  }

  .page-hero-inner {
    min-height: 0;
    padding-bottom: 20px;
  }

  .channel-card,
  .criteria-stamp {
    display: none;
  }

  .page-title {
    font-size: clamp(58px, 15vw, 100px);
  }

  .genre-toolbar {
    gap: 18px;
    padding: 18px;
  }

  .filter-group {
    width: 100%;
  }

  .genre-toolbar .btn {
    margin-left: 0;
    width: 100%;
  }

  .active-channel {
    width: 100%;
  }

  .genre-strip,
  .genre-grid {
    grid-template-columns: 1fr;
  }

  .genre-tile,
  .genre-grid .genre-tile {
    min-height: 0;
    padding: 20px;
  }

  .genre-tile h3,
  .genre-grid .genre-tile h3 {
    font-size: 25px;
  }

  .genre-tile .desc {
    max-width: none;
  }

  .criteria-block {
    padding: 24px 22px;
  }

  .rating-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .rating-dial {
    width: 126px;
    height: 126px;
  }

  .rating-value {
    font-size: 40px;
  }

  .criteria-quote {
    padding: 22px 22px 22px 54px;
  }

  .quote-mark {
    left: 16px;
    font-size: 58px;
  }

  .genre-index {
    grid-template-columns: 1fr;
  }

  .cta {
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 26px;
  }

  .cta .btn {
    width: 100%;
  }

  .footer-inner {
    flex-wrap: wrap;
    gap: 22px;
  }

  .footer-status {
    display: none;
  }

  .footer-nav {
    width: 100%;
    padding-top: 18px;
    border-top: 1px solid var(--line-soft);
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .marquee-group {
    gap: 18px;
    padding: 13px 18px 13px 0;
  }

  .marquee-group span {
    font-size: 11px;
  }
}

@media (max-width: 520px) {
  .main-nav {
    gap: 0;
  }

  .main-nav a {
    padding: 7px 8px;
    font-size: 8px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 0;
  }

  .stat {
    padding-left: 16px;
  }

  .stat:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }

  .stat span {
    font-size: 7px;
  }

  .float-chip--1,
  .float-chip--3 {
    left: -2%;
  }

  .float-chip--2 {
    right: -2%;
  }

  .tape-card {
    grid-template-columns: 1fr;
    border-radius: 18px;
  }

  .tape-spine {
    display: none;
  }

  .tape-cover {
    min-height: 270px;
  }

  .tape-body {
    grid-column: auto;
    padding: 22px;
  }

  .tape-meta {
    grid-template-columns: 1fr 1fr;
  }

  .tape-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .tape-links .js-reroll {
    grid-column: 1 / -1;
    margin-left: 0;
  }

  .section-title {
    font-size: clamp(34px, 11vw, 52px);
  }

  .page-title {
    font-size: clamp(50px, 15vw, 76px);
  }

  .rule-card {
    grid-template-columns: 40px minmax(0, 1fr);
    padding: 18px;
  }

  .rule-num {
    font-size: 23px;
  }

  .footer-brand small {
    display: none;
  }
}

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

  .js .reveal,
  .js .genre-tile {
    opacity: 1;
    transform: none;
  }
}
