/* vidforall.com — Explore on the web (hub 1.47.0): the app's Explore, its film and people pages, in
   the same dark room as the rest of the site (web/assets/site.css's colours and type). */
:root {
  --night: #0d0f14;
  --night-2: #161921;
  --night-3: #1f232c;
  --night-4: #2a2e39;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --screen: #f5f5f7;
  --soft: #c9cbd3;
  --muted: #9b9ea8;
  --accent: #3b6ff5;
  --accent-hover: #5583ff;
  --link: #8aa9ff;
  --ember: #ff8f33;
  --gold: #ffc861;
  --ok: #4ccc80;
  --brand: linear-gradient(135deg, #3b6ff5 0%, #8e78b8 55%, #ff8f33 100%);
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --side: clamp(16px, 4vw, 56px);
  --radius: 12px;
  --poster: clamp(128px, 13vw, 176px);
  --wide: clamp(232px, 24vw, 320px);
  --face: clamp(104px, 10vw, 132px);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
html { scroll-padding-top: 80px; }
body {
  background: var(--night); color: var(--screen);
  font: 16px/1.55 var(--body); -webkit-font-smoothing: antialiased;
  min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
img { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.015em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* MARK: Top bar */
.bar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 18px;
  padding: 12px var(--side);
  background: rgba(13, 15, 20, .82); backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid var(--line); background-origin: border-box;
  transition: background-color .25s ease, border-color .25s ease;
}
body.over .bar { position: fixed; left: 0; right: 0; }
body.over .bar:not(.scrolled) { background: linear-gradient(rgba(8, 10, 14, .72), rgba(8, 10, 14, 0)) border-box; border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.mark { font: 800 21px/1 var(--display); letter-spacing: -0.02em; color: var(--screen); text-decoration: none; display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.mark svg { width: 28px; height: 28px; }
.nav { display: flex; gap: 2px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { color: var(--soft); text-decoration: none; font: 600 14.5px/1 var(--body); padding: 9px 11px; border-radius: 999px; white-space: nowrap; }
.nav a:hover { color: var(--screen); background: rgba(255, 255, 255, .06); }
.nav a[aria-current="page"] { color: var(--screen); background: rgba(255, 255, 255, .1); }
.bar-end { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.search { position: relative; }
.search input {
  width: clamp(160px, 18vw, 260px); font: 15px/1.2 var(--body); color: var(--screen);
  background: rgba(255, 255, 255, .08); border: 1px solid transparent; border-radius: 999px; padding: 9px 14px 9px 36px;
}
.search input:focus { outline: none; border-color: var(--accent); background: var(--night-2); }
.search svg { position: absolute; left: 12px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.suggest {
  position: absolute; right: 0; top: calc(100% + 8px); width: min(420px, 92vw); z-index: 40;
  background: var(--night-2); border: 1px solid var(--line-strong); border-radius: 14px; padding: 6px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55); list-style: none; margin: 0;
}
.suggest a { display: flex; gap: 12px; align-items: center; padding: 7px 8px; border-radius: 10px; color: var(--screen); text-decoration: none; }
.suggest a:hover, .suggest a.on { background: var(--night-4); }
.suggest img, .suggest .ph { width: 36px; height: 54px; border-radius: 6px; object-fit: cover; flex: none; background: var(--night-3); }
.suggest .person img, .suggest .person .ph { width: 44px; height: 44px; border-radius: 50%; }
.suggest b { display: block; font-weight: 600; font-size: 14.5px; }
.suggest small { color: var(--muted); font-size: 13px; }

/* MARK: Buttons */
.button {
  appearance: none; border: 0; cursor: pointer; font: 600 15px/1 var(--body);
  padding: 12px 18px; border-radius: 999px; background: rgba(255, 255, 255, .12); color: var(--screen);
  text-decoration: none; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  transition: background-color .15s ease, transform .1s ease;
}
.button:hover { background: rgba(255, 255, 255, .2); }
.button:active { transform: translateY(1px); }
.button.primary { background: var(--screen); color: #0d0f14; }
.button.primary:hover { background: #fff; }
.button.free { background: var(--ok); color: #06210f; }
.button.free:hover { background: #63dc93; }
.button.blue { background: var(--accent); color: #fff; }
.button.blue:hover { background: var(--accent-hover); }
.button.small { font-size: 13.5px; padding: 9px 13px; }
.button svg { width: 16px; height: 16px; flex: none; }
.button .price { font-weight: 500; opacity: .75; }
.buttons { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.app-button { font-size: 14px; padding: 9px 14px; }

/* MARK: The stage */
.stage { position: relative; height: clamp(440px, 78vh, 820px); overflow: hidden; background: #000; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease; pointer-events: none; }
.slide.on { opacity: 1; pointer-events: auto; }
.slide > img, .slide > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slide > video { opacity: 0; transition: opacity 1.2s ease; }
.slide > video.playing { opacity: 1; }
.slide.on > img { animation: drift 24s ease-out both; }
@keyframes drift { from { transform: scale(1.08); } to { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .slide.on > img { animation: none; } }
.slide::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(13, 15, 20, .92) 0%, rgba(13, 15, 20, .55) 38%, rgba(13, 15, 20, 0) 70%),
              linear-gradient(0deg, var(--night) 0%, rgba(13, 15, 20, 0) 34%);
}
.slide-body { position: absolute; z-index: 2; left: var(--side); bottom: clamp(56px, 10vh, 110px); width: min(560px, calc(100% - 2 * var(--side))); }
.kicker { font: 800 12.5px/1 var(--body); letter-spacing: .14em; color: var(--ember); margin: 0 0 14px; }
.logo { max-width: min(420px, 80%); max-height: 150px; object-fit: contain; object-position: left bottom; margin: 0 0 16px; filter: drop-shadow(0 6px 20px rgba(0, 0, 0, .5)); }
.slide h2, .hero h1 { font-size: clamp(34px, 5vw, 62px); line-height: 1.02; font-weight: 800; margin: 0 0 12px; text-wrap: balance; }
.facts { color: var(--soft); font-size: 15px; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 4px 12px; }
.facts span + span::before { content: "·"; margin-right: 12px; color: var(--muted); }
.blurb { color: var(--soft); margin: 0 0 22px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.dots { position: absolute; z-index: 3; right: var(--side); bottom: clamp(56px, 10vh, 110px); display: flex; gap: 8px; }
.dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0; background: rgba(255, 255, 255, .35); cursor: pointer; }
.dots button[aria-current="true"] { background: var(--screen); width: 26px; border-radius: 99px; }
.stage-quiet { height: auto; margin: 0; padding: 96px var(--side) 24px; background: none; }

/* MARK: Rows */
.rows { display: flex; flex-direction: column; gap: clamp(30px, 4vw, 46px); padding: 8px 0 56px; position: relative; z-index: 2; }
.stage + .rows { margin-top: -28px; }
.row-head { display: flex; align-items: baseline; gap: 14px; padding: 0 var(--side); margin-bottom: 12px; }
.row-head h2 { font-size: clamp(19px, 1.6vw, 23px); margin: 0; font-weight: 700; }
.row-head h2 a { color: inherit; text-decoration: none; }
.row-head .note { color: var(--muted); font-size: 14px; margin: 0; }
.row-head .more { margin-left: auto; color: var(--muted); font: 600 14px/1 var(--body); text-decoration: none; white-space: nowrap; }
.row-head .more:hover { color: var(--screen); }
.shelf-wrap { position: relative; }
.shelf {
  display: grid; grid-auto-flow: column; gap: 14px; overflow-x: auto; overscroll-behavior-x: contain;
  padding: 4px var(--side) 12px; scroll-padding: 0 var(--side); scroll-snap-type: x proximity; scrollbar-width: none;
}
.shelf::-webkit-scrollbar { display: none; }
.shelf > * { scroll-snap-align: start; }
.shelf.posters { grid-auto-columns: var(--poster); }
.shelf.wide { grid-auto-columns: var(--wide); }
.shelf.people { grid-auto-columns: var(--face); }
.shelf.news { grid-auto-columns: clamp(260px, 26vw, 340px); }
.shelf.tiles { grid-auto-columns: clamp(200px, 20vw, 260px); }
.shelf.ranked { grid-auto-columns: calc(var(--poster) + 54px); }
.shelf.seasons { grid-auto-columns: var(--poster); }
.arrow {
  position: absolute; top: 0; bottom: 12px; width: var(--side); min-width: 40px; border: 0; z-index: 3;
  background: linear-gradient(90deg, rgba(13, 15, 20, .9), rgba(13, 15, 20, 0)); color: var(--screen);
  font-size: 30px; cursor: pointer; opacity: 0; transition: opacity .2s ease;
}
.arrow.next { right: 0; background: linear-gradient(270deg, rgba(13, 15, 20, .9), rgba(13, 15, 20, 0)); }
.arrow.prev { left: 0; }
.shelf-wrap:hover .arrow:not([disabled]) { opacity: 1; }
.arrow[disabled] { display: none; }
@media (hover: none) { .arrow { display: none; } }

/* MARK: Cards */
.card { display: block; color: var(--screen); text-decoration: none; min-width: 0; position: relative; }
.pic { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--night-3); box-shadow: 0 0 0 1px var(--line) inset; }
.pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease, opacity .4s ease; }
.pic img.fade { opacity: 0; }
.poster .pic { aspect-ratio: 2 / 3; }
.wide .pic, .card.wide .pic { aspect-ratio: 16 / 9; }
.card:hover .pic img { transform: scale(1.04); }
.card:hover .pic { box-shadow: 0 0 0 2px rgba(255, 255, 255, .55) inset; }
.ph {
  position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 12px;
  background: radial-gradient(120% 90% at 0% 0%, #2b3550 0%, transparent 60%), linear-gradient(160deg, #1d2130, #12141b);
  font: 700 15px/1.2 var(--display); color: var(--soft); letter-spacing: -0.01em;
}
.wide .ph { align-items: center; justify-content: center; text-align: center; font-size: 17px; }
.card .t { margin: 8px 2px 0; font-weight: 600; font-size: 14.5px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .t a { color: inherit; text-decoration: none; }
.card .t a:hover { text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .4); }
.card .l { margin: 2px 2px 0; color: var(--muted); font-size: 13px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.badge { position: absolute; top: 8px; left: 8px; z-index: 2; font: 800 11px/1 var(--body); letter-spacing: .08em; padding: 5px 7px; border-radius: 6px; background: var(--ok); color: #06210f; }
.play-mark {
  position: absolute; z-index: 2; right: 10px; bottom: 10px; width: 36px; height: 36px; border-radius: 50%;
  background: rgba(0, 0, 0, .55); backdrop-filter: blur(6px); display: grid; place-items: center; opacity: .9;
}
.play-mark svg { width: 14px; height: 14px; margin-left: 2px; }
.card.ranked { display: grid; grid-template-columns: 54px 1fr; align-items: end; }
.card.ranked .n { font: 900 76px/0.8 var(--display); color: transparent; -webkit-text-stroke: 2px rgba(255, 255, 255, .55); text-align: right; padding-right: 2px; margin-bottom: 52px; }
.card.ranked .t, .card.ranked .l { grid-column: 2; }
.card.ranked .pic { grid-column: 2; grid-row: 1; aspect-ratio: 2 / 3; }
.card.ranked .n { grid-row: 1; }

.face { display: block; text-align: center; color: var(--screen); text-decoration: none; }
.face .pic { aspect-ratio: 1; border-radius: 50%; }
.face .ph { justify-content: center; align-items: center; font-size: 26px; border-radius: 50%; padding: 0; }
.face .t { margin: 8px 0 0; font-weight: 600; font-size: 14px; line-height: 1.3; }
.face .l { margin: 2px 0 0; color: var(--muted); font-size: 12.5px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.tile { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--night-3); text-decoration: none; color: var(--screen); }
.tile img { width: 100%; height: 100%; object-fit: cover; opacity: .62; transition: transform .35s ease, opacity .25s ease; }
.tile:hover img { opacity: .8; transform: scale(1.04); }
.tile b { position: absolute; left: 14px; bottom: 12px; font: 800 19px/1.1 var(--display); text-shadow: 0 2px 12px rgba(0, 0, 0, .7); }
.tile small { position: absolute; right: 12px; bottom: 13px; font-weight: 600; color: var(--soft); font-size: 13px; }
.tile.on { box-shadow: 0 0 0 3px var(--gold) inset; }
.tile.on img { opacity: .8; }

.news-card { display: flex; flex-direction: column; color: var(--screen); text-decoration: none; background: var(--night-2); border-radius: var(--radius); overflow: hidden; height: 100%; box-shadow: 0 0 0 1px var(--line) inset; }
.news-card .pic { aspect-ratio: 16 / 9; border-radius: 0; box-shadow: none; }
.news-card .body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.news-card .src { color: var(--ember); font: 700 12px/1 var(--body); letter-spacing: .04em; text-transform: uppercase; }
.news-card b { font-weight: 650; font-size: 15px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-card small { color: var(--muted); font-size: 13px; margin-top: auto; }
.news-card:hover { background: var(--night-3); }

/* MARK: Grids */
.grid { display: grid; gap: 22px 14px; padding: 0 var(--side); }
.grid.posters { grid-template-columns: repeat(auto-fill, minmax(var(--poster), 1fr)); }
.grid.wide { grid-template-columns: repeat(auto-fill, minmax(var(--wide), 1fr)); }
.grid.people { grid-template-columns: repeat(auto-fill, minmax(var(--face), 1fr)); }
.grid.tiles { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.grid.news { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.page-head { padding: 34px var(--side) 18px; }
.page-head h1 { font-size: clamp(30px, 4vw, 46px); line-height: 1.05; margin: 0 0 8px; font-weight: 800; }
.page-head p { color: var(--muted); margin: 0; max-width: 720px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 var(--side); margin: 0 0 22px; }
.chips a, .chip {
  color: var(--soft); text-decoration: none; font: 600 14px/1 var(--body); padding: 9px 13px; border-radius: 999px;
  background: rgba(255, 255, 255, .06); box-shadow: 0 0 0 1px var(--line) inset; white-space: nowrap;
}
.chips a:hover { color: var(--screen); background: rgba(255, 255, 255, .1); }
.chips a[aria-current="page"] { color: #0d0f14; background: var(--screen); }
.chips.inline { padding: 0; margin: 0; }
.more-wrap { display: flex; justify-content: center; gap: 10px; padding: 30px var(--side) 0; }
.empty { padding: 40px var(--side); color: var(--muted); }
.section { padding: 0 var(--side); }
.section h2 { font-size: clamp(19px, 1.6vw, 23px); margin: 0 0 12px; }

/* MARK: A film's, show's or person's page */
.hero { position: relative; min-height: clamp(480px, 74vh, 760px); display: flex; align-items: flex-end; overflow: hidden; }
.hero-back { position: absolute; inset: 0; }
.hero-back img, .hero-back video { width: 100%; height: 100%; object-fit: cover; }
.hero-back video { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; }
.hero-back video.playing { opacity: 1; }
.hero-back::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(13, 15, 20, .94) 0%, rgba(13, 15, 20, .7) 40%, rgba(13, 15, 20, .15) 75%),
              linear-gradient(0deg, var(--night) 0%, rgba(13, 15, 20, 0) 45%);
}
.hero.plain .hero-back::after { background: radial-gradient(90% 120% at 80% 0%, rgba(59, 111, 245, .22), transparent 60%), linear-gradient(0deg, var(--night), var(--night)); }
.hero-body { position: relative; z-index: 2; display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 3vw, 40px); align-items: end; padding: 110px var(--side) 32px; width: 100%; }
.hero-poster { width: clamp(150px, 17vw, 250px); aspect-ratio: 2 / 3; border-radius: 14px; overflow: hidden; background: var(--night-3); box-shadow: 0 24px 60px rgba(0, 0, 0, .6), 0 0 0 1px var(--line) inset; position: relative; }
.hero-poster img { width: 100%; height: 100%; object-fit: cover; }
.hero-text { max-width: 760px; min-width: 0; }
.hero .logo { max-height: 140px; }
.tagline { color: var(--soft); font-style: italic; margin: 0 0 14px; }
.genres { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; }
.genres a, .genres span { font: 600 13px/1 var(--body); color: var(--soft); text-decoration: none; padding: 7px 10px; border-radius: 999px; background: rgba(255, 255, 255, .1); }
.genres a:hover { background: rgba(255, 255, 255, .18); color: var(--screen); }
.shop-note { color: var(--muted); font-size: 12.5px; margin: 10px 0 0; }
.person-hero .hero-poster { border-radius: 50%; aspect-ratio: 1; width: clamp(150px, 15vw, 220px); }
.person-hero .facts { display: block; }
.person-hero .facts span { display: block; }
.person-hero .facts span + span::before { content: none; }
.links { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 14px 0 18px; padding: 0; list-style: none; }
.links a { color: var(--link); font-size: 14.5px; font-weight: 600; text-decoration: none; }
.links a:hover { text-decoration: underline; }
.numbers { display: flex; gap: 28px; margin: 0 0 20px; }
.numbers div b { display: block; font: 800 26px/1 var(--display); }
.numbers div span { color: var(--muted); font-size: 13px; }

.page-body { display: flex; flex-direction: column; gap: clamp(30px, 4vw, 44px); padding: 12px 0 56px; }
.two { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); padding: 0 var(--side); }
.story p { margin: 0 0 14px; color: var(--soft); font-size: 16.5px; line-height: 1.65; max-width: 72ch; }
.credit-line, .story p.credit-line { color: var(--muted); font-size: 12.5px; margin: 4px 0 0; }
.dl { display: grid; grid-template-columns: max-content 1fr; gap: 9px 18px; margin: 0; font-size: 15px; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; color: var(--soft); }
.dl dd a { color: var(--soft); text-decoration-color: rgba(255, 255, 255, .3); }
.dl dd a:hover { color: var(--screen); }
.where { display: grid; gap: 12px; }
.where div { display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; }
.where b { width: 70px; flex: none; color: var(--muted); font-weight: 600; font-size: 14px; }
.panel { background: var(--night-2); border-radius: 16px; padding: 20px 22px; box-shadow: 0 0 0 1px var(--line) inset; }
.panel h2, .panel h3 { margin: 0 0 14px; font-size: 18px; }
.panel + .panel { margin-top: 18px; }
.wiki p { color: var(--soft); margin: 0 0 12px; }
.reviews { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; padding: 0 var(--side); }
.review { background: var(--night-2); border-radius: 14px; padding: 16px 18px; box-shadow: 0 0 0 1px var(--line) inset; }
.review header { display: flex; gap: 10px; align-items: baseline; margin-bottom: 8px; }
.review header b { font-weight: 650; }
.review header small { color: var(--muted); }
.review header .stars { margin-left: auto; color: var(--gold); font-weight: 700; font-size: 14px; }
.review p { margin: 0 0 8px; color: var(--soft); font-size: 15px; white-space: pre-line; display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; }
.review details summary { cursor: pointer; color: var(--muted); font-size: 14px; }
.review a { font-size: 13.5px; }
.headlines { list-style: none; margin: 0; padding: 0 var(--side); display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 12px; }
.headline { display: grid; grid-template-columns: 112px 1fr; gap: 12px; color: var(--screen); text-decoration: none; padding: 10px; border-radius: 12px; background: var(--night-2); box-shadow: 0 0 0 1px var(--line) inset; }
.headline:hover { background: var(--night-3); }
.headline .pic { aspect-ratio: 16 / 10; border-radius: 8px; }
.headline b { font-weight: 600; font-size: 14.5px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.headline small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 4px; }

/* MARK: Seasons */
.episodes { list-style: none; margin: 0; padding: 0 var(--side); display: grid; gap: 14px; }
.episode { display: grid; grid-template-columns: clamp(140px, 22vw, 260px) 1fr; gap: 18px; background: var(--night-2); border-radius: 14px; padding: 12px; box-shadow: 0 0 0 1px var(--line) inset; }
.episode .pic { aspect-ratio: 16 / 9; border-radius: 9px; }
.episode h3 { margin: 4px 0 4px; font-size: 17px; }
.episode small { color: var(--muted); font-size: 13.5px; }
.episode p { margin: 8px 0 0; color: var(--soft); font-size: 15px; }

/* MARK: Free Cinema's player */
.theater { padding: 26px var(--side) 0; }
.theater video { width: 100%; max-height: 78vh; background: #000; border-radius: 16px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.watch-head { padding: 22px var(--side) 0; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); }
.watch-head h1 { font-size: clamp(28px, 3.4vw, 42px); margin: 0 0 8px; }

/* MARK: Box Office */
.charts { display: grid; gap: 40px; padding: 0 var(--side); }
.chart h2 { margin: 0 0 4px; font-size: 22px; }
.chart .note { color: var(--muted); margin: 0 0 14px; font-size: 14px; }
.chart ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 8px 18px; }
.chart li a { display: grid; grid-template-columns: 34px 44px 1fr auto; gap: 12px; align-items: center; padding: 8px 10px; border-radius: 12px; color: var(--screen); text-decoration: none; }
.chart li a:hover { background: var(--night-2); }
.chart .rank { font: 800 20px/1 var(--display); color: var(--muted); text-align: right; }
.chart .pic { width: 44px; aspect-ratio: 2 / 3; border-radius: 6px; }
.chart .ph { font-size: 0; }
.chart b { display: block; font-weight: 600; font-size: 15px; line-height: 1.3; }
.chart small { color: var(--muted); font-size: 13px; }
.chart .gross { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--soft); text-align: right; font-size: 14.5px; }
.chart .src { font-size: 12.5px; color: var(--muted); margin: 10px 0 0; }

/* MARK: Connections */
.connect-form { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: center; padding: 0 var(--side); max-width: 980px; }
.picker { position: relative; }
.picker input { width: 100%; font: 16px/1.3 var(--body); color: var(--screen); background: var(--night-2); border: 1px solid var(--line-strong); border-radius: 12px; padding: 13px 14px; }
.picker input:focus { outline: none; border-color: var(--accent); }
.picker .suggest { left: 0; right: auto; width: 100%; }
.chosen { display: flex; align-items: center; gap: 12px; padding: 8px; background: var(--night-2); border-radius: 14px; box-shadow: 0 0 0 1px var(--line) inset; }
.chosen .pic { width: 54px; height: 54px; border-radius: 50%; flex: none; }
.chosen b { font-weight: 650; }
.chosen a.change { margin-left: auto; font-size: 13.5px; color: var(--muted); }
.chain { list-style: none; margin: 0; padding: 0 var(--side); display: grid; gap: 12px; max-width: 980px; }
.chain li { display: grid; grid-template-columns: var(--face) 1fr var(--face); gap: 16px; align-items: center; background: var(--night-2); border-radius: 16px; padding: 14px; box-shadow: 0 0 0 1px var(--line) inset; }
.chain .film { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: center; color: var(--screen); text-decoration: none; }
.chain .film .pic { aspect-ratio: 2 / 3; border-radius: 8px; }
.chain .film small { color: var(--muted); }
.working { padding: 0 var(--side); color: var(--muted); display: flex; gap: 12px; align-items: center; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line-strong); border-top-color: var(--screen); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* MARK: The player (over the page) */
dialog.player { border: 0; padding: 0; background: #000; width: min(1200px, 94vw); border-radius: 16px; overflow: visible; box-shadow: 0 40px 120px rgba(0, 0, 0, .8); color: var(--screen); }
dialog.player::backdrop { background: rgba(4, 5, 8, .86); backdrop-filter: blur(6px); }
.player-frame { aspect-ratio: 16 / 9; width: 100%; }
.player-frame iframe, .player-frame video { width: 100%; height: 100%; border: 0; border-radius: 16px; display: block; background: #000; }
.player-close { position: absolute; top: -46px; right: 0; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: var(--screen); font-size: 22px; cursor: pointer; }
.player-close:hover { background: rgba(255, 255, 255, .24); }
.player-note { position: absolute; left: 0; bottom: -34px; color: var(--muted); font-size: 13px; }
.player-note a { color: var(--soft); }

/* MARK: Footer */
footer.foot { border-top: 1px solid var(--line); padding: 34px var(--side) 40px; color: var(--muted); font-size: 13px; display: grid; gap: 18px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot-links a { color: var(--soft); text-decoration: none; font-size: 14px; font-weight: 500; }
.foot-links a:hover { color: var(--screen); }
.small-print { max-width: 920px; margin: 0; line-height: 1.6; }
.small-print a { color: var(--muted); }
.foot-end { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
.foot-end a { color: var(--soft); }

/* MARK: Narrow screens */
@media (max-width: 900px) {
  .bar { flex-wrap: wrap; gap: 10px; padding-top: 10px; padding-bottom: 8px; }
  .nav { order: 3; width: 100%; margin: 0 calc(-1 * var(--side)); padding: 0 var(--side); }
  .bar-end { margin-left: auto; }
  .search input { width: 150px; }
  .app-button { display: none; }
  .two, .watch-head { grid-template-columns: 1fr; }
  .hero-body { grid-template-columns: 1fr; padding-top: 150px; }
  .hero-poster { width: 132px; }
  .person-hero .hero-poster { width: 120px; }
  .connect-form { grid-template-columns: 1fr; }
  .chain li { grid-template-columns: 1fr; }
  .chart ol { grid-template-columns: 1fr; }
  .headlines { grid-template-columns: 1fr; }
  .dots { left: var(--side); right: auto; bottom: 22px; }
  .slide-body { bottom: 48px; }
  .stage + .rows { margin-top: 0; }
}
@media (max-width: 560px) {
  .mark span { display: none; }
  .button .price { display: none; }
  .search input { width: 130px; }
  .episode { grid-template-columns: 1fr; }
  .reviews { grid-template-columns: 1fr; }
  .hero-poster { display: none; }
  .person-hero .hero-poster { display: block; }
}
