/* Videopagina (desktop)
 *
 * Zelfde kleuren en vakken als de voorpagina; het lettertype (TPC Titillium)
 * laadt header.css al. Zie includes/video-page.php.
 */

.vp {
    --card: #161c2b;
    --card-2: #1c2230;
    --line: rgba(255, 255, 255, 0.08);
    --line-2: rgba(255, 255, 255, 0.16);
    --fg: #f3f5fa;
    --muted: #8d95a8;
    --dim: #5d6579;
    --red: #e10600;

    box-sizing: border-box;
    max-width: 1280px;
    margin: 0 auto;
    padding: 28px 24px 48px;
    color: var(--fg);
    font-family: "TPC Titillium", "Titillium Web", "Segoe UI", system-ui, sans-serif;
    line-height: 1.4;
    -webkit-font-smoothing: antialiased;
}
.vp *, .vp *::before, .vp *::after { box-sizing: border-box; }
.vp a { color: inherit; text-decoration: none; }
.vp img { display: block; max-width: 100%; }
.vp button { font: inherit; color: inherit; }
.vp [hidden] { display: none !important; }
.vp a:focus-visible, .vp button:focus-visible { outline: 2px solid var(--fg); outline-offset: 2px; }
.vp-empty { padding: 60px 0; text-align: center; color: var(--muted); }

