/* Video Container */
ta-video-container {
    touch-action: manipulation;
    
    display: block;

    position: fixed;
    top: 0;
    left: 0;

    z-index: 100;

    width: 100%;
    height: 100%;

    background-color: #000;

    visibility: hidden;
    opacity: 0;

    pointer-events: none;
}

ta-video-container[active] {
    visibility: visible;
    opacity: 1;

    pointer-events: all;
}

ta-video-container button {
    font-family: inherit;
}

/* Close Video Container */
ta-close-video-container {
    position: absolute;
    right: 16px;
    top: 30px;
}

ta-close-video-container button {
    display: flex;
    align-items: center;

    color: #fff;

    background-color: transparent;
    padding: 0;
    border: 0;

    outline: none;

    cursor: pointer;

    text-transform: uppercase;
    font-size: 12px;
}

ta-close-video-container button svg {
    margin-left: 9px;
}

@media (min-width: 1024px) {
    ta-close-video-container button {
        font-size: 16px;
        line-height: 20px;
    }

    ta-close-video-container button svg {
        margin-left: 13px;
    }
}

/* Video Area */
ta-video-area video {
    position: absolute;
    top: 0;
    left: 0;

    width: 100%;
    height: 100%;
}

ta-video-area > div {
    width: 100%;
    height: 100%;
}

ta-video-area iframe {
    display: block;

    width: 100%;
    height: 100%;
}

@media (min-width: 1024px) {
    ta-video-area::after {
        display: none;
    }

    ta-video-area video {
        left: 0;
        object-fit: cover;
    }
}

/* Safe Area */
ta-video-container ta-safe-area {
    position: absolute;
    top: 0;
    left: var(--bar-width, 0);
    right: 0;

    width: calc(100% - var(--bar-width, 0) * 2);
    height: 100%;
}

@media (min-width: 1024px) {
    ta-video-container:not(.vimeo) ta-safe-area {
        left: 0;
        width: 100%;
    }
}

.ta-video-buffering-loader {
    position: absolute;
    top: 50%;
    left: 50%;

    transform: translate(-50%, -50%);

    opacity: 0;
    transition: opacity .2s;

    width: 70px;
    height: 70px;
}

.ta-video-buffering-loader[active] {
    opacity: 1;
}

.ta-video-play-button {
    position: absolute;
    top: 50%;
    left: 50%;

    transform: translate(-50%, -50%);

    transition: opacity .2s;

    width: 70px;
    height: 70px;

    cursor: pointer;
}

/* Timeline */
ta-video-timeline {
    position: absolute;
    right: 16px;
    bottom: 10%;

    height: 70%;

    opacity: 0;
    transition: opacity .3s;
}

ta-video-timeline[active] {
    opacity: 1;
}

ta-video-timeline::before {
    content: "";

    position: absolute;
    top: -5px;
    right: 0;

    width: 1px;
    height: calc(100% + 20px);

    background-color: #fff;
}

ta-video-timeline::after {
    content: "";

    position: absolute;
    top: 3px;
    right: 1px;

    width: 3px;
    height: var(--progress, 0);

    background-color: rgba(255, 255, 255, .4);
}

timeline-point,
timeline-interactive-point {
    position: absolute;
    top: var(--position, 0);
    right: 0;
    z-index: 1;

    transform: translate(calc(50% - 0.5px), 0);

    width: 6px;
    height: 6px;

    border: 1px solid #fff;
    border-radius: 50%;

    background-color: #000;
}

timeline-point-description {
    position: absolute;
    right: 15px;
    top: 4px;

    transform: translate(0, -50%);

    text-transform: uppercase;
    text-align: right;

    color: #fff;

    font-size: 12px;
    line-height: 16px;

    opacity: 0;

    transition: opacity .2s;
}

timeline-point:first-child timeline-point-description {
    top: -1px;
    transform: none;
}

timeline-point:last-child timeline-point-description {
    top: auto;
    bottom: -5px;

    transform: none;
}

timeline-point[active] timeline-point-description {
    opacity: 1;
}

timeline-interactive-point {
    cursor: pointer;
    box-shadow: 0 -0.5px 0 8px rgba(1, 128, 50, .8);
    background-color: #fff;
    border-width: 0;
    visibility: hidden;
}

timeline-interactive-point[point-active] {
    visibility: visible;
}

timeline-interactive-point::after {
    content: '';

    position: absolute;
    left: 50%;
    top: 50%;

    width: 30px;
    height: 30px;

    transform: translate(-50%, -50%);
}

timeline-interactive-point-button {
    position: absolute;
    right: 30px;
    top: 50%;

    transform: translateY(-50%);

    visibility: hidden;

    padding: 18px 28px;
    border-radius: 28px;
    background-color: #018032;
    border: none;
    color: #fff;
    white-space:nowrap;
    cursor: pointer;
}

timeline-interactive-point[button-active] timeline-interactive-point-button {
    visibility: visible;
}

@media (min-width: 1024px) {
    ta-video-timeline {
        max-height: 568px;
    }

    timeline-point,
    timeline-interactive-point {
        width: 12px;
        height: 12px;
        border-width: 2px;
    }

    timeline-interactive-point {
        border-width: 0;

        width: 8px;
        height: 8px;
    }

    timeline-point-description {
        right: 30px;
    }
}

/* apple parallax interactive */
ta-video-container ta-interactive,
ta-video-container tomato-sun-interactive,
ta-video-container tomato-harvester-interactive,
ta-video-container tomato-washing-machine-interactive,
ta-video-container orange-washing-machine-interactive,
ta-video-container pineapple-washing-machine-interactive,
ta-video-container peach-washing-machine-interactive,
ta-video-container orange-parallax-interactive,
ta-video-container peach-parallax-interactive,
ta-video-container pineapple-drop-interactive,
ta-video-container schelkovo-deaeration-interactive {
    position: fixed;

    width: 100%;
    height: 100%;

    z-index: 1;

    display: none;
}

ta-video-container ta-interactive[active],
ta-video-container tomato-sun-interactive[active],
ta-video-container tomato-harvester-interactive[active],
ta-video-container tomato-washing-machine-interactive[active],
ta-video-container orange-washing-machine-interactive[active],
ta-video-container pineapple-washing-machine-interactive[active],
ta-video-container peach-washing-machine-interactive[active],
ta-video-container orange-parallax-interactive[active],
ta-video-container peach-parallax-interactive[active],
ta-video-container pineapple-drop-interactive[active],
ta-video-container schelkovo-deaeration-interactive[active] {
    display: block;
}