/* Videos: /videos (Views/Videos/Index.cshtml) and /videos/{slug} (Watch.cshtml). */
.vd-page {
    --vd-red: #e11d2a;
    --vd-ink: #0f172a;
    --vd-text: #334155;
    --vd-muted: #64748b;
    --vd-line: #e2e8f0;
    --vd-card: #fff;
    --vd-soft: #f8fafc;
    --vd-shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 10px 26px -14px rgba(15, 23, 42, .25);
}
html[data-theme="dark"] .vd-page {
    --vd-ink: #f1f5f9; --vd-text: #cbd5e1; --vd-muted: #94a3b8; --vd-line: #334155; --vd-card: #1e293b; --vd-soft: #0f172a;
    --vd-shadow: 0 10px 26px -14px rgba(0, 0, 0, .7);
}
#about.vd-page { background: var(--vd-soft); padding: 78px 0 48px; }
.vd-page *, .vd-page *::before, .vd-page *::after { box-sizing: border-box; }
.vd-page a { text-decoration: none; }

/* ---------------------------------------------------------------- hero + featured */
.vd-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    padding: 34px 0 30px;
    background:
        radial-gradient(700px 300px at 90% -20%, rgba(225, 29, 42, .45), transparent 60%),
        radial-gradient(600px 300px at 0% 120%, rgba(79, 70, 229, .35), transparent 60%),
        linear-gradient(135deg, #0b1020 0%, #111827 60%, #1f1030 100%);
}
.vd-hero-top { display: flex; gap: 24px; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; }
.vd-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #fecaca; }
.vd-eyebrow .fa { color: #ff4d5a; font-size: 1.05rem; }
.vd-hero h1 { font-family: 'Montserrat', 'Montserrat Fallback', sans-serif; font-weight: 800; font-size: clamp(1.6rem, 3.2vw, 2.4rem); margin: 10px 0 6px; color: #fff; }
.vd-hero-top p { margin: 0; max-width: 560px; color: rgba(255, 255, 255, .8); line-height: 1.55; }
.vd-search { display: flex; align-items: center; gap: 8px; width: min(420px, 100%); height: 50px; padding: 0 6px 0 16px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); }
.vd-search .fa { color: rgba(255, 255, 255, .7); }
.vd-search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: none; background: none; color: #fff; font-size: .95rem; }
.vd-search input::placeholder { color: rgba(255, 255, 255, .6); }
.vd-search button { height: 38px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--vd-red); color: #fff; font-weight: 700; cursor: pointer; }
.vd-search:focus-within { border-color: rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .14); }

