/* Раздел «Видео»: /video/ и /video/<slug>/. Подключается только на этих
   страницах. Цвета — из дизайн-системы сайта (как glossary.css):
   cream #F7F4EF, dark #2D2D2D, gold #E8B84B, border #EDE9E0. */

.vd {
	--vd-gold: #E8B84B;
	--vd-gold-ink: #8A7040;
	--vd-gold-soft: #FFF8E6;
	--vd-ink: #1F1F1F;
	--vd-text: #3A3A3A;
	--vd-muted: #7A7A7A;
	--vd-line: #EDE9E0;
	--vd-card: #FFFFFF;
	--vd-serif: Georgia, "Times New Roman", serif;
	max-width: 1120px;
	margin: 0 auto;
	padding: 20px 16px 56px;
	color: var(--vd-text);
}
@media (min-width: 768px) { .vd { padding: 32px 24px 72px; } }
.vd--watch { max-width: 880px; }
.vd a { color: inherit; }

/* Хлебные крошки */
.vd-crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--vd-muted); margin-bottom: 20px; }
.vd-crumbs a { color: var(--vd-muted); text-decoration: none; }
.vd-crumbs a:hover { color: var(--vd-ink); }
.vd-crumbs span[aria-current] { color: var(--vd-ink); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60vw; }

.vd-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .12em;
	text-transform: uppercase; color: var(--vd-gold-ink); text-decoration: none; margin-bottom: 10px; }
.vd-eyebrow svg { flex: none; }
.vd-title { font-family: var(--vd-serif); font-weight: 400; font-size: 30px; line-height: 1.15; color: var(--vd-ink); margin: 0 0 14px; }
.vd-title b { font-weight: 700; }
@media (min-width: 768px) { .vd-title { font-size: 44px; } }
.vd-lead { font-size: 16px; line-height: 1.65; color: var(--vd-text); margin: 0 0 14px; max-width: 640px; }
.vd-facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; padding: 0; list-style: none; }
.vd-facts li { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: 13px;
	background: var(--vd-card); border: 1px solid var(--vd-line); color: var(--vd-text); }
.vd-facts svg { color: var(--vd-gold-ink); }
.vd-ai { font-size: 13px; line-height: 1.5; color: var(--vd-muted); margin: 10px 0 0; }

/* Обложка: 16:9, бейдж длительности, кнопка play */
.vd-thumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #E9E3D6; }
.vd-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.vd-play { position: absolute; left: 50%; top: 50%; width: 60px; height: 60px; margin: -30px 0 0 -30px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center; background: rgba(31,31,31,.72); color: #fff;
	box-shadow: 0 8px 24px rgba(0,0,0,.25); transition: background .2s, transform .2s; }
.vd-play svg { margin-left: 3px; }
.vd-dur { position: absolute; right: 10px; bottom: 10px; padding: 3px 8px; border-radius: 6px; background: rgba(0,0,0,.78);
	color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .02em; font-variant-numeric: tabular-nums; }

/* Карточки */
.vd-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
@media (min-width: 640px) { .vd-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .vd-grid { grid-template-columns: repeat(3, 1fr); gap: 28px 24px; } }
.vd-card a { display: flex; flex-direction: column; gap: 12px; height: 100%; text-decoration: none; }
.vd-card a:hover .vd-thumb img { transform: scale(1.04); }
.vd-card a:hover .vd-play { background: var(--vd-gold); color: var(--vd-ink); transform: scale(1.06); }
.vd-card a:focus-visible { outline: 3px solid rgba(232,184,75,.6); outline-offset: 4px; border-radius: 14px; }
.vd-card-title { font-family: var(--vd-serif); font-size: 19px; line-height: 1.35; font-weight: 700; color: var(--vd-ink); margin: 0; }
.vd-card-text { font-size: 14px; line-height: 1.55; color: var(--vd-muted); margin: 0;
	display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.vd-card-meta { font-size: 12px; color: var(--vd-muted); margin-top: auto; }

/* Новый ролик крупно — только на первой странице хаба */
.vd-feature { margin: 26px 0 36px; }
.vd-feature a { display: grid; gap: 18px; text-decoration: none; background: var(--vd-card); border-radius: 20px; padding: 12px;
	box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 12px 32px rgba(138,112,64,.10); }
@media (min-width: 860px) { .vd-feature a { grid-template-columns: 1.35fr 1fr; align-items: center; gap: 30px; padding: 14px 30px 14px 14px; } }
.vd-feature a:hover .vd-thumb img { transform: scale(1.03); }
.vd-feature a:hover .vd-play { background: var(--vd-gold); color: var(--vd-ink); }
.vd-feature .vd-play { width: 76px; height: 76px; margin: -38px 0 0 -38px; }
.vd-feature-body { padding: 0 8px 10px; }
@media (min-width: 860px) { .vd-feature-body { padding: 0; } }
.vd-badge { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--vd-gold); color: var(--vd-ink);
	font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 12px; }
