/* Витрина видеотеки — минимальный тёмный стиль, без внешних зависимостей. */
:root {
  --bg: #0f1115;
  --panel: #171a21;
  --line: #262b35;
  --text: #e8eaed;
  --muted: #98a0ad;
  --accent: #2ea6ff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

.wrap { max-width: 1040px; margin: 0 auto; padding: 32px 20px 64px; }
.center { text-align: center; padding-top: 12vh; }

h1 { font-size: 30px; margin: 0 0 12px; letter-spacing: -0.01em; }
.h1--sm { font-size: 22px; margin-bottom: 16px; }
.lead { color: var(--muted); margin: 0 0 28px; }
.hint { color: var(--muted); font-size: 14px; margin-top: 18px; }

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  padding: 13px 26px;
  border-radius: 10px;
  font-weight: 600;
}
.btn:hover { filter: brightness(1.08); }

.bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}
.link { color: var(--accent); text-decoration: none; }
.who b { color: var(--text); font-weight: 600; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}

.card {
  display: block;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color .15s ease, transform .15s ease;
}
.card:hover { border-color: var(--accent); transform: translateY(-2px); }

.poster { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.poster--empty { background: linear-gradient(135deg, #1d222c, #12151b); }

.card__body { padding: 12px 14px 14px; }
.card__title { font-weight: 600; font-size: 15px; }
.card__meta { color: var(--muted); font-size: 13px; margin-top: 4px; }

.player {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
}
/* И статический iframe, и контейнер, который создаёт IFrame API, обязаны
   занять всю рамку: у #player своей высоты нет, без этого плеер схлопнется
   в ноль и зритель увидит пустоту. */
.player iframe,
.player #player,
.player #player > * { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* --- панель --- */
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 32px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: 13px; background: var(--panel); }
tr:last-child td { border-bottom: 0; }
.row--live { background: rgba(46, 166, 255, .06); }
.muted { color: var(--muted); font-size: 12px; }
.warn { color: #ffb020; cursor: help; }
.ok { color: #3ddc84; }
h2 { font-size: 18px; margin: 28px 0 10px; }
input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--accent); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; vertical-align: middle; }
.inline { display: inline; }
.btn--sm { padding: 6px 12px; font-size: 13px; border: 0; cursor: pointer; font-family: inherit; }
.btn--danger { background: #b3352f; }
.notice { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; }

.foot {
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  padding: 24px 20px 40px;
  border-top: 1px solid var(--line);
}
