
:root {
  --bg: #08080b;
  --bg-2: #0b0c10;
  --surface: #101116;
  --surface-2: #16171e;
  --surface-3: #1c1e26;
  --hair: rgba(255, 255, 255, 0.07);
  --hair-2: rgba(255, 255, 255, 0.12);

  --text: #edeef2;
  --muted: #a3a5b4;
  --muted-2: #7e8090;

  --accent: #ff6a2c;
  --accent-2: #ff8a52;
  --accent-dim: rgba(255, 106, 44, 0.13);
  --accent-line: rgba(255, 106, 44, 0.42);
  --gold: #e8bc72;
  --ring: rgba(255, 255, 255, 0.55);

  --r-xs: 8px;
  --r-sm: 10px;
  --r: 14px;
  --r-lg: 20px;
  --r-xl: 26px;

  --nav-h: 64px;
  --nav-gap: clamp(10px, 1.4vw, 18px);
  --max-w: 1560px;
  --pad: clamp(16px, 3.4vw, 44px);

  --sh-1: 0 1px 2px rgba(0, 0, 0, 0.5);
  --sh-2: 0 16px 38px -18px rgba(0, 0, 0, 0.9);
  --sh-3: 0 44px 96px -34px rgba(0, 0, 0, 0.96);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --fast: 160ms var(--ease);
  --slow: 420ms var(--ease);

  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + var(--nav-gap) + 20px);
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: clamp(14px, 0.92vw, 15.5px);
  line-height: 1.65;
  letter-spacing: -0.005em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "cv11", "ss01";
}

body.no-scroll {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

button {
  cursor: pointer;
}

img,
svg {
  display: block;
}

svg {
  fill: currentColor;
}

img {
  max-width: 100%;
  height: auto;
}

ul,
ol {
  list-style: none;
}

::selection {
  background: rgba(255, 106, 44, 0.28);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: min(var(--max-w), 100%);
  margin-inline: auto;
  padding-inline: var(--pad);
}

* {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.14) transparent;
}

*::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}

*::-webkit-scrollbar-track {
  background: transparent;
}

*::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
  border: 2px solid transparent;
  background-clip: content-box;
  border-radius: 99px;
}

*::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to bottom, rgba(255, 106, 44, 0.55), rgba(255, 106, 44, 0.28));
  background-clip: content-box;
}

.ambience {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.ambience .blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(150px);
}

.blob.b1 {
  top: -30vh;
  left: 50%;
  width: min(1100px, 92vw);
  height: min(620px, 60vh);
  transform: translateX(-52%);
  background: radial-gradient(circle at 50% 45%, rgba(255, 106, 44, 0.16) 0%, rgba(255, 106, 44, 0) 68%);
}

.blob.b2 {
  top: 42vh;
  right: -18vw;
  width: 70vw;
  height: 70vw;
  background: radial-gradient(circle, rgba(90, 110, 220, 0.09) 0%, rgba(90, 110, 220, 0) 70%);
}

.blob.b3 {
  top: 76vh;
  left: -22vw;
  width: 62vw;
  height: 62vw;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.045) 0%, rgba(255, 255, 255, 0) 68%);
}

.grain {
  position: absolute;
  inset: -50%;
  opacity: 0.032;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/></filter><rect width='180' height='180' filter='url(%23n)'/></svg>");
}

.btn {
  --btn-bg: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 20px;
  border-radius: 999px;
  background: var(--btn-bg);
  color: #1a0d05;
  font-weight: 650;
  font-size: 14.5px;
  letter-spacing: -0.01em;
  white-space: nowrap;
  box-shadow: 0 10px 26px -10px rgba(255, 106, 44, 0.8), inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  transition: transform var(--fast), background var(--fast), box-shadow var(--fast), color var(--fast), filter var(--fast);
}

.btn::after {
  content: "";
  position: absolute;
  inset: 1px 1px auto;
  height: 46%;
  border-radius: inherit;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.btn:hover {
  filter: brightness(1.07) saturate(1.05);
  transform: translateY(-1.5px);
  box-shadow: 0 14px 34px -12px rgba(255, 106, 44, 0.95), inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.btn:active {
  transform: translateY(0) scale(0.985);
}

.btn svg {
  flex: 0 0 auto;
}

.btn.ghost {
  --btn-bg: transparent;
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--hair-2);
}

.btn.ghost::after {
  display: none;
}

.btn.ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.btn.sm {
  padding: 8px 14px;
  font-size: 13px;
  gap: 7px;
}

.btn.block {
  width: 100%;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 0 0 1px var(--hair);
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 550;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: background var(--fast), color var(--fast), box-shadow var(--fast);
}

a.chip:hover {
  background: rgba(255, 255, 255, 0.09);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--hair-2);
}

.chip.gold {
  color: var(--gold);
}

.chip.orange {
  color: var(--accent-2);
  background: var(--accent-dim);
  box-shadow: inset 0 0 0 1px var(--accent-line);
}

.chip svg {
  flex: 0 0 auto;
  opacity: 0.85;
}

.linkmore {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: color var(--fast), gap var(--fast);
}

.linkmore:hover {
  color: var(--text);
  gap: 8px;
}

.linkmore svg {
  transition: transform var(--fast);
}

.linkmore:hover svg {
  transform: translateX(2px);
}

.subhead {
  margin: 4px 0 12px;
  color: var(--muted-2);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.note-line {
  margin-top: 14px;
  color: var(--muted-2);
  font-size: 13px;
  line-height: 1.6;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  padding: var(--nav-gap) var(--pad) 0;
  background: none;
  border-bottom: 0;
  transition: background var(--fast), border-color var(--fast);
}

.nav .wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.4vw, 16px);
  min-height: var(--nav-h);
  padding: 8px 10px 8px 12px;
  border-radius: 999px;
  background: rgba(13, 13, 18, 0.72);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  box-shadow: inset 0 0 0 1px var(--hair), 0 12px 32px -18px rgba(0, 0, 0, 0.9);
  transition: background var(--fast), box-shadow var(--fast);
}

