/* a2d 2026-12-06: «кино» на главной и в регистрации (js/wfilm.js). Фон — ролик с драконом (media/), гамма заката:
   фиолет, роза, жар, золото. Всё под body.film — остальные страницы сайта (site.css) не меняются. */

body.film {
  --ink: #0b0416; --plum: #1c0c30; --gold: #ffcf73; --gold-hi: #ffe9b0; --gold-lo: #b0701a; --text: #fff4ea; --mute: #cbb5cc; --dim: #9a83a6;
  --fhead: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  background: var(--ink);
}
body.film main#page { display: block; }

/* ---------- верхняя полоса поверх ролика ---------- */
body.film .bar { position: absolute; left: 0; right: 0; top: 0; z-index: 20; background: linear-gradient(#0b0416c0, #0b041600); border: 0; box-shadow: none; padding: 0 28px; text-shadow: 0 1px 4px #000c; }
body.film .bar .logo { display: none; }
body.film .nav { justify-content: flex-end; }
body.film .nav a { color: #fff; font-weight: 600; opacity: .92; }
body.film .nav a:hover { opacity: 1; color: var(--gold-hi); }
body.film .online { align-self: center; flex: none; display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 600; color: #fff; }
body.film .online i { width: 9px; height: 9px; border-radius: 50%; background: #62e36b; box-shadow: 0 0 0 0 #62e36b88; animation: fping 2s infinite; }
@keyframes fping { 70% { box-shadow: 0 0 0 9px #62e36b00; } 100% { box-shadow: 0 0 0 0 #62e36b00; } }
body.film .online b { color: var(--gold-hi); font-size: 16px; }

/* ---------- сцена ---------- */
body.film .scene { position: relative; min-height: max(100vh, 700px); overflow: hidden; isolation: isolate; display: flex; align-items: center; justify-content: flex-end;
  padding: 84px 5vw 72px; background: #2a1438; }
body.film .scene .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; z-index: 0; display: block; }
body.film .scene::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, transparent 58%, #0b041670 100%), linear-gradient(transparent 50%, #0b041666 72%, #0b0416 100%); }
body.film .brand { position: absolute; z-index: 3; left: 5vw; bottom: 11vh; width: min(600px, 42vw); display: flex; flex-direction: column; align-items: flex-start; text-decoration: none; }
body.film .logo3d { width: 100%; height: auto; display: block; overflow: visible; animation: frise 1.1s .2s cubic-bezier(.2, .7, .2, 1) both; }
body.film .logo3d .shine { mix-blend-mode: overlay; }
@keyframes frise { from { opacity: 0; transform: translateY(14px) scale(.96); filter: blur(6px); } }
body.film .motto { display: flex; align-items: center; gap: 14px; white-space: nowrap; margin: -6px 0 0 6px; font: 700 14px/1 var(--fhead); letter-spacing: .34em; text-transform: uppercase;
  color: var(--gold-hi); text-shadow: 0 2px 8px #000, 0 0 2px #000; animation: fup .9s .35s cubic-bezier(.2, .7, .2, 1) both; }
body.film .motto::after { content: ""; width: 70px; height: 1px; background: linear-gradient(to left, transparent, var(--gold-hi)); }
body.film .brand .tag { margin: 14px 0 0 6px; max-width: 460px; font-size: 17px; line-height: 1.45; color: #fff1e4; text-shadow: 0 2px 10px #000, 0 0 2px #000; animation: fup .9s .45s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes fup { from { opacity: 0; transform: translateY(24px); } }
body.film .side { position: relative; z-index: 4; width: min(390px, 100%); animation: fup .9s .6s cubic-bezier(.2, .7, .2, 1) both; }
body.film.regf .side { width: min(460px, 100%); }

/* ---------- панель входа и регистрации ---------- */
body.film .side .card { position: relative; padding: 24px 28px; border-radius: 8px; background: linear-gradient(#1c0c30c8, #0d0619e0); border: 1px solid #ffcf738c;
  box-shadow: 0 0 0 1px #000a, 0 0 0 5px #ffcf7314, 0 30px 80px #000c, 0 0 60px #ff7a4a22, inset 0 1px 0 #ffffff14; backdrop-filter: blur(10px); }
body.film .side .card::before { content: ""; position: absolute; left: 50%; top: -8px; width: 14px; height: 14px; margin-left: -7px; transform: rotate(45deg);
  background: linear-gradient(135deg, var(--gold-hi), var(--gold-lo)); box-shadow: 0 0 14px #ffcf73aa; }
body.film .side .form > h1, body.film .side .form > h2 { margin: 0 0 14px; display: flex; align-items: center; gap: 12px; font: 700 22px/1.15 var(--fhead); color: var(--gold-hi); letter-spacing: .04em; text-align: center; }
body.film .side .form > h1::before, body.film .side .form > h1::after, body.film .side .form > h2::before, body.film .side .form > h2::after { content: ""; flex: 1; min-width: 14px; height: 1px; background: linear-gradient(to right, transparent, #ffcf7388); }
body.film .side .form > h1::after, body.film .side .form > h2::after { transform: scaleX(-1); }
body.film .side .form .lead { margin: -4px 0 16px; color: var(--mute); font-size: 14px; text-align: center; }
body.film .side .fld { margin-bottom: 12px; }
body.film .side .fld > label:not(.agree), body.film .side .fld > label[id] { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
body.film .side .fld input:not([type=radio]):not([type=checkbox]), body.film .side .fld select { min-height: 44px; border-radius: 4px; border-color: #4a2a5e; background: #0a0414e0; color: var(--text); font-size: 16px;
  box-shadow: inset 0 2px 6px #000a; }
body.film .side .fld input:focus, body.film .side .fld select:focus { border-color: var(--gold); box-shadow: inset 0 2px 6px #000a, 0 0 0 3px #ffcf7333; }
body.film .side .fld .note { color: var(--dim); }
body.film .side .msg { background: #5a14244d; border-color: #b0405a; color: #ffd0d8; }
body.film .side .btn { border-radius: 4px; transition: filter .15s, transform .15s; }
body.film .side .btn:hover { filter: brightness(1.1); transform: translateY(-1px); }
body.film .side .btn:active { transform: translateY(1px); }
body.film .side .btn.main { min-height: 48px; color: #2a1703; border: 1px solid #fff0c4; font: 700 16px var(--fhead); letter-spacing: .28em; text-transform: uppercase; text-shadow: 0 1px 0 #ffe9b088;
  background: linear-gradient(#ffeaa5, #ffc95c 45%, #e0952a 55%, #f6c25e); box-shadow: 0 0 0 1px #000a, 0 8px 22px #000a, 0 0 22px #ffb54d55; }
body.film .btn.blood { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; width: 100%; padding: 16px 14px 14px; border-radius: 4px; text-decoration: none; cursor: pointer;
  border: 1px solid #ff9a8a; color: #fff7e0; font: 700 22px/1 var(--fhead); letter-spacing: .14em; text-transform: uppercase; text-shadow: 0 2px 0 #4a0508;
  background: linear-gradient(#ff6a5a, #d8323a 48%, #a8141e 52%, #c8202a); box-shadow: 0 0 0 3px #0008, inset 0 1px 0 #ffffff70, 0 0 36px #ff4a3a80; animation: fbeat 2.4s ease-in-out infinite; }
body.film .btn.blood small { font: 600 12px/1 var(--body); letter-spacing: .04em; text-transform: none; color: #ffe0d4; text-shadow: none; }
body.film .btn.blood:hover { filter: brightness(1.1); color: #fff; }
@keyframes fbeat { 50% { box-shadow: 0 0 0 3px #0008, inset 0 1px 0 #ffffff70, 0 0 60px #ff6a3fc0; } }
body.film .side .or { display: flex; align-items: center; gap: 12px; margin: 20px 0 14px; color: var(--mute); font-size: 13px; }
body.film .side .or::before, body.film .side .or::after { content: ""; flex: 1; height: 1px; background: #4a2a5e; }
body.film .side .more { justify-content: center; font-size: 13px; }
body.film .side .more a { color: var(--mute); }
body.film .side .more a:hover { color: var(--gold-hi); }
body.film .side .pick span { padding: 11px 8px; border-radius: 4px; border-color: #4a2a5e; background: #0a0414e0; color: var(--text); font: 700 15px var(--fhead); letter-spacing: .05em; }
body.film .side .pick input:checked + span { border-color: var(--gold); background: linear-gradient(#3e2410, #1f1208); color: var(--gold-hi); box-shadow: 0 0 0 3px #ffcf7322, 0 0 18px #ffcf7333; }
body.film .side .cap img { border-color: #4a2a5e; }
body.film .side .agree { font-size: 13px; color: #d9c6d6; }
body.film .side .agree input { accent-color: var(--gold); }

/* ---------- стрелка к новостям, звук ---------- */
body.film .cue { position: absolute; z-index: 4; left: 50%; bottom: 16px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 4px 10px; border: 0; background: none; cursor: pointer; color: var(--gold-hi); font: 700 13px var(--fhead); letter-spacing: .2em; text-transform: uppercase; text-shadow: 0 2px 8px #000; }
body.film .cue::after { content: ""; width: 12px; height: 12px; border: solid var(--gold-hi); border-width: 0 2px 2px 0; transform: rotate(45deg); animation: fbob 1.6s ease-in-out infinite; }
@keyframes fbob { 50% { transform: translateY(5px) rotate(45deg); } }
body.film .sound { position: absolute; z-index: 5; right: 28px; bottom: 20px; display: flex; align-items: center; gap: 8px; padding: 9px 14px 9px 11px; border-radius: 999px;
  border: 1px solid #ffffff40; background: #0b041680; color: #fff; font: 600 13px var(--body); cursor: pointer; backdrop-filter: blur(6px); }
body.film .sound:hover { border-color: var(--gold); color: var(--gold-hi); }
body.film .sound svg { width: 18px; height: 18px; flex: none; }
body.film .sound .on { display: none; }
body.film .sound[aria-pressed="true"] .on { display: block; }
body.film .sound[aria-pressed="true"] .off { display: none; }

/* ---------- «Главные новости» ---------- */
body.film .hn-wait { min-height: 240px; }
body.film .hnews { position: relative; padding: 64px 5vw 56px; background: radial-gradient(ellipse 70% 60% at 50% 0, #3a124d 0, transparent 70%), linear-gradient(#0b0416, #120726 60%, #0b0416); }
body.film .hn-in { max-width: 1240px; margin: 0 auto; }
body.film .hn-head { display: flex; align-items: baseline; gap: 18px; margin-bottom: 26px; }
body.film .hn-head h2 { margin: 0; font: 700 clamp(30px, 3.2vw, 44px)/1.1 var(--fhead); color: #ffcf73; background: linear-gradient(#fff3c8, #ffcf73 50%, #e88a3a); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
body.film .hn-head .all { margin-left: auto; color: var(--gold); font-weight: 700; text-decoration: none; letter-spacing: .03em; white-space: nowrap; }
body.film .hn-head .all:hover { color: var(--gold-hi); }
body.film .ngrid { display: grid; gap: 22px; }
body.film .ngrid.n3 { grid-template-columns: 1.35fr 1fr; grid-template-rows: 1fr 1fr; }
body.film .ngrid.n2 { grid-template-columns: 1fr 1fr; }
body.film .ngrid.n1 .nc { flex-direction: row; }
body.film .ngrid.n1 .nc .pic { width: 56%; }
body.film .nc { position: relative; display: flex; flex-direction: column; border-radius: 10px; overflow: hidden; background: #1a0b2a; border: 1px solid #ffcf7326; color: inherit; text-decoration: none;
  box-shadow: 0 14px 40px #0009; transition: transform .25s, border-color .25s, box-shadow .25s; }
body.film .nc:hover { transform: translateY(-4px); border-color: #ffcf7380; box-shadow: 0 24px 60px #000b, 0 0 40px #ff7a4a33; color: inherit; }
body.film .ngrid.n3 .nc.big { grid-row: 1 / span 2; }
body.film .ngrid.n3 .nc:not(.big) { flex-direction: row; }
body.film .nc .pic { position: relative; overflow: hidden; flex: none; aspect-ratio: 16 / 9; }
body.film .ngrid.n3 .nc:not(.big) .pic { width: 46%; aspect-ratio: auto; }
body.film .nc .thumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s; }
body.film .nc:hover .thumb { transform: scale(1.05); }
body.film .nc .cb { display: flex; flex-direction: column; gap: 8px; padding: 18px 22px 20px; flex: 1; background: linear-gradient(#1a0b2a, #12071f); }
body.film .nc .meta { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--dim); }
body.film .nc .tag { padding: 4px 10px; border-radius: 999px; font: 700 11px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; color: #1a0b05; background: linear-gradient(#ffe08a, #ffb347); }
body.film .nc h3 { margin: 0; font: 700 21px/1.2 var(--fhead); color: #fff3dc; overflow-wrap: anywhere; }
body.film .nc.big h3 { font-size: clamp(24px, 2.2vw, 30px); }
body.film .nc p { margin: 0; color: #d9c6d6; font-size: 15px; }
body.film .nc .go { margin-top: auto; padding-top: 6px; color: var(--gold); font-weight: 700; font-size: 14px; }
body.film .foot { background: var(--ink); border-top: 1px solid #2a1638; }

/* ---------- невысокий экран компьютера ---------- */
@media (min-width: 900px) and (max-height: 820px) {
  body.film .brand { bottom: 8vh; width: min(520px, 38vw); }
  body.film .brand .tag { font-size: 15px; margin-top: 8px; }
  body.film .motto { font-size: 12px; letter-spacing: .24em; }
  body.film .side .card { padding: 18px 26px; }
  body.film .side .fld { margin-bottom: 8px; }
  body.film .side .fld input:not([type=radio]):not([type=checkbox]), body.film .side .fld select { min-height: 40px; }
  body.film .btn.blood { padding: 13px 12px 11px; font-size: 20px; }
  body.film .side .or { margin: 12px 0 10px; }
  body.film .cue { display: none; }
}

/* ---------- телефон и узкое окно ---------- */
@media (max-width: 899px) {
  body.film .bar { padding: 0 12px; }
  body.film .nav { justify-content: flex-start; }
  body.film .scene { display: block; min-height: 0; padding: 28vh 16px 64px; }
  body.film .scene .bg { height: 62vh; object-position: 50% 30%; }
  body.film .scene::after { background: linear-gradient(transparent 0, transparent 34vh, #0b0416cc 52vh, #0b0416 62vh); }
  body.film .brand { position: relative; left: auto; bottom: auto; width: min(460px, 100%); margin: 0 auto; align-items: center; text-align: center; }
  body.film .motto { margin-left: 0; letter-spacing: .12em; font-size: 11px; white-space: nowrap; }
  body.film .motto::before { content: ""; width: 22px; height: 1px; background: linear-gradient(to right, transparent, var(--gold-hi)); }
  body.film .motto::after { width: 22px; }
  body.film .brand .tag { margin-left: 0; font-size: 15px; }
  body.film .side, body.film.regf .side { margin: 24px auto 0; }
  body.film.regf .scene { padding-top: 24vh; }
  body.film .sound { top: 92px; bottom: auto; right: 12px; padding: 7px 11px 7px 9px; }
  body.film .cue { position: relative; left: auto; transform: none; margin: 18px auto 0; }
  body.film .hnews { padding: 44px 16px 40px; }
  body.film .hn-head { flex-wrap: wrap; }
  body.film .hn-head h2 { font-size: 32px; }
  body.film .ngrid.n3, body.film .ngrid.n2 { grid-template-columns: 1fr; grid-template-rows: none; }
  body.film .ngrid.n3 .nc.big { grid-row: auto; }
  body.film .ngrid.n3 .nc:not(.big) { flex-direction: column; }
  body.film .ngrid.n3 .nc:not(.big) .pic { width: 100%; aspect-ratio: 16 / 9; }
  body.film .ngrid.n1 .nc { flex-direction: column; }
  body.film .ngrid.n1 .nc .pic { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  body.film *, body.film *::before, body.film *::after { animation: none !important; transition: none !important; }
}
