/* ==========================================
   VIDEO BLOCK
   Media Component
========================================== */


/* ---------- Section ---------- */

.video-section {
    padding: 90px 0;
    background: linear-gradient(
        180deg,
        var(--color-background),
        var(--color-background-soft)
    );
}


/* ---------- Header ---------- */

.video-header {
    max-width: 760px;
    margin: 0 auto 40px;
    text-align: center;
}

.video-header h2 {
    margin-bottom: 15px;
}

.video-header p {
    color: var(--color-text-soft);
    font-size: 18px;
    line-height: 1.7;
}


/* ---------- Player Wrapper ---------- */

.video-wrapper {
    position: relative;
    overflow: hidden;

    background: #000;

    border-radius: var(--radius-large);

    box-shadow: var(--shadow-large);

    transition: var(--transition-base);
}

.video-wrapper:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-large);
}

.video-wrapper video {
    display: block;
    width: 100%;
    height: auto;
}


/* ---------- Plyr Customization ---------- */

.plyr {
    --plyr-color-main: var(--color-primary);

    --plyr-video-control-color: var(--color-white);

    --plyr-menu-background: var(--color-white);

    --plyr-menu-color: var(--color-text);

    border-radius: var(--radius-large);
}


.plyr__poster {
    background-size: cover;
    background-position: center;
}


/* ---------- Video Animation ---------- */

.video-section {
    opacity: 0;
    transform: translateY(40px);

    transition:
        opacity var(--transition-slow),
        transform var(--transition-slow);
}

.video-section.show {
    opacity: 1;
    transform: translateY(0);
}


/* ---------- Responsive ---------- */

@media (max-width: 992px) {

    .video-section {
        padding: 70px 0;
    }

}


@media (max-width: 768px) {

    .video-section {
        padding: 60px 0;
    }

    .video-header p {
        font-size: 17px;
    }

    .video-wrapper,
    .plyr {
        border-radius: var(--radius-medium);
    }

}


@media (max-width: 480px) {

    .video-header p {
        font-size: 16px;
    }

}