/* ── VIDEO (карточки): страница /video ──
   Отдельный стиль от videostyle.css (та – тёмная лента /tiktok с
   overflow:hidden). Здесь светлая тема и обычный скролл, как в каталоге. */

.vcards-header {
  text-align: center;
  padding: 8.5rem 1.5rem 2.5rem; /* 4rem + ~4.5rem высота fixed nav */
}
.vcards-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: var(--fs-lg);
  color: var(--ink);
  line-height: 1.1;
}
.vcards-title em { font-style: italic; color: var(--gold); }
.vcards-hint {
  margin: 1rem auto 0;
  max-width: 34rem;
  font-size: var(--fs-sm);
  color: var(--ink-60);
  line-height: 1.7;
}

/* Грид карточек */
.vcards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.5rem;
  padding: 0 4rem 6rem;
  max-width: 1400px;
  margin: 0 auto;
}
.vcard {
  cursor: pointer;
  background: var(--cream);
  border: 1px solid var(--ink-10);
  overflow: hidden;
  transition: border-color var(--dur-fast), transform var(--dur-fast);
}
.vcard:hover { border-color: var(--ink-30); transform: translateY(-3px); }
.vcard:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* Обложка (вертикальная 9:16) */
.vcard-media {
  position: relative;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  background: var(--black);
}
.vcard-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.vcard-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.vcard-play svg {
  width: 3.2rem;
  height: 3.2rem;
  padding: 0.85rem;
  color: var(--warm-white);
  background: rgba(0,0,0,0.45);
  border: 1px solid var(--ww-30);
  border-radius: 50%;
  transition: transform var(--dur-fast), background var(--dur-fast), color var(--dur-fast);
}
.vcard:hover .vcard-play svg { transform: scale(1.08); background: var(--gold); color: var(--ink); border-color: var(--gold); }

.vcard-body { padding: 1rem 1.1rem 1.3rem; }
.vcard-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--fs-title);
  color: var(--ink);
  line-height: 1.25;
  margin-bottom: 0.4rem;
}
.vcard-desc {
  font-size: var(--fs-xs);
  color: var(--ink-60);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 7;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Попап с плеером */
.vpopup-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.9);
  padding: 2rem 1rem;
}
.vpopup-overlay.open { display: flex; }
.vpopup {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.vpopup-video {
  max-height: 84vh;
  max-width: 94vw;
  display: block;
  /* Подложка под кадр видео. Токен --black (#000), а не --video-bg (#111):
     последний задаёт тёмную тему ленты /tiktok, здесь же нужен именно чёрный,
     чтобы вокруг кадра не было светлой каймы. */
  background: var(--black);
  border-radius: 4px;
}
.vpopup-caption {
  margin-top: 0.8rem;
  color: var(--ww-75);
  font-size: var(--fs-xs);
  text-align: center;
  max-width: 40rem;
}
.vpopup-close {
  position: absolute;
  top: -2.6rem;
  right: 0;
  width: 2.4rem;
  height: 2.4rem;
  background: transparent;
  border: none;
  color: var(--warm-white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.vpopup-close svg { width: 1.5rem; height: 1.5rem; }

/* ── RESPONSIVE ── */
@media (max-width: 700px) {
  .vcards-header { padding: 7rem 1.2rem 2rem; }
  .vcards { padding: 0 1.2rem 4rem; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
  .vpopup-close { top: 0.2rem; right: 0.2rem; background: rgba(0,0,0,0.5); border-radius: 50%; }
}
