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

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: #fff;
  color: #1a1a1a;
  -webkit-font-smoothing: antialiased;
}

/* ── Top bar (like Loom) ── */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
  border-bottom: 1px solid #e8e8e8;
}

.topbar-logo { height: 26px; }

/* ── Video info ── */

.video-info {
  padding: 16px 24px 12px;
  max-width: 1320px;
  margin: 0 auto;
}

.video-title {
  font-size: 18px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 4px;
}

.video-meta-line {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 0 0;
}

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

/* ── Player area ── */

.player-area {
  padding: 0 24px 40px;
  max-width: 1320px;
  margin: 0 auto;
}

.player-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
}

.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.2);
  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;
}

/* ── Mobile ── */

@media (max-width: 640px) {
  .topbar { padding: 8px 16px; }
  .video-info { padding: 12px 16px 8px; }
  .player-area { padding: 0 16px 24px; }
  .video-title { font-size: 16px; }
  .play-btn { width: 72px; height: 72px; }
  .cta-overlay { padding: 8px 16px; font-size: 13px; }
}
