/* Кинозал — экраны: главная, каталог, страница фильма, кабинет, вход, 404 */
main.enter { animation: page-in .5s var(--ease) both; }
@keyframes page-in { from { opacity: 0; transform: translateY(10px); } }

/* ---------- главная ---------- */
.hero { position: relative; min-height: min(100svh, 900px); display: grid; align-items: end; overflow: hidden; isolation: isolate; padding: calc(var(--topbar-h) + 56px) 0 clamp(44px, 7vw, 96px); }
.hero-bg { position: absolute; inset: -2%; z-index: -3; background: url(../img/hero.webp) 50% 30% / cover; animation: drift 46s ease-in-out infinite alternate; }
@keyframes drift { to { transform: scale(1.07) translate(-1.2%, .8%); } }
.hero-shade { position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg, rgba(10, 4, 7, .94) 0, rgba(10, 4, 7, .66) 42%, rgba(10, 4, 7, .12) 78%), linear-gradient(0deg, var(--ink) 0, rgba(10, 4, 7, .55) 20%, transparent 46%), linear-gradient(180deg, rgba(10, 4, 7, .7), transparent 22%); }
.hero-bulbs { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 360px); gap: clamp(28px, 5vw, 80px); align-items: end; }
.hero h1 { font-size: clamp(3.4rem, 10.5vw, 9rem); font-weight: 900; line-height: .9; letter-spacing: -.025em; background: linear-gradient(180deg, #fff6df 10%, var(--gold-hi) 55%, #c28a32 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 6px 30px rgba(217, 164, 65, .28)); animation: rise .9s .55s var(--ease) both; }
.hero-lead { margin-top: clamp(18px, 2.4vw, 30px); max-width: 52ch; font-size: clamp(1.02rem, 1.5vw, 1.2rem); color: var(--paper-2); line-height: 1.6; animation: rise .9s .7s var(--ease) both; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(22px, 3vw, 36px); animation: rise .9s .85s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
.pick { position: relative; display: grid; gap: 4px; padding: 26px 14px 16px; color: inherit; text-decoration: none; background: linear-gradient(180deg, rgba(42, 13, 24, .92), rgba(18, 6, 11, .94)); border: 1px solid var(--line-strong); box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .9), 0 0 60px -10px rgba(217, 164, 65, .2); transition: transform .5s var(--ease), box-shadow .5s; animation: rise .9s 1s var(--ease) both; }
.pick:hover { transform: translateY(-6px) rotate(-.6deg); color: inherit; }
.pick::before, .pick::after { content: ""; position: absolute; left: 10px; right: 10px; height: 14px; background: radial-gradient(circle, #fff3c9 0 1.6px, #ffd47a 2.6px, rgba(255, 190, 80, .35) 4.5px, transparent 7px) 0 50% / 26px 14px repeat-x; filter: drop-shadow(0 0 4px rgba(255, 200, 90, .8)); animation: bulb 1.1s steps(1) infinite; }
.pick::before { top: 6px; } .pick::after { bottom: 6px; animation-delay: -.55s; }
.pick-label { font: 500 .78rem var(--font-marquee); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); text-align: center; margin-bottom: 6px; }
.pick-frame { display: block; aspect-ratio: 16 / 11; overflow: hidden; border: 1px solid rgba(217, 164, 65, .35); }
.pick-frame img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.7) contrast(1.15) sepia(.4); transition: transform 1s var(--ease), filter .5s; }
.pick:hover .pick-frame img { transform: scale(1.06); filter: grayscale(.2) contrast(1.1) sepia(.3); }
.pick-title { margin-top: 12px; font: 800 1.55rem/1.1 var(--font-display); text-align: center; text-wrap: balance; }
.pick-meta { text-align: center; color: var(--paper-2); font-size: .9rem; }
.pick-go { display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin: 12px auto 4px; padding: 0 20px; min-height: 42px; border: 1px solid var(--gold); color: var(--gold-hi); border-radius: 2px; font-weight: 600; transition: background .2s, color .2s; }
.pick:hover .pick-go { background: var(--gold); color: #2a1604; }
.home-rails { padding-top: clamp(36px, 5vw, 64px); }
.curtain-plate { position: fixed; inset: 0; z-index: 3; display: grid; place-items: center; pointer-events: none; animation: plate-out .8s .7s ease forwards; }
.curtain-plate span { font: 900 clamp(3rem, 10vw, 7rem) var(--font-display); color: var(--gold-hi); text-shadow: 0 4px 40px rgba(0, 0, 0, .9); }
.curtain-plate i { font-style: italic; color: var(--gold); }
@keyframes plate-out { to { opacity: 0; transform: scale(1.06); } }
.curtains.intro .curtain-plate { position: absolute; }
@media (max-width: 900px) { .hero-inner { grid-template-columns: 1fr; } .hero { min-height: 0; } .pick { max-width: 360px; } .hero-shade { background: linear-gradient(0deg, var(--ink) 0, rgba(10, 4, 7, .72) 40%, rgba(10, 4, 7, .35)); } }

.tv-promo { position: relative; padding: clamp(48px, 7vw, 96px) 0; background: linear-gradient(90deg, rgba(10, 4, 7, .96), rgba(10, 4, 7, .55)), url(../img/tv-room.webp) center / cover; border-block: 1px solid var(--line); overflow: hidden; }
.tv-promo-in { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.tv-promo h2 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 900; }
.tv-promo p { margin: 14px 0 24px; max-width: 46ch; color: var(--paper-2); font-size: 1.05rem; }
.mini-crt { position: relative; width: clamp(200px, 24vw, 300px); aspect-ratio: 4 / 3; border-radius: 22px / 26px; padding: 12px; background: linear-gradient(145deg, #5b3a22, #2a170b 60%, #3e2514); box-shadow: 0 0 0 2px #120805, 0 26px 50px -16px #000, inset 0 2px 0 rgba(255, 220, 170, .22); transform: rotate(2deg); }
.mini-crt canvas { width: 100%; height: 100%; border-radius: 16px / 20px; filter: contrast(1.15) brightness(.85); box-shadow: inset 0 0 30px rgba(0, 0, 0, .9); }
.mini-crt::after { content: ""; position: absolute; inset: 12px; border-radius: 16px / 20px; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .28) 0 1px, transparent 1px 3px), radial-gradient(ellipse at 30% 20%, rgba(255, 255, 255, .16), transparent 45%); pointer-events: none; }
.mini-osd { position: absolute; z-index: 2; top: 24px; right: 28px; font: 400 2.2rem/1 var(--font-digits); color: var(--phosphor); text-shadow: 0 0 8px rgba(157, 255, 176, .8); }
@media (max-width: 760px) { .tv-promo-in { grid-template-columns: 1fr; } .mini-crt { justify-self: start; } }

/* ---------- каталог ---------- */
.cat-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.cat-tabs button { position: relative; flex: none; white-space: nowrap; min-height: 46px; padding: 0 18px; color: var(--paper-2); font-weight: 500; transition: color .2s; }
.cat-tabs button::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; background: var(--gold); transform: scaleX(0); transition: transform .35s var(--ease); }
.cat-tabs button[aria-selected="true"] { color: var(--paper); }
.cat-tabs button[aria-selected="true"]::after { transform: scaleX(1); }
.cat-tabs .n { margin-left: 6px; font-size: .8rem; color: var(--paper-3); }
.filters { display: grid; gap: 14px; margin-bottom: 26px; }
.filters-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; align-items: end; }
.filters-toggle { display: none; justify-self: start; }
@media (max-width: 800px) { .filters-toggle { display: inline-flex; } .filters-row:not(.open) { display: none; } }
.genre-chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; scrollbar-width: thin; scrollbar-color: var(--oxblood) transparent; }
.genre-chips .chip { flex: none; }
.found { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; color: var(--paper-2); }
.found strong { color: var(--paper); }
.more-wrap { display: grid; place-items: center; margin-top: 36px; }

