@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Noto+Sans+Arabic:wght@400;500;600;700;800&display=swap');

:root {
  color-scheme: dark;
  --ink: #101112;
  --ink-soft: #151718;
  --ink-lift: #1b1e1f;
  --paper: #f3efe8;
  --muted: #a5a19a;
  --soft-line: rgba(240, 234, 223, .12);
  --red: #e5483f;
  --gold: #d8ab61;
  --arabic: 'Noto Sans Arabic', 'Tahoma', sans-serif;
  --latin: 'Manrope', 'Arial', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--ink); color: var(--paper); font-family: var(--arabic); -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid #f27568; outline-offset: 3px; }
::selection { background: var(--red); color: white; }
.site-header { position: sticky; z-index: 20; top: 0; background: rgba(16,17,18,.92); backdrop-filter: blur(16px); border-bottom: 1px solid rgba(255,255,255,.045); }
.header-main { height: 76px; max-width: 1480px; padding: 0 6.2%; margin: auto; display: flex; align-items: center; gap: 45px; }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; gap: 9px; }
.brand img { width: 34px; height: 34px; }
.brand-lockup { display: grid; direction: ltr; gap: 3px; text-align: left; line-height: 1; }
.brand-name { color: var(--paper); font: 800 15px var(--latin); letter-spacing: .045em; white-space: nowrap; }
.brand-subtitle { color: #a8a298; font: 600 7px var(--latin); letter-spacing: .14em; white-space: nowrap; }
.main-nav { display: flex; align-items: center; gap: 32px; height: 100%; }
.nav-link { display: inline-flex; align-items: center; height: 100%; color: #ada9a3; font-size: 13px; transition: color .2s ease; position: relative; }
.nav-link::after { content: ''; position: absolute; right: 0; bottom: 0; width: 0; height: 2px; background: var(--red); transition: width .22s ease; }
.nav-link:hover, .nav-link.active { color: var(--paper); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.header-tools { display: flex; align-items: center; gap: 15px; margin-right: auto; }
.search-box { display: flex; align-items: center; gap: 10px; width: clamp(205px, 22vw, 290px); height: 39px; padding: 0 12px; border: 1px solid var(--soft-line); background: rgba(255,255,255,.025); border-radius: 4px; transition: border-color .2s ease; }
.search-box:focus-within { border-color: rgba(229,72,63,.72); }
.search-box svg, .filter-field svg { width: 17px; height: 17px; fill: none; stroke: #8b8882; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.search-box input { width: 100%; min-width: 0; border: 0; outline: 0; color: var(--paper); background: transparent; font-size: 11px; }
.search-box input::placeholder { color: #88847f; }
.search-box kbd { direction: ltr; border: 1px solid rgba(255,255,255,.13); border-radius: 3px; padding: 0 5px; color: #86827d; font: 10px var(--latin); }
.icon-button { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid transparent; color: #d8d2c9; background: transparent; cursor: pointer; transition: color .2s ease, background .2s ease, border-color .2s ease; }
.icon-button:hover { color: var(--red); border-color: var(--soft-line); background: rgba(255,255,255,.03); }
.icon-button svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
.saved-shortcut svg { width: 20px; height: 20px; }
.menu-toggle, .mobile-menu { display: none; }
.hero { position: relative; isolation: isolate; min-height: clamp(490px, 49vw, 670px); margin: 15px 3.15% 0; overflow: hidden; background: #22201e; }
.hero::before { position: absolute; z-index: -2; inset: 0; content: ''; background: radial-gradient(ellipse at 25% 48%, #6d3323 0, #31211e 32%, #191a19 79%); }
.hero-image { position: absolute; z-index: -1; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 48%; opacity: .91; }
.hero-shade { position: absolute; z-index: 0; inset: 0; pointer-events: none; background: linear-gradient(270deg, rgba(14,15,15,.93) 0%, rgba(14,15,15,.82) 28%, rgba(14,15,15,.35) 56%, rgba(14,15,15,.04) 100%), linear-gradient(0deg, rgba(13,14,14,.52), transparent 28%); }
.hero-content { position: relative; z-index: 1; padding: clamp(60px, 8vw, 112px) 8.5% 88px; max-width: 760px; }
.eyebrow, .section-kicker { display: flex; align-items: center; gap: 11px; color: #ddd1c2; font-size: 11px; letter-spacing: .025em; }
.eyebrow-mark { width: 7px; height: 7px; background: var(--red); border-radius: 50%; box-shadow: 0 0 14px rgba(229,72,63,.8); }
.hero h1 { margin: 22px 0 15px; color: #f6f2eb; font-size: clamp(45px, 6vw, 76px); line-height: 1.29; letter-spacing: -.055em; font-weight: 800; }
.hero h1 span { color: #e4d5c2; }
.hero-content > p { max-width: 385px; margin: 0; color: rgba(246,242,235,.75); font-size: 13px; line-height: 2.1; }
.hero-actions { display: flex; align-items: center; gap: 29px; margin-top: 29px; }
.button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 14px; padding: 0 20px; border: 1px solid transparent; border-radius: 3px; font-size: 12px; font-weight: 700; cursor: pointer; transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: white; background: var(--red); box-shadow: 0 8px 24px rgba(192,49,43,.18); }
.button-primary:hover { background: #f1594f; }
.button-primary span { font-size: 16px; }
.text-link { font-size: 11px; color: #e3ddd4; transition: color .2s; }
.text-link span { display: inline-block; margin-right: 6px; color: var(--red); }
.text-link:hover { color: white; }
.hero-meta { display: flex; align-items: center; gap: 13px; margin-top: 42px; font-size: 9px; color: rgba(246,242,235,.64); }
.hero-meta i { display: inline-block; width: 6px; height: 6px; margin-left: 6px; border-radius: 50%; background: #9fbd87; vertical-align: middle; }
.hero-meta-divider { color: var(--red); }
.hero-caption { position: absolute; left: 4.3%; bottom: 29px; display: flex; align-items: center; gap: 12px; color: rgba(248,241,230,.64); font-size: 9px; }
.caption-line { width: 47px; height: 1px; background: var(--red); }
.hero-count { position: absolute; left: 4.3%; top: 34px; display: flex; flex-direction: column; align-items: center; gap: 9px; color: rgba(249,239,225,.7); font: 10px var(--latin); }
.hero-count span:first-child { color: white; font-weight: 700; }
.count-rule { width: 1px; height: 34px; background: linear-gradient(var(--red), rgba(255,255,255,.22)); }
.section-shell { max-width: 1320px; padding-left: 6.5%; padding-right: 6.5%; margin-right: auto; margin-left: auto; }
.catalog-section { padding-top: 89px; padding-bottom: 73px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; }
.section-kicker { color: var(--red); font-size: 10px; font-weight: 700; }
.section-kicker-line { width: 23px; height: 1px; background: var(--red); }
.section-heading h2, .about-intro h2 { margin: 13px 0 5px; font-size: clamp(27px, 3vw, 38px); line-height: 1.5; letter-spacing: -.04em; font-weight: 700; }
.section-heading h2 em, .about-intro h2 em { color: var(--gold); font-style: normal; }
.section-subtitle { margin: 0; color: var(--muted); font-size: 11px; }
.catalog-counter { display: flex; align-items: baseline; gap: 8px; color: #918c84; font-size: 10px; padding-bottom: 7px; }
.catalog-counter span:first-child { color: var(--gold); font: 600 20px var(--latin); }
.catalog-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 38px; padding-bottom: 14px; border-bottom: 1px solid var(--soft-line); }
.collection-tabs { display: flex; align-items: center; gap: 24px; overflow-x: auto; scrollbar-width: none; }
.collection-tabs::-webkit-scrollbar { display: none; }
.collection-tab { position: relative; flex-shrink: 0; padding: 0 0 14px; border: 0; color: #939089; background: transparent; font-size: 11px; cursor: pointer; transition: color .18s ease; }
.collection-tab::after { content: ''; position: absolute; right: 0; bottom: -1px; height: 2px; width: 0; background: var(--red); transition: width .22s ease; }
.collection-tab:hover, .collection-tab.active { color: #f1ece4; }
.collection-tab.active::after { width: 100%; }
.catalog-filters { display: flex; gap: 9px; flex-shrink: 0; }
.filter-field { display: flex; align-items: center; gap: 7px; min-height: 36px; position: relative; padding: 0 10px; border: 1px solid var(--soft-line); background: rgba(255,255,255,.018); border-radius: 3px; }
.filter-field select { width: auto; max-width: 136px; padding: 0 0 0 14px; border: 0; outline: 0; appearance: none; color: #d9d4cb; background: transparent; font-size: 10px; cursor: pointer; }
.filter-field option { background: #202121; color: var(--paper); }
.select-chevron { position: absolute; left: 8px; top: 7px; pointer-events: none; color: #8d8881; font-size: 13px; }
.year-filter select { max-width: 116px; }
.active-filter-row { display: flex; align-items: center; justify-content: space-between; color: #a6a095; font-size: 10px; padding-top: 12px; }
.active-filter-row[hidden] { display: none; }
.clear-filters { display: inline-flex; align-items: center; gap: 7px; border: 0; color: var(--gold); background: transparent; font-size: 10px; cursor: pointer; }
.clear-filters span { font-size: 17px; line-height: 1; }
.movie-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 29px 19px; padding-top: 25px; }
.movie-card { display: block; min-width: 0; padding: 0; border: 0; text-align: right; color: inherit; background: transparent; cursor: pointer; animation: rise .35s both; }
.movie-card:hover .poster-frame img, .movie-card:hover .poster-fallback { transform: scale(1.045); }
.poster-frame { position: relative; aspect-ratio: 2 / 2.72; overflow: hidden; background: #242423; }
.poster-frame::after { content: ''; position: absolute; inset: 44% 0 0; background: linear-gradient(0deg, rgba(8,9,9,.7), transparent); pointer-events: none; }
.poster-frame img, .poster-fallback { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .6s cubic-bezier(.2,.65,.3,1); }
.poster-fallback { position: relative; overflow: hidden; display: grid; align-content: space-between; padding: 16px; isolation: isolate; background: radial-gradient(circle at 74% 23%, rgba(255,210,125,.45), transparent 13%), linear-gradient(148deg,#704a39,#282527 46%,#121516); }
.poster-fallback::before, .poster-fallback::after { position: absolute; z-index: -1; content: ''; border-radius: 50%; border: 1px solid rgba(255,255,255,.24); }
.poster-fallback::before { width: 170%; height: 85%; bottom: 15%; right: -38%; transform: rotate(-28deg); background: rgba(0,0,0,.06); }
.poster-fallback::after { width: 125%; aspect-ratio: 1; left: -50%; top: 25%; opacity: .32; }
.poster-fallback.tone-red { background: radial-gradient(circle at 60% 35%,rgba(225,91,56,.65),transparent 18%),linear-gradient(155deg,#2b1016,#9f3e30 48%,#151414); }
.poster-fallback.tone-blue { background: radial-gradient(circle at 59% 34%,rgba(121,165,187,.7),transparent 16%),linear-gradient(155deg,#122331,#304b59 48%,#121618); }
.poster-fallback.tone-amber { background: radial-gradient(circle at 54% 38%,rgba(233,172,88,.68),transparent 17%),linear-gradient(150deg,#563e25,#9c6840 48%,#171717); }
.poster-fallback.tone-olive { background: radial-gradient(circle at 54% 35%,rgba(204,205,157,.48),transparent 18%),linear-gradient(155deg,#282b23,#596044 48%,#151615); }
.poster-fallback::after { border-color: rgba(249,233,211,.26); box-shadow: 0 0 32px rgba(0,0,0,.2); }
.poster-mark { position: relative; z-index: 1; align-self: start; width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid rgba(245,234,218,.56); border-radius: 50%; color: #f2e2cc; font: 10px var(--latin); }
.poster-caption { position: relative; z-index: 1; color: rgba(250,241,224,.82); font-size: 9px; letter-spacing: .13em; }
.poster-badge { position: absolute; z-index: 2; top: 11px; right: 11px; padding: 5px 8px; border: 1px solid rgba(255,255,255,.21); background: rgba(19,19,18,.65); color: white; backdrop-filter: blur(6px); font-size: 9px; }
.rating-pill { position: absolute; z-index: 3; left: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 5px; color: #fff2d4; font: 600 10px var(--latin); direction: ltr; }
.rating-pill svg { width: 12px; height: 12px; fill: var(--gold); stroke: var(--gold); }
.favorite-button { position: absolute; z-index: 4; top: 9px; left: 9px; width: 33px; height: 33px; display: grid; place-items: center; padding: 0; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; color: white; background: rgba(12,13,13,.38); backdrop-filter: blur(7px); cursor: pointer; transition: background .2s, transform .2s, color .2s; }
.favorite-button:hover { transform: scale(1.08); background: rgba(229,72,63,.88); }
.favorite-button.is-favorite { color: white; background: var(--red); border-color: var(--red); }
.favorite-button svg { width: 15px; height: 15px; fill: transparent; stroke: currentColor; stroke-width: 1.7; }
.favorite-button.is-favorite svg { fill: currentColor; }
.movie-info { display: flex; align-items: start; justify-content: space-between; gap: 8px; padding: 11px 0 0; }
.movie-info-main { min-width: 0; }
.movie-title { display: block; overflow: hidden; color: #f0ece5; font-size: 12px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; transition: color .2s; }
.movie-card:hover .movie-title { color: #fff; }
.movie-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 6px; color: #99948c; font-size: 9px; }
.movie-meta-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--red); }
.movie-language { flex-shrink: 0; padding: 3px 6px; border: 1px solid var(--soft-line); color: #aaa49a; font-size: 8px; }
.movie-summary { display: -webkit-box; overflow: hidden; margin: 8px 0 0; color: #97928a; font-size: 9px; line-height: 1.8; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; }
.catalog-footnote { display: flex; align-items: center; gap: 8px; margin-top: 28px; color: #86817a; font-size: 9px; }
.footnote-star { color: var(--gold); font-size: 14px; }
.empty-state { padding: 62px 15px 24px; text-align: center; }
.empty-state[hidden] { display: none; }
.empty-orbit { display: inline-grid; place-items: center; width: 55px; height: 55px; border: 1px solid var(--soft-line); border-radius: 50%; color: var(--gold); font-size: 29px; }
.empty-state h3 { margin: 17px 0 4px; font-size: 17px; }
.empty-state p { margin: 0 0 20px; color: var(--muted); font-size: 11px; }
.button-outline { min-height: 37px; border-color: var(--soft-line); color: var(--paper); background: transparent; font-size: 10px; }
.button-outline:hover { border-color: var(--red); }
.admin-section { padding-top: 70px; padding-bottom: 72px; }
.admin-section[hidden], .admin-form[hidden], #uploadProgress[hidden] { display: none !important; }
.admin-panel { margin-top: 24px; padding: clamp(18px, 4vw, 35px); border: 1px solid var(--soft-line); background: linear-gradient(145deg,rgba(255,255,255,.035),rgba(255,255,255,.012)); }
.admin-panel > p { color: #d7d0c6; font-size: 12px; line-height: 1.9; }
.admin-form { display: grid; gap: 16px; max-width: 680px; margin-top: 22px; }
.admin-form label { display: grid; gap: 8px; color: #d7d0c6; font-size: 11px; }
.admin-form input, .admin-form textarea, .admin-form select { width: 100%; min-height: 40px; padding: 9px 11px; border: 1px solid var(--soft-line); border-radius: 3px; color: var(--paper); background: #141617; font-size: 11px; }
.admin-form input[type="file"] { padding: 7px; }
.admin-form input[type="file"]::file-selector-button { margin-left: 10px; padding: 6px 10px; border: 0; color: white; background: #343332; cursor: pointer; }
.admin-form textarea { min-height: 90px; resize: vertical; }
.admin-form option { color: var(--paper); background: #202121; }
.admin-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.admin-form small, .admin-optional { color: #969087; font-size: 9px; }
.admin-public-note { max-width: 680px; margin-top: 22px; color: #9b948a !important; font-size: 10px !important; }
.upload-status { min-height: 16px; margin: 0; color: var(--gold) !important; font-size: 10px !important; }
#uploadProgress { width: 100%; height: 8px; accent-color: var(--red); }
.interlude { position: relative; overflow: hidden; background: #181919; border-top: 1px solid rgba(255,255,255,.04); border-bottom: 1px solid rgba(255,255,255,.04); }
.interlude::before { position: absolute; inset: 0; content: ''; opacity: .1; background: repeating-linear-gradient(135deg, transparent 0 34px, rgba(255,255,255,.045) 35px, transparent 36px 72px); }
.interlude-inner { position: relative; max-width: 1320px; min-height: 196px; display: flex; align-items: center; justify-content: space-between; padding: 27px 6.5%; margin: auto; }
.interlude-index { align-self: flex-start; margin-top: 31px; color: #a7a094; font-size: 9px; }
.interlude-inner p { margin: 0 10px; color: var(--red); font-size: clamp(20px, 3vw, 32px); font-weight: 700; letter-spacing: -.035em; }
.interlude-inner p span { color: var(--paper); }
.interlude-inner p i { color: var(--gold); font-style: normal; }
.interlude-star { align-self: flex-end; margin-bottom: 26px; color: var(--gold); font-size: 23px; }
.about-section { display: grid; grid-template-columns: .9fr 1.35fr; gap: 12%; padding-top: 86px; padding-bottom: 92px; }
.about-intro h2 { margin-top: 17px; font-size: clamp(28px, 3.4vw, 42px); line-height: 1.6; }
.about-features { display: grid; grid-template-columns: repeat(3,1fr); align-items: start; gap: 21px; padding-top: 6px; }
.feature-note { min-height: 156px; padding: 0 13px; border-right: 1px solid var(--soft-line); }
.feature-note:first-child { border-right-color: var(--red); }
.feature-number { color: var(--red); font: 10px var(--latin); }
.feature-note h3 { margin: 14px 0 9px; font-size: 15px; }
.feature-note p { max-width: 180px; margin: 0; color: #a09b92; font-size: 10px; line-height: 2; }
.site-footer { padding: 0 6.5%; border-top: 1px solid var(--soft-line); }
.footer-main, .footer-bottom { max-width: 1190px; margin: auto; display: flex; align-items: center; justify-content: space-between; }
.footer-main { min-height: 80px; }
.footer-brand .brand-name { font-size: 12px; }
.footer-brand .brand-subtitle { font-size: 5.8px; }
.footer-brand img { width: 29px; height: 29px; }
.footer-main > p { margin: 0; color: #89847c; font-size: 10px; }
.back-top { color: #aaa49a; font-size: 10px; transition: color .2s; }
.back-top span { margin-right: 6px; color: var(--red); }
.back-top:hover { color: white; }
.footer-bottom { min-height: 44px; border-top: 1px solid rgba(255,255,255,.055); color: #746f68; font-size: 9px; }
.footer-credit i { padding-right: 4px; color: var(--red); font-style: normal; }
.film-dialog, .player-dialog { width: min(860px, calc(100vw - 36px)); max-width: none; max-height: min(88vh, 800px); padding: 0; overflow: auto; border: 1px solid rgba(255,255,255,.13); border-radius: 6px; color: var(--paper); background: #171919; box-shadow: 0 26px 100px rgba(0,0,0,.7); }
.film-dialog::backdrop, .player-dialog::backdrop { background: rgba(5,6,6,.82); backdrop-filter: blur(7px); }
.dialog-close { position: absolute; z-index: 5; top: 13px; left: 13px; width: 35px; height: 35px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.23); border-radius: 50%; color: white; background: rgba(8,9,9,.55); font-size: 22px; line-height: 1; cursor: pointer; transition: background .2s; }
.dialog-close:hover { background: var(--red); }
.detail-layout { display: grid; grid-template-columns: 310px minmax(0,1fr); min-height: 425px; }
.detail-poster { position: relative; min-height: 425px; overflow: hidden; background: linear-gradient(150deg,#694a3a,#242526); }
.detail-poster img, .detail-poster .poster-fallback { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; }
.detail-poster::after { content: ''; position: absolute; inset: 50% 0 0; background: linear-gradient(0deg,rgba(10,11,11,.34),transparent); }
.detail-copy { display: flex; flex-direction: column; align-items: start; justify-content: center; padding: 46px 40px; }
.detail-original { margin-bottom: 8px; color: var(--gold); font: 11px var(--latin); direction: ltr; }
.detail-copy h2 { margin: 0; font-size: clamp(24px,4vw,36px); line-height: 1.5; }
.detail-tags { display: flex; flex-wrap: wrap; gap: 9px; margin: 13px 0 18px; }
.detail-chip { padding: 4px 8px; border: 1px solid var(--soft-line); color: #c1bbb1; font-size: 9px; }
.detail-stats { display: flex; flex-wrap: wrap; gap: 17px; align-items: center; color: #c1bbb1; font-size: 10px; }
.detail-rating { display: inline-flex; align-items: center; gap: 5px; color: var(--gold); font: 700 12px var(--latin); direction: ltr; }
.detail-copy > p { max-width: 440px; margin: 17px 0 24px; color: #aaa69e; font-size: 11px; line-height: 2.2; }
.detail-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.detail-actions .button { min-height: 40px; font-size: 10px; }
.detail-save { min-height: 40px; display: inline-flex; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid var(--soft-line); color: var(--paper); background: transparent; font-size: 10px; cursor: pointer; }
.detail-save:hover, .detail-save.is-favorite { color: #ff8179; border-color: rgba(229,72,63,.65); }
.detail-save svg { width: 15px; height: 15px; fill: transparent; stroke: currentColor; stroke-width: 1.7; }
.detail-save.is-favorite svg { fill: currentColor; }
.player-dialog { width: min(960px, calc(100vw - 30px)); overflow: visible; background: #090a0a; }
.video-frame { position: relative; aspect-ratio: 16 / 9; background: #080909; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-frame video { display: block; width: 100%; max-height: 75vh; aspect-ratio: 16 / 9; background: #080909; }
.player-caption { padding: 13px 17px; color: #d4cec5; font-size: 11px; }
.toast { position: fixed; z-index: 40; right: 50%; bottom: 26px; transform: translate(50%, 18px); padding: 10px 16px; border: 1px solid rgba(255,255,255,.14); border-radius: 4px; color: white; background: #242626; box-shadow: 0 8px 35px rgba(0,0,0,.28); font-size: 10px; opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
.toast.show { transform: translate(50%,0); opacity: 1; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (min-width: 1500px) { .hero { min-height: 680px; } }
@media (max-width: 1020px) {
  .header-main { height: 69px; padding: 0 4%; gap: 28px; }
  .main-nav { gap: 20px; }
  .section-shell { padding-right: 5%; padding-left: 5%; }
  .catalog-toolbar { align-items: flex-start; flex-direction: column; gap: 15px; }
  .catalog-filters { align-self: flex-start; }
  .movie-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 25px 15px; }
  .about-section { grid-template-columns: 1fr; gap: 30px; }
  .about-features { max-width: 700px; }
}
@media (max-width: 660px) {
  html { scroll-padding-top: 67px; }
  .header-main { height: 64px; padding: 0 19px; gap: 0; }
  .brand { gap: 7px; }
  .brand img { width: 31px; height: 31px; }
  .brand-name { font-size: 14px; }
  .brand-subtitle { font-size: 6px; letter-spacing: .12em; }
  .main-nav, .saved-shortcut, .search-box kbd { display: none; }
  .header-tools { gap: 5px; }
  .search-box { width: clamp(128px, 37vw, 220px); height: 36px; margin-left: 3px; }
  .search-box input { font-size: 10px; }
  .menu-toggle { display: grid; }
  .mobile-menu { display: flex; flex-direction: column; gap: 0; padding: 5px 22px 12px; border-top: 1px solid var(--soft-line); }
  .mobile-menu[hidden] { display: none; }
  .mobile-menu a { padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,.05); color: #d8d2c9; font-size: 12px; }
  .hero { min-height: 525px; margin: 9px 9px 0; }
  .hero-image { object-position: 37% center; }
  .hero-shade { background: linear-gradient(270deg,rgba(14,15,15,.89),rgba(14,15,15,.64) 58%,rgba(14,15,15,.18)),linear-gradient(0deg,rgba(13,14,14,.46),transparent 35%); }
  .hero-content { padding: 89px 8% 80px; }
  .hero h1 { margin-top: 20px; font-size: clamp(43px,11vw,61px); }
  .hero-content > p { max-width: 310px; font-size: 11px; }
  .hero-meta { flex-wrap: wrap; gap: 7px 11px; margin-top: 33px; font-size: 8px; }
  .hero-caption { right: 8%; left: auto; bottom: 22px; font-size: 8px; }
  .hero-count { left: 5%; top: 19px; }
  .section-shell { padding-right: 21px; padding-left: 21px; }
  .catalog-section { padding-top: 64px; padding-bottom: 57px; }
  .admin-section { padding-top: 50px; padding-bottom: 50px; }
  .admin-form { gap: 12px; }
  .admin-form-row { grid-template-columns: 1fr; gap: 12px; }
  .section-heading h2 { font-size: 27px; }
  .section-subtitle { max-width: 245px; font-size: 10px; line-height: 1.8; }
  .catalog-counter { flex-direction: column; align-items: center; gap: 0; font-size: 9px; }
  .catalog-counter span:first-child { font-size: 18px; }
  .catalog-toolbar { margin-top: 25px; gap: 13px; }
  .collection-tabs { max-width: calc(100vw - 42px); width: 100%; gap: 20px; }
  .collection-tab { font-size: 10px; }
  .catalog-filters { width: 100%; }
  .filter-field { min-height: 34px; }
  .filter-field select { max-width: none; font-size: 9px; }
  .catalog-filters .filter-field:first-child { flex: 1.2; }
  .catalog-filters .year-filter { flex: 1; }
  .catalog-filters select { width: 100%; }
  .movie-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px 12px; padding-top: 19px; }
  .poster-frame { aspect-ratio: 2 / 2.82; }
  .poster-badge { top: 7px; right: 7px; padding: 4px 6px; font-size: 8px; }
  .favorite-button { top: 6px; left: 6px; width: 29px; height: 29px; }
  .movie-info { gap: 5px; padding-top: 9px; }
  .movie-title { font-size: 10px; }
  .movie-meta { gap: 5px; margin-top: 5px; font-size: 8px; }
  .movie-language { font-size: 7px; padding: 3px 4px; }
  .movie-summary { font-size: 8px; line-height: 1.7; }
  .interlude-inner { min-height: 155px; padding: 20px 20px; }
  .interlude-index { margin-top: 18px; font-size: 8px; }
  .interlude-inner p { max-width: 60%; font-size: 20px; line-height: 1.9; }
  .interlude-star { margin-bottom: 18px; font-size: 18px; }
  .about-section { padding-top: 61px; padding-bottom: 64px; }
  .about-intro h2 { font-size: 30px; }
  .about-features { gap: 5px; }
  .feature-note { min-height: 164px; padding: 0 8px; }
  .feature-number { font-size: 9px; }
  .feature-note h3 { font-size: 13px; margin-top: 12px; }
  .feature-note p { font-size: 9px; line-height: 1.95; }
  .site-footer { padding: 0 20px; }
  .footer-main { min-height: 76px; gap: 10px; }
  .footer-brand .brand-name { font-size: 11px; }
  .footer-brand .brand-subtitle { font-size: 5.3px; }
  .footer-main > p { display: none; }
  .back-top { font-size: 9px; }
  .footer-bottom { min-height: 43px; font-size: 8px; }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-poster { min-height: 0; aspect-ratio: 16 / 9; }
  .detail-copy { padding: 24px 22px 27px; }
  .detail-copy h2 { font-size: 25px; }
  .detail-copy > p { margin: 12px 0 19px; font-size: 10px; }
  .detail-tags { margin: 9px 0 13px; }
  .film-dialog { max-height: 86vh; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
