/* ==========================================================================
   BPB — cinematic archive theme
   1. Tokens
   2. Base
   3. Utilities
   4. Header / navigation / search
   5. Hero
   6. Sections & cards
   7. Performers / genres / editorial / studios / tags
   8. Archive
   9. Single video
   10. Actress profile
   11. Search / 404
   12. Footer
   13. Ads / age gate
   14. Responsive / themes / motion
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  color-scheme: dark;

  --ink-0: #07080b;
  --ink-1: #0b0d12;
  --ink-2: #101319;
  --ink-3: #171b23;
  --ink-4: #1f242e;

  --paper: #f3f0ea;
  --text: #f3f0ea;
  --text-dim: #a5a9b4;
  --text-faint: #6f7480;

  --line: rgba(243, 240, 234, 0.09);
  --line-strong: rgba(243, 240, 234, 0.16);

  --accent: #ff4d5a;
  --accent-deep: #d92d3f;
  --accent-soft: rgba(255, 77, 90, 0.12);
  --gold: #e8b45a;
  --jade: #4ed6a8;

  --header-bg: rgba(7, 8, 11, 0.78);
  --panel-bg: rgba(16, 19, 25, 0.82);

  --radius-xs: 8px;
  --radius-sm: 11px;
  --radius: 15px;
  --radius-lg: 22px;
  --radius-xl: 30px;

  --shadow-1: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
  --shadow-2: 0 18px 50px rgba(0, 0, 0, 0.35);
  --shadow-3: 0 30px 90px rgba(0, 0, 0, 0.5);

  --shell: 1480px;
  --gutter: clamp(16px, 3vw, 40px);
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --font-sans: 'Manrope', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;

  --poster-a: #2b1016;
  --poster-b: #0a0608;
  --poster-c: #ff4d5a;
}

[data-theme='light'] {
  color-scheme: light;

  --ink-0: #f4f0e8;
  --ink-1: #faf7f1;
  --ink-2: #ffffff;
  --ink-3: #ece7dd;
  --ink-4: #e2dcd0;

  --text: #171410;
  --text-dim: #615b52;
  --text-faint: #8a8378;

  --line: rgba(23, 20, 16, 0.11);
  --line-strong: rgba(23, 20, 16, 0.2);

  --accent: #d92d3f;
  --accent-deep: #b21f30;
  --accent-soft: rgba(217, 45, 63, 0.09);
  --gold: #a9771f;
  --jade: #157a58;

  --header-bg: rgba(244, 240, 232, 0.82);
  --panel-bg: rgba(255, 255, 255, 0.86);

  --shadow-2: 0 18px 50px rgba(62, 48, 30, 0.12);
  --shadow-3: 0 30px 90px rgba(62, 48, 30, 0.18);
}

/* 2. Base ------------------------------------------------------------------ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--ink-0);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(900px 500px at 12% -10%, rgba(255, 77, 90, 0.11), transparent 60%),
    radial-gradient(800px 600px at 92% 0%, rgba(86, 105, 255, 0.07), transparent 55%),
    radial-gradient(1000px 700px at 50% 110%, rgba(232, 180, 90, 0.035), transparent 60%);
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.022;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 240 240' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

[data-theme='light'] body::before {
  background:
    radial-gradient(900px 500px at 12% -10%, rgba(217, 45, 63, 0.08), transparent 60%),
    radial-gradient(800px 600px at 92% 0%, rgba(120, 110, 80, 0.08), transparent 55%);
}

[data-theme='light'] body::after {
  opacity: 0.035;
}

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

img {
  height: auto;
}

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

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

button {
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}

h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
}

::selection {
  background: var(--accent);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--ink-0);
}

::-webkit-scrollbar-thumb {
  background: var(--ink-4);
  border-radius: 99px;
  border: 2px solid var(--ink-0);
}

::-webkit-scrollbar-thumb:hover {
  background: #343b48;
}

/* 3. Utilities ------------------------------------------------------------- */
.shell {
  width: min(var(--shell), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

.shell--narrow {
  width: min(1120px, calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 300;
  transform: translateY(-160%);
  background: var(--paper);
  color: #0b0d12;
  padding: 10px 16px;
  border-radius: 99px;
  font-weight: 700;
  font-size: 13px;
  transition: transform 0.2s var(--ease);
}

.skip-link:focus {
  transform: none;
}

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

.eyebrow::before {
  content: '';
  width: 18px;
  height: 1px;
  background: var(--accent);
}

.eyebrow--plain::before {
  display: none;
}

.eyebrow b {
  color: var(--accent);
  font-weight: 600;
}

.section {
  padding-block: clamp(52px, 6vw, 86px);
  position: relative;
}

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

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(24px, 3vw, 40px);
}

.section-head__copy {
  display: grid;
  gap: 10px;
}

.section-title {
  font-size: clamp(27px, 3.2vw, 42px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 700;
  text-wrap: balance;
}

.section-title em {
  font-style: normal;
  color: var(--text-faint);
}

.section-desc {
  max-width: 56ch;
  color: var(--text-dim);
  font-size: 14px;
}

.section-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line-strong);
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: color 0.2s, border-color 0.2s;
}

.section-link svg {
  width: 15px;
  height: 15px;
  transition: transform 0.25s var(--ease);
}

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

.section-link:hover svg {
  transform: translateX(3px);
}

.icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 99px;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: transform 0.2s var(--ease), background 0.2s, color 0.2s, border-color 0.2s;
}

.btn svg {
  width: 16px;
  height: 16px;
}

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

.btn:active {
  transform: translateY(0) scale(0.99);
}

.btn--primary {
  background: var(--paper);
  color: #0b0d12;
}

.btn--primary:hover {
  background: #fff;
}

.btn--accent {
  background: var(--accent);
  color: #fff;
}

.btn--accent:hover {
  background: var(--accent-deep);
}

.btn--ghost {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  backdrop-filter: blur(10px);
}

.btn--ghost:hover {
  border-color: var(--text-faint);
  background: rgba(255, 255, 255, 0.07);
}

.btn--sm {
  min-height: 38px;
  padding: 0 15px;
  font-size: 12px;
}

.btn--block {
  width: 100%;
}

body.is-locked {
  overflow: hidden;
}

.text-link {
  color: var(--accent);
  font-weight: 600;
}

.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.meta-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.45;
  flex: none;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: var(--ink-2);
  color: var(--text-dim);
  font-size: 11px;
  font-weight: 600;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.chip:hover {
  color: var(--text);
  border-color: var(--line-strong);
  background: var(--ink-3);
}

.chip--accent {
  color: var(--accent);
  border-color: rgba(255, 77, 90, 0.28);
  background: var(--accent-soft);
}

.chip--mono {
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 10px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 21px;
  padding: 0 7px;
  border-radius: 5px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.badge--hd {
  background: rgba(255, 77, 90, 0.92);
  color: #fff;
}

.badge--soft {
  background: rgba(7, 8, 11, 0.62);
  color: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.badge--gold {
  background: rgba(232, 180, 90, 0.14);
  color: var(--gold);
  border: 1px solid rgba(232, 180, 90, 0.24);
}

/* 4. Header / navigation / search ----------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  height: var(--header-h);
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  transition: background 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.site-header.is-scrolled {
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
  border-color: transparent;
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 44px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.brand__mark {
  width: 29px;
  height: 33px;
  color: var(--text);
  flex: none;
}

.brand__mark .ink {
  fill: var(--accent);
}

.brand__text {
  display: grid;
  gap: 1px;
  line-height: 1;
}

.brand__name {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.brand__tag {
  font-family: var(--font-mono);
  font-size: 7px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
  margin-inline: auto;
}

.nav-link {
  position: relative;
  padding: 10px 0;
  color: var(--text-dim);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: color 0.2s;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateX(-50%) scale(0);
  transition: transform 0.22s var(--ease);
}

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

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: translateX(-50%) scale(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: none;
}

.icon-btn {
  position: relative;
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 50%;
  color: var(--text-dim);
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.icon-btn:hover {
  color: var(--text);
  background: var(--ink-3);
  border-color: var(--line);
}

[data-theme-icon='moon'] {
  display: none;
}

[data-theme='light'] [data-theme-icon='moon'] {
  display: block;
}

[data-theme='light'] [data-theme-icon='sun'] {
  display: none;
}

.icon-btn.is-active {
  color: var(--accent);
}

.icon-btn--badge {
  position: relative;
}

.count-badge {
  position: absolute;
  top: 2px;
  right: 1px;
  min-width: 15px;
  height: 15px;
  display: grid;
  place-items: center;
  padding: 0 3px;
  border-radius: 99px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 7.5px;
  font-weight: 600;
  line-height: 1;
  box-shadow: 0 0 0 2px var(--ink-0);
}

.search-trigger {
  height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 11px 0 13px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: var(--ink-2);
  color: var(--text-faint);
  font-size: 11.5px;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.search-trigger:hover {
  border-color: var(--line-strong);
  background: var(--ink-3);
  color: var(--text-dim);
}

.search-trigger .icon {
  width: 15px;
  height: 15px;
}

.search-trigger kbd {
  margin-left: 12px;
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--ink-1);
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-faint);
}

.menu-trigger {
  display: none;
}

.menu-trigger span {
  display: block;
  width: 17px;
  height: 1.5px;
  background: currentColor;
  margin: 3.5px 0;
  transition: transform 0.2s;
}

/* Language switcher */
.lang-switch {
  position: relative;
}

.lang-switch summary {
  list-style: none;
  height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: var(--ink-2);
  color: var(--text-dim);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  transition: border-color 0.2s, color 0.2s;
}

.lang-switch summary::-webkit-details-marker {
  display: none;
}

.lang-switch summary:hover,
.lang-switch[open] summary {
  color: var(--text);
  border-color: var(--line-strong);
}

.lang-switch summary .icon {
  width: 15px;
  height: 15px;
}

.lang-switch__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 160;
  min-width: 190px;
  display: grid;
  gap: 2px;
  padding: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--ink-1);
  box-shadow: var(--shadow-3);
}

