/* MovieBox: cinematic ink, warm ivory, and restrained copper.
   Load after styles.css and refinements.css. All fonts are local system fonts. */
:root {
  color-scheme: dark;
  --bg: #101b28;
  --bg-deep: #08121d;
  --surface: #172635;
  --surface-raised: #213446;
  --text: #f1ecdf;
  --muted: #9fadb9;
  --subtle: #758a9d;
  --accent: #c98962;
  --accent-bright: #e0a987;
  --lime: #bdcbb6;
  --line: rgba(210,222,230,.15);
  --gutter: clamp(24px,4.2vw,68px);
  --max: 1680px;
  --radius: 4px;
  --sans: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --display: var(--sans);
  --mono: "Consolas", "SFMono-Regular", monospace;
}
body { min-width: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 14px; }
button, input, select { font-family: var(--sans); }
button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: 5px; }
::selection { background: var(--accent); color: var(--bg-deep); }

.app-header { position: fixed; height: 88px; background: linear-gradient(180deg,#08121df5,#08121d60 72%,transparent); border-bottom-color: transparent; }
.app-header.scrolled { background: #08121df5; border-bottom-color: var(--line); backdrop-filter: blur(15px); }
.header-inner { gap: 54px; }
.brand { gap: 10px; align-items: center; }
.brand-mark { display: grid; place-items: center; width: 33px; height: 29px; padding-left: 2px; border-radius: 3px; background: var(--accent); color: var(--bg-deep); font-size: 14px; }
.brand-word { color: var(--text); font-family: var(--sans); font-size: 28px; font-weight: 800; letter-spacing: -1.25px; line-height: 1; }
.brand-word span { color: var(--accent); }
.brand-subtitle { display: none; }
.nav-links { gap: 28px; }
.nav-link { color: #bdc7cf; font-size: 13px; font-weight: 500; letter-spacing: 0; }
.nav-link.active { color: var(--text); }
.nav-link.active::after { background: var(--accent); height: 2px; bottom: 20px; border-radius: 0; }
.header-actions { position: relative; gap: 22px; }
.search-toggle, .icon-button { color: #d2d9dc; }
.search-toggle:hover, .icon-button:hover { color: var(--accent-bright); }
.user-badge { border-color: #c9896270; border-radius: 3px; background: #263747; color: var(--text); }
.masthead-meta, .feature-index, .section-number { display: none; }

/* The still fills the screen; the left column gives titles a consistent reading edge. */
.hero, .hero.editorial-layout { display: block; position: relative; width: 100%; max-width: none; height: min(850px,85svh); min-height: 690px; margin: 0; overflow: hidden; background: var(--bg-deep); }
.hero-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; max-height: none; object-fit: cover; object-position: center 30%; opacity: 1; animation: none; }
.hero-shade { display: block; position: absolute; inset: 0; background: linear-gradient(90deg,#08121df0 0%,#08121daa 31%,#08121d24 68%,#08121d14),linear-gradient(0deg,var(--bg) 1%,#101b28b3 13%,transparent 45%),linear-gradient(180deg,#08121d40,transparent 35%); }
.hero-content { position: relative; z-index: 2; max-width: var(--max); width: 100%; height: 100%; margin: 0 auto; padding: 140px var(--gutter) 134px; justify-content: center; align-items: flex-start; animation: none; }
.eyebrow { color: #d4d8d5; font-size: 11px; font-weight: 600; letter-spacing: 1.6px; line-height: 1.5; margin-bottom: 22px; }
.eyebrow::before { width: 20px; height: 2px; background: var(--accent); }
.eyebrow .live-dot { display: none; }
.live-dot { width: 4px; height: 4px; background: var(--accent); box-shadow: none; }
.hero h1 { max-width: 800px; margin: 0 0 25px; color: var(--text); font-family: var(--sans); font-size: clamp(54px,6.5vw,104px); font-weight: 800; line-height: .98; letter-spacing: -4.7px; text-wrap: balance; }
.hero-meta { gap: 11px; margin: 0 0 20px; color: #c2cbd0; font-size: 12px; font-weight: 400; line-height: 1.7; }
.hero-meta > span + span::before { color: #8c9ba6; margin-right: 11px; }
.hero-rating { color: var(--accent-bright); font-weight: 650; }
.hero-language { padding: 3px 7px; border: 1px solid #cad6df45; border-radius: 2px; font-size: 10px; }
.hero-meta .hero-language::before { display: none; }
.hero-overview { max-width: 510px; margin: 0 0 30px; color: #c0cbd1; font-size: 15px; line-height: 1.8; -webkit-line-clamp: 3; }
.hero-actions { gap: 11px; }
.button { min-height: 45px; padding: 0 23px; border: 1px solid transparent; border-radius: 3px; font-size: 13px; font-weight: 650; letter-spacing: 0; box-shadow: none; transition: background .18s,color .18s,border-color .18s; }
.button:hover { transform: none; }
.button svg { width: 16px; height: 16px; }
.button.primary { color: var(--bg-deep); background: var(--text); border-color: var(--text); box-shadow: none; }
.button.primary:hover { background: #fffaf0; border-color: #fffaf0; box-shadow: none; }
.button.secondary { color: var(--text); background: #122331b3; border-color: #d4e0e43b; backdrop-filter: blur(8px); }
.button.secondary:hover { color: var(--text); background: #2a3c4b; border-color: #d4e0e470; }
.button.ghost { padding: 0 15px; color: #c0cdd4; background: transparent; border-color: #b6c4ce40; }
.button.ghost:hover { background: #c7d8e10a; border-color: var(--accent); color: var(--text); }
.hero-content .hero-save { min-width: 46px; padding: 0; }
.hero-bottom { bottom: 70px; }
.hero-bottom > span, .feature-caption { color: #92a5b3; font-family: var(--mono); font-size: 10px; line-height: 1.7; letter-spacing: .6px; }
.hero-counter { color: #91a4b2; font-family: var(--mono); font-size: 10px; }
.hero-counter::after { background: #6b8293; }
.hero-dot { width: 14px; height: 3px; border-radius: 0; background: #a4b8c460; }
.hero-dot.active { width: 28px; background: var(--accent); }

.home-content { z-index: 3; margin-top: -27px; }
.page-content { padding-bottom: 76px; }
.home-intro { margin-bottom: 30px; }
.home-intro h2 { margin: 0 0 12px; font-size: 30px; font-weight: 700; letter-spacing: -.8px; }
.home-intro p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.8; }
.provider-strip { display: flex; align-items: center; gap: 28px; margin: 0 0 37px; padding: 9px 0 24px; border-top: 0; border-bottom: 1px solid var(--line); overflow: hidden; }
.provider-strip > .section-kicker { display: block; flex-shrink: 0; max-width: 135px; margin: 0; color: var(--subtle); font-size: 10px; line-height: 1.7; }
.quick-filters, .provider-strip .quick-filters { display: flex; gap: 9px; padding: 0; margin: 0; min-width: 0; overflow-x: auto; }
.provider-strip .provider-chip, .quick-filters a, .quick-filters button { flex: 0 0 auto; gap: 9px; min-width: 0; min-height: 38px; padding: 9px 14px; margin: 0; color: #b7c5ce; background: transparent; border: 1px solid #c9d7df26; border-radius: 3px; font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: 0; }
.provider-chip:hover, .provider-chip.active, .quick-filters a:hover, .quick-filters button:hover { color: var(--text); background: #c9d7df08; border-color: #c9d7df60; }
.provider-chip.active::after { display: none; }
.provider-chip svg { width: 13px; height: 13px; color: var(--subtle); }
.section { margin-bottom: 42px; }
.section-heading { margin-bottom: 20px; align-items: baseline; }
.section-title { color: var(--text); font-family: var(--sans); font-size: 24px; font-weight: 650; letter-spacing: -.6px; line-height: 1.2; }
.home-content > .section:first-of-type .section-title { font-size: 28px; }
.section-kicker { color: var(--accent); font-size: 10px; font-weight: 500; letter-spacing: 1.2px; line-height: 1.7; }
.section-link { color: #9caebb; font-size: 12px; font-weight: 500; }
.section-link:hover { color: var(--accent-bright); }
.poster-row { grid-auto-columns: calc((100% - 100px) / 6); gap: 20px; }
.home-content > .section:first-of-type .poster-row, .section--featured .poster-row { grid-auto-columns: calc((100% - 88px) / 5); gap: 22px; }
.poster-art, .poster-image { border-radius: 4px; }
.poster-image::after { border-color: #c8d7df10; background: linear-gradient(0deg,#08121d33,transparent 35%); }
.poster-image > img { transition: filter .25s,transform .3s; }
.poster-card:hover .poster-image > img { transform: scale(1.025); filter: brightness(.75); }
.poster-badges { display: none; }
.poster-fallback { color: #a4b8c5; background: var(--surface); }
.poster-play { width: 46px; height: 46px; background: #f1ecdfe6; color: var(--bg-deep); border-radius: 3px; box-shadow: 0 3px 18px #0005; }
.card-save { right: 9px; bottom: 9px; width: 29px; height: 29px; background: #08121ddb; border-color: #cdd9df60; border-radius: 3px; }
.card-save:hover, .card-save.is-saved { background: var(--text); border-color: var(--text); color: var(--bg-deep); }
.poster-info { padding-top: 12px; }
.poster-title, .catalog-grid .poster-title { display: block; margin-bottom: 6px; color: #e0e5e4; font-size: 13px; font-weight: 550; line-height: 1.4; white-space: nowrap; }
.poster-subtitle, .catalog-grid .poster-subtitle { color: #849bac; font-size: 11px; line-height: 1.5; }
.scroll-arrow { right: -17px; background: var(--bg-deep); border-color: #b5c6d24d; border-radius: 3px; box-shadow: none; }
.scroll-arrow:hover { background: var(--surface-raised); border-color: var(--accent); transform: none; }
.catalog-callout { padding-top: 35px; border-color: var(--line); }
.catalog-callout h2 { max-width: 700px; font-family: var(--sans); font-size: clamp(26px,3vw,39px); font-weight: 650; letter-spacing: -1px; line-height: 1.2; }
.catalog-header { padding: 139px 0 31px; margin-bottom: 30px; border-color: var(--line); }
.catalog-header .section-kicker { display: block; margin-bottom: 16px; }
.catalog-title { margin-bottom: 18px; color: var(--text); font-family: var(--sans); font-size: clamp(43px,4.5vw,66px); font-weight: 750; line-height: 1.06; letter-spacing: -2px; }
.catalog-description { color: var(--muted); font-size: 14px; line-height: 1.8; }
.filters { gap: 21px; margin: 0 0 29px; }
.filter-field { gap: 8px; }
.filter-field label { color: var(--subtle); font-size: 10px; font-weight: 500; letter-spacing: .7px; }
.filter-field select { min-height: 43px; padding: 10px 33px 10px 12px; color: #c5d2da; border-color: #b9cddc26; border-radius: 3px; background-color: #142332; font-size: 12px; }
.filter-field option, .season-bar select option { color: var(--text); background: var(--bg-deep); }
.catalog-grid { gap: 31px 20px; }
.search-count { color: #839caf; font-size: 12px; }
.search-bar { gap: 13px; }
.search-input-wrap { border: 1px solid #c0d1dc30; border-radius: 3px; color: var(--muted); background: #142332; }
.search-input-wrap:focus-within { border-color: var(--accent); box-shadow: none; }
.search-input { padding: 17px 0; color: var(--text); font-size: 15px; }
.search-input::placeholder { color: #7e99ab; }
.empty-state, .error-state { border: 1px solid var(--line); border-radius: 4px; color: var(--muted); }
.empty-state h2, .empty-state h3, .error-state h2, .error-state h3 { color: var(--text); font-family: var(--sans); font-size: 26px; font-weight: 650; letter-spacing: -.7px; }
.empty-state p, .error-state p { font-size: 14px; }
.skeleton { border-radius: 3px; background: #1b2d3d; }
.skeleton-hero { min-height: 690px; height: min(850px,85svh); background: #132432; }
.skeleton::after { background: linear-gradient(90deg,transparent,#f1ecdf04,transparent); }
.loading-line { background: var(--accent); }
.loading-spinner { border-color: #c2d4df26; border-top-color: var(--accent); }
.site-footer { border-color: var(--line); background: var(--bg-deep); }
.footer-top { padding-top: 37px; padding-bottom: 27px; }
.footer-brand .brand-word { font-size: 25px; }
.footer-top > div > p { color: #8199a9; font-size: 12px; }
.footer-links { color: #a3b6c3; font-size: 12px; }
.footer-note { color: #768e9f; font-size: 10px; }
.tmdb-logo { opacity: .7; }

.modal { background: var(--bg); border: 1px solid #a6bdcc30; border-radius: 5px; box-shadow: 0 30px 100px #0008; }
.modal::backdrop { background: #020a13d9; backdrop-filter: blur(6px); }
.modal-close { border-radius: 3px; color: var(--text); background: #08121ddd; border-color: #d5e2e84d; }
.modal-close:hover { background: var(--surface-raised); }
.details-backdrop { background-color: var(--surface); }
.details-backdrop::after { display: block; background: linear-gradient(0deg,var(--bg),#101b2800 80%); }
.details-content { margin-top: -48px; padding: 0 39px 37px; }
.details-title { color: var(--text); font-family: var(--sans); font-size: 43px; font-weight: 750; letter-spacing: -1.5px; }
.details-tagline { color: #9aafbd; font-size: 14px; }
.details-meta { color: #97adbc; font-size: 12px; }
.details-overview { color: #aebec8; font-size: 14px; line-height: 1.85; }
.details-facts { color: #c0cdd5; font-size: 12px; border-color: var(--line); }
.fact-label { color: #718fa4; font-size: 10px; }
.dialog-section-title { color: var(--text); font-size: 19px; font-weight: 650; letter-spacing: -.3px; }
.cast-image { background: var(--surface); filter: saturate(.85); }
.cast-name { color: #c5d2d8; font-size: 12px; }
.cast-character { color: #7f9bad; font-size: 11px; }
.season-bar { border-color: var(--line); }
.season-bar select { min-height: 40px; background: var(--surface); color: #cad7de; border-color: var(--line); border-radius: 3px; font-size: 12px; }
.episode-card { border-color: var(--line); border-radius: 3px; }
.episode-card:hover { background: #b5cddd06; }
.episode-card.active { background: #c9896210; border-color: #c989623d; }
.episode-card.active .episode-title { color: var(--accent-bright); }
.episode-still { border-radius: 3px; background: var(--surface); }
.episode-title { color: #ced9dc; font-size: 13px; font-weight: 550; }
.episode-overview { color: #839fb2; font-size: 12px; }
.episode-number { color: var(--accent); font-size: 10px; }
.episode-meta { color: #7694a9; font-size: 10px; }
.modal.watch-modal { background: var(--bg-deep); }
.watch-topbar { padding: 23px 26px; border-color: var(--line); }
.watch-title { color: var(--text); font-family: var(--sans); font-size: 22px; font-weight: 650; letter-spacing: -.5px; }
.watch-topbar p { color: #8da7b9; font-size: 12px; }
.player-wrap { min-height: 0; background: #02070c; }
.player-placeholder { background: var(--bg-deep); }
.player-icon { width: 54px; height: 54px; color: var(--accent); border-color: #c6d4dd2b; border-radius: 3px; background: transparent; }
.player-heading { color: var(--text); font-size: 27px; font-weight: 650; letter-spacing: -.6px; }
.player-message { color: #8da7b9; font-size: 13px; line-height: 1.8; }
.player-controls { padding: 22px 26px; border-color: var(--line); }
.server-button { padding: 11px 15px; color: #98b0c1; background: transparent; border-color: #bacfdd30; border-radius: 3px; font-size: 12px; }
.server-button.active { background: #c9896210; border-color: var(--accent); color: var(--accent-bright); }
.server-button:hover { color: var(--text); border-color: #bacfdd66; background: #b7d1e008; }
.watch-info { padding: 24px 26px; border-color: var(--line); }
.watch-info p { color: #8ca8bc; font-size: 13px; line-height: 1.8; }
.provider-status { color: #7f9caf; font-size: 11px; }
.provider-row { color: #acc1ce; font-size: 12px; border-color: var(--line); }
.status-label { color: #b4c2c9; font-size: 10px; }
.watch-episodes { padding: 0 26px 26px; }
.toast { color: var(--text); border-color: #c5d7e03b; border-radius: 3px; background: var(--surface-raised); font-size: 13px; }
.about-card { border-color: var(--line); border-radius: 4px; background: #152332; }
.about-card h2, .about-card h3 { color: var(--text); font-size: 23px; font-weight: 650; letter-spacing: -.5px; }
.about-card p { color: #9ab0bf; font-size: 13px; line-height: 1.85; }

/* Film Finder is a short, public five-step flow with large, legible choices. */
.finder-shell { width: 100%; max-width: 1060px; margin: 0 auto; padding: 139px var(--gutter) 80px; }
.page-content > .finder-shell { padding-left: 0; padding-right: 0; }
.finder-progress { display: flex; align-items: center; gap: 9px; margin-bottom: 42px; color: #8fa7b7; font-size: 12px; line-height: 1.7; }
.finder-progress > i, .finder-progress [data-finder-step] { display: block; flex: 1; max-width: 100px; height: 3px; background: #b5ccdc24; }
.finder-progress > i.active, .finder-progress > i.complete, .finder-progress [data-finder-step].active, .finder-progress [data-finder-step].complete { background: var(--accent); }
.finder-progress .progress-track { width: 100%; max-width: 400px; height: 3px; background: #b5ccdc24; }
.finder-progress .progress-fill { display: block; height: 100%; background: var(--accent); }
.finder-step { min-width: 0; }
.finder-step .section-kicker { display: block; margin-bottom: 17px; }
.finder-step h1, .finder-step h2 { max-width: 760px; margin: 0 0 18px; color: var(--text); font-size: clamp(32px,4vw,49px); font-weight: 700; letter-spacing: -1.5px; line-height: 1.12; }
.finder-step > p { max-width: 680px; margin: 0 0 29px; color: #9eb3c1; font-size: 14px; line-height: 1.8; }
.finder-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; margin-top: 28px; }
.finder-options.genres, .finder-options[data-layout="genres"] { grid-template-columns: repeat(3,minmax(0,1fr)); }
.finder-option { position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; min-width: 0; min-height: 102px; padding: 22px; text-align: left; border: 1px solid #aec7d636; border-radius: 4px; color: #d2dee4; background: #132332; font-size: 15px; font-weight: 550; line-height: 1.5; transition: background .18s,border-color .18s; }
.finder-option:hover { border-color: #c7d8e475; background: #1a2d3e; }
.finder-option.selected, .finder-option.active, .finder-option[aria-pressed="true"], .finder-option:has(input:checked) { border-color: var(--accent); background: #c9896210; color: var(--text); }
.finder-option strong { display: block; margin-bottom: 5px; font-size: 16px; font-weight: 650; }
.finder-option span, .finder-option small { display: block; color: #8eacbf; font-size: 12px; font-weight: 400; line-height: 1.65; }
.finder-option svg { width: 23px; height: 23px; margin-bottom: 14px; color: var(--accent); }
.finder-option input { accent-color: var(--accent); }
.finder-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 15px; margin-top: 31px; padding-top: 25px; border-top: 1px solid var(--line); }
.finder-actions .button { min-width: 122px; }
.finder-actions .button:disabled { opacity: .35; }
.finder-year-range { display: grid; gap: 20px; padding: 27px; margin-top: 28px; border: 1px solid var(--line); border-radius: 4px; background: #132332; }
.finder-year-range label { display: flex; justify-content: space-between; gap: 20px; color: #b9cdd9; font-size: 13px; }
.finder-year-range input[type="range"] { display: block; width: 100%; accent-color: var(--accent); }
.finder-year-range input[type="number"] { width: 100%; min-height: 43px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 3px; color: var(--text); background: var(--bg-deep); font-size: 14px; }
.finder-year-range output { color: var(--accent-bright); font-weight: 600; }
.finder-result-header { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 24px; padding-top: 133px; margin-bottom: 32px; }
.finder-result-header h1 { margin: 0 0 13px; color: var(--text); font-size: clamp(34px,4vw,53px); font-weight: 700; line-height: 1.1; letter-spacing: -1.7px; }
.finder-result-header p { margin: 0; color: #91adbf; font-size: 14px; line-height: 1.8; }
.finder-shell .finder-result-header { padding-top: 0; }
.match-reasons { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin: 10px 0 0; }
.match-reasons span { padding: 5px 7px; color: #b3c6d2; border: 1px solid #b5cddd26; border-radius: 2px; font-size: 10px; line-height: 1.4; }
.finder-promo { display: flex; align-items: center; justify-content: space-between; gap: 30px; margin: 12px 0 44px; padding: 29px; border: 1px solid #c989624d; border-radius: 4px; background: #122230; }
.finder-promo h2 { margin: 0 0 10px; color: var(--text); font-size: 26px; font-weight: 650; letter-spacing: -.7px; }
.finder-promo p { margin: 0; color: #8da9bb; font-size: 13px; line-height: 1.8; }
.finder-promo .button { flex-shrink: 0; }
/* Account surfaces share the index-page typography and square field outlines. */
.account-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 39px; padding: 6px 12px; background: transparent; border: 1px solid var(--line); border-radius: 0; color: var(--text); font-size: 12px; line-height: 1.4; }
.account-button:hover { border-color: var(--accent); color: var(--accent-bright); }
.account-avatar { display: inline-grid; place-items: center; width: 27px; height: 27px; flex-shrink: 0; background: #263747; color: var(--text); font-family: var(--mono); font-size: 11px; font-weight: 400; }
.auth-modal { width: min(500px,calc(100vw - 36px)); }
.auth-shell { position: relative; padding: 41px; }
.auth-header { margin-bottom: 28px; padding-right: 22px; }
.auth-header h1, .auth-header h2 { margin: 0 0 13px; color: var(--text); font-family: var(--display); font-size: 39px; font-weight: 400; line-height: 1.08; letter-spacing: -1px; }
.auth-header p { margin: 0; max-width: 350px; color: var(--muted); font-size: 13px; line-height: 1.75; }
.auth-header .section-kicker { display: block; margin-bottom: 17px; }
.auth-tabs { display: flex; gap: 25px; margin-bottom: 26px; border-bottom: 1px solid var(--line); }
.auth-tab { position: relative; padding: 0 0 13px; color: var(--subtle); background: none; border: 0; border-bottom: 1px solid transparent; font-size: 12px; font-weight: 400; }
.auth-tab.active, .auth-tab[aria-selected="true"] { color: var(--text); border-bottom-color: var(--accent); }
.auth-form { display: grid; gap: 19px; margin: 0; }
.auth-field { display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.auth-field label { color: #b9c6ce; font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: 0; }
.auth-field input { display: block; width: 100%; min-width: 0; min-height: 45px; padding: 12px 13px; border: 1px solid #a7bac84d; border-radius: 0; color: var(--text); background: var(--bg-deep); font-size: 14px; line-height: 1.4; }
.auth-field input::placeholder { color: #627d90; }
.auth-field input:focus { border-color: var(--accent); outline: 0; box-shadow: 0 0 0 1px var(--accent); }
.auth-field input[aria-invalid="true"] { border-color: #d98e7f; }
.auth-form input[type="checkbox"] { accent-color: var(--accent); }
.auth-error, .auth-success { margin: 0; padding: 12px 14px; border-left: 2px solid #d98e7f; background: #d98e7f0a; color: #e4b8a9; font-size: 12px; line-height: 1.7; }
.auth-success { border-color: #acbda3; background: #acbda308; color: #c9d5c0; }
.auth-hint { display: block; margin: 0; color: #879fae; font-size: 11px; line-height: 1.75; }
.auth-hint a { color: var(--accent-bright); text-decoration: underline; text-underline-offset: 3px; }
.auth-form > .button { width: 100%; min-height: 45px; margin-top: 2px; }
.form-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 13px; margin-top: 7px; }
.form-actions .button { flex: 1; }
.form-actions a, .form-actions > button:not(.button) { padding: 0; border: 0; background: none; color: var(--accent-bright); font-size: 12px; text-decoration: underline; text-underline-offset: 4px; }
.account-panel { position: relative; padding: 37px; }
.account-panel h1, .account-panel h2 { margin: 0 0 13px; font-family: var(--display); font-size: 36px; font-weight: 400; letter-spacing: -1px; }
.account-panel > p { margin: 0 0 25px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.account-panel .account-avatar { width: 48px; height: 48px; margin-bottom: 22px; font-size: 18px; }
.account-stats { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; margin: 27px 0; }
.account-stat { display: flex; flex-direction: column; gap: 7px; padding: 21px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--subtle); font-family: var(--mono); font-size: 10px; }
.account-stat strong { color: var(--text); font-family: var(--display); font-size: 36px; font-weight: 400; line-height: 1; }
.account-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.account-menu { position: absolute; top: 100%; right: 0; z-index: 65; width: 235px; margin-top: 11px; padding: 7px; border: 1px solid var(--line); background: var(--bg-deep); box-shadow: 0 12px 30px #0004; }
.account-menu a, .account-menu button { display: block; width: 100%; padding: 12px 11px; text-align: left; color: #becbd3; background: transparent; border: 0; font-size: 12px; }
.account-menu a:hover, .account-menu button:hover { color: var(--text); background: var(--surface); }
.account-menu hr { margin: 6px; border: 0; border-top: 1px solid var(--line); }

.player-fullscreen, .fullscreen-exit { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 40px; min-height: 40px; padding: 9px 12px; background: #08121de6; border: 1px solid #adbdc680; border-radius: 0; color: var(--text); font-size: 11px; }
.player-fullscreen svg, .fullscreen-exit svg { width: 18px; height: 18px; }
.player-fullscreen:hover, .fullscreen-exit:hover { border-color: var(--accent); color: var(--accent-bright); }
.player-wrap > .player-fullscreen { position: absolute; z-index: 6; bottom: 17px; right: 17px; }
.fullscreen-exit { position: absolute; top: 17px; right: 17px; z-index: 100; display: none; }
.player-wrap:fullscreen { width: 100vw; height: 100dvh; min-height: 0; max-height: none; aspect-ratio: auto; background: #000; }
.player-wrap:fullscreen .player-frame { width: 100%; height: 100%; }
.player-wrap:fullscreen .fullscreen-exit, .watch-modal.player-expanded .fullscreen-exit { display: inline-flex; }
.player-wrap:fullscreen > .player-fullscreen { display: none; }
.watch-modal.player-expanded { position: fixed; inset: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; border-radius: 0; background: #000; }
.watch-modal.player-expanded .watch-topbar, .watch-modal.player-expanded .player-controls, .watch-modal.player-expanded .watch-info, .watch-modal.player-expanded .watch-episodes { display: none; }
.watch-modal.player-expanded .player-wrap { width: 100vw; height: 100dvh; min-height: 0; aspect-ratio: auto; }
.watch-modal.player-expanded .player-frame { height: 100%; }

.auth-header h1, .auth-header h2 { font-size: 34px; font-weight: 700; }
.account-panel h1, .account-panel h2 { font-size: 32px; font-weight: 700; }
.account-stat strong { font-size: 32px; font-weight: 650; }
.auth-shell, .account-panel { border-radius: 4px; }
.auth-field input { border-radius: 3px; }
.account-button, .account-avatar { border-radius: 3px; }
.auth-tab.active, .auth-tab[aria-selected="true"] { color: var(--text); }
.account-menu { border-radius: 3px; }
.auth-form .button.primary { color: var(--bg-deep); }

@media (min-width: 1800px) {
  .hero h1 { font-size: 110px; }
  .hero-overview { font-size: 17px; max-width: 560px; }
  .nav-link { font-size: 14px; }
  .button { font-size: 14px; min-height: 48px; }
}
@media (max-width: 1200px) {
  .header-inner { gap: 36px; }
  .nav-links { gap: 22px; }
  .nav-link { font-size: 12px; }
  .hero, .hero.editorial-layout { min-height: 650px; height: min(790px,82svh); }
  .hero h1 { font-size: 79px; max-width: 660px; letter-spacing: -3.5px; }
  .hero-overview { max-width: 470px; font-size: 14px; }
  .poster-row { grid-auto-columns: calc((100% - 72px) / 5); gap: 18px; }
  .home-content > .section:first-of-type .poster-row { grid-auto-columns: calc((100% - 60px) / 4); gap: 20px; }
}
@media (max-width: 960px) {
  :root { --gutter: 34px; }
  .app-header { height: 80px; }
  .brand-word { font-size: 26px; }
  .brand-mark { width: 30px; height: 27px; font-size: 13px; }
  .header-inner { gap: 28px; }
  .nav-links { gap: 19px; }
  .header-actions { gap: 17px; }
  .hero, .hero.editorial-layout { min-height: 620px; height: 78svh; }
  .hero-content { padding-top: 133px; padding-bottom: 110px; }
  .hero h1 { font-size: 70px; max-width: 580px; }
  .hero-overview { max-width: 450px; font-size: 14px; }
  .hero-bottom { bottom: 55px; }
  .provider-strip { gap: 24px; }
  .poster-row, .home-content > .section:first-of-type .poster-row { grid-auto-columns: calc((100% - 51px) / 4); gap: 17px; }
  .section-title { font-size: 24px; }
  .home-content > .section:first-of-type .section-title { font-size: 26px; }
  .catalog-header { padding-top: 124px; }
  .finder-shell { padding-top: 125px; }
  .finder-result-header { padding-top: 120px; }
}
@media (max-width: 720px) {
  :root { --gutter: 23px; }
  .app-header { height: 73px; }
  .brand-word { font-size: 25px; letter-spacing: -1px; }
  .brand-mark { width: 29px; height: 26px; font-size: 13px; }
  .brand { gap: 8px; }
  .nav-links { display: none; }
  .header-inner { gap: 20px; }
  .header-actions { gap: 15px; }
  .header-actions .user-badge { display: none; }
  .account-button { min-height: 36px; padding: 6px 9px; font-size: 11px; }
  .account-avatar { width: 24px; height: 24px; font-size: 10px; }
  .account-button .account-label { display: none; }
  .hero, .hero.editorial-layout { min-height: 700px; height: min(91svh,820px); }
  .hero-backdrop { object-position: 64% 22%; }
  .hero-shade { background: linear-gradient(0deg,var(--bg) 0%,#101b28f2 9%,#08121d99 44%,#08121d0a 78%),linear-gradient(90deg,#08121d4d,transparent),linear-gradient(180deg,#08121d66,transparent 35%); }
  .hero-content { padding-top: 145px; padding-bottom: 111px; justify-content: flex-end; }
  .eyebrow { margin-bottom: 19px; font-size: 10px; letter-spacing: 1px; }
  .hero h1 { max-width: 100%; margin-bottom: 20px; font-size: clamp(46px,9vw,69px); line-height: 1; letter-spacing: -2.4px; }
  .hero-meta { font-size: 11px; gap: 8px; margin-bottom: 17px; }
  .hero-meta > span + span::before { margin-right: 8px; }
  .hero-meta .hero-language { font-size: 10px; }
  .hero-overview { max-width: 490px; font-size: 14px; line-height: 1.75; -webkit-line-clamp: 2; margin-bottom: 24px; }
  .hero-actions { gap: 9px; }
  .hero-actions .button { min-height: 43px; padding: 0 19px; font-size: 12px; }
  .hero-actions .button.ghost { width: 43px; min-width: 43px; padding: 0; font-size: 0; }
  .hero-bottom { bottom: 56px; }
  .hero-bottom > span { max-width: 45%; font-size: 10px; letter-spacing: .2px; }
  .hero-counter { font-size: 10px; }
  .hero-counter::after { display: none; }
  .hero-dot { width: 11px; height: 3px; }
  .hero-dot.active { width: 22px; }
  .home-content { margin-top: -21px; }
  .provider-strip { display: block; margin: 0 0 29px; padding: 7px 0 20px; width: 100%; }
  .provider-strip > .section-kicker { max-width: none; margin-bottom: 12px; font-size: 10px; }
  .provider-strip .quick-filters { width: 100%; margin: 0; padding: 0; }
  .provider-strip .provider-chip { min-height: 37px; padding: 8px 12px; font-size: 12px; }
  .section { margin-bottom: 33px; }
  .section-heading { margin-bottom: 17px; }
  .section-title, .home-content > .section:first-of-type .section-title { font-size: 22px; }
  .section-kicker { font-size: 10px; }
  .section-link { font-size: 11px; }
  .poster-row { grid-auto-columns: calc((100% - 28px) / 3.1); gap: 14px; margin-right: calc(-1 * var(--gutter)); padding-right: var(--gutter); }
  .home-content > .section:first-of-type .poster-row { grid-auto-columns: calc((100% - 28px) / 3.1); gap: 14px; }
  .poster-title, .catalog-grid .poster-title { font-size: 13px; }
  .poster-subtitle, .catalog-grid .poster-subtitle { font-size: 11px; }
  .card-save { width: 28px; height: 28px; }
  .poster-play { display: none; }
  .catalog-header { padding-top: 114px; padding-bottom: 26px; }
  .catalog-title { font-size: 45px; letter-spacing: -1.5px; }
  .catalog-description { font-size: 13px; }
  .filters { gap: 16px; }
  .filter-field { flex: 1 1 calc(50% - 8px); min-width: 0; }
  .filter-field label { font-size: 10px; }
  .filter-field select { min-width: 0; min-height: 43px; font-size: 12px; }
  .catalog-grid { gap: 27px 15px; }
  .search-input { font-size: 16px; }
  .search-count { font-size: 11px; }
  .page-content { padding-bottom: 51px; }
  .catalog-callout h2 { font-size: 29px; }
  .footer-links { gap: 21px; font-size: 11px; }
  .footer-note { font-size: 10px; }
  .mobile-nav { border-color: var(--line); background: #08121df5; padding: 9px 8px max(9px,env(safe-area-inset-bottom)); }
  .mobile-nav a, .mobile-nav button { min-height: 36px; padding: 3px 7px; font-size: 10px; color: #91aaba; }
  .mobile-nav .active { color: var(--text); }
  .modal { width: calc(100vw - 26px); border-radius: 4px; }
  .details-backdrop { height: 255px; }
  .details-content { margin-top: -39px; padding: 0 25px 28px; }
  .details-title { font-size: 34px; letter-spacing: -1px; }
  .details-meta { font-size: 11px; }
  .details-overview { font-size: 13px; }
  .details-facts { font-size: 12px; }
  .fact-label { font-size: 10px; }
  .cast-name { font-size: 11px; }
  .cast-character { font-size: 10px; }
  .details-content .poster-row { grid-auto-columns: calc((100% - 13px) / 2.5); gap: 13px; }
  .episode-still { width: 106px; height: 60px; }
  .episode-title { font-size: 12px; }
  .episode-number { font-size: 10px; }
  .episode-overview { font-size: 11px; }
  .episode-meta { font-size: 10px; }
  .watch-topbar { padding: 19px 20px; }
  .watch-title { font-size: 19px; }
  .watch-topbar p { font-size: 11px; }
  .player-wrap { min-height: 270px; }
  .player-placeholder { padding: 24px; }
  .player-heading { font-size: 25px; }
  .player-message { font-size: 12px; }
  .player-placeholder .section-kicker { font-size: 10px; }
  .player-placeholder .button { min-height: 39px; font-size: 11px; }
  .player-controls { padding: 18px 20px; }
  .server-button { padding: 11px 13px; font-size: 11px; }
  .watch-info { padding: 22px 20px; }
  .watch-info p { font-size: 12px; }
  .watch-info .provider-status { font-size: 11px; }
  .watch-episodes { padding: 0 20px 20px; }
  .auth-shell { padding: 35px 27px; }
  .auth-header h1, .auth-header h2 { font-size: 31px; }
  .auth-field input { font-size: 16px; }
  .account-panel { padding: 32px 27px; }
  .account-panel h1, .account-panel h2 { font-size: 29px; }
  .finder-shell { padding-top: 117px; padding-bottom: 55px; }
  .finder-progress { margin-bottom: 31px; }
  .finder-step h1, .finder-step h2 { font-size: 36px; letter-spacing: -1px; }
  .finder-step > p { font-size: 13px; }
  .finder-options { gap: 12px; }
  .finder-options.genres, .finder-options[data-layout="genres"] { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .finder-option { min-height: 100px; padding: 18px; font-size: 14px; }
  .finder-option strong { font-size: 15px; }
  .finder-option span, .finder-option small { font-size: 12px; }
  .finder-actions { padding-top: 22px; }
  .finder-result-header { padding-top: 112px; }
  .finder-result-header h1 { font-size: 37px; letter-spacing: -1px; }
  .finder-promo { flex-direction: column; align-items: flex-start; gap: 22px; padding: 24px; }
  .finder-promo h2 { font-size: 24px; }
}
@media (max-width: 480px) {
  :root { --gutter: 20px; }
  .brand-word { font-size: 23px; }
  .brand-mark { width: 27px; height: 25px; font-size: 12px; }
  .header-actions { gap: 12px; }
  .hero, .hero.editorial-layout { min-height: 655px; height: min(90svh,760px); }
  .hero-content { padding-bottom: 111px; }
  .hero h1 { font-size: clamp(41px,10.5vw,54px); letter-spacing: -1.9px; overflow-wrap: anywhere; }
  .hero-meta { font-size: 10px; gap: 7px; }
  .hero-meta > span + span::before { margin-right: 7px; }
  .hero-overview { font-size: 13px; }
  .hero-actions .button { padding: 0 16px; font-size: 11px; }
  .hero-actions .button.ghost { padding: 0; }
  .hero-bottom > span { max-width: 43%; font-size: 10px; }
  .hero-counter { gap: 7px; }
  .hero-dot { width: 9px; }
  .hero-dot.active { width: 19px; }
  .hero-dots { gap: 5px; }
  .poster-row { grid-auto-columns: calc((100% - 13px) / 2.45); gap: 13px; }
  .home-content > .section:first-of-type .poster-row { grid-auto-columns: calc((100% - 13px) / 2.2); gap: 13px; }
  .section-title, .home-content > .section:first-of-type .section-title { font-size: 21px; }
  .section-link { font-size: 10px; }
  .section-link svg { width: 11px; }
  .catalog-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 26px 14px; }
  .catalog-title { font-size: 40px; }
  .details-backdrop { height: 220px; }
  .details-content { padding-left: 21px; padding-right: 21px; }
  .details-title { font-size: 30px; }
  .details-facts { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .details-content .poster-row { grid-auto-columns: calc((100% - 12px) / 2.1); }
  .episode-still { width: 88px; height: 50px; }
  .episode-overview { -webkit-line-clamp: 2; }
  .player-heading { font-size: 23px; }
  .player-message { font-size: 12px; }
  .player-placeholder { padding: 22px 19px; }
  .player-icon { width: 42px; height: 42px; margin-bottom: 16px; }
  .player-placeholder .section-kicker { font-size: 10px; letter-spacing: .5px; }
  .finder-step h1, .finder-step h2 { font-size: 31px; }
  .finder-option { min-height: 94px; padding: 15px; }
  .finder-option strong { font-size: 14px; }
  .finder-option span { font-size: 11px; }
  .finder-year-range { padding: 21px; }
  .finder-actions .button { min-width: 110px; padding: 0 16px; }
  .auth-shell, .account-panel { padding: 32px 24px; }
}
@media (hover: none) {
  .card-save { opacity: 1; transform: none; }
  .poster-card:hover .poster-image > img { transform: none; filter: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}


/* Final fit to the implemented MovieBox account and finder surfaces. */
.account-modal { width:min(520px,calc(100vw - 32px)); }
.finder-shell>.catalog-header { padding-top:0; }
.finder-progress>span { display:block; flex:1; max-width:100px; height:3px; background:#b5ccdc24; }
.finder-progress>span.active { background:var(--accent); }
.finder-progress>strong { margin-left:auto; font-size:12px; font-weight:500; }
.match-reasons { list-style:none; padding:0; align-items:flex-start; gap:5px; }
.match-reasons li { color:#9fb6c5; font-size:10px; line-height:1.4; padding:4px 6px; border:1px solid #b5cddd20; }
.finder-note { color:var(--muted); font-size:12px; line-height:1.7; margin-top:24px; }
.player-wordmark { display:block; font-size:34px; font-weight:800; letter-spacing:-1.4px; margin:18px 0; color:var(--text); }
.player-wordmark span { color:var(--accent); }
.brand-mark { font-weight:900; font-size:18px; border:1px solid var(--accent); color:var(--accent); background:transparent; padding:0; }
.invite-result input { width:100%; padding:12px; margin:10px 0; background:var(--bg-deep); color:var(--text); border:1px solid var(--line); }
@media(max-width:720px) { .account-button-label { display:none; } .finder-shell>.catalog-header { padding-top:0; } .header-actions { gap:10px; } .mobile-nav { gap:4px; } .mobile-nav a { font-size:10px; } }

.hero-overview { max-height:none; -webkit-line-clamp:3; }
@media(max-width:720px) { .hero-overview { -webkit-line-clamp:2; } }

.hero-overview { flex-shrink:0; }