.vd-feature-title { font-family: var(--vd-serif); font-size: 26px; line-height: 1.25; font-weight: 700; color: var(--vd-ink); margin: 0 0 10px; }
@media (min-width: 860px) { .vd-feature-title { font-size: 30px; } }
.vd-feature-text { font-size: 15px; line-height: 1.65; color: var(--vd-text); margin: 0 0 14px;
	display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.vd-more-btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 10px;
	background: var(--vd-ink); color: #fff !important; font-weight: 600; font-size: 15px; }

.vd-section-title { display: flex; align-items: baseline; gap: 10px; font-size: 20px; font-weight: 700; color: var(--vd-ink); margin: 40px 0 16px; }
.vd-section-title span { font-size: 14px; font-weight: 600; color: var(--vd-muted); }

/* Пагинация */
.vd-pages { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 36px 0 0; }
.vd-pages a, .vd-pages span { min-width: 40px; height: 40px; padding: 0 12px; box-sizing: border-box; display: inline-flex; align-items: center;
	justify-content: center; border-radius: 10px; background: var(--vd-card); border: 1px solid var(--vd-line); font-weight: 600; text-decoration: none; }
.vd-pages a:hover { border-color: var(--vd-gold); }
.vd-pages [aria-current] { background: var(--vd-ink); border-color: var(--vd-ink); color: #fff; }

/* Пояснение под сеткой */
.vd-about { margin-top: 48px; background: var(--vd-card); border-radius: 16px; padding: 22px 20px; }
@media (min-width: 768px) { .vd-about { padding: 28px 32px; } }
.vd-about h2 { font-family: var(--vd-serif); font-size: 22px; color: var(--vd-ink); margin: 0 0 10px; }
.vd-about h3 { font-size: 16px; color: var(--vd-ink); margin: 18px 0 6px; }
.vd-about p { font-size: 15px; line-height: 1.65; margin: 0 0 8px; }
.vd-subscribe { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.vd-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; border-radius: 10px;
	font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; text-decoration: none; background: #fff; color: var(--vd-ink);
	border: 1px solid #DDD6C8; transition: background .15s, border-color .15s; }
.vd-btn:hover { border-color: var(--vd-gold); background: var(--vd-gold-soft); }
.vd-btn--yt { background: #FF0033; border-color: #FF0033; color: #fff !important; }
.vd-btn--yt:hover { background: #d9002b; border-color: #d9002b; }
@media (max-width: 560px) { .vd-subscribe .vd-btn { flex: 1 1 100%; } }

/* --- страница ролика -------------------------------------------------------- */

.vd-player { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #111;
	box-shadow: 0 2px 4px rgba(0,0,0,.06), 0 18px 40px rgba(31,31,31,.18); margin-bottom: 22px; }
@media (max-width: 560px) { .vd-player { margin: 0 -16px 20px; border-radius: 0; } }
.vd-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vd-facade { position: absolute; inset: 0; display: block; cursor: pointer; border: 0; padding: 0; background: none; }
.vd-facade img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vd-facade .vd-play { width: 84px; height: 84px; margin: -42px 0 0 -42px; background: rgba(31,31,31,.75); }
.vd-facade:hover .vd-play, .vd-facade:focus-visible .vd-play { background: var(--vd-gold); color: var(--vd-ink); transform: scale(1.06); }
.vd-facade:focus-visible { outline: 3px solid var(--vd-gold); outline-offset: -3px; }

.vd-watch-head .vd-title { font-size: 28px; }
@media (min-width: 768px) { .vd-watch-head .vd-title { font-size: 38px; } }
.vd-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 6px; }
@media (max-width: 560px) { .vd-actions .vd-btn { flex: 1 1 calc(50% - 5px); padding: 11px 10px; white-space: nowrap; } }

.vd-block { background: var(--vd-card); border-radius: 16px; padding: 20px; margin-top: 18px; }
@media (min-width: 768px) { .vd-block { padding: 26px 32px; } }
.vd-label { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--vd-gold-ink); margin: 0 0 10px; }
.vd-story p { font-size: 17px; line-height: 1.75; color: var(--vd-ink); margin: 0 0 12px; }
.vd-story p:last-child { margin-bottom: 0; }

.vd-maqal { position: relative; overflow: hidden; padding-left: 26px; }
.vd-maqal::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--vd-gold); }
@media (min-width: 768px) { .vd-maqal { padding-left: 38px; } }
.vd-quote { font-family: var(--vd-serif); font-size: 22px; line-height: 1.45; color: var(--vd-ink); margin: 0 0 12px; }
.vd-meaning { font-size: 15px; line-height: 1.65; color: var(--vd-text); margin: 0 0 14px; }
.vd-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--vd-gold-ink) !important; text-decoration: none; }
.vd-link:hover { text-decoration: underline; }

.vd-ru { margin-top: 18px; border: 1px dashed #D9CFB8; border-radius: 14px; padding: 0 20px; }
.vd-ru summary { cursor: pointer; padding: 14px 0; font-weight: 600; color: var(--vd-ink); list-style: none; display: flex; align-items: center; gap: 8px; }
.vd-ru summary::-webkit-details-marker { display: none; }
.vd-ru summary::after { content: "+"; margin-left: auto; font-size: 20px; color: var(--vd-gold-ink); }
.vd-ru[open] summary::after { content: "−"; }
.vd-ru p { font-size: 15px; line-height: 1.65; margin: 0 0 14px; }

.vd-all { display: inline-flex; align-items: center; gap: 6px; margin-top: 22px; font-weight: 600; color: var(--vd-gold-ink) !important; text-decoration: none; }
.vd-all:hover { text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
	.vd-thumb img, .vd-play { transition: none; }
	.vd-card a:hover .vd-thumb img, .vd-feature a:hover .vd-thumb img { transform: none; }
}