.vp .vp-h { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-family: inherit; font-size: 12px; font-weight: 700; line-height: 1.4; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.vp .vp-h::before { content: ""; flex: none; width: 18px; height: 3px; background: var(--red); transform: skewX(-24deg); }
.vp .vp-h::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ── Speler + Up next ── */
.vp-top { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; }
.vp-stage { border-radius: 18px; overflow: hidden; background: var(--card); border: 1px solid var(--line); }
.vp-player { position: relative; display: block; aspect-ratio: 16 / 9; background: #000; cursor: pointer; }
.vp .vp-player img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.2s, transform 0.5s; }
.vp-player:hover img { opacity: 0.9; transform: scale(1.01); }
.vp-player::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(8, 11, 20, 0.55)); pointer-events: none; }
.vp-player.is-live::after { display: none; }
.vp-play { position: absolute; left: 50%; top: 50%; z-index: 1; width: 84px; height: 84px; margin: -42px 0 0 -42px; display: grid; place-items: center; border-radius: 50%; background: var(--red); box-shadow: 0 10px 40px rgba(225, 6, 0, 0.5), 0 0 0 8px rgba(225, 6, 0, 0.18); transition: transform 0.15s; }
.vp-player:hover .vp-play { transform: scale(1.08); }
.vp-play svg { width: 34px; height: 34px; margin-left: 5px; }
.vp-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.vp-now { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 20px; align-items: center; padding: 18px 24px 22px; }
.vp-badge { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; background: var(--red); font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.vp .vp-now h1 { grid-column: 1; margin: 6px 0 0; font-family: inherit; font-size: 28px; line-height: 1.15; font-weight: 900; color: var(--fg); text-wrap: balance; }
.vp-by { grid-column: 1; display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.vp-by b { color: var(--fg); font-weight: 700; }
.vp-acts { grid-column: 2; grid-row: 1 / span 3; display: grid; gap: 8px; }
.vp .vp-btn { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 16px; border-radius: 12px; background: var(--red); color: #fff; font-size: 13px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; white-space: nowrap; }
.vp .vp-btn:hover { background: #ff1a12; }
.vp .vp-btn.is-ghost { background: transparent; border: 1px solid var(--line-2); }
.vp .vp-btn.is-ghost:hover { background: rgba(255, 255, 255, 0.06); }
.vp-btn svg { width: 18px; height: 18px; }

.vp-ch-ava { --c: #5d6579; flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 50%, #0e1320)); color: #fff; font-size: 11px; font-weight: 900; letter-spacing: 0.02em; }

.vp-next { padding: 18px 14px 10px 18px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.vp-next .vp-h { margin-right: 4px; }
.vp-list { display: grid; gap: 4px; }
.vp-item { display: grid; grid-template-columns: 136px minmax(0, 1fr); gap: 12px; align-items: start; padding: 6px; border-radius: 12px; transition: background 0.15s; }
.vp-item:hover { background: rgba(255, 255, 255, 0.05); }
.vp-thumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 9px; overflow: hidden; background: #0b0f19; }
.vp .vp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.vp-item b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 14px; font-weight: 700; line-height: 1.3; }
.vp-item small { display: block; margin-top: 4px; font-size: 12px; color: var(--muted); }
.vp-new { position: absolute; left: 6px; top: 6px; z-index: 1; padding: 2px 6px; border-radius: 5px; background: var(--red); font-size: 10px; font-weight: 900; letter-spacing: 0.08em; }

/* ── Kanalen ── */
.vp-chans { display: flex; align-items: center; gap: 8px; margin: 28px 0 22px; padding: 12px 14px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); overflow-x: auto; scrollbar-width: thin; scrollbar-color: #2a3142 transparent; }
.vp-chans-label { flex: none; width: 70px; font-size: 10.5px; font-weight: 700; line-height: 1.35; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.vp .vp-chip { --c: #5d6579; flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.02); font-size: 13px; font-weight: 700; white-space: nowrap; cursor: pointer; }
.vp-chip .vp-ch-ava { width: 26px; height: 26px; font-size: 10px; }
.vp-chip i { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: rgba(255, 255, 255, 0.1); font-size: 11px; font-style: normal; line-height: 18px; text-align: center; color: var(--muted); }
.vp .vp-chip:hover { border-color: color-mix(in srgb, var(--c) 70%, transparent); }
.vp .vp-chip[aria-pressed="true"] { border-color: var(--red); background: rgba(225, 6, 0, 0.14); }
.vp-chip[aria-pressed="true"] i { background: var(--red); color: #fff; }
.vp .vp-chip.is-all { padding-left: 12px; }

/* ── Raster ── */
.vp-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-bottom: 28px; }
.vp-card { --c: #5d6579; position: relative; display: flex; flex-direction: column; border-radius: 14px; overflow: hidden; background: var(--card); border: 1px solid var(--line); transition: border-color 0.15s, transform 0.15s; }
.vp-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; z-index: 2; height: 3px; background: var(--c); }
.vp-card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.vp-card.is-playing { border-color: var(--red); }
.vp-card .vp-thumb { border-radius: 0; }
.vp-card .vp-thumb::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, 0); transition: background 0.15s; }
.vp-card:hover .vp-thumb::after { background: rgba(0, 0, 0, 0.25); }
.vp-mini-play { position: absolute; left: 50%; top: 50%; z-index: 1; width: 46px; height: 46px; margin: -23px 0 0 -23px; display: grid; place-items: center; border-radius: 50%; background: rgba(225, 6, 0, 0.92); opacity: 0; transform: scale(0.85); transition: opacity 0.15s, transform 0.15s; }
.vp-card:hover .vp-mini-play { opacity: 1; transform: none; }
.vp-mini-play svg { width: 18px; height: 18px; margin-left: 3px; }
.vp-card-body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 12px 14px 14px; }
.vp .vp-card h3 { margin: 0; font-family: inherit; font-size: 15.5px; line-height: 1.3; font-weight: 700; color: var(--fg); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vp-card-meta { display: flex; align-items: center; gap: 8px; margin-top: auto; font-size: 12.5px; color: var(--muted); }
.vp-card-meta .vp-ch-ava { width: 22px; height: 22px; font-size: 9px; }
.vp-card-meta b { font-weight: 600; color: #c9cedb; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── Smallere vensters ── */
@media (max-width: 1100px) {
    .vp-top { grid-template-columns: minmax(0, 1fr); }
    .vp-list { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
    .vp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
    .vp { padding: 16px 14px 32px; }
    .vp-now { grid-template-columns: minmax(0, 1fr); padding: 14px 16px 18px; }
    .vp-acts { grid-column: 1; grid-row: auto; grid-template-columns: 1fr 1fr; }
    .vp .vp-now h1 { font-size: 22px; }
    .vp-chans-label { display: none; }
    .vp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}
/* ── Mobiele pagina (/mobile-videos/): speler bovenaan, daaronder een lijst ── */
.vp.vp--mobile { padding: 14px 12px 24px; }
.vp--mobile .vp-stage { border-radius: 14px; }
.vp--mobile .vp-play { width: 64px; height: 64px; margin: -32px 0 0 -32px; }
.vp--mobile .vp-play svg { width: 26px; height: 26px; }
.vp--mobile .vp-now { grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 12px 14px 14px; }
.vp--mobile .vp-now h1 { font-size: 19px; line-height: 1.2; }
.vp--mobile .vp-acts { grid-column: 1; grid-row: auto; grid-template-columns: 1fr 1fr; margin-top: 6px; }
.vp--mobile .vp-btn { padding: 10px 8px; font-size: 11.5px; letter-spacing: 0.03em; }
.vp--mobile .vp-chans { margin: 16px -12px 16px; padding: 10px 12px; border-radius: 0; border-left: 0; border-right: 0; scrollbar-width: none; }
.vp--mobile .vp-chans::-webkit-scrollbar { display: none; }
.vp--mobile .vp-chans-label { display: none; }
.vp--mobile .vp-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; margin-bottom: 20px; }
.vp--mobile .vp-card { display: grid; grid-template-columns: 42% minmax(0, 1fr); border-radius: 12px; }
.vp--mobile .vp-card:hover { transform: none; }
.vp--mobile .vp-card::before { top: 0; bottom: 0; right: auto; width: 3px; height: auto; }
/* Foto vult de hele hoogte van de kaart (die hangt af van de lengte van de titel). */
.vp--mobile .vp-card .vp-thumb { align-self: stretch; height: auto; min-height: 84px; aspect-ratio: auto; }
.vp--mobile .vp-card .vp-thumb img { position: absolute; inset: 0; }
.vp--mobile .vp-mini-play { display: none; }
.vp--mobile .vp-card-body { gap: 6px; padding: 9px 10px 10px; }
.vp--mobile .vp-card h3 { font-size: 14px; -webkit-line-clamp: 3; }
.vp--mobile .vp-card-meta { font-size: 11.5px; gap: 6px; }
.vp--mobile .vp-card-meta .vp-ch-ava { width: 18px; height: 18px; font-size: 8px; }

@media (prefers-reduced-motion: reduce) {
    .vp-card, .vp-play, .vp .vp-player img { transition: none; }
}
