@font-face{font-family:Onest;src:url('/assets/onest-latin.woff2') format('woff2');font-weight:100 900;font-display:swap;unicode-range:U+0000-00FF,U+2000-206F,U+20AC,U+2191,U+2193,U+2212,U+FEFF,U+FFFD}
@font-face{font-family:Onest;src:url('/assets/onest-cyrillic.woff2') format('woff2');font-weight:100 900;font-display:swap;unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:Pixel;src:url('/assets/pixel-latin.woff2') format('woff2');font-weight:400;font-display:swap;unicode-range:U+0000-00FF,U+2000-206F,U+20AC,U+2191,U+2193,U+2212,U+FEFF,U+FFFD}
@font-face{font-family:Pixel;src:url('/assets/pixel-cyrillic.woff2') format('woff2');font-weight:400;font-display:swap;unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}

:root {
  color-scheme: dark;
  --ink: #15121b;
  --surface: #1e1927;
  --surface-deep: #18141f;
  --line: #3e334b;
  --text: #f6eadf;
  --muted: #b5a8bf;
  --quiet: #998ba9;
  --accent: #fac178;
  --accent-deep: #65422c;
  --pixel: Pixel, 'Courier New', monospace;
  font-family: Onest, system-ui, sans-serif;
  background: var(--ink);
  color: var(--text);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  min-width: 280px;
  margin: 0;
  background-color: var(--ink);
  background-image: radial-gradient(ellipse at top, #21192a 0, transparent 70%);
}
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .68; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
h1, h2, h3, h4, p, figure { margin: 0; }
.shell { width: min(1216px, calc(100% - 96px)); margin-inline: auto; }
.icon {
  display: inline-block;
  width: var(--icon-size, 18px);
  height: var(--icon-size, 18px);
  flex: 0 0 auto;
  background: currentColor;
  mask: var(--icon) center / contain no-repeat;
  image-rendering: pixelated;
}
.icon-tv { --icon: url('/assets/tv.png'); }
.icon-globe { --icon: url('/assets/globe.png'); }
.icon-muted { --icon: url('/assets/muted.png'); }
.icon-sound { --icon: url('/assets/sound.png'); }
.icon-calendar { --icon: url('/assets/calendar.png'); }
.icon-film { --icon: url('/assets/film.png'); }
.icon-ticket { --icon: url('/assets/ticket.png'); }
.icon-discord { --icon: url('/assets/discord.png'); }
.icon-play { --icon: url('/assets/play.png'); }
.icon-chevron { --icon: url('/assets/chevron.png'); }
.icon-clock { --icon: url('/assets/clock.png'); }
.icon-close { --icon: url('/assets/close.png'); }
.icon-plus { --icon: url('/assets/plus.png'); }
.icon-check { --icon: url('/assets/check.png'); }

.site-header { background: #17131e; border-bottom: 1px solid #382d43; }
.header-inner { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 13px; text-decoration: none; }
.brand-mark {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  color: var(--accent); background: #322331;
  border: 1px solid #69503f;
  box-shadow: inset 0 0 0 3px #201927;
  --icon-size: 24px;
}
.brand-name { display: block; font: 25px/.93 var(--pixel); color: var(--accent); letter-spacing: .035em; }
.brand-caption { display: block; font-size: 12px; color: var(--muted); margin-top: 5px; }
.header-controls { display: flex; align-items: center; gap: 9px; }
.control {
  display: inline-flex; justify-content: center; align-items: center; gap: 10px;
  min-height: 40px; padding: 0 11px; color: var(--muted); background: #211a2b; border: 1px solid var(--line);
  font-size: 13px; transition: background .16s, border-color .16s, color .16s;
}
.control:hover, .control[aria-pressed=true] { color: var(--accent); border-color: #81624f; background: #302333; }
.zone-control .icon:first-child { color: var(--accent); --icon-size: 15px; }
.zone-control .icon:last-child { --icon-size: 12px; opacity: .75; }
.zone-control span { font-variant-numeric: tabular-nums; }
.sound-control, .close-control { width: 42px; padding: 0; }

.intro { margin: 34px 0 24px; }
.intro h1 {
  font-family: var(--pixel); font-size: clamp(39px, 4vw, 58px); font-weight: 400;
  line-height: .98; letter-spacing: -.045em; text-shadow: 0 4px #362631;
}
.intro h1 span { color: var(--accent); }
.intro p { margin-top: 11px; color: var(--muted); font-size: 16px; line-height: 1.5; }
.room-grid { display: grid; grid-template-columns: minmax(0, 2.58fr) minmax(0, 1fr); gap: 18px; align-items: stretch; }
.room-frame {
  min-height: 382px; aspect-ratio: 16 / 9; position: relative; overflow: hidden;
  background: #2f2435; border: 1px solid #70523e; padding: 4px;
  box-shadow: 0 7px #0e0c13, 0 0 0 1px #17111b;
  isolation: isolate;
}
.room-frame picture { position: absolute; inset: 4px; }
.room-frame img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 52% 52%; }
.room-frame::after { content: ''; position: absolute; inset: 4px; box-shadow: inset 0 0 24px 3px #100c19a8; pointer-events: none; }
.crt-light {
  position: absolute; z-index: 1; left: 41.7%; top: 28.8%; width: 20.2%; height: 24%;
  background: repeating-linear-gradient(0deg, transparent 0 4px, #a7c4ff 5px 6px);
  mix-blend-mode: screen; opacity: .12; border-radius: 18% / 14%; pointer-events: none;
  animation: screen-glow 7s steps(4, end) infinite;
}
@keyframes screen-glow { 0%, 100% { opacity: .10; } 35% { opacity: .19; } 51% { opacity: .07; } 69% { opacity: .22; } }
.room-corner { position: absolute; z-index: 2; width: 16px; height: 16px; border: 2px solid #d6a36b; pointer-events: none; }
.room-corner-tl { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.room-corner-tr { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.room-corner-bl { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.room-corner-br { bottom: 0; right: 0; border-left: 0; border-top: 0; }

.clock-panel {
  min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  padding: 17px clamp(12px, 1.45vw, 22px) 18px; border: 1px solid #4c3b50;
  background-color: #241c2d;
  background-image: radial-gradient(circle, #49365565 1px, transparent 1px);
  background-size: 7px 7px;
  box-shadow: 0 7px #0e0c13, inset 0 0 0 3px #1c1623;
}
.panel-rule { display: flex; align-items: center; justify-content: center; gap: 8px; color: #d4bdc7; }
.clock-heading { align-self: stretch; }
.clock-heading::before, .clock-heading::after { content: ''; height: 1px; background: #574151; flex: 1; }
.clock-heading .icon { color: var(--accent); --icon-size: 13px; margin-left: 4px; }
.clock-heading h2 { font: 17px/1.1 var(--pixel); letter-spacing: .04em; margin-right: 4px; }
#wall-clock {
  width: min(100%, clamp(160px, 16.2vw, 230px)); aspect-ratio: 1; height: auto;
  display: block; image-rendering: pixelated; margin: 4px auto 1px;
}
.timer-shell { width: 100%; text-align: center; }
.timer-heading { color: #d4bdc7; font-size: 13px; margin-bottom: 9px; }
.timer { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.timer div { min-width: 0; }
.timer span {
  display: grid; place-items: center; height: clamp(38px, 4.1vw, 57px);
  border: 1px solid #574156; background: #19131f; box-shadow: inset 0 -3px #2a2033;
  color: var(--accent); font: clamp(24px, 3.1vw, 44px)/1 var(--pixel); letter-spacing: -.05em;
}
.timer span[data-wide] { font-size: clamp(18px, 2.25vw, 32px); }
.timer small { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; }
.status {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  border-top: 1px solid #48364c; padding-top: 12px; margin-top: 14px;
  color: var(--muted); font-size: 13px; text-align: center;
}
.status i { width: 7px; height: 7px; background: #9f8ba9; border-radius: 1px; flex-shrink: 0; }
.status[data-status=waiting] i { background: var(--accent); box-shadow: 0 0 9px #edaa7288; }
.status[data-status=now] i, .status[data-status=live] i { background: #a4d196; box-shadow: 0 0 9px #a4d19688; }

.programme { margin-top: 36px; }
.section-rule { display: flex; align-items: center; gap: 18px; margin-bottom: 14px; }
.section-rule h2 { flex-shrink: 0; display: flex; align-items: center; gap: 10px; font: 25px/1.2 var(--pixel); color: var(--text); }
.section-rule h2 .icon { color: var(--accent); --icon-size: 16px; }
.section-rule > span { height: 1px; flex: 1; background: #46364e; }
.empty-film {
  min-height: 133px; display: flex; align-items: center; gap: 20px; padding: 23px 26px;
  border: 1px solid var(--line); background-color: #1d1826;
  box-shadow: inset 0 0 0 3px #191420;
}
.empty-ticket {
  display: grid; place-items: center; flex: 0 0 auto;
  width: 71px; height: 71px; border: 1px solid #564054;
  background: #2b2032; color: #e4ae73; --icon-size: 33px;
}
.empty-film h3 { font-family: var(--pixel); font-weight: 400; font-size: 23px; line-height: 1.15; }
.empty-film p { margin-top: 6px; color: var(--muted); font-size: 15px; line-height: 1.45; }
.empty-film .discord { margin-left: auto; }
.site-footer {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 9px;
  margin-top: 26px; margin-bottom: 20px; border-top: 1px solid #33273d; padding-top: 15px;
  color: var(--quiet); font-size: 12px;
}
.site-footer span:first-child { display: inline-flex; align-items: center; gap: 7px; }
.site-footer .icon { --icon-size: 13px; color: var(--accent); }

.film-card {
  display: grid; grid-template-columns: minmax(116px, 146px) minmax(0, 1fr) minmax(220px, 300px);
  gap: 22px; padding: 21px; border: 1px solid #45354e; background: #1f1928;
  box-shadow: inset 0 0 0 3px #18131e;
}
.film-card:has(.trailer[hidden]) { grid-template-columns: minmax(116px, 146px) minmax(0, 1fr); }
.poster { position: relative; align-self: start; aspect-ratio: 2/3; border: 1px solid #574358; background: #2a2033; }
.poster-placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: #9d7792; --icon-size: 40px; }
.poster img { position: relative; display: block; object-fit: cover; width: 100%; height: 100%; }
.film-info { min-width: 0; padding: 1px 0; }
.film-title { font: clamp(28px, 3.3vw, 44px)/1 var(--pixel); overflow-wrap: anywhere; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 13px; margin: 11px 0 0; padding: 0; list-style: none; color: var(--accent); font-size: 13px; }
.meta li + li::before { content: '·'; margin-right: 13px; color: #806386; }
.film-description { margin-top: 12px; color: #d7cad9; line-height: 1.55; white-space: pre-line; overflow-wrap: anywhere; }
.film-session { margin: 16px 0 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: #eee0eb; font-size: 14px; }
.film-session .icon { color: var(--accent); --icon-size: 15px; }
.film-session small { color: var(--muted); }
.trailer { min-width: 0; }
.trailer h4 { color: #e7d5df; font: 19px/1 var(--pixel); margin-bottom: 9px; }
.trailer-player { display: grid; aspect-ratio: 16/9; border: 1px solid #573e53; box-shadow: inset 0 0 0 3px #1a1420; }
.trailer-player iframe { width: 100%; height: 100%; border: 0; }
.trailer-play {
  display: grid; place-content: center; justify-items: center; gap: 10px; width: 100%; height: 100%;
  border: 0; color: var(--accent); background: repeating-linear-gradient(0deg, #22192b 0 4px, #251c2e 4px 7px);
  font-size: 14px;
}
.trailer-play:hover { color: #ffe0a8; background: #34243b; }
.trailer-play .icon { --icon-size: 28px; }
.video-link { display: inline-block; color: var(--muted); font-size: 13px; margin-top: 9px; text-underline-offset: 3px; }
.video-link:hover { color: var(--accent); }

.button {
  display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 42px;
  padding: 8px 15px; border: 1px solid transparent; text-decoration: none;
  font-size: 14px; font-weight: 650; line-height: 1.3; text-align: center;
  transition: background .16s, color .16s, border-color .16s;
}
.button.discord { background: #62509a; border-color: #927cbf; color: #fff8ff; box-shadow: inset 0 -3px #493876; }
.button.discord:hover { background: #745eaf; }
.button.primary { background: #f6ba72; border-color: #ffcf90; color: #2f2026; box-shadow: inset 0 -3px #b67848; }
.button.primary:hover { background: #ffcd8c; }
.button.secondary { color: var(--text); background: #2d2338; border-color: #554161; }
.button.secondary:hover { border-color: var(--accent-deep); background: #3b2b42; }
.button.danger { color: #ffd9dd; background: #4d2537; border-color: #88435b; }
.button.danger:hover { background: #633147; }

.dialog {
  width: min(470px, calc(100vw - 28px)); max-height: calc(100dvh - 28px);
  padding: 22px; border: 1px solid #87654f; color: var(--text);
  background: #211a2b; box-shadow: 0 12px 55px #0b0810cc, inset 0 0 0 3px #312437;
}
.dialog::backdrop { background: #100b17bf; }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dialog h2 { font: 29px/1.1 var(--pixel); }
.dialog p { margin: 11px 0 14px; color: var(--muted); line-height: 1.45; }
.dialog-actions { margin-top: 18px; display: flex; flex-wrap: wrap; justify-content: end; gap: 8px; }
label { display: block; color: #e2d2e3; font-size: 14px; font-weight: 550; margin-bottom: 6px; }
input, textarea, select {
  min-height: 43px; width: 100%; min-width: 0; padding: 9px 11px; border: 1px solid #594566;
  border-radius: 0; color: var(--text); background: #17131e;
}
select { appearance: none; padding-right: 33px; background: #17131e url('/assets/chevron.png') no-repeat right 12px center / 12px; }
textarea { resize: vertical; }
.room-error { margin-top: 12px; font-size: 14px; color: #ffc8ba; }

@media (max-width: 1080px) {
  .shell { width: calc(100% - 64px); }
  .room-grid { grid-template-columns: minmax(0, 2.2fr) minmax(235px, 1fr); gap: 14px; }
  .room-frame { min-height: 356px; }
  .clock-panel { padding-top: 14px; padding-bottom: 15px; }
}
@media (max-width: 780px) {
  .shell { width: calc(100% - 36px); }
  .intro { margin: 26px 0 17px; }
  .room-grid { grid-template-columns: minmax(0, 1fr); }
  .room-frame { min-height: 0; }
  .clock-panel { display: grid; grid-template-columns: minmax(108px, 180px) minmax(0, 1fr); gap: 10px 16px; align-items: center; justify-content: normal; padding: 14px 16px; }
  .clock-heading, .status { grid-column: 1/-1; }
  #wall-clock { margin: 0; width: 100%; }
  .timer span { height: 49px; font-size: 34px; }
  .timer span[data-wide] { font-size: 24px; }
  .status { margin-top: 0; padding-top: 10px; }
  .film-card, .film-card:has(.trailer[hidden]) { grid-template-columns: 112px minmax(0, 1fr); }
  .trailer { grid-column: 1 / -1; }
  .trailer-player { max-width: 480px; }
}
@media (max-width: 450px) {
  .shell { width: calc(100% - 26px); }
  .header-inner { height: 64px; gap: 6px; }
  .brand { gap: 7px; }
  .brand-mark { width: 35px; height: 35px; --icon-size: 20px; }
  .brand-name { font-size: 21px; }
  .brand-caption { font-size: 10px; }
  .header-controls { gap: 5px; }
  .control { min-height: 37px; }
  .zone-control { gap: 5px; padding-inline: 6px; font-size: 11px; }
  .zone-control span { max-width: 103px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .zone-control .icon:last-child { display: none; }
  .sound-control { width: 34px; --icon-size: 15px; }
  .intro h1 { font-size: clamp(30px, 8vw, 39px); }
  .intro p { font-size: 14px; }
  .clock-panel { grid-template-columns: minmax(85px, 30%) minmax(0, 1fr); gap: 10px; padding-inline: 9px; }
  .timer { gap: 4px; }
  .timer span { height: 37px; font-size: 27px; }
  .timer span[data-wide] { font-size: 16px; }
  .timer small { font-size: 10px; }
  .programme { margin-top: 25px; }
  .empty-film { gap: 12px; padding: 13px; min-height: 107px; flex-wrap: wrap; }
  .empty-film div { flex: 1; }
  .empty-ticket { width: 50px; height: 50px; --icon-size: 27px; }
  .empty-film h3 { font-size: 20px; }
  .empty-film p { font-size: 13px; }
  .film-card, .film-card:has(.trailer[hidden]) { padding: 13px; gap: 12px; grid-template-columns: 74px minmax(0, 1fr); }
  .film-description, .film-session { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