.lang-switch__head {
  padding: 6px 10px;
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.lang-switch__menu a {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--text-dim);
  font-size: 13px;
}

.lang-switch__menu a:hover {
  background: var(--ink-3);
  color: var(--text);
}

.lang-switch__menu a.is-current {
  color: var(--accent);
}

.lang-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
}

.lang-links a {
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.lang-links a:hover {
  color: var(--text);
}

.lang-links a.is-current {
  color: var(--accent);
  text-decoration: none;
}

/* Search overlay */
.search-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  background: rgba(4, 5, 8, 0.78);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  padding: clamp(18px, 6vh, 80px) var(--gutter);
}

.search-modal.is-open {
  display: block;
  animation: fade-in 0.2s ease both;
}

.search-panel {
  width: min(900px, 100%);
  margin-inline: auto;
}

.search-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.search-panel__head .eyebrow {
  color: var(--text-dim);
}

.search-close {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--text-dim);
  transition: color 0.2s, border-color 0.2s, transform 0.2s;
}

.search-close:hover {
  color: var(--text);
  border-color: var(--text-faint);
  transform: rotate(90deg);
}

.search-form {
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 16px;
}

.search-form .icon {
  width: 26px;
  height: 26px;
  color: var(--text-faint);
}

.search-form input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: none;
  color: var(--text);
  font-size: clamp(26px, 4.2vw, 52px);
  font-weight: 600;
  letter-spacing: -0.04em;
}

.search-form input::placeholder {
  color: var(--text-faint);
  opacity: 0.55;
}

.search-form button[type='submit'] {
  flex: none;
  height: 44px;
  padding: 0 20px;
  border-radius: 99px;
  background: var(--paper);
  color: #0b0d12;
  font-size: 12px;
  font-weight: 800;
}

.search-suggest {
  margin-top: 34px;
  display: grid;
  gap: 16px;
}

.search-suggest__label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.search-suggest__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.search-hint {
  margin-top: 30px;
  color: var(--text-faint);
  font-size: 11px;
}

.search-hint kbd {
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 5px;
  font-family: var(--font-mono);
  font-size: 9px;
}

/* Mobile drawer + bottom nav */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 190;
  display: none;
}

.drawer.is-open {
  display: block;
}

.drawer__scrim {
  position: absolute;
  inset: 0;
  background: rgba(4, 5, 8, 0.6);
  backdrop-filter: blur(6px);
}

.drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(390px, 88vw);
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 22px 24px calc(24px + env(safe-area-inset-bottom));
  background: var(--ink-1);
  border-left: 1px solid var(--line);
  box-shadow: -30px 0 80px rgba(0, 0, 0, 0.4);
  animation: slide-in 0.28s var(--ease) both;
  overflow-y: auto;
}

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.drawer__nav {
  display: grid;
  padding-block: 12px;
}

.drawer__nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 2px;
  border-bottom: 1px solid var(--line);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.drawer__nav a span {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 400;
  color: var(--text-faint);
  letter-spacing: 0.12em;
}

.drawer__nav a:hover {
  color: var(--accent);
}

.drawer__foot {
  margin-top: auto;
  padding-top: 24px;
  display: grid;
  gap: 14px;
  color: var(--text-faint);
  font-size: 11px;
}

.drawer__foot a {
  color: var(--text-dim);
}

.bottom-nav {
  display: none;
}

/* 6. Sections & cards ------------------------------------------------------ */
.vgrid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(18px, 1.8vw, 26px) clamp(12px, 1.4vw, 20px);
}

.vgrid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.vcard {
  position: relative;
  min-width: 0;
  display: grid;
  gap: 10px;
}

.vcard__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--ink-3);
  border: 1px solid var(--line);
  isolation: isolate;
}

.vcard__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--ease), filter 0.55s;
}

.vcard__media::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(4, 5, 8, 0.55), transparent 45%);
  opacity: 0.7;
  transition: opacity 0.3s;
}

.vcard:hover .vcard__media img {
  transform: scale(1.045);
  filter: saturate(1.08);
}

.vcard:hover .vcard__media::after {
  opacity: 1;
}

.vcard__top {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  display: flex;
  gap: 5px;
}

.vcard__save {
  position: absolute;
  top: 7px;
  right: 7px;
  z-index: 3;
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(7, 8, 11, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(243, 240, 234, 0.8);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.2s, transform 0.2s, background 0.2s, color 0.2s;
  backdrop-filter: blur(8px);
}

.vcard:hover .vcard__save,
.vcard__save:focus-visible,
.vcard__save.is-saved {
  opacity: 1;
  transform: none;
}

.vcard__save:hover,
.vcard__save.is-saved {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.vcard__save .icon {
  width: 14px;
  height: 14px;
}

.vcard__duration {
  position: absolute;
  right: 7px;
  bottom: 7px;
  z-index: 2;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(5, 6, 9, 0.8);
  color: rgba(243, 240, 234, 0.9);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.04em;
  backdrop-filter: blur(6px);
}

.vcard__play {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity 0.25s;
}

.vcard:hover .vcard__play {
  opacity: 1;
}

.vcard__play span {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(243, 240, 234, 0.92);
  color: #0b0d12;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transform: scale(0.85);
  transition: transform 0.25s var(--ease);
}

.vcard:hover .vcard__play span {
  transform: scale(1);
}

.vcard__play .icon {
  width: 17px;
  height: 17px;
  margin-left: 2px;
  fill: currentColor;
  stroke: none;
}

.vcard__body {
  display: grid;
  gap: 5px;
  padding-inline: 1px;
}

.vcard__title {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.38;
  letter-spacing: -0.012em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s;
}

.vcard:hover .vcard__title {
  color: var(--accent);
}

.vcard__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: var(--text-faint);
  font-size: 10.5px;
  white-space: nowrap;
}

.vcard__meta span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.vcard__meta a {
  color: var(--text-dim);
  transition: color 0.2s;
}

.vcard__meta a:hover {
  color: var(--accent);
}

.vcard__code {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* Poster fallback art */
.poster {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(120% 120% at 84% 6%, color-mix(in srgb, var(--poster-c) 42%, transparent), transparent 54%),
    linear-gradient(145deg, var(--poster-a), var(--poster-b));
}

.poster::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent 78%);
  opacity: 0.7;
}

.poster::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(4, 5, 8, 0.7), transparent 55%);
}

.poster__kanji {
  position: absolute;
  right: -0.04em;
  bottom: -0.16em;
  z-index: 0;
  font-size: 8.2em;
  font-weight: 800;
  line-height: 1;
  color: rgba(255, 255, 255, 0.075);
  letter-spacing: -0.08em;
  user-select: none;
}

.poster__code {
  position: absolute;
  left: 12px;
  bottom: 10px;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.poster--hero .poster__kanji {
  font-size: 17em;
  color: rgba(255, 255, 255, 0.08);
}

.poster--hero .poster__code {
  display: none;
}

.poster--portrait .poster__kanji {
  font-size: 7em;
}

.poster--portrait::before {
  background-size: 32px 32px;
}

/* 7. Performers / genres / editorial / studios / tags ---------------------- */
.people-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(116px, 1fr);
  gap: clamp(12px, 1.6vw, 22px);
  overflow-x: auto;
  padding: 4px 2px 10px;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
}

.people-strip::-webkit-scrollbar {
  display: none;
}

.person {
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
  scroll-snap-align: start;
}

.person__avatar {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  max-width: 138px;
  border-radius: 50%;
  padding: 3px;
  background: conic-gradient(from 180deg, var(--accent), transparent 28%, transparent 70%, var(--gold));
  opacity: 0.9;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

.person:hover .person__avatar {
  transform: translateY(-3px);
  opacity: 1;
}

.person__inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--ink-0);
  background: var(--ink-3);
}

.person__inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.person:hover .person__inner img {
  transform: scale(1.05);
}

.person__name {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.person__count {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.avatar-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(100% 100% at 70% 10%, color-mix(in srgb, var(--poster-c) 45%, transparent), transparent 60%),
    linear-gradient(145deg, var(--poster-a), var(--poster-b));
  color: rgba(255, 255, 255, 0.82);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: 0.02em;
}

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

.genre-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 178px;
  padding: 20px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 130% at 88% 0%, color-mix(in srgb, var(--poster-c) 34%, transparent), transparent 55%),
    linear-gradient(150deg, var(--poster-a), var(--poster-b));
  isolation: isolate;
  transition: transform 0.3s var(--ease), border-color 0.3s;
}

.genre-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 38px 38px;
  opacity: 0.55;
}

.genre-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(4, 5, 8, 0.72), transparent 70%);
}

.genre-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--poster-c) 40%, var(--line));
}

.genre-card__kanji {
  position: absolute;
  top: -0.18em;
  right: 0.02em;
  z-index: -1;
  font-size: 6.5em;
  line-height: 1;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.07);
  letter-spacing: -0.08em;
}

.genre-card__count {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(243, 240, 234, 0.55);
  margin-bottom: 5px;
}