.nav.scrolled .wrap {
  background: rgba(13, 13, 18, 0.93);
  box-shadow: inset 0 0 0 1px var(--hair-2), 0 18px 40px -20px rgba(0, 0, 0, 0.95);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand img {
  height: 34px;
  width: auto;
  border-radius: 10px;
  transition: transform var(--fast), filter var(--fast);
}

.brand:hover img {
  transform: scale(1.04);
  filter: brightness(1.08);
}

.navlinks {
  display: flex;
  align-items: center;
  gap: 2px;
  min-width: 0;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.navlinks a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 550;
  white-space: nowrap;
  transition: color var(--fast), background var(--fast), box-shadow var(--fast);
}

.navlinks a .navi {
  flex: 0 0 auto;
  opacity: 0.72;
  transition: opacity var(--fast), transform var(--fast);
}

.navlinks a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.navlinks a:hover .navi {
  opacity: 1;
}

.navlinks a.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.navlinks a.active .navi {
  opacity: 1;
  color: var(--accent-2);
}

.navright {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.searchbox {
  position: relative;
  display: flex;
  align-items: center;
  height: 38px;
  padding-inline: 12px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 1px var(--hair);
  transition: background var(--fast), box-shadow var(--fast);
}

.searchbox:hover {
  background: rgba(255, 255, 255, 0.065);
}

.searchbox:focus-within {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px var(--accent-line);
}

.searchbox .ico {
  display: inline-flex;
  color: var(--muted);
  transition: color var(--fast);
}

.searchbox:focus-within .ico {
  color: var(--accent-2);
}

.searchbox input {
  width: clamp(110px, 16vw, 210px);
  padding-inline: 9px;
  font-size: 14px;
  transition: width var(--slow);
}

.searchbox input::placeholder {
  color: var(--muted-2);
}

.searchbox input:focus-visible {
  outline: none;
}

.searchbox .clear {
  display: none;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  color: var(--muted);
  transition: background var(--fast), color var(--fast);
}

.searchbox.has .clear {
  display: inline-flex;
}

.searchbox .clear:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

.iconbtn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  color: var(--muted);
  transition: background var(--fast), color var(--fast), transform var(--fast);
}

.iconbtn svg {
  width: 19px;
  height: 19px;
}

.iconbtn:hover {
  background: rgba(255, 255, 255, 0.09);
  color: var(--text);
}

.iconbtn:active {
  transform: scale(0.94);
}

.iconbtn .dot {
  position: absolute;
  top: 4px;
  right: 3px;
  min-width: 17px;
  height: 17px;
  padding-inline: 4px;
  border-radius: 999px;
  background: var(--surface-3);
  box-shadow: 0 0 0 2px rgba(13, 13, 18, 0.92);
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 700;
  line-height: 17px;
  text-align: center;
}

.iconbtn .dot.on {
  background: var(--accent);
  color: #16100c;
}

.burger {
  display: none;
}

@media (max-width: 900px) {
  .burger {
    display: inline-flex;
  }

  .navlinks {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 8px;
    border-radius: var(--r-lg);
    background: rgba(13, 13, 18, 0.97);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    box-shadow: inset 0 0 0 1px var(--hair), var(--sh-3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity var(--fast), transform var(--fast), visibility var(--fast);
  }

  .nav.open .navlinks {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .navlinks a {
    padding: 12px 14px;
    font-size: 15px;
    border-radius: var(--r-sm);
  }

  .navlinks a .navi {
    opacity: 0.85;
  }

  .navlinks a.active {
    color: var(--accent-2);
    background: rgba(255, 255, 255, 0.08);
  }
}

@media (max-width: 560px) {
  .searchbox {
    padding-inline: 10px 6px;
  }

  .searchbox input {
    width: 92px;
  }

  .searchbox input:focus {
    width: min(190px, 44vw);
  }
}

.page {
  position: relative;
  z-index: 1;
  min-height: 60vh;
  padding-bottom: clamp(40px, 6vw, 80px);
}

.pagehead {
  padding: clamp(28px, 5vw, 56px) 0 clamp(18px, 2.6vw, 28px);
}

.pagehead h1 {
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.pagehead h1::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  margin-top: 12px;
  border-radius: 3px;
  background: linear-gradient(to right, var(--accent), rgba(255, 106, 44, 0));
}

.pagehead p {
  margin-top: 12px;
  max-width: 62ch;
  color: var(--muted);
  font-size: 14.5px;
}

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(430px, 66vh, 720px);
  padding-bottom: clamp(28px, 4vw, 56px);
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  opacity: 0;
  transform: scale(1.06);
  animation: heroIn 1.4s var(--ease) forwards;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, var(--bg) 2%, rgba(8, 8, 11, 0.35) 42%, rgba(8, 8, 11, 0.12) 70%),
    linear-gradient(to right, rgba(8, 8, 11, 0.94) 4%, rgba(8, 8, 11, 0.62) 38%, rgba(8, 8, 11, 0.05) 72%),
    linear-gradient(to bottom, rgba(8, 8, 11, 0.7) 0%, rgba(8, 8, 11, 0) 26%);
}

.hero-inner {
  width: 100%;
  max-width: 640px;
  animation: heroUp 800ms var(--ease) both;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 16px;
  padding: 8px 15px;
  border-radius: 999px;
  background: rgba(10, 10, 14, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1px rgba(255, 106, 44, 0.38), 0 6px 20px -8px rgba(0, 0, 0, 0.6);
  color: var(--accent-2);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.kicker .flame {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(255, 106, 44, 0.16), 0 0 14px 2px rgba(255, 106, 44, 0.5);
}

.hero h1 {
  font-size: clamp(34px, 5.6vw, 74px);
  font-weight: 850;
  letter-spacing: -0.04em;
  line-height: 1.02;
  text-wrap: balance;
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.55);
}

.hero .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 16px;
}

.hero .meta .chip {
  background: rgba(10, 10, 14, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.11);
  color: #c9cad3;
}

.hero .desc {
  margin-top: 16px;
  max-width: 54ch;
  color: #cfd0d9;
  font-size: clamp(14px, 1.05vw, 16px);
  line-height: 1.62;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  overflow: hidden;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.6);
}

.hero .cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.hero-dots {
  position: absolute;
  right: var(--pad);
  bottom: clamp(28px, 4vw, 56px);
  display: flex;
  gap: 7px;
}

.hero-dots button {
  width: 7px;
  height: 7px;
  padding: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.28);
  transition: width var(--slow), background var(--fast);
}

.hero-dots button:hover {
  background: rgba(255, 255, 255, 0.6);
}

.hero-dots button.on {
  width: 26px;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(255, 106, 44, 0.75);
}

@keyframes heroIn {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes heroUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}



.section {
  padding-block: clamp(26px, 3.4vw, 46px) 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: clamp(14px, 1.8vw, 22px);
}

.section-head h2 {
  font-size: clamp(17px, 1.5vw, 22px);
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.section-head p {
  margin-top: 3px;
  color: var(--muted-2);
  font-size: 13px;
}

.section-head > div {
  position: relative;
  padding-left: 14px;
}

.section-head > div::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.32em;
  bottom: 0.28em;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(to bottom, var(--accent), rgba(255, 106, 44, 0.15));
}

.row {
  position: relative;
}

.row-track {
  display: flex;
  gap: clamp(10px, 1vw, 16px);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  padding-block: 6px;
}

.row-track::-webkit-scrollbar {
  display: none;
}

