/* Casfilm — dark cinema-hall theme: projector light, amber marquee, ticket stubs, film strips. */

@font-face { font-family: "Oswald"; font-style: normal; font-display: swap; font-weight: 300 700;
  src: url(/assets/fonts/oswald-cyrillic-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Oswald"; font-style: normal; font-display: swap; font-weight: 300 700;
  src: url(/assets/fonts/oswald-latin-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Golos Text"; font-style: normal; font-display: swap; font-weight: 400 900;
  src: url(/assets/fonts/golos-text-cyrillic-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Golos Text"; font-style: normal; font-display: swap; font-weight: 400 900;
  src: url(/assets/fonts/golos-text-latin-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #0b0a09;
  --panel: #14120f;
  --panel-2: #1c1915;
  --line: #2d2922;
  --line-2: #403a30;
  --text: #f0e9dd;
  --soft: #d6cdbf;
  --muted: #9a9183;
  --amber: #f5a524;
  --amber-2: #ffc766;
  --amber-glow: rgba(245, 165, 36, .35);
  --curtain: #5e1414;
  --red: #e5484d;
  --radius: 10px;
  --wrap: 1200px;
  --narrow: 740px;
  --font-body: "Golos Text", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: "Oswald", "Roboto Condensed", "Arial Narrow", system-ui, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.7 var(--font-body); overflow-x: hidden; }
/* Film grain over everything (very light). */
body::after { content: ""; position: fixed; inset: -50%; pointer-events: none; z-index: 100; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite; }
@keyframes grain { 0%,100% { transform: translate(0,0); } 20% { transform: translate(-3%,2%); } 40% { transform: translate(2%,-3%); } 60% { transform: translate(-2%,-2%); } 80% { transform: translate(3%,3%); } }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--amber); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .15s; }
a:hover { color: var(--amber-2); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--amber); color: #000; }

h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.1; letter-spacing: .005em; }
h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); margin: .15em 0 .35em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 1.8em 0 .55em; }
h3 { font-size: 1.25rem; margin: 1.4em 0 .4em; }
[id] { scroll-margin-top: 84px; }
@media (max-width: 720px) { [id] { scroll-margin-top: 124px; } }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.narrow { max-width: var(--narrow); }
.muted { color: var(--muted); }
.eyebrow { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .18em; font-size: .78rem; color: var(--amber); margin: 0; }
.skip { position: absolute; left: -999px; top: 0; background: var(--amber); color: #000; padding: 8px 12px; z-index: 200; }
.skip:focus { left: 8px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(11, 10, 9, .86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 22px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 700; font-size: 1.55rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text); text-decoration: none; }
.brand-mark { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--amber); color: #0b0a09; font-size: 1.15rem; letter-spacing: 0; box-shadow: 0 0 18px var(--amber-glow); }
.brand:hover { color: var(--amber-2); }
.nav { flex: 1; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; white-space: nowrap; }
.nav a { position: relative; display: block; padding: 10px 12px; color: var(--soft); text-decoration: none; font-family: var(--font-head); font-size: 1.02rem; letter-spacing: .03em; }
.nav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; background: var(--amber); transform: scaleX(0); transform-origin: left; transition: transform .2s; box-shadow: 0 0 10px var(--amber-glow); }
.nav a:hover { color: var(--text); }
.nav a:hover::after, .nav a[aria-current]::after { transform: scaleX(1); }
.nav a[aria-current] { color: var(--amber); }
.lang-switch { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid var(--line-2); border-radius: 999px; font-family: var(--font-head); font-size: .82rem; letter-spacing: .08em; text-decoration: none; }
.lang-switch span { padding: 4px 9px; border-radius: 999px; line-height: 1; }
.lang-switch .lang-on { background: var(--amber); color: #0b0a09; font-weight: 600; }
.lang-switch .lang-off { color: var(--soft); }
.lang-switch:hover .lang-off { color: var(--amber); }
.search-link { color: var(--soft); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); }
.search-link:hover { color: var(--amber); border-color: var(--amber); }
@media (max-width: 760px) {
  .header-row { flex-wrap: wrap; gap: 0 12px; padding-top: 8px; }
  .brand { flex: 1; }
  .nav { order: 3; flex-basis: 100%; margin: 0 -16px; padding: 0 6px 2px; mask-image: linear-gradient(90deg, #000 85%, transparent); -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); }
}

/* ---------- Film strip divider ---------- */
.filmstrip { height: 22px; margin: 0; border: 0; background:
  repeating-linear-gradient(90deg, transparent 0 10px, var(--bg) 10px 22px) top 4px left 0 / 100% 5px no-repeat,
  repeating-linear-gradient(90deg, transparent 0 10px, var(--bg) 10px 22px) bottom 4px left 0 / 100% 5px no-repeat,
  #1a1713; border-block: 1px solid var(--line); }

/* ---------- Home: projector hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero::before { /* projector beam */ content: ""; position: absolute; z-index: -1; left: 50%; top: -40%; width: 160%; height: 180%; transform: translateX(-50%);
  background: conic-gradient(from 180deg at 50% 0%, transparent 155deg, rgba(255, 214, 140, .10) 172deg, rgba(255, 214, 140, .16) 180deg, rgba(255, 214, 140, .10) 188deg, transparent 205deg);
  filter: blur(6px); animation: flicker 6s infinite; }
.hero::after { /* curtains */ content: ""; position: absolute; inset: 0; z-index: -2;
  background: linear-gradient(90deg, rgba(94, 20, 20, .55), transparent 18%, transparent 82%, rgba(94, 20, 20, .55)),
    radial-gradient(ellipse at 50% 120%, rgba(245, 165, 36, .14), transparent 60%); }
@keyframes flicker { 0%,100% { opacity: 1; } 47% { opacity: 1; } 48% { opacity: .82; } 49% { opacity: 1; } 72% { opacity: .9; } 73% { opacity: 1; } }
.hero-inner { padding: 64px 16px 56px; text-align: center; max-width: 900px; margin: 0 auto; }
.masthead { font-size: clamp(2.8rem, 9vw, 6.4rem); font-weight: 700; text-transform: uppercase; letter-spacing: .02em; line-height: .95; margin: .25em 0 .3em; text-shadow: 0 0 40px rgba(245, 165, 36, .18); }
.masthead span { display: block; color: var(--amber); font-size: .52em; letter-spacing: .3em; margin-bottom: .2em; text-shadow: 0 0 24px var(--amber-glow); }
.hero .lead { margin: 0 auto; max-width: 660px; }
.bulbs { display: flex; justify-content: center; gap: 14px; margin: 28px auto 0; }
.bulbs i { width: 9px; height: 9px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 10px var(--amber), 0 0 22px var(--amber-glow); animation: bulb 1.6s infinite; }
.bulbs i:nth-child(2n) { animation-delay: .8s; }
@keyframes bulb { 0%,100% { opacity: 1; } 50% { opacity: .25; box-shadow: none; } }

.lead { font-size: 1.14rem; color: var(--soft); }
.lead p { margin: 0 0 .8em; }

/* Ticker ("running line") */
.ticker { overflow: hidden; background: var(--amber); color: #120f0a; border-block: 1px solid #000; }
.ticker-track { display: flex; width: max-content; animation: ticker 48s linear infinite; }
.ticker ul { display: flex; list-style: none; margin: 0; padding: 0; }
.ticker li { font-family: var(--font-head); font-weight: 600; text-transform: uppercase; letter-spacing: .12em; font-size: .86rem; padding: 9px 0; white-space: nowrap; }
.ticker li::after { content: "✦"; margin: 0 22px; opacity: .55; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Blocks ---------- */
.block { padding: 56px 0 8px; }
.block-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.block-head h2 { margin: 0; font-size: clamp(1.7rem, 3.4vw, 2.4rem); text-transform: uppercase; letter-spacing: .02em; }
.block-head h2 a { color: var(--text); text-decoration: none; }
.block-head h2 a:hover { color: var(--amber); }
.more { white-space: nowrap; font-family: var(--font-head); letter-spacing: .06em; text-transform: uppercase; font-size: .9rem; text-decoration: none; }
.more:hover { text-decoration: underline; }
.section-title { text-transform: uppercase; letter-spacing: .02em; }

/* ---------- Halls (sections as tickets) ---------- */
.halls { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
.hall { grid-column: span 2; }
@media (max-width: 960px) { .halls { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hall { grid-column: span 1; } }
@media (max-width: 600px) { .halls { grid-template-columns: 1fr; } }
.ticket { --notch: 12px; position: relative; display: grid; grid-template-columns: 1fr auto; gap: 18px; height: 100%; padding: 22px 24px; color: var(--text); text-decoration: none; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--panel-2), var(--panel));
  -webkit-mask: radial-gradient(circle var(--notch) at 0 50%, #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle var(--notch) at 100% 50%, #0000 98%, #000) right / 51% 100% no-repeat;
          mask: radial-gradient(circle var(--notch) at 0 50%, #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle var(--notch) at 100% 50%, #0000 98%, #000) right / 51% 100% no-repeat;
  transition: transform .2s, background .2s; }
.ticket::before { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 1px solid var(--line-2); pointer-events: none; }
.ticket:hover { transform: translateY(-3px); background: linear-gradient(135deg, #262118, var(--panel)); color: var(--text); }
.ticket:hover .hall-icon { color: var(--amber-2); filter: drop-shadow(0 0 10px var(--amber-glow)); }
.hall-no { font-family: var(--font-head); font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }
.hall-name { font-family: var(--font-head); font-weight: 600; font-size: clamp(1.4rem, 2.6vw, 1.9rem); text-transform: uppercase; line-height: 1.05; margin: 0 0 8px; }
.hall-text { margin: 0; color: var(--soft); font-size: .95rem; line-height: 1.55; }
.hall-count { margin: 14px 0 0; font-size: .85rem; color: var(--muted); }
.hall-side { display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding-left: 18px; border-left: 2px dashed var(--line-2); }
.hall-icon { color: var(--amber); transition: color .2s, filter .2s; }
.icon { width: 46px; height: 46px; display: block; }
.hall-arrow { font-family: var(--font-head); font-size: 1.4rem; color: var(--amber); }

/* ---------- Poster cards ---------- */
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px 22px; }
.cards-films { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 1060px) { .cards, .cards-films { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .cards, .cards-films { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 14px; } }
.card a { color: var(--text); text-decoration: none; display: block; }
.poster { position: relative; aspect-ratio: 2 / 3; border-radius: 8px; overflow: hidden; background: var(--panel-2); box-shadow: 0 14px 34px rgba(0, 0, 0, .55); transition: transform .25s, box-shadow .25s; }
.poster::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, .55)); pointer-events: none; }
.poster img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card a:hover .poster { transform: translateY(-5px); box-shadow: 0 18px 44px rgba(0, 0, 0, .6), 0 0 0 1px var(--amber), 0 0 36px rgba(245, 165, 36, .22); }
.card a:hover .poster img { transform: scale(1.04); }
.card a:hover .card-title { color: var(--amber-2); }
/* Typographic poster when there is no image */
.poster-ph { --tint: 245, 165, 36; position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 14px 14px 16px;
  background: radial-gradient(ellipse at 70% 10%, rgba(var(--tint), .38), transparent 60%), radial-gradient(ellipse at 0% 100%, rgba(var(--tint), .16), transparent 55%), linear-gradient(180deg, #1d1914, #0d0c0a); }
.poster-ph::before { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(var(--tint), .22); border-radius: 4px; pointer-events: none; }
.ph-icon { position: absolute; right: 14px; top: 50px; color: rgba(var(--tint), .75); }
.ph-icon .icon { width: 40px; height: 40px; }
.ph-title { position: relative; z-index: 1; font-family: var(--font-head); font-weight: 700; text-transform: uppercase; font-size: clamp(1.05rem, 2vw, 1.55rem); line-height: 1.02; color: var(--text); overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; text-shadow: 0 2px 18px rgba(0,0,0,.6); }
.ph-brand { position: relative; z-index: 1; margin-top: 10px; font-family: var(--font-head); font-size: .62rem; letter-spacing: .3em; text-transform: uppercase; color: rgba(var(--tint), .9); }
.tint-premiery { --tint: 245, 165, 36; }
.tint-yak-pratsiuie-kino { --tint: 86, 170, 196; }
.tint-kinoteatry { --tint: 214, 72, 72; }
.tint-ukrainske-kino { --tint: 245, 206, 70; }
.tint-festyvali { --tint: 168, 128, 230; }
.cards-films .card:nth-child(5n+1) .poster-ph { --tint: 245, 165, 36; }
.cards-films .card:nth-child(5n+2) .poster-ph { --tint: 214, 72, 72; }
.cards-films .card:nth-child(5n+3) .poster-ph { --tint: 86, 170, 196; }
.cards-films .card:nth-child(5n+4) .poster-ph { --tint: 168, 128, 230; }
.cards-films .card:nth-child(5n+5) .poster-ph { --tint: 120, 190, 120; }
.stub { position: absolute; top: 10px; left: 10px; z-index: 1; display: grid; text-align: center; min-width: 44px; padding: 4px 6px 5px; border-radius: 6px; background: var(--amber); color: #120f0a; font-family: var(--font-head); line-height: 1; box-shadow: 0 4px 14px rgba(0, 0, 0, .45); }
.stub b { font-size: 1.35rem; font-weight: 700; }
.stub small { font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; margin-top: 2px; }
.age { display: inline-grid; place-items: center; min-width: 34px; height: 24px; padding: 0 6px; border: 1.5px solid currentColor; border-radius: 6px; font-family: var(--font-head); font-weight: 600; font-size: .82rem; color: var(--soft); line-height: 1; }
.age-18 { color: var(--red); }
.poster .age { position: absolute; top: 10px; right: 10px; z-index: 1; background: rgba(11, 10, 9, .75); backdrop-filter: blur(4px); }
.card-label { margin: 12px 0 2px; font-family: var(--font-head); text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; color: var(--amber); }
.card-meta { margin: 12px 0 2px; font-size: .82rem; color: var(--muted); }
.card-title { margin: 0; font-family: var(--font-head); font-weight: 500; font-size: 1.16rem; line-height: 1.22; transition: color .15s; }
.countdown { display: inline-block; margin-top: 6px; font-size: .78rem; color: var(--amber); }
.credit { margin: 4px 0 0; font-size: .72rem; color: var(--muted); }

/* Coming soon: empty poster frames */
.soon { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 760px) { .soon { grid-template-columns: repeat(3, minmax(0, 1fr)); } .soon .frame:nth-child(n+4) { display: none; } }
.frame { aspect-ratio: 2 / 3; border-radius: 8px; border: 1px dashed var(--line-2); display: grid; place-items: center; color: var(--line-2); font-family: var(--font-head); letter-spacing: .2em; text-transform: uppercase; font-size: .78rem;
  background: repeating-linear-gradient(135deg, transparent 0 14px, rgba(255, 255, 255, .015) 14px 28px); }
.frame:nth-child(3n+1) { color: rgba(245, 165, 36, .5); border-color: rgba(245, 165, 36, .35); }
.soon-note { margin: 18px 0 0; color: var(--muted); }

/* ---------- Weekly feature ---------- */
.feature { display: grid; grid-template-columns: 1.35fr 1fr; gap: 0; border-radius: var(--radius); overflow: hidden; background: linear-gradient(135deg, var(--panel-2), var(--panel)); border: 1px solid var(--line-2); color: var(--text); text-decoration: none; transition: border-color .2s, transform .2s; }
.feature:hover { border-color: var(--amber); transform: translateY(-2px); color: var(--text); }
.feature-img { aspect-ratio: 16 / 9; overflow: hidden; background: var(--panel-2); }
.feature-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.feature:hover .feature-img img { transform: scale(1.03); }
.feature-body { padding: 26px 28px; display: flex; flex-direction: column; justify-content: center; }
.feature-title { font-family: var(--font-head); font-weight: 600; font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.12; margin: 4px 0 12px; }
.feature-text { margin: 0 0 18px; color: var(--soft); font-size: .98rem; }
.feature-more { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .08em; font-size: .9rem; color: var(--amber); }
@media (max-width: 820px) { .feature { grid-template-columns: 1fr; } .feature-body { padding: 20px; } }

/* ---------- Credo ---------- */
.credo { padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--panel); }
@media (max-width: 900px) { .credo { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 540px) { .credo { grid-template-columns: 1fr; } }
.credo li { list-style: none; padding: 24px 22px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: -1px -1px 0 0; }
.credo b { display: block; font-family: var(--font-head); font-weight: 600; font-size: 1.15rem; margin-bottom: 6px; color: var(--text); }
.credo b::before { content: attr(data-n); display: block; color: var(--amber); font-size: .8rem; letter-spacing: .2em; margin-bottom: 8px; }
.credo span { color: var(--muted); font-size: .93rem; line-height: 1.55; }
.credo-list { padding: 0; margin: 0; display: contents; }

/* ---------- Hub ---------- */
.hub-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); background: radial-gradient(ellipse at 85% 0%, rgba(245, 165, 36, .12), transparent 55%), linear-gradient(180deg, var(--panel), var(--bg)); }
.hub-hero .wrap { position: relative; padding-bottom: 36px; }
.hub-ghost { position: absolute; right: 8px; top: 10px; font-family: var(--font-head); font-weight: 700; font-size: clamp(6rem, 18vw, 13rem); line-height: .9; color: transparent; -webkit-text-stroke: 1.5px rgba(245, 165, 36, .16); pointer-events: none; user-select: none; }
.hub-title { display: flex; align-items: center; gap: 16px; }
.hub-title .icon { width: 54px; height: 54px; color: var(--amber); flex: none; filter: drop-shadow(0 0 14px var(--amber-glow)); }
.hub-title h1 { margin: .1em 0; text-transform: uppercase; }
.hub-intro { max-width: 760px; position: relative; }
.hub-about .prose { max-width: 760px; }

/* Schedule list (posts as showtimes) */
.schedule { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.schedule li { display: grid; grid-template-columns: 76px 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.schedule .when { text-align: center; padding: 8px 0; border-radius: 8px; background: var(--panel-2); border: 1px solid var(--line-2); font-family: var(--font-head); line-height: 1; height: max-content; }
.schedule .when b { display: block; font-size: 1.7rem; color: var(--amber); }
.schedule .when small { display: block; margin-top: 4px; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.schedule .when em { display: block; font-style: normal; font-size: .68rem; color: var(--muted); margin-top: 3px; }
.schedule a { font-family: var(--font-head); font-weight: 500; font-size: 1.35rem; line-height: 1.2; color: var(--text); text-decoration: none; }
.schedule a:hover { color: var(--amber); }
.schedule p { margin: 6px 0 0; color: var(--muted); font-size: .95rem; }
.empty-hall { display: grid; place-items: center; text-align: center; padding: 48px 20px; border: 1px dashed var(--line-2); border-radius: var(--radius); color: var(--muted); }
.empty-hall .icon { width: 48px; height: 48px; color: var(--line-2); margin-bottom: 10px; }

/* ---------- Article ---------- */
.progress { position: fixed; left: 0; top: 0; height: 3px; width: 0; z-index: 60; background: linear-gradient(90deg, var(--amber), var(--amber-2)); box-shadow: 0 0 12px var(--amber-glow); }
.crumbs { font-size: .85rem; color: var(--muted); padding-top: 26px; font-family: var(--font-head); letter-spacing: .08em; text-transform: uppercase; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--amber); }
.crumbs span[aria-hidden] { margin: 0 6px; color: var(--line-2); }
.post-head { padding-bottom: 22px; margin-bottom: 26px; border-bottom: 1px solid var(--line); }
.post-head h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); }
.byline { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; color: var(--muted); font-size: .9rem; margin: 0; }
.byline .chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line-2); }
.byline .chip-author { color: var(--text); }
.byline .chip-author::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 8px var(--amber); }
.prose { font-size: 1.06rem; }
.prose > p:first-child { font-size: 1.2rem; color: var(--soft); }
.prose p, .prose ul, .prose ol { margin: 0 0 1.1em; }
.prose li { margin: .3em 0; }
.prose li::marker { color: var(--amber); }
.prose h2 { padding-top: .2em; }
.prose h2::before { content: ""; display: block; width: 36px; height: 3px; margin-bottom: 14px; background: var(--amber); box-shadow: 0 0 10px var(--amber-glow); }
.prose blockquote { margin: 1.6em 0; padding: 18px 22px; border-radius: 0 var(--radius) var(--radius) 0; border-left: 3px solid var(--amber); background: var(--panel); color: var(--soft); font-size: 1.08rem; }
.prose blockquote p:last-child { margin: 0; }
.prose figure { margin: 1.8em 0; }
.prose figure img { border-radius: 8px; }
.prose figcaption, .credit-line { font-size: .8rem; color: var(--muted); margin-top: 8px; }
.prose code { background: var(--panel-2); padding: .1em .35em; border-radius: 4px; font-size: .9em; }
.prose hr { border: 0; height: 22px; margin: 2em 0; background:
  repeating-linear-gradient(90deg, transparent 0 10px, var(--bg) 10px 22px) top 4px left 0 / 100% 5px no-repeat,
  repeating-linear-gradient(90deg, transparent 0 10px, var(--bg) 10px 22px) bottom 4px left 0 / 100% 5px no-repeat, #1a1713; }
.note { padding: 14px 18px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--panel); font-size: .95rem; color: var(--soft); }
.toc { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); margin: 0 0 30px; }
.toc summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 12px 18px; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after { content: "+"; margin-left: auto; font-family: var(--font-head); font-size: 1.3rem; color: var(--amber); transition: transform .2s; }
.toc[open] summary::after { transform: rotate(45deg); }
.toc-title { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .16em; font-size: .8rem; color: var(--amber); }
.toc-count { font-size: .85rem; color: var(--muted); }
.toc ol { margin: 0; padding: 0 22px 16px 40px; }
.toc li { margin: .25em 0; }
.toc li::marker { color: var(--muted); font-family: var(--font-head); }
.toc a { color: var(--soft); text-decoration: none; }
.toc a:hover { color: var(--amber); }
.sources { margin-top: 3em; padding: 20px 24px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); font-size: .93rem; }
.sources h2 { margin: 0 0 10px; font-size: 1.1rem; text-transform: uppercase; letter-spacing: .1em; color: var(--amber); }
.sources ol { margin: 0; padding-left: 1.3em; }
.related { margin: 56px auto 10px; }

/* Readability helpers for articles (use with kramdown IAL, e.g. "{: .summary}" under a list) */
.prose h3 { font-size: 1.3rem; color: var(--text); margin-top: 1.6em; }
.prose h3::before { content: "▸ "; color: var(--amber); }
.prose strong { color: var(--text); }
.prose a { text-decoration-color: rgba(245, 165, 36, .45); }
.prose a:hover { text-decoration-color: var(--amber-2); }
.summary { list-style: none; padding: 18px 22px 18px 22px !important; margin: 0 0 1.6em !important; border-radius: var(--radius); background: linear-gradient(135deg, rgba(245,165,36,.10), rgba(245,165,36,.03)); border: 1px solid rgba(245,165,36,.28); }
.summary::before { content: "Коротко"; display: block; font-family: var(--font-head); text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; color: var(--amber); margin-bottom: 8px; }
.summary li { position: relative; padding-left: 22px; margin: .35em 0; }
.summary li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 8px var(--amber-glow); }
.callout { padding: 16px 20px; margin: 1.6em 0; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line-2); border-left: 3px solid var(--amber); color: var(--soft); font-size: .98rem; }
.callout strong:first-child { display: block; font-family: var(--font-head); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; color: var(--amber); margin-bottom: 4px; }
.pull { margin: 1.8em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--amber); font-family: var(--font-head); font-size: 1.45rem; line-height: 1.3; color: var(--text); }
.prose figure.wide { margin-left: -60px; margin-right: -60px; }
@media (max-width: 880px) { .prose figure.wide { margin-left: 0; margin-right: 0; } }
.prose figure img { width: 100%; height: auto; }
.prose dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 1.2em 0; }
.prose dt { font-family: var(--font-head); color: var(--amber); }
.prose dd { margin: 0; }
.steps { counter-reset: step; list-style: none; padding: 0 !important; }
.steps > li { counter-increment: step; position: relative; padding: 2px 0 10px 50px; margin: 0 0 8px; }
.steps > li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--amber); color: #0b0a09; font-family: var(--font-head); font-weight: 700; }

