/* =========================================================
   SEXY PHUYING — dark editorial streaming UI
   Thai-first, mobile-first, static, zero runtime dependencies.
   ========================================================= */

:root {
  --bg: #0b0909;
  --bg-2: #100d0c;
  --surface: #171312;
  --surface-2: #211a18;
  --cream: #f7efe7;
  --cream-soft: #d9cec4;
  --muted: #a99a90;
  --muted-2: #9a8b81;
  --line: rgba(247, 239, 231, 0.12);
  --line-strong: rgba(247, 239, 231, 0.2);
  --red: #e23b4e;
  --red-action: #c92a3d;
  --red-bright: #ff5668;
  --red-deep: #6f1622;
  --gold: #d3a15f;
  --violet: #9b6cff;
  --jade: #46c2a8;
  --radius: 12px;
  --radius-lg: 20px;
  --max: 1320px;
  --gutter: clamp(18px, 4vw, 56px);
  --section: clamp(56px, 8vw, 96px);
  --display: "Kanit", "Noto Sans Thai", system-ui, sans-serif;
  --body: "Noto Sans Thai", "Noto Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.2, 0.65, 0.25, 1);
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--cream);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.menu-open,
body.search-open,
body.age-locked {
  overflow: hidden;
}

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

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

button,
input {
  font: inherit;
}

button {
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}

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

:focus-visible {
  outline: 2px solid var(--red-bright);
  outline-offset: 3px;
}

.sr-only {
  position: absolute !important;
  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: 200;
  padding: 12px 18px;
  border-radius: 8px;
  background: var(--cream);
  color: var(--bg);
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease);
}

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

main:focus {
  outline: none;
}

#main,
#latest {
  scroll-margin-top: 84px;
}

.container {
  width: min(100% - calc(var(--gutter) * 2), var(--max));
  margin-inline: auto;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--gold);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
  opacity: 0.65;
}


.eyebrow--spaced {
  margin-top: 24px;
}

.page__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 24px;
}

