:root {
  color-scheme: dark;
  --base: #131615;
  --surface: #1d2220;
  --line: #353e39;
  --text: #f4f2e8;
  --muted: #bdc6bf;
  --accent: #e8c47f;
  --ink: #232017;
  font-family: "DM Sans", system-ui, sans-serif;
  line-height: 1.5;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; color: var(--text); background: var(--base); }
a { color: inherit; }
button, input, select { font: inherit; }
h1, h2, p { margin: 0; }
h1, h2 { line-height: 1.08; }
h1, .spotlight h2 { font-family: Georgia, serif; font-weight: 500; letter-spacing: -.055em; }
h1 { font-size: clamp(2.5rem, 7vw, 4.9rem); }
h2 { font-size: clamp(1.45rem, 4vw, 2rem); letter-spacing: -.04em; }
button, .button {
  appearance: none;
  border: 1px solid transparent;
  background: var(--accent);
  color: var(--ink);
  border-radius: .55rem;
  padding: .65rem 1.05rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 720;
  text-decoration: none;
  cursor: pointer;
}
button:disabled { opacity: .6; cursor: default; }
button:not(:disabled):hover, .button:hover { filter: brightness(1.13); }
.secondary { background: var(--surface); color: var(--text); border-color: var(--line); }
input, select {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: .55rem;
  background: var(--surface);
  color: var(--text);
  padding: .58rem .8rem;
}
input::placeholder { color: var(--muted); }
:focus-visible { outline: 2px solid #f9d58c; outline-offset: 3px; }
.wrap { width: min(100% - 44px, 1180px); margin-inline: auto; }
.top { border-block-end: 1px solid var(--line); }
.nav { display: flex; justify-content: space-between; align-items: center; min-height: 65px; }
.brand { font-weight: 800; font-size: 1.2rem; text-decoration: none; display: inline-flex; align-items: center; gap: .55rem; }
.mark { background: var(--accent); color: var(--ink); font-size: .7rem; display: grid; place-content: center; width: 1.55rem; height: 1.55rem; border-radius: .4rem; }
.nav-link { background: transparent; color: var(--muted); padding: .25rem .5rem; font-size: .92rem; }
main { padding-block: 2.5rem 4rem; min-height: 75vh; }
.footer { border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 1.25rem; padding-block: 1.25rem 2rem; font-size: .86rem; color: var(--muted); }
.footer details p { margin-block: .4rem; }
.footer summary { cursor: pointer; }
.credit-logo { display: block; object-fit: contain; }
.skip, .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(100%); white-space: nowrap; }
.skip:focus { top: .5rem; left: .5rem; width: auto; height: auto; clip-path: none; background: var(--accent); color: var(--ink); padding: .5rem; z-index: 3; }
.intro { margin-bottom: 1.9rem; }
.search { display: flex; gap: .55rem; max-width: 620px; margin-top: 1.25rem; }
.search input { flex: 1; min-width: 0; }
.genres { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1.25rem; }
.genres a, .paging a {
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: 2rem;
  padding: .4rem .8rem;
  color: var(--muted);
  font-size: .87rem;
  text-decoration: none;
}
.genres a[aria-current], .genres a:hover, .paging a:hover { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.spotlight {
  position: relative;
  isolation: isolate;
  border: 1px solid var(--line);
  border-radius: 1rem;
  min-height: clamp(320px, 43vw, 475px);
  background: #282e29;
  overflow: hidden;
  display: flex;
  align-items: end;
}
.spotlight-image, .spotlight::after { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; }
.spotlight-image { object-fit: cover; object-position: center 34%; }
.spotlight::after { content: ""; background: linear-gradient(90deg, #101410f7 0%, #111511ce 28%, #11151125 68%), linear-gradient(0deg, #111511ed, transparent 68%); }
.spotlight-text { max-width: 38rem; padding: clamp(1.35rem, 5vw, 3.4rem); }
.spotlight h2 { font-size: clamp(2.3rem, 6vw, 4.4rem); }
.spotlight p { color: #e5e7de; margin-block: .75rem 1.35rem; max-width: 44ch; }
.spotlight .button { margin-top: 1rem; }
.spotlight p + .button { margin-top: 0; }
.section-title { margin-block: 2.1rem 1rem; }
.movie-grid { padding: 0; margin: 0; list-style: none; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1.2rem; }
.movie-card { display: block; text-decoration: none; color: var(--text); overflow-wrap: anywhere; }
.movie-card:hover strong { color: var(--accent); text-decoration: underline; }
.movie-card img, .poster-placeholder {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: .65rem;
  margin-bottom: .52rem;
}
.movie-card .poster-placeholder { display: grid; place-content: center; color: var(--muted); }
.movie-card strong, .movie-card > span:last-child { display: block; line-height: 1.28; }
.movie-card > span { color: var(--muted); font-size: .86rem; margin-top: .2rem; }
.paging { display: flex; gap: 1rem; justify-content: center; align-items: center; margin-top: 2rem; }
.breadcrumb { display: inline-block; color: var(--muted); margin-bottom: 1.25rem; }
.film { display: flex; align-items: center; gap: clamp(1rem, 4vw, 3rem); }
.film-poster { width: clamp(11rem, 23vw, 17rem); height: auto; border-radius: .8rem; border: 1px solid var(--line); }
.film-copy { min-width: 0; }
.meta { display: flex; flex-wrap: wrap; gap: .35rem 1rem; padding: 0; list-style: none; color: var(--accent); }
.subtle { color: var(--muted); }
.synopsis { font-size: clamp(1rem, 2vw, 1.2rem); margin-block: .75rem; max-width: 63ch; }
.actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.film-panels { display: grid; grid-template-columns: 1.6fr 1fr; gap: .85rem; margin-top: 1.5rem; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: .85rem; padding: clamp(1rem, 3vw, 1.7rem); }
.panel h2 + p, .panel h2 + a, .section-bar + p { margin-top: .8rem; }
.section-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; justify-content: space-between; }
.region { display: flex; flex-wrap: wrap; gap: .35rem; }
.offers { margin-block: 1rem; }
.offers dt { font-weight: bold; }
.offers dd { margin: .35rem 0 .65rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.provider { display: inline-flex; align-items: center; gap: .4rem; background: var(--base); border: 1px solid var(--line); border-radius: .45rem; padding: .25rem .45rem; font-size: .88rem; }
.provider img { object-fit: contain; border-radius: .2rem; }
.release-date { font-size: 1.35rem; color: var(--accent); }
.market { margin-top: 1rem; }
.market summary { color: var(--muted); cursor: pointer; }
.market form { margin-block: .75rem; }
.people { list-style: none; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .7rem; margin: 0; padding: 0; }
.people li { min-width: 0; overflow-wrap: anywhere; }
.people img, .portrait-placeholder { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 28%; background: var(--surface); display: block; border-radius: .55rem; margin-bottom: .35rem; }
.people strong, .people small { display: block; }
.people small { color: var(--muted); }
.trailer-card { max-width: 850px; }
.trailer-play, .trailer-card iframe { width: 100%; aspect-ratio: 16 / 9; border-radius: .7rem; border: 1px solid var(--line); }
.trailer-play { background: radial-gradient(ellipse at center, #434035, #1c201d 65%); color: var(--text); flex-direction: column; gap: 1rem; }
.trailer-play span { width: 3.2rem; height: 3.2rem; display: grid; place-content: center; border-radius: 100%; background: var(--accent); color: var(--ink); }
.trailer-links { display: flex; gap: .7rem 1rem; flex-wrap: wrap; margin-top: .55rem; color: var(--muted); }
.download-info { margin-top: 1.5rem; }
.signin { max-width: 450px; margin: 2rem auto; }
.signin h1 { font-size: clamp(2.5rem, 6vw, 3.7rem); }
.signin-fields { display: grid; gap: .45rem; margin-top: 1.1rem; }
.signin-fields label:not(:first-of-type), .signin-fields button { margin-top: .55rem; }
.notice { margin-block: .8rem; padding: .75rem .9rem; border: 1px solid var(--line); border-radius: .5rem; background: var(--surface); color: var(--muted); }
.notice.error { color: #ffc4b6; border-color: #84574f; }
.notice.success { color: #cbe9bf; border-color: #4d6e45; }
.release-list { list-style: none; padding: 0; display: grid; gap: .65rem; }
.release-row { display: flex; flex-wrap: wrap; gap: .55rem 1rem; justify-content: space-between; align-items: center; overflow-wrap: anywhere; }
.release-row p { color: var(--muted); font-size: .92rem; }
.release-row details { width: min(100%, 27rem); }
.release-row summary { cursor: pointer; width: fit-content; }
.release-row form { margin-top: .65rem; display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; }
@media (max-width: 850px) {
  .movie-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .people { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .wrap { width: calc(100% - 28px); }
  main { padding-top: 1.5rem; }
  .movie-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .85rem .55rem; }
  .movie-card strong { font-size: .9rem; }
  .film { align-items: start; flex-direction: column; }
  .film-poster { width: min(52%, 10rem); }
  .film-panels { grid-template-columns: 1fr; }
  .spotlight-image { object-position: 61% center; }
  .spotlight::after { background: linear-gradient(0deg, #101410f8 3%, #111511c6 32%, #11151115 80%); }
}
.nav-right { display: flex; align-items: center; gap: clamp(.5rem, 2vw, 1.25rem); }
.queue-state { color: var(--accent); font-size: .9rem; }
.queue li > p { margin-top: .35rem; overflow-wrap: anywhere; }
.queue-progress { display: flex; align-items: center; color: var(--muted); gap: .75rem; margin-top: .6rem; }
.queue-progress progress { accent-color: var(--accent); width: min(70%, 360px); height: .8rem; }
.queue-jellyfin { margin-top: .7rem; }
