body {
  min-width: 320px;
  background-color: var(--ui-paper);
  background-image:
    radial-gradient(ellipse at 18% 26%, rgba(86,60,34,.065) 0 .55px, transparent .75px),
    radial-gradient(ellipse at 72% 68%, rgba(17,20,28,.05) 0 .45px, transparent .7px),
    repeating-linear-gradient(7deg, rgba(82,60,38,.018) 0 1px, transparent 1px 5px),
    linear-gradient(93deg, rgba(255,255,255,.16), transparent 24%, rgba(96,68,39,.025) 70%, transparent);
  background-size: 4px 5px, 7px 6px, 11px 13px, 100% 100%;
}

body.is-editing { padding-bottom: 76px; }

h1, h2, h3, p, figure { margin-top: 0; }

.site-header,
main,
.site-footer {
  width: 100%;
  margin-inline: auto;
}

.site-header {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  grid-template-areas: "brand nav socials support";
  align-items: center;
  gap: 22px;
  min-height: clamp(92px, 12svh, 124px);
  padding: 10px 3%;
  border-right: 2px solid var(--ui-ink);
  border-bottom: 3px solid var(--ui-ink);
  border-left: 2px solid var(--ui-ink);
  background: var(--ui-ink);
  color: var(--ui-white);
}

.header-support {
  grid-area: support;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 7px 9px 7px 12px;
  border: 2px solid var(--ui-white);
  color: var(--ui-white);
  font-family: var(--ui-font-display);
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 3px 3px 0 var(--ui-red);
  transition: color var(--ui-motion-fast), background var(--ui-motion-fast), transform var(--ui-motion-fast), box-shadow var(--ui-motion-fast);
}
.header-support small { display: block; margin-bottom: 3px; color: #c9c1b3; font-family: var(--ui-font-mono); font-size: 7px; letter-spacing: .04em; }
.header-support svg { width: 34px; height: 34px; color: var(--ui-red); }
.header-support:hover { background: var(--ui-white); color: var(--ui-ink); transform: translate(2px,2px); box-shadow: 1px 1px 0 var(--ui-red); }
.header-support:hover small { color: var(--ui-muted); }
.header-support:active { transform: translate(3px,3px); box-shadow: none; }

.brand {
  grid-area: brand;
  display: inline-flex;
  align-items: center;
  gap: 13px;
  min-width: max-content;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(62px, 6.2vw, 92px);
  height: clamp(62px, 6.2vw, 92px);
  overflow: hidden;
  border: 2px solid var(--ui-white);
  border-radius: 50%;
  background: #111522;
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: 0;
  border: 2px solid;
  border-radius: 50%;
  opacity: .8;
}

.brand-mark::before { border-color: var(--ui-red); transform: translate(-2px, 1px); }
.brand-mark::after { border-color: #3b65ca; transform: translate(2px, -1px); }

.brand-mark img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-name {
  color: var(--ui-white);
  font-family: var(--ui-font-display);
  font-size: clamp(30px, 3.3vw, 52px);
  font-stretch: condensed;
  font-weight: 900;
  line-height: .9;
  letter-spacing: -.045em;
  text-transform: uppercase;
}

.site-header nav {
  grid-area: nav;
  display: flex;
  justify-content: center;
  align-self: stretch;
}

.site-header nav a {
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  border-bottom: 4px solid transparent;
  color: #d7d0c3;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
  transition: border-color var(--ui-motion-fast), color var(--ui-motion-fast);
}

.site-header nav a:hover {
  border-bottom-color: var(--ui-red);
  color: var(--ui-white);
}

.header-socials {
  grid-area: socials;
  display: flex;
  align-items: center;
  gap: 5px;
}

.header-socials a {
  position: relative;
  display: grid;
  place-items: center;
  align-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid #625f59;
  color: #c8c0b3;
  text-decoration: none;
  transition: color var(--ui-motion-fast), background var(--ui-motion-fast), transform var(--ui-motion-fast), border-color var(--ui-motion-fast);
}

.header-socials a:hover { z-index: 1; border-color: var(--ui-white); background: var(--ui-blue); color: var(--ui-white); transform: translateY(-2px) rotate(-2deg); }
.header-socials a:nth-child(even):hover { background: var(--ui-red); transform: translateY(-2px) rotate(2deg); }
.header-socials svg { width: 20px; height: 20px; }

.admin-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 7px max(20px, calc((100% - 1180px) / 2));
  border-bottom: 2px solid var(--ui-ink);
  background: rgba(243,234,216,.97);
  box-shadow: 0 5px 0 rgba(17,20,28,.12);
  backdrop-filter: blur(8px);
}

.admin-bar[hidden] { display: none; }
.admin-bar a { color: var(--ui-blue-dark); font-size: 12px; font-weight: 900; text-decoration: none; }
.admin-bar span { margin-right: auto; color: var(--ui-muted); font-size: 11px; }
.admin-bar form { margin: 0; }

.admin-bar button,
.inline-editor button,
.edit-actions button {
  min-height: 34px;
  padding: 6px 12px;
  border: 2px solid var(--ui-ink);
  border-radius: var(--ui-radius-sm);
  background: var(--ui-paper-light);
  color: var(--ui-ink);
  font-weight: 800;
  box-shadow: 2px 2px 0 var(--ui-ink);
  cursor: pointer;
}

.admin-bar button:hover,
.inline-editor button:hover,
.edit-actions button:hover { transform: translate(1px,1px); box-shadow: 1px 1px 0 var(--ui-ink); }

.scribble { color: var(--ui-blue); }
.crown { width: 70px; height: 48px; }

.eyebrow {
  margin: 0 0 9px;
  color: var(--ui-red-dark);
  font-family: var(--ui-font-mono);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.front-page {
  display: grid;
  grid-template-columns: 34% 31% 35%;
  grid-template-rows: minmax(330px, 58fr) minmax(230px, 42fr);
  min-height: calc(100svh - clamp(92px, 12svh, 124px));
  border-bottom: 3px solid var(--ui-ink);
  background: var(--ui-paper-light);
}

.front-page > * {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
}

.front-portrait { grid-column: 1; grid-row: 1; border-right: 3px solid var(--ui-ink); border-bottom: 3px solid var(--ui-ink); background: var(--ui-ink); }
.front-portrait::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg,rgba(23,79,201,.18),transparent 55%,rgba(223,61,40,.12)); mix-blend-mode: screen; }
.front-portrait img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 46%; filter: saturate(.96) contrast(1.08); }
.portrait-mark { position: absolute; left: 5%; bottom: 10%; z-index: 3; width: 115px; height: 46px; border-top: 5px solid var(--ui-blue); border-radius: 50%; transform: rotate(-15deg); }

