* {
  box-sizing: border-box;
}
html {
  color-scheme: dark;
  background: #000;
}
body {
  margin: 0;
  color: #f3f3f3;
  font: 16px/1.4 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}
a,
button {
  color: inherit;
  text-decoration: none;
}
button,
input,
select {
  font: inherit;
}
button {
  border: 0;
  background: none;
  cursor: pointer;
}
button:hover,
a:hover {
  color: #f04a49;
}
header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  padding: 0 2vw;
  height: 80px;
  gap: 32px;
  background: #101010;
}
body.home header {
  background: linear-gradient(#0009, transparent);
}
body.scrolled header {
  background: #111e;
  backdrop-filter: blur(16px);
}
.logo,
nav,
aside {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo img:first-child {
  width: 38px;
  height: 38px;
}
.logo img:nth-child(2) {
  width: 120px;
}
.logo {
  font-size: 22px;
  font-weight: 800;
}
nav {
  gap: 24px;
  font-weight: 750;
  font-size: 18px;
}
nav button,
aside button {
  padding: 0;
}
.home nav a {
  color: #eb3937;
}
aside {
  gap: 25px;
  margin-left: auto;
  font-size: 27px;
}
.language,
.red {
  font-size: 17px;
  font-weight: 650;
}
.red,
.primary {
  background: #e52e2e;
  border-radius: 30px;
  padding: 10px 25px;
  color: white;
}
.profile {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 36%, #888 22%, transparent 24%),
    radial-gradient(ellipse at center 110%, #777 36%, #393939 37%);
  color: transparent;
}
.glass {
  display: block;
  border: 2px solid;
  border-radius: 50%;
  width: 21px;
  height: 21px;
  position: relative;
}
.glass:after {
  content: "";
  position: absolute;
  background: currentColor;
  height: 2px;
  width: 10px;
  right: -7px;
  bottom: -3px;
  transform: rotate(48deg);
}
.mobile {
  display: none;
}
.hero {
  margin-top: -80px;
  height: max(472px, 33.33vw);
  position: relative;
  background: #171717;
  isolation: isolate;
}
.backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.hero:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #000, transparent 40%),
    linear-gradient(90deg, #000a, transparent 65%);
  z-index: -1;
}
.hero-copy {
  position: absolute;
  left: 6%;
  bottom: 0;
  width: min(38vw, 550px);
}
h1,
h2,
h3,
p {
  margin: 0;
}
.hero h1 {
  font-size: clamp(30px, 2.5vw, 48px);
  line-height: 1.08;
  margin-bottom: 15px;
}
.chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.chips span,
.chip {
  background: #393939ab;
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 13px;
}
.hero .chips span:first-child {
  background: #ee6713;
}
.hero p,
.clamp {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero p {
  color: #ddd;
  font-size: 14px;
  margin: 14px 0 20px;
  max-width: 480px;
}
.play,
.accept {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: white;
  color: black;
  font-weight: 700;
}
.play {
  height: 56px;
  width: 220px;
  border-radius: 30px;
  font-size: 18px;
}
.thumbs {
  position: absolute;
  right: 6%;
  bottom: 0;
  width: 39%;
  display: flex;
  align-items: center;
  gap: 8px;
}
.thumbs div {
  display: flex;
  gap: 8px;
  overflow: hidden;
  scroll-behavior: smooth;
}
.thumbs button {
  flex: none;
  padding: 0;
}
.thumbs img {
  display: block;
  width: 76px;
  height: 105px;
  object-fit: cover;
  border-radius: 8px;
  opacity: 0.68;
}
.thumbs .selected img {
  border: 2px solid #fff;
  opacity: 1;
}
.arrow {
  font-size: 32px;
}
.shelves,
.page {
  padding: 48px 6vw;
}
.shelves {
  padding-top: 64px;
}
.floor {
  margin-bottom: 42px;
}
.floor-head,
.result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.floor-head h2 {
  font-size: 24px;
}
.floor-head > a,
.muted,
small {
  color: #aaa;
}
.strip {
  display: flex;
  gap: 16px;
  overflow: auto;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}
.strip::-webkit-scrollbar {
  display: none;
}
.card {
  min-width: 0;
  display: block;
  scroll-snap-align: start;
}
.strip .card {
  flex: 0 0 calc((100% - 64px) / 5);
}
.poster {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #242424;
  aspect-ratio: 3/4;
}
.poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.badge,
.views {
  position: absolute;
  font-size: 12px;
}
.badge {
  top: 7px;
  left: 7px;
  background: #ec3737;
  border-radius: 10px;
  padding: 2px 7px;
}
.views {
  bottom: 5px;
  left: 7px;
  text-shadow: 0 1px 4px #000;
}
.card strong {
  display: block;
  margin: 8px 0 3px;
  line-height: 1.25;
}
.rail {
  position: relative;
}
.rail > .arrow {
  position: absolute;
  right: -4vw;
  top: 34%;
  opacity: 0;
}
.rail > .back {
  right: auto;
  left: -4vw;
}
.rail:hover > .arrow,
.rail:focus-within > .arrow {
  opacity: 1;
}
.grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px 16px;
}
.page {
  min-height: 70vh;
}
.page h1 {
  margin: 14px 0 8px;
}
.crumb {
  color: #999;
  font-size: 14px;
}
.result-head {
  margin-top: 20px;
}
.pagination {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 26px;
}
.detail,
.watch {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 34px;
  margin: 25px 0;
}
.detail > img {
  width: min(100%, 340px);
  border-radius: 15px;
}
.detail p,
.watch p {
  color: #ccc;
  line-height: 1.55;
  margin: 16px 0;
}
.player {
  width: 100%;
  height: min(71vh, 680px);
  background: #161616;
  border: 0;
  display: block;
  border-radius: 12px;
}
.episodes {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin: 14px 0;
}
.episodes a {
  background: #252525;
  border-radius: 6px;
  min-width: 44px;
  padding: 9px;
  text-align: center;
}
.episodes .active {
  background: #d83038;
}
.panel-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 14px 0;
}
.panel-links a {
  padding: 9px 15px;
  border-radius: 20px;
  background: #303030;
}
dialog,
.cookie {
  color: #eee;
  background: #272727;
  border: 0;
  border-radius: 16px;
  padding: 24px;
}
.close {
  position: absolute;
  right: 12px;
  top: 8px;
  font-size: 26px;
}
dialog {
  width: min(480px, 94vw);
}
dialog::backdrop {
  background: #000a;
}
.cookie {
  position: fixed;
  z-index: 6;
  right: 20px;
  bottom: 20px;
  width: min(450px, 100%);
  box-shadow: 0 8px 40px #0007;
}
.cookie p {
  color: #aaa;
  font-size: 14px;
  margin: 14px 0 20px;
}
.accept {
  padding: 10px 28px;
  border-radius: 5px;
  display: block;
  margin: auto;
}
.searchform,
.authform {
  display: flex;
  gap: 8px;
  margin: 18px 0;
}
.authform {
  flex-direction: column;
  max-width: 360px;
}
input,
select {
  border: 1px solid #555;
  background: #202020;
  padding: 10px 14px;
  border-radius: 8px;
  min-width: 0;
}
.searchform input {
  flex: 1;
}
footer {
  border-top: 1px solid #292929;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px 6vw;
  color: #aaa;
}
footer button { padding: 0; }
footer div {
  display: flex;
  gap: 20px;
}
.notice {
  margin: 22px 0;
  color: #bbb;
}
.error {
  color: #ff9c9c;
}
@media (max-width: 900px) {
  aside {
    gap: 16px;
  }
  .strip .card {
    flex-basis: calc((100% - 48px) / 4);
  }
}
@media (max-width: 767px) {
  header {
    height: 91px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    grid-template-rows: 47px 44px;
    gap: 0;
    padding: 0 16px;
  }
  .mobile {
    display: block;
  }
  .desk {
    display: none;
  }
  .menu {
    justify-self: start;
    font-size: 23px;
  }
  .logo {
    gap: 10px;
  }
  .logo img:first-child {
    width: 26px;
    height: 26px;
  }
  .logo img:nth-child(2) {
    width: 96px;
  }
  header aside {
    grid-column: 3;
    grid-row: 1;
    font-size: 18px;
    gap: 20px;
  }
  .profile {
    width: 25px;
    height: 25px;
  }
  .glass {
    width: 17px;
    height: 17px;
  }
  nav {
    grid-row: 2;
    grid-column: 1/-1;
    justify-content: center;
    font-size: 16px;
    gap: 30px;
  }
  .home nav a {
    color: white;
    border-bottom: 2px solid white;
  }
  .hero {
    height: 122.667vw;
    margin-top: -91px;
  }
  .backdrop {
    object-position: 67% center;
  }
  .hero:after {
    background: linear-gradient(0deg, #000, transparent 50%);
  }
  .hero-copy {
    left: 4%;
    width: 92%;
    bottom: 7%;
    text-align: center;
  }
  .hero h1 {
    font-size: 25px;
    margin-bottom: 9px;
  }
  .hero .chips {
    justify-content: center;
  }
  .hero p,
  .thumbs {
    display: none;
  }
  .play {
    height: 40px;
    width: 130px;
    font-size: 15px;
    margin-top: 12px;
  }
  .shelves,
  .page {
    padding: 24px 16px;
  }
  .floor {
    margin-bottom: 27px;
  }
  .floor-head {
    margin-bottom: 12px;
  }
  .floor-head h2 {
    font-size: 19px;
  }
  .floor-head > a {
    font-size: 13px;
  }
  .strip {
    gap: 8px;
  }
  .strip .card {
    flex-basis: 31%;
  }
  .card strong {
    font-size: 13px;
  }
  .card small {
    font-size: 11px;
  }
  .poster {
    border-radius: 8px;
  }
  .rail > .arrow {
    display: none;
  }
  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px 8px;
  }
  .detail,
  .watch {
    display: block;
  }
  .detail > img {
    max-width: 200px;
  }
  .player {
    height: 62vh;
  }
  .page h1 {
    font-size: 23px;
  }
  .cookie {
    right: 0;
    bottom: 0;
    border-radius: 15px 15px 0 0;
  }
  .accept {
    width: 100%;
  }
  .cookie p {
    font-size: 14px;
  }
  footer {
    flex-direction: column;
    align-items: flex-start;
    font-size: 13px;
  }
}
.results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.results article {
  display: grid;
  grid-template-columns: 32% 1fr;
  gap: 18px;
  align-items: center;
}
.results article > .card strong,
.results article > .card small {
  display: none;
}
.results article p,
.balance,
.tabs {
  margin: 18px 0;
}
.results article .clamp {
  color: #aaa;
}
.balance {
  background: #171717;
  border-radius: 16px;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.tabs {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid #333;
}
.tabs button {
  padding: 12px 0;
}
.tabs [aria-pressed="true"] {
  border-bottom: 2px solid #ef4242;
}
@media (max-width: 767px) {
  .results {
    grid-template-columns: 1fr;
  }
  .results article {
    grid-template-columns: 28% 1fr;
  }
  .results article h3 {
    font-size: 16px;
  }
  .results article .primary {
    padding: 5px 15px;
  }
}
.save {
  border: 1px solid #555;
  border-radius: 18px;
  margin-top: 14px;
  padding: 6px 16px;
}
.shelves .rail {
  margin-right: -6vw;
  padding-right: 0;
}
.shelves .strip .card {
  flex-basis: calc((88vw - 64px) / 5);
}
.shelves .rail > .next {
  right: 1vw;
}
.shelves .rail:hover > .arrow {
  background: #111a;
  border-radius: 9px;
}
@media (max-width: 767px) {
  .shelves .rail {
    margin-right: -16px;
  }
  .shelves .strip .card {
    flex-basis: 30%;
  }
}
.movie-page{padding-top:22px}.detail{grid-template-columns:1.2fr 1fr;align-items:center;margin:52px 0}.cover-stage{grid-column:2;grid-row:1;text-align:center}.cover-stage img{width:min(72%,320px);aspect-ratio:3/4;object-fit:cover;border-radius:12px}.movie-info{grid-column:1;grid-row:1;display:flex;flex-direction:column;align-items:flex-start}.movie-info h1{font-size:40px;line-height:1.12;margin:0}.stats{margin:14px 0;color:#bbb}.movie-info .synopsis{order:1}.movie-info .chips{order:2}.movie-actions{order:3;display:flex;align-items:center;gap:8px;margin-top:20px}.movie-actions button{background:#222;border:0;border-radius:28px;padding:12px 18px;margin:0}.movie-page>.floor-head{margin-top:32px}
@media(max-width:767px){.inner-page header{height:47px;grid-template-rows:47px}.inner-page header nav{display:none}.movie-page{padding-top:8px}.detail{margin:4px 0 24px}.cover-stage{margin:0 -16px;background:linear-gradient(160deg,#392d30,#18222c 55%,#020202);padding:24px 0}.cover-stage img{width:48vw;max-width:220px;display:block;margin:auto}.movie-info{padding-top:12px}.movie-info h1{font-size:20px}.stats{margin:8px 0 12px;font-size:14px}.movie-actions{order:0;margin:10px 0;width:100%;display:grid;grid-template-columns:1fr 1fr}.movie-actions .play{grid-column:1/-1;width:100%;margin:0}.movie-actions button{font-size:14px}.movie-info .chips{margin-top:4px}.movie-info .synopsis{margin:14px 0;font-size:14px}.movie-page .episodes a{padding:8px;min-width:39px}}

@media (min-width: 768px) {
  .portrait-hero { overflow: hidden; }
  .portrait-hero::before {
    content: "";
    position: absolute;
    inset: -28px;
    background: #151515 var(--hero-image) center 32% / cover no-repeat;
    filter: blur(24px) brightness(.55);
    z-index: -3;
  }
  .portrait-hero .backdrop {
    object-fit: contain;
    object-position: 66% center;
  }
}
.playback-error { padding: 10px 0; }
.playback-error button { text-decoration: underline; }

/* Header interactions */
.nav-popover {
  position: absolute;
  top: calc(50% + 17px);
  width: 288px;
  padding: 12px;
  border-radius: 14px;
  background: #272727;
  box-shadow: 0 12px 30px #0005;
}
.nav-popover a { display: block; padding: 12px; border-radius: 8px; font-size: 14px; }
.nav-popover a:hover, .nav-popover a:focus-visible { background: #383838; }
header [aria-expanded="true"] { color: #ef4646; }
.header-search {
  position: fixed;
  inset: 12px auto auto 50%;
  transform: translateX(-50%);
  margin: 0;
  padding: 0;
  width: min(64vw, 900px);
  border-radius: 32px;
  background: #252525;
}
.header-search h2, .header-search > .close { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; }
.header-search > .close:focus-visible { clip-path: none; width: 28px; height: 28px; right: 64px; }
.header-search .searchform, .search-line .searchform {
  margin: 0; width: 100%; align-items: center; gap: 0; border: 1px solid #5b5b5b; border-radius: inherit;
}
.header-search .searchform input, .search-line .searchform input { min-width:0; background: transparent; border: 0; flex: 1; }
.header-search .searchform input { padding: 16px 24px; }
.searchform button { font-size: 0; border-radius: 0; padding: 0 20px; height: 24px; background: transparent; border-left: 1px solid #555; }
.searchform button[type="submit"]::before { content: ""; display: inline-block; width: 13px; height: 13px; border: 1.5px solid; border-radius: 50%; }
.searchform button[type="submit"]::after { content: ""; display:inline-block; width: 6px; height: 1.5px; background: currentColor; transform: translate(-2px, 1px) rotate(45deg); }
.hero-hit { position: absolute; inset: 0; }
.hero-copy, .thumbs { z-index: 1; }

/* Catalog and search results */
.listing { padding-top: 24px; }
.list-heading { display: flex; align-items: center; justify-content: space-between; margin: 24px 0; }
.list-heading h1, .search-page h1 { margin: 0; font-size: 18px; }
.list-heading small { font-size: 13px; }
.listing .results { grid-template-columns: 1fr; gap: 16px; }
.listing .results article {
  display: grid; grid-template-columns: min(15vw, 200px) 1fr; align-items: stretch;
  background: #141414; border-radius: 16px; overflow: hidden; gap: 0;
}
.result-cover img { width: 100%; aspect-ratio: 3/4; object-fit: cover; display: block; border-radius: 12px; }
.result-copy { min-width: 0; position: relative; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.result-copy h3 { margin: 0; font-size: 16px; font-weight: 600; }
.listing .result-copy p { margin: 0; font-size: 14px; order: 1; }
.result-copy small { margin-top: auto; order: 2; }
.result-play { position:absolute; bottom:20px; right:20px; padding:13px 0; width:160px; text-align:center; border-radius:24px; background:#eee; color:#151515; font-weight:700; }
.search-line { display:flex; align-items:center; gap:12px; max-width:800px; margin:0 auto 20px; }
.search-line > a { font-size:26px; }
.search-line .searchform { min-width:0; background:#292929; border-radius:12px; }
.search-tabs { display:flex; justify-content:flex-start; gap:30px; border-bottom:1px solid #303030; margin-bottom:16px; font-size:15px; }
.search-tabs a { padding:12px 0; }
.search-tabs [aria-current] { color:#ec424c; border-bottom:2px solid; }
.search-page h1 { margin: 14px 0 24px; }
.empty-results { display:grid; place-items:center; border-radius:12px; background:#171717; min-height:200px; font-weight:700; }

/* Player, episode rail, and actions */
.watch-layout {
  position:relative; display:grid; grid-template-columns: minmax(0,5fr) minmax(0,3fr);
  grid-template-rows:auto 1fr; min-height:calc(100svh - 80px); border-top:1px solid #222;
}
.watch-stage { grid-area:1 / 1 / 3 / 2; position:relative; background:#000; }
.watch-layout > .crumb { grid-area:1 / 2; margin:32px 32px 0; }
.watch-details { grid-area:2 / 2; min-width:0; padding:24px 32px 32px; }
.watch-details h1 { margin:0 0 20px; line-height:1.3; font-size:20px; }
.watch-plot h2 { margin:0 0 8px; font-size:16px; }
.watch-plot .synopsis { margin:0 0 16px; color:#aaa; }
.watch-actions { display:flex; align-items:center; border-block:1px solid #333; margin:24px 0; padding:12px 0; }
.watch-actions button, .watch-actions .save { flex:1; font-size:26px; color:#bbb; margin:0; padding:0; border:0; }
.watch-actions button[aria-pressed="true"] { color:#ed4455; }
.watch-actions span { display:block; font-size:14px; font-weight:600; margin-top:5px; }
.watch-back, .next-episode { position:absolute; z-index:1; display:grid; place-items:center; border-radius:50%; color:#fff; background:#222c; }
.watch-back { width:64px; height:64px; left:30px; top:30px; font-size:32px; }
.watch-stage #screen { position:relative; }
.watch-stage .player { height:calc(100svh - 80px); border-radius:0; background:#000; }
.next-episode { right:14px; bottom:64px; width:36px; height:36px; font-size:15px; }
.range-nav { display:flex; align-items:center; gap:16px; overflow:auto; white-space:nowrap; }
.range-nav button, .range-nav a { font-size:14px; color:#aaa; padding:4px 0; }
.range-nav [aria-pressed="true"] { color:white; font-weight:700; }
.range-nav a { margin-left:auto; }
.episode-picker .episodes { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:6px; margin:8px 0 0; position:relative; }
.episode-picker .episodes a { min-width:0; background:#1e1e1e; padding:14px 0; font-size:14px; font-weight:600; }
.episode-picker .episodes .active { background:linear-gradient(140deg,#242424,#56292e); box-shadow:inset 0 -2px #ab4b56; }

@media(max-width:767px) {
  .nav-popover { display:none; }
  .mobile-menu { position:fixed; inset:0; margin:0; width:100%; max-width:none; height:100dvh; max-height:none; border-radius:0; padding:0; background:#222; overscroll-behavior:contain; }
  .mobile-menu > .close { position:sticky; top:0; display:block; width:100%; height:60px; text-align:start; padding:0 24px; background:#222; color:#fff; font:300 34px/1 Arial,sans-serif; z-index:1; border-bottom:1px solid #383838; }
  .mobile-menu #panel { padding:10px 24px 24px; }
  .mobile-menu h2 { display:none; }
  .mobile-menu summary, .mobile-menu #panel > a { display:flex; align-items:center; justify-content:space-between; min-height:64px; font-size:20px; font-weight:700; cursor:pointer; }
  .mobile-menu summary { list-style:none; }
  .mobile-menu summary::-webkit-details-marker { display:none; }
  .mobile-menu summary::after { content:""; width:10px; height:10px; border-right:2px solid #090909; border-bottom:2px solid #090909; transform:rotate(45deg); }
  .mobile-menu details[open] summary { color:#ed454d; }
  .mobile-menu details[open] summary::after { transform:rotate(225deg); }
  .mobile-menu .language-options button { display:block; width:100%; min-height:48px; padding:8px 0; text-align:left; color:white; font-size:16px; font-weight:700; }
  .mobile-menu .language-options [aria-pressed="true"] { color:#ed454d; }
  .shelf-page > .crumb, .list-heading small { display:none; }
  .listing { padding:16px; min-height:50vh; }
  .list-heading { margin:10px 0 20px; }
  .listing .results article { grid-template-columns:28% minmax(0,1fr); gap:9px; background:none; border-radius:0; }
  .result-cover img { border-radius:8px; }
  .result-copy { padding:2px 0; gap:7px; }
  .listing .result-copy h3 { font-size:14px; }
  .result-copy small { margin:0; order:0; font-size:12px; }
  .listing .result-copy p { font-size:12px; }
  .result-play { display:none; }
  .search-page { padding-top:6px; }
  .search-line { margin-bottom:4px; }
  .search-page h1 { font-size:13px; font-weight:500; }
  .watch-layout { display:flex; flex-direction:column; min-height:0; }
  .watch-layout > .crumb { order:0; margin:0; padding:5px 16px 8px; background:#141414; font-size:12px; }
  .watch-stage { order:1; }
  .watch-stage .player { height:min(112vw,55svh); }
  .watch-back { display:none; }
  .watch-details { order:2; display:flex; flex-direction:column; padding:18px 16px; }
  .watch-details h1 { font-size:18px; margin:0 0 16px; }
  .watch-details .episode-picker { order:1; }
  .watch-details .watch-actions { order:2; margin:20px 0 14px; }
  .watch-details .chips { order:3; }
  .watch-details .watch-plot { order:4; }
  .episode-picker .episodes { display:flex; flex-wrap:nowrap; overflow-x:auto; scrollbar-width:none; }
  .episode-picker .episodes a { flex:0 0 64px; }
  .account-page header .profile { visibility:hidden; }
}
.collection-page { padding-top:24px; }
.collection-page h1 { font-size:24px; padding:12px 0; border-bottom:1px solid #282828; }
.collection-page > p { font-size:14px; color:#aaa; margin:12px 0; }
.episode-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px 28px; }
.episode-row { display:flex; gap:12px; align-items:flex-start; }
.episode-row img { width:76px; aspect-ratio:9 / 16; border-radius:8px; object-fit:cover; }
.episode-row small { display:block; margin-top:8px; }
.account-menu, .account-return { display:none; }
@media(max-width:767px) {
  .collection-page { padding-top:6px; }
  .collection-page h1 { font-size:16px; }
  .episode-list { grid-template-columns:1fr; }
  .account-content { display:flex; flex-direction:column; min-height:52vh; }
  .account-content h1 { display:flex; align-items:center; gap:14px; font-size:17px; }
  .account-content h1::before { content:""; width:48px; height:48px; border-radius:50%; background:radial-gradient(circle at 50% 36%,#aaa 22%,transparent 24%),radial-gradient(ellipse at center 110%,#999 36%,#666 37%); }
  .account-content #identity { border-radius:25px; border:1px solid #363636; background:transparent; order:2; }
  .account-menu { display:grid; margin:20px 0; }
  .account-menu a { display:flex; justify-content:space-between; padding:20px 0; }
  .account-content .tabs, .account-content #tabcontent { display:none; }
  .account-tab .account-content > :is(h1,.account-menu,#identity) { display:none; }
  .account-tab .account-return, .account-tab .account-content #tabcontent { display:block; }
  .account-return { font-size:18px; font-weight:650; }
  .account-return a { margin-right:12px; }
}
.clock-icon { display:block; width:24px; height:24px; border:2px solid; border-radius:50%; position:relative; }
.clock-icon::before { content:""; position:absolute; left:9px; top:3px; width:5px; height:7px; border-left:1.5px solid; border-bottom:1.5px solid; transform:skewY(20deg); }
.bookmark-icon { display:inline-block; width:20px; height:24px; border-radius:2px; background:currentColor; clip-path:polygon(0 0,100% 0,100% 100%,50% 72%,0 100%); vertical-align:middle; }
/* Search overlay and live movie suggestions */
.header-search { background:transparent; border-radius:0; max-height:calc(100dvh - 24px); overflow:visible; }
.header-search .searchform { background:#252525; border-radius:32px; }
.header-search .search-suggestions:not(:empty) {
  margin-top:12px; padding:20px 24px; background:#252525; border-radius:18px;
  max-height:calc(100dvh - 96px); overflow:auto; overscroll-behavior:contain;
}
.searchform:focus-within { outline:1px solid #888; }
.searchform input[name="q"]:focus { outline:none; }
.searchform .clear-search { padding:0; margin-right:12px; border:0; border-radius:50%; width:20px; height:20px; line-height:20px; color:#ddd; background:#444; font-size:15px; }
.search-suggestions p { margin:0 0 12px; font-size:14px; color:#bbb; }
.suggestion-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px 20px; }
.suggestion-card { display:flex; align-items:stretch; gap:14px; min-width:0; border-radius:8px; }
.suggestion-card:hover, .suggestion-card:focus-visible { background:#383838; }
.suggestion-cover { position:relative; width:clamp(68px,7.5vw,96px); flex:none; }
.suggestion-cover img { display:block; width:100%; aspect-ratio:3/4; object-fit:cover; border-radius:8px; background:#191919; }
.suggestion-cover em { position:absolute; bottom:-2px; left:-2px; font:bold italic 32px/1 Georgia,serif; text-shadow:0 1px 4px #111; }
.suggestion-card:first-child em { color:#ffd37c; }
.suggestion-copy { display:flex; flex-direction:column; align-items:flex-start; min-width:0; padding:3px 0; }
.suggestion-copy strong { font-size:14px; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; }
.suggestion-tags { display:flex; flex-wrap:wrap; gap:4px; margin-top:8px; }
.suggestion-tags span { font-size:11px; padding:3px 8px; border-radius:20px; background:#ffffff12; }
.suggestion-copy small { margin-top:auto; padding-top:5px; font-size:11px; }
.search-page .list-heading h1 { margin:0; }
@media(min-width:768px) {
  .search-page > .search-line, .search-page > .search-suggestions { display:none; }
}
@media(max-width:767px) {
  .search-page > .crumb, .search-page:not(.editing) > .search-suggestions,
  .search-page.editing > :not(.search-line,.search-suggestions) { display:none; }
  body:has(.search-page) header [data-panel="Search"] { visibility:hidden; }
  .search-page.editing { min-height:calc(100dvh - 52px); }
  .search-page .search-line { position:sticky; top:47px; z-index:2; padding:6px 0; background:#111; }
  .search-page .search-suggestions { padding-top:18px; }
  .suggestion-grid { grid-template-columns:minmax(0,1fr); gap:16px; }
  .suggestion-cover { width:100px; }
}
footer { display:grid; grid-template-columns:2fr 1fr 1fr; align-items:start; border-top:1px solid #252525; padding-block:46px; background:#0c0c0c; }
.footer-logo img { width:min(220px,100%); }
footer summary { font-size:15px; font-weight:700; color:white; text-transform:uppercase; cursor:pointer; }
footer details a, footer details button { display:block; margin-top:12px; font-size:14px; }
@media(min-width:768px) {
  footer summary { list-style:none; }
}
@media(max-width:767px) {
  footer { grid-template-columns:1fr; gap:0; padding:22px 16px 34px; }
  footer summary { padding:16px 0; list-style:none; }
  footer summary::after { content:"⌄"; float:right; }
  footer details[open] summary::after { content:"⌃"; }
  .footer-logo { order:1; margin-top:32px; }
  .footer-logo img { width:108px; }
}
.share-sheet { width:min(560px,94vw); background:#161616; }
.share-sheet h2 { font-size:20px; margin:0 0 22px; }
.share-sheet > .close { top:16px; right:16px; }
.share-preview { display:flex; align-items:flex-start; gap:16px; padding:16px; background:#282828; border-radius:10px; }
.share-preview img { width:90px; aspect-ratio:3/4; object-fit:cover; border-radius:5px; }
.share-preview strong { font-size:20px; }
.share-preview p { color:#aaa; margin:8px 0 0; }
.share-options { display:flex; justify-content:space-around; gap:8px; margin:22px 0 4px; }
.share-options > * { display:grid; justify-items:center; gap:8px; font-size:14px; padding:0; }
.share-options b { display:grid; place-items:center; width:58px; height:58px; border-radius:50%; background:#303030; color:#fff; font-size:28px; }
.share-options a:first-child b { background:#2366ef; }
.share-options a:nth-child(2) b { background:#050505; }
.share-sheet output:not(:empty) { display:block; text-align:center; margin:12px 0 0; }
.share-sheet textarea { width:100%; }
.embed-player :is(header,footer,.cookie,.watch-back,.next-episode,.watch-details,.watch-layout>.crumb,main>.shelves) { display:none; }
.embed-player .watch-layout { display:block; min-height:0; border:0; }
.embed-player .watch-stage .player { height:100dvh; }
@media(max-width:767px) {
  .share-sheet { inset:auto 0 0; margin:0; width:100%; max-width:none; border-radius:0; padding:18px 16px 24px; }
  .share-sheet h2 { font-size:16px; margin:0 0 20px; }
  .share-preview { align-items:center; flex-direction:column; }
  .share-preview strong { font-size:16px; }
  .share-preview p { display:none; }
  .share-options b { width:48px; height:48px; }
}

/* The banner controls and the title shelves scroll independently. */
.banner-markers { display:none; }
.thumbs { width:min(44vw,550px); }
.thumb-track { flex:1; min-width:0; gap:12px; }
.thumbs img { width:84px; height:112px; }
.thumbs .arrow:disabled { visibility:hidden; }
.rail > .arrow:disabled { visibility:hidden; }
@media(min-width:768px) {
  .rail > .arrow, .shelves .rail:hover > .arrow {
    width:clamp(36px,4.4vw,56px); height:clamp(36px,4.4vw,56px); padding:0;
    top:calc((88vw - 64px) * 2 / 15); transform:translateY(-50%); margin:0;
    border-radius:50%; background:#1b2231de; border:1px solid #ffffff80; opacity:1;
    z-index:2; line-height:1;
  }
}
.shelf-preview {
  position:absolute; top:-24px; z-index:3; padding:8px 8px 16px; border-radius:16px;
  background:#343034; box-shadow:0 10px 28px #0008; overflow:hidden;
}
.shelf-preview strong, .shelf-preview small { display:block; margin:6px 8px; }
.shelf-preview p { margin:8px; color:#bbb; font-size:13px; }
.quick-actions { display:flex; gap:8px; margin:14px 8px 0; }
.quick-actions > * { display:grid; place-items:center; width:42px; height:42px; border-radius:50%; border:1px solid #ffffff45; background:#ffffff16; }
.quick-actions a { background:white; color:#111; }
.quick-actions button[aria-pressed="true"] { color:#ff5264; }
.history-popover { width:360px; padding:20px 24px; }
.history-tabs { display:flex; gap:16px; }
.history-tabs button { padding:0; color:#aaa; font-size:18px; font-weight:700; }
.history-tabs [aria-pressed="true"] { color:white; }
.history-row, .nav-popover a.history-row {
  display:flex; align-items:center; gap:12px; padding:10px 0; font-size:15px;
}
.history-row img { width:72px; aspect-ratio:3 / 4; border-radius:6px; object-fit:cover; }
.history-row small { display:block; margin-top:6px; }
.history-more { margin-top:10px; text-align:center; background:#404040; border-radius:24px!important; }
.history-items { max-height:46vh; overflow:auto; }
@media(max-width:767px) {
  .banner-markers { display:flex; justify-content:center; position:absolute; bottom:0; left:0; right:0; z-index:1; }
  .banner-markers button { padding:10px 2px; }
  .banner-markers span { display:block; width:20px; height:4px; border-radius:4px; background:#ffffff50; }
  .banner-markers [aria-pressed="true"] span { width:32px; background:#fff; }
  .shelves .strip .card { flex-basis:35vw; }
}
@media(min-width:768px) {
  .account-content { display:grid; grid-template-columns:minmax(190px,26%) 1fr; grid-template-rows:auto 1fr; gap:18px 32px; align-content:start; position:relative; }
  .account-content h1 { grid-area:1 / 1; align-self:center; margin:0; padding:20px 76px 20px 20px; font-size:18px; background:#171717; border-radius:6px; overflow-wrap:anywhere; }
  .account-content #identity { grid-area:1 / 1; align-self:center; justify-self:end; margin-right:12px; padding:5px 10px; background:none; border:1px solid #555; border-radius:6px; }
  .account-content .tabs { grid-area:2 / 1; align-self:start; flex-direction:column; gap:0; margin:0; border:0; }
  .account-content .tabs button { text-align:left; padding:14px 20px; }
  .account-content .tabs [aria-pressed="true"] { color:#f44; border:0; background:#171717; border-radius:6px; }
  .account-content #tabcontent { grid-area:1 / 2 / 3 / 3; }
  .account-content #tabcontent > .notice { text-align:center; margin:20vh 0; }
}
.views { left:auto; right:8px; }
.back-to-top { position:fixed; right:12px; bottom:48px; z-index:4; width:40px; height:40px; border-radius:50%; background:#e83452; font-size:22px; color:white; }
@media(max-width:767px) { .back-to-top { display:none; } }
.embed-player .back-to-top { display:none; }

/* Movie overview and episode navigation */
.movie-banner { position:relative; isolation:isolate; margin:-22px -6vw 0; padding:22px 6vw 0; overflow:hidden; background:#141414; }
.movie-backdrop { position:absolute; z-index:-2; inset:0; width:100%; height:100%; object-fit:cover; filter:blur(42px) brightness(.35); transform:scale(1.13); }
.movie-banner::after { content:""; position:absolute; z-index:-1; inset:0; background:linear-gradient(0deg,#000,transparent 38%),linear-gradient(90deg,#000b,transparent); }
.movie-banner .detail { grid-template-columns:minmax(0,52fr) minmax(0,48fr); gap:24px; margin:56px 0 0; padding-bottom:64px; align-items:end; }
.movie-banner .cover-stage { text-align:left; }
.movie-banner .cover-stage img { display:block; width:min(100%,360px); }
.movie-actions .play { width:clamp(170px,24vw,302px); height:64px; margin:0; }
.movie-actions button { display:inline-flex; justify-content:center; align-items:center; gap:6px; width:64px; height:64px; padding:0; border-radius:50%; }
.movie-actions button span { display:none; }
.movie-actions i { font-size:24px; font-style:normal; }
.movie-actions .bookmark-icon { width:16px; height:20px; }
.movie-actions .save[aria-pressed="true"] { color:#f14956; }
.movie-summary { order:1; width:100%; margin:16px 0; }
.movie-summary p { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; margin:0; }
.movie-summary.expanded p { display:block; }
.movie-summary button { float:right; padding:2px 0 0 8px; font-size:14px; }
.movie-episodes, .movie-faq { margin:20px 0 56px; }
.movie-episodes h2, .movie-faq h2 { margin-bottom:16px; font-size:20px; }
.preview-strip { display:grid; grid-template-columns:repeat(auto-fill,minmax(82px,1fr)); column-gap:12px; max-width:100%; }
.preview-strip > a { width:100%; max-width:104px; aspect-ratio:82/128; display:flex; align-items:center; justify-content:center; flex-direction:column; position:relative; isolation:isolate; border-radius:6px; overflow:hidden; background:#1a1a1a; text-align:center; font-size:14px; line-height:1.3; padding:4px; }
.preview-episode img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:-1; opacity:.28; }
.preview-episode:is(:hover,:focus-visible) img { opacity:.47; }
.preview-episode small { font-size:11px; margin-top:5px; overflow:hidden; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; }
.preview-strip .all-episodes { font-weight:600; }
.mobile-episode-grid { display:none; }
.movie-faq > div { padding:0 24px; border-radius:10px; background:#141414; }
.movie-faq details + details { border-top:1px solid #333; }
.movie-faq summary { padding:18px 0; display:flex; align-items:center; justify-content:space-between; cursor:pointer; font-size:15px; }
.movie-faq summary::after { content:"+"; padding-left:16px; font-size:22px; }
.movie-faq details[open] summary::after { content:"−"; }
.movie-faq details p { padding-bottom:20px; color:#bbb; }
.movie-faq details a { text-decoration:underline; }
.collection-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:24px 0; }
.collection-heading h1 { margin:0; padding:0; border:0; font-size:18px; }
.collection-heading p { color:#aaa; font-size:14px; }
.episode-list { grid-template-columns:repeat(4,minmax(0,1fr)); gap:32px 24px; }
.episode-row { display:block; min-width:0; }
.episode-row img { display:block; width:100%; border-radius:14px; margin-bottom:10px; }
.episode-row p { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:4; overflow:hidden; font-size:14px; color:#aaa; margin-top:8px; }
@media(max-width:767px) {
  .movie-banner { margin:-8px -16px 0; padding:8px 16px 0; background:#000; }
  .movie-backdrop { top:28px; height:clamp(250px,70vw,342px); }
  .movie-banner::after { top:28px; height:clamp(250px,70vw,342px); background:linear-gradient(0deg,#000,transparent 60%); }
  .movie-banner .detail { margin:4px 0 20px; padding:0; }
  .movie-banner .cover-stage { background:none; }
  .movie-banner .cover-stage img { width:min(48vw,220px); margin:0 auto; }
  .movie-info h1 { font-size:20px; }
  .movie-actions .play, .movie-actions button { height:42px; width:100%; border-radius:24px; font-size:15px; }
  .movie-actions button span { display:inline; }
  .movie-actions i { font-size:17px; }
  .movie-actions .bookmark-icon { width:12px; height:15px; }
  .movie-summary { border-top:1px solid #252525; padding-top:20px; margin:14px 0; font-size:14px; }
  .movie-summary p { -webkit-line-clamp:3; }
  .movie-info .chips { flex-wrap:nowrap; overflow-x:auto; max-width:100%; }
  .movie-info .chips span { white-space:nowrap; }
  .movie-episodes > h2, .preview-strip { display:none; }
  .mobile-episode-grid { display:block; }
  .movie-episodes { margin:0 0 32px; padding-top:16px; border-top:1px solid #222; }
  .mobile-episode-grid .episodes { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:6px; }
  .mobile-episode-grid .episodes a { min-width:0; padding:15px 0; font-size:14px; background:#1d1d1d; }
  .movie-faq { margin-bottom:32px; }
  .movie-faq h2 { font-size:17px; }
  .movie-faq > div { padding:0 14px; }
  .collection-heading { display:block; margin:20px 0 12px; }
  .collection-heading h1 { font-size:16px; border-bottom:1px solid #282828; padding-bottom:12px; }
  .collection-heading p { margin:12px 0; }
  .episode-list { grid-template-columns:1fr; gap:16px; }
  .episode-row { display:flex; }
  .episode-row img { flex:none; width:76px; border-radius:8px; margin:0; }
}

/* Personal library */
.library-tools, .delete-selection, .library-star, .library-copy .mobile-label,
.account-content .tabs .mobile-label { display:none; }
.library-empty { min-height:58vh; display:grid; align-content:center; justify-items:center; gap:16px; color:#858585; font-size:14px; }
.library-empty img { width:135px; height:135px; object-fit:contain; }
.library-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(126px,1fr)); gap:26px 14px; }
.library-grid article { min-width:0; position:relative; }
.library-link, .library-grid .history-row { display:block; padding:0; min-width:0; }
.library-poster { display:block; width:100%; aspect-ratio:3/4; background:#171717; border-radius:10px; overflow:hidden; }
.library-grid .library-poster img { display:block; width:100%; height:100%; object-fit:cover; opacity:0; }
.library-grid .library-poster img.ready { opacity:1; }
.library-copy { display:block; }
.library-copy strong { display:block; line-height:1.35; margin:8px 0 4px; font-size:15px; }
.library-copy small { display:block; margin:0; font-size:12px; color:#999; }
.account-content .tabs { height:auto; }
.account-content .tabs a { color:#aaa; }
.account-content .tabs [aria-current="page"] { color:white; font-weight:600; }
@media(min-width:768px) {
  .account-content { grid-template-columns:minmax(190px,27%) 1fr; padding:60px 4vw; min-height:calc(100svh - 80px); }
  .account-content h1 { padding-left:68px; min-height:68px; display:flex; align-items:center; }
  .account-content h1::before { content:""; position:absolute; margin-left:-50px; width:38px; height:38px; border-radius:50%; background:radial-gradient(circle at 50% 36%,#bbb 23%,transparent 25%),radial-gradient(ellipse at 50% 110%,#aaa 42%,#ddd 44%); }
  .account-content .tabs { align-items:stretch; }
  .account-content .tabs a { padding:14px 20px; }
  .account-content .tabs [aria-current="page"] { color:#ef444d; background:#171717; border-radius:6px; }
}
@media(max-width:767px) {
  .account-tab header { display:none; }
  .account-tab .account-content { padding:0 16px 24px; min-height:100svh; }
  .account-tab .account-content .account-return, .account-tab .library-tools { position:sticky; top:0; z-index:2; align-items:center; background:#000; height:48px; flex:none; }
  .account-tab .account-content .account-return { display:flex; justify-content:space-between; }
  .account-return a, .account-return button { margin:0; min-width:30px; font-size:26px; line-height:1; padding:4px 0; }
  .account-return strong { font-size:18px; }
  .account-tab .account-content .tabs { display:flex; align-items:center; justify-content:flex-start; gap:32px; order:0; margin:0 0 20px; height:52px; border:0; }
  .account-content .tabs a { padding:12px 0; font-size:15px; }
  .account-content .tabs [aria-current="page"] { position:relative; }
  .account-content .tabs [aria-current="page"]::after { content:""; position:absolute; bottom:4px; height:3px; background:#e93952; border-radius:3px; width:27px; left:50%; transform:translateX(-50%); }
  .account-content .tabs .mobile-label, .library-copy .mobile-label { display:block; }
  .account-content .desk-label { display:none; }
  .library-empty { min-height:calc(100svh - 150px); gap:14px; }
  .library-grid { display:grid; grid-template-columns:1fr; gap:18px; }
  .library-grid article { display:flex; align-items:start; gap:8px; }
  .library-grid .library-link, .library-pick { flex:1; min-width:0; display:flex; align-items:flex-start; gap:15px; }
  .library-poster { width:92px; border-radius:6px; flex:none; }
  .library-copy strong { margin:2px 0 10px; font-size:16px; }
  .library-copy small { margin:6px 0; font-size:13px; }
  .library-star { display:block; font-size:26px; padding:0 4px; }
  .library-star[aria-pressed="true"] { color:#eb4057; }
  .account-tab .account-content.editing-library .account-return, .account-tab .account-content.editing-library .tabs { display:none; }
  .editing-library .library-tools { display:flex; justify-content:space-between; margin-bottom:16px; }
  .library-tools button { padding:6px 0; }
  .library-pick input { accent-color:#eb4057; width:19px; height:19px; align-self:center; flex:none; margin:0; }
  .editing-library .delete-selection { display:block; position:sticky; bottom:0; width:100%; background:#171717; padding:14px; margin-top:auto; color:#f6495c; }
  .editing-library .delete-selection:disabled { color:#888; }
}

@media (min-width:768px) {
  header .language { display:inline-flex; align-items:center; gap:5px; font-size:18px; font-weight:500; }
  .globe { display:inline-block; width:25px; height:25px; position:relative; border:2px solid; border-radius:50%; }
  .globe::before { content:""; position:absolute; inset:-2px 4px; border:2px solid; border-radius:50%; }
  .globe::after { content:""; position:absolute; top:calc(50% - 1px); left:0; right:0; border-top:2px solid; }
  .language-popover { width:240px; max-height:min(480px, calc(100dvh - 84px)); overflow-y:auto; overscroll-behavior:contain; top:calc(50% + 26px); padding:14px 24px; }
  .language-popover button { display:block; width:100%; min-height:39px; padding:7px 0; color:#bbb; font-size:14px; text-align:left; }
  .language-popover button:is(:hover,:focus-visible,[aria-pressed="true"]) { color:#fff; }
  .language-popover [aria-pressed="true"] { font-weight:700; }
}
@media (min-width:768px) and (max-width:1023px) { header .language span { display:none; } }
body:has(.mobile-menu[open],.brand-dialog[open]) { overflow:hidden; }
.brand-dialog { width:min(720px,92vw); height:min(480px,82dvh); padding:0; background:#080808; color:white; }
.brand-dialog #panel { height:100%; display:flex; flex-direction:column; }
.brand-dialog h2 { margin:0; min-height:68px; padding:16px 52px 16px 20px; display:flex; align-items:center; gap:12px; font-size:20px; }
.brand-dialog h2::before { content:""; flex:none; width:32px; height:32px; background:url("/assets/logo.png") center / contain no-repeat; }
.brand-dialog > .close { top:16px; right:16px; background:#262626; width:28px; height:28px; padding:0; border-radius:50%; font:22px/1 sans-serif; }
.brand-catalog { overflow:auto; overscroll-behavior:contain; padding:4px 20px 20px; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); align-content:start; gap:16px; }
.brand-catalog img { display:block; width:100%; aspect-ratio:3/4; object-fit:cover; border-radius:6px; }
.brand-catalog strong { display:block; margin-top:6px; font-size:14px; overflow-wrap:anywhere; }
@media(max-width:767px) {
  .brand-dialog { width:min(72vw,360px); height:min(128vw,80dvh); }
  .brand-dialog h2 { font-size:16px; padding:14px 42px 14px 16px; gap:8px; }
  .brand-dialog h2::before { width:26px; height:26px; }
  .brand-dialog > .close { right:8px; }
  .brand-catalog { grid-template-columns:repeat(2,minmax(0,1fr)); padding-inline:16px; gap:12px; }
}

/* Keep the footer below the viewport while a route is loading. */
main:empty { min-height:100svh; }
body:has(.watch-layout) footer { display:none; }
header nav [aria-current="page"] { color:#ef454b; }
.category-filter { display:flex; flex-wrap:wrap; justify-content:flex-start; gap:8px; padding:16px 0; border-block:1px solid #262626; }
.category-filter a { padding:6px 14px; border-radius:24px; background:#222; font-size:14px; }
.category-filter [aria-current="page"] { color:white; background:#b9283b; }
.rank-number { position:absolute; bottom:-5px; left:0; color:white; font:bold italic clamp(38px,4vw,76px)/1 Georgia,serif; text-shadow:0 2px 8px #181818; }
.card:first-child .rank-number { color:#ffcc62; }
.poster:has(.rank-number) .views { left:auto; right:6px; }
.continue-strip { display:flex; gap:16px; overflow:auto; }
.continue-strip .card { flex:0 0 max(125px,13.6vw); }
.quick-actions a { flex:1; width:auto; white-space:nowrap; border-radius:24px; font-size:14px; font-weight:700; }
.quick-actions .bookmark-icon { width:14px; height:17px; }
.quick-actions button { flex:none; }
.account-content .tabs a::before { content:""; display:inline-block; width:16px; height:16px; margin-right:12px; background:currentColor; vertical-align:-2px; }
.account-content .tabs a:first-child::before { clip-path:polygon(8% 3%,92% 3%,92% 98%,50% 72%,8% 98%); }
.account-content .tabs a:last-child::before { box-sizing:border-box; border:2px solid; border-radius:50%; background:linear-gradient(currentColor,currentColor) 48% 28% / 1px 5px no-repeat,linear-gradient(currentColor,currentColor) 65% 61% / 5px 1px no-repeat; }
@media(min-width:768px) {
  .shelves { --poster-width:clamp(154px,13.6vw,288px); }
  .shelves .strip { gap:1.2vw; }
  .shelves .strip .card { flex-basis:var(--poster-width); }
  .shelves .rail > .arrow, .shelves .rail:hover > .arrow { width:clamp(34px,3.2vw,58px); height:clamp(34px,3.2vw,58px); top:calc(var(--poster-width) * 2 / 3); font-size:30px; background:#151515aa; }
  .shelf-page { max-width:1800px; margin:auto; padding-inline:8.5vw; }
  .shelf-page .results { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .shelf-page .results article { grid-template-columns:24% 1fr; }
  .shelf-page .result-play { width:30%; padding:8px 0; bottom:12px; right:12px; }
  .shelf-page .result-copy { gap:6px; padding:12px; }
  .shelf-page .result-copy p { -webkit-line-clamp:2; }
  .watch-layout { grid-template-columns:minmax(0,1fr) clamp(310px,23vw,460px); height:calc(100dvh - 80px); }
  .watch-details { overflow:auto; padding:20px; }
  .watch-layout > .crumb { margin:20px 20px 0; }
  .watch-stage { display:grid; place-items:center; min-height:0; }
  .watch-stage #screen { width:min(100%, calc((100dvh - 80px) * var(--video-ratio,0.5625))); }
  .watch-stage video { display:block; width:100%; }
  .embed-player .watch-stage #screen { width:100%; }
  .embed-player .watch-layout { height:auto; }
  .account-content { grid-template-columns: minmax(190px,22%) 1fr; }
}
@media(max-width:767px) {
  .account-content .tabs a::before { display:none; }
  .account-content .tabs [aria-current="page"] { color:#ef454b; }
}
.playback-bar { display:none; }
@media(min-width:768px) {
  .playback-bar { display:block; position:absolute; inset:auto 0 0; padding:20px 12px 8px; background:linear-gradient(transparent,#000d); color:white; }
  .playback-bar input { display:block; width:100%; height:4px; margin:0 0 8px; padding:0; accent-color:#eb3850; }
  .playback-bar div { display:flex; align-items:center; gap:10px; font-size:12px; }
  .playback-bar button { padding:4px; color:inherit; font:inherit; }
  .playback-bar .resolution { margin-left:auto; }
  .watch-stage #screen:fullscreen { width:100%; height:100%; background:#000; }
  #screen:fullscreen .player { width:100%; height:100%; object-fit:contain; }
  .watch-stage .next-episode { display:none; }
}
