/* css/pages/video.css — Uploader video preview page styles
 *
 * IMPORTANT: Do NOT set display:flex/block/grid on #video-player-area or
 * #video-error-area at the element level. These elements are toggled via the
 * [hidden] HTML attribute, which relies on the UA stylesheet's display:none.
 * Adding a display rule here would silently override [hidden] and break the
 * toggle logic. See ENGINEERING_LESSONS.md 2026-03-18.
 *
 * Only add [hidden] overrides if a parent element introduces display:flex/grid.
 * Currently no such parent exists for these elements — no override needed.
 */

/* ── Page background ─────────────────────────────────────────────────────── */
.page-video {
  background-color: var(--color-brand-soft);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-video main {
  flex: 1;
  padding-block: var(--space-6);
}

/* ── Container ───────────────────────────────────────────────────────────── */
.video-container {
  max-width: 800px;
  margin-inline: auto;
  padding-block: var(--space-8);
}

/* ── Back link ───────────────────────────────────────────────────────────── */
.video-back-link {
  display: inline-block;
  margin-block-end: var(--space-5);
  color: var(--color-text-secondary);
  text-decoration: none;
  font-size: var(--text-sm);
}

.video-back-link:hover {
  text-decoration: underline;
}

.video-back-link:focus-visible {
  outline: 2px solid var(--color-brand-primary);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* ── Skeleton shimmer (16:9 aspect ratio, matches dashboard pattern) ─────── */
.video-skeleton {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
}

/* ── Video player ────────────────────────────────────────────────────────── */
.video-player {
  width: 100%;
  border-radius: var(--radius-md);
  display: block;
  background: #000;
}

/* ── Metadata section below player ──────────────────────────────────────── */
.video-meta {
  margin-block-start: var(--space-4);
}

.video-meta__item {
  margin-block-end: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

.video-meta__label {
  font-weight: var(--font-weight-medium);
  margin-inline-end: var(--space-2);
}

/* ── Error area ──────────────────────────────────────────────────────────── */
.video-error-area {
  padding-block: var(--space-8);
  text-align: center;
}

.video-error-message {
  color: var(--color-text-secondary);
  font-size: var(--text-base);
}

/* ── Mobile (≤ 767px) ────────────────────────────────────────────────────── */
@media (max-width: 767px) {
  .video-container {
    padding-block: var(--space-5);
  }
}