.page-hero--thai { --cat: #e23b4e; --cat-soft: rgba(226, 59, 78, 0.16); }
.page-hero--jav { --cat: #ff4f8b; --cat-soft: rgba(255, 79, 139, 0.16); }
.page-hero--western { --cat: #d3a15f; --cat-soft: rgba(211, 161, 95, 0.16); }
.page-hero--korean { --cat: #ff7a59; --cat-soft: rgba(255, 122, 89, 0.16); }
.page-hero--chinese { --cat: #46c2a8; --cat-soft: rgba(70, 194, 168, 0.15); }
.page-hero--anime { --cat: #9b6cff; --cat-soft: rgba(155, 108, 255, 0.17); }
.page-hero--lesbian { --cat: #ff6f9f; --cat-soft: rgba(255, 111, 159, 0.16); }
.page-hero--lgbtq { --cat: #b06cff; --cat-soft: rgba(176, 108, 255, 0.17); }

.mega__random {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 8px 9px;
  border-radius: 7px;
  color: var(--cream-soft);
  font-size: 0.82rem;
  text-align: left;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.mega__random:hover {
  background: rgba(247, 239, 231, 0.06);
  color: var(--cream);
}

.accent {
  color: var(--red-bright);
}

.section {
  padding: var(--section) 0;
}

.section--tight {
  padding: clamp(34px, 5vw, 56px) 0;
}

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

.section-head__title {
  margin: 8px 0 0;
  font-family: var(--display);
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.section-head__title em {
  color: var(--red-bright);
  font-style: normal;
}

.section-head__link {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 3px 0;
  border-bottom: 1px solid var(--line-strong);
  color: var(--cream-soft);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.section-head__link:hover {
  color: var(--red-bright);
  border-color: var(--red-bright);
}

.section-head__link svg {
  width: 13px;
  height: 13px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--red-action);
  color: #fff;
  font-family: var(--display);
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease), border-color 0.25s var(--ease);
}

.btn:hover {
  background: var(--red-bright);
  transform: translateY(-1px);
}

.btn--ghost {
  background: rgba(247, 239, 231, 0.04);
  border-color: var(--line-strong);
  color: var(--cream);
}

.btn--ghost:hover {
  background: rgba(247, 239, 231, 0.1);
  border-color: var(--cream-soft);
}

.btn--small {
  min-height: 38px;
  padding: 0 16px;
  font-size: 0.74rem;
}

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

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(11, 9, 9, 0.62);
  color: var(--cream);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.badge--red {
  border-color: rgba(201, 42, 61, 0.42);
  background: var(--red-action);
  color: #fff;
}

.badge--gold {
  border-color: rgba(211, 161, 95, 0.4);
  background: rgba(211, 161, 95, 0.16);
  color: #f0d2a4;
}

.badge--muted {
  color: var(--cream-soft);
}

/* ---------- age gate ---------- */

.age-gate {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 70% 20%, rgba(226, 59, 78, 0.16), transparent 42%),
    rgba(5, 4, 4, 0.92);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.age-gate[hidden] {
  display: none;
}

.age-gate__card {
  width: min(100%, 470px);
  max-height: calc(100svh - 24px);
  overflow-y: auto;
  padding: clamp(28px, 5vw, 44px);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, rgba(33, 26, 24, 0.98), rgba(11, 9, 9, 0.99));
  box-shadow: 0 30px 100px -20px rgba(0, 0, 0, 0.8);
  text-align: center;
}

.age-gate p.age-gate__logo {
  max-width: none;
  margin: 0;
  color: var(--cream);
  font-family: var(--display);
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1;
}

.age-gate__logo span {
  color: var(--red);
}

.age-gate__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  margin-bottom: 18px;
  border: 1px solid rgba(226, 59, 78, 0.45);
  border-radius: 50%;
  color: var(--red-bright);
  font-family: var(--display);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.age-gate p.age-gate__title {
  max-width: none;
  margin: 18px 0 8px;
  color: var(--cream);
  font-family: var(--display);
  font-size: clamp(1.3rem, 4vw, 1.7rem);
  font-weight: 600;
  line-height: 1.3;
}

.age-gate p {
  margin: 0 auto;
  max-width: 32ch;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.8;
}

.age-gate__actions {
  display: grid;
  gap: 9px;
  margin-top: 24px;
}

.age-gate__actions .btn {
  width: 100%;
}

.age-gate__exit {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin-top: 16px;
  color: var(--muted-2);
  font-size: 0.72rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.age-gate__exit:hover {
  color: var(--cream-soft);
}

.age-gate__note {
  margin-top: 20px;
  color: var(--muted-2);
  font-size: 0.65rem;
  line-height: 1.6;
}


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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  border-bottom: 1px solid transparent;
  background: linear-gradient(180deg, rgba(11, 9, 9, 0.94), rgba(11, 9, 9, 0.64));
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(11, 9, 9, 0.92);
  border-color: var(--line);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 68px;
}

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

.brand__mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--red-action);
  color: #fff;
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand__word {
  font-family: var(--display);
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  line-height: 1;
  text-transform: uppercase;
}

.brand__word em {
  color: var(--red-bright);
  font-style: normal;
}

.brand__sub {
  display: block;
  margin-top: 3px;
  color: var(--muted-2);
  font-size: 0.5rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  line-height: 1;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 30px);
  margin-left: auto;
}

.site-nav > a,
.nav-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 32px;
  padding: 7px 0;
  color: var(--cream-soft);
  font-size: 0.76rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.2s var(--ease);
}

.site-nav > a:hover,
.nav-trigger:hover,
.site-nav > a[aria-current="page"] {
  color: var(--cream);
}

.site-nav > a[aria-current="page"] {
  color: var(--red-bright);
}

.nav-trigger svg {
  width: 12px;
  height: 12px;
  transition: transform 0.25s var(--ease);
}

.nav-trigger[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

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

.icon-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--cream-soft);
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.icon-btn:hover {
  background: rgba(247, 239, 231, 0.08);
  border-color: var(--line-strong);
  color: var(--cream);
}

.icon-btn svg {
  width: 17px;
  height: 17px;
}

.header-age {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid rgba(226, 59, 78, 0.4);
  border-radius: 999px;
  color: #ffb3bc;
  font-family: var(--display);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.header-age::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--red-bright);
  box-shadow: 0 0 8px var(--red);
}

.menu-toggle,
.mobile-only {
  display: none;
}

/* mega menu */
.mega {
  position: absolute;
  top: calc(100% + 1px);
  left: 50%;
  width: min(780px, calc(100vw - 32px));
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  background: #0f0c0b;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.8);
  transform: translate(-50%, -8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0s linear 0.2s;
}

.mega.is-open {
  transform: translate(-50%, 0);
  opacity: 1;
  visibility: visible;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0s linear 0s;
}

.mega__grid {
  display: grid;
  grid-template-columns: 1.2fr 1.2fr 0.8fr;
  gap: 24px;
}

.mega h2 {
  margin: 0 0 10px;
  color: var(--muted-2);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.mega__links {
  display: grid;
  gap: 2px;
}

.mega__links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 9px;
  border-radius: 7px;
  color: var(--cream-soft);
  font-size: 0.82rem;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.mega__links a:hover {
  background: rgba(247, 239, 231, 0.06);
  color: var(--cream);
}

.mega__links span {
  color: var(--muted-2);
  font-size: 0.62rem;
}

/* mobile drawer */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  padding: 22px var(--gutter) 28px;
  background: #0d0a0a;
  visibility: hidden;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease), visibility 0s linear 0.4s;
}

.drawer.is-open {
  visibility: visible;
  transform: none;
  transition: transform 0.4s var(--ease), visibility 0s linear 0s;
}

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

.drawer__links {
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow-y: auto;
  margin: 20px 0 auto;
}

.drawer__links a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--display);
  font-size: clamp(1.45rem, 7vw, 2.2rem);
  font-weight: 500;
  line-height: 1.25;
}

.drawer__links a span {
  color: var(--muted-2);
  font-family: var(--body);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
}

.drawer__foot {
  padding-top: 18px;
  color: var(--muted-2);
  font-size: 0.7rem;
}

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

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 600px;
  padding: 128px 0 48px;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 16%, rgba(226, 59, 78, 0.16), transparent 42%),
    linear-gradient(180deg, #0d0a0a 0%, var(--bg) 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(0deg, var(--bg) 0%, transparent 38%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 2;
}

.hero.hero--search {
  min-height: 0;
  padding: 88px 0 18px;
}

.hero__searchrow {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero__searchrow .hero__search {
  flex: 1 1 560px;
  width: auto;
  max-width: 720px;
  min-width: 0;
  margin-top: 0;
}

.hero__searchrow .hero__chips {
  flex: 1 1 auto;
  justify-content: flex-end;
  margin-top: 0;
}

.home-latest {
  padding-top: 28px;
}

.hero__content {
  max-width: 850px;
}

.hero__title {
  margin: 24px 0 0;
  font-family: var(--display);
  font-size: clamp(3rem, 5.6vw, 5rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.08;
  text-wrap: balance;
}

.hero__title span {
  color: var(--red-bright);
}

.hero__sub {
  max-width: 36ch;
  margin: 20px 0 0;
  color: var(--cream-soft);
  font-size: clamp(0.95rem, 1.5vw, 1.14rem);
  line-height: 1.85;
}

.hero__search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(100%, 620px);
  margin-top: 28px;
  padding: 6px 6px 6px 18px;
  border: 1px solid rgba(247, 239, 231, 0.18);
  border-radius: 999px;
  background: rgba(245, 236, 226, 0.97);
  box-shadow: 0 18px 50px -28px rgba(0, 0, 0, 0.8);
}

.hero__search svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: #6f625a;
}

.hero__search input {
  min-width: 0;
  flex: 1;
  min-height: 36px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #211a18;
  font-size: 0.9rem;
}

.hero__search input::placeholder {
  color: #86766c;
}

.hero__search .btn {
  min-height: 40px;
  padding: 0 17px;
  font-size: 0.76rem;
}

.hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 20px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(247, 239, 231, 0.18);
  border-radius: 999px;
  background: rgba(11, 9, 9, 0.32);
  color: var(--cream-soft);
  font-size: 0.68rem;
  font-weight: 500;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.chip:hover {
  background: rgba(247, 239, 231, 0.1);
  border-color: rgba(247, 239, 231, 0.34);
  color: var(--cream);
}

.chip--accent {
  border-color: rgba(226, 59, 78, 0.5);
  background: rgba(226, 59, 78, 0.16);
  color: #ffc2c9;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 0.67rem;
}

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

.hero__meta span::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
}

