:root {
  --background: #05070a;
  --surface-1: #0b0f14;
  --surface-2: #141922;
  --surface-3: #1d2430;
  --border-subtle: #1d2430;
  --border-strong: #2a3242;
  --text-primary: #eef1f6;
  --text-muted: #8a94a6;
  --primary: #dc2626;
  --primary-hi: #ef4444;
  --accent-hi: #f87171;
  --star: #fbbf24;
  --header-h: 68px;
  --dock-h: 64px;
  --font: Inter, system-ui, "Segoe UI", sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overscroll-behavior-x: none; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  background: var(--background);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--dock-h) + 16px);
}
@media (min-width: 900px) {
  body { padding-bottom: 40px; }
  :root { --header-h: 80px; }
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, select, input { font: inherit; color: inherit; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

.layout-container {
  width: 100%;
  margin-inline: auto;
  padding-inline: 24px;
}
@media (min-width: 768px) { .layout-container { padding-inline: 48px; } }
@media (min-width: 1200px) { .layout-container { padding-inline: 80px; } }
@media (min-width: 1600px) { .layout-container { padding-inline: 96px; } }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 40;
  pointer-events: none;
}
.header-fade {
  position: absolute; inset: 0 0 auto 0; height: 96px;
  background: linear-gradient(180deg, rgba(5,7,10,.92) 0%, rgba(5,7,10,.55) 40%, rgba(5,7,10,.13) 79%, transparent 100%);
  opacity: 0; transition: opacity .25s ease; pointer-events: none;
}
.site-header.is-scrolled .header-fade,
.site-header.is-solid .header-fade { opacity: 1; }
.header-inner {
  pointer-events: auto;
  position: relative;
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h); gap: 16px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  z-index: 2; flex-shrink: 0;
  filter: drop-shadow(0 2px 10px rgba(0,0,0,.55));
}
.brand-mark { height: 32px; width: auto; }
@media (min-width: 768px) { .brand-mark { height: 36px; } }
.brand-word {
  font-weight: 800; letter-spacing: .08em; font-size: 1.05rem;
  color: #fff;
}
.main-nav {
  display: none; align-items: center; gap: 6px;
  position: absolute; left: 50%; transform: translateX(-50%);
}
@media (min-width: 900px) { .main-nav { display: inline-flex; } }
.nav-pill {
  display: inline-flex; align-items: center; height: 32px;
  padding: 0 12px; border-radius: 999px; font-size: 14px; font-weight: 500;
  color: rgba(238,241,246,.78); transition: background .15s, color .15s;
}
.nav-pill:hover { color: #fff; background: rgba(255,255,255,.06); }
.nav-pill.is-active {
  color: #fff; background: rgba(220,38,38,.18);
  box-shadow: inset 0 0 0 1px rgba(220,38,38,.35);
}
.header-actions { display: flex; gap: 8px; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 10px;
  border: 1px solid rgba(238,241,246,.12); background: rgba(11,15,20,.55);
  color: var(--text-primary); cursor: pointer; transition: .15s;
}
.icon-btn:hover { border-color: rgba(238,241,246,.28); background: rgba(20,25,34,.85); }

/* Hero */
.hero {
  position: relative;
  height: 70vh; min-height: 420px; max-height: 920px;
  background: var(--background);
  user-select: none;
}
@media (min-width: 900px) { .hero { height: 85vh; } }
.hero-track, .hero-slide {
  position: absolute; inset: 0; overflow: hidden;
}
.hero-slide {
  background-size: cover; background-position: center 20%;
  opacity: 0; transform: scale(1.04);
  transition: opacity .7s ease, transform 1.1s cubic-bezier(.22,1,.36,1);
  pointer-events: none;
}
.hero-slide.is-active {
  opacity: 1; transform: scale(1); pointer-events: auto; z-index: 1;
}
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(5,7,10,.92) 0%, rgba(5,7,10,.55) 42%, rgba(5,7,10,.18) 70%, transparent 100%),
    linear-gradient(0deg, var(--background) 0%, transparent 42%),
    linear-gradient(180deg, rgba(5,7,10,.55) 0%, transparent 28%);
}
.hero-copy {
  position: absolute; left: 0; right: 0; bottom: 18%;
  z-index: 2; max-width: 720px; margin-left: 0;
  padding-bottom: 24px;
}
.hero-logo {
  max-width: min(420px, 70vw); max-height: 120px; width: auto; height: auto;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,.55));
  object-fit: contain; object-position: left center;
}
.hero-title {
  margin: 0; font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800;
  letter-spacing: -.02em; text-shadow: 0 2px 18px rgba(0,0,0,.65);
}
.hero-attrs {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 0 0; margin-top: 14px; font-size: 13px; font-weight: 500;
  color: rgba(255,255,255,.92); text-shadow: 0 1px 3px rgba(0,0,0,.55);
}
@media (min-width: 768px) { .hero-attrs { margin-top: 16px; font-size: 15px; } }
.fact { display: inline-flex; align-items: center; }
.fact-dot { color: rgba(255,255,255,.38); margin: 0 10px; }
.fact.rating .star, .star { color: var(--star); margin-right: 4px; }
.fact.cert {
  border: 1px solid rgba(255,255,255,.35); border-radius: 4px;
  padding: 1px 6px; font-size: 12px;
}
.hero-overview {
  margin: 14px 0 0; max-width: 540px; color: rgba(238,241,246,.82);
  font-size: 15px; line-height: 1.55; text-shadow: 0 1px 8px rgba(0,0,0,.5);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 18px; border-radius: 10px; font-weight: 600; font-size: 15px;
  border: 1px solid transparent; cursor: pointer; transition: transform .12s, background .15s, border-color .15s;
}
.btn:active { transform: scale(.97); }
.btn-sm { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hi); }
.btn-ghost {
  background: rgba(238,241,246,.12); border-color: rgba(238,241,246,.14); color: #fff;
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: rgba(238,241,246,.2); border-color: rgba(238,241,246,.28); }
/* Hero markers use orig HomeBanner __marker / __marker:after line styles — do not force dots. */
.hero-fade-bottom {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 120px; z-index: 2;
  background: linear-gradient(to top, var(--background), transparent);
  pointer-events: none;
}