.front-manifest { grid-column: 2; grid-row: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 34px 24px 20px; border-right: 3px solid var(--ui-ink); border-bottom: 3px solid var(--ui-ink); background: var(--ui-paper-light); }
.front-manifest h1 { width: min(100%,500px); margin: 0; font-family: var(--ui-font-display); font-size: clamp(36px,2.9vw,52px); font-stretch: condensed; font-weight: 900; line-height: .86; letter-spacing: -.07em; text-align: center; text-transform: uppercase; }
.front-manifest h1 span { display: block; white-space: nowrap; }
.front-manifest h1 i { color: var(--ui-red); font-style: normal; }
.front-manifest h1 span:last-child i { color: var(--ui-blue); }
.front-manifest > p { margin: 19px 0 17px; padding: 7px 14px 6px; background: var(--ui-ink); color: var(--ui-white); font-size: clamp(10px,1.15vw,17px); font-weight: 900; font-style: italic; text-align: center; text-transform: lowercase; transform: rotate(-1deg); }
.front-crown { position: absolute; top: 26px; left: 8%; z-index: 3; width: 62px; height: 44px; color: var(--ui-blue); transform: rotate(-9deg); }
.front-manifest-arrow { position: absolute; top: 18px; left: 40%; z-index: 3; width: 84px; height: 55px; color: var(--ui-ink); transform: rotate(153deg); }
.manifest-symbols { display: flex; gap: clamp(22px,3vw,55px); }
.manifest-symbols svg { width: 25px; height: 25px; }
.front-number { position: absolute; right: 13px; bottom: 8px; color: var(--ui-red); font-family: var(--ui-font-mono); font-size: 10px; }

.paint-label { position: absolute; z-index: 4; display: inline-block; padding: 7px 19px 8px; color: var(--ui-white); font-family: var(--ui-font-display); font-size: clamp(20px,2vw,31px); font-weight: 900; line-height: 1; text-transform: none; transform: rotate(-1deg); }
.paint-label span { position: relative; z-index: 2; display: block; white-space: nowrap; }
.paint-label::before,.paint-label::after { content: ""; position: absolute; inset: -5px -17px; z-index: -1; clip-path: polygon(0 18%,3% 13%,1% 6%,21% 8%,22% 3%,57% 6%,59% 1%,91% 5%,100% 0,98% 18%,100% 28%,98% 43%,100% 54%,98% 70%,100% 82%,97% 91%,100% 97%,73% 94%,71% 100%,40% 95%,38% 100%,9% 95%,0 100%,2% 82%,0 72%,2% 57%,0 45%,2% 31%); }
.paint-label::after { inset: -2px -21px -7px -12px; z-index: -2; opacity: .3; transform: rotate(1.2deg); }
.paint-red::before,.paint-red::after { background: var(--ui-red); }
.paint-blue::before,.paint-blue::after { background: var(--ui-blue); }