.genre-card h3 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.035em;
  color: var(--paper);
}

.genre-card__arrow {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(243, 240, 234, 0.18);
  color: rgba(243, 240, 234, 0.7);
  transition: background 0.25s, color 0.25s, transform 0.25s;
}

.genre-card:hover .genre-card__arrow {
  background: var(--paper);
  color: #0b0d12;
  transform: rotate(-45deg);
}

.genre-card__arrow .icon {
  width: 13px;
  height: 13px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(20px, 3vw, 44px);
  align-items: stretch;
}

.rank-list {
  display: grid;
  align-content: start;
}

.rank-item {
  display: grid;
  grid-template-columns: 34px 88px minmax(0, 1fr) 22px;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  transition: padding 0.2s;
}

.rank-item:first-child {
  padding-top: 0;
}

.rank-item:last-child {
  border-bottom: 0;
}

.rank-item:hover {
  padding-left: 5px;
}

.rank-item__num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
}

.rank-item__thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 7px;
  overflow: hidden;
  background: var(--ink-3);
}

.rank-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}

.rank-item:hover .rank-item__thumb img {
  transform: scale(1.06);
}

.rank-item__thumb .poster__kanji {
  font-size: 3em;
}

.rank-item__body {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.rank-item__body h3 {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.32;
  letter-spacing: -0.015em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rank-item__body p {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-item__arrow {
  color: var(--text-faint);
  opacity: 0;
  transform: translateX(-5px);
  transition: opacity 0.2s, transform 0.2s;
}

.rank-item:hover .rank-item__arrow {
  opacity: 1;
  transform: none;
  color: var(--accent);
}

.rank-item__arrow .icon {
  width: 15px;
  height: 15px;
}

.ticker-track {
  display: flex;
  align-items: center;
  gap: 0;
  width: max-content;
  animation: ticker 42s linear infinite;
}

.ticker-group {
  display: flex;
  align-items: center;
  gap: 52px;
  padding-right: 52px;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text-faint);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 0.2s;
}

.ticker-item::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.6;
}

.ticker-item:hover {
  color: var(--text);
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.018);
  color: var(--text-dim);
  font-size: 11.5px;
  font-weight: 500;
  transition: color 0.2s, border-color 0.2s, background 0.2s, transform 0.2s;
}

.tag-pill:hover {
  color: var(--text);
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-1px);
}

.tag-pill span {
  font-family: var(--font-mono);
  font-size: 8px;
  color: var(--text-faint);
}

/* 8. Archive --------------------------------------------------------------- */
.page-head {
  position: relative;
  padding-block: clamp(38px, 5vw, 68px) clamp(24px, 3vw, 38px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.page-head__art {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(600px 320px at 82% 0%, rgba(255, 77, 90, 0.09), transparent 60%),
    radial-gradient(500px 300px at 10% 30%, rgba(86, 105, 255, 0.05), transparent 60%);
}

.page-head__inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
}

.page-head__copy {
  display: grid;
  gap: 12px;
  max-width: 800px;
}

.page-title {
  font-size: clamp(32px, 4.6vw, 56px);
  line-height: 1;
  letter-spacing: -0.045em;
  font-weight: 800;
  text-wrap: balance;
}

.page-title em {
  font-style: normal;
  color: var(--text-faint);
}

.page-desc {
  max-width: 62ch;
  color: var(--text-dim);
  font-size: 14px;
}

.page-head__side {
  display: grid;
  justify-items: end;
  gap: 10px;
  flex: none;
  padding-bottom: 6px;
}

.page-count {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.page-count strong {
  font-size: 15px;
  letter-spacing: 0;
  color: var(--text);
  font-weight: 500;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(22px, 3vw, 34px);
}

.toolbar__group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.toolbar__label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-right: 4px;
}

.sort-link {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 12px;
  border-radius: 99px;
  color: var(--text-faint);
  font-size: 11px;
  font-weight: 600;
  transition: color 0.2s, background 0.2s;
}

.sort-link:hover {
  color: var(--text);
  background: var(--ink-3);
}

.sort-link.is-active {
  color: var(--text);
  background: var(--ink-3);
  box-shadow: inset 0 0 0 1px var(--line);
}

.result-count {
  font-size: 11px;
  color: var(--text-faint);
}

.result-count strong {
  color: var(--text-dim);
  font-weight: 600;
}

.load-more-wrap {
  display: flex;
  justify-content: center;
  padding-top: clamp(28px, 4vw, 48px);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding-top: clamp(32px, 4vw, 52px);
}

.pagination .page-numbers {
  min-width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 10px;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.pagination .page-numbers:hover {
  color: var(--text);
  border-color: var(--line-strong);
  background: var(--ink-3);
}

.pagination .page-numbers.current {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

.pagination .page-numbers.dots {
  border-color: transparent;
  min-width: 20px;
  padding: 0;
}

.pagination .prev,
.pagination .next {
  width: auto;
  padding: 0 14px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
}

/* 9. Single video ---------------------------------------------------------- */
.watch-wrap {
  padding-top: clamp(16px, 2vw, 26px);
}

.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  padding-bottom: 18px;
  color: var(--text-faint);
  font-size: 10.5px;
}

.breadcrumbs a {
  color: var(--text-dim);
  transition: color 0.2s;
}

.breadcrumbs a:hover {
  color: var(--accent);
}

.breadcrumbs .sep {
  opacity: 0.4;
}

.breadcrumbs span[aria-current] {
  color: var(--text-faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 42ch;
}

.watch-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 336px;
  gap: clamp(26px, 3vw, 46px);
  align-items: start;
}

.player {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-2);
  isolation: isolate;
}

.player__poster {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.player__poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) brightness(0.78);
}

.player::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 60% at 50% 45%, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.55)),
    linear-gradient(to top, rgba(4, 5, 8, 0.6), transparent 50%);
}

.player__facade {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--paper);
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.player__play {
  width: clamp(64px, 7vw, 86px);
  height: clamp(64px, 7vw, 86px);
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(243, 240, 234, 0.94);
  color: #0b0d12;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s var(--ease), background 0.2s;
}

.player__facade:hover .player__play {
  transform: scale(1.06);
  background: #fff;
}

.player__play .icon {
  width: 28px;
  height: 28px;
  margin-left: 4px;
  fill: currentColor;
  stroke: none;
}

.player__caption {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: rgba(243, 240, 234, 0.72);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.player__caption span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.player__badge {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
}

.code-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--ink-2);
}

.player-zone {
  display: grid;
  gap: 12px;
}

/* Two-step player: ready state + servers row */
.player.is-ready .player__poster img {
  filter: saturate(0.55) brightness(0.45);
}

.player__servers {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--ink-1);
}

.player__servers[hidden] {
  display: none;
}

.player__servers-label {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-right: 2px;
}

.server-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 8px 16px 9px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: transparent;
  color: var(--paper);
  cursor: pointer;
  touch-action: manipulation;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.server-btn__name {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.server-btn__note {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  transition: color 0.2s;
}

.server-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #0b0d12;
}

.server-btn:hover .server-btn__note {
  color: rgba(11, 13, 18, 0.72);
}

.server-btn.is-active,
.server-btn[aria-pressed='true'] {
  background: var(--accent);
  border-color: var(--accent);
  color: #0b0d12;
}

.server-btn.is-active .server-btn__note,
.server-btn[aria-pressed='true'] .server-btn__note {
  color: rgba(11, 13, 18, 0.72);
}

.server-btn--alt {
  border-color: var(--line-strong);
}

.server-btn--empty {
  border-style: dashed;
  border-color: var(--line);
  color: var(--text-faint);
  cursor: default;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding-top: 12px;
  padding-bottom: 12px;
}

/* Load more */
.load-more {
  display: grid;
  justify-items: center;
  gap: 12px;
  margin-top: clamp(22px, 2.6vw, 34px);
}

.load-more__btn.is-busy {
  opacity: 0.55;
  pointer-events: none;
}

.load-more__end {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.load-more__end[hidden] {
  display: none;
}

/* Prev / next scene links */
.pager-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: clamp(22px, 2.6vw, 34px);
}

.pager-nav__col {
  min-width: 0;
}

.pager-nav__col--next {
  text-align: right;
}

.pager-nav__col a {
  display: inline-grid;
  gap: 6px;
  max-width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--ink-1);
  text-decoration: none;
}

