/* Эфир «Ближе к Солнцу»: сцена ведущей, чат справа (на телефоне — снизу), кнопка-призыв поверх сцены.
   Цвета марки — как на страницах записи k-solncy.ru/efir: глубокий синий, оранжевое солнце-действие. */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/assets/fonts/manrope-cyrillic.woff2) format("woff2");
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/assets/fonts/manrope-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122;
}
:root {
  --night: #050a2e;
  --navy: #0b1672;
  --blue: #0260e8;
  --sun: #ff9700;
  --sun-2: #ffc247;
  --line: rgba(255, 255, 255, 0.12);
  --text: #eef2ff;
  --muted: rgba(238, 242, 255, 0.66);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100vh;
  min-height: 100dvh;
  background: radial-gradient(900px 500px at 90% -10%, rgba(255, 151, 0, 0.18), transparent 60%), linear-gradient(180deg, var(--night), #08104a);
  color: var(--text);
  font: 500 16px/1.5 "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  display: flex;
  flex-direction: column;
}
a { color: var(--sun-2); }
.top { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.top img { width: 34px; height: 34px; border-radius: 10px; background: #fff; padding: 2px; }
.top__title { font-weight: 800; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live { display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px; border-radius: 999px; background: rgba(255, 77, 77, 0.16); color: #ffb4b4; font-size: 12px; font-weight: 800; letter-spacing: 0.06em; white-space: nowrap; }
.live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #ff4d4d; animation: pulse 1.6s ease-out infinite; }
.live.off { background: rgba(255, 255, 255, 0.08); color: var(--muted); }
.live.off::before { background: var(--muted); animation: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 77, 77, 0.6); } 100% { box-shadow: 0 0 0 10px rgba(255, 77, 77, 0); } }

.main { flex: 1; display: grid; grid-template-columns: 1fr; min-height: 0; }
@media (min-width: 1024px) { .main { grid-template-columns: 1fr 360px; } }
.stage { position: relative; background: #000; min-height: 56vw; display: flex; align-items: safe center; justify-content: center; overflow-x: hidden; overflow-y: auto; }
@media (min-width: 1024px) { .stage { min-height: 0; height: calc(100dvh - 59px); } }
.stage video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.pip { position: absolute; right: 14px; bottom: 14px; width: 24%; min-width: 120px; border-radius: 14px; overflow: hidden; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); }
.pip video { object-fit: cover; aspect-ratio: 16 / 9; }

.wait { text-align: center; padding: 32px 20px; max-width: 540px; }
.wait h1, .wait h2 { margin: 0 0 10px; font-size: clamp(24px, 3.6vw, 36px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.wait p { color: var(--muted); margin: 0 0 18px; }
.sun { width: 84px; height: 84px; margin: 0 auto 18px; border-radius: 50%; background: radial-gradient(circle at 40% 40%, #fff3c4, var(--sun-2) 35%, var(--sun) 70%); box-shadow: 0 0 60px rgba(255, 151, 0, 0.55); animation: breathe 4s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.07); } }
.count { display: inline-grid; grid-template-columns: repeat(4, 68px); gap: 8px; margin: 6px 0 18px; }
.count div { border: 1px solid var(--line); border-radius: 14px; padding: 10px 4px; background: rgba(255, 255, 255, 0.05); }
.count b { display: block; font-size: 26px; font-variant-numeric: tabular-nums; }
.count span { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 14px 26px; border: 0; border-radius: 999px; cursor: pointer; font: inherit; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--sun-2), var(--sun) 45%, #ff6a00); box-shadow: 0 10px 30px rgba(255, 120, 0, 0.35); text-decoration: none; transition: transform 0.15s ease, filter 0.15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn:disabled { filter: saturate(0.35) brightness(0.8); cursor: default; transform: none; }
.btn.ghost { background: rgba(255, 255, 255, 0.08); box-shadow: none; border: 1px solid var(--line); }
.btn.on { background: rgba(255, 151, 0, 0.22); border: 1px solid rgba(255, 194, 71, 0.6); box-shadow: none; }
.btn.sm { min-height: 40px; padding: 9px 16px; font-size: 14px; }
.btn.danger { background: #b4232a; box-shadow: none; }

.side { display: flex; flex-direction: column; border-left: 1px solid var(--line); min-height: 0; background: rgba(5, 10, 46, 0.6); }
@media (max-width: 1023px) { .side { border-left: 0; border-top: 1px solid var(--line); min-height: 50vh; } }
.side__head { padding: 14px 16px; font-weight: 800; border-bottom: 1px solid var(--line); }
.chat { flex: 1; overflow-y: auto; padding: 12px 16px; display: flex; flex-direction: column; gap: 10px; min-height: 0; max-height: calc(100dvh - 170px); }
.msg { font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.msg b { display: block; font-size: 12px; color: var(--muted); margin-bottom: 2px; }
.msg.host { background: rgba(255, 151, 0, 0.12); border: 1px solid rgba(255, 151, 0, 0.28); border-radius: 12px; padding: 8px 10px; }
.msg.host b { color: var(--sun-2); }
.msg.mine b { color: #9cc4ff; }
.compose { display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line); }
.compose input { flex: 1; min-width: 0; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.06); color: var(--text); padding: 0 12px; font: inherit; }
.compose input:focus { outline: none; border-color: var(--sun-2); }

.cta { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 5; border-radius: 20px; padding: 16px; background: rgba(11, 22, 114, 0.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(255, 194, 71, 0.45); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45); animation: up 0.4s ease; }
@media (min-width: 720px) { .cta { left: auto; right: 16px; bottom: 16px; width: 420px; } }
@keyframes up { from { transform: translateY(30px); opacity: 0; } }
.cta h3 { margin: 0 0 4px; font-size: 18px; }
.cta p { margin: 0 0 12px; color: var(--muted); font-size: 14px; }
.slots { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.slot { min-height: 44px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.06); color: var(--text); font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; }
.slot:hover { border-color: var(--sun-2); }
.ok { color: #9ff0c3; font-weight: 700; }
.err { color: #ffb4b4; }
.audio { position: absolute; top: 12px; left: 12px; z-index: 6; }

/* Комната ожидания: слайдшоу броней и музыка */
.room { display: grid; gap: 14px; justify-items: center; margin-top: 8px; }
.slides { margin: 0; width: min(260px, 66vw); }
.slides .slide { width: 100%; aspect-ratio: 9 / 12; max-height: 44vh; object-fit: cover; object-position: top; border-radius: 18px; border: 1px solid var(--line); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45); transition: opacity 0.45s ease, transform 0.45s ease; background: #0b1240; }
.slides .slide.out { opacity: 0; transform: scale(0.97); }
.slides figcaption { font-size: 12px; color: var(--muted); margin-top: 8px; }
.player { display: grid; gap: 4px; justify-items: center; }
.player small { color: var(--muted); font-size: 12px; }
@media (min-width: 1024px) { .stage .wait { max-width: 760px; } .room { grid-template-columns: auto auto; align-items: center; gap: 28px; } }
.bar { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line); background: rgba(5, 10, 46, 0.85); align-items: center; }
.stats { display: flex; gap: 16px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.stats b { color: var(--text); font-size: 16px; }
.list { max-width: 1040px; margin: 0 auto; padding: 24px 16px; width: 100%; }
.list h1 { font-size: 28px; margin: 0 0 16px; }
.card { display: flex; align-items: center; gap: 14px; justify-content: space-between; padding: 16px; border: 1px solid var(--line); border-radius: 16px; margin-bottom: 10px; background: rgba(255, 255, 255, 0.04); }
.card small { color: var(--muted); display: block; }
.tabs { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; }
th { color: var(--muted); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; }
.scroll { overflow-x: auto; }
.hidden { display: none !important; }
@media (prefers-reduced-motion: reduce) { *, *::before { animation: none !important; transition: none !important; } }