/* TOP 10 */
.top10 { margin-top: -40px; position: relative; z-index: 3; }
.rail-head { margin-bottom: 14px; }
.rail-head.tight { margin-bottom: 12px; }
.rail-title { margin: 0; font-size: 1.35rem; font-weight: 700; letter-spacing: -.01em; }
.rail-sub { margin: 4px 0 0; color: var(--text-muted); font-size: 14px; }
.top10-grid {
  display: grid; gap: 12px;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .top10-grid { grid-template-columns: 1.15fr 1.6fr; align-items: stretch; }
}
.feature-card {
  position: relative; isolation: isolate; overflow: hidden;
  border: 1px solid var(--border-subtle); background: var(--surface-1);
  border-radius: 10px; min-height: 280px; color: inherit;
  display: flex; flex-direction: column;
  transition: border-color .2s;
}
.feature-card:hover { border-color: rgba(238,241,246,.22); }
.feature-wall { position: absolute; inset: 0; overflow: hidden; z-index: 0; }
.feature-wall img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 20%;
  transform: scale(1.02); transition: transform .55s cubic-bezier(.22,1,.36,1);
}
.feature-card:hover .feature-wall img { transform: scale(1.06); }
.feature-wall::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(#05070a99 0%, #05070acc 55%, #05070af0 100%);
}
.feature-body {
  position: relative; z-index: 1; display: flex; gap: 14px; align-items: flex-end;
  padding: 20px; margin-top: auto;
}
.rank-lg {
  font-size: 4.5rem; font-weight: 800; line-height: .85;
  color: rgba(255,255,255,.92); text-shadow: 0 8px 24px rgba(0,0,0,.5);
}
.feature-body h3 { margin: 0 0 4px; font-size: 1.35rem; }
.feature-body p { margin: 0 0 12px; color: rgba(238,241,246,.72); font-size: 14px; }
.feature-actions { display: flex; gap: 8px; }
.top10-side {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
@media (min-width: 1100px) {
  .top10-side { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
}
@media (max-width: 699px) {
  .top10-side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Cards */
.movie-card {
  display: flex; flex-direction: column; height: 100%; color: var(--text-primary);
  position: relative;
}
.movie-card-image {
  position: relative; border-radius: 10px; overflow: hidden;
  border: 1px solid rgba(238,241,246,.08);
  background: linear-gradient(135deg, var(--surface-1), var(--surface-2));
  aspect-ratio: 2 / 3;
  transition: border-color .15s;
}
.movie-card:hover .movie-card-image { border-color: rgba(238,241,246,.22); }
.movie-card-poster {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .35s cubic-bezier(.22,1,.36,1);
}
.movie-card:hover .movie-card-poster { transform: scale(1.06); }
.rank-badge {
  position: absolute; left: 8px; top: 8px; z-index: 2;
  width: 28px; height: 28px; border-radius: 8px;
  display: grid; place-items: center;
  background: rgba(5,7,10,.82); border: 1px solid rgba(255,255,255,.18);
  font-weight: 800; font-size: 13px;
}
.rating-chip {
  position: absolute; right: 8px; bottom: 8px; z-index: 2;
  display: inline-flex; align-items: center; gap: 3px;
  padding: 3px 7px; border-radius: 999px;
  background: rgba(5,7,10,.78); font-size: 12px; font-weight: 600;
  border: 1px solid rgba(255,255,255,.12);
}
.movie-card-meta { padding: 8px 2px 0; }
.movie-card-title {
  margin: 0; font-size: 14px; font-weight: 600; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.movie-card-sub {
  margin: 4px 0 0; color: var(--text-muted); font-size: 12px;
  display: flex; flex-wrap: wrap; gap: 4px; align-items: center;
}
.movie-card-sub .dot { opacity: .5; }

/* Rails */
.rail { margin: 28px 0; }
.scroll-row { position: relative; }
.scroll-row.bleed { --row-inset: 24px; }
@media (min-width: 768px) { .scroll-row.bleed { --row-inset: 48px; } }
@media (min-width: 1200px) { .scroll-row.bleed { --row-inset: 80px; } }
.scroll-track {
  display: flex; align-items: stretch; gap: 10px;
  overflow-x: auto; scrollbar-width: none;
  padding-inline: var(--row-inset, 0);
  margin-inline: calc(var(--row-inset, 0px) * -1);
  scroll-snap-type: x proximity;
  cursor: grab;
}
.scroll-track::-webkit-scrollbar { display: none; }
.scroll-item {
  flex: none; width: 132px;
  scroll-snap-align: start;
}
@media (min-width: 700px) { .scroll-item { width: 156px; } }
@media (min-width: 1100px) { .scroll-item { width: 172px; } }
.scroll-item.wide { width: 260px; }
@media (min-width: 700px) { .scroll-item.wide { width: 300px; } }
.row-arrow {
  position: absolute; top: 0; bottom: 28px; z-index: 4;
  width: 42px; border: 0; cursor: pointer;
  background: linear-gradient(90deg, var(--background), transparent);
  color: #fff; display: none; align-items: center; justify-content: center;
}
.row-arrow-right {
  right: 0; background: linear-gradient(270deg, var(--background), transparent);
}
.row-arrow-left { left: 0; }
@media (min-width: 900px) {
  .scroll-row:hover .row-arrow:not([hidden]) { display: inline-flex; }
}

.episode-card { display: block; color: inherit; }
.episode-art {
  border-radius: 10px; overflow: hidden; aspect-ratio: 16/9;
  border: 1px solid rgba(238,241,246,.08); background: var(--surface-2);
}
.episode-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.episode-card:hover .episode-art img { transform: scale(1.05); }
.episode-meta { padding: 8px 2px 0; }
.episode-meta h3 { margin: 0; font-size: 14px; font-weight: 600; }
.episode-meta p { margin: 4px 0 0; color: var(--text-muted); font-size: 12px; }

/* Providers */
.providers { margin: 28px 0 8px; }
.provider-rail {
  display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none;
  padding: 2px 2px 10px;
}
@media (min-width: 1000px) {
  .provider-rail {
    display: grid; grid-template-columns: repeat(7, minmax(0,1fr));
    overflow: visible; padding: 0 0 12px;
  }
}
.provider-rail::-webkit-scrollbar { display: none; }
.provider-tile {
  flex: none; min-width: 120px; height: 64px; border-radius: 12px;
  border: 1px solid rgba(238,241,246,.07); background: rgba(11,15,20,.6);
  cursor: pointer; font-weight: 600; font-size: 14px;
  transition: .12s;
}
@media (min-width: 1000px) { .provider-tile { min-width: 0; height: 72px; } }
.provider-tile:hover { background: rgba(20,25,34,.65); border-color: rgba(238,241,246,.16); }
.provider-tile.is-active {
  background: rgba(220,38,38,.16);
  border-color: rgba(220,38,38,.45);
  box-shadow: inset 0 0 0 1px rgba(220,38,38,.2);
}
.provider-panel { margin-top: 4px; }
.provider-panel[hidden] { display: none !important; }
.empty-soft { color: var(--text-muted); font-size: 14px; }

/* Browse / search */
.browse-page { padding-top: calc(var(--header-h) + 24px); padding-bottom: 40px; }
.browse-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 16px; margin-bottom: 22px;
}
.browse-head h1 { margin: 0; font-size: clamp(1.8rem, 4vw, 2.4rem); font-weight: 800; }
.browse-filters, .search-page-form { display: flex; gap: 10px; flex-wrap: wrap; }
.browse-filters select,
.search-page-form input {
  height: 40px; border-radius: 10px; padding: 0 12px;
  background: var(--surface-1); border: 1px solid var(--border-subtle);
}
.search-page-form input { min-width: min(320px, 70vw); }
.browse-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 10px;
}
@media (min-width: 600px) { .browse-grid { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (min-width: 900px) { .browse-grid { grid-template-columns: repeat(5, minmax(0,1fr)); gap: 18px 14px; } }
@media (min-width: 1200px) { .browse-grid { grid-template-columns: repeat(6, minmax(0,1fr)); } }
.pager {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  margin-top: 28px;
}
.pager-status { color: var(--text-muted); font-size: 14px; }

/* Detail */
.detail-hero {
  position: relative; padding-top: calc(var(--header-h) + 20px);
  padding-bottom: 40px; overflow: hidden;
}
.detail-hero-bg {
  position: absolute; inset: 0;
  background-image: var(--bg); background-size: cover; background-position: center 20%;
  filter: blur(0);
}
.detail-hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(5,7,10,.94) 0%, rgba(5,7,10,.72) 45%, rgba(5,7,10,.4) 70%, rgba(5,7,10,.55) 100%),
    linear-gradient(0deg, var(--background) 0%, transparent 45%),
    linear-gradient(180deg, rgba(5,7,10,.5), transparent 30%);
}
.detail-hero-inner {
  position: relative; z-index: 1;
  display: grid; gap: 24px; align-items: end;
}
@media (min-width: 800px) {
  .detail-hero-inner { grid-template-columns: 220px 1fr; gap: 36px; }
}
.detail-poster {
  width: 180px; border-radius: 12px;
  border: 1px solid rgba(238,241,246,.12);
  box-shadow: 0 20px 50px rgba(0,0,0,.45);
}
@media (min-width: 800px) { .detail-poster { width: 220px; } }
.detail-logo { max-width: min(420px, 80%); max-height: 110px; object-fit: contain; object-position: left; }
.detail-copy h1 { margin: 0; font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; }
.detail-cats { margin: 10px 0 0; color: var(--text-muted); font-size: 14px; }
.detail-overview { margin: 14px 0 0; max-width: 640px; line-height: 1.6; color: rgba(238,241,246,.88); }
.detail-crew { margin: 12px 0 0; color: var(--text-muted); font-size: 14px; }
.detail-crew strong { color: var(--text-primary); margin-right: 6px; }

.episodes-block, .cast-block { margin: 28px auto; }
.season-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px;
}
.season-bar h2, .cast-block h2 { margin: 0; font-size: 1.25rem; }
.season-form select {
  height: 38px; border-radius: 10px; padding: 0 12px;
  background: var(--surface-1); border: 1px solid var(--border-subtle);
}
.episode-list { display: grid; gap: 10px; }
/* Legacy ep-row grid kept for older markup; bridge.css overrides for Movy list rows */
.ep-row:hover { border-color: rgba(238,241,246,.2); background: rgba(20,25,34,.7); }
.ep-still {
  position: relative; border-radius: 8px; overflow: hidden; aspect-ratio: 16/9; background: var(--surface-2);
}
.ep-still img { width: 100%; height: 100%; object-fit: cover; }
.ep-num {
  position: absolute; left: 6px; bottom: 6px;
  background: rgba(5,7,10,.8); border-radius: 6px; padding: 2px 6px; font-size: 12px; font-weight: 700;
}
.ep-info h3 { margin: 0 0 4px; font-size: 15px; }
.ep-info p { margin: 0; color: var(--text-muted); font-size: 13px; line-height: 1.45; }
.cast-row {
  display: flex; gap: 12px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none;
}
.cast-row::-webkit-scrollbar { display: none; }
.cast-card {
  flex: none; width: 110px; text-align: center; font-size: 12px; color: var(--text-muted);
}
.cast-card img {
  width: 110px; height: 110px; object-fit: cover; border-radius: 999px;
  border: 1px solid rgba(238,241,246,.1); margin-bottom: 8px; background: var(--surface-2);
}
.cast-card strong { display: block; color: var(--text-primary); font-size: 13px; }

/* Trailer modal */
.trailer-modal[hidden], .search-modal[hidden] { display: none !important; }
.trailer-modal, .search-modal {
  position: fixed; inset: 0; z-index: 80;
}
.trailer-backdrop, .search-modal-backdrop {
  position: absolute; inset: 0; background: rgba(0,0,0,.72); backdrop-filter: blur(6px);
}
.trailer-panel {
  position: relative; width: min(960px, calc(100% - 32px));
  margin: 10vh auto 0; aspect-ratio: 16/9; background: #000; border-radius: 12px; overflow: hidden;
}
.trailer-frame, .trailer-frame iframe { width: 100%; height: 100%; border: 0; }
.trailer-close {
  position: absolute; top: -40px; right: 0; z-index: 2;
  background: transparent; border: 0; color: #fff; cursor: pointer; font-weight: 600;
}

.search-modal-panel {
  position: relative; width: min(720px, calc(100% - 24px));
  margin: 12vh auto 0; background: var(--surface-1);
  border: 1px solid var(--border-strong); border-radius: 16px;
  box-shadow: 0 30px 80px rgba(0,0,0,.55); overflow: hidden;
}
.search-form {
  display: flex; align-items: center; gap: 10px; padding: 14px 16px;
  border-bottom: 1px solid var(--border-subtle);
}
.search-form input {
  flex: 1; border: 0; outline: none; background: transparent; font-size: 17px; height: 36px;
}
.search-close {
  border: 1px solid var(--border-subtle); background: var(--surface-2);
  border-radius: 8px; padding: 4px 8px; font-size: 12px; cursor: pointer; color: var(--text-muted);
}
.search-live { max-height: 50vh; overflow: auto; }
.search-hit {
  display: flex; gap: 12px; align-items: center; padding: 10px 16px;
  border-bottom: 1px solid rgba(238,241,246,.05);
}
.search-hit:hover { background: rgba(255,255,255,.03); }
.search-hit img { width: 42px; height: 63px; object-fit: cover; border-radius: 6px; background: var(--surface-2); }
.search-hit strong { display: block; font-size: 14px; }
.search-hit span { color: var(--text-muted); font-size: 12px; }

/* Watch — fullscreen Chillflix player host */
body.page-watch { padding-bottom: 0; background: #000; overflow: hidden; }
.watch-shell {
  position: fixed; inset: 0; z-index: 100;
  min-height: 100dvh; display: flex; flex-direction: column;
  background: #000;
}
.watch-frame { flex: 1; min-height: 0; width: 100%; height: 100%; }
.watch-frame iframe { display: block; width: 100%; height: 100%; border: 0; background: #000; }

/* Footer */
.site-footer {
  margin-top: 48px; padding: 28px 0 24px;
  border-top: 1px solid var(--border-subtle); color: var(--text-muted); font-size: 13px;
}
.footer-note { margin: 0 0 14px; max-width: 820px; line-height: 1.55; }
.footer-meta { display: flex; flex-wrap: wrap; gap: 12px 20px; justify-content: space-between; }
.footer-links { display: inline-flex; gap: 14px; }
.footer-links a:hover { color: var(--text-primary); }

/* Mobile dock */
.mobile-dock {
  position: fixed; left: 0; right: 0; bottom: 10px; z-index: 50;
  display: flex; justify-content: center; pointer-events: none;
}
@media (min-width: 900px) { .mobile-dock { display: none; } }
.dock-panel {
  pointer-events: auto;
  display: flex; align-items: flex-end; gap: 8px;
  padding: 8px 10px; border-radius: 18px;
  background: rgba(23,23,23,.8);
  border: 1px solid rgba(255,255,255,.1);
  backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 16px 40px rgba(0,0,0,.45);
}
.dock-item {
  width: auto; height: auto; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.55);
  background: transparent;
  border: 0; cursor: pointer;
}
.dock-item.is-active, .dock-item:hover {
  color: #fff; background: transparent; border: 0;
}

/* Watchlist page (movy.sx match) */
.page-watchlist #main {
  min-height: 100dvh;
}
.wl-page {
  padding-top: calc(var(--header-h) + 8px);
  min-height: calc(100dvh - 88px);
}
.wl-create-wrap:not(.is-open),
.wl-create-wrap[hidden] {
  display: none !important;
  height: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
  opacity: 0;
  pointer-events: none;
}
.wl-create-wrap.is-open {
  display: block !important;
  height: auto !important;
  max-height: 5.5rem;
  overflow: visible;
  opacity: 1;
  pointer-events: auto;
}
.wl-icon-btn { cursor: pointer; }
.wl-list-toggle { cursor: pointer; background: none; border: 0; padding: 0; color: inherit; }

/* New List / Create — orig is white pill + #0b0f14 text. Global `button { color: inherit }`
   was leaving light body text on the white fill (washed-out plus/label). */
#wlNewListBtn.wl-new-btn {
  cursor: pointer;
  border: 0;
  background: #ffffff !important;
  color: #0b0f14 !important;
}
#wlNewListBtn.wl-new-btn svg {
  stroke: currentColor !important;
  color: inherit !important;
}
#wlNewListBtn.wl-new-btn[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.06) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.20) !important;
}
#wlNewListBtn.wl-new-btn[aria-expanded="true"] [data-wl-plus] { display: none !important; }
#wlNewListBtn.wl-new-btn:not([aria-expanded="true"]) [data-wl-close] { display: none !important; }