.front-video { grid-column: 3; grid-row: 1; padding: 75px 3% 30px; border-bottom: 3px solid var(--ui-ink); background: var(--ui-paper-light); color: var(--ui-white); }
.front-video > header { top: 19px; left: 8%; }
.front-video-visual { position: relative; display: block; height: 100%; border: 7px solid var(--ui-ink); background: #22252d center/cover no-repeat; color: var(--ui-white); text-decoration: none; box-shadow: 0 0 0 1px rgba(17,20,28,.4); cursor: pointer; transition: transform var(--ui-motion-fast), box-shadow var(--ui-motion-fast), border-color var(--ui-motion-fast); }
.front-video-visual:not(.disabled):hover { border-color: var(--ui-white); box-shadow: 6px 6px 0 var(--ui-blue), -3px -3px 0 var(--ui-red); transform: translate(-2px,-2px); }
.front-video-visual:not(.disabled):active { box-shadow: 2px 2px 0 var(--ui-blue); transform: translate(1px,1px); }
.front-video-visual.disabled { cursor: default; }
.front-video-controls { position: absolute; right: 10px; bottom: 9px; left: 10px; z-index: 2; display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 18px 7px 4px; background: linear-gradient(180deg,transparent,rgba(8,10,14,.84)); }
.front-video-play { display: grid; place-items: center; width: 39px; aspect-ratio: 1; border: 3px solid var(--ui-white); border-radius: 50%; background: var(--ui-ink); color: var(--ui-white); font-size: 16px; line-height: 1; text-indent: 2px; box-shadow: 2px 2px 0 var(--ui-red); }
.front-video-progress { height: 6px; overflow: hidden; background: rgba(255,255,255,.22); }
.front-video-progress i { display: block; width: 38%; height: 100%; background: var(--ui-red); }
.front-video-duration { min-width: 39px; font-family: var(--ui-font-mono); font-size: 10px; font-weight: 900; text-align: right; }
.front-video-visual.disabled .front-video-controls { opacity: .45; }
.front-stream small { display: block; margin-bottom: 5px; color: #d0c7b7; font-family: var(--ui-font-mono); font-size: 7px; font-weight: 800; text-transform: uppercase; }
.front-video-arrow { position: absolute; right: 13%; top: 18px; z-index: 5; width: 70px; height: 50px; color: var(--ui-ink); transform: rotate(105deg); }

.front-stream { grid-column: 1; grid-row: 2; padding: 70px 3% 24px; border-right: 3px solid var(--ui-ink); background: var(--ui-paper-light); color: var(--ui-ink); }
.front-stream > header { top: 18px; left: 4%; }
.front-stream-body { display: grid; grid-template-columns: 78px auto minmax(110px,1fr); align-items: center; gap: 12px; height: 100%; padding: 8px; border: 2px solid var(--ui-ink); }
.front-stream time { display: grid; align-content: center; justify-items: center; text-transform: uppercase; }
.front-stream time strong { font-family: var(--ui-font-display); font-size: clamp(45px,4vw,68px); line-height: .75; }
.front-stream time span { margin-top: 12px; font-family: var(--ui-font-mono); font-size: 11px; font-weight: 900; }
.front-stream time b { margin-top: 8px; color: var(--ui-red); font-family: var(--ui-display); font-size: 20px; }
.front-stream-poster { position: relative; width: clamp(112px,10vw,148px); aspect-ratio: 1; overflow: hidden; border: 3px solid var(--ui-ink); background: var(--ui-paper); }
.auction-wheel::before { content: ""; position: absolute; top: 2px; left: 50%; z-index: 3; width: 0; height: 0; border-right: 8px solid transparent; border-left: 8px solid transparent; border-top: 18px solid var(--ui-ink); transform: translateX(-50%); }
.auction-wheel-disc { position: absolute; inset: 11px; border: 3px solid var(--ui-ink); border-radius: 50%; background: repeating-conic-gradient(var(--ui-red) 0 30deg,var(--ui-paper-light) 30deg 60deg,var(--ui-blue) 60deg 90deg,var(--ui-paper-deep) 90deg 120deg); box-shadow: 0 0 0 5px var(--ui-paper),0 0 0 7px var(--ui-ink); animation: auction-wheel-spin 18s linear infinite; }
.auction-wheel-disc::before { content: ""; position: absolute; inset: 18%; border: 2px solid var(--ui-ink); border-radius: 50%; background: var(--ui-paper-light); }
.auction-wheel-disc::after { content: ""; position: absolute; top: 50%; left: 50%; width: 30%; aspect-ratio: 1; border: 2px solid var(--ui-ink); border-radius: 50%; background: var(--ui-paper-light); transform: translate(-50%,-50%); }
.auction-wheel-movie { position: absolute; top: 50%; left: 50%; z-index: 5; width: 35px; height: 25px; border: 3px solid var(--ui-ink); background: var(--ui-paper-light); transform: translate(-50%,-44%) rotate(-3deg); }
.auction-wheel-movie::before { content: ""; position: absolute; right: -3px; bottom: 6px; left: -3px; border-top: 3px solid var(--ui-ink); }
.auction-wheel-movie span { position: absolute; right: -3px; bottom: 100%; left: -3px; height: 9px; border: 3px solid var(--ui-ink); background: repeating-linear-gradient(135deg,var(--ui-ink) 0 5px,var(--ui-paper-light) 5px 10px); transform: rotate(-9deg); transform-origin: left bottom; }
.auction-wheel > i { position: absolute; right: 10px; bottom: 9px; z-index: 4; width: 24px; height: 6px; background: var(--ui-ink); transform: rotate(-25deg); }
@keyframes auction-wheel-spin { to { transform: rotate(360deg); } }
.front-stream-copy { display: flex; flex-direction: column; justify-content: center; }
.front-stream-copy small { margin-bottom: 8px; color: var(--ui-red-dark); font-size: clamp(9px,.72vw,11px); line-height: 1.2; letter-spacing: .04em; }
.front-stream h2 { margin: 0; font-family: var(--ui-font-display); font-size: clamp(17px,1.65vw,26px); font-weight: 900; line-height: .98; text-transform: uppercase; }
.front-stream-action { position: absolute; left: 6%; bottom: 12px; z-index: 5; min-width: 140px; padding: 9px 15px; background: var(--ui-blue); color: var(--ui-white); font-family: var(--ui-mono); font-size: 8px; font-weight: 900; text-align: center; text-decoration: none; text-transform: uppercase; }

.front-more-videos { grid-column: 2 / 4; grid-row: 2; display: grid; align-items: center; padding: 68px 2% 22px; background: var(--ui-paper-light); color: var(--ui-ink); }
.front-more-videos > header { top: 18px; left: 3%; }
.front-video-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); align-items: center; gap: 12px; }
.front-more-video { display: block; width: 100%; aspect-ratio: 16/9; border: 5px solid var(--ui-ink); border-bottom-color: var(--ui-red); background: var(--ui-ink) center/cover no-repeat; box-shadow: 3px 3px 0 rgba(17,20,28,.18); cursor: pointer; transition: transform var(--ui-motion-fast), box-shadow var(--ui-motion-fast), border-color var(--ui-motion-fast); }
.front-more-video:nth-child(2) { border-bottom-color: var(--ui-blue); }
.front-more-video:hover { z-index: 2; border-color: var(--ui-white); box-shadow: 6px 6px 0 var(--ui-blue),-3px -3px 0 var(--ui-red); transform: translate(-2px,-2px) rotate(-.5deg); }
.front-more-video:nth-child(2):hover { transform: translate(-2px,-2px) rotate(.5deg); }
.front-more-video:active { box-shadow: 2px 2px 0 var(--ui-blue); transform: translate(1px,1px); }
.front-more-videos-mascot { position: absolute; top: 7px; right: 7%; width: 42px; height: 34px; color: var(--ui-blue); }
.front-more-videos > .front-number { top: 8px; right: 1%; bottom: auto; }
.front-empty { display: grid; place-items: center; min-height: 130px; margin: 0; font-family: var(--ui-font-mono); font-size: 8px; text-transform: uppercase; }