/* ---------- category tiles ---------- */

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

.cat-tile {
  --cat: var(--red);
  --cat-soft: rgba(226, 59, 78, 0.16);
  position: relative;
  min-height: 128px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 82% 16%, var(--cat-soft), transparent 55%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
  overflow: hidden;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.cat-tile::after {
  content: attr(data-index);
  position: absolute;
  right: 10px;
  bottom: -20px;
  color: var(--cat);
  font-family: var(--display);
  font-size: 5.5rem;
  font-weight: 700;
  line-height: 1;
  opacity: 0.1;
  pointer-events: none;
}

.cat-tile:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  background:
    radial-gradient(circle at 82% 16%, var(--cat-soft), transparent 65%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.018));
}

.cat-tile__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.cat-tile__name {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: var(--display);
  font-size: 1.08rem;
  font-weight: 500;
  line-height: 1.25;
}

.cat-tile__count {
  color: var(--muted-2);
  font-size: 0.62rem;
}

.cat-tile__arrow {
  position: absolute;
  right: 16px;
  top: 16px;
  color: var(--cat);
  font-size: 0.9rem;
  opacity: 0.8;
}

.cat-tile__accent {
  position: absolute;
  left: 18px;
  bottom: 16px;
  width: 28px;
  height: 2px;
  background: var(--cat);
  opacity: 0.8;
}

