/* ============================================================
   MechaPaint section-page video - styles for pagevideo.js
   Sits between the page head and the first content band, so it
   uses the same horizontal padding as .section and stops short
   of full width - a 16:9 frame at 1200px is taller than most
   screens and pushes the whole page below the fold.
   ============================================================ */

.pv-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 clamp(16px, 5vw, 64px) clamp(30px, 5vw, 56px);
}

.pv-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #000;
  overflow: hidden;
  cursor: pointer;
}

.pv-frame:hover { border-color: var(--accent); }

.pv-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.9;
}

.pv-frame:hover .pv-thumb { opacity: 1; }

.pv-iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.pv-live { cursor: default; }
.pv-live:hover { border-color: var(--line); }

.pv-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(13, 16, 23, 0.75);
  border: 2px solid var(--accent);
  cursor: pointer;
  transition: transform 0.12s ease, background 0.12s ease;
}

.pv-play::after {
  content: "";
  position: absolute;
  left: 55%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-left: 20px solid var(--accent);
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
}

.pv-frame:hover .pv-play {
  transform: translate(-50%, -50%) scale(1.1);
  background: rgba(13, 16, 23, 0.9);
}

.pv-cap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  align-items: baseline;
  margin-top: 11px;
}

.pv-title {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-mid);
}

.pv-link {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
}

.pv-link:hover { text-decoration: underline; }

@media (max-width: 640px) {
  .pv-play { width: 56px; height: 56px; }
  .pv-play::after {
    border-left-width: 15px;
    border-top-width: 9px;
    border-bottom-width: 9px;
  }
}