#wlCreateBtn {
  cursor: pointer;
  border: 0;
  background: #ffffff !important;
  color: #0b0f14 !important;
}
#wlCreateBtn:disabled {
  opacity: 0.4;
  background: #ffffff !important;
  color: #0b0f14 !important;
}
#wlRandomName { cursor: pointer; border: 0; background: transparent; }

#wlMenu {
  position: fixed;
  z-index: 200;
  width: 236px;
  overflow: hidden;
}
#wlMenu[hidden] { display: none !important; }
.wl-menu-item { cursor: pointer; border: 0; background: transparent; color: inherit; }
#wlMenu button { cursor: pointer; }
#wlMenu input { color: #fff !important; }

.wl-composer-pill {
  background: rgba(0, 0, 0, 0.45);
}
#wlMenu [data-wl-composer] input {
  color: #fff !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
#wlMenu [data-wl-new] {
  border: 0;
  background: transparent;
  color: rgba(255,255,255,0.9);
}

.page-history #main { min-height: 100dvh; }
#histTools[hidden],
#histSearchBtn[hidden],
#histEditBtn[hidden],
#histClearBtn[hidden],
#histDoneBtn[hidden],
#histSearchField[hidden],
#histGrid[hidden],
#histEmpty[hidden],
#histClearModal[hidden] { display: none !important; }

