/* ===== Videos =====
   One featured player with a playlist beside it. The poster is the looping preview clip; the full
   video (with native controls) replaces it on play. Headings use the home hero's Inter Tight 500. */

.vd-page {
    position: relative;
    padding: 4.5rem 1.5rem 5rem;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: #0f172a;
    overflow-x: clip;
    background:
        radial-gradient(ellipse 55% 45% at 50% 0%, rgba(0, 168, 150, .12), transparent 65%),
        #f8fafc;
}
.vd-shell { width: 100%; max-width: 1180px; margin: 0 auto; }

/* ── header ── */
.vd-head { text-align: center; max-width: 44rem; margin: 0 auto; }
.vd-eyebrow { display: inline-flex; align-items: center; gap: 12px; font-size: .8rem; font-weight: 600; color: #00A896; }
.vd-eyebrow i { display: block; width: 34px; height: 1px; background: currentColor; }
.vd-title {
    margin: 16px 0 0;
    font-family: 'Inter Tight', 'Inter', system-ui, sans-serif;
    font-weight: 500; font-size: clamp(2.1rem, 4vw, 3.4rem); letter-spacing: -0.03em; line-height: 1.05;
    text-wrap: balance;
}
.vd-title span { color: #64748b; }
.vd-sub { margin: 16px auto 0; max-width: 34rem; font-size: 1.02rem; line-height: 1.6; color: #475569; }

/* ── layout ── */
.vd-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; margin-top: 40px; align-items: start; }
.vd-layout[data-count="1"] { grid-template-columns: minmax(0, 1fr); max-width: 900px; margin-left: auto; margin-right: auto; }

/* ── featured player ── */
.vd-player {
    position: relative; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden;
    background: #0b1020; box-shadow: 0 40px 80px -50px rgba(15, 23, 42, .6);
}
.vd-player video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; background: #0b1020; }
.vd-player video[hidden] { display: none; }
.vd-video { object-fit: contain !important; }
.vd-play {
    position: absolute; inset: 0; width: 100%; height: 100%; border: 0; padding: 0; cursor: pointer; font: inherit; color: #fff;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
    background: linear-gradient(to top, rgba(11, 16, 32, .55), rgba(11, 16, 32, .05) 55%);
    transition: opacity .25s;
}
.vd-player[data-state="playing"] .vd-play { opacity: 0; pointer-events: none; }
.vd-play-btn {
    width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center;
    background: rgba(255, 255, 255, .96); color: #0f172a;
    box-shadow: 0 20px 40px -14px rgba(0, 0, 0, .6), 0 0 0 10px rgba(255, 255, 255, .14);
    transition: transform .2s, box-shadow .2s;
}
.vd-play:hover .vd-play-btn { transform: scale(1.06); box-shadow: 0 24px 44px -14px rgba(0, 0, 0, .65), 0 0 0 14px rgba(255, 255, 255, .18); }
.vd-play-btn svg { width: 30px; height: 30px; margin-left: 4px; }
.vd-play-hint { font-size: .84rem; font-weight: 600; letter-spacing: .01em; text-shadow: 0 1px 8px rgba(0, 0, 0, .5); }
.vd-play:focus-visible { outline: 3px solid #00A896; outline-offset: -3px; }

.vd-meta { margin-top: 22px; }
.vd-chip {
    display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    padding: 4px 10px; border-radius: 999px; background: #ccfbf1; color: #0f766e;
}
.vd-chip[hidden] { display: none; }
.vd-h2 {
    margin: 12px 0 0;
    font-family: 'Inter Tight', 'Inter', system-ui, sans-serif;
    font-weight: 500; font-size: clamp(1.4rem, 2.4vw, 1.9rem); letter-spacing: -0.025em; line-height: 1.2;
}
.vd-desc { margin: 10px 0 0; max-width: 46rem; font-size: .98rem; line-height: 1.65; color: #475569; }

/* ── playlist ── */
.vd-list { display: flex; flex-direction: column; gap: 10px; }
.vd-list-head { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #94a3b8; margin-bottom: 4px; }
.vd-list-head b { margin-left: 6px; font-weight: 600; color: #0f172a; }
.vd-item {
    display: grid; grid-template-columns: 124px 1fr; gap: 12px; align-items: center; text-align: left;
    padding: 10px; border-radius: 14px; background: #fff; border: 1.5px solid #e2e8f0; cursor: pointer; font: inherit; color: inherit;
    transition: border-color .2s, transform .15s, box-shadow .2s;
}
.vd-item:hover { border-color: rgba(0, 168, 150, .5); transform: translateY(-1px); box-shadow: 0 14px 30px -20px rgba(15, 23, 42, .4); }
.vd-item.is-active { border-color: #00A896; background: #f0fdfa; }
.vd-item:focus-visible { outline: 3px solid #00A896; outline-offset: 2px; }
.vd-item-thumb { position: relative; aspect-ratio: 16 / 9; border-radius: 9px; overflow: hidden; background: #0b1020; }
.vd-item-thumb video, .vd-item-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.vd-item-now {
    position: absolute; left: 6px; bottom: 6px; font-style: normal; font-size: .6rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
    padding: 2px 7px; border-radius: 999px; background: #00A896; color: #fff; display: none;
}
.vd-item.is-active .vd-item-now { display: block; }
.vd-item-text { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.vd-item-text small { font-size: .7rem; font-weight: 600; color: #64748b; text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vd-item-text small:empty { display: none; }
.vd-item-text strong { font-size: .9rem; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ── empty ── */
.vd-empty { margin: 48px auto 0; max-width: 32rem; text-align: center; padding: 32px; border-radius: 18px; background: #fff; border: 1px solid #e2e8f0; color: #475569; }
.vd-empty a { color: #0f766e; font-weight: 600; }

/* ── responsive ── */
@media (max-width: 900px) {
    .vd-layout { grid-template-columns: 1fr; gap: 24px; margin-top: 28px; }
    .vd-list { flex-direction: row; flex-wrap: wrap; }
    .vd-list-head { flex-basis: 100%; }
    .vd-item { flex: 1 1 260px; }
}
@media (max-width: 600px) {
    .vd-page { padding: 3.5rem 1rem 4rem; }
    .vd-player { border-radius: 14px; }
    .vd-play-btn { width: 64px; height: 64px; }
    .vd-play-btn svg { width: 24px; height: 24px; }
    .vd-item { flex-basis: 100%; grid-template-columns: 108px 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    .vd-play, .vd-play-btn, .vd-item { transition: none; }
}