.cat-tile--thai { --cat: #e23b4e; --cat-soft: rgba(226, 59, 78, 0.18); }
.cat-tile--jav { --cat: #ff4f8b; --cat-soft: rgba(255, 79, 139, 0.18); }
.cat-tile--western { --cat: #d3a15f; --cat-soft: rgba(211, 161, 95, 0.17); }
.cat-tile--korean { --cat: #ff7a59; --cat-soft: rgba(255, 122, 89, 0.17); }
.cat-tile--chinese { --cat: #46c2a8; --cat-soft: rgba(70, 194, 168, 0.16); }
.cat-tile--anime { --cat: #9b6cff; --cat-soft: rgba(155, 108, 255, 0.18); }
.cat-tile--lesbian { --cat: #ff6f9f; --cat-soft: rgba(255, 111, 159, 0.17); }
.cat-tile--lgbtq { --cat: #b06cff; --cat-soft: rgba(176, 108, 255, 0.18); }

/* ---------- movie cards ---------- */

.movie-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 20px);
}

.movie-grid.movie-grid--five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.movie-card {
  min-width: 0;
}

.movie-card__poster {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 10px;
  background: var(--surface-2);
  box-shadow: 0 18px 40px -28px rgba(0, 0, 0, 0.9);
}

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

.movie-card:hover .movie-card__poster img {
  transform: scale(1.04);
}

.movie-card__poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 48%, rgba(11, 9, 9, 0.76) 100%);
  pointer-events: none;
}

.movie-card__badges {
  position: absolute;
  top: 9px;
  left: 9px;
  right: 9px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.movie-card__play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  background: rgba(11, 9, 9, 0.45);
  color: #fff;
  opacity: 0;
  transform: translate(-50%, -42%);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.movie-card__play svg {
  width: 16px;
  height: 16px;
  margin-left: 2px;
}

.movie-card:hover .movie-card__play {
  opacity: 1;
  transform: translate(-50%, -50%);
}

.movie-card__body {
  padding: 10px 2px 0;
}

.movie-card__title {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: var(--cream);
  font-family: var(--display);
  font-size: 0.94rem;
  font-weight: 500;
  line-height: 1.38;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-card__meta {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 5px;
  color: var(--muted-2);
  font-size: 0.64rem;
  line-height: 1.4;
}

.movie-card__meta span + span::before {
  content: "·";
  margin-right: 7px;
  opacity: 0.6;
}

/* fallback poster (anime titles with no source cover) */
.poster-fallback {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: 100%;
  height: 100%;
  padding: 16px;
  background:
    radial-gradient(circle at 24% 18%, rgba(155, 108, 255, 0.62), transparent 52%),
    radial-gradient(circle at 80% 78%, rgba(226, 59, 78, 0.34), transparent 55%),
    linear-gradient(150deg, #241542, #0d0a16 72%);
}

.poster-fallback::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(247, 239, 231, 0.22);
  border-radius: 6px;
}

.poster-fallback__kicker {
  position: relative;
  z-index: 1;
  color: rgba(247, 239, 231, 0.6);
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.2em;
}

.poster-fallback__title {
  position: relative;
  z-index: 1;
  margin: 8px 0 0;
  color: var(--cream);
  font-family: var(--display);
  font-size: clamp(1.1rem, 2.2vw, 1.55rem);
  font-weight: 600;
  line-height: 1.1;
  text-transform: uppercase;
  text-wrap: balance;
}

.poster-fallback__line {
  position: relative;
  z-index: 1;
  width: 34px;
  height: 2px;
  margin-top: 12px;
  background: var(--violet);
}

/* ---------- rails ---------- */

.rail {
  position: relative;
}

.rail__track {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(10px, 1.5vw, 18px);
}

.rail__nav {
  display: flex;
  gap: 6px;
}

.rail__btn {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--cream-soft);
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.rail__btn:hover {
  background: rgba(247, 239, 231, 0.08);
  border-color: var(--line-strong);
}

.rail__btn svg {
  width: 13px;
  height: 13px;
}

/* ---------- page / category hero ---------- */

.page-hero {
  position: relative;
  padding: 96px 0 16px;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  top: -180px;
  right: -120px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--cat-soft, rgba(226, 59, 78, 0.16)), transparent 68%);
  pointer-events: none;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--muted-2);
  font-size: 0.62rem;
  letter-spacing: 0.04em;
}

.breadcrumb a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
}

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

.breadcrumb span {
  opacity: 0.55;
}

.page-hero__eyebrow {
  margin-top: 18px;
}

.page-hero__title {
  max-width: 100%;
  margin: 8px 0 0;
  font-family: var(--display);
  font-size: clamp(2.2rem, 4.4vw, 4.15rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.05;
}

.page-hero__title em {
  color: var(--cat, var(--red-bright));
  font-style: normal;
}

.page-hero__lead {
  max-width: 58ch;
  margin: 12px 0 0;
  color: var(--cream-soft);
  font-size: clamp(0.9rem, 1.1vw, 1rem);
  line-height: 1.8;
}

.page-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.66rem;
}

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

.page-hero__meta span::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--cat, var(--red));
}