/* ---------- страница фильма ---------- */
.film { position: relative; isolation: isolate; }
.film-backdrop { position: absolute; inset: 0 0 auto 0; height: min(780px, 90vh); z-index: -1; overflow: hidden; }
.film-backdrop::before { content: ""; position: absolute; inset: -40px; background: var(--bd) center / cover; filter: blur(34px) saturate(.7) brightness(.55) sepia(.4); transform: scale(1.1); }
.film-backdrop::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 4, 7, .55), rgba(10, 4, 7, .75) 55%, var(--ink)); }
.stage { position: relative; width: min(1180px, 100%); margin: 0 auto; aspect-ratio: 16 / 9; background: #000; border-radius: 2px; box-shadow: 0 0 0 1px var(--line-strong), 0 40px 80px -30px #000, 0 0 90px -20px rgba(217, 164, 65, .25); z-index: 5; }
.stage-wrap { padding: calc(var(--topbar-h) + 22px) 0 0; }
.film-back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-bottom: 4px; color: var(--paper-2); text-decoration: none; font-size: .92rem; }
.film-back:hover { color: var(--gold-hi); }
.film-grid { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); padding: clamp(32px, 5vw, 56px) 0; align-items: start; }
.film-poster .card { max-width: 250px; }
.film-poster .poster { transition: none; }
.film-info h1 { font-size: clamp(2rem, 4.4vw, 3.6rem); font-weight: 900; }
.film-orig { margin-top: 6px; color: var(--paper-2); font: italic 400 1.15rem var(--font-display); }
.film-meta { display: flex; flex-wrap: wrap; gap: 8px 10px; margin: 18px 0; align-items: center; color: var(--paper-2); }
.film-meta .dot { color: var(--oxblood); }
.film-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 26px; }
.film-actions .btn[aria-pressed="true"] { background: rgba(217, 164, 65, .18); border-color: var(--gold-hi); color: var(--gold-hi); }
.film-actions .btn[aria-pressed="true"] .icon { fill: currentColor; }
.descr { max-width: 68ch; color: var(--paper); font-size: 1.03rem; line-height: 1.7; white-space: pre-line; }
.descr-note { margin-top: 10px; color: var(--paper-3); font-size: .85rem; }
.panel { margin-top: 28px; padding: 20px 22px; background: rgba(42, 13, 24, .45); border: 1px solid var(--line); border-radius: 3px; max-width: 760px; }
.panel h3 { font: 700 1.1rem var(--font-display); font-style: italic; margin-bottom: 12px; }
.rate { display: grid; gap: 12px; }
.rate .row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.license dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 0; font-size: .92rem; }
.license dt { color: var(--paper-3); } .license dd { margin: 0; color: var(--paper); } .license dd a { display: inline-flex; align-items: center; gap: 6px; }
.license .small { margin-top: 12px; font-size: .84rem; color: var(--paper-3); }
.report-link { color: var(--paper-3); font-size: .88rem; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.report-link:hover { color: #ffa3b3; }
.related { padding-bottom: 40px; }
@media (max-width: 800px) { .film-grid { grid-template-columns: 1fr; } .film-poster { display: none; } .stage-wrap { padding-top: calc(var(--topbar-h) + 8px); } }

/* ---------- «Моё» ---------- */
.me-head { display: grid; gap: 24px; margin-bottom: 30px; }
.statline { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.stat { padding: 16px 18px; border: 1px solid var(--line); background: rgba(42, 13, 24, .4); border-radius: 3px; }
.stat b { display: block; font: 800 2rem/1.1 var(--font-display); color: var(--gold-hi); }
.stat span { color: var(--paper-2); font-size: .88rem; }
.tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.tabs button { position: relative; flex: none; white-space: nowrap; min-height: 46px; padding: 0 16px; color: var(--paper-2); font-weight: 500; }
.tabs button[aria-selected="true"] { color: var(--paper); }
.tabs button::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; background: var(--gold); transform: scaleX(0); transition: transform .35s var(--ease); }
.tabs button[aria-selected="true"]::after { transform: scaleX(1); }
.rated-list { display: grid; gap: 12px; }
.rated { display: grid; grid-template-columns: 90px 1fr; gap: 16px; padding: 12px; border: 1px solid var(--line); border-radius: 3px; background: rgba(42, 13, 24, .3); align-items: start; }
.rated img { width: 90px; aspect-ratio: 180 / 124; object-fit: cover; filter: grayscale(.8) sepia(.4); }
.rated h3 { font: 700 1.1rem var(--font-display); }
.rated .stars button { width: 26px; height: 26px; } .rated .stars .icon { width: 18px; height: 18px; }
.rated p { color: var(--paper-2); font-size: .92rem; margin-top: 4px; }
.ch-list { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.profile-form { display: grid; gap: 16px; max-width: 420px; }
.profile-forms { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

/* ---------- вход ---------- */
.login { min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 520px); }
.login-art { position: relative; background: linear-gradient(0deg, rgba(10, 4, 7, .85), rgba(10, 4, 7, .1) 50%), url(../img/login-bg.webp) 50% 20% / cover; min-height: 320px; display: flex; align-items: flex-end; padding: clamp(28px, 5vw, 64px); }
.login-art blockquote { margin: 0; max-width: 24ch; font: italic 700 clamp(1.8rem, 3.4vw, 3rem)/1.1 var(--font-display); color: var(--paper); text-shadow: 0 4px 30px #000; }
.login-form { display: grid; align-content: center; gap: 22px; padding: calc(var(--topbar-h) + 20px) clamp(24px, 5vw, 64px) 60px; background: linear-gradient(180deg, var(--wine-900), var(--ink)); }
.login-form h1 { font-size: clamp(2rem, 3.4vw, 2.8rem); font-weight: 900; }
.login-form form { display: grid; gap: 16px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line-strong); border-radius: 3px; overflow: hidden; }
.seg button { min-height: 46px; font-weight: 600; color: var(--paper-2); transition: background .2s, color .2s; }
.seg button[aria-selected="true"] { background: var(--gold); color: #2a1604; }
@media (max-width: 860px) { .login { grid-template-columns: 1fr; } .login-art { min-height: 220px; order: -1; } .login-form { padding-top: 32px; } }

/* ---------- 404 ---------- */
.nf { min-height: 80vh; display: grid; place-items: center; text-align: center; padding: calc(var(--topbar-h) + 30px) 20px 60px; }
.nf h1 { font-size: clamp(5rem, 20vw, 12rem); font-weight: 900; line-height: .9; background: linear-gradient(180deg, var(--gold-hi), var(--oxblood)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nf p { margin: 12px 0 26px; color: var(--paper-2); font-size: 1.1rem; }