.row-nav {
  position: absolute;
  top: calc(50% - 60px);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(12, 12, 16, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1px var(--hair-2), var(--sh-2);
  color: var(--text);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity var(--fast), transform var(--fast), background var(--fast);
}

.row-nav.prev { left: -14px; }
.row-nav.next { right: -14px; }

.row:hover .row-nav,
.row:focus-within .row-nav {
  opacity: 1;
  transform: none;
}

.row-nav:hover {
  background: rgba(24, 25, 32, 0.95);
}

.row-nav:active {
  transform: scale(0.93);
}

.marques-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding-bottom: 8px;
  scroll-snap-type: x proximity;
}

.marques-track::-webkit-scrollbar {
  display: none;
}

.marque {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  flex: 0 0 auto;
  width: min(172px, 44vw);
  aspect-ratio: 3 / 2;
  display: grid;
  place-items: center;
  scroll-snap-align: start;
  text-decoration: none;
  border-radius: var(--r-lg);
  background:
    radial-gradient(120% 90% at 50% -10%, rgba(255, 106, 44, 0.12), rgba(255, 106, 44, 0) 55%),
    linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow: inset 0 0 0 1px var(--hair);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}

.marque-art {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .6;
  transform: scale(1.02);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}

.marque::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(90% 70% at 50% 120%, rgba(255, 106, 44, 0.28), rgba(255, 106, 44, 0) 70%);
  opacity: 0;
  transition: opacity .22s var(--ease);
}

.marque::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(6, 6, 10, 0.05) 0%, rgba(6, 6, 10, 0.55) 55%, rgba(6, 6, 10, 0.78) 100%);
}

.marque:hover {
  transform: translateY(-4px);
  box-shadow: inset 0 0 0 1px var(--accent-line), 0 18px 40px -18px rgba(0, 0, 0, .8);
}

.marque:hover::before {
  opacity: 1;
}

.marque:hover .marque-art {
  opacity: .85;
  transform: scale(1.07);
}

.marque:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.marque-logo {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: min(100%, 132px);
  padding: 12px;
}

.marque-logo img {
  max-height: 48px;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, .75));
  transition: transform .22s var(--ease), filter .22s var(--ease);
}

.marque:hover .marque-logo img {
  transform: scale(1.06);
  filter: drop-shadow(0 5px 16px rgba(255, 106, 44, .35));
}

.marquehead {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin: 26px 0 6px;
  padding: 18px 20px;
  border-radius: var(--r);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--hair);
}

.mh-logo {
  display: grid;
  place-items: center;
  height: 52px;
  flex: 0 0 auto;
}

.mh-logo img {
  max-height: 52px;
  max-width: 148px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .5));
}

.mh-txt {
  flex: 1 1 240px;
  min-width: 0;
}

.mh-txt h1 {
  margin: 0;
  font-size: clamp(22px, 2.5vw, 31px);
  font-weight: 800;
  letter-spacing: -.02em;
}

.mh-txt p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.js-lisse {
  scroll-behavior: auto;
}

@media (hover: none) {
  .row-nav {
    display: none;
  }
}

@media (max-width: 900px) {
  .row-nav {
    display: none;
  }
}

.card {
  position: relative;
  flex: 0 0 clamp(142px, 15.4vw, 208px);
  scroll-snap-align: start;
  border-radius: var(--r);
  cursor: pointer;
  transition: transform var(--fast);
}

.row-track .card {
  scroll-snap-align: start;
}

.card:hover,
.card:focus-visible {
  transform: translateY(-5px);
}

.card .shot {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--surface);
  box-shadow:
    inset 0 0 0 1px var(--hair),
    0 2px 6px -2px rgba(0, 0, 0, 0.6);
  transition: box-shadow var(--slow), transform var(--slow);
}

.card:hover .shot {
  box-shadow:
    inset 0 0 0 1px var(--hair-2),
    0 22px 48px -20px rgba(0, 0, 0, 0.95);
}

.card .shot::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(4, 4, 6, 0.55) 0%, rgba(4, 4, 6, 0) 34%);
  opacity: 0;
  transition: opacity var(--fast);
  pointer-events: none;
}

.card:hover .shot::before {
  opacity: 1;
}

.card .shot::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0) 48%);
  opacity: 0;
  transition: opacity var(--fast);
  pointer-events: none;
}

.card:hover .shot::after {
  opacity: 1;
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 420ms var(--ease), transform 620ms var(--ease);
}

.card img.loaded {
  opacity: 1;
}

.imgdead {
  display: none;
}

.card .fav.on svg {
  animation: favPop 400ms var(--ease);
}

@keyframes favPop {
  0% { transform: scale(1); }
  45% { transform: scale(1.4) rotate(-3deg); }
  100% { transform: scale(1); }
}

.card:hover img {
  transform: scale(1.06);
}

.card .shot.noimg {
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(255, 106, 44, 0.09) 0%, transparent 60%),
    var(--surface-2);
}

.card .badges {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  max-width: calc(100% - 56px);
}

.card .badges .t {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3.5px 8px;
  border-radius: 999px;
  background: rgba(8, 8, 11, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #d6d7de;
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.card .badges .t.hd {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}

.card .badges .resume-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3.5px 8px;
  border-radius: 999px;
  background: rgba(232, 188, 114, 0.16);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--gold);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.card .badges .lang-chip {
  padding: 3.5px 8px;
  border-radius: 999px;
  background: rgba(8, 8, 11, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--accent-2);
  box-shadow: inset 0 0 0 1px var(--accent-line);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.card .badges .lang-chip.vo {
  color: #c9cbd6;
  box-shadow: inset 0 0 0 1px var(--hair-2);
}

.grid .card {
  content-visibility: auto;
  contain-intrinsic-size: auto 320px;
}

.loadnote {
  margin: 4px 0 0;
  text-align: center;
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.card .fav {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(8, 8, 11, 0.66);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #e2e3ea;
  opacity: 0;
  transform: scale(0.86);
  transition: opacity var(--fast), transform var(--fast), background var(--fast), color var(--fast);
}

@media (hover: none) {
  .card .fav {
    opacity: 1;
    transform: none;
  }
}

.card:hover .fav,
.card:focus-within .fav,
.card .fav.on {
  opacity: 1;
  transform: none;
}

.card .fav:hover {
  background: rgba(34, 35, 45, 0.94);
  color: var(--accent-2);
}

.card .fav.on {
  color: var(--accent);
}

.card .fav.on svg {
  fill: currentColor;
}

.card .playmini {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--fast);
  pointer-events: none;
}

.card:hover .playmini {
  opacity: 1;
}

.playmini span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 106, 44, 0.95);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #1a0f06;
  box-shadow:
    0 16px 38px -14px rgba(0, 0, 0, 0.95),
    inset 0 0 0 1px rgba(255, 255, 255, 0.24);
  transform: scale(0.78);
  transition: transform var(--slow);
}

.card:hover .playmini span {
  transform: none;
}

.card .progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  height: 3px;
  background: rgba(255, 255, 255, 0.2);
}

.card .progress i {
  display: block;
  height: 100%;
  border-radius: 0 2px 2px 0;
  background: var(--accent);
}

