@font-face {
  font-family: Geist; src: url('./fonts/geist.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
}
:root {
  color-scheme: dark;
  font-family: Geist, system-ui, sans-serif;
  background: #000; color: #f8f8f8;
  --red: #e50914; --muted: #b2b2b2; --panel: #181818; --raised: #1f1f1f; --edge: #313131;
  --gutter: clamp(1rem, 4vw, 4rem); --page-max: 90rem; --ease-settle: cubic-bezier(.22,1,.36,1);
}
:root:lang(ko) { font-family: Geist, 'Apple SD Gothic Neo', 'Malgun Gothic', 'Noto Sans KR', sans-serif; }
:root:lang(ja) { font-family: Geist, 'Hiragino Kaku Gothic ProN', 'Yu Gothic', Meiryo, sans-serif; }
:root:lang(th) { font-family: Geist, 'Leelawadee UI', Thonburi, 'Noto Sans Thai', sans-serif; }
html { scroll-padding-block-start: 5rem; }
body { line-height: 1.5; }
:is(h1,h2,h3) { text-wrap: balance; }
:is(h1,h2,h3,p):lang(ko) { word-break: keep-all; overflow-wrap: anywhere; }
:is(time,.score,.detail-meta,.cat-meta,.admin-metrics) { font-variant-numeric: tabular-nums; }
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 280px; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button, summary, select { cursor: pointer; }
button, input, select, textarea { border: 1px solid var(--edge); border-radius: .45rem; background: #242428; padding: .55rem .8rem; }
button:hover, .button:hover { background: #38383d; }
a:hover { color: white; text-decoration: underline; }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.tv-remote .card > a { display: block; }
.tv-remote .remote-focus, .tv-remote .cine-options input.remote-focus + span {
  outline: 4px solid #fff !important; outline-offset: -3px; box-shadow: 0 0 0 2px #111;
}
.tv-remote [data-remote-toggle][aria-pressed=true] { border-color: #ff8992; }
.remote-options { position: fixed; z-index: 100; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 26rem; max-width: 88vw; max-height: 74vh; overflow: auto; padding: .75rem;
  border: 1px solid #70666a; border-radius: .75rem; background: #1c1a1d; box-shadow: 0 0 0 150vmax #000b; }
.remote-options button { display: block; width: 100%; margin: .15rem 0; text-align: start; padding: .7rem 1rem; }
.remote-options button[aria-pressed=true] { color: #ffb5bf; }
[hidden] { display: none !important; }
img { max-width: 100%; }
h1,h2,h3,p { overflow-wrap: anywhere; }
.container { width: min(calc(100% - 2 * var(--gutter)), var(--page-max)); margin-inline: auto; }
.site-header { position: sticky; top: 0; z-index: 40; background: #101012f5; border-bottom: 1px solid #ffffff10; }
.mast { max-width: 1560px; margin: auto; padding: 0 clamp(.7rem,2vw,2.4rem); height: 64px; display: flex; gap: clamp(.4rem,1.2vw,1.25rem); align-items: center; white-space: nowrap; }
.wordmark,.wordmark:hover { color: var(--red); font-size: clamp(1.1rem,1.55vw,1.5rem); font-weight: 850; letter-spacing: -.045em; text-decoration: none; }
.wordmark,.wordmark:hover,.admin-brand { display: inline-flex; align-items: center; gap: .35em; color: #f7f5f3; white-space: nowrap; }
.brand-symbol { display: block; width: 1.2em; height: 1.2em; object-fit: contain; flex: none; }
.primary-nav { display: flex; align-items: center; gap: .125rem; }
.library-link { padding: .6rem .2rem; color: #e5e5e7; font-size: .88rem; font-weight: 650; }
.site-header nav a {
  --nav-ease: cubic-bezier(.22,1,.36,1);
  position: relative; isolation: isolate; display: block; padding: .5rem;
  border-radius: .5rem; color: #e5e5e7; font-size: .875rem; line-height: 1.25rem; font-weight: 600;
  text-decoration: none;
}
.site-header nav a::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  border-radius: inherit; background: #272727; opacity: 0; transform: scale(.94);
}
.site-header nav a[aria-current] { color: white; }
.site-header nav a[aria-current]::before { background: #1f1f1f; opacity: 1; transform: none; }
.site-header nav a[aria-current]::after {
  content: ''; position: absolute; inset-inline: 0; bottom: .125rem; margin-inline: auto;
  width: 1rem; height: .1875rem; border-radius: 999px; background: var(--red); pointer-events: none;
}
.site-header .compact-menu nav a[aria-current]::after {
  inset-inline: auto .75rem; inset-block: 0; margin-block: auto; width: .5rem; height: .5rem;
}
.site-header nav a:is(:focus-visible,.remote-focus)::before { opacity: 1; transform: none; }
@media (hover: hover) {
  .site-header nav a:hover { color: white; text-decoration: none; }
  .site-header nav a:hover::before { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .site-header nav a::before { transition: opacity 300ms var(--nav-ease), transform 500ms var(--nav-ease); }
  .site-header nav a:active::before { transform: scale(.98); }
  .site-header nav a[aria-current]::after { animation: nav-mark-in 500ms var(--nav-ease) both; }
  @keyframes nav-mark-in { from { opacity: 0; transform: scaleX(.3); } to { opacity: 1; transform: scaleX(1); } }
}
.quick-search {
  position: relative; display: flex; align-items: stretch; min-width: 0;
  width: clamp(10rem, 18vw, 18rem); height: 2.5rem; margin-left: auto;
  background: #202023; border: 1px solid #404046; border-radius: .65rem;
  transition: background-color .15s, border-color .15s;
}
.quick-search:hover { border-color: #64646c; }
.quick-search:focus-within { background: #252528; border-color: #ef6972; box-shadow: 0 0 0 1px #ef6972; }
.quick-search .search-lookup { position: static; }
.quick-search input {
  display: block; width: 100%; min-width: 0; height: 100%; padding: 0 .15rem 0 .8rem;
  appearance: none; font-size: .88rem; background: transparent; border: 0; border-radius: inherit;
}
.quick-search input::placeholder { color: #aaaab2; }
.quick-search :is(input, button):focus-visible { outline: none; }
.quick-search button {
  display: grid; place-items: center; flex: 0 0 2.4rem; padding: 0;
  background: transparent; border: 0; border-radius: .5rem; color: #bdbdc4;
}
.quick-search button:hover, .quick-search button:focus-visible { background: #37373d; color: white; }
.search-icon {
  display: block; position: relative; width: .88rem; height: .88rem;
  margin: -.13rem .13rem 0 0; border: 1.7px solid currentColor; border-radius: 50%;
}
.search-icon::after {
  content: ''; position: absolute; left: 83%; top: 83%; width: .42rem; height: 2px;
  background: currentColor; border-radius: 2px; transform: rotate(45deg); transform-origin: left center;
}
@media (forced-colors: active) { .quick-search:focus-within { outline: 2px solid Highlight; } }
.search-lookup { position: relative; flex: 1; min-width: 0; }
.search-lookup input { width: 100%; }
.search-popup { position: absolute; z-index: 5; top: calc(100% + .3rem); inset-inline-start: 0; width: 100%; max-height: min(50dvh, 24rem); overflow: auto; overscroll-behavior: contain; border: 1px solid #444; border-radius: .55rem; background: #1b1b1f; box-shadow: 0 .6rem 1.6rem #0007; }
.quick-search .search-popup { top: calc(100% + .4rem); inset-inline: auto 0; width: max(100%, 19rem); }
.search-popup a, .search-popup p { display: block; margin: 0; padding: .6rem .8rem; white-space: normal; overflow-wrap: anywhere; }
.search-popup a:hover, .search-popup [aria-selected=true] { background: #343438; text-decoration: none; }
.search-popup strong, .search-popup small { display: block; }
.search-popup strong { font-size: .9rem; }
.search-popup small, .search-popup p { font-size: .8rem; color: #bcbcc4; }
.search-popup p:empty { display: none; }
.filter-toggle { font-size: .82rem; }
.locale-settings { position: relative; flex: none; font-size: .8rem; }
.locale-settings summary { cursor: pointer; padding: .5rem .3rem; border-radius: .4rem; font-weight: 650; list-style: none; }
.locale-settings summary::-webkit-details-marker { display: none; }
.locale-panel { position: absolute; z-index: 6; inset-inline-end: 0; top: calc(100% + .5rem); display: grid; gap: .85rem; padding: .9rem; width: min(16rem, 80vw); background: #1c1c1f; border: 1px solid var(--edge); border-radius: .6rem; box-shadow: 0 .5rem 1.5rem #0008; }
.locale-panel label { display: grid; gap: .3rem; }
.locale-panel select { width: 100%; }
.compact-menu { display: none; position: relative; }
.compact-menu summary { list-style: none; border-radius: .4rem; border: 1px solid #555; padding: .45rem .55rem; }
.compact-menu summary { display: flex; align-items: center; gap: .45rem; }
.compact-menu summary::-webkit-details-marker { display: none; }
.menu-icon { width: 1rem; height: .8rem; border-block: 2px solid currentColor; display: inline-grid; align-items: center; }
.menu-icon::before { content: ''; height: 2px; background: currentColor; }
.mobile-search, .mobile-tabs { display: none; }
.compact-menu nav { position: absolute; top: calc(100% + .6rem); left: 0; width: 14rem; background: #1c1c1f; box-shadow: 0 8px 32px #0009; border: 1px solid var(--edge); border-radius: .6rem; padding: .45rem; }
.compact-menu nav a { display: block; padding: .6rem .8rem; }
.skip { position: fixed; left: 8px; top: -8rem; z-index: 90; }
.skip:focus { top: 6px; background: #161616; padding: .5rem; }
.maintenance { background: #e6aa35; color: #151515; text-align: center; padding: .4rem; }
.site-footer { margin-top: 3rem; padding-block: 3rem 2rem; background: var(--panel); font-size: .875rem; color: var(--muted); }
.footer-main,.footer-credits { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 1rem 3rem; }
.footer-main { padding-block-end: 2rem; }
.footer-credits { border-block-start: 1px solid var(--edge); padding-block-start: .5rem; }
.site-footer nav,.actions,.tabs { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; }
.site-footer nav { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: .5rem 1.5rem; color: #ddd; }
.site-footer nav a { padding-block: .25rem; overflow-wrap: anywhere; }
.site-footer p { margin: .8rem 0; }
.button,.primary { display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--edge); padding: .6rem 1rem; border-radius: .45rem; font-weight: 650; }
.primary,.button.primary { background: var(--red); color: white; border-color: transparent; }
.primary:hover { background: #be1019; }
.muted { color: var(--muted); }
.panel,dialog { background: var(--panel); color: inherit; border: 1px solid var(--edge); padding: 1.2rem; border-radius: .8rem; }
dialog { width: min(94vw,36rem); max-height: 88dvh; overflow: auto; }
dialog::backdrop { background: #000b; }
.dialog-head,.dialog-head h2 { display: flex; align-items: center; justify-content: space-between; margin: 0 0 1rem; }
.search-fields { display: grid; gap: .8rem; margin-bottom: 1rem; }
.search-fields label { display: grid; gap: .3rem; }
.search-fields label:has(input[type=checkbox]) { display: flex; }
.library { padding-block: clamp(2rem,6vw,5rem); min-height: 65vh; }
.library h1 { margin: 0 0 1.5rem; font-size: clamp(2.25rem,5vw,3.75rem); line-height: 1.1; letter-spacing: -.04em; }
.library .tabs { width: fit-content; max-width: 100%; border: 0; padding: .25rem; background: var(--panel); border-radius: .75rem; }
.library .tabs button { background: transparent; border-color: transparent; }
.library .tabs [aria-pressed=true] { color: #fff; background: #313131; }
.tabs { padding-bottom: .85rem; margin-bottom: 1.25rem; border-bottom: 1px solid var(--edge); }
.tabs [aria-pressed=true] { background: #382024; border-color: var(--red); }
.grid { display: grid; gap: clamp(.6rem,1vw,1.2rem); grid-template-columns: repeat(auto-fill,minmax(min(145px,40vw),1fr)); }
.row { display: flex; align-items: center; gap: .7rem; }
.card { min-width: 0; position: relative; }
.poster { aspect-ratio: 2/3; overflow: hidden; position: relative; border-radius: .55rem; background: #252528; }
.poster img { width: 100%; height: 100%; object-fit: cover; }
.poster::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 2px #fffb; opacity: 0; pointer-events: none; }
.card a:focus-visible .poster::after, .card .remote-focus .poster::after { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .poster img { transition: transform 280ms var(--ease-settle); }
  .card a:focus-visible .poster img, .card .remote-focus .poster img { transform: scale(1.035); }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .card a:hover .poster img { transform: scale(1.045); }
}
.score { position: absolute; right: .4rem; top: .4rem; font-size: .75rem; font-weight: 700; background: #131313e0; color: #ffdd80; border-radius: .3rem; padding: .25rem .45rem; }
.card-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; margin-block: .5rem .25rem; font-size: .9375rem; line-height: 1.4; font-weight: 600; }
.card > a { display: block; text-decoration: none; }
.card .bookmark { font-size: .78rem; padding: .3rem .55rem; }
.bookmark[aria-pressed=true] { border-color: #c53846; }
.empty { text-align: center; padding: clamp(2rem,7vw,5rem) 1rem; background: var(--panel); border-radius: 1rem; }
.empty :is(h1,h2,p) { max-width: 60ch; margin-inline: auto; }
.button:hover,.primary:hover { color: white; text-decoration: none; }
@media (prefers-reduced-motion: no-preference) {
  :is(.button,.primary,button,summary) { transition: background-color 300ms var(--ease-settle), border-color 300ms var(--ease-settle); }
}
.library .grid { margin-block: 1rem; }
@media (max-width: 1180px) {
  .primary-nav { display: none; } .compact-menu { display: block; }
}
@media (max-width: 1360px) {
  :is(html:lang(es),html:lang(pt),html:lang(ru),html:lang(fil),html:lang(id)) .primary-nav { display: none; }
  :is(html:lang(es),html:lang(pt),html:lang(ru),html:lang(fil),html:lang(id)) .compact-menu { display: block; }
}
@media (max-width: 760px) {
  :root { --tab-clearance: calc(4.5rem + env(safe-area-inset-bottom, 0px)); }
  html:has(.mobile-tabs) { scroll-padding-bottom: var(--tab-clearance); }
  .site-header { padding-top: env(safe-area-inset-top, 0px); }
  .mast {
    position: relative; min-height: 3.5rem; height: auto; gap: .25rem;
    padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right));
  }
  .mast .wordmark { display: inline-flex; align-items: center; min-height: 44px; margin-inline-end: auto; }
  .mast :is(.quick-search, .filter-toggle, .library-link) { display: none; }
  .mast :is(.mobile-search, summary) { min-width: 44px; min-height: 44px; }
  .mobile-search, .mast summary { display: inline-flex; align-items: center; justify-content: center; }
  .mobile-search { border-radius: .6rem; }
  .mobile-search .search-icon { width: 1rem; height: 1rem; }
  .compact-menu, .locale-settings { position: static; }
  .compact-menu summary { border-color: transparent; padding-inline: .4rem; }
  .menu-caption { font-size: .81rem; font-weight: 650; }
  .mast details[open] > summary, .mobile-search[aria-current] { background: #29292d; color: #fff; }
  .mast :is(.locale-panel, .compact-menu nav) {
    inset-inline: var(--gutter); top: calc(100% + .25rem); width: auto;
    max-height: calc(100dvh - var(--tab-clearance) - 4.5rem); overflow-y: auto; overscroll-behavior: contain;
  }
  .compact-menu[open] nav { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); padding: .5rem; gap: .25rem; }
  .compact-menu nav a { display: flex; align-items: center; min-height: 46px; padding-inline-end: 1.5rem; white-space: normal; overflow-wrap: anywhere; }
  .locale-panel select, #advanced-search :is(select, button, input:not([type=checkbox])) { min-height: 44px; font-size: 1rem; }
  #advanced-search { max-height: 85dvh; }
  .mobile-tabs {
    position: fixed; z-index: 35; inset: auto 0 0; display: grid; grid-template-columns: repeat(4,minmax(0,1fr));
    padding: .25rem max(.35rem,env(safe-area-inset-right)) calc(.25rem + env(safe-area-inset-bottom)) max(.35rem,env(safe-area-inset-left));
    border-top: 1px solid #353538; background: #151517;
  }
  .mobile-tabs a {
    min-height: 3.5rem; min-width: 0; display: grid; align-content: center; justify-items: center;
    gap: 2px; border-radius: .65rem; color: #bcbcc4; font-size: .75rem; font-weight: 600;
    line-height: 1.2; text-align: center; overflow-wrap: anywhere; text-decoration: none;
  }
  .mobile-tabs a:active { background: #252528; }
  .mobile-tabs a[aria-current] { color: #fff; }
  .tab-icon { display: grid; place-items: center; width: 3rem; height: 1.65rem; border-radius: 1rem; }
  .mobile-tabs a[aria-current] .tab-icon { color: #ff8c96; background: #48232b; }
  .tab-icon i { position: relative; display: block; width: 18px; height: 14px; border: 1.75px solid; border-radius: 3px; }
  .tab-icon i::before, .tab-icon i::after { position: absolute; content: ''; }
  .tab-icon [data-icon=home] { width: 14px; height: 11px; margin-top: 5px; border-top: 0; border-radius: 0 0 3px 3px; }
  .tab-icon [data-icon=home]::before { width: 12px; height: 12px; left: 50%; top: -5px; transform: translateX(-50%) rotate(45deg); border: solid currentColor; border-width: 1.75px 0 0 1.75px; }
  .tab-icon [data-icon=film]::before { inset: 2px 0 auto; height: 3px; border-bottom: 1px solid; background: repeating-linear-gradient(125deg,transparent 0 3px,currentColor 3px 4.5px); }
  .tab-icon [data-icon=series]::after { width: 9px; height: 1.75px; background: currentColor; bottom: -5px; left: 50%; transform: translateX(-50%); }
  .tab-icon [data-icon=library] { width: 12px; height: 16px; border-bottom: 0; border-radius: 2px 2px 0 0; }
  .tab-icon [data-icon=library]::after { width: 8px; height: 8px; bottom: -3px; left: 50%; transform: translateX(-50%) rotate(45deg); border: solid currentColor; border-width: 1.75px 0 0 1.75px; }
  .site-footer { padding-bottom: calc(2rem + var(--tab-clearance)); }
  .site-footer nav { grid-template-columns: repeat(2,minmax(0,1fr)); width: 100%; }
  .site-footer nav a { display: flex; align-items: center; min-height: 44px; }
  .footer-credits { gap: 0 1rem; }
  .card .bookmark { min-height: 44px; padding-inline: .85rem; }
  .card > a:active .poster { opacity: .85; }
}
@media (max-width: 360px) {
  .menu-caption { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