.vd-featured {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 26px;
    align-items: center;
    margin-top: 26px;
    padding: 16px;
    border-radius: 22px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .1);
}
.vd-featured-media { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #000; }
.vd-featured-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.vd-featured-media:hover img { transform: scale(1.03); }
.vd-featured-body h2 { font-family: 'Montserrat', 'Montserrat Fallback', sans-serif; font-size: clamp(1.2rem, 2.2vw, 1.6rem); font-weight: 800; line-height: 1.3; margin: 10px 0 8px; }
.vd-featured-body h2 a { color: #fff; }
.vd-featured-body h2 a:hover { color: #fecaca; }
.vd-featured-body p { color: rgba(255, 255, 255, .78); line-height: 1.55; margin: 0 0 12px; }
.vd-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: rgba(250, 204, 21, .18); color: #fde68a; font-size: .74rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }

/* the round play button over a thumbnail */
.vd-play {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
    width: 54px; height: 54px; border-radius: 50%;
    display: grid; place-items: center;
    background: rgba(225, 29, 42, .92); color: #fff; font-size: 1.1rem;
    box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .6);
    transition: transform .2s ease, background .2s ease;
}
.vd-play .fa { margin-left: 3px; }
.vd-play-lg { width: 74px; height: 74px; font-size: 1.6rem; }
a:hover .vd-play, button:hover .vd-play { transform: translate(-50%, -50%) scale(1.08); background: var(--vd-red); }

/* ---------------------------------------------------------------- buttons, chips, meta */
.vd-btn { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 12px; background: var(--vd-red); color: #fff !important; font-weight: 700; border: 0; cursor: pointer; }
.vd-btn:hover { background: #c81421; }
.vd-btn-outline { background: transparent; color: var(--vd-red) !important; border: 1.5px solid var(--vd-red); }
.vd-btn-outline:hover { background: var(--vd-red); color: #fff !important; }

.vd-body { padding-top: 26px; }
.vd-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.vd-chips::-webkit-scrollbar { display: none; }
.vd-chip { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--vd-line); background: var(--vd-card); color: var(--vd-text) !important; font-weight: 600; font-size: .88rem; }
.vd-chip span { font-size: .72rem; font-weight: 800; padding: 2px 7px; border-radius: 999px; background: var(--vd-soft); color: var(--vd-muted); }
.vd-chip:hover { border-color: var(--vd-red); color: var(--vd-red) !important; }
.vd-chip.is-on { background: var(--vd-ink); border-color: var(--vd-ink); color: var(--vd-card) !important; }
.vd-chip.is-on span { background: rgba(255, 255, 255, .18); color: inherit; }

.vd-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 22px 0 14px; }
.vd-section-head h2 { font-family: 'Montserrat', 'Montserrat Fallback', sans-serif; font-size: 1.2rem; font-weight: 800; color: var(--vd-ink); margin: 0; }
.vd-section-head span { color: var(--vd-muted); font-size: .88rem; }

.vd-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: .8rem; color: var(--vd-muted); }
.vd-meta > * + *::before { content: "•"; margin-right: 12px; opacity: .6; }
.vd-meta-light { color: rgba(255, 255, 255, .7); margin-bottom: 16px; }
.vd-cat { color: var(--vd-red) !important; font-weight: 700; }

/* ---------------------------------------------------------------- grid */
.vd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.vd-card { display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; background: var(--vd-card); border: 1px solid var(--vd-line); box-shadow: var(--vd-shadow); transition: transform .2s ease, box-shadow .2s ease; }
.vd-card:hover { transform: translateY(-3px); box-shadow: 0 22px 40px -22px rgba(15, 23, 42, .45); }
.vd-thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #0b1020; }
.vd-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.vd-card:hover .vd-thumb img { transform: scale(1.05); }
.vd-thumb .vd-play { opacity: .92; }
.vd-short { position: absolute; top: 10px; left: 10px; padding: 3px 8px; border-radius: 6px; background: rgba(0, 0, 0, .7); color: #fff; font-size: .7rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.vd-card-body { padding: 12px 14px 14px; }
.vd-card-body h3 { font-size: 1rem; font-weight: 700; line-height: 1.38; margin: 0 0 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vd-card-body h3 a { color: var(--vd-ink); }
.vd-card-body h3 a::after { content: ""; position: absolute; inset: 0; }   /* the whole card opens the video */
.vd-card { position: relative; }
.vd-card:hover h3 a { color: var(--vd-red); }

.vd-pages { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 28px; }
.vd-pages a, .vd-pages span { display: inline-flex; align-items: center; gap: 6px; min-width: 42px; height: 42px; justify-content: center; padding: 0 12px; border-radius: 10px; border: 1px solid var(--vd-line); background: var(--vd-card); color: var(--vd-text); font-weight: 700; }
.vd-pages a:hover { border-color: var(--vd-red); color: var(--vd-red); }
.vd-pages .is-on { background: var(--vd-red); border-color: var(--vd-red); color: #fff; }

.vd-empty { text-align: center; padding: 50px 16px; border-radius: 18px; background: var(--vd-card); border: 1px dashed var(--vd-line); }
.vd-empty-icon { width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center; background: rgba(225, 29, 42, .1); color: var(--vd-red); font-size: 1.6rem; }
.vd-empty h3 { color: var(--vd-ink); font-weight: 800; font-size: 1.2rem; }
.vd-empty p { color: var(--vd-muted); }

/* ---------------------------------------------------------------- watch page */
.vd-watch-page.vd-page { padding-top: 92px; }
.vd-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .85rem; color: var(--vd-muted); margin-bottom: 14px; }
.vd-crumbs a { color: var(--vd-muted); font-weight: 600; }
.vd-crumbs a:hover { color: var(--vd-red); }
.vd-watch { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
.vd-player { position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #000; box-shadow: 0 24px 50px -26px rgba(0, 0, 0, .6); }
.vd-player.is-short { aspect-ratio: 9 / 16; max-width: 400px; margin: 0 auto; }
.vd-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vd-player-start { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: #000; cursor: pointer; }
.vd-player-start img { width: 100%; height: 100%; object-fit: cover; opacity: .92; }
.vd-player-start:focus-visible { outline: 3px solid #fca5a5; outline-offset: -3px; }
.vd-title { font-family: 'Montserrat', 'Montserrat Fallback', sans-serif; font-size: clamp(1.2rem, 2.4vw, 1.6rem); font-weight: 800; line-height: 1.3; color: var(--vd-ink); margin: 18px 0 10px; }
.vd-watch-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--vd-line); }
.vd-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.vd-act { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--vd-line); background: var(--vd-card); color: var(--vd-text) !important; font-weight: 700; font-size: .85rem; cursor: pointer; }
.vd-act:hover { border-color: var(--vd-ink); }
.vd-act-wa .fa { color: #16a34a; }
.vd-act .fa-telegram { color: #0ea5e9; }
.vd-act-yt .fa { color: var(--vd-red); }
.vd-desc { position: relative; margin-top: 16px; padding: 16px 18px; border-radius: 14px; background: var(--vd-card); border: 1px solid var(--vd-line); color: var(--vd-text); line-height: 1.65; font-size: .95rem; overflow-wrap: anywhere; }
.vd-desc a { color: #2563eb; }
.vd-desc.is-folded .vd-desc-text { max-height: 140px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); }
.vd-desc-more { margin-top: 8px; border: 0; background: none; color: var(--vd-ink); font-weight: 800; cursor: pointer; padding: 0; }
.vd-cta { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 18px; padding: 16px 18px; border-radius: 14px; background: linear-gradient(135deg, #0f766e, #0d9488); color: #fff; }
.vd-cta b { display: block; font-size: 1rem; }
.vd-cta span { font-size: .88rem; opacity: .9; }
.vd-cta .vd-btn { background: #fff; color: #0f766e !important; }

.vd-side { position: sticky; top: 92px; }
.vd-side h2 { font-family: 'Montserrat', 'Montserrat Fallback', sans-serif; font-size: 1.05rem; font-weight: 800; color: var(--vd-ink); margin: 0 0 12px; }
.vd-next { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; align-items: start; padding: 6px; margin: 0 -6px 8px; border-radius: 12px; }
.vd-next:hover { background: var(--vd-card); }
.vd-next-thumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #0b1020; }
.vd-next-thumb img { width: 100%; height: 100%; object-fit: cover; }
.vd-next-thumb .vd-short { top: 6px; left: 6px; font-size: .62rem; }
.vd-next-body b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--vd-ink); font-size: .9rem; line-height: 1.35; margin-bottom: 4px; }
.vd-next:hover b { color: var(--vd-red); }
.vd-next .vd-meta { font-size: .75rem; }
.vd-all { width: 100%; justify-content: center; margin-top: 6px; }
.vd-muted { color: var(--vd-muted); }

@media (max-width: 991px) {
    .vd-featured { grid-template-columns: 1fr; }
    .vd-watch { grid-template-columns: 1fr; }
    .vd-side { position: static; }
}
@media (max-width: 575px) {
    .vd-hero { padding: 24px 0 22px; }
    .vd-featured { padding: 10px; gap: 12px; }
    .vd-featured-body { padding: 0 6px 6px; }
    .vd-grid { grid-template-columns: 1fr; gap: 16px; }
    .vd-player { border-radius: 0; margin: 0 -15px; }
    .vd-player.is-short { margin: 0 auto; border-radius: 14px; }
    .vd-next { grid-template-columns: 132px minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
    .vd-card, .vd-thumb img, .vd-featured-media img, .vd-play { transition: none; }
}