.card .info {
  padding: 10px 2px 0;
}

.card .info b {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  font-size: 13.5px;
  font-weight: 620;
  letter-spacing: -0.012em;
  line-height: 1.35;
  transition: color var(--fast);
}

.card:hover .info b {
  color: #fff;
}

.card .info span {
  display: block;
  margin-top: 3px;
  color: var(--muted-2);
  font-size: 11.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card .info .score {
  color: var(--gold);
  font-style: normal;
  font-weight: 700;
}

.grid,
#cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(clamp(136px, 14.5vw, 190px), 1fr));
  gap: clamp(12px, 1.4vw, 22px) clamp(10px, 1.1vw, 18px);
}

.grid .card,
#cat-grid .card {
  width: 100%;
  flex: initial;
}

.cat-more {
  grid-column: 1 / -1;
  padding: 26px 4px 10px;
  text-align: center;
  color: var(--muted-2);
  font-size: 12.5px;
  letter-spacing: 0.01em;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.toolbar .grow {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1 1 240px;
  min-width: 190px;
  height: 42px;
  padding-inline: 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px var(--hair);
  transition: box-shadow var(--fast), background var(--fast);
}

.toolbar .grow:focus-within {
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 0 0 1px var(--accent-line), 0 0 0 4px rgba(255, 106, 44, 0.07);
}

.toolbar .ico {
  display: inline-flex;
  color: var(--muted-2);
}

.toolbar .grow:focus-within .ico {
  color: var(--accent);
}

.toolbar input {
  width: 100%;
  padding-inline: 10px;
  font-size: 14px;
}

.toolbar input::placeholder {
  color: var(--muted-2);
}

.toolbar input:focus-visible {
  outline: none;
}

.pills {
  display: inline-flex;
  gap: 3px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px var(--hair);
}

.pill {
  padding: 7px 15px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  transition: background var(--fast), color var(--fast);
}

.pill:hover {
  color: var(--text);
}

.pill.on {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #1a0d05;
  font-weight: 700;
  box-shadow: 0 4px 14px -6px rgba(255, 106, 44, 0.65), inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

select.sel {
  height: 42px;
  padding: 0 34px 0 15px;
  border-radius: 999px;
  background:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%) calc(100% - 19px) 50% / 5px 5px no-repeat,
    linear-gradient(135deg, var(--muted) 50%, transparent 50%) calc(100% - 14px) 50% / 5px 5px no-repeat,
    rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px var(--hair);
  color: var(--text);
  font-size: 13.5px;
  font-weight: 550;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: background-color var(--fast), box-shadow var(--fast);
}

select.sel:hover {
  box-shadow: inset 0 0 0 1px var(--hair-2);
}

select.sel option {
  background: #101116;
  color: var(--text);
}

.resultbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--muted-2);
  font-size: 12.5px;
}

.chips-active {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
}

.lbl-inline {
  color: var(--muted-2);
  opacity: 0.9;
}

.chip-x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  margin-right: -3px;
  border-radius: 50%;
  color: var(--muted-2);
  font-size: 9px;
  line-height: 1;
  transition: background var(--fast), color var(--fast);
}

.chip-x:hover {
  background: rgba(255, 255, 255, 0.14);
  color: var(--text);
}

.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: clamp(48px, 8vw, 96px) 20px;
  text-align: center;
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.018);
  box-shadow: inset 0 0 0 1px var(--hair);
}

.empty .big {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--muted);
}

.empty h3 {
  font-size: 19px;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.empty p {
  max-width: 44ch;
  color: var(--muted);
  font-size: 14px;
}

.empty .btn {
  margin-top: 6px;
}

.skel {
  border-radius: var(--r);
  background: linear-gradient(90deg, var(--surface) 22%, var(--surface-3) 38%, var(--surface) 54%);
  background-size: 300% 100%;
  animation: shimmer 1.5s linear infinite;
}

.skel-card .shot {
  aspect-ratio: 2 / 3;
  border-radius: var(--r);
}

.skel-card .line {
  height: 10px;
  margin-top: 8px;
  border-radius: 99px;
}

@keyframes shimmer {
  from { background-position: 120% 0; }
  to { background-position: -20% 0; }
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 620ms var(--ease), transform 620ms var(--ease);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  visibility: hidden;
  pointer-events: none;
}

.modal.open {
  visibility: visible;
  pointer-events: auto;
}

.scrim {
  position: absolute;
  inset: 0;
  background: rgba(4, 4, 6, 0.76);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  opacity: 0;
  transition: opacity var(--slow);
}

.modal.open .scrim {
  opacity: 1;
}

.modal .sheet {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(940px, calc(100vw - 28px));
  max-height: min(90vh, 900px);
  overflow-y: auto;
  overscroll-behavior: contain;
  border-radius: var(--r-xl);
  background: var(--bg-2);
  box-shadow: inset 0 0 0 1px var(--hair), 0 0 90px -32px rgba(255, 106, 44, 0.28), var(--sh-3);
  opacity: 0;
  transform: translate(-50%, calc(-50% + 20px)) scale(0.985);
  transition: opacity var(--slow), transform var(--slow);
}

.modal.open .sheet {
  opacity: 1;
  transform: translate(-50%, -50%);
}

.modal .close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(28, 30, 40, 0.88), rgba(10, 10, 14, 0.86));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1px var(--hair-2), 0 6px 18px -8px rgba(0, 0, 0, 0.7);
  color: var(--text);
  transition: background var(--fast), transform var(--fast), box-shadow var(--fast), color var(--fast);
}

.modal .close svg {
  width: 15px;
  height: 15px;
}

.modal .close:hover {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  transform: rotate(90deg);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25), 0 0 24px -6px var(--accent);
}

.sheet-top {
  position: relative;
}

.sheet-top .art {
  position: relative;
  height: clamp(190px, 30vw, 290px);
  overflow: hidden;
  border-radius: var(--r-xl) var(--r-xl) 0 0;
}

.sheet-top .art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 26%;
  opacity: 1;
  transition: opacity 500ms var(--ease);
}

.sheet-top::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to top, var(--bg-2) 1%, rgba(11, 12, 16, 0.35) 45%, rgba(11, 12, 16, 0.1) 78%),
    linear-gradient(to bottom, rgba(11, 12, 16, 0.55), transparent 32%);
}

.sheet-top .inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: clamp(96px, 17vw, 132px) 1fr;
  gap: clamp(14px, 2.4vw, 22px);
  padding: 0 clamp(18px, 3vw, 30px);
  margin-top: clamp(-104px, -9vw, -62px);
}

.sheet-top .poster {
  border-radius: var(--r);
  overflow: hidden;
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--hair), var(--sh-2);
}

.sheet-top .poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  opacity: 1;
  transition: opacity 500ms var(--ease);
}