.pager-nav__col a:hover {
  border-color: var(--accent, #e11d48);
}

.pager-nav__dir {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.pager-nav__title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

@media (max-width: 640px) {
  .pager-nav {
    grid-template-columns: 1fr;
  }

  .pager-nav__col--next {
    text-align: left;
  }
}

/* Home search */
.home-search {
  padding: clamp(16px, 2.6vw, 30px) 0 6px;
}

.home-search__form {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 640px;
  margin: 0 auto;
  padding: 6px 6px 6px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--ink-1);
  transition: border-color 0.18s ease;
}

.home-search__form:focus-within {
  border-color: var(--accent, #e11d48);
}

.home-search__icon {
  display: inline-flex;
  color: var(--text-dim);
  flex: 0 0 auto;
}

.home-search__input {
  flex: 1 1 auto;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--text);
  font-size: 14px;
  padding: 10px 0;
}

.home-search__input::placeholder {
  color: var(--text-dim);
}

.home-search__btn {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 10px 22px;
}

@media (max-width: 640px) {
  .home-search {
    padding-top: 12px;
  }

  .home-search__btn {
    padding: 8px 16px;
  }
}

/* Genre chips (homepage ladder row) */
.genre-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.genre-chips a {
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-decoration: none;
  background: var(--ink-1);
}

.genre-chips a:hover {
  color: var(--text);
  border-color: var(--accent, #e11d48);
}

/* Archive briefing */
.briefing {
  border-bottom: 1px solid var(--line);
  background: var(--ink-1);
}

.briefing__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: clamp(24px, 3.4vw, 56px);
  padding-block: clamp(20px, 2.4vw, 30px);
  align-items: start;
}

.briefing__digest {
  margin-top: 10px;
  font-size: clamp(16px, 1.5vw, 19px);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.55;
  color: var(--paper);
}

.briefing__head {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.briefing__qa {
  display: grid;
  gap: 12px;
}

.briefing__qa dt {
  font-size: 12.5px;
  font-weight: 700;
}

.briefing__qa dd {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.6;
}

/* Find a video */
.find-form {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px 10px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--ink-1);
}

.find-form__icon .icon {
  width: 18px;
  height: 18px;
  color: var(--text-faint);
}

.find-form__input {
  flex: 1;
  min-width: 0;
  background: none;
  border: 0;
  outline: 0;
  color: var(--paper);
  font-size: 15px;
  font-family: inherit;
}

.find-form__input::placeholder {
  color: var(--text-faint);
}

.find-section {
  margin-top: clamp(30px, 4vw, 54px);
}

.find-card {
  position: relative;
  min-width: 0;
  display: grid;
  gap: 10px;
}

.find-card__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--ink-3);
  border: 1px solid var(--line);
}

.find-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease), opacity 0.3s;
}

.find-card:hover .find-card__media img {
  transform: scale(1.05);
}

.find-card__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity 0.25s;
}

.find-card__play .icon {
  width: 34px;
  height: 34px;
  padding: 9px;
  border-radius: 50%;
  background: rgba(243, 240, 234, 0.92);
  color: #0b0d12;
  fill: currentColor;
  stroke: none;
}

.find-card:hover .find-card__play {
  opacity: 1;
}

.find-card__body {
  display: grid;
  gap: 4px;
}

.find-card__code {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.find-card__title {
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.find-card__facts {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.find-watch {
  margin-top: clamp(22px, 3vw, 36px);
  display: grid;
  gap: 20px;
}

.find-watch__back a {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.find-watch__back a:hover {
  color: var(--accent);
}

.find-watch__meta {
  display: grid;
  gap: 12px;
  max-width: 820px;
}

.find-watch__head {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.find-watch__title {
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.find-watch__facts {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.find-watch__desc {
  color: var(--text-dim);
  font-size: 13.5px;
  line-height: 1.7;
}

.find-watch__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.find-watch__note {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.find-help {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(22px, 3vw, 40px);
  margin-top: clamp(28px, 3.4vw, 44px);
  padding-top: clamp(20px, 2.4vw, 28px);
  border-top: 1px solid var(--line);
}

.find-help__col h2 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.find-help__steps {
  padding-left: 18px;
  display: grid;
  gap: 8px;
  color: var(--text-dim);
  font-size: 13px;
  line-height: 1.6;
}

.find-error-detail {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-faint);
}

.player iframe,
.player video {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: auto;
}

.player.is-playing::after,
.player.is-playing .player__facade,
.player.is-playing .player__poster {
  display: none;
}

.watch-head {
  display: grid;
  gap: 12px;
  padding-block: 22px 18px;
  border-bottom: 1px solid var(--line);
}

.watch-kicker {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.watch-title {
  font-size: clamp(22px, 2.7vw, 34px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 800;
  text-wrap: pretty;
}

.watch-about {
  padding-top: 4px;
}

.watch-about__title {
  margin: 4px 0 10px;
  font-size: clamp(18px, 2.4vw, 24px);
  line-height: 1.2;
  letter-spacing: -0.025em;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.watch-about .entry-content {
  color: var(--text-dim);
  font-size: 14.5px;
  line-height: 1.7;
}

.watch-about .entry-content p {
  margin-bottom: 12px;
}

.watch-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.watch-facts > div {
  padding: 10px 12px;
  background: var(--ink-1);
}

.watch-facts dt {
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.watch-facts dd {
  margin: 4px 0 0;
  color: var(--text);
  font-size: 12.5px;
  line-height: 1.45;
}

.watch-facts dd a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 2px;
}

.watch-facts dd a:hover {
  color: var(--accent);
}

.watch-subtitle {
  margin: 22px 0 8px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.watch-answer {
  margin: 14px 0 4px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent);
  border-radius: 6px;
  background: var(--ink-1);
  color: var(--text);
  font-size: 14px;
  line-height: 1.7;
}

.watch-answer__text {
  margin: 0;
}

.watch-answer a,
.watch-notes a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--accent) 45%, transparent);
  text-underline-offset: 2px;
}

.watch-answer a:hover,
.watch-notes a:hover {
  text-decoration-color: currentColor;
}

.watch-notes {
  margin-top: 6px;
}

.watch-notes h2 {
  margin: 24px 0 8px;
  font-size: clamp(17px, 2.2vw, 21px);
  line-height: 1.25;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

.watch-notes p {
  margin-bottom: 10px;
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.7;
}

.watch-notes p:last-child {
  margin-bottom: 0;
}

.watch-sub {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--text-faint);
  font-size: 11px;
}

.watch-sub a {
  color: var(--text-dim);
  transition: color 0.2s;
}

.watch-sub a:hover {
  color: var(--accent);
}

.watch-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  padding-top: 4px;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: var(--ink-2);
  color: var(--text-dim);
  font-size: 10.5px;
  font-weight: 600;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.action-btn:hover {
  color: var(--text);
  border-color: var(--line-strong);
  background: var(--ink-3);
}

.action-btn .icon {
  width: 15px;
  height: 15px;
}

.action-btn.is-active {
  color: var(--accent);
  border-color: rgba(255, 77, 90, 0.3);
  background: var(--accent-soft);
}

.action-btn.is-saved {
  color: var(--gold);
  border-color: rgba(232, 180, 90, 0.3);
  background: rgba(232, 180, 90, 0.08);
}

.watch-content {
  display: grid;
  gap: 26px;
  padding-top: 24px;
}

.watch-content p {
  color: var(--text-dim);
  font-size: 13.5px;
  line-height: 1.8;
}

.watch-content p + p {
  margin-top: 12px;
}

.watch-content h2 {
  font-size: 19px;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.watch-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.downloads {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink-2);
  display: grid;
  gap: 12px;
}

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

.downloads__head h2 {
  margin: 0;
}

.downloads__head span {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.downloads__list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.dl-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--ink-1);
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.2s, border-color 0.2s;
}

.dl-btn:hover {
  color: var(--text);
  border-color: var(--accent);
}

.dl-btn .icon {
  width: 13px;
  height: 13px;
}

.watch-side {
  position: sticky;
  top: calc(var(--header-h) + 18px);
  display: grid;
  gap: 14px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink-2);
  overflow: hidden;
}

.panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
}

.panel__head h2 {
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.panel__head a {
  font-size: 9.5px;
  color: var(--text-faint);
}

.panel__head a:hover {
  color: var(--accent);
}

.panel__body {
  padding: 16px;
}

.detail-list {
  display: grid;
  gap: 0;
}

.detail-list > div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
}

.detail-list > div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.detail-list > div:first-child {
  padding-top: 0;
}

.detail-list dt {
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-top: 1px;
}

.detail-list dd {
  color: var(--text-dim);
  min-width: 0;
}

.detail-list dd a {
  color: var(--text);
}

.detail-list dd a:hover {
  color: var(--accent);
}

.mini-list {
  display: grid;
}

.mini-item {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

.mini-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.mini-item:first-child {
  padding-top: 0;
}

.mini-item__thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 6px;
  overflow: hidden;
  background: var(--ink-3);
}

.mini-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mini-item__thumb .poster__kanji {
  font-size: 2.4em;
}

.mini-item h3 {
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mini-item p {
  font-family: var(--font-mono);
  font-size: 8px;
  color: var(--text-faint);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 4px;
}

.related {
  padding-top: 8px;
}

.related .section-head {
  margin-bottom: 20px;
}

.related .section-title {
  font-size: 24px;
}

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

/* Comments */
.comments-area {
  padding-top: 10px;
}

.comments-title,
.comment-reply-title {
  font-size: 20px;
  letter-spacing: -0.025em;
  margin-bottom: 18px;
}

.comment-list {
  display: grid;
  gap: 18px;
}

.comment-list .children {
  margin-top: 18px;
  padding-left: 22px;
  border-left: 1px solid var(--line);
  display: grid;
  gap: 18px;
}

.comment-body {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--ink-2);
}

.comment-meta {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 8px;
  font-size: 11px;
}

.comment-author {
  font-weight: 700;
}

.comment-author img {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-block;
  vertical-align: middle;
  margin-right: 6px;
}

.comment-metadata {
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.04em;
}

.comment-content {
  color: var(--text-dim);
  font-size: 12.5px;
  line-height: 1.7;
}

.comment-respond {
  margin-top: 26px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink-2);
}

.comment-form {
  display: grid;
  gap: 12px;
}

.comment-form label {
  display: grid;
  gap: 5px;
  font-size: 10px;
  color: var(--text-faint);
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.comment-form input,
.comment-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--ink-1);
  padding: 10px 12px;
  color: var(--text);
  font-size: 12.5px;
  outline: 0;
  transition: border-color 0.2s;
}

.comment-form input:focus,
.comment-form textarea:focus {
  border-color: var(--accent);
}

.comment-form .submit {
  justify-self: start;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 99px;
  background: var(--paper);
  color: #0b0d12;
  font-size: 11.5px;
  font-weight: 800;
}

/* 10. Actress profile ------------------------------------------------------ */
.profile {
  position: relative;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.profile__inner {
  position: relative;
  display: grid;
  grid-template-columns: 196px minmax(0, 1fr);
  gap: clamp(22px, 3vw, 38px);
  align-items: end;
  padding-block: clamp(34px, 5vw, 64px);
}

.profile__art {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(640px 300px at 78% 0%, rgba(255, 77, 90, 0.1), transparent 60%),
    radial-gradient(500px 300px at 20% 100%, rgba(86, 105, 255, 0.05), transparent 60%);
}

.profile__avatar {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--ink-2);
  box-shadow: var(--shadow-2);
}

.profile__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile__avatar .avatar-fallback {
  font-size: 54px;
}

.profile__body {
  display: grid;
  gap: 13px;
  padding-bottom: 4px;
}

.profile__name {
  font-size: clamp(38px, 6vw, 76px);
  line-height: 0.92;
  letter-spacing: -0.06em;
  font-weight: 800;
}

.profile__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  padding-block: 4px;
}

.profile__stat {
  display: grid;
  gap: 1px;
}

.profile__stat strong {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 500;
}

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

.profile__desc {
  max-width: 68ch;
  color: var(--text-dim);
  font-size: 13px;
  line-height: 1.7;
}

.profile__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 2px;
}