.cat-hero {
  display: block;
}

.cat-hero__main {
  min-width: 0;
}

.category-list {
  padding: 100px 0 var(--section);
}

.cat-about {
  margin-top: 30px;
  border-top: 1px solid var(--line);
}

.cat-about summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 0;
  color: var(--cream-soft);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  cursor: pointer;
  list-style: none;
}

.cat-about summary::-webkit-details-marker {
  display: none;
}

.cat-about summary svg {
  width: 14px;
  height: 14px;
  color: var(--muted-2);
  transition: transform 0.2s var(--ease);
}

.cat-about[open] summary svg {
  transform: rotate(180deg);
}

.cat-about__text {
  max-width: 76ch;
  padding: 2px 0 22px;
}

.cat-about__text p {
  margin: 0 0 0.8em;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.85;
}

.cat-about__text p:first-child {
  color: var(--cream-soft);
}

.cat-about__text p:last-child {
  margin-bottom: 0;
}

/* ---------- watch page ---------- */

.watch-hero {
  padding: 104px 0 0;
}

.watch-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  align-items: start;
  gap: clamp(24px, 4vw, 44px);
  padding-top: 22px;
}

.player {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #000;
  box-shadow: 0 30px 80px -50px rgba(0, 0, 0, 0.9);
}

.player__bg,
.player__bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.player__bg img {
  object-fit: cover;
  filter: blur(18px) brightness(0.4) saturate(0.8);
  transform: scale(1.08);
}

.player__bg--fallback {
  background:
    radial-gradient(circle at 30% 22%, rgba(155, 108, 255, 0.5), transparent 48%),
    radial-gradient(circle at 75% 78%, rgba(226, 59, 78, 0.28), transparent 50%),
    #160f22;
}

.player::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 45%, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.78));
}

.player__content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  text-align: center;
}

.player__play {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  background: rgba(226, 59, 78, 0.88);
  color: #fff;
  box-shadow: 0 18px 50px -18px rgba(226, 59, 78, 0.8);
  transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}

.player__play:hover {
  transform: scale(1.05);
  background: var(--red-bright);
}

.player__play svg {
  width: 26px;
  height: 26px;
  margin-left: 4px;
}

.player__expand {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 50%;
  background: rgba(11, 9, 9, 0.58);
  color: var(--cream);
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.player__expand:hover {
  background: rgba(226, 59, 78, 0.88);
  border-color: rgba(255, 255, 255, 0.55);
}

.player__expand:active {
  transform: scale(0.96);
}

.player__icon {
  width: 18px;
  height: 18px;
}

.player__icon--collapse {
  display: none;
}

.player.is-expanded {
  position: fixed;
  inset: 0;
  z-index: 400;
  width: 100vw;
  height: 100dvh;
  max-width: none;
  aspect-ratio: auto;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: #000;
}

.player.is-expanded .player__icon--expand {
  display: none;
}

.player.is-expanded .player__icon--collapse {
  display: block;
}

.player.is-expanded .player__expand {
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
}

.player.is-expanded .player__play {
  width: 92px;
  height: 92px;
}

.player.is-expanded .player__play svg {
  width: 32px;
  height: 32px;
}

.player.is-expanded .player__label {
  font-size: clamp(1.15rem, 2.4vw, 1.6rem);
}

body.player-open {
  overflow: hidden;
}

body.player-open .site-header,
body.player-open .site-footer {
  visibility: hidden;
}

.player__label {
  margin: 0;
  color: var(--cream);
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 500;
}

.player__note {
  margin: 0;
  color: rgba(247, 239, 231, 0.62);
  font-size: 0.72rem;
}

.watch-side {
  padding-top: 2px;
}

.watch-side__poster {
  position: relative;
  aspect-ratio: 2 / 3;
  max-width: 230px;
  overflow: hidden;
  border-radius: 10px;
  background: var(--surface-2);
}

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

.watch-side h1 {
  margin: 18px 0 0;
  font-family: var(--display);
  font-size: clamp(1.75rem, 3.2vw, 2.6rem);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -0.02em;
}

.watch-side h1 span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-family: var(--body);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.watch-side__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.watch-side__meta {
  display: grid;
  gap: 9px;
  margin: 22px 0 0;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.watch-side__meta div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 0.76rem;
}

.watch-side__meta dt {
  color: var(--muted-2);
}

.watch-side__meta dd {
  margin: 0;
  color: var(--cream-soft);
  text-align: right;
}

.watch-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 18px;
}