.section {
  position: relative;
  padding: 42px 22px;
  border-right: 2px solid var(--ui-ink);
  border-bottom: 3px solid var(--ui-ink);
  border-left: 2px solid var(--ui-ink);
  scroll-margin-top: 56px;
}

.section-head {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 21px;
}

.section-head h2 {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--ui-white);
  font-family: var(--ui-font-display);
  font-size: clamp(28px, 3.6vw, 40px);
  font-stretch: condensed;
  font-weight: 900;
  line-height: .95;
  letter-spacing: -.035em;
  text-transform: uppercase;
}

.marker-title {
  position: relative;
  display: inline-block;
  padding: 8px 18px 7px;
  transform: rotate(-.45deg);
}

.marker-title::before,
.marker-title::after {
  content: "";
  position: absolute;
  inset: 2px -8px 1px -7px;
  z-index: 0;
  clip-path: polygon(1% 13%, 98% 0, 100% 82%, 4% 100%);
}

.marker-title::after { inset: 5px -4px -2px -10px; opacity: .45; transform: rotate(.8deg); }
.marker-red::before, .marker-red::after { background: var(--ui-red); }
.marker-blue::before, .marker-blue::after { background: var(--ui-blue); }

.section-head > span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 27px;
  border: 2px solid var(--ui-ink);
  color: var(--ui-ink);
  font-family: var(--ui-font-mono);
  font-size: 9px;
  font-weight: 800;
}

.section-arrow {
  position: absolute;
  right: 48px;
  bottom: -14px;
  width: 70px;
  height: 46px;
  color: var(--ui-ink);
  transform: rotate(9deg);
}

.arrow-flipped { transform: scaleX(-1) rotate(7deg); }
.section-intro { margin: -9px 0 17px; color: var(--ui-muted); font-size: 12px; }

.video-editor-only { margin: 18px 22px; }

.schedule-layout { display: grid; grid-template-columns: minmax(420px,.95fr) minmax(0,1.05fr); gap: 14px; }

.calendar,.events { border: 2px solid var(--ui-ink); border-radius: 0; box-shadow: 3px 3px 0 rgba(17,20,28,.13); }
.calendar { padding: 14px; background: rgba(243,234,216,.86); }
.calendar-head { display: grid; grid-template-columns: 42px minmax(0,1fr) auto 42px; align-items: center; gap: 12px; margin-bottom: 12px; }
.calendar-head strong { font-family: var(--ui-font-display); font-size: clamp(22px,2.1vw,32px); font-weight: 900; text-align: center; text-transform: uppercase; }
.calendar-head span { padding: 5px 8px; background: var(--ui-red); color: var(--ui-white); font-family: var(--ui-font-mono); font-size: 9px; font-weight: 900; text-transform: uppercase; }
.calendar-head button { width: 42px; height: 38px; padding: 0; border: 0; background: var(--ui-ink); color: var(--ui-white); font-size: 27px; cursor: pointer; }
.calendar-head button:hover { background: var(--ui-blue); }
.calendar-grid { display: grid; grid-template-columns: repeat(7,1fr); border-top: 1px solid var(--ui-ink); border-left: 1px solid var(--ui-ink); }
.weekday { padding: 8px 2px; border-right: 1px solid var(--ui-ink); border-bottom: 1px solid var(--ui-ink); color: var(--ui-ink); font-family: var(--ui-font-display); font-size: 13px; font-weight: 900; text-align: center; text-transform: uppercase; }
.calendar-day { display: grid; place-items: center; align-content: center; min-height: clamp(52px,5vw,76px); border-right: 1px solid var(--ui-ink); border-bottom: 1px solid var(--ui-ink); color: var(--ui-ink); font-family: var(--ui-font-display); }
.calendar-day b { font-size: clamp(19px,2vw,30px); line-height: 1; }
.calendar-day small { margin-top: 3px; font-family: var(--ui-font-mono); font-size: 10px; font-weight: 900; }
.calendar-day.today { outline: 3px solid var(--ui-ink); outline-offset: -5px; }
.calendar-day.stream { background: var(--ui-blue); color: var(--ui-white); }
.calendar-day.stream-1 { background: var(--ui-red); }
.calendar-day.stream-2 { background: var(--ui-ink); }