.sheet-top h2 {
  font-size: clamp(21px, 2.6vw, 32px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-wrap: balance;
}

.sheet-top .tagline {
  margin-top: 5px;
  color: var(--muted-2);
  font-size: 13px;
}

.metarow,
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.metarow {
  margin-top: 12px;
}

.actions {
  margin: 16px 0 14px;
}

.sheet-body {
  padding: clamp(16px, 2.2vw, 22px) clamp(18px, 3vw, 30px);
}

.sheet-body + .sheet-body {
  padding-top: 0;
}

.sheet-body h3 {
  margin-bottom: 10px;
  color: var(--muted-2);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.synopsis {
  color: #c8cad4;
  font-size: 14.5px;
  line-height: 1.72;
}

.factgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1px;
  overflow: hidden;
  border-radius: var(--r);
  background: var(--hair);
  box-shadow: inset 0 0 0 1px var(--hair);
}

.fact {
  padding: 13px 15px;
  background: var(--bg-2);
}

.fact b {
  display: block;
  color: var(--muted-2);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.fact span {
  display: block;
  margin-top: 3px;
  font-size: 14.5px;
  font-weight: 620;
}

.cast {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px;
}

.cast li {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 12px;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.028);
  box-shadow: inset 0 0 0 1px var(--hair);
  transition: background var(--fast), transform var(--fast);
}

.cast li:hover {
  background: var(--surface);
  transform: translateY(-1px);
}

.cast li b {
  font-size: 13px;
  font-weight: 620;
  line-height: 1.3;
}

.cast .av {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.04em;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22), 0 4px 10px -4px rgba(0, 0, 0, 0.55);
}

.watch-top {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: clamp(20px, 3.4vw, 34px) 0 18px;
}

.watch-top h1 {
  flex: 1 1 auto;
  min-width: 0;
  font-size: clamp(17px, 2.1vw, 25px);
  font-weight: 780;
  letter-spacing: -0.025em;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: #000;
  box-shadow: inset 0 0 0 1px var(--hair-2), var(--sh-3);
}

.player iframe {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  border: 0;
}

.player #player-gate {
  position: absolute;
  inset: 0;
  z-index: 4;
}

.adgate {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 22px;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(255, 106, 44, 0.09), transparent 62%),
    #000;
}

.adgate-in {
  width: min(520px, 100%);
  max-height: 100%;
  overflow-y: auto;
  text-align: center;
}

.adgate-tag {
  display: inline-block;
  margin-bottom: 12px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-2);
  background: var(--accent-dim);
  box-shadow: inset 0 0 0 1px var(--accent-line);
}

.adgate-in h2 {
  margin: 0 0 8px;
  font-size: clamp(19px, 2.4vw, 25px);
  line-height: 1.22;
}

.adgate-txt {
  margin: 0 auto 18px;
  max-width: 44ch;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

.adgate-slots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.adgate-slots li {
  flex: 1 1 0;
  max-width: 108px;
  padding: 11px 6px;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 0 0 1px var(--hair-2);
}

.adgate-slots .n {
  display: block;
  font-size: 19px;
  font-weight: 800;
  line-height: 1;
  color: var(--muted);
}

.adgate-slots .w {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.adgate-slots li.next {
  background: var(--accent-dim);
  box-shadow: inset 0 0 0 1px var(--accent-line);
}

.adgate-slots li.next .n,
.adgate-slots li.next .w {
  color: var(--accent-2);
}

.adgate-slots li.done {
  background: rgba(255, 255, 255, 0.05);
}

.adgate-slots li.done .n {
  color: var(--fg);
}

.adgate-slots li.done .w {
  color: var(--accent-2);
}

.adgate-help {
  margin: 12px 0 0;
  font-size: 12px;
  color: var(--muted);
}

@media (max-width: 560px) {
  .player .adgate {
    padding: 10px;
  }

  .adgate-tag {
    margin-bottom: 6px;
    padding: 3px 9px;
    font-size: 10px;
  }

  .adgate-in h2 {
    margin: 0 0 4px;
    font-size: 15px;
  }

  .adgate-txt {
    margin: 0 0 7px;
    font-size: 11px;
    line-height: 1.45;
  }

  .adgate-slots {
    gap: 6px;
    margin: 0 0 8px;
  }

  .adgate-slots li {
    padding: 5px 4px;
    max-width: 76px;
  }

  .adgate-slots .n {
    font-size: 14px;
  }

  .adgate-slots .w {
    margin-top: 2px;
    font-size: 9.5px;
  }

  .adgate-in .btn {
    padding: 8px 16px;
    font-size: 13px;
  }

  .adgate-help {
    display: none;
  }
}

/* Ink banner above platforms & univers */
.section-ink-notice {
  margin-bottom: clamp(12px, 2.4vw, 20px);
}

.ink-banner {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(10px, 2.4vw, 16px);
  padding: clamp(12px, 2.8vw, 18px) clamp(14px, 3.4vw, 24px);
  border-radius: var(--r-2xl);
  background:
    radial-gradient(140% 95% at 50% -10%, rgba(255, 106, 44, .18), rgba(255, 106, 44, 0) 60%),
    linear-gradient(180deg, color-mix(in srgb, var(--surface-2) 94%, white 6%), var(--surface-1));
  box-shadow: inset 0 0 0 1px var(--hair), 0 18px 70px -30px rgba(0, 0, 0, .9);
}

.ink-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(90% 60% at 10% 0%, rgba(255, 255, 255, .12), rgba(255, 255, 255, 0) 70%),
    radial-gradient(80% 60% at 90% 100%, rgba(255, 106, 44, .22), rgba(255, 106, 44, 0) 70%);
  pointer-events: none;
}

.ink-banner-icon {
  width: clamp(48px, 6vw, 56px);
  height: clamp(48px, 6vw, 56px);
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: radial-gradient(120% 90% at 50% 20%, rgba(255, 106, 44, .32), rgba(255, 106, 44, .14));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 14px 50px -24px var(--accent);
  flex: 0 0 auto;
}

.ink-banner-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1 1 260px;
  min-width: 220px;
}

.ink-banner-title {
  font-size: clamp(1.04rem, 2.4vw, 1.28rem);
  font-weight: 800;
  letter-spacing: -.015em;
  line-height: 1.12;
}

.ink-banner-text {
  color: var(--text-muted);
  line-height: 1.7;
  font-size: clamp(.96rem, 2.1vw, 1rem);
}

.ink-banner-text a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.ink-banner-text a:hover {
  text-decoration: underline;
}

.ink-banner-btn {
  padding: clamp(9px, 2vw, 11px) clamp(14px, 3vw, 18px);
  border-radius: 999px;
  font-weight: 700;
  flex: 0 0 auto;
}

@media (max-width: 680px) {
  .ink-banner {
    text-align: center;
    flex-direction: column;
  }
  .ink-banner-content {
    align-items: center;
    min-width: 0;
    flex: 1 1 auto;
  }
}

/* Popup notice hakii.ink */
.notice-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(8, 8, 12, .94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 24px);
  animation: fade .2s var(--ease);
}