.watch-actions .btn {
  min-height: 42px;
  padding: 0 12px;
  font-size: 0.72rem;
}

.watch-actions .btn.is-saved {
  border-color: rgba(226, 59, 78, 0.55);
  background: rgba(226, 59, 78, 0.14);
  color: #ffc2c9;
}

.watch-actions .btn--wide {
  grid-column: 1 / -1;
}

.watch-body {
  padding: var(--section) 0;
  border-top: 1px solid var(--line);
}

.watch-body__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  gap: clamp(24px, 4vw, 44px);
}

.prose {
  max-width: 70ch;
}

.prose h2 {
  margin: 0 0 14px;
  font-family: var(--display);
  font-size: clamp(1.25rem, 2.4vw, 1.65rem);
  font-weight: 500;
  line-height: 1.3;
}

.prose p {
  margin: 0 0 1em;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.95;
}

.prose p:first-of-type {
  color: var(--cream-soft);
  font-size: 0.96rem;
}

.cat-note {
  max-width: 72ch;
  margin: 26px 0 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted-2);
  font-size: 0.74rem;
  line-height: 1.75;
}

.prose .note {
  margin-top: 22px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted-2);
  font-size: 0.74rem;
  line-height: 1.75;
}

.watch-aside {
  padding-top: 2px;
}

.watch-aside h2 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 500;
}

.watch-aside__list {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.watch-aside__list a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  color: var(--cream-soft);
  font-size: 0.78rem;
}

.watch-aside__list a:hover {
  color: var(--red-bright);
}

.watch-aside__list span {
  color: var(--muted-2);
  font-size: 0.6rem;
}

/* ---------- loading / empty ---------- */

.empty {
  padding: 40px 0;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

/* ---------- search overlay ---------- */

.search-panel {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: min(14vh, 120px) 20px 30px;
  background: rgba(5, 4, 4, 0.78);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.25s var(--ease), visibility 0s linear 0.25s;
}

.search-panel.is-open {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.25s var(--ease), visibility 0s linear 0s;
}

.search-box {
  width: min(100%, 760px);
  max-height: 74vh;
  overflow: auto;
  padding: 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: #110e0d;
  box-shadow: 0 30px 100px -20px rgba(0, 0, 0, 0.85);
}

.search-box__top {
  display: flex;
  gap: 9px;
}

.search-box__input {
  min-width: 0;
  flex: 1;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  outline: 0;
  background: rgba(255, 255, 255, 0.04);
  color: var(--cream);
  font-size: 0.9rem;
}

.search-box__input::placeholder {
  color: var(--muted-2);
}

.search-box__input::-webkit-search-cancel-button,
.hero__search input::-webkit-search-cancel-button,
.search-page__input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}

.search-box__close {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--muted);
}

.search-box__hint {
  margin: 12px 2px 0;
  color: var(--muted-2);
  font-size: 0.7rem;
}

.search-results {
  display: grid;
  gap: 2px;
  margin-top: 10px;
}

.search-result {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: 8px;
  transition: background 0.2s var(--ease);
}

.search-result:hover {
  background: rgba(247, 239, 231, 0.06);
}

.search-result img {
  width: 34px;
  height: 50px;
  flex-shrink: 0;
  border-radius: 4px;
  object-fit: cover;
  background: var(--surface-2);
}