.profile__grid {
  padding-top: clamp(26px, 3vw, 40px);
}

/* 11. Search / 404 --------------------------------------------------------- */
.search-page {
  padding-block: clamp(44px, 6vw, 80px) clamp(60px, 8vw, 110px);
}

.search-hero {
  max-width: 900px;
  display: grid;
  gap: 16px;
  margin-bottom: clamp(34px, 5vw, 56px);
}

.search-hero h1 {
  font-size: clamp(40px, 6vw, 76px);
  line-height: 0.95;
  letter-spacing: -0.06em;
  font-weight: 800;
}

.search-hero p {
  color: var(--text-dim);
  max-width: 56ch;
}

.search-big {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 8px 8px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 99px;
  background: var(--ink-2);
  margin-top: 8px;
  transition: border-color 0.2s;
}

.search-big:focus-within {
  border-color: var(--accent);
}

.search-big .icon {
  color: var(--text-faint);
}

.search-big input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: none;
  color: var(--text);
  font-size: 15px;
}

.search-big button {
  height: 42px;
  padding: 0 20px;
  border-radius: 99px;
  background: var(--paper);
  color: #0b0d12;
  font-size: 11.5px;
  font-weight: 800;
}

.empty-state {
  max-width: 520px;
  padding: 40px 0;
  display: grid;
  gap: 12px;
}

.empty-state h2 {
  font-size: 26px;
  letter-spacing: -0.03em;
}

.empty-state p {
  color: var(--text-dim);
  font-size: 13px;
}

.error-page {
  min-height: 62vh;
  display: grid;
  place-items: center;
  padding-block: 70px;
  text-align: center;
}

.error-page__inner {
  display: grid;
  justify-items: center;
  gap: 16px;
}

.error-code {
  font-family: var(--font-mono);
  font-size: clamp(90px, 18vw, 220px);
  line-height: 0.8;
  font-weight: 500;
  letter-spacing: -0.06em;
  color: transparent;
  -webkit-text-stroke: 1px var(--line-strong);
  background: linear-gradient(180deg, var(--text), transparent 90%);
  -webkit-background-clip: text;
  background-clip: text;
  opacity: 0.65;
}

.error-page h1 {
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.04em;
}

.error-page p {
  color: var(--text-dim);
  max-width: 46ch;
}

.find-form {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 52px;
  padding: 5px 5px 5px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 99px;
  background: var(--ink-0);
  transition: border-color 0.2s;
}

.find-form:focus-within {
  border-color: var(--accent);
}

.find-form .icon {
  color: var(--text-faint);
}

.find-form input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: none;
  color: var(--text);
  font-size: 13px;
}

.find-form button {
  height: 40px;
  padding: 0 18px;
  border-radius: 99px;
  background: var(--paper);
  color: #0b0d12;
  font-size: 11px;
  font-weight: 800;
  flex: none;
}

.find-form__hint {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-top: 9px;
}

/* 12. Footer --------------------------------------------------------------- */
.site-footer {
  position: relative;
  margin-top: clamp(40px, 6vw, 80px);
  border-top: 1px solid var(--line);
  background: linear-gradient(to bottom, var(--ink-1), var(--ink-0));
  overflow: hidden;
}

.footer-top {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) repeat(3, minmax(0, 0.75fr));
  gap: clamp(28px, 4vw, 60px);
  padding-block: clamp(44px, 6vw, 76px) clamp(30px, 4vw, 48px);
}

.footer-brand {
  display: grid;
  gap: 14px;
  align-content: start;
  max-width: 360px;
}

.footer-brand p {
  color: var(--text-dim);
  font-size: 12.5px;
  line-height: 1.7;
}

.footer-brand .brand {
  margin-bottom: 2px;
}

.footer-search {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 6px 0 13px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: var(--ink-2);
  max-width: 300px;
  margin-top: 4px;
}

.footer-search .icon {
  width: 14px;
  height: 14px;
  color: var(--text-faint);
}

.footer-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: none;
  color: var(--text);
  font-size: 11px;
}

.footer-search button {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink-4);
  color: var(--text-dim);
  transition: background 0.2s, color 0.2s;
}

.footer-search button:hover {
  background: var(--accent);
  color: #fff;
}

.footer-search button .icon {
  width: 13px;
  height: 13px;
  color: currentColor;
}

.footer-col {
  display: grid;
  gap: 12px;
  align-content: start;
}

.footer-title {
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 2px;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-links a {
  color: var(--text-dim);
  font-size: 11.5px;
  width: fit-content;
  transition: color 0.2s, transform 0.2s;
}

.footer-links a:hover {
  color: var(--text);
  transform: translateX(2px);
}

.footer-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding-block: 18px 26px;
  border-top: 1px solid var(--line);
  color: var(--text-faint);
  font-size: 10px;
}

.footer-legal {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-lang {
  flex-basis: 100%;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.footer-lang .footer-title {
  margin: 0;
  font-size: 9px;
}

.footer-legal a {
  color: var(--text-faint);
  transition: color 0.2s;
}

.footer-legal a:hover {
  color: var(--text-dim);
}

.legal-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-badge::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--jade);
}

.footer-watermark {
  position: absolute;
  right: -0.04em;
  bottom: -0.22em;
  z-index: 0;
  font-size: clamp(150px, 24vw, 380px);
  font-weight: 800;
  letter-spacing: -0.08em;
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 1px var(--line);
  opacity: 0.5;
  user-select: none;
  pointer-events: none;
}

/* 13. Ads / age gate ------------------------------------------------------- */
.ad-slot {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 120px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(-45deg, transparent 0 9px, rgba(255, 255, 255, 0.012) 9px 10px),
    var(--ink-2);
  text-align: center;
  overflow: hidden;
}

.ad-slot__label {
  position: absolute;
  top: 8px;
  left: 10px;
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
  opacity: 0.7;
}

.ad-slot__inner {
  display: grid;
  gap: 4px;
  color: var(--text-faint);
  font-size: 10.5px;
}

.ad-slot__inner strong {
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 600;
}

.ad-slot--inline {
  min-height: 110px;
  margin-top: clamp(24px, 3vw, 36px);
}

.ad-slot--sidebar {
  min-height: 250px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom));
  z-index: 600;
  transform: translate(-50%, 14px);
  max-width: min(92vw, 420px);
  padding: 11px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 99px;
  background: var(--paper);
  color: #0b0d12;
  font-size: 11.5px;
  font-weight: 700;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s, transform 0.22s var(--ease);
  box-shadow: var(--shadow-3);
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 720px) {
  .toast {
    bottom: calc(78px + env(safe-area-inset-bottom));
  }
}

.age-gate {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(4, 5, 8, 0.9);
  backdrop-filter: blur(24px);
}

.age-gate.is-open {
  display: grid;
}

.age-panel {
  width: min(460px, 100%);
  padding: 34px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--ink-1);
  box-shadow: var(--shadow-3);
  display: grid;
  gap: 18px;
  text-align: center;
  justify-items: center;
}

.age-panel .brand__mark {
  width: 38px;
  height: 44px;
}