.notice-modal {
  position: relative;
  width: min(96vw, 560px);
  background: var(--surface-1);
  border: 1px solid var(--hair);
  border-radius: var(--r-2xl);
  box-shadow: 0 40px 140px -40px rgba(0, 0, 0, .95);
  padding: clamp(18px, 4vw, 28px);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 2vw, 16px);
  animation: pop .22s var(--ease);
}

.notice-icon {
  width: clamp(56px, 8vw, 64px);
  height: clamp(56px, 8vw, 64px);
  margin: 0 auto;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: radial-gradient(120% 90% at 50% 20%, rgba(255, 106, 44, .28), rgba(255, 106, 44, .12));
  color: var(--accent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 10px 40px -20px var(--accent);
}

.notice-title {
  font-size: clamp(1.15rem, 2.6vw, 1.6rem);
  font-weight: 800;
  letter-spacing: -.015em;
  line-height: 1.08;
}

.notice-text {
  color: var(--text-muted);
  line-height: 1.7;
  font-size: clamp(.98rem, 2.2vw, 1.02rem);
}

.notice-text a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.notice-text a:hover {
  text-decoration: underline;
}

.notice-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 10px;
  margin-top: clamp(4px, 2vw, 8px);
}

.notice-close {
  position: absolute;
  top: clamp(6px, 2vw, 8px);
  right: clamp(6px, 2vw, 8px);
  width: clamp(40px, 6vw, 44px);
  height: clamp(40px, 6vw, 44px);
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .1);
  backdrop-filter: blur(6px) saturate(1.08);
  -webkit-backdrop-filter: blur(6px) saturate(1.08);
  border: 1px solid var(--hair);
  color: #fff;
  cursor: pointer;
  transition: transform .16s var(--ease), background .16s var(--ease), box-shadow .16s var(--ease);
  box-shadow: 0 10px 40px -20px rgba(0, 0, 0, .9);
}

.notice-close:hover {
  background: rgba(255, 255, 255, .14);
  transform: scale(1.02);
}

.notice-close:active {
  transform: scale(.98);
}

@keyframes pop {
  from {
    opacity: 0;
    transform: translateY(6px) scale(.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.player-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85);
  transition: opacity 600ms var(--ease);
}

.player .loader {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: rgba(6, 6, 9, 0.5);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.player .loader.hide {
  display: none;
}

.loader-txt {
  color: #d5d6de;
  font-size: 13px;
  font-weight: 550;
}

.player-fail {
  position: absolute;
  z-index: 5;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 14px 16px;
  border-radius: var(--r);
  background: rgba(11, 11, 15, 0.93);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 0 0 1px var(--accent-line), var(--sh-2);
}

.player-fail[hidden] {
  display: none;
}

.player-fail b {
  font-size: 14px;
  font-weight: 720;
  letter-spacing: -0.01em;
}

.player-fail > span {
  color: var(--muted);
  font-size: 13px;
}

.fail-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 7px;
}

.resume {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 11px 14px;
  border-radius: var(--r-sm);
  border: 1px solid var(--hair-2);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 13.5px;
}

.resume svg {
  flex: 0 0 auto;
  color: var(--gold);
}

.resume span {
  flex: 1 1 auto;
}

.resume .btn {
  flex: 0 0 auto;
}

.ring {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.16);
  border-top-color: var(--accent);
  animation: spin 780ms linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.more-row {
  display: flex;
  justify-content: center;
  margin-top: 34px;
}

.switcher {
  display: inline-flex;
  gap: 3px;
  margin-top: 16px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px var(--hair);
}

.switcher .lang {
  padding: 8px 18px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  transition: background var(--fast), color var(--fast);
}

.switcher .lang:hover {
  color: var(--text);
}

.switcher .lang.on {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--hair-2);
}

.switcher .lang.off {
  color: var(--muted-2);
  cursor: not-allowed;
  opacity: 0.62;
}

.switcher .lang.off:hover {
  color: var(--muted-2);
}

.switcher .lang-x {
  display: block;
  margin-top: 1px;
  font-size: 10.5px;
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.02em;
  opacity: 0.72;
}

.switcher .lang.on .lang-x {
  color: var(--gold);
}

.player-note {
  margin: 12px 0 0;
  padding: 10px 14px;
  border-radius: var(--r-sm);
  border: 1px solid rgba(232, 188, 114, 0.22);
  background: rgba(232, 188, 114, 0.07);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.player-note b {
  color: var(--gold);
  font-weight: 600;
}

.seasons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.seasons button {
  min-width: 44px;
  padding: 8px 13px;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px var(--hair);
  color: var(--muted);
  font-size: 13px;
  font-weight: 620;
  transition: background var(--fast), color var(--fast), box-shadow var(--fast);
}

.seasons button:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.seasons button.on {
  color: #fff;
  background: rgba(255, 255, 255, 0.11);
  box-shadow: inset 0 0 0 1px var(--hair-2);
}

.below {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 380px);
  gap: clamp(20px, 3vw, 36px);
  margin-top: clamp(28px, 4vw, 46px);
  padding-bottom: 20px;
}

.eps-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  max-height: 560px;
  overflow-y: auto;
  padding-right: 4px;
}

.episodes {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 420px;
  overflow-y: auto;
  padding-right: 4px;
}

.ep {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 9px 11px;
  border-radius: var(--r);
  text-align: left;
  background: rgba(255, 255, 255, 0.028);
  box-shadow: inset 0 0 0 1px transparent;
  transition: background var(--fast), box-shadow var(--fast);
}

.ep:hover {
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px var(--hair);
}

.ep.on {
  background: rgba(255, 106, 44, 0.07);
  box-shadow: inset 0 0 0 1px var(--accent-line);
}

.ep img {
  flex: 0 0 auto;
  border-radius: 7px;
  opacity: 0;
  transition: opacity 400ms var(--ease);
}

.ep img.loaded {
  opacity: 1;
}

