/* ═══ ویدیوهای سایت (۱۴۰۵/۰۶/۲۸) — سکشنِ «ویدیوها»ی لندینگ و صفحه‌ی /videos ═══
   فایلِ جدا از landing.css تا نسخه‌ی کشِ ۱۴ صفحه‌ی لندینگ دست نخورد؛ توکن‌ها همان توکن‌های landing.css اند (:root آنجا تعریف شده).
   بدونِ جاوااسکریپت: پخش‌کننده‌ی HTML5 با controls ی خودِ مرورگر؛ فقط CSS برای قاب، حالتِ hover و چیدمانِ واکنش‌گرا. */

/* ── سکشنِ لندینگ ── */
.videos-section { position: relative; padding-block: 96px; background: radial-gradient(900px 420px at 80% 0%, rgba(34,211,238,.12), transparent), linear-gradient(180deg, var(--paper-soft), var(--paper)); overflow: hidden; }
.videos-section::before { content: ""; position: absolute; inset: auto -120px -160px auto; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(212,175,55,.14), transparent 62%); pointer-events: none; }
.videos-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 36px; }
.videos-head .section-subtitle { max-width: 640px; margin-top: 10px; }
.videos-head .btn { flex: none; }
@media (max-width: 760px) { .videos-head { flex-direction: column; align-items: flex-start; } }

/* ── پخش‌کننده‌ی شاخص ── */
.video-frame { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--navy-950); box-shadow: 0 30px 70px -30px rgba(10,19,44,.55), var(--shadow-glow); border: 1px solid rgba(255,255,255,.06); }
.video-frame::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(34,211,238,.18); }
.video-frame video { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; background: #000; }
.video-frame video:focus-visible { outline: 3px solid var(--accent-400); outline-offset: -3px; }
.video-caption { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 6px 0; }
.video-caption h3 { font-size: 20px; font-weight: 800; color: var(--navy-900); margin: 0; }
.video-caption p { margin: 6px 0 0; color: var(--ink-soft); font-size: 15px; line-height: 1.9; }
.video-meta { flex: none; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--accent-600); background: var(--accent-50); border: 1px solid #bff2fb; padding: 6px 14px; border-radius: 999px; white-space: nowrap; }

/* ── چیدمانِ شاخص + فهرستِ کناری ── */
.videos-layout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(280px, 1fr); gap: 28px; align-items: start; }
@media (max-width: 960px) { .videos-layout { grid-template-columns: 1fr; } }
.video-list { display: grid; gap: 14px; }
.video-item { display: grid; grid-template-columns: 148px 1fr; gap: 14px; align-items: center; padding: 12px; background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-card); color: inherit; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.video-item:hover { transform: translateY(-3px); border-color: var(--accent-400); box-shadow: 0 18px 40px -18px rgba(6,182,212,.45); }
.video-thumb { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-sm); overflow: hidden; background: linear-gradient(135deg, var(--navy-800), var(--navy-500)); }
.video-thumb img, .video-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-thumb::after { content: ""; position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(180deg, transparent 40%, rgba(5,10,28,.55)); }
.video-play { position: absolute; inset: 0; margin: auto; width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.92); box-shadow: 0 8px 22px -8px rgba(0,0,0,.6); display: grid; place-items: center; z-index: 1; transition: transform .18s ease; }
.video-play::before { content: ""; margin-inline-start: 4px; border-style: solid; border-width: 8px 0 8px 13px; border-color: transparent transparent transparent var(--navy-700); }
.video-item:hover .video-play, .video-card:hover .video-play { transform: scale(1.08); }
.video-item h4 { margin: 0; font-size: 15px; font-weight: 800; color: var(--navy-900); line-height: 1.7; }
.video-item p { margin: 4px 0 0; font-size: 13px; color: var(--ink-soft); line-height: 1.8; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 420px) { .video-item { grid-template-columns: 112px 1fr; gap: 10px; } .video-item h4 { font-size: 14px; } }

/* ── صفحه‌ی /videos: هدرِ صفحه و شبکه‌ی کارت‌ها ── */
.videos-hero { padding-block: 72px 40px; background: radial-gradient(1000px 420px at 50% -10%, rgba(34,211,238,.16), transparent), linear-gradient(180deg, var(--paper), var(--paper-soft)); text-align: center; }
.videos-hero h1 { font-size: clamp(28px, 3.6vw, 44px); font-weight: 800; color: var(--navy-900); line-height: 1.4; margin: 0; }
.videos-hero p { max-width: 680px; margin: 14px auto 0; color: var(--ink-soft); font-size: 17px; line-height: 1.9; }
.videos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 26px; padding-block: 24px 96px; }
@media (max-width: 420px) { .videos-grid { grid-template-columns: 1fr; } }
.video-card { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card); transition: transform .18s ease, box-shadow .18s ease; }
.video-card:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -22px rgba(10,19,44,.35); }
.video-card video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.video-card-body { padding: 18px 20px 22px; }
.video-card-body h2 { font-size: 18px; font-weight: 800; color: var(--navy-900); margin: 0; line-height: 1.6; }
.video-card-body p { margin: 8px 0 0; color: var(--ink-soft); font-size: 14.5px; line-height: 1.9; }
.video-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; font-size: 13px; color: var(--ink-soft); }
.video-card--featured { grid-column: 1 / -1; }
.video-card--featured video { aspect-ratio: 16 / 9; }
.video-card--featured .video-card-body h2 { font-size: 22px; }
.videos-empty { text-align: center; color: var(--ink-soft); padding: 80px 20px 120px; }
.videos-empty .videos-empty-icon { width: 72px; height: 72px; border-radius: 22px; margin: 0 auto 18px; display: grid; place-items: center; background: var(--accent-50); color: var(--accent-600); font-size: 30px; }