.age-panel h2 {
  font-size: 30px;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.age-panel p {
  color: var(--text-dim);
  font-size: 12px;
  line-height: 1.7;
}

.age-panel__actions {
  display: flex;
  gap: 8px;
  width: 100%;
  flex-wrap: wrap;
  justify-content: center;
}

.age-panel__note {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.age-panel__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 14px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.age-panel__links a {
  color: var(--text-dim);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.age-panel__links a:hover {
  color: var(--text);
}

.age-panel__rta {
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  opacity: 0.7;
}

.age-panel:focus {
  outline: none;
}

.age-gate.is-open {
  animation: bpb-gate-in 0.22s ease both;
}

@keyframes bpb-gate-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

body.bpb-gate-open {
  overflow: hidden;
}

@media (max-width: 640px) {
  .age-panel {
    padding: 28px 20px;
    gap: 14px;
  }

  .age-panel h2 {
    font-size: 25px;
  }

  .age-panel__actions .btn {
    flex: 1 1 auto;
  }
}

/* 14. Responsive / themes / motion ---------------------------------------- */
@media (max-width: 720px) {
  .header-actions {
    gap: 2px;
  }

  .icon-btn,
  .search-trigger {
    width: 44px;
    height: 44px;
  }

  .brand {
    min-width: 0;
  }

  .brand__text {
    min-width: 0;
  }

  .brand__name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (max-width: 380px) {
  .brand__tag {
    display: none;
  }
}

@media (max-width: 1280px) {
  :root {
    --header-h: 70px;
  }

  .main-nav {
    gap: 16px;
  }

  .vgrid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .related-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1080px) {
  .main-nav {
    display: none;
  }

  .menu-trigger {
    display: inline-grid;
  }

  .header-actions .lang-switch {
    display: none;
  }

  .header-actions {
    margin-left: auto;
  }

  .search-trigger span,
  .search-trigger kbd {
    display: none;
  }

  .search-trigger {
    width: 38px;
    padding: 0;
    justify-content: center;
    border-color: transparent;
    background: transparent;
  }

  .search-trigger:hover {
    background: var(--ink-3);
    border-color: var(--line);
  }

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

  .watch-side {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .watch-side .ad-slot--sidebar {
    min-height: 180px;
  }

  .footer-top {
    grid-template-columns: 1.4fr 1fr 1fr;
  }

  .footer-col:last-child {
    display: none;
  }
}

@media (max-width: 900px) {
  .vgrid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .split {
    grid-template-columns: 1fr;
  }

  .genres-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile__inner {
    grid-template-columns: 150px minmax(0, 1fr);
  }

  .related-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .briefing__inner {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .find-help {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .find-form {
    flex-wrap: wrap;
  }

  .find-form .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 720px) {
  :root {
    --gutter: 16px;
    --header-h: 62px;
    --radius-lg: 18px;
  }

  body {
    font-size: 14px;
    padding-bottom: calc(62px + env(safe-area-inset-bottom));
  }

  .brand__mark {
    width: 25px;
    height: 28px;
  }

  .brand__name {
    font-size: 16px;
  }

  .brand__tag {
    display: none;
  }

  .header-actions .icon-btn--desktop {
    display: none;
  }

  .section {
    padding-block: 46px;
  }

  .section-head {
    align-items: flex-start;
    margin-bottom: 22px;
  }

  .section-title {
    font-size: 28px;
  }

  .section-link {
    font-size: 10.5px;
    margin-top: 5px;
  }

  .vgrid,
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 12px;
  }

  .vcard__media {
    border-radius: 9px;
  }

  .vcard__title {
    font-size: 12.5px;
  }

  .vcard__meta {
    font-size: 9.5px;
  }

  .vcard__play {
    display: none;
  }

  .vcard__save {
    opacity: 1;
    transform: none;
    width: 27px;
    height: 27px;
  }

  .vcard__duration {
    font-size: 8px;
  }

  .people-strip {
    grid-auto-columns: 108px;
  }

  .genres-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .genre-card {
    min-height: 140px;
    padding: 15px;
  }

  .genre-card h3 {
    font-size: 19px;
  }

  .genre-card__kanji {
    font-size: 5em;
  }

  .rank-item {
    grid-template-columns: 24px 72px minmax(0, 1fr);
    gap: 11px;
  }

  .rank-item__arrow {
    display: none;
  }

  .ticker-track {
    gap: 34px;
  }

  .ticker-item {
    font-size: 14px;
  }

  .tag-pill {
    min-height: 34px;
    padding: 0 12px;
    font-size: 10.5px;
  }

  .page-head {
    padding-block: 30px 20px;
  }

  .page-head__inner {
    display: grid;
    gap: 16px;
  }

  .page-head__side {
    justify-items: start;
    padding: 0;
  }

  .page-title {
    font-size: clamp(26px, 7.5vw, 36px);
  }

  .page-desc {
    font-size: 12.5px;
  }

  .toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding-block: 14px;
  }

  .toolbar__group {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
    padding-bottom: 2px;
  }

  .toolbar__group::-webkit-scrollbar {
    display: none;
  }

  .result-count {
    order: -1;
  }

  .watch-wrap {
    padding-top: 12px;
  }

  .breadcrumbs {
    padding-bottom: 12px;
    font-size: 9.5px;
  }

  .player {
    border-radius: 12px;
    margin-inline: calc(var(--gutter) * -1);
    border-inline: 0;
  }

  .watch-head {
    padding-block: 17px 15px;
  }

  .watch-title {
    font-size: clamp(20px, 5.8vw, 26px);
    line-height: 1.16;
    letter-spacing: -0.02em;
  }

  .watch-actions {
    gap: 6px;
  }

  .action-btn {
    height: 34px;
    padding: 0 11px;
    font-size: 10px;
  }

  .action-btn span {
    display: none;
  }

  .action-btn .icon {
    width: 16px;
    height: 16px;
  }

  .watch-side {
    grid-template-columns: 1fr;
  }

  .watch-side .ad-slot--sidebar {
    min-height: 150px;
  }

  .related .section-title {
    font-size: 21px;
  }

  .profile__inner {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 18px;
    padding-block: 26px 30px;
  }

  .profile__avatar {
    width: 132px;
    aspect-ratio: 1;
    border-radius: 50%;
  }

  .profile__avatar .avatar-fallback {
    font-size: 38px;
  }

  .profile__name {
    font-size: clamp(38px, 11vw, 56px);
  }

  .profile__stats {
    gap: 18px;
  }

  .search-page {
    padding-block: 34px 60px;
  }

  .search-big {
    padding-left: 14px;
  }

  .search-big input {
    font-size: 13px;
  }

  .search-big button {
    height: 38px;
    padding: 0 14px;
    font-size: 10.5px;
  }

  .search-form {
    gap: 9px;
  }

  .search-form .icon {
    width: 20px;
    height: 20px;
  }

  .search-form button[type='submit'] {
    height: 38px;
    padding: 0 14px;
    font-size: 10.5px;
  }

  .pagination {
    gap: 4px;
    padding-top: 30px;
  }

  .pagination .page-numbers {
    min-width: 34px;
    height: 34px;
    font-size: 9px;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 30px 20px;
    padding-block: 40px 30px;
  }

  .footer-brand {
    grid-column: 1 / -1;
    max-width: none;
  }

  .footer-col:last-child {
    display: grid;
    grid-column: 1 / -1;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding-bottom: calc(22px + env(safe-area-inset-bottom));
  }

  .footer-watermark {
    font-size: 42vw;
    opacity: 0.35;
  }

  .bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 80;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: var(--header-bg);
    border-top: 1px solid var(--line);
    backdrop-filter: blur(18px);
    padding-bottom: env(safe-area-inset-bottom);
  }

  .bottom-nav a {
    display: grid;
    justify-items: center;
    gap: 3px;
    padding: 9px 4px 7px;
    color: var(--text-faint);
    font-size: 8px;
    font-weight: 600;
    letter-spacing: 0.03em;
  }

  .bottom-nav a.is-active {
    color: var(--accent);
  }

  .bottom-nav .icon {
    width: 19px;
    height: 19px;
  }

  .search-modal {
    padding-top: 22px;
  }

  .search-panel__head {
    margin-bottom: 22px;
  }

  .search-suggest {
    margin-top: 26px;
  }

  .age-panel {
    padding: 28px 22px;
  }

  .ad-slot--inline {
    min-height: 96px;
  }
}

@media (max-width: 400px) {

  .vgrid {
    gap: 18px 10px;
  }

  .vcard__title {
    font-size: 11.5px;
  }

  .vcard__meta {
    font-size: 9px;
  }

  .vcard__code {
    display: none;
  }

  .genres-grid {
    grid-template-columns: 1fr;
  }

  .genre-card {
    min-height: 124px;
  }
}

[data-theme='light'] .btn--primary {
  background: var(--text);
  color: var(--ink-0);
}

[data-theme='light'] .btn--primary:hover {
  background: #000;
}

[data-theme='light'] .search-form button[type='submit'],
[data-theme='light'] .search-big button,
[data-theme='light'] .find-form button,
[data-theme='light'] .search-compact button,
[data-theme='light'] .comment-form .submit {
  background: var(--text);
  color: var(--ink-0);
}

[data-theme='light'] .btn--ghost:hover {
  background: rgba(23, 20, 16, 0.05);
}

[data-theme='light'] .spotlight__body,
[data-theme='light'] .editorial__body,
[data-theme='light'] .genre-card h3,
[data-theme='light'] .genre-card__count {
  color: #f3f0ea;
}

[data-theme='light'] .vcard__save {
  background: rgba(7, 8, 11, 0.6);
}

[data-theme='light'] .poster,
[data-theme='light'] .genre-card {
  color: #f3f0ea;
}

[data-theme='light'] .footer-watermark {
  -webkit-text-stroke-color: rgba(23, 20, 16, 0.1);
}

[data-theme='light'] .age-gate {
  background: rgba(244, 240, 232, 0.9);
}

[data-theme='light'] .search-modal {
  background: rgba(244, 240, 232, 0.84);
}

[data-theme='light'] .drawer__scrim {
  background: rgba(23, 20, 16, 0.35);
}

[data-theme='light'] .drawer__panel {
  box-shadow: -30px 0 80px rgba(23, 20, 16, 0.18);
}

[data-theme='light'] .site-header.is-scrolled {
  box-shadow: 0 18px 40px rgba(62, 48, 30, 0.08);
}

/* Motion */
@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slide-in {
  from {
    transform: translateX(30px);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .ticker-track {
    animation: none;
  }
}

/* 15. Editorial content, hubs, saved page --------------------------------- */
.article-single,
.page-single {
  padding-block: clamp(26px, 3.5vw, 44px) clamp(64px, 8vw, 110px);
}

.article-single > .breadcrumbs,
.page-single > .breadcrumbs {
  margin-bottom: clamp(22px, 3vw, 34px);
}

.article-head,
.page-single__head {
  display: grid;
  gap: 13px;
  padding-bottom: clamp(22px, 3vw, 34px);
  border-bottom: 1px solid var(--line);
}

.page-single__head {
  border-bottom: 0;
  padding-bottom: 4px;
}

.article-title {
  font-size: clamp(35px, 5.2vw, 62px);
  line-height: 0.98;
  letter-spacing: -0.055em;
  font-weight: 800;
  text-wrap: balance;
}

.article-dek {
  max-width: 66ch;
  color: var(--text-dim);
  font-size: clamp(14px, 1.4vw, 17px);
  line-height: 1.65;
}

.article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article-media {
  margin: clamp(24px, 3vw, 36px) 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink-2);
}

.article-media img {
  width: 100%;
  height: auto;
}

.article-tags {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.entry-content {
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.82;
  overflow-wrap: break-word;
}

.entry-content > * + * {
  margin-top: 18px;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
  color: var(--text);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-top: 32px;
}

.entry-content h1 { font-size: clamp(28px, 3.4vw, 40px); }
.entry-content h2 { font-size: clamp(23px, 2.8vw, 32px); }
.entry-content h3 { font-size: clamp(19px, 2.2vw, 24px); }
.entry-content h4 { font-size: 17px; }
.entry-content h5,
.entry-content h6 { font-size: 14px; text-transform: uppercase; letter-spacing: 0.08em; }

.entry-content p,
.entry-content li {
  color: var(--text-dim);
}

.entry-content a {
  color: var(--text);
  border-bottom: 1px solid rgba(255, 77, 90, 0.4);
  transition: color 0.2s, border-color 0.2s;
}

.entry-content a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.entry-content strong,
.entry-content b {
  color: var(--text);
  font-weight: 700;
}

.entry-content ul,
.entry-content ol {
  padding-left: 1.35em;
  display: grid;
  gap: 7px;
}

.entry-content li::marker {
  color: var(--accent);
}

.entry-content blockquote {
  margin: 26px 0;
  padding: 4px 0 4px 22px;
  border-left: 2px solid var(--accent);
  color: var(--text);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.55;
  letter-spacing: -0.015em;
}

.entry-content blockquote p {
  color: inherit;
}

.entry-content hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin-block: 34px;
}

.entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
}

.entry-content figure {
  max-width: 100%;
}

.entry-content figcaption,
.entry-content .wp-caption-text,
.entry-content .wp-element-caption {
  margin-top: 8px;
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1.55;
  letter-spacing: 0.04em;
}

.entry-content code {
  padding: 2px 5px;
  border-radius: 4px;
  background: var(--ink-3);
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 0.86em;
}

.entry-content pre {
  max-width: 100%;
  overflow-x: auto;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.7;
}

.entry-content pre code {
  padding: 0;
  background: none;
  color: var(--text);
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.entry-content th,
.entry-content td {
  padding: 10px 12px;
  border: 1px solid var(--line);
  text-align: left;
}

.entry-content th {
  color: var(--text);
  background: var(--ink-2);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.entry-content iframe,
.entry-content video {
  max-width: 100%;
  border-radius: var(--radius-sm);
}

.entry-content .wp-block-button__link {
  border: 0;
  border-bottom: 0;
  border-radius: 99px;
  background: var(--paper);
  color: #0b0d12;
  font-weight: 800;
}

.entry-content .alignleft {
  float: left;
  margin: 6px 24px 16px 0;
}

.entry-content .alignright {
  float: right;
  margin: 6px 0 16px 24px;
}

.entry-content .aligncenter {
  margin-inline: auto;
}

.page-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 30px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-faint);
}

.page-links a,
.page-links > span:not(:first-child) {
  display: inline-grid;
  place-items: center;
  min-width: 30px;
  height: 30px;
  padding-inline: 8px;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--text-dim);
}

.page-links a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Hubs -------------------------------------------------------------------- */
.hub-wrap {
  padding-top: clamp(24px, 3.5vw, 44px);
  padding-bottom: clamp(60px, 8vw, 110px);
}

.hub-filter {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 50px;
  padding: 0 8px 0 16px;
  margin-bottom: clamp(24px, 3vw, 38px);
  border: 1px solid var(--line-strong);
  border-radius: 99px;
  background: var(--ink-2);
  transition: border-color 0.2s;
}

.hub-filter:focus-within {
  border-color: var(--accent);
}

.hub-filter > .icon {
  flex: none;
  width: 17px;
  height: 17px;
  color: var(--text-faint);
}

.hub-filter input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: none;
  color: var(--text);
  font-size: 13px;
}

.hub-filter__count {
  flex: none;
  padding: 0 12px;
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.hub-filter__count strong {
  color: var(--text);
  font-size: 11px;
  font-weight: 500;
}

.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: clamp(22px, 3vw, 34px) clamp(12px, 1.6vw, 22px);
}

.people-grid .person__avatar {
  max-width: 150px;
}

.hub-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

.hub-tile {
  position: relative;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 14px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background:
    radial-gradient(360px 180px at 100% 0%, color-mix(in srgb, var(--poster-c) 12%, transparent), transparent 65%),
    linear-gradient(145deg, var(--ink-2), var(--ink-1));
  overflow: hidden;
  transition: transform 0.25s var(--ease), border-color 0.25s, background 0.25s;
}

.hub-tile::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, color-mix(in srgb, var(--poster-c) 8%, transparent), transparent 45%);
  opacity: 0;
  transition: opacity 0.25s;
  pointer-events: none;
}

