/* [admax_video] — „Hogyan működik” videó-blokk + Plyr (Vimeo). */

.how__video {
    text-decoration: none;
    display: block;
    position: relative;
    aspect-ratio: 16 / 9;
    width: 100%;
    max-width: 840px;
    margin: 0 auto;
    border-radius: 21px;
    overflow: hidden;
    background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.045) 0 13px, rgba(255, 255, 255, 0.012) 13px 27px), linear-gradient(160deg, #26534d 0%, #173630 100%);
    border: 1px solid rgba(167, 194, 186, 0.18);
    box-shadow: 0 39px 89px rgba(11, 24, 21, 0.45);
    transition: transform 0.45s cubic-bezier(0.16, 0.84, 0.3, 1), box-shadow 0.45s ease;
    cursor: pointer;
}

.how__video:hover {
    transform: translateY(-4px);
}

.how__video:hover .how__play {
    transform: scale(1.09);
    background: #a7ebdd;
}

.how__video:hover .how__play-tri {
    border-left-color: #1e3a38;
}

.how__video-center {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes am-pulse {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }

    50% {
        opacity: 0.95;
        transform: scale(1.12);
    }
}

.how__play-ring {
    position: absolute;
    width: 105px;
    height: 105px;
    border-radius: 50%;
    border: 1.5px solid rgba(167, 235, 221, 0.4);
    animation: am-pulse 2.4s ease-in-out infinite;
}

.how__play {
    position: relative;
    width: 82px;
    height: 82px;
    border-radius: 50%;
    background: #2c8b74;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 16px 36px rgba(11, 24, 21, 0.5);
    transition: transform 0.38s cubic-bezier(0.16, 0.84, 0.3, 1), background 0.3s ease;
}

.how__play-tri {
    width: 0;
    height: 0;
    border-top: 13px solid transparent;
    border-bottom: 13px solid transparent;
    border-left: 21px solid #fff;
    margin-left: 5px;
    transition: border-color 0.3s ease;
}

.how__ratio-tag {
    position: absolute;
    top: 18px;
    right: 18px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(11, 24, 21, 0.4);
    backdrop-filter: blur(4px);
    color: #cfe6de;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 5px 11px;
    border-radius: 100px;
}

/* Borítókép indításig (ha nincs megadva, a gradiens marad). */
.how__video-poster {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Lejátszás után a poszter-elemek eltűnnek, a Plyr kitölti a keretet. */
.how__video.is-playing {
    cursor: default;
}

.how__video.is-playing .how__video-center,
.how__video.is-playing .how__ratio-tag,
.how__video.is-playing .how__video-poster {
    display: none;
}

.how__video .plyr {
    height: 100%;
    border-radius: 21px;
    /* Plyr-téma az AD MAX palettára. */
    --plyr-color-main: #2c8b74;
    --plyr-video-control-color: #f1f7f4;
    --plyr-video-control-color-hover: #a7ebdd;
    --plyr-range-fill-background: #2c8b74;
    --plyr-range-thumb-background: #a7ebdd;
    --plyr-range-thumb-shadow: 0 1px 2px rgba(11, 24, 21, 0.5);
    --plyr-badge-background: #1e3a38;
    --plyr-badge-color: #a7ebdd;
    --plyr-menu-background: #1e3a38;
    --plyr-menu-color: #f1f7f4;
    --plyr-tooltip-background: rgba(11, 24, 21, 0.85);
    --plyr-tooltip-color: #f1f7f4;
    --plyr-video-progress-buffered-background: rgba(167, 235, 221, 0.35);
}

.how__video .plyr__video-embed,
.how__video .plyr__video-embed .plyr__video-wrapper {
    height: 100%;
}

@media (max-width: 767px) {
    .how__video {
        border-radius: 14px;
        height: 205px;
    }

    .how__play-ring {
        width: 84px;
        height: 84px;
    }

    .how__play {
        width: 64px;
        height: 64px;
    }

    .how__play-tri {
        border-top-width: 10px;
        border-bottom-width: 10px;
        border-left-width: 16px;
    }

    .how__ratio-tag {
        top: 12px;
        right: 12px;
    }
    
}

@media (prefers-reduced-motion: reduce) {
    .how__play-ring {
        animation: none;
    }
}
