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

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: #0c1929;
  color: #e8e8e8;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

/* ── Main — video centered ── */

.main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.video-container {
  width: 85%;
  max-width: 960px;
}

/* ── Video ── */

.player-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

.player {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #000;
}

/* ── CTA overlay ── */

.cta-overlay {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 10px 24px;
  background: #FF3000;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  transition: background 0.2s;
}
.cta-overlay:hover { background: #e62b00; }

/* ── Play overlay ── */

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.25);
  cursor: pointer;
  transition: opacity 0.25s;
}
.play-overlay.hidden { opacity: 0; pointer-events: none; }

.play-btn {
  background: none;
  border: none;
  cursor: pointer;
  width: 96px;
  height: 96px;
  transition: transform 0.15s;
}
.play-btn:hover { transform: scale(1.08); }

/* ── Controls ── */

.controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  opacity: 0;
  transition: opacity 0.25s;
}
.player-wrapper:hover .controls,
.controls.visible { opacity: 1; }

.ctrl-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  opacity: 0.85;
  transition: opacity 0.15s;
}
.ctrl-btn:hover { opacity: 1; }

.progress-bar {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,0.25);
  border-radius: 2px;
  cursor: pointer;
}
.progress-bar:hover { height: 6px; }

.progress-fill {
  height: 100%;
  background: #625df5;
  border-radius: 2px;
  width: 0;
  pointer-events: none;
}

.time {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* ── Sender below video ── */

.video-meta-line {
  padding: 12px 0 0;
}

.author-name {
  font-size: 13px;
  color: #888;
}

/* ── Mobile ── */

@media (max-width: 640px) {
  .main { padding: 16px; }
  .play-btn { width: 72px; height: 72px; }
  .cta-overlay { padding: 8px 16px; font-size: 13px; }
}