.hub-tile:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--poster-c) 32%, var(--line));
}

.hub-tile:hover::after {
  opacity: 1;
}

.hub-tile__mark {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    radial-gradient(90% 90% at 75% 10%, color-mix(in srgb, var(--poster-c) 45%, transparent), transparent 60%),
    linear-gradient(145deg, var(--poster-a), var(--poster-b));
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hub-tile__body {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 4px;
  min-width: 0;
}

.hub-tile__body h3 {
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hub-tile__body > span {
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hub-tile__arrow {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  color: var(--text-faint);
  transition: color 0.2s, transform 0.2s;
}

.hub-tile__arrow .icon {
  width: 16px;
  height: 16px;
}

.hub-tile:hover .hub-tile__arrow {
  color: var(--accent);
  transform: translate(1px, -1px);
}

.hub-wrap .genres-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.hub-empty {
  margin-top: 30px;
  padding: 22px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--text-faint);
  font-size: 12px;
}

.hub-range {
  margin-top: 28px;
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.hub-range + .pagination {
  margin-top: 14px;
}

/* Saved page -------------------------------------------------------------- */
.saved-page {
  padding-bottom: clamp(64px, 8vw, 110px);
}

.saved-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  margin-bottom: clamp(22px, 3vw, 32px);
  border-bottom: 1px solid var(--line);
}

.saved-toolbar__note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.saved-toolbar__note .icon {
  width: 14px;
  height: 14px;
  color: var(--gold);
}

.saved-empty {
  padding-top: 26px;
}

.saved-note {
  max-width: 68ch;
  margin-top: clamp(34px, 5vw, 54px);
  color: var(--text-faint);
  font-size: 11px;
  line-height: 1.65;
}

.empty-state .tag-cloud {
  margin-top: 8px;
}

/* Article comments / small forms ------------------------------------------ */
.article-single .comments-area,
.page-single .comments-area {
  margin-top: clamp(40px, 6vw, 70px);
  padding-top: clamp(24px, 3vw, 34px);
  border-top: 1px solid var(--line);
}

.comments-inner {
  display: grid;
  gap: 18px;
}

.comment-list {
  list-style: none;
  padding: 0;
}

.comment-body .comment-content > * + * {
  margin-top: 9px;
}

.comment-metadata a,
.comment-author a {
  color: var(--text-dim);
}

.comment-metadata a:hover,
.comment-author a:hover {
  color: var(--accent);
}

.reply a {
  display: inline-flex;
  margin-top: 6px;
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.reply a:hover {
  color: var(--accent);
}

.comment-notes,
.logged-in-as,
.no-comments {
  color: var(--text-faint);
  font-size: 11px;
}

.comment-form p {
  display: grid;
  gap: 5px;
  margin: 0;
}

.comment-form .comment-form-cookies-consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.comment-form .comment-form-cookies-consent input {
  width: auto;
  margin-top: 2px;
}

.comment-form .comment-form-cookies-consent label {
  display: inline;
  text-transform: none;
  font-family: var(--font-sans);
  letter-spacing: 0;
  font-size: 11px;
  line-height: 1.5;
}

.comment-form .form-submit {
  display: block;
}

.search-compact {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 6px 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 99px;
  background: var(--ink-2);
}

.search-compact:focus-within {
  border-color: var(--accent);
}

.search-compact > .icon {
  flex: none;
  width: 15px;
  height: 15px;
  color: var(--text-faint);
}

.search-compact input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: none;
  color: var(--text);
  font-size: 12px;
}

.search-compact button {
  flex: none;
  height: 34px;
  padding: 0 14px;
  border-radius: 99px;
  background: var(--paper);
  color: #0b0d12;
  font-size: 10px;
  font-weight: 800;
}

.error-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.error-actions .icon {
  width: 14px;
  height: 14px;
}

@media (max-width: 1024px) {
  .hub-wrap .genres-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .article-single,
  .page-single {
    padding-top: 22px;
  }

  .article-title {
    font-size: clamp(32px, 9vw, 46px);
  }

  .entry-content {
    font-size: 14px;
  }

  .entry-content .alignleft,
  .entry-content .alignright {
    float: none;
    margin: 18px auto;
    display: block;
  }

  .hub-filter {
    height: 46px;
    padding-left: 13px;
  }

  .hub-filter__count {
    display: none;
  }

  .hub-filter input {
    font-size: 12px;
  }

  .people-grid {
    grid-template-columns: repeat(auto-fill, minmax(106px, 1fr));
    gap: 22px 10px;
  }

  .hub-tiles {
    grid-template-columns: 1fr;
  }

  .hub-wrap .genres-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .saved-toolbar {
    align-items: flex-start;
  }

  .saved-toolbar__note {
    font-size: 8px;
  }

  .hub-range {
    text-align: left;
  }
}

@media (max-width: 420px) {
  .hub-wrap .genres-grid {
    grid-template-columns: 1fr;
  }

  .people-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* WordPress alignment helpers */
.alignwide {
  width: min(1120px, calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

.alignfull {
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

.wp-caption {
  max-width: 100%;
}

.wp-caption-text {
  font-size: 10px;
  color: var(--text-faint);
  margin-top: 6px;
}

.sticky {
  position: relative;
}

.bypostauthor {
  outline: 0;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Fixes */
[hidden] { display: none !important; }
.person__inner { display: block; }
.pagination .prev, .pagination .next { display: inline-flex; align-items: center; gap: 5px; }
.pagination .prev .icon, .pagination .next .icon { width: 13px; height: 13px; }
.watch-sub .icon { display: inline-block; width: 13px; height: 13px; vertical-align: -2px; margin-right: 3px; }

@media (max-width: 720px) {
  .people-strip { -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
  .search-form input { font-size: 22px; }
}

/* WordPress menu output */
.main-nav__list { display: flex; align-items: center; gap: clamp(14px, 2vw, 28px); }
.main-nav__list li { display: block; }
.main-nav__list .nav-link { display: inline-block; }
.drawer__nav-list { display: grid; }
.drawer__nav-list li { display: block; }
.drawer__nav-list a { padding: 14px 2px; }
.footer-links li { display: block; }
.custom-logo-link { display: inline-flex; align-items: center; }
.custom-logo { width: auto; max-height: 42px; }
.bottom-nav button { display: grid; justify-items: center; gap: 3px; padding: 9px 4px 7px; color: var(--text-faint); font-size: 8px; font-weight: 600; letter-spacing: 0.03em; }
.bottom-nav button.is-active { color: var(--accent); }
.bottom-nav button .icon { width: 19px; height: 19px; }

/* Mobile UX fixes ---------------------------------------------------------- */
@media (max-width: 720px) {
  /* Search overlay: two-row layout, above the bottom nav, scrollable. */
  .search-modal {
    z-index: 300;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 18px var(--gutter) calc(28px + env(safe-area-inset-bottom));
    background: rgba(4, 5, 8, 0.96);
  }

  .search-panel {
    width: 100%;
  }

  .search-panel__head {
    margin-bottom: 16px;
  }

  .search-suggest {
    margin-top: 22px;
  }

  .search-hint {
    display: none;
  }

  .search-form {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    grid-template-areas:
      "icon input"
      "submit submit";
    align-items: center;
    gap: 0 10px;
    border-bottom: 0;
    padding-bottom: 0;
  }

  .search-form > .icon {
    grid-area: icon;
    width: 20px;
    height: 20px;
  }

  .search-form input {
    grid-area: input;
    width: 100%;
    min-width: 0;
    padding: 10px 0;
    border-bottom: 1px solid var(--line-strong);
    font-size: clamp(16px, 5vw, 20px);
    letter-spacing: -0.02em;
  }

  .search-form button[type='submit'] {
    grid-area: submit;
    width: 100%;
    height: 46px;
    margin-top: 14px;
    border-radius: 999px;
    font-size: 12px;
  }

  /* Bottom navigation: readable labels and safe-area padding. */
  .bottom-nav {
    padding-bottom: max(4px, env(safe-area-inset-bottom));
  }

  .bottom-nav a,
  .bottom-nav button {
    padding: 8px 4px;
    font-size: 9.5px;
    letter-spacing: 0.02em;
  }

  .bottom-nav .icon {
    width: 21px;
    height: 21px;
  }
}

/* Header fit on small phones ----------------------------------------------- */
@media (max-width: 400px) {
  .brand {
    flex: 1 1 auto;
    min-width: 0;
    gap: 8px;
  }

  .brand__mark {
    width: 26px;
    height: 30px;
  }

  .brand__text {
    min-width: 0;
  }

  .brand__name {
    font-size: 16px;
    letter-spacing: 0.06em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .header-actions {
    flex: none;
  }
}

@media (max-width: 400px) {
  .home-search__form {
    gap: 8px;
    padding-left: 14px;
  }

  .home-search__input {
    font-size: 13px;
  }

  .home-search__btn {
    padding: 8px 12px;
    font-size: 11px;
  }
}

@media (max-width: 340px) {
  .brand__name {
    font-size: 14px;
    letter-spacing: 0.02em;
  }

  .header-actions {
    gap: 0;
  }

  .icon-btn,
  .search-trigger {
    width: 38px;
    height: 38px;
  }
}

/* Catalogue mega navigation ------------------------------------------------- */
.nav-item {
  position: static;
}

.nav-trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 10px 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.nav-trigger .icon {
  width: 12px;
  height: 12px;
  opacity: 0.55;
  transition: transform 0.2s var(--ease), opacity 0.2s;
}

.nav-item.is-open .nav-trigger .icon,
.nav-item.is-active .nav-trigger .icon {
  opacity: 1;
}

.nav-item.is-open .nav-trigger .icon {
  transform: rotate(180deg);
}

.nav-panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 95;
  display: none;
  background: var(--ink-1);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
}

.nav-item.is-open .nav-panel {
  display: block;
  animation: nav-in 0.18s var(--ease) both;
}

@keyframes nav-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.nav-panel__inner {
  width: min(var(--shell), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(22px, 3vw, 44px);
  padding-block: 24px 28px;
}

.nav-panel__col {
  min-width: 0;
}

.nav-panel__title {
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.nav-panel__list {
  display: grid;
  gap: 2px;
}

.nav-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 8px;
  color: var(--text-dim);
  font-size: 13px;
  transition: background 0.15s, color 0.15s;
}

.nav-row:hover,
.nav-row:focus-visible {
  background: var(--ink-2);
  color: var(--text);
}

.nav-row__avatar {
  width: 28px;
  height: 28px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--ink-2);
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.04em;
}

.nav-row__name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}

.nav-row__count {
  flex: none;
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 9px;
}

.nav-panel__all {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 12px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.nav-panel__all:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.nav-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.nav-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-dim);
  font-size: 10.5px;
  line-height: 1.2;
  transition: border-color 0.15s, color 0.15s;
}

.nav-chip:hover {
  border-color: var(--accent);
  color: var(--text);
}

.nav-chip span {
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 8px;
}

.nav-genre-list {
  display: grid;
  gap: 2px;
}

.nav-genre {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px;
  border-radius: 8px;
  color: var(--text-dim);
  font-size: 13px;
  transition: background 0.15s, color 0.15s;
}

.nav-genre:hover,
.nav-genre:focus-visible {
  background: var(--ink-2);
  color: var(--text);
}

.nav-genre__name {
  font-weight: 600;
}

.nav-genre__count {
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 9px;
  white-space: nowrap;
}

/* Mobile drawer sub-panes --------------------------------------------------- */
.drawer__group {
  border-bottom: 1px solid var(--line);
}

.drawer__group summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 2px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  list-style: none;
  cursor: pointer;
}

.drawer__group summary::-webkit-details-marker {
  display: none;
}

.drawer__group summary .icon {
  width: 14px;
  height: 14px;
  color: var(--text-faint);
  transition: transform 0.2s var(--ease), color 0.2s;
}

.drawer__group[open] summary .icon {
  transform: rotate(180deg);
  color: var(--accent);
}

.drawer__sub {
  display: grid;
  gap: 1px;
  padding: 0 0 12px 10px;
}

.drawer__sub a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 2px;
  border: 0;
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
}

.drawer__sub a span {
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 9px;
}

.drawer__sub a.drawer__sub-all {
  margin-top: 6px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}

/* Header-only collapse before the desktop nav gets tight */
@media (max-width: 1240px) {
  .main-nav {
    display: none;
  }

  .menu-trigger {
    display: inline-grid;
  }

  .header-actions {
    margin-left: auto;
  }

  .header-actions .lang-switch {
    display: none;
  }

  .search-trigger {
    width: 38px;
    padding: 0;
    justify-content: center;
    border-color: transparent;
    background: transparent;
  }

  .search-trigger span,
  .search-trigger kbd {
    display: none;
  }
}

/* Video page facts on very small screens */
@media (max-width: 400px) {
  .watch-facts {
    grid-template-columns: 1fr;
  }

  .watch-about .entry-content,
  .watch-notes p {
    font-size: 14px;
    line-height: 1.65;
  }

  .watch-answer {
    padding: 12px 13px;
    font-size: 13.5px;
  }

  .watch-notes h2 {
    font-size: 17px;
  }
}
