:root {
  color-scheme: light;
  --bg: #ffffff;
  --panel: #ffffff;
  --text: #08275f;
  --muted: #6b83ad;
  --blue: #0878f9;
  --line: #cbe0ff;
  --soft: #f6f9ff;
  font-family: "DM Sans", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
img { display: block; max-width: 100%; }
.wrap { width: min(1480px, calc(100% - 64px)); margin: auto; }
.top { border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 0; z-index: 20; }
.topin { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 80px; }
.brand-group { display: flex; align-items: center; gap: 7px; min-width: 0; }
.brand { position: relative; display: block; width: 180px; height: 44px; overflow: hidden; flex: none; }
.brand img { position: absolute; width: 225px; max-width: none; height: auto; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.info-button { display: grid; place-items: center; flex: none; width: 25px; height: 25px; padding: 0; border: 1.5px solid #8bb9fb; border-radius: 50%; background: var(--soft); color: var(--blue); font-family: Georgia, serif; font-size: 17px; font-weight: 700; line-height: 1; }
.info-button:hover { background: #e3efff; border-color: var(--blue); }
.region { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); background: var(--soft); border-radius: 999px; padding: 7px 14px 7px 7px; font-size: 13px; font-weight: 700; color: var(--text); white-space: nowrap; }
.region b { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #d9e9ff; color: var(--blue); font-size: 13px; font-weight: 800; }
.section { min-height: calc(100vh - 80px); padding: 34px 0 60px; }
h1, h3 { font-family: Manrope, sans-serif; margin-top: 0; }
h1 { font-size: clamp(27px, 2.8vw, 42px); letter-spacing: -1.7px; margin-bottom: 0; line-height: 1.2; }
.media-tabs { display: inline-flex; gap: 4px; margin-top: 22px; padding: 4px; background: var(--soft); border: 1px solid var(--line); border-radius: 10px; }
.media-tab { min-width: 116px; border: 0; border-radius: 7px; padding: 11px 18px; background: transparent; color: var(--text); font-size: 14px; font-weight: 700; }
.media-tab:hover { background: #e5efff; }
.media-tab.active { background: var(--blue); color: #fff; box-shadow: 0 2px 7px #0878f933; }
.controls { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: flex-start; margin: 28px 0 18px; }
.platform-form { display: flex; align-items: center; gap: 12px; }
.platform-picker { position: relative; flex: none; }
.platform { display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: left; background: var(--soft); border: 1px solid var(--line); border-radius: 8px; color: var(--text); padding: 0 18px; font-size: 13px; font-weight: 600; width: 260px; height: 50px; }
.genre-picker .platform { width: 200px; }
.genre-picker .platform-menu { min-width: 220px; max-height: 310px; overflow-y: auto; }
.country-picker .platform { width: 190px; }
.platform-menu.country-menu { left: auto; right: 0; width: min(260px, calc(100vw - 28px)); }
.platform-menu.country-menu .country-search { width: 100%; height: 36px; border: 1px solid var(--line); border-radius: 6px; background: var(--soft); color: var(--text); padding: 0 10px; font-size: 12px; outline: none; }
.country-options { max-height: 260px; overflow-y: auto; margin-top: 5px; }
.access-picker { position: relative; flex: none; }
.access-picker select { appearance: none; width: 190px; height: 50px; padding: 0 38px 0 18px; border: 1px solid var(--line); border-radius: 8px; background: var(--soft); color: var(--text); font-size: 13px; font-weight: 600; cursor: pointer; }
.access-picker select:hover, .access-picker select:focus { border-color: #92bdff; }
.access-picker .platform-arrow { position: absolute; top: 19px; right: 18px; margin: 0; pointer-events: none; }
.menu-message { display: block; padding: 10px; color: var(--muted); font-size: 12px; }
.platform:hover, .platform[aria-expanded="true"] { border-color: #92bdff; }
.platform span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.platform-arrow { flex: none; width: 9px; height: 9px; margin-right: 3px; border-right: 2px solid var(--text); border-bottom: 2px solid var(--text); transform: translateY(-2px) rotate(45deg); }
.platform[aria-expanded="true"] .platform-arrow { transform: translateY(2px) rotate(225deg); }
.platform-menu { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; width: max(100%, 230px); padding: 7px; background: #fff; border: 1px solid var(--line); border-radius: 9px; box-shadow: 0 14px 35px #08275f24; }
.platform-menu[hidden] { display: none; }
#platform-menu { width: min(300px, calc(100vw - 28px)); }
.platform-menu .platform-search { width: 100%; height: 36px; border: 1px solid var(--line); border-radius: 6px; background: var(--soft); color: var(--text); padding: 0 10px; font-size: 12px; outline: none; }
.platform-options { max-height: 300px; overflow-y: auto; margin-top: 5px; scrollbar-color: #bdd7fa transparent; }
.platform-menu label { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 6px; font-size: 13px; cursor: pointer; }
.platform-menu label:hover { background: #edf5ff; }
.platform-menu label[hidden] { display: none; }
.platform-menu input[type="checkbox"] { accent-color: var(--blue); width: 16px; height: 16px; margin: 0; cursor: pointer; }
.movie-search { position: relative; width: 230px; flex: none; }
.movie-search input { width: 100%; height: 50px; border: 1px solid var(--line); border-radius: 8px; background: var(--soft); color: var(--text); padding: 0 14px 0 40px; font-size: 13px; font-weight: 500; outline: none; }
.movie-search input::placeholder { color: var(--muted); font-weight: 500; opacity: 1; }
.movie-search input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px #0878f91a; }
.search-icon { position: absolute; z-index: 1; top: 17px; left: 16px; width: 13px; height: 13px; border: 2px solid var(--muted); border-radius: 50%; pointer-events: none; }
.search-icon:after { content: ""; position: absolute; width: 6px; height: 2px; right: -5px; bottom: -2px; background: var(--muted); transform: rotate(45deg); border-radius: 1px; }
.status { min-height: 20px; color: var(--muted); font-size: 13px; font-weight: 500; margin: 0 0 22px; }
.status.error { color: #b83232; }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.card { min-width: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: 0 7px 24px #0d4d9810; transition: transform .2s, border-color .2s, box-shadow .2s; }
.card:hover { transform: translateY(-5px); border-color: #8abaff; box-shadow: 0 14px 32px #0d4d981c; }
.poster { aspect-ratio: 1.65 / 1; position: relative; overflow: hidden; background: linear-gradient(130deg, #e0ecfb, #bcd4f4); }
.poster img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.card:hover .poster img { transform: scale(1.06); }
.poster:after { content: ""; position: absolute; inset: 55% 0 0; background: linear-gradient(transparent, #071e42b8); }
.rank { position: absolute; z-index: 1; top: 14px; left: 14px; background: var(--blue); color: #fff; border-radius: 5px; font-size: 14px; font-weight: 800; padding: 8px 11px; }
.rating { position: absolute; z-index: 1; right: 14px; bottom: 12px; display: flex; align-items: center; gap: 5px; color: white; font-size: 14px; font-weight: 800; }
.rating span { color: var(--blue); font-size: 20px; line-height: 1; }
.cardbody { padding: 20px 22px 22px; }
.card h3 { font-size: 18px; line-height: 1.3; letter-spacing: -.6px; margin: 0 0 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.meta { color: var(--muted); font-size: 12px; margin-bottom: 10px; }
.card-genres { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 14px; }
.card-genre { color: #3162a4; background: #eef5ff; border: 1px solid #d9e9ff; border-radius: 4px; padding: 3px 7px; font-size: 10px; font-weight: 700; line-height: 1.3; }
.providers { border-top: 1px solid var(--line); padding-top: 14px; min-height: 85px; }
.providers small { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: 1.2px; font-weight: 800; display: block; margin-bottom: 10px; }
.provider-list { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.provider { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--soft); border-radius: 6px; padding: 5px 8px; font-size: 10px; font-weight: 700; color: var(--text); max-width: 100%; }
.provider img { width: 19px; height: 19px; border-radius: 4px; object-fit: cover; }
.provider-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card .provider-list > .provider:nth-child(n+3) { display: none; }
.card .provider-list.expanded > .provider:nth-child(n+3) { display: inline-flex; }
.more { border: 0; background: none; padding: 4px 2px; font-size: 11px; color: var(--blue); font-weight: 700; }
.more:hover { text-decoration: underline; }
.more-mobile { display: none; }
.unavailable { color: var(--muted); font-size: 11px; line-height: 1.4; }
.watch { display: inline-flex; gap: 6px; align-items: center; border: 0; background: none; padding: 0; color: var(--blue); font-size: 12px; font-weight: 800; margin-top: 18px; }
.watch:hover { text-decoration: underline; }
.movie-dialog { width: min(880px, calc(100% - 32px)); max-width: none; max-height: min(90dvh, 900px); margin: auto; padding: 0; border: 1px solid var(--line); border-radius: 16px; background: #fff; color: var(--text); box-shadow: 0 24px 80px #071e4266; overflow-y: auto; }
.movie-dialog::backdrop { background: #061a3dbd; }
.info-dialog { width: min(520px, calc(100% - 28px)); max-width: none; max-height: min(90dvh, 720px); margin: auto; padding: 0; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: var(--text); box-shadow: 0 24px 80px #071e4266; overflow-y: auto; }
.info-dialog::backdrop { background: #061a3dbd; }
.info-head { position: sticky; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; border-bottom: 1px solid var(--line); background: #fff; }
.info-head h2 { margin: 0; font-family: Manrope, sans-serif; font-size: 22px; letter-spacing: -.5px; }
.info-content { padding: 18px 22px 22px; color: #334e78; font-size: 13px; line-height: 1.6; }
.info-content > p { margin: 0 0 18px; }
.info-source { border-top: 1px solid var(--line); padding: 14px 0; }
.info-source h3 { margin: 0 0 4px; color: var(--text); font-family: Manrope, sans-serif; font-size: 14px; }
.info-source p { margin: 0; }
.info-content a { color: var(--blue); font-weight: 700; }
.info-content a:hover { text-decoration: underline; }
.info-credit { display: flex; align-items: center; gap: 12px; border-top: 1px solid var(--line); padding-top: 17px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.info-credit a { flex: none; }
.info-credit img { width: 45px; height: auto; }
.dialog-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 22px 24px 16px; border-bottom: 1px solid var(--line); background: #fff; }
.dialog-head h2 { font-family: Manrope, sans-serif; font-size: 25px; line-height: 1.25; margin: 0 0 4px; }
.dialog-head p { color: var(--muted); font-size: 13px; margin: 0; }
.dialog-close { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--soft); color: var(--text); font-size: 25px; line-height: 1; }
.dialog-close:hover { background: #e5f0ff; }
.dialog-content { padding: 0 24px 24px; }
.dialog-section { padding: 20px 0; border-bottom: 1px solid var(--line); }
.dialog-section:last-child { border-bottom: 0; padding-bottom: 0; }
.dialog-section-title { font-size: 17px; letter-spacing: -.3px; margin: 0 0 12px; }
.dialog-overview { color: #334e78; line-height: 1.65; font-size: 14px; margin: 0; }
.dialog-message { color: var(--muted); padding: 24px 0; margin: 0; }
.trailer-preview, .trailer-frame { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; }
.trailer-preview { position: relative; background: linear-gradient(135deg, #09285f, #175ca8); }
.trailer-preview img { width: 100%; height: 100%; object-fit: cover; }
.trailer-preview::after { content: ""; position: absolute; inset: 0; background: #061a3d55; pointer-events: none; }
.trailer-play { position: absolute; z-index: 1; top: 50%; left: 50%; transform: translate(-50%, -50%); white-space: nowrap; border: 0; border-radius: 999px; background: var(--blue); color: #fff; padding: 12px 20px; font-size: 14px; font-weight: 800; box-shadow: 0 4px 20px #061a3d66; }
.trailer-play:hover { background: #0067dc; }
.trailer-frame { border: 0; background: #061a3d; }
.cast-list, .poster-gallery, .backdrop-gallery { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px; scrollbar-color: #bdd7fa transparent; }
.cast-member { flex: 0 0 106px; min-width: 0; }
.cast-member img, .cast-placeholder { width: 106px; height: 132px; border-radius: 8px; object-fit: cover; background: #e7f0ff; }
.cast-placeholder { display: grid; place-items: center; font-size: 35px; font-weight: 800; color: var(--muted); }
.cast-member strong, .cast-member span { display: block; font-size: 11px; line-height: 1.35; margin-top: 5px; }
.cast-member span { color: var(--muted); margin-top: 2px; }
.poster-gallery img { flex: 0 0 auto; width: 130px; height: 195px; object-fit: cover; border-radius: 8px; background: var(--soft); }
.backdrop-gallery img { flex: 0 0 auto; width: 235px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; background: var(--soft); }
.empty { grid-column: 1 / -1; background: var(--soft); border: 1px dashed var(--line); border-radius: 10px; padding: 60px 20px; text-align: center; }
.empty b { display: block; font-family: Manrope, sans-serif; font-size: 21px; margin-bottom: 9px; }
.empty p { color: var(--muted); font-size: 13px; margin: 0; }
.skeleton .poster { background: linear-gradient(90deg, #eaf2ff 25%, #d9e9ff 50%, #eaf2ff 75%); background-size: 200% 100%; animation: shimmer 1.3s infinite; }
.skeleton .cardbody { height: 160px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.loadrow { min-height: 40px; margin-top: 24px; text-align: center; color: var(--muted); font-size: 12px; font-weight: 600; }
.loadrow[hidden] { display: none; }
.load { border: 1px solid var(--line); background: var(--soft); color: var(--blue); padding: 11px 20px; border-radius: 7px; font-weight: 800; font-size: 12px; }
.load:hover { border-color: var(--blue); }
.load[hidden] { display: none; }
@media (max-width: 1050px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .controls { align-items: stretch; flex-direction: column; }
  .platform-form { width: 100%; flex-wrap: wrap; }
  .platform-picker, .movie-search, .access-picker { flex: 1 1 220px; }
  .platform, .genre-picker .platform, .country-picker .platform, .access-picker select { width: 100%; }
}
@media (max-width: 760px) {
  .wrap { width: min(100% - 28px, 1480px); }
  .topin { min-height: 56px; }
  .brand { width: 140px; height: 35px; }
  .brand img { width: 175px; }
  .info-button { width: 23px; height: 23px; font-size: 16px; }
  .region { font-size: 11px; padding: 5px 9px 5px 5px; }
  .region b { width: 25px; height: 25px; font-size: 11px; }
  .section { padding: 20px 0 42px; }
  h1 { font-size: clamp(23px, 5.2vw, 30px); letter-spacing: -1px; }
  .media-tabs { display: flex; width: 100%; margin-top: 16px; }
  .media-tab { flex: 1; min-width: 0; padding: 9px 12px; font-size: 12px; }
  .controls { gap: 9px; margin: 17px 0 11px; }
  .platform-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; width: 100%; }
  .platform-picker, .movie-search, .access-picker { width: 100%; min-width: 0; }
  .movie-search { grid-column: 1 / -1; }
  .platform, .genre-picker .platform, .country-picker .platform, .access-picker select { width: 100%; height: 42px; padding: 0 30px 0 11px; font-size: 12px; }
  .access-picker .platform-arrow { top: 15px; right: 13px; }
  .movie-search input { height: 42px; font-size: 12px; }
  .search-icon { top: 13px; }
  .genre-picker .platform-menu { left: auto; right: 0; }
  .platform-menu.country-menu { left: 0; right: auto; }
  .status { font-size: 11px; margin-bottom: 12px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .cardbody { padding: 13px; }
  .card h3 { font-size: 14px; }
  .provider { font-size: 9px; }
  .movie-dialog { width: calc(100% - 16px); max-height: 94dvh; border-radius: 12px; }
  .dialog-head { padding: 15px 16px 12px; }
  .dialog-head h2 { font-size: 20px; }
  .dialog-content { padding: 0 16px 16px; }
  .dialog-section { padding: 16px 0; }
  .dialog-overview { font-size: 13px; }
  .cast-member { flex-basis: 84px; }
  .cast-member img, .cast-placeholder { width: 84px; height: 108px; }
  .poster-gallery img { width: 105px; height: 158px; }
  .backdrop-gallery img { width: 200px; }
}
@media (max-width: 430px) {
  .topin { min-height: 52px; }
  .brand { width: 125px; height: 32px; }
  .brand img { width: 156px; }
  .brand-group { gap: 4px; }
  .region { padding: 4px; }
  .region span { display: none; }
  .section { padding: 18px 0 36px; }
  h1 { font-size: 23px; }
  .card { border-radius: 9px; }
  .poster { aspect-ratio: 1.55 / 1; }
  .rank { top: 8px; left: 8px; padding: 5px 7px; font-size: 11px; }
  .rating { right: 7px; bottom: 7px; font-size: 11px; }
  .rating span { font-size: 15px; }
  .cardbody { padding: 10px; }
  .card h3 { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; min-height: 32px; white-space: normal; font-size: 13px; line-height: 1.25; margin-bottom: 3px; }
  .meta { font-size: 9px; margin-bottom: 7px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .card-genres { gap: 4px; margin-bottom: 9px; }
  .card-genre { font-size: 8px; padding: 2px 4px; }
  .providers { padding-top: 8px; min-height: 55px; }
  .providers small { font-size: 8px; margin-bottom: 6px; letter-spacing: .7px; }
  .provider { padding: 3px 5px; font-size: 9px; gap: 4px; }
  .provider img { width: 14px; height: 14px; }
  .card .provider-list > .provider:nth-child(n+2) { display: none; }
  .card .provider-list.expanded > .provider:nth-child(n+2) { display: inline-flex; }
  .card .provider-list .more-desktop { display: none; }
  .card .provider-list .more-mobile { display: inline-block; }
  .more { font-size: 9px; }
  .unavailable { font-size: 9px; }
  .watch { margin-top: 10px; font-size: 10px; }
  .skeleton .cardbody { height: 135px; }
}
@media (max-width: 360px) {
  .platform, .genre-picker .platform, .country-picker .platform { padding: 0 8px; gap: 5px; font-size: 10px; }
  .platform-arrow { width: 7px; height: 7px; margin-right: 1px; }
}
/* iOS zooms the page when a focused form control uses text smaller than 16px. */
@media (pointer: coarse) {
  .movie-search input,
  .platform-menu .platform-search,
  .platform-menu.country-menu .country-search,
  .access-picker select { font-size: 16px; }
}
.horror-home, .horror-page a { color: var(--blue); font-weight: 700; }
.horror-home { font-size: 13px; }
.horror-page { padding-top: 28px; padding-bottom: 60px; }
.horror-page nav { color: var(--muted); font-size: 13px; margin-bottom: 22px; }
.horror-page nav span { margin: 0 7px; }
.horror-page h1 { max-width: 850px; }
.horror-intro { max-width: 760px; color: #334e78; font-size: 16px; line-height: 1.6; margin: 17px 0; }
.horror-method { max-width: 850px; background: var(--soft); border: 1px solid var(--line); border-radius: 10px; padding: 17px 19px; font-size: 13px; line-height: 1.6; color: #334e78; }
.horror-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 26px; }
.horror-card { display: grid; grid-template-columns: 175px minmax(0, 1fr); overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 7px 24px #0d4d9810; }
.horror-art { min-height: 190px; position: relative; background: #e8f2ff; }
.horror-art img { width: 100%; height: 100%; object-fit: cover; }
.horror-art span { position: absolute; top: 10px; left: 10px; padding: 6px 9px; border-radius: 5px; background: var(--blue); color: #fff; font-size: 13px; font-weight: 800; }
.horror-card-body { padding: 18px; min-width: 0; }
.horror-score { color: var(--muted); font-size: 12px; font-weight: 700; margin: 0 0 8px; }
.horror-card h2 { font-family: Manrope, sans-serif; font-size: 19px; line-height: 1.3; margin: 0 0 11px; }
.horror-availability { color: #334e78; font-size: 12px; line-height: 1.55; margin: 0 0 15px; }
.horror-card-body a { font-size: 12px; }
.horror-source { color: var(--muted); font-size: 11px; line-height: 1.5; margin-top: 28px; }
@media (max-width: 900px) { .horror-list { grid-template-columns: 1fr; } }
@media (max-width: 500px) {
  .horror-home { font-size: 11px; }
  .horror-page { padding-top: 20px; }
  .horror-intro { font-size: 14px; }
  .horror-card { grid-template-columns: 115px minmax(0, 1fr); }
  .horror-art { min-height: 165px; }
  .horror-card-body { padding: 12px; }
  .horror-card h2 { font-size: 15px; }
  .horror-score, .horror-availability, .horror-card-body a { font-size: 11px; }
}
