/* Blok Video (App\Helpers\VideoBlockRenderer + js/components/video-block.js).
   Rasio, lebar, sudut & bayangan inline dari renderer; sisanya di sini. */
.bk-video { width: 100%; margin-inline: auto; }
.bk-video-frame { position: relative; width: 100%; overflow: hidden; background: #0b0f19; isolation: isolate; }
.bk-video-media { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; background: #000; }
video.bk-video-media { object-fit: contain; }

/* Tampilan "klik untuk putar" */
.bk-video-facade {
    position: absolute; inset: 0; display: block; width: 100%; height: 100%;
    padding: 0; border: 0; margin: 0; background: #0b0f19; color: #fff; cursor: pointer;
    font: inherit; text-align: start;
}
.bk-video-thumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, filter .3s ease; }
.bk-video-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.05) 35%, rgba(0,0,0,.05) 65%, rgba(0,0,0,.45) 100%); }
.bk-video-label {
    position: absolute; top: 0; inset-inline: 0; padding: 16px 20px;
    font-size: clamp(14px, 1.6vw, 18px); font-weight: 600; line-height: 1.35; color: #fff;
    text-shadow: 0 1px 3px rgba(0,0,0,.5);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.bk-video-play {
    position: absolute; top: 50%; left: 50%; display: inline-flex; align-items: center; justify-content: center;
    width: 76px; height: 76px; border-radius: 50%; color: #fff;
    transform: translate(-50%, -50%); box-shadow: 0 10px 30px rgba(0,0,0,.35);
    transition: transform .2s ease, filter .2s ease;
}
.bk-video-play svg { margin-inline-start: 4px; }
[dir="rtl"] .bk-video-play svg { margin-inline-start: 0; margin-inline-end: 4px; transform: none; }
.bk-video-badge {
    position: absolute; bottom: 14px; inset-inline-end: 14px; padding: 4px 9px; border-radius: 6px;
    background: rgba(0,0,0,.6); color: #fff; font-size: 11px; font-weight: 600; letter-spacing: .03em;
}
.bk-video-facade:hover .bk-video-thumb { transform: scale(1.03); filter: brightness(.92); }
.bk-video-facade:hover .bk-video-play { transform: translate(-50%, -50%) scale(1.08); filter: brightness(1.08); }
.bk-video-facade:focus-visible { outline: none; }
.bk-video-facade:focus-visible .bk-video-play { box-shadow: 0 0 0 4px #fff, 0 0 0 8px rgba(59,91,219,.7); }
.bk-video-facade.is-loading .bk-video-play svg { opacity: 0; }
.bk-video-facade.is-loading .bk-video-play::after {
    content: ""; position: absolute; width: 30px; height: 30px; border-radius: 50%;
    border: 3px solid rgba(255,255,255,.35); border-top-color: #fff; animation: bkVideoSpin .8s linear infinite;
}
@keyframes bkVideoSpin { to { transform: rotate(360deg); } }

.bk-video-caption { margin-top: 10px; font-size: 14px; line-height: 1.5; color: #667085; text-align: center; }
@media (max-width: 575.98px) {
    .bk-video-play { width: 60px; height: 60px; }
    .bk-video-play svg { width: 24px; height: 24px; }
    .bk-video-label { padding: 12px 14px; }
}
@media (prefers-reduced-motion: reduce) {
    .bk-video-thumb, .bk-video-play { transition: none; }
}

/* Tahan aturan gambar/iframe/figure global dari isi halaman (content-typography:
   img { height:auto; margin:20px 0 } dll.) — selektor diperkuat. */
.bk-video .bk-video-frame .bk-video-thumb,
.bk-video .bk-video-frame .bk-video-media {
    position: absolute !important; inset: 0 !important;
    width: 100% !important; height: 100% !important; max-width: none !important; max-height: none !important;
    margin: 0 !important; border-radius: 0 !important; box-shadow: none !important;
}
.bk-video .bk-video-frame .bk-video-thumb { object-fit: cover !important; }
figure.bk-video { padding: 0; }
