/* ============================================================
   MechaPaint docs video embed - styles for docvideo.js
   Sits where the grey .doc-video placeholder used to be, so it
   keeps that block's width, margins and rounded look.
   ============================================================ */

.dv-wrap {
  margin: 0 0 34px;
}

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

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

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

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

.dv-live {
  cursor: default;
}

.dv-live:hover {
  border-color: var(--line);
}

.dv-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 76px;
  height: 76px;
  border: 0;
  border-radius: 50%;
  background: rgba(13, 16, 23, 0.78);
  box-shadow: 0 0 0 2px var(--accent) inset;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.dv-play::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 13px 0 13px 22px;
  border-color: transparent transparent transparent var(--accent);
}

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

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

.dv-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-mid);
}

.dv-link {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
}

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

@media (max-width: 640px) {
  .dv-play { width: 58px; height: 58px; }
  .dv-play::before { border-width: 10px 0 10px 17px; }
}