.search-result__fallback {
  display: grid;
  place-items: center;
  width: 34px;
  height: 50px;
  flex-shrink: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: linear-gradient(145deg, #2a1844, #15101d);
  color: var(--violet);
  font-family: var(--display);
  font-size: 0.62rem;
}

.search-result__body {
  min-width: 0;
}

.search-result__title {
  display: block;
  overflow: hidden;
  color: var(--cream-soft);
  font-family: var(--display);
  font-size: 0.84rem;
  font-weight: 500;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-result__meta {
  display: block;
  margin-top: 2px;
  color: var(--muted-2);
  font-size: 0.62rem;
}

/* ---------- search page ---------- */

.search-page {
  padding: 120px 0 var(--section);
}

.search-page__form {
  display: flex;
  gap: 8px;
  max-width: 720px;
  margin-top: 24px;
}

.search-page__input {
  min-width: 0;
  flex: 1;
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  outline: 0;
  background: rgba(255, 255, 255, 0.04);
  color: var(--cream);
}

.search-page__input::placeholder {
  color: var(--muted-2);
}

.search-page__results {
  margin-top: 34px;
}

/* ---------- legal / about ---------- */

.page {
  padding: 120px 0 var(--section);
}

.page__head {
  max-width: 70ch;
}

.page h1 {
  margin: 16px 0 0;
  font-family: var(--display);
  font-size: clamp(2rem, 4.6vw, 3.5rem);
  font-weight: 600;
  line-height: 1.15;
}

.page__lead {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.9;
}

.legal {
  max-width: 760px;
  margin-top: 36px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.legal h2 {
  margin: 1.8em 0 0.5em;
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 500;
}

.legal p,
.legal li {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.95;
}

.legal a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: var(--red-bright);
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

.site-footer {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(circle at 88% 0%, rgba(226, 59, 78, 0.14), transparent 38%),
    linear-gradient(180deg, #080606, #100a0b 62%, #080606);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -170px;
  right: -120px;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(226, 59, 78, 0.14);
  border-radius: 50%;
  pointer-events: none;
}

.site-footer::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(226, 59, 78, 0.6), transparent);
}

.footer-cta {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding: clamp(42px, 6vw, 72px) 0 clamp(30px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
}

.footer-cta__title {
  margin: 14px 0 0;
  font-family: var(--display);
  font-size: clamp(2rem, 4.6vw, 4.4rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.06;
}

.footer-cta__title em {
  color: var(--red-bright);
  font-style: normal;
}

.footer-cta__sub {
  max-width: 42ch;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.8;
}

.footer-cta__actions {
  display: flex;
  flex-wrap: wrap;
  flex-shrink: 0;
  gap: 9px;
  padding-bottom: 4px;
}

.footer-main {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) repeat(3, minmax(0, 0.8fr));
  gap: clamp(22px, 4vw, 54px);
  padding: clamp(34px, 5vw, 54px) 0;
}

.footer-brand p {
  max-width: 34ch;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.8;
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 16px;
}

.footer-col h2 {
  margin: 0 0 12px;
  color: var(--muted-2);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer-col a {
  display: flex;
  align-items: center;
  min-height: 32px;
  margin: 0;
  color: var(--cream-soft);
  font-size: 0.76rem;
  transition: color 0.2s var(--ease);
}

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

.footer-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 0.58rem;
  letter-spacing: 0.04em;
}

.footer-bottom a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: var(--muted);
}

.footer-bottom a:hover {
  color: var(--cream);
}

/* ---------- toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 450;
  max-width: calc(100vw - 32px);
  padding: 12px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(20, 16, 15, 0.96);
  color: var(--cream);
  font-size: 0.78rem;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 14px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

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

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

@media (max-width: 1100px) {
  .hero__searchrow {
    flex-wrap: wrap;
    gap: 12px;
  }

  .hero__searchrow .hero__search {
    flex-basis: 100%;
    max-width: none;
  }

  .hero__searchrow .hero__chips {
    flex-basis: 100%;
    justify-content: center;
  }

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

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

  .watch-grid,
  .watch-body__grid {
    grid-template-columns: minmax(0, 1fr) 300px;
  }
}

@media (max-width: 900px) {
  .site-nav,
  .header-age {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 40px;
    padding: 0 4px;
    color: var(--cream-soft);
    font-size: 0.68rem;
    font-weight: 500;
  }

  .menu-toggle__lines {
    display: grid;
    gap: 4px;
    width: 18px;
  }

  .menu-toggle__lines span {
    display: block;
    width: 100%;
    height: 1px;
    background: currentColor;
  }

  .mobile-only {
    display: grid;
  }

  .hero {
    min-height: 0;
    padding: 108px 0 40px;
  }

  .hero.hero--search {
    padding: 88px 0 24px;
  }

  .hero__title {
    font-size: clamp(3rem, 9.2vw, 4.8rem);
  }

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

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

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

  .rail__track {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 0 0 8px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

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

  .rail__track .movie-card {
    flex: 0 0 42vw;
    max-width: 210px;
    scroll-snap-align: start;
  }

  .rail__nav {
    display: none;
  }

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

  .watch-side {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
  }

  .watch-side__poster {
    max-width: none;
  }

  .watch-side h1 {
    margin-top: 0;
  }

  .watch-side__meta {
    grid-column: 1 / -1;
  }

  .watch-actions {
    grid-column: 1 / -1;
  }

  .footer-col a {
    display: flex;
    align-items: center;
    min-height: 36px;
    margin: 0;
  }

  .footer-bottom a {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
  }

  .breadcrumb a {
    min-height: 32px;
  }

  .footer-cta {
    display: block;
  }

  .footer-cta__actions {
    margin-top: 24px;
    padding-bottom: 0;
  }

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

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

@media (max-width: 560px) {
  :root {
    --gutter: 16px;
  }

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

  .header-inner {
    min-height: 60px;
    gap: 12px;
  }

  .brand__mark {
    width: 27px;
    height: 27px;
    font-size: 0.7rem;
  }

  .brand__word {
    font-size: 0.96rem;
  }

  .brand__sub {
    font-size: 0.44rem;
  }

  .header-actions .icon-btn {
    width: 36px;
    height: 36px;
  }

  .hero {
    min-height: 0;
    padding-top: 96px;
    padding-bottom: 32px;
  }

  .hero.hero--search {
    padding: 82px 0 20px;
  }

  .home-latest {
    padding-top: 24px;
  }

  .hero__title {
    font-size: clamp(2.9rem, 13.2vw, 4.4rem);
    line-height: 1.08;
  }

  .hero__sub {
    font-size: 0.9rem;
  }

  .hero__search {
    padding-left: 13px;
  }

  .hero__search .btn {
    padding: 0 13px;
  }

  .hero__chips {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

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

  .chip {
    flex-shrink: 0;
  }

  .hero__meta {
    font-size: 0.6rem;
  }

  .cat-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .cat-tile {
    min-height: 108px;
    padding: 14px;
  }

  .cat-tile__name {
    font-size: 0.94rem;
  }

  .cat-tile__count {
    font-size: 0.56rem;
  }

  .cat-tile::after {
    font-size: 4.4rem;
  }

  .cat-tile__accent {
    left: 14px;
    bottom: 12px;
  }

  .section-head {
    align-items: flex-start;
    gap: 12px;
  }

  .section-head__link {
    margin-top: 6px;
    font-size: 0.6rem;
  }

  .movie-grid {
    gap: 12px;
  }

  .movie-card__title {
    font-size: 0.84rem;
  }

  .movie-card__meta {
    font-size: 0.58rem;
  }

  .movie-card__badges {
    top: 7px;
    left: 7px;
    right: 7px;
  }

  .badge {
    min-height: 21px;
    padding: 0 6px;
    font-size: 0.54rem;
  }

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

  .category-list {
    padding-top: 86px;
  }

  .page-hero__title {
    font-size: clamp(2rem, 10vw, 3.1rem);
  }


  .watch-hero {
    padding-top: 84px;
  }

  .player__play {
    width: 58px;
    height: 58px;
  }

  .player__play svg {
    width: 21px;
    height: 21px;
  }

  .watch-side {
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 14px;
  }

  .watch-side h1 {
    font-size: 1.55rem;
  }

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

  .watch-actions .btn--wide {
    grid-column: auto;
  }

  .footer-cta__actions .btn {
    flex: 1 1 auto;
  }

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

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

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

  .footer-bottom {
    display: block;
  }

  .footer-bottom span,
  .footer-bottom a {
    display: block;
    margin-bottom: 7px;
  }

  .search-panel {
    padding: 0;
    align-items: stretch;
  }

  .search-box {
    width: 100%;
    max-height: none;
    height: 100%;
    border-radius: 0;
    padding: 16px;
  }

  .search-page {
    padding-top: 92px;
  }

  .search-page__form {
    flex-direction: column;
  }

  .search-page__form .btn {
    width: 100%;
  }
}

@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;
  }
}


/* Short landscape phones: keep the gate fully reachable. */
@media (max-height: 520px) {
  .age-gate {
    padding: 8px;
  }

  .age-gate__card {
    max-height: calc(100svh - 16px);
    padding: 18px 22px;
  }

  .age-gate__mark {
    width: 38px;
    height: 38px;
    margin-bottom: 8px;
    font-size: 0.72rem;
  }

  .age-gate p.age-gate__logo {
    font-size: 1.45rem;
  }

  .age-gate p.age-gate__title {
    margin: 10px 0 4px;
    font-size: 1.02rem;
  }

  .age-gate p:not(.age-gate__logo):not(.age-gate__title) {
    display: none;
  }

  .age-gate__actions {
    gap: 6px;
    margin-top: 12px;
  }

  .age-gate__actions .btn {
    min-height: 42px;
  }

  .age-gate__exit {
    margin-top: 8px;
  }
}
