/* ─── YouTube Facade ─────────────────────────────────────────────────────────
   Użycie: shortcode [dnt_video id="VIDEO_ID"]
   ──────────────────────────────────────────────────────────────────────────── */

.dnt-video {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    cursor: pointer;
    background: var(--global-palette3, #2d4538);
    display: block;
}

/* ── Thumbnail ── */

.dnt-video__thumb {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease, opacity 0.3s ease;
}

.dnt-video:hover .dnt-video__thumb {
    transform: scale(1.03);
    opacity: 0.85;
}

/* ── Overlay ciemny ── */

.dnt-video::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.15);
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* ── Play button ── */

.dnt-video__play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    pointer-events: none;
    transition: transform 0.3s ease;
}

.dnt-video:hover .dnt-video__play {
    transform: scale(1.1);
}

.dnt-video__play svg {
    width: 64px;
    height: 64px;
}

.dnt-video__play-circle {
    stroke: none;
    fill: rgba(255, 255, 255, 0.85);
    transition: fill 0.25s ease;
}

.dnt-video:hover .dnt-video__play-circle {
    fill: #fff;
}

.dnt-video__play-arrow {
    fill: var(--global-palette3, #2d4538);
    transition: fill 0.25s ease;
}

.dnt-video:hover .dnt-video__play-arrow {
    fill: var(--global-palette1, #b55e45);
}

/* ── Iframe (po kliknięciu) ── */

.dnt-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ── Ukryj thumbnail i play po załadowaniu iframe ── */

.dnt-video--playing .dnt-video__thumb,
.dnt-video--playing .dnt-video__play,
.dnt-video--playing::after {
    display: none;
}

/* ─── Layout: 2 landscape stacked (lewa kolumna) ─────────────────────────── */

.dnt-video-col--landscape .kt-inside-inner-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ─── Layout: Short 9:16 (prawa kolumna) ─────────────────────────────────── */

.dnt-video-col--short .dnt-video {
    aspect-ratio: 9 / 16;
    max-width: 380px;
    margin-inline: auto;
}

/* Desktop: wypełnia całą wysokość lewej kolumny */
@media (min-width: 1025px) {
    .dnt-video-col--short .kt-inside-inner-col {
        display: flex;
        flex-direction: column;
        height: 100%;
    }

    .dnt-video-col--short .dnt-video {
        flex: 1;
        aspect-ratio: unset;
        max-width: none;
        margin-inline: 0;
    }
}