.ep .num {
  flex: 0 0 auto;
  width: 24px;
  color: var(--muted-2);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.ep.on .num {
  color: var(--accent-2);
}

.ep .txt {
  flex: 1 1 auto;
  min-width: 0;
}

.ep .txt b {
  display: block;
  overflow: hidden;
  font-size: 13.5px;
  font-weight: 620;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ep .txt span {
  display: block;
  overflow: hidden;
  color: var(--muted-2);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ep .txt .ov {
  display: -webkit-box;
  margin-top: 3px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  white-space: normal;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.ep.done .num {
  color: var(--gold);
}

.ep.done .txt b {
  color: var(--muted);
}

.ep .here {
  flex: 0 0 auto;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(232, 188, 114, 0.14);
  color: var(--gold);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .below {
    grid-template-columns: 1fr;
  }

  .eps-list {
    max-height: none;
  }
}

.about-head h1 {
  font-size: clamp(28px, 4.4vw, 46px);
  letter-spacing: -0.03em;
}

.about-head p {
  max-width: 62ch;
  margin-top: 12px;
  color: var(--muted);
  font-size: clamp(14.5px, 1.6vw, 16.5px);
  line-height: 1.68;
}

.about-facts {
  margin-top: 26px;
}

.about-facts .fact span {
  font-size: clamp(17px, 2.1vw, 22px);
  letter-spacing: -0.02em;
}

.about-sec {
  margin-top: clamp(38px, 6vw, 68px);
}

.about-h h2 {
  font-size: clamp(21px, 2.6vw, 30px);
  font-weight: 760;
  letter-spacing: -0.025em;
}

.about-h p {
  margin-top: 6px;
  color: var(--muted-2);
  font-size: 14px;
}

.about-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
  grid-auto-rows: 1fr;
  gap: 12px;
  margin-top: 22px;
}

.about-card {
  padding: 20px 20px 22px;
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.022);
  box-shadow: inset 0 0 0 1px var(--hair);
  transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease),
    background 0.25s var(--ease);
}

.about-card:hover {
  background: rgba(255, 255, 255, 0.038);
  box-shadow: inset 0 0 0 1px var(--hair-2), var(--sh-2);
  transform: translateY(-2px);
}

.about-ico {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 14px;
  border-radius: var(--r-sm);
  background: var(--accent-dim);
  color: var(--accent);
}

.about-ico svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.about-card h3 {
  font-size: 15.5px;
  font-weight: 680;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.about-card p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13.8px;
  line-height: 1.7;
}

.about-rules {
  display: grid;
  gap: 10px;
  max-width: 820px;
  margin-top: 22px;
}

.about-rules li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 17px;
  border-radius: var(--r);
  background: rgba(255, 255, 255, 0.018);
  box-shadow: inset 0 0 0 1px var(--hair);
  color: #d2d4de;
  font-size: 14.2px;
  line-height: 1.62;
}

.about-rules svg {
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 3px;
  fill: var(--accent);
}

.about-join {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: clamp(14px, 2.4vw, 24px);
  align-items: center;
  padding: clamp(18px, 2.6vw, 28px);
  border-radius: var(--r-lg);
  background:
    radial-gradient(130% 180% at 0% 0%, rgba(255, 106, 44, 0.08), transparent 60%),
    rgba(255, 255, 255, 0.022);
  box-shadow: inset 0 0 0 1px var(--hair);
}

.about-join-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: var(--r);
  background: var(--accent-dim);
  color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent-line);
}

.about-join-mark svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.about-join-txt h2 {
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 740;
  letter-spacing: -0.02em;
}

.about-join-txt p {
  margin-top: 7px;
  max-width: 58ch;
  color: var(--muted);
  font-size: 13.8px;
  line-height: 1.66;
}

.about-legal {
  max-width: 82ch;
  margin-top: 20px;
  font-size: 13.6px;
  color: var(--muted-2);
}

.about-legal .linkmore {
  color: var(--accent);
}

@media (max-width: 760px) {
  .about-join {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .about-join .btn {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

.sponsor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(14px, 2.4vw, 26px);
  align-items: center;
  margin-top: clamp(34px, 5vw, 60px);
  padding: clamp(18px, 2.6vw, 30px);
  border-radius: var(--r-lg);
  background:
    radial-gradient(120% 160% at 0% 0%, rgba(255, 106, 44, 0.07), transparent 62%),
    rgba(255, 255, 255, 0.022);
  box-shadow: inset 0 0 0 1px var(--hair);
}

.sponsor-top {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 14px;
}

.sponsor-mark {
  display: grid;
  flex: none;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: var(--r);
  background: var(--accent-dim);
  color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent-line);
}

.sponsor-mark svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.sponsor .lbl {
  color: var(--muted-2);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.sponsor-t {
  margin: 3px 0 0;
  font-size: clamp(19px, 2.3vw, 25px);
  font-weight: 760;
  letter-spacing: -0.02em;
}

.sponsor p {
  grid-column: 1;
  max-width: 62ch;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.68;
}

.sponsor-tags {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.sponsor-tags .chip {
  color: var(--muted);
}

.sponsor > .btn {
  grid-column: 2;
  grid-row: 2;
  white-space: nowrap;
}

@media (max-width: 720px) {
  .sponsor {
    grid-template-columns: minmax(0, 1fr);
  }

  .sponsor > * {
    min-width: 0;
  }

  .sponsor > .btn {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
    max-width: 100%;
    white-space: normal;
    text-align: center;
  }
}

.footer {
  position: relative;
  z-index: 1;
  margin-top: clamp(50px, 8vw, 110px);
  padding-block: clamp(36px, 5vw, 60px);
  background: var(--bg-2);
  border-top: 1px solid var(--hair);
}

.footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255, 106, 44, 0.4), transparent);
  opacity: 0.5;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(2, minmax(130px, 0.7fr)) minmax(260px, 1.7fr);
  gap: clamp(24px, 3.4vw, 48px);
}

.brandfooter img {
  height: 34px;
  width: auto;
  border-radius: 10px;
  transition: transform var(--fast), filter var(--fast);
}

.brandfooter:hover img {
  transform: scale(1.05);
  filter: brightness(1.1);
}

.footer p {
  margin-top: 14px;
  max-width: 42ch;
  color: var(--muted-2);
  font-size: 13px;
  line-height: 1.7;
}

