:root {
  color-scheme: dark;
  --background: #0b1019;
  --surface: #121a27;
  --line: #263142;
  --text: #f2f5f7;
  --muted: #9ba8b9;
  --accent: #b9ef76;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--background); color: var(--text); font: 16px/1.7 "Fahkwang", Tahoma, sans-serif; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
button { color: inherit; }
button, input, select { -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
button { border: 0; background: none; }
h1, h2, p { margin: 0; }
.site-header { position: sticky; top: 0; z-index: 20; background: #0b1019ed; border-bottom: 1px solid #ffffff0c; backdrop-filter: blur(18px); }
.header-inner { max-width: 1440px; margin: auto; min-height: 88px; padding: 16px 48px; display: flex; align-items: center; gap: 42px; }
.brand { display: flex; gap: 10px; align-items: center; white-space: nowrap; font-weight: 700; font-size: 25px; padding: 0; }
.brand-symbol { display: grid; place-items: center; width: 35px; height: 40px; border: 1px solid #b9ef7645; border-radius: 11px; color: var(--accent); font-size: 24px; transform: rotate(-7deg); background: #b9ef760c; }
.brand-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); align-self: end; margin-bottom: 12px; }
.desktop-nav { display: flex; gap: 26px; align-items: center; }
.nav-link { color: var(--muted); font-size: 14px; padding: 10px 0; white-space: nowrap; }
.nav-link:hover, .nav-link.active { color: var(--text); }
.search-box { margin-left: auto; display: flex; gap: 12px; align-items: center; width: 340px; background: #171f2c; border: 1px solid #293344; border-radius: 12px; padding: 10px 14px; }
.search-box input { border: 0; outline: none; min-width: 0; width: 100%; color: var(--text); background: transparent; font-size: 14px; }
.search-box input::placeholder { color: #7f8b9c; }
.search-hint { font-size: 12px; color: #8290a3; white-space: nowrap; border-left: 1px solid #364153; padding-left: 12px; }
.search-icon { display: inline-block; width: 16px; height: 16px; border: 1.8px solid currentColor; border-radius: 50%; position: relative; flex: 0 0 auto; }
.search-icon::after { content: ""; position: absolute; width: 6px; height: 2px; right: -5px; bottom: -2px; background: currentColor; transform: rotate(45deg); border-radius: 2px; }
.catalog-view { max-width: 1440px; margin: auto; padding: 32px 48px 64px; }
.featured { position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr 280px; gap: 40px; align-items: center; min-height: 324px; padding: 28px 64px 28px 40px; margin-bottom: 42px; background: radial-gradient(ellipse at 92% 60%, #33776366, transparent 58%), linear-gradient(120deg, #1b2635, #141e29); border: 1px solid #3b4a514d; border-radius: 24px; }
.featured-copy { max-width: 640px; z-index: 1; }
.eyebrow { color: var(--accent); font-size: 13px; font-weight: 500; letter-spacing: .03em; }
.featured h1 { font-size: clamp(25px, 3vw, 39px); line-height: 1.35; margin: 12px 0 14px; font-weight: 700; }
.movie-facts { display: flex; flex-wrap: wrap; gap: 8px 16px; color: #c1cad5; font-size: 14px; align-items: center; }
.movie-facts span + span { position: relative; }
.movie-facts span + span::before { content: ""; display: inline-block; width: 3px; height: 3px; border-radius: 50%; background: #748090; margin-right: 12px; vertical-align: middle; }
.featured-description { color: #b5c0cf; }
#featured-description { color: #b5c0cf; font-size: 14px; line-height: 1.9; margin: 18px 0 22px; max-width: 580px; }
.primary-button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 12px 22px; border-radius: 10px; color: #192417; background: var(--accent); font-size: 15px; font-weight: 700; min-height: 46px; }
.primary-button:hover { background: #cbff8f; }
.play-triangle { border-left: 11px solid currentColor; border-top: 7px solid transparent; border-bottom: 7px solid transparent; width: 0; height: 0; }
.featured-art { position: relative; justify-self: center; }
.featured-art img { position: relative; z-index: 1; width: 170px; height: 255px; display: block; object-fit: cover; border-radius: 12px; box-shadow: 0 20px 55px #0007; transform: rotate(5deg); border: 1px solid #ffffff2c; }
.art-glow { position: absolute; inset: 20px -30px -20px; background: #9adf9e30; filter: blur(36px); }
.catalog-layout { display: grid; grid-template-columns: 185px minmax(0,1fr); gap: 32px; }
.genre-sidebar { padding-right: 24px; border-right: 1px solid #ffffff0b; }
.genre-sidebar h2 { font-size: 14px; color: #c4cdd8; margin: 4px 0 20px; font-weight: 500; }
.genre-list { display: flex; flex-direction: column; gap: 4px; }
.genre-list button { padding: 9px 12px; text-align: left; border-radius: 9px; font-size: 14px; color: #93a2b6; }
.genre-list button:hover { color: white; background: #ffffff05; }
.genre-list button.active { color: var(--accent); background: #b9ef760b; }
.results { min-width: 0; scroll-margin-top: 110px; }
.results-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.results-heading .eyebrow { color: #75859a; font-size: 12px; }
.results-heading h2 { font-size: 25px; margin-top: 5px; font-weight: 600; }
.filters { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin-bottom: 16px; }
.filters label { font-size: 12px; color: #8998ac; display: flex; flex-direction: column; gap: 6px; }
select { appearance: none; background-color: #141d2a; color: #d8e0eb; border: 1px solid #2c3747; border-radius: 8px; padding: 9px 34px 9px 12px; min-height: 44px; font-size: 14px; width: 100%; background-image: linear-gradient(45deg,transparent 50%,#9baaab 50%),linear-gradient(135deg,#9baaab 50%,transparent 50%); background-position: calc(100% - 16px) 19px,calc(100% - 12px) 19px; background-size: 4px 4px; background-repeat: no-repeat; }
.catalog-toolbar { display: flex; justify-content: space-between; align-items: center; min-height: 40px; margin-bottom: 22px; }
#catalog-status { color: var(--muted); font-size: 14px; }
.page-size-label { margin-left: auto; display: flex; gap: 10px; align-items: center; font-size: 12px; color: #8c9baf; white-space: nowrap; }
.page-size-label select { width: 108px; min-height: 36px; font-size: 12px; padding: 6px 28px 6px 10px; background-position: calc(100% - 16px) 15px,calc(100% - 12px) 15px; }
.movie-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 28px 20px; }
.card { padding: 0; text-align: left; min-width: 0; border-radius: 12px; transition: transform .18s ease; }
.card:hover { transform: translateY(-5px); }
.poster { position: relative; aspect-ratio: 2/3; background: #18212e; border-radius: 12px; overflow: hidden; border: 1px solid #ffffff0e; }
.poster img { width: 100%; height: 100%; object-fit: cover; display: block; transition: filter .2s; }
.card:hover .poster img { filter: brightness(.82); }
.poster::after { content: ""; position: absolute; inset: 60% 0 0; background: linear-gradient(transparent,#0009); pointer-events: none; }
.card-language { position: absolute; left: 9px; bottom: 10px; z-index: 1; padding: 3px 7px; border-radius: 5px; background: #0d1729bc; backdrop-filter: blur(7px); font-size: 11px; color: #eef3f8; }
.card-year { position: absolute; right: 9px; top: 9px; padding: 3px 7px; border-radius: 5px; background: #09111cbe; font-size: 12px; color: #edf4fa; }
.card-title { font-size: 15px; line-height: 1.65; font-weight: 500; margin: 12px 0 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-subtitle { color: #7f8da0; font-size: 12px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pagination { margin: 38px 0 8px; display: flex; justify-content: center; flex-wrap: wrap; gap: 7px; align-items: center; }
.pagination button { padding: 8px 12px; min-width: 38px; min-height: 40px; border-radius: 8px; color: #a9b6c6; font-size: 13px; border: 1px solid transparent; }
.pagination button:hover { background: #172332; }
.pagination button[aria-current="page"] { color: var(--accent); border-color: #b9ef7648; background: #b9ef7610; }
.pagination button:disabled { opacity: .3; cursor: default; }
.pagination .ellipsis { color: #69778b; }
.empty { grid-column: 1/-1; padding: 70px 0; text-align: center; color: var(--muted); }
.filter-toggle, .filter-sheet-heading, #filter-apply, .mobile-nav { display: none; }
.watch-view { max-width: 1200px; padding: 24px 36px 70px; margin: auto; }
.watch-top { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 20px; }
.watch-top > span { color: #77869a; font-size: 13px; }
.back-button { color: #bdc8d6; padding: 10px 14px; border: 1px solid #334154; border-radius: 9px; font-size: 14px; }
.back-button:hover { color: white; background: #172332; }
.screen { aspect-ratio: 16/9; background: #000; width: 100%; display: grid; place-items: center; border-radius: 14px; overflow: hidden; }
.screen iframe { width: 100%; height: 100%; border: 0; }
.screen p { color: var(--muted); padding: 24px; text-align: center; }
.player-options:empty { display: none; }
.player-options { margin-top: 16px; max-width: 300px; }
.film-information { display: grid; grid-template-columns: 145px minmax(0,1fr); gap: 30px; padding: 38px 0 0; }
.detail-poster { width: 145px; height: auto; aspect-ratio: 2/3; object-fit: cover; border-radius: 10px; border: 1px solid #ffffff18; }
.genre-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.genre-chips span { color: #a7c8b0; background: #183026; padding: 3px 10px; border-radius: 5px; font-size: 12px; }
.detail-copy h1 { font-size: 29px; line-height: 1.5; margin: 14px 0 10px; }
.translation-note { color: #8190a3; font-size: 12px; margin-top: 12px; }
.synopsis { margin-top: 28px; }
.synopsis h2 { font-size: 18px; font-weight: 600; margin-bottom: 10px; }
.synopsis p { color: #aebaca; font-size: 15px; line-height: 2; white-space: pre-line; }
.film-details { display: grid; grid-template-columns: 100px minmax(0,1fr); gap: 10px 18px; border-top: 1px solid #ffffff10; padding-top: 22px; margin-top: 26px; font-size: 14px; }
.film-details dt { color: #77899f; }
.film-details dd { margin: 0; color: #b9c5d4; overflow-wrap: anywhere; }
.filter-icon { width: 18px; height: 15px; display: inline-block; position: relative; border-top: 1.8px solid currentColor; border-bottom: 1.8px solid currentColor; }
.filter-icon::before { content: ""; position: absolute; left: 0; right: 0; top: 5px; border-top: 1.8px solid currentColor; }
.filter-icon::after { content: ""; position: absolute; width: 4px; height: 4px; top: -3px; left: 4px; background: var(--background); border: 1.5px solid currentColor; border-radius: 1px; box-shadow: 7px 7px 0 -1px var(--background); }
@media (min-width: 1380px) { .movie-grid { grid-template-columns: repeat(5,minmax(0,1fr)); } }
@media (max-width: 1120px) {
  .header-inner { gap: 24px; padding: 16px 28px; }
  .desktop-nav { gap: 18px; }
  .search-box { width: 285px; }
  .catalog-view { padding: 28px; }
  .catalog-layout { grid-template-columns: 155px minmax(0,1fr); gap: 24px; }
  .featured { padding: 28px 36px; grid-template-columns: 1fr 200px; }
  .movie-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 720px) {
  .site-header { position: relative; border-bottom: 0; background: none; backdrop-filter: none; }
  .header-inner { padding: 20px 20px 0; gap: 18px; min-height: 0; flex-wrap: wrap; }
  .brand { font-size: 24px; }
  .brand-symbol { height: 35px; width: 31px; font-size: 21px; }
  .brand-dot { margin-bottom: 10px; }
  .desktop-nav, .search-hint, .genre-sidebar { display: none; }
  .search-box { margin: 0; width: 100%; padding: 12px 16px; border-radius: 12px; }
  .search-box input { font-size: 14px; }
  .catalog-view { padding: 22px 20px 105px; }
  .featured { grid-template-columns: minmax(0,1fr) 105px; gap: 12px; min-height: 215px; padding: 22px 20px; border-radius: 18px; margin-bottom: 30px; }
  .featured .eyebrow { font-size: 11px; }
  .featured h1 { font-size: 21px; line-height: 1.45; margin: 8px 0 12px; }
  .featured .movie-facts { font-size: 11px; gap: 4px 8px; }
  .featured .movie-facts span + span::before { margin-right: 6px; }
  #featured-description { display: none; }
  .featured-art img { width: 96px; height: 144px; border-radius: 8px; }
  .featured .primary-button { font-size: 12px; padding: 9px 12px; min-height: 38px; gap: 8px; margin-top: 16px; }
  .featured .play-triangle { border-left-width: 8px; border-top-width: 5px; border-bottom-width: 5px; }
  .catalog-layout { display: block; }
  .results { scroll-margin-top: 20px; }
  .results-heading { margin-bottom: 15px; }
  .results-heading .eyebrow { font-size: 10px; }
  .results-heading h2 { font-size: 23px; }
  .filter-toggle { display: inline-flex; align-items: center; gap: 10px; border: 1px solid #344052; padding: 9px 12px; border-radius: 9px; font-size: 13px; }
  .filters { display: none; }
  .filters.is-open { display: grid; grid-template-columns: 1fr 1fr; position: fixed; z-index: 60; bottom: 0; left: 0; right: 0; background: #141d2a; padding: 24px 24px max(26px,env(safe-area-inset-bottom)); border-radius: 24px 24px 0 0; gap: 20px 14px; margin: 0; box-shadow: 0 -20px 80px #0006; }
  .filters label { font-size: 13px; }
  .filter-sheet-heading { display: flex; justify-content: space-between; align-items: center; grid-column: 1/-1; }
  .filter-sheet-heading h2 { font-size: 21px; }
  .text-button { color: var(--accent); font-size: 14px; padding: 8px; }
  #filter-apply { display: flex; grid-column: 1/-1; margin-top: 6px; }
  .filter-backdrop { position: fixed; inset: 0; background: #000a; z-index: 59; backdrop-filter: blur(3px); }
  .filters-open { overflow: hidden; }
  .catalog-toolbar { margin-bottom: 18px; min-height: 34px; }
  .page-size-label { font-size: 11px; }
  .page-size-label select { font-size: 12px; min-height: 34px; }
  .movie-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px 14px; }
  .poster { border-radius: 10px; }
  .card:hover { transform: none; }
  .card-title { font-size: 14px; margin-top: 10px; line-height: 1.7; }
  .card-subtitle { font-size: 11px; }
  .card-language { left: 7px; bottom: 7px; font-size: 10px; }
  .card-year { right: 7px; top: 7px; font-size: 11px; }
  .pagination { gap: 3px; margin-top: 30px; }
  .pagination button { padding: 7px 9px; font-size: 12px; min-width: 31px; }
  .mobile-nav { display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 30; background: #111a27f5; border-top: 1px solid #2e3b4c; padding: 12px 20px max(14px,env(safe-area-inset-bottom)); backdrop-filter: blur(16px); justify-content: space-around; }
  .mobile-nav button { display: flex; flex-direction: column; gap: 7px; align-items: center; font-size: 10px; color: #95a7bb; min-width: 70px; }
  .mobile-nav button:first-child { color: var(--accent); }
  .mobile-nav .search-icon { width: 15px; height: 15px; }
  .home-icon { display: block; width: 15px; height: 13px; border: 1.5px solid currentColor; border-top: 0; border-radius: 1px; position: relative; margin-top: 3px; }
  .home-icon::before { content: ""; position: absolute; width: 11px; height: 11px; border-left: 1.5px solid currentColor; border-top: 1.5px solid currentColor; transform: rotate(45deg); left: 0; top: -6px; }
  .watch-view { padding: 18px 0 110px; }
  body[data-view="watch"] .site-header { display: none; }
  .watch-top { padding: 0 20px; margin-bottom: 16px; }
  .watch-top > span { font-size: 11px; }
  .back-button { font-size: 12px; padding: 8px 12px; }
  .screen { border-radius: 0; }
  .player-options { margin: 14px 20px 0; }
  .film-information { grid-template-columns: 78px minmax(0,1fr); padding: 26px 20px 0; gap: 16px; align-items: start; }
  .detail-poster { width: 78px; border-radius: 6px; }
  .detail-copy { display: contents; }
  .genre-chips, .detail-copy h1, .detail-copy > .movie-facts, .translation-note { grid-column: 2; }
  .detail-poster { grid-column: 1; grid-row: 1/5; }
  .genre-chips { gap: 5px; }
  .genre-chips span { font-size: 10px; padding: 2px 6px; }
  .detail-copy h1 { font-size: 21px; margin: 0; }
  .detail-copy > .movie-facts { gap: 5px 10px; font-size: 12px; }
  .detail-copy > .movie-facts span + span::before { margin-right: 7px; }
  .translation-note { font-size: 10px; margin: 0; }
  .synopsis, .film-details { grid-column: 1/-1; }
  .synopsis { margin-top: 10px; }
  .synopsis p { font-size: 14px; }
  .film-details { grid-template-columns: 80px minmax(0,1fr); font-size: 13px; margin-top: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* Film descriptions and category navigation. */
.genre-chips button { color: #b5dfc0; background: #183026; padding: 5px 11px; border-radius: 6px; font-size: 13px; }
.genre-chips button:hover { background: #244533; color: #ddf6c9; }
.movie-overview { padding: 22px; background: #121c29; border: 1px solid #263647; border-radius: 12px; margin-top: 24px; }
.movie-overview h2 { font-size: 18px; margin-bottom: 12px; font-weight: 600; }
.movie-overview p { color: #b8c6d7; font-size: 15px; line-height: 1.95; white-space: pre-line; }
.details-link { color: #b9ef76; font-size: 14px; text-decoration: none; }
.details-link:hover { text-decoration: underline; }
#film-information { scroll-margin-top: 100px; }
.plot-unavailable { color: #8999ae !important; }
@media (max-width: 720px) {
  .movie-overview { grid-column: 1/-1; padding: 18px; margin-top: 8px; }
  .movie-overview p { font-size: 14px; }
  .genre-chips button { font-size: 12px; padding: 4px 7px; }
  .details-link { font-size: 12px; }
  #film-information { scroll-margin-top: 20px; }
}