.events { min-height: 300px; overflow: hidden; background: var(--ui-ink); color: var(--ui-paper-light); }
.events::before { content: "Ближайшие эфиры"; display: block; width: fit-content; margin: 14px 16px 5px; padding: 7px 14px 6px; background: var(--ui-red); color: var(--ui-white); font-family: var(--ui-font-display); font-size: 24px; font-weight: 900; text-transform: uppercase; transform: rotate(-.5deg); }
.event { display: grid; grid-template-columns: 64px minmax(0,1fr) 24px; align-items: center; gap: 16px; min-height: 92px; padding: 11px 18px; border-bottom: 1px solid rgba(243,234,216,.8); color: inherit; text-decoration: none; }
a.event:hover { background: rgba(41,85,174,.34); }
.event:last-child { border-bottom: 0; }
.event time { display: grid; justify-items: center; padding-right: 14px; border-right: 2px solid var(--ui-paper); }
.event time b { font-family: var(--ui-font-display); font-size: 36px; font-weight: 900; line-height: .9; }
.event time span,.event-copy > span { color: #6f9cff; font-family: var(--ui-font-mono); font-size: 10px; font-weight: 900; text-transform: uppercase; }
.event h3 { margin: 5px 0 0; font-family: var(--ui-font-display); font-size: clamp(18px,1.7vw,25px); font-weight: 900; line-height: .95; text-transform: uppercase; }
.event p { margin: 5px 0 0; overflow: hidden; color: #c9c3b7; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }

.empty { display: flex; flex-direction: column; justify-content: center; min-height: 300px; padding: 34px; }
.empty strong { font-family: var(--ui-font-display); font-size: 25px; font-weight: 900; text-transform: uppercase; }
.empty p { margin-bottom: 0; color: var(--ui-muted); font-size: 12px; }

.game-auction { position: relative; padding: 22px 0 15px; overflow: hidden; border: 2px solid var(--ui-ink); border-top: 0; background: transparent; scroll-margin-top: 56px; }
.game-auction::before,.game-auction::after { content: "⊕"; position: absolute; z-index: 4; color: var(--ui-red); font-family: Arial,sans-serif; font-size: 34px; font-weight: 300; line-height: 1; }
.game-auction::before { top: 8px; left: 8px; }
.game-auction::after { right: 8px; bottom: 8px; }
.game-auction-head { margin: 0 22px 16px; }
.game-auction-head .section-arrow { right: 50px; }
.game-auction-viewport { width: 100%; padding: 4px clamp(30px,4vw,68px) 6px; overflow-x: auto; overflow-y: hidden; overscroll-behavior-inline: contain; scrollbar-width: none; scroll-snap-type: x mandatory; scroll-padding-left: clamp(30px,4vw,68px); }
.game-auction-viewport::-webkit-scrollbar { display: none; }
.game-auction-track { display: flex; gap: 14px; width: max-content; min-width: 100%; }
.auction-game { flex: 0 0 clamp(190px,15.4vw,250px); display: grid; grid-template-rows: minmax(0,1fr) auto; height: clamp(350px,31vw,455px); overflow: hidden; border: 2px solid var(--ui-ink); border-radius: 6px; background: rgba(255,250,240,.4); scroll-snap-align: start; }
.auction-game-cover { display: grid; place-items: center; min-height: 0; background: var(--ui-ink) center/cover no-repeat; color: var(--ui-paper); font-family: var(--ui-font-display); font-size: 32px; font-weight: 900; }
.auction-game-copy { display: grid; grid-template-columns: 1fr; gap: 7px; min-height: 116px; padding: 11px 10px 10px; border-top: 2px solid var(--ui-ink); }
.auction-game h3 { margin: 0; overflow: hidden; font-family: var(--ui-font-display); font-size: clamp(18px,1.45vw,24px); font-stretch: condensed; font-weight: 900; line-height: 1; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.auction-game-meter { height: 12px; overflow: hidden; border-radius: 12px; background: rgba(17,20,28,.17); }
.auction-game-meter span { display: block; height: 100%; border-radius: inherit; background: var(--ui-blue); }
.auction-game-copy > b { color: var(--ui-blue-dark); font-family: var(--ui-font-mono); font-size: clamp(21px,1.75vw,28px); font-weight: 900; line-height: 1; letter-spacing: -.04em; }
.auction-game-copy p { margin: 0; font-family: var(--ui-font-mono); font-size: clamp(11px,1vw,16px); line-height: 1; white-space: nowrap; }
.game-auction-empty { min-width: calc(100vw - 40px); min-height: 330px; margin: 0; display: grid; place-items: center; font-family: var(--ui-font-display); font-size: 30px; text-transform: uppercase; }
.game-auction-controls { display: grid; grid-template-columns: 48px minmax(0,1fr) auto 48px; align-items: center; gap: 16px; padding: 10px 2.5% 0; }
.game-auction-button { display: grid; place-items: center; width: 48px; height: 42px; border: 0; border-radius: 5px; background: var(--ui-ink); color: var(--ui-white); font-family: Arial,sans-serif; font-size: 34px; line-height: 1; cursor: pointer; }
.game-auction-button:hover:not(:disabled) { background: var(--ui-blue); }
.game-auction-button:disabled { opacity: .35; cursor: default; }
.game-auction-scroll { display: flex; align-items: center; height: 26px; cursor: ew-resize; }
.game-auction-scroll input { width: 100%; height: 26px; margin: 0; appearance: none; background: transparent; cursor: grab; }
.game-auction-scroll input:active { cursor: grabbing; }
.game-auction-scroll input::-webkit-slider-runnable-track { height: 4px; border: 1px solid var(--ui-ink); border-radius: 4px; background: rgba(17,20,28,.22); }
.game-auction-scroll input::-webkit-slider-thumb { width: 24px; height: 18px; margin-top: -8px; appearance: none; border: 2px solid var(--ui-ink); border-radius: 4px; background: var(--ui-blue); box-shadow: 2px 2px 0 rgba(17,20,28,.28); }
.game-auction-scroll input::-moz-range-track { height: 3px; border: 1px solid var(--ui-ink); border-radius: 4px; background: rgba(17,20,28,.22); }
.game-auction-scroll input::-moz-range-thumb { width: 22px; height: 16px; border: 2px solid var(--ui-ink); border-radius: 4px; background: var(--ui-blue); box-shadow: 2px 2px 0 rgba(17,20,28,.28); }
.game-auction-scroll input:focus-visible { outline: 2px solid var(--ui-red); outline-offset: 3px; }
.game-auction-controls em { margin-right: -5px; color: var(--ui-blue-dark); font-family: cursive; font-size: clamp(16px,1.45vw,22px); white-space: nowrap; transform: rotate(-3deg); }

.telegram-section { padding-bottom: 24px; overflow: hidden; }
.telegram-posts { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; min-height: 360px; }
.telegram-post { display: grid; min-width: 0; min-height: 360px; overflow: hidden; border: 2px solid var(--ui-ink); border-radius: 5px; background: rgba(243,234,216,.74); color: var(--ui-ink); text-decoration: none; transition: transform .15s ease,box-shadow .15s ease; }
.telegram-post:hover { box-shadow: 5px 5px 0 var(--ui-blue); transform: translate(-2px,-2px); }
.telegram-post.media-vertical { grid-template-columns: 48% 52%; }
.telegram-post.media-horizontal { grid-template-rows: minmax(150px,.72fr) minmax(150px,1fr); }
.telegram-post.media-none { place-items: center; background: linear-gradient(145deg,rgba(41,85,174,.08),transparent 55%),rgba(243,234,216,.78); }
.telegram-media { position: relative; min-height: 0; background: var(--ui-ink) center/cover no-repeat; }
.telegram-play { position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 56px; height: 56px; padding-left: 4px; border: 3px solid var(--ui-white); border-radius: 50%; background: rgba(17,20,28,.62); color: var(--ui-white); font-size: 22px; transform: translate(-50%,-50%); }
.telegram-media small { position: absolute; right: 8px; bottom: 7px; padding: 4px 6px; background: var(--ui-ink); color: var(--ui-white); font-family: var(--ui-font-mono); font-size: 10px; }
.telegram-copy { position: relative; display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: 20px; }
.telegram-copy time { align-self: flex-start; margin-bottom: 15px; padding-bottom: 5px; border-bottom: 4px solid var(--ui-red); color: var(--ui-blue-dark); font-family: var(--ui-font-display); font-size: 22px; font-weight: 900; text-transform: uppercase; }
.telegram-copy h3 { margin: 0; font-family: var(--ui-font-display); font-size: clamp(21px,2vw,30px); font-weight: 900; line-height: 1; text-transform: uppercase; }
.telegram-copy p { display: -webkit-box; margin: 15px 0 0; overflow: hidden; font-size: 13px; line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 6; }
.telegram-copy > span { position: absolute; right: 16px; bottom: 13px; color: var(--ui-blue); font-size: 28px; font-weight: 900; }
.telegram-loading { grid-column: 1/-1; display: grid; place-items: center; min-height: 240px; margin: 0; border: 2px dashed var(--ui-ink); font-family: var(--ui-font-display); font-size: 24px; text-transform: uppercase; }
.telegram-channel-link { display: flex; align-items: center; gap: 8px; width: fit-content; margin: 12px 0 22px auto; color: var(--ui-blue-dark); font-family: var(--ui-font-display); font-size: 17px; font-weight: 900; text-decoration: none; text-transform: uppercase; }
.telegram-channel-link span { font-size: 23px; }

.supporters { margin: 0 -22px -24px; padding: 14px 0 16px; border-top: 3px solid var(--ui-ink); }
.supporters-head { position: relative; display: flex; align-items: center; gap: 15px; padding: 0 5% 12px; }
.supporters-head > span { color: var(--ui-red); font-size: 39px; }
.supporters-head h2 { margin: 0; font-family: var(--ui-font-display); font-size: clamp(32px,4vw,54px); font-weight: 900; line-height: .9; text-transform: uppercase; }
.supporters-head svg { width: 70px; height: 45px; color: var(--ui-ink); transform: rotate(14deg); }
.supporter-row { width: 100%; overflow: hidden; border-top: 2px solid var(--ui-ink); border-bottom: 2px solid var(--ui-ink); }
.supporter-row-dark { background: var(--ui-ink); color: var(--ui-paper-light); }
.supporter-row-light { margin-top: 9px; background: rgba(243,234,216,.6); color: var(--ui-ink); }
.supporter-track { display: flex; align-items: center; gap: 38px; width: max-content; padding: 10px 0; will-change: transform; }
.supporter-track span { display: inline-flex; align-items: center; gap: 12px; font-family: var(--ui-font-display); font-size: 22px; font-weight: 900; white-space: nowrap; }
.supporter-track i { color: var(--ui-red); font-family: Arial,sans-serif; font-style: normal; font-size: 21px; }
.supporter-track span:nth-child(3n) i { color: var(--ui-blue); }
.supporter-track-left { animation: supporter-left 42s linear infinite; }
.supporter-track-right { animation: supporter-right 46s linear infinite; }
.supporter-row:hover .supporter-track { animation-play-state: paused; }
.supporters-note { margin: 11px 0 0; color: var(--ui-blue-dark); font-family: cursive; font-size: 22px; text-align: center; transform: rotate(-1deg); }
.supporters-note i { font-family: Arial,sans-serif; font-style: normal; }
@keyframes supporter-left { to { transform: translateX(-50%); } }
@keyframes supporter-right { from { transform: translateX(-50%); } to { transform: translateX(0); } }

.inline-editor { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; margin-top: 16px; padding: 20px; border: 3px solid var(--ui-ink); border-radius: var(--ui-radius-sm); background: var(--ui-paper-light); box-shadow: var(--ui-shadow-print); }
.inline-editor[hidden] { display: none; }
.inline-editor h3, .inline-editor .editor-title { grid-column: 1/-1; }
.inline-editor h3 { font-family: var(--ui-font-display); font-size: 23px; text-transform: uppercase; }
.inline-editor label { display: grid; gap: 6px; color: var(--ui-muted); font-size: 10px; font-weight: 800; }
.inline-editor label.wide { grid-column: 1/-1; }
.inline-editor input, .inline-editor textarea { width: 100%; padding: 9px 10px; border: 2px solid var(--ui-ink); border-radius: 0; outline: none; background: #fff9eb; color: var(--ui-ink); resize: vertical; }
.inline-editor input:focus, .inline-editor textarea:focus { box-shadow: 3px 3px 0 var(--ui-blue); }
.inline-action { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; }
.editor-title { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
#streamEditors { grid-column: 1/-1; display: grid; gap: 10px; }
.stream-editor { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 11px; padding: 14px; border: 2px solid var(--ui-ink); background: var(--ui-paper); }
.stream-editor .remove-stream { grid-column: 1/-1; justify-self: end; border-color: var(--ui-danger); color: var(--ui-danger); }

.edit-actions { position: fixed; right: 0; bottom: 0; left: 0; z-index: 60; display: flex; align-items: center; justify-content: flex-end; gap: 10px; min-height: 62px; padding: 8px max(20px,calc((100% - 1180px)/2)); border-top: 3px solid var(--ui-ink); background: rgba(243,234,216,.98); box-shadow: 0 -5px 0 rgba(17,20,28,.13); }
.edit-actions[hidden] { display: none; }
.edit-actions span { margin-right: auto; color: var(--ui-muted); font-size: 11px; }
.edit-actions .primary { background: var(--ui-red); color: var(--ui-white); }

.site-footer { display: flex; align-items: center; gap: 11px; min-height: 82px; padding: 13px 20px; background: var(--ui-ink); color: var(--ui-white); }
.site-footer img { width: 42px; height: 42px; border-radius: 50%; }
.site-footer span { font-family: var(--ui-font-display); font-size: 20px; font-weight: 900; text-transform: uppercase; }
.site-footer i { flex: 1; border-top: 1px solid #625e56; }
.site-footer small { color: #bdb5a7; font-family: var(--ui-font-mono); font-size: 8px; text-transform: uppercase; }

@media (max-width: 1100px) {
  .site-header {
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "brand socials support";
  }
  .site-header nav { display: none; }
}

@media (max-width: 900px) {
  .front-page { grid-template-columns: 1fr 1fr; grid-template-rows: 410px 360px 320px; min-height: auto; }
  .front-portrait { grid-column: 1; grid-row: 1; }
  .front-manifest { grid-column: 2; grid-row: 1; border-right: 0; }
  .front-video { grid-column: 1; grid-row: 2; }
  .front-stream { grid-column: 2; grid-row: 2; border-right: 0; }
  .front-more-videos { grid-column: 1 / 3; grid-row: 3; }
  .schedule-layout { grid-template-columns: 1fr; }
  .telegram-posts { grid-template-columns: 1fr 1fr; }
  .telegram-post:last-child { grid-column: 1/-1; min-height: 300px; }
  .telegram-post.media-horizontal:last-child { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
  .auction-game { flex-basis: 220px; height: 400px; }
}

@media (max-width: 650px) {
  .site-header, main, .site-footer { width: 100%; }
  .site-header {
    grid-template-columns: minmax(0,1fr) auto;
    grid-template-areas:
      "brand support"
      "socials socials";
    gap: 7px 9px;
    min-height: 66px;
    padding: 7px 10px 0;
  }
  .site-header nav { display: none; }
  .brand { gap: 9px; }
  .brand-mark { width: 48px; height: 48px; }
  .brand-name { font-size: 25px; }
  .header-support { justify-content: center; width: 43px; height: 43px; padding: 5px; box-shadow: 2px 2px 0 var(--ui-red); }
  .header-support > span { display: none; }
  .header-support svg { width: 27px; height: 27px; }
  .header-socials {
    justify-content: center;
    gap: 7px;
    padding: 5px 0 7px;
    border-top: 1px solid #55534f;
  }
  .header-socials a { width: 32px; height: 32px; }
  .header-socials svg { width: 18px; height: 18px; }
  .admin-bar { flex-wrap: wrap; }
  .admin-bar span { display: none; }
  .front-page { display: flex; flex-direction: column; }
  .front-portrait { min-height: 410px; border-right: 0; border-bottom: 3px solid var(--ui-ink); }
  .front-portrait img { position: absolute; inset: 0; }
  .front-manifest { min-height: 390px; border-right: 0; border-left: 0; }
  .front-manifest h1 { font-size: clamp(32px,8.7vw,38px); }
  .front-video { min-height: 390px; }
  .front-video-visual { min-height: 285px; }
  .front-stream { min-height: 310px; border-right: 0; border-bottom: 3px solid var(--ui-ink); }
  .front-stream-body { grid-template-columns: 64px auto minmax(90px,1fr); }
  .front-stream-poster { width: 104px; }
  .front-more-videos { min-height: 680px; padding: 72px 14px 24px; }
  .front-video-list { grid-template-columns: 1fr; }
  .game-auction { padding-top: 18px; }
  .game-auction::before,.game-auction::after { font-size: 25px; }
  .game-auction-head { margin: 0 12px 16px; }
  .game-auction-viewport { padding: 4px 22px 6px; scroll-padding-left: 22px; }
  .game-auction-track { gap: 12px; }
  .auction-game { flex-basis: min(66vw,238px); height: 390px; }
  .auction-game-copy { min-height: 120px; padding: 11px 10px 10px; }
  .auction-game h3 { font-size: 21px; }
  .auction-game-meter { height: 11px; }
  .auction-game-copy > b { font-size: 23px; }
  .auction-game-copy p { font-size: 12px; }
  .game-auction-controls { grid-template-columns: 40px minmax(0,1fr) 40px; gap: 10px; padding: 9px 14px 0; }
  .game-auction-button { width: 40px; height: 36px; font-size: 29px; }
  .game-auction-controls em { display: none; }
  .section { padding: 34px 12px; }
  .section-head { margin-bottom: 18px; }
  .section-head h2 { font-size: 27px; }
  .marker-title { padding: 7px 12px 6px; }
  .section-arrow { display: none; }
  .video-editor-only { margin: 14px 12px; }
  .calendar { padding: 11px 7px; }
  .calendar-head { grid-template-columns: 36px minmax(0,1fr) 36px; gap: 7px; }
  .calendar-head strong { font-size: 20px; }
  .calendar-head span { grid-column: 1/-1; grid-row: 2; justify-self: center; }
  .calendar-head button { grid-row: 1; width: 36px; height: 34px; }
  .calendar-head button:last-child { grid-column: 3; }
  .calendar-day { min-height: 48px; }
  .calendar-day b { font-size: 18px; }
  .calendar-day small { font-size: 8px; }
  .events, .empty { min-height: 190px; }
  .events::before { font-size: 20px; }
  .event { grid-template-columns: 48px minmax(0,1fr) 14px; gap: 9px; min-height: 86px; padding: 11px 9px; }
  .event time { padding-right: 8px; }
  .event time b { font-size: 28px; }
  .telegram-posts { grid-template-columns: 1fr; }
  .telegram-post,.telegram-post:last-child { grid-column: auto; min-height: 340px; }
  .telegram-post.media-horizontal,.telegram-post.media-horizontal:last-child { grid-template-columns: none; grid-template-rows: minmax(150px,.72fr) minmax(150px,1fr); }
  .telegram-post.media-vertical { grid-template-columns: 44% 56%; }
  .telegram-copy { padding: 15px; }
  .telegram-copy time { font-size: 18px; }
  .telegram-copy h3 { font-size: 20px; }
  .telegram-copy p { font-size: 12px; -webkit-line-clamp: 5; }
  .supporters { margin-right: -12px; margin-left: -12px; }
  .supporters-head { gap: 9px; padding-inline: 14px; }
  .supporters-head > span { font-size: 28px; }
  .supporters-head h2 { font-size: 28px; }
  .supporters-head svg { display: none; }
  .supporter-track { gap: 28px; }
  .supporter-track span { font-size: 19px; }
  .supporters-note { font-size: 18px; }
  .inline-editor, .stream-editor { grid-template-columns: 1fr; }
  .inline-editor label.wide, .stream-editor label.wide { grid-column: auto; }
  .inline-action { grid-template-columns: 1fr; }
  .edit-actions span { display: none; }
  .site-footer small { display: none; }
}

@media (max-width: 360px) {
  .brand-mark { width: 42px; height: 42px; }
  .brand-name { font-size: 20px; }
  .header-support { width: 39px; height: 39px; }
}