.footer h4 {
  margin-bottom: 12px;
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer li + li {
  margin-top: 8px;
}

.footer a {
  color: var(--muted);
  font-size: 13.5px;
  transition: color var(--fast);
}

.footer a:hover {
  color: var(--accent-2);
}

.footer .legal p {
  max-width: 62ch;
  margin-top: 0;
  font-size: 12px;
  line-height: 1.72;
}

.footer .legal b {
  color: var(--muted);
  font-weight: 650;
}

.footer .tmdb {
  color: var(--muted);
  font-weight: 650;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer .legal {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.toasts {
  position: fixed;
  right: clamp(12px, 2.5vw, 26px);
  bottom: clamp(12px, 2.5vw, 26px);
  z-index: 400;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: min(340px, calc(100vw - 32px));
  padding: 12px 16px;
  border-radius: var(--r);
  background: linear-gradient(135deg, rgba(26, 28, 36, 0.96), rgba(15, 16, 21, 0.94));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 0 0 1px var(--hair-2), inset 0 0 0 1px rgba(255, 106, 44, 0.16), var(--sh-2);
  color: var(--text);
  font-size: 13.5px;
  font-weight: 550;
  opacity: 0;
  transform: translateY(12px) scale(0.97);
  animation: toastIn 320ms var(--ease) forwards;
}

.toast svg {
  flex: 0 0 auto;
  color: var(--accent);
}

.toast.out {
  animation: toastOut 300ms var(--ease) forwards;
}

@keyframes toastIn {
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes toastOut {
  to {
    opacity: 0;
    transform: translateY(8px) scale(0.97);
  }
}

@media (max-width: 760px) {
  .ambience .blob {
    filter: blur(70px);
  }

  .blob.b2,
  .blob.b3 {
    display: none;
  }

  .grain {
    display: none;
  }

  .section {
    content-visibility: auto;
    contain-intrinsic-size: auto 360px;
  }
}

@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;
  }
}

/* Paramètres */
.settings {
  position: fixed;
  inset: 0;
  z-index: 210;
  visibility: hidden;
  pointer-events: none;
}

.settings.open {
  visibility: visible;
  pointer-events: auto;
}

.settings .scrim {
  opacity: 0;
}

.settings.open .scrim {
  opacity: 1;
}

.settings-panel {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(520px, calc(100vw - 28px));
  max-height: min(88vh, 760px);
  overflow-y: auto;
  overscroll-behavior: contain;
  border-radius: var(--r-xl);
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 16%);
  box-shadow: inset 0 0 0 1px var(--hair-2), 0 0 90px -34px rgba(255, 106, 44, 0.3), var(--sh-3);
  opacity: 0;
  transform: translate(-50%, calc(-50% + 20px)) scale(0.985);
  transition: opacity var(--slow), transform var(--slow);
}

.settings.open .settings-panel {
  opacity: 1;
  transform: translate(-50%, -50%);
}

.settings-head {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 24px 18px;
  background: color-mix(in srgb, var(--bg-2) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.settings-head::after {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255, 106, 44, 0.4), transparent);
}

.settings-head h2 {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.settings-head h2 .hico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 6px 16px -6px rgba(255, 106, 44, 0.7), inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.settings-head h2 .hico svg {
  width: 17px;
  height: 17px;
}

.settings-head .close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(28, 30, 40, 0.88), rgba(10, 10, 14, 0.86));
  box-shadow: inset 0 0 0 1px var(--hair-2), 0 6px 18px -8px rgba(0, 0, 0, 0.7);
  color: var(--text);
  transition: background var(--fast), transform var(--fast), box-shadow var(--fast), color var(--fast);
}

.settings-head .close svg {
  width: 15px;
  height: 15px;
}

.settings-head .close:hover {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  transform: rotate(90deg);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25), 0 0 24px -6px var(--accent);
}

.settings-body {
  padding: 16px 24px 26px;
}

.set-sec + .set-sec {
  margin-top: 14px;
}

.set-sec {
  padding: 16px 16px 18px;
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--hair), 0 10px 26px -18px rgba(0, 0, 0, 0.8);
}

.set-sec h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 13px;
}

.set-sec h3::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(255, 106, 44, 0.7);
}

.seg {
  display: inline-flex;
  width: 100%;
  background: var(--bg);
  box-shadow: inset 0 0 0 1px var(--hair-2), inset 0 2px 6px -4px rgba(0, 0, 0, 0.6);
  border-radius: 14px;
  padding: 4px;
  gap: 4px;
}

.seg button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 600;
  font-size: 13.5px;
  flex: 1 1 0;
  padding: 10px 16px;
  border-radius: 10px;
  cursor: pointer;
  transition: background var(--fast), color var(--fast), box-shadow var(--fast), transform var(--fast);
  -webkit-tap-highlight-color: transparent;
}

.seg button.on {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #1a0d05;
  font-weight: 700;
  box-shadow: 0 6px 16px -6px rgba(255, 106, 44, 0.65), inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.seg button:not(.on):hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.seg button:not(.on):active {
  transform: scale(0.98);
}

.set-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.set-actions .btn {
  gap: 8px;
}

.set-note {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: var(--r);
  background: var(--accent-dim);
  box-shadow: inset 0 0 0 1px var(--accent-line);
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--muted);
}

/* ==========================================================================
   Correctifs mobile
   ========================================================================== */

/* Hauteur de viewport fiable (barres d'URL mobiles qui se replient) */
body {
  min-height: 100vh;
  min-height: 100dvh;
}

/* Encoches et barre d'accueil : respecter les zones sûres */
.nav {
  padding-top: max(var(--nav-gap), env(safe-area-inset-top, 0px));
  padding-left: max(var(--pad), env(safe-area-inset-left, 0px));
  padding-right: max(var(--pad), env(safe-area-inset-right, 0px));
}

.footer {
  padding-bottom: max(clamp(36px, 5vw, 60px), env(safe-area-inset-bottom, 0px));
}

.toasts {
  right: max(clamp(12px, 2.5vw, 26px), env(safe-area-inset-right, 0px));
  bottom: max(clamp(12px, 2.5vw, 26px), env(safe-area-inset-bottom, 0px));
}

/* Tap : moins de latence, pas de surbrillance bleue disgracieuse */
a,
button,
[role="button"] {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

/* iOS : champs >= 16px pour éviter le zoom automatique au focus */
@media (max-width: 900px) {
  .searchbox input,
  .toolbar .grow input {
    font-size: 16px;
  }
}

/* Menu déroulant mobile : ne jamais dépasser l'écran */
@media (max-width: 900px) {
  .navlinks {
    max-height: calc(100dvh - 110px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* Barre de navigation : recherche flexible, plus aucun débordement horizontal */
@media (max-width: 640px) {
  .nav .wrap {
    gap: 8px;
    padding: 6px 8px 6px 10px;
  }

  .navright {
    flex: 1 1 auto;
    min-width: 0;
    gap: 5px;
  }

  .searchbox {
    flex: 1 1 auto;
    min-width: 0;
    height: 36px;
  }

  .searchbox input {
    width: 100%;
    min-width: 0;
  }

  .searchbox input:focus {
    width: 100%;
  }

  .iconbtn {
    width: 36px;
    height: 36px;
  }
}

@media (max-width: 400px) {
  .navright {
    gap: 2px;
  }

  .brand img {
    height: 30px;
  }

  .iconbtn {
    width: 34px;
    height: 34px;
  }
}

/* Zones tactiles plus généreuses sur écran tactile */
@media (hover: none) {
  .card .fav {
    width: 34px;
    height: 34px;
  }

  .searchbox .clear {
    width: 30px;
    height: 30px;
  }
}

/* Détail / réglages : feuille ancrée en bas, plus de contenu hors écran */
@media (max-width: 760px) {
  .modal .sheet {
    top: auto;
    bottom: 0;
    left: 0;
    width: 100%;
    max-height: 92dvh;
    border-radius: var(--r-xl) var(--r-xl) 0 0;
    transform: translateY(26px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  .modal.open .sheet {
    transform: translateY(0);
  }

  .modal .close {
    top: 10px;
    right: 10px;
  }

  .settings-panel {
    max-height: 90dvh;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
}

/* Inertie de défilement iOS sur les rails horizontaux */
.row-track,
.marques-track,
.eps-list,
.episodes {
  -webkit-overflow-scrolling: touch;
}
