/* ═══════════════════════════════════════════════════════════════════
 *  Videos — archive + single page styles.
 *  Layers on top of ptst-content-pages.css. Reuses the topic-pill
 *  styles from the Research Papers bundle (.ptst-topic-pill is
 *  generic) — but those rules live in ptst-research-papers.css so
 *  we duplicate the minimum needed here for the standalone case.
 * ═══════════════════════════════════════════════════════════════════ */

/* ── Archive hero — uses the shared .page-hero pattern from
 *    ptst-content-pages.css. The single-video page keeps the lighter
 *    tint band — the embedded player is the focus there.
 * --------------------------------------------------------------- */
.ptst-video__hero {
    padding: 24px 0 28px;
    background: var(--bg-soft, #F4F7FB);
    border-bottom: 1px solid var(--line, #E2E8F2);
}

/* ── Breadcrumb — sits below the hero on the body bg. ─────────── */
.ptst-videos > .container,
.ptst-video-single > .container {
    padding-top: 18px;
    padding-bottom: 4px;
}
.ptst-videos .ptst-crumb,
.ptst-video-single .ptst-crumb {
    display: flex; align-items: center; gap: 8px;
    font-size: 13px; color: var(--ink-3, #5A6B86);
    padding: 0;
}
.ptst-videos .ptst-crumb a,
.ptst-video-single .ptst-crumb a { color: var(--ink-3, #5A6B86); text-decoration: none; }
.ptst-videos .ptst-crumb a:hover,
.ptst-video-single .ptst-crumb a:hover { color: var(--brand-blue, #0E4A9C); text-decoration: underline; text-underline-offset: 3px; }
.ptst-videos .ptst-crumb__sep,
.ptst-video-single .ptst-crumb__sep { color: var(--ink-4, #93A1B8); }
.ptst-videos .ptst-crumb__current,
.ptst-video-single .ptst-crumb__current { color: var(--ink, #0B1B33); }

/* ── Topic filter pills (kept here so Videos works standalone) ─── */
.ptst-videos__filter-section { padding: 20px 0 0; }
.ptst-videos .ptst-topic-filter { display: flex; flex-wrap: wrap; gap: 8px; }
.ptst-videos .ptst-topic-pill,
.ptst-video-single .ptst-topic-pill {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 14px;
    background: #fff;
    border: 1px solid var(--line, #E2E8F2);
    border-radius: 999px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ink-2, #2A3D5C);
    text-decoration: none;
    transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
}
.ptst-videos .ptst-topic-pill:hover,
.ptst-video-single .ptst-topic-pill:hover {
    border-color: var(--brand-blue, #0E4A9C);
    color: var(--brand-blue, #0E4A9C);
}
.ptst-videos .ptst-topic-pill.is-active {
    background: var(--brand-blue, #0E4A9C);
    border-color: var(--brand-blue, #0E4A9C);
    color: #fff;
}
.ptst-videos .ptst-topic-pill.is-active:hover { color: #fff; }
.ptst-videos .ptst-topic-pill__count {
    display: inline-block;
    padding: 1px 7px;
    border-radius: 999px;
    background: rgba(11, 27, 51, 0.06);
    font-size: 11.5px;
    font-weight: 700;
    color: var(--ink-3, #5A6B86);
    line-height: 1.4;
}
.ptst-videos .ptst-topic-pill.is-active .ptst-topic-pill__count {
    background: rgba(255,255,255,0.22);
    color: #fff;
}
.ptst-video-single .ptst-topic-pill--sm {
    padding: 4px 10px;
    font-size: 12px;
}

/* ── Video grid + cards ────────────────────────────────────────── */
.ptst-videos__grid-section { padding: 28px 0 80px; }
.ptst-video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
}
.ptst-video-card {
    display: flex; flex-direction: column;
    background: #fff;
    border: 1px solid var(--line, #E2E8F2);
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    color: var(--ink, #0B1B33);
    transition: transform 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}
.ptst-video-card:hover {
    transform: translateY(-2px);
    border-color: var(--brand-blue, #0E4A9C);
    box-shadow: 0 12px 32px -16px rgba(11, 27, 51, 0.22);
}
.ptst-video-card,
.ptst-video-card:hover,
.ptst-video-card:focus,
.ptst-video-card:hover *,
.ptst-video-card:focus * { text-decoration: none; }
.ptst-video-card:hover .ptst-video-card__title,
.ptst-video-card:focus .ptst-video-card__title { color: var(--brand-blue, #0E4A9C); }

.ptst-video-card__cover {
    position: relative;
    aspect-ratio: 16 / 9;
    background-size: cover;
    background-position: center;
    background-color: var(--bg-soft, #F4F7FB);
}
.ptst-video-card__play {
    position: absolute;
    inset: 0;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(180deg, rgba(0,0,0,0.0) 0%, rgba(0,0,0,0.10) 60%, rgba(0,0,0,0.32) 100%);
    transition: background-color 140ms ease;
}
.ptst-video-card__play svg {
    width: 56px; height: 56px;
    fill: #fff;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.35));
    transform: scale(1);
    transition: transform 140ms ease;
}
.ptst-video-card:hover .ptst-video-card__play svg { transform: scale(1.08); }
.ptst-video-card:hover .ptst-video-card__play { background-color: rgba(11, 27, 51, 0.18); }

.ptst-video-card__badge {
    position: absolute; top: 10px; left: 10px;
    background: var(--brand-gold, #F5A823);
    color: #0B1B33;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 999px;
}
.ptst-video-card__duration {
    position: absolute; bottom: 10px; right: 10px;
    background: rgba(0,0,0,0.78);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    line-height: 1.3;
}

.ptst-video-card__body {
    padding: 14px 16px 18px;
    display: flex; flex-direction: column; gap: 6px;
}
.ptst-video-card__title {
    margin: 0;
    font-size: 16.5px;
    font-weight: 700;
    line-height: 1.32;
    letter-spacing: -0.01em;
    color: var(--ink, #0B1B33);
    transition: color 120ms ease;
}
.ptst-video-card__excerpt {
    margin: 4px 0 0;
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--ink-2, #2A3D5C);
}

/* ── Pagination + empty (shared) ───────────────────────────────── */
.ptst-videos .ptst-pagination {
    display: flex; justify-content: center; align-items: center;
    gap: 6px;
    margin-top: 40px;
    flex-wrap: wrap;
}
.ptst-videos .ptst-pagination .page-numbers {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 36px; height: 36px;
    padding: 0 12px;
    background: #fff;
    border: 1px solid var(--line, #E2E8F2);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink-2, #2A3D5C);
    text-decoration: none;
}
.ptst-videos .ptst-pagination .page-numbers:hover { border-color: var(--brand-blue, #0E4A9C); color: var(--brand-blue, #0E4A9C); }
.ptst-videos .ptst-pagination .page-numbers.current {
    background: var(--brand-blue, #0E4A9C);
    border-color: var(--brand-blue, #0E4A9C);
    color: #fff;
}
.ptst-videos .ptst-pagination .page-numbers.dots { border: 0; background: transparent; }

.ptst-videos .ptst-empty-state {
    padding: 60px 0;
    text-align: center;
    font-size: 16px;
    color: var(--ink-3, #5A6B86);
}


/* ═══════════════════════════════════════════════════════════════════
 *  Single video page
 * ═══════════════════════════════════════════════════════════════════ */
.ptst-video { max-width: 960px; margin: 0; }
.ptst-video__topics { display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0 14px; }
.ptst-video__title {
    margin: 0 0 24px;
    font-size: 38px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.018em;
    color: var(--ink, #0B1B33);
    text-wrap: balance;
}

.ptst-video__player {
    position: relative;
    aspect-ratio: 16 / 9;
    width: 100%;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px -28px rgba(11, 27, 51, 0.42);
}
.ptst-video__player .ptst-video-embed {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    border: 0;
}

.ptst-video__description {
    margin: 28px 0 0;
    max-width: 72ch;
}
.ptst-video__description p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--ink-2, #2A3D5C);
    margin: 0 0 1.1em;
}

.ptst-video__actions {
    margin: 24px 0 0;
    display: flex; flex-wrap: wrap; gap: 12px;
}

@media (max-width: 640px) {
    .ptst-video__title { font-size: 28px; }
}
