/* Video cards and the player, shared by the videos page and the user guide.
   Uses the guide's tokens (--surface, --border, --text-muted...). */
.vgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin: 18px 0 8px; }
.vcard { display: flex; flex-direction: column; text-decoration: none; color: inherit; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--surface); transition: border-color .15s ease, transform .15s ease; }
.vcard:hover { border-color: rgba(169, 192, 222, 0.55); transform: translateY(-2px); }
.vcard:focus-visible { outline: 2px solid var(--nm-blue-light); outline-offset: 3px; }
.vthumb { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--bg-deep); line-height: 0; }
.vthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vplay { position: absolute; left: 50%; top: 50%; width: 62px; height: 62px; margin: -31px 0 0 -31px; border-radius: 50%; background: rgba(0, 104, 158, 0.92); box-shadow: 0 6px 22px rgba(0, 0, 0, 0.45); transition: transform .15s ease, background .15s ease; }
.vplay::after { content: ''; position: absolute; left: 25px; top: 19px; border-style: solid; border-width: 12px 0 12px 19px; border-color: transparent transparent transparent #fff; }
.vcard:hover .vplay { transform: scale(1.07); background: #0a78b0; }
.vtime { position: absolute; right: 10px; bottom: 10px; padding: 2px 7px; border-radius: 5px; background: rgba(2, 26, 41, 0.85); color: #fff; font: 500 12.5px/1.5 var(--font); }
.vtext { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; line-height: 1.45; }
.vtitle { color: #fff; font-weight: 500; font-size: 16.5px; }
.vsum { color: var(--text-muted); font-weight: 300; font-size: 14.5px; }
.vtext .tier { align-self: flex-start; margin: 4px 0 0; }
.vempty { color: var(--text-muted); font-weight: 300; }

/* In a guide section: one card, side by side on a wide screen. */
.guide-video { margin: 18px 0 10px; }
.vcard-inline { flex-direction: row; align-items: stretch; max-width: 560px; }
.vcard-inline .vthumb { flex: 0 0 220px; aspect-ratio: auto; min-height: 124px; }
.vcard-inline .vplay { width: 44px; height: 44px; margin: -22px 0 0 -22px; }
.vcard-inline .vplay::after { left: 18px; top: 13px; border-width: 9px 0 9px 14px; }
.vcard-inline .vtext { justify-content: center; padding: 12px 16px; }
.vcard-inline .vtitle { font-size: 15px; }
.vcard-inline .vsum { font-size: 13.5px; }

.vplayer { width: min(1100px, calc(100vw - 32px)); max-width: none; padding: 0; border: 1px solid var(--border); border-radius: 14px; background: var(--bg-deep); color: var(--text); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); }
.vplayer::backdrop { background: rgba(1, 12, 20, 0.82); }
.vplayer-head { display: flex; align-items: center; gap: 12px; padding: 12px 14px 12px 20px; }
.vplayer-head h2 { margin: 0; padding: 0; border: 0; font-size: 17px; font-weight: 500; color: #fff; line-height: 1.35; flex: 1; min-width: 0; }
.vplayer-x { flex: none; width: 36px; height: 36px; border: 1px solid var(--border); border-radius: 8px; background: transparent; color: var(--text-muted); font-size: 22px; line-height: 1; cursor: pointer; }
.vplayer-x:hover { color: #fff; border-color: var(--nm-blue-light); }
.vplayer-frame { aspect-ratio: 16 / 9; background: #000; }
.vplayer-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.vplayer-more { margin: 0; padding: 10px 20px 14px; font-size: 14px; color: var(--text-faint); }
.vplayer-more:empty { display: none; }

@media (max-width: 760px) {
  .vgrid { grid-template-columns: 1fr; }
  .vcard-inline { flex-direction: column; }
  .vcard-inline .vthumb { flex: none; aspect-ratio: 16 / 9; min-height: 0; }
  .vplayer { width: 100vw; max-height: 100vh; border-radius: 0; border-left: 0; border-right: 0; }
}