/* Cover and posters */
.cover { margin: 0 0 30px; }
.cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); box-shadow: 0 20px 50px rgba(0,0,0,.5); }
.cover figcaption, .film-poster figcaption { font-size: .78rem; color: var(--muted); margin-top: 8px; }
.cover figcaption a, .film-poster figcaption a { color: var(--muted); }
.film-poster { float: right; width: 210px; margin: 6px 0 16px 24px; }
.film-poster img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 8px; box-shadow: 0 14px 34px rgba(0,0,0,.55); }
.prose h2, .prose h3 { clear: both; }
@media (max-width: 560px) { .prose .film-poster, .film-poster { float: none; width: 62%; margin: 8px auto 20px; } }
/* Markdown tables inside articles: own horizontal scroll, never widen the page */
.prose > table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1.4em 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.prose > table th, .prose > table td { min-width: 120px; }
.prose > table td:first-child { font-weight: 600; color: var(--text); }

/* Tables */
.table-wrap { overflow-x: auto; margin: 1.4em 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
table { border-collapse: collapse; width: 100%; font-size: .94rem; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: rgba(245, 165, 36, .04); }
th { color: var(--amber); font-family: var(--font-head); font-weight: 500; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; white-space: nowrap; background: var(--panel-2); }
.premieres td:first-child { font-family: var(--font-head); white-space: nowrap; }
.premieres td:nth-child(2) a { color: var(--text); font-weight: 600; }
.premieres td:nth-child(2) a:hover { color: var(--amber); }
.checked { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--muted); }
.checked::before { content: "✓"; flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--amber); color: #000; font-weight: 700; font-size: .8rem; margin-top: 1px; }
.checked strong { color: var(--text); }

