/* Гостевая страница: максимально минималистично — фоновое видео
   как на sberstudios.ru, логотип, статус или дубли. Без внешних
   ресурсов; акцент — зелёный «скотч» логотипа. */

:root {
  --text: #f2f4ef;
  --muted: rgba(242, 244, 239, 0.65);
  --accent: #b9e34d;
  --card: rgba(5, 6, 10, 0.55);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  min-height: 100dvh;
  background: #05060a;
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.5;
}

/* --- фон ------------------------------------------------------------------ */

#bg-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

#bg-shade {
  position: fixed;
  inset: 0;
  z-index: 1;
  background: rgba(3, 4, 7, 0.45);
}

/* --- контент --------------------------------------------------------------- */

#app {
  position: relative;
  z-index: 2;
  max-width: 30rem;
  margin: 0 auto;
  padding: 2.2rem 1.25rem 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6rem;
}

.logo {
  width: 8.5rem;
  height: 8.5rem;
  object-fit: cover;
  border-radius: 1rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
}

/* --- статусные экраны ------------------------------------------------------ */

.status {
  text-align: center;
  margin-top: 2.5rem;
}

.status h1 {
  font-size: 1.45rem;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.status p {
  margin-top: 0.6rem;
  color: var(--muted);
}

/* «готовится…» — бегущие точки */
.dots::after {
  content: "…";
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  animation: dots 1.6s steps(4, end) infinite;
  width: 0;
}

@keyframes dots {
  to { width: 1.1em; }
}

@media (prefers-reduced-motion: reduce) {
  .dots::after { animation: none; width: auto; }
}

/* --- дубли ------------------------------------------------------------------ */

section[data-screen="clips"] {
  width: 100%;
}

.hint {
  text-align: center;
  color: var(--text);
  font-size: 1.6rem;
  line-height: 1.35;
  margin-top: 1.5rem;
}

#clip-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.clip {
  background: var(--card);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.clip video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.clip-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1rem;
}

.clip-num {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.download {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  padding: 0.35rem 0.2rem;
}

.download:active { opacity: 0.7; }

.hint-sub {
  font-size: 1.1rem;
  color: var(--muted);
}

/* iPhone/iPad (тач): сохранение долгим нажатием — прячем «Скачать»,
   показываем подсказку; остальные — наоборот (класс ставит app.js). */
body.save-longpress .download { display: none; }
body.save-download .hint { display: none; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