.hist-page .wl-icon-btn {
  display: flex;
  height: 36px;
  width: 36px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255,255,255,0.06) !important;
  color: rgba(255,255,255,0.72) !important;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: none;
  cursor: pointer;
  padding: 0;
}
.hist-search-wrap { display: flex; align-items: center; }
.hist-search-field {
  display: flex;
  align-items: center;
  height: 36px;
  width: min(220px, 52vw);
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  padding: 0 4px 0 10px;
  gap: 2px;
}
.hist-search-field[hidden] { display: none !important; }
#histSearchInput { color: #fff !important; border: 0 !important; background: transparent !important; box-shadow: none !important; }
@media (max-width: 639px) {
  .hist-title-collapsed { display: none !important; }
}
#histDoneBtn {
  display: flex;
  height: 36px;
  width: 36px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #ffffff !important;
  color: #0b0f14 !important;
  border: 0;
  cursor: pointer;
  padding: 0;
}
#histDoneBtn[hidden] { display: none !important; }
.hist-card.is-editing a { pointer-events: none; }
.hist-remove {
  position: absolute;
  right: 8px;
  top: 8px;
  z-index: 20;
  display: flex;
  height: 30px;
  width: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(5,7,10,0.82) !important;
  color: #fff !important;
  box-shadow: 0 0 0 1.5px rgba(255,255,255,0.42);
  border: 0;
  cursor: pointer;
  padding: 0;
  pointer-events: auto;
}
.hist-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
}
.hist-modal[hidden] { display: none !important; }
.hist-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.8);
}
.hist-modal-panel {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(92vw, 340px);
  padding: 28px 24px;
  border-radius: 12px;
  background: #1c1c1e;
  border: 1px solid rgba(255,255,255,0.08);
}
.hist-modal-msg {
  margin: 0 0 20px;
  color: #eef1f6;
  font-size: 15px;
  line-height: 1.4;
  text-align: center;
}
.hist-modal-actions { display: flex; gap: 10px; }
.hist-modal-cancel,
.hist-modal-confirm {
  flex: 1;
  height: 40px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: 0;
}
.hist-modal-cancel {
  background: transparent;
  color: rgba(238,241,246,0.7);
  border: 1px solid rgba(255,255,255,0.08);
}
.hist-modal-confirm {
  background: #fff !important;
  color: #0b0f14 !important;
}

.dock-item:active { transform: scale(.94); }
.movieCard-module-scss-module__Xn2B8q__movieCard a:active {
  opacity: 0.92;
}
#siteHeader { view-transition-name: movy-header; }
#main { view-transition-name: movy-main; }
.dock-panel, .Dock-module-scss-module__qZDorW__dockPanel {
  view-transition-name: movy-dock;
}
::view-transition-old(root),
::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}
::view-transition-group(movy-header),
::view-transition-group(movy-dock) {
  animation: none;
}
::view-transition-old(movy-header),
::view-transition-new(movy-header),
::view-transition-old(movy-dock),
::view-transition-new(movy-dock) {
  animation: none;
}
::view-transition-old(movy-main) {
  animation: 200ms ease-out both movy-nav-out;
}
::view-transition-new(movy-main) {
  animation: 280ms ease-in both movy-nav-in;
}
@keyframes movy-nav-out { to { opacity: 0; } }
@keyframes movy-nav-in { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root),
  ::view-transition-new(root),
  ::view-transition-old(movy-main),
  ::view-transition-new(movy-main) { animation: none !important; }
}
#nprogress, #nprogress .bar, #nprogress .peg, #nprogress .spinner, #nprogress .spinner-icon {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