/* Trailer: placeholder, iframe only on click */
.trailer { margin: 1.6em 0; }
.trailer-btn { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; background: #000; cursor: pointer; color: var(--text);
  box-shadow: 0 0 0 1px var(--line), 0 20px 50px rgba(0, 0, 0, .5); }
.trailer-btn img { width: 100%; height: 100%; object-fit: cover; opacity: .75; transition: opacity .2s, transform .4s; }
.trailer-btn:hover img { opacity: .9; transform: scale(1.02); }
.trailer-ph { position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 16px 18px; text-align: left; font-family: var(--font-head); font-size: 1.35rem; text-transform: uppercase; letter-spacing: .04em;
  background: radial-gradient(ellipse at 50% 35%, rgba(245, 165, 36, .14), transparent 55%), linear-gradient(180deg, #16130f, #000); }
.trailer-btn::after { /* letterbox bars */ content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(#000 0 7%, transparent 7% 93%, #000 93%); opacity: .7; }
.play { position: absolute; left: 50%; top: 50%; z-index: 1; width: 78px; height: 78px; margin: -39px 0 0 -39px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 10px rgba(245, 165, 36, .18), 0 0 40px var(--amber-glow); transition: transform .2s; }
.play::after { content: ""; position: absolute; left: 31px; top: 24px; border-style: solid; border-width: 15px 0 15px 24px; border-color: transparent transparent transparent #0b0a09; }
.trailer-btn:hover .play { transform: scale(1.08); background: var(--amber-2); }
.trailer iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius); display: block; background: #000; }

/* Search */
.search-form input { width: 100%; font: inherit; font-size: 1.15rem; padding: 16px 18px; border-radius: var(--radius); border: 1px solid var(--line-2); background: var(--panel); color: var(--text); margin-top: 8px; }
.search-form input:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(245, 165, 36, .2); }
.search-results { list-style: none; padding: 0; }
.search-results li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.search-results a { font-family: var(--font-head); font-size: 1.2rem; text-decoration: none; }

/* Plain page */
.page { padding-top: 34px; }
.page h1 { text-transform: uppercase; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 80px; color: var(--muted); font-size: .9rem; }
.the-end { text-align: center; padding: 46px 16px 30px; }
.the-end p { margin: 0; font-family: var(--font-head); font-weight: 300; font-size: clamp(2.2rem, 6vw, 3.6rem); letter-spacing: .5em; text-indent: .5em; text-transform: uppercase; color: var(--line-2); }
.footer-row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px 40px; padding-top: 28px; padding-bottom: 44px; border-top: 1px solid var(--line); }
@media (max-width: 700px) { .footer-row { grid-template-columns: 1fr; } }
.footer-brand { margin: 0; color: var(--soft); max-width: 460px; }
.footer-brand strong { color: var(--amber); font-family: var(--font-head); letter-spacing: .12em; text-transform: uppercase; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, max-content); gap: 6px 28px; }
.footer-links a { color: var(--soft); text-decoration: none; }
.footer-links a:hover { color: var(--amber); }
.footer-note { grid-column: 1 / -1; margin: 6px 0 0; font-size: .8rem; }

/* ---------- 404: countdown leader ---------- */
.error-page { padding: 56px 16px 20px; text-align: center; }
.leader { position: relative; width: min(260px, 70vw); aspect-ratio: 1; margin: 0 auto 26px; border-radius: 50%; border: 3px solid var(--line-2); display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(circle, transparent 54%, var(--line) 54.5% 55.5%, transparent 56%), var(--panel); }
.leader::before, .leader::after { content: ""; position: absolute; background: var(--line-2); }
.leader::before { left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; }
.leader::after { top: 50%; left: 0; right: 0; height: 2px; margin-top: -1px; }
.leader .sweep { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(rgba(245, 165, 36, .32) 0deg, rgba(245, 165, 36, .32) var(--a, 0deg), transparent var(--a, 0deg)); animation: sweep 2.4s linear infinite; }
@property --a { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes sweep { to { --a: 360deg; } }
.leader b { position: relative; z-index: 1; font-family: var(--font-head); font-weight: 700; font-size: clamp(3.6rem, 12vw, 5.6rem); color: var(--amber); text-shadow: 0 0 30px var(--amber-glow); }
.error-page h1 { text-transform: uppercase; }
.error-links { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.error-links a { display: block; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--soft); text-decoration: none; font-family: var(--font-head); letter-spacing: .04em; }
.error-links a:hover { border-color: var(--amber); color: var(--amber); }
.btn { display: inline-block; padding: 12px 26px; border-radius: 999px; background: var(--amber); color: #0b0a09; font-family: var(--font-head); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; box-shadow: 0 0 24px var(--amber-glow); }
.btn:hover { background: var(--amber-2); color: #0b0a09; }
