/* ═══════════════════════════════════════════════════════════════════════════
   RE Share — style.css
   Shared / viewer styles
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── Reset & base ──────────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  background: #0f0f0f;
  color: #e8e8e8;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
  min-height: 100vh;
}

a {
  color: #4f9ef8;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

img, video {
  display: block;
  max-width: 100%;
}

/* ─── Utility ────────────────────────────────────────────────────────────────── */
.hidden { display: none !important; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ─── Top bar (viewer) ──────────────────────────────────────────────────────── */
.top-bar {
  display: flex;
  align-items: center;
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid #1c1c1c;
  background: #111;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: #e8e8e8;
  text-decoration: none;
  letter-spacing: 0.01em;
}
.brand:hover { color: #fff; text-decoration: none; }
.brand svg { color: #3b82f6; flex-shrink: 0; }

/* ─── Video player ──────────────────────────────────────────────────────────── */
.player-wrap {
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,0.7);
  margin-top: 1rem;
}

.player-wrap video {
  width: 100%;
  max-height: 540px;
  object-fit: contain;
  display: block;
}

/* ─── Center message pages (expired / not found) ───────────────────────────── */
.center-msg {
  min-height: calc(100vh - 58px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.center-card {
  text-align: center;
  max-width: 400px;
}

.center-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  line-height: 1;
}

.center-card h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #f0f0f0;
  margin-bottom: 0.5rem;
}

.center-card p {
  color: #666;
  font-size: 0.9rem;
}

/* ─── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .top-bar { padding: 0.7rem 1rem; }
  .brand { font-size: 0.88rem; }
}
