[v-cloak] {
    display: none;
}

.reshortz-context {

    ul, ol {
        list-style-type: none;
        padding: 0;
        margin: 0;
    }

    h3, h4 {
        margin: 0;
    }

    a {
        text-decoration: none;
    }

    .failed-fullscreen {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: #000;
        z-index: 99999;
    }


    .reshortz-collection-list {
        display: flex;
        flex-direction: row;
        list-style-type: none;
        padding: 0;
        margin: 1rem 0;
    }

    .reshortz-collection-circles {
        max-width: 100%;
        overflow-x: scroll;
    }

    .reshort-item--circle {
        height: 90px;
        width: 90px;
        border-radius: 100%;
        cursor: pointer;
        padding: 3px;
        margin-right: .3rem;
        position: relative;
        overflow: hidden;
        background: #f5f5f5;

        .reshort-item__card-body {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            color: #fff;
        }

        &.reshort-item--showall {
            &::before {
                display: none;
            }
            img {
                filter: blur(1px);
            }
        }

        &.no-image {
            background: rgba(0, 0, 0, 0.5);
        }
    }

    .reshort-item--circle.no-thumb {
        background: rgba(0, 0, 0, .3)
    }

    .reshort-item--circle img {
        height: 90px;
        width: 90px;
        object-fit: cover;
        border-radius: 100%;
    }

    .current-reshort {
        height: 100vh;
        width: 100vw;
        position: relative;


        &__url {
            display: inline-block;

            svg {
                fill: #fff;
                height: 24px;
                width: 24px;
            }
        }

        &__ad-running {
            position: absolute;
            top: 2.5rem;
            left: 1rem;

            font-size: .65rem;
            color: #ffff;
            background: #ff3434;
            padding: .3rem .5rem;
            border-radius: 3px;
        }

        &__views-count{
            position: absolute;
            top: 2.5rem;
            left: 0.7rem;
            display: flex;

            font-size: .8rem;
            color: #333;
            background: #fff;
            padding: 0.2rem 1rem;
            border-radius: 3px;
            align-items: center;
            justify-content: center;
            min-width: 70px;

            &__icon {
                display: flex;
                align-items: center;
                margin-right: .5rem;
            }
            svg {
                width: 14px;
                height: 14px;
            }
        }

        &__adcontenthtml {
            margin-bottom: 2rem;
        }

        &__ad_btn_content {
            display: block;
            margin: 10px 0;
        }
        &__ad-btn {
            font-size: 1rem;
            color: #ffff;
            background: #ff3434;
            padding: .5rem .9rem;
            border-radius: 3px;
        }

        &__skipad {
            visibility: hidden;
            &--show {
                visibility: visible;
            }
        }
    }

    .current-reshort__controls {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        height: 45vh;
        width: 45vw;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: opacity .5s ease;
    }


    .current-reshort__prev,
    .current-reshort__next {
        position: absolute;
        top: 50%;
        height: 45vh;
        width: 26.5vw;
        left: auto;
        transform: translateY(-50%);
    }

    .current-reshort__prev {
        left: 0;
    }

    .current-reshort__next {
        right: 0;
    }

    .current-reshort video {
        opacity: 1;
    }

    .current-reshort.loading-another video {
        /*opacity: .3;*/
    }

    .current-reshort__controls .rs-control-icon{
        height: 100%;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .current-reshort__controls .rs-control-icon svg{
        height: 30px;
        width: 30px;
        fill: #fff;
    }

    .current-reshort__video video {
        height: 100vh;
        width: 100vw;
        object-fit: contain;
    }

    .current-reshort__aside {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        padding: 1rem 4.5rem 1rem 1rem;
        color: #fff;
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.85) 100%);
    }
    .current-reshort__aside h3.title {
        font-size: 1.4rem;
        color: #fff;
        margin: 0;
    }
    .current-reshort__aside .content {
        font-size: 1rem;
        margin-bottom: 1rem;

        @media (max-width: 768px) {
            display: none;
        }
    }

    .current-reshort__aside .content a {
        color: #fff;
        text-decoration: underline;
    }

    .current-reshort__actions {
        position: absolute;
        right: 1rem;
        display: flex;
        flex-direction: column;
        bottom: 2rem;
        z-index: 999;
    }

    .current-reshort__action {
        margin-bottom: 0.5rem;
        color: #fff;
        cursor: pointer;
    }

    .current-reshort__close {
        position: absolute;
        right: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        height: 60px;
        width: 60px;
        top: -10px;
        cursor: pointer;
        z-index: 999;
    }

    .current-reshort__close svg {
        height: 16px;
        width: 16px;
        fill: #fff;
    }

    .current-reshort__term {
        position: absolute;
        top: 3rem;
        left: 1rem;
        color: #fff;

        .current-reshort-term-tag-val {
            font-weight: bold;
        }


        @media(min-width: 769px) {
            top: 2.5rem;
            color: #fff;
            right: 1rem;
            left: auto;
        }
    }

    .show-views {
        .current-reshort__term {
            top: 5rem;
        }
    }


    .current-reshort__action {
        margin-bottom: 0.5rem;
        color: #fff;
        cursor: pointer;
        height: 40px;
        width: 40px;
        font-size: 0.8rem;
        display: flex;
        align-items: center;
        justify-content: center;
        line-height: 40px;
    }

    .current-reshort__progress {
        position: absolute;
        top: 1rem;
        left: 10px;
        right: 80px;
        height: 4px;
        background: rgba(255, 255, 255, .2);
        border-radius: 1px;
        overflow: hidden;
    }

    .current-reshort__progressbar {
        background: rgba(255, 255, 255, .7);
        position: absolute;
        height: 4px;
        top: 0;
        left: 0;
    }
    .is-playing .current-reshort__progressbar {
        transition: width 1s linear;
    }
    .is-paused .current-reshort__progressbar {
        transition: width 0s linear;
    }


    .rs-action--icon svg {
        height: 16px;
        width: 16px;
        stroke: #fff;
        fill: #fff;
    }

    .rs-action--icon {
        display: flex;
        align-items: center;
    }

    .rs-action--value {
        margin-left: .4rem;
    }

    @-moz-keyframes spin {
        100% { -moz-transform: rotate(360deg); }
    }
    @-webkit-keyframes spin {
        100% { -webkit-transform: rotate(360deg); }
    }
    @keyframes spin {
        100% {
            -webkit-transform: rotate(360deg);
            transform:rotate(360deg);
        }
    }

    .rs-buffering-icon {
        -webkit-animation:spin 4s linear infinite;
        -moz-animation:spin 4s linear infinite;
        animation:spin 4s linear infinite;
    }

    .current-reshort__viewlist {
        position: fixed;
        top: 0;
        right: 0;
        width: 70%;
        height: 100%;
        background: #000;
        transform: translateX(100%);
        transition: .3s ease;
        border-left: 1px solid rgba(255, 255, 255, .3);
        padding-top: 2rem;
        padding-bottom: 2rem;
        max-height: 100vh;
        overflow-y: scroll;

        @media(min-width: 769px) {
            width: 25%;
        }
    }

    .current-reshort__viewlist--show {
        transform: translateX(0);
    }

    .viewlist-aside {
        list-style-type: none;
        padding: 0;
        margin: 0;
    }
    .viewlist-aside > li {
        padding: 3px;
        border-bottom: 1px solid rgba(255, 255, 255, .3);
    }
    .viewlist-aside__item {
        display: flex;
        flex-direction: row;
        cursor: pointer;
        align-items: center;

        &--current {
            padding-left: .5rem;
        }
    }

    .viewlist-item__thumb {
        width: 25%;
        height: 60px;
        margin-right: 10px;
    }


    .viewlist-item__thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .viewlist-item__title {
        font-size: 1rem;
        width: 75%;
    }

    h4.viewlist-item__title {
        color: #fff;
        margin: 0;
    }

    .viewlist-aside__item--current {
        h4.viewlist-item__title {
            color: #fdb819;
        }
    }


    /**
     * card template
     */
    .reshortz-collection-cards{
        width: 100%;
        display: flex;
        flex-direction: row;
        max-width: 100%;
        overflow-x: scroll;
        scrollbar-width: thin;
        scrollbar-color: #ffbe00 #ffffff;


        /* Chrome, Edge, and Safari */
        &::-webkit-scrollbar {
            width: 3px;
        }

        &::-webkit-scrollbar-track {
            background: #ffffff;
        }

        &::-webkit-scrollbar-thumb {
            background-color: #ffbe00;
            border-radius: 3px;
            border: 3px solid #ffffff;
        }
    }

    .reshortz-collection-cards > li {
        width: 50%;
        min-width: 50%;
    }
    .reshortz-collection-cards > li:not(:last-child) {
        margin-right: 5px;
    }
    .reshort-item--card {
        height: 300px;
        border-radius: 0;
        position: relative;
        cursor: pointer;
        background: rgba(0, 0, 0, .3);
    }

    .reshort-item--card img {
        object-fit: cover;
        width: 100%;
        height: 100%;
    }

    .reshort-item--card .reshort-item__card-body {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 1rem;
        color: #fff;
        background: linear-gradient(to bottom,rgba(0,0,0,0) 0%,rgba(0,0,0,.85) 100%);
    }


    .reshort-item--showall {

        &::before {
            position: absolute;
            top: 0;
            right: 0;
            bottom: 0;
            left: 0;
            content: '';
            background: rgba(0, 0, 0, .5);
            z-index: 3;
        }
        .reshort-item__card-body {
            top: 50%;
            text-align: center;
            z-index: 4;
        }
        img {
            filter: blur(3px);
        }
    }

    .reshort-item--card h4.reshort-item__title {
        font-size: 1.2rem;
        color: #fff;
        margin: 0;
    }

    ul.reshort-item__categories,
    ul.reshort-item__tags {
        list-style-type: none;
        padding: 0;
        margin: 0 0 .5rem 0;
        font-size: .8rem;
        color: #fff;
        text-shadow: 0 0 2px rgba(0, 0, 0, .6);
    }

    .reshort-item__tags {
        font-size: .7rem;
        display: block;
    }

    .reshort-item__tags > li {
        display: inline-block;
    }

    .reshort-item__tag {
        &--selected {
            a {
                color: #fdb819;
            }
        }
    }

    .reshort-item__tags > li:not(:last-child) {
        margin-right: .3rem;
    }

    .reshort-item__category-url,
    .reshort-item__tag-url {
        color: #fff;
        text-decoration: none;
        border: none;
    }


    /**
     * Style variants
     */
    .reshort-item--card2 {

        overflow: hidden;
        border-radius: 10px;

        .reshort-item {
            &__categories {
                position: absolute;
                top: 0.5rem;
                right: 0.5rem;

                @media(min-width: 769px) {
                    top: 1rem;
                    right: 1rem;
                }

                > li {
                    &:not(:first-child) {
                        display: none;
                    }
                }
            }

            &__category {
                a {
                    padding: 0.2rem 0.7rem;
                    background: rgba(255, 255, 255, .8);
                    border-radius: 10px;
                    color: #333;
                    text-shadow: none;
                }
            }
        }
    }


    .reshortz-collection-cards3 {
        > li {
            margin-right: 1rem;
        }
    }

    .reshort-item--card3 {
        background: transparent;
        height: auto;
        border-radius: 10px;
        overflow: hidden;

        .reshort-item {
            &__card-body {
                position: relative;
                padding: 1rem;
                border-bottom-right-radius: 10px;
                border-bottom-left-radius: 10px;
                background: #f5f5f5;
            }

            &__placeholder {
                background: rgba(0, 0, 0, .4)
            }

            &__category-url {
                color: #333;
                background: transparent;
                text-shadow: none;
                &:hover {
                    background: transparent;
                }
            }
        }

        h4.reshort-item__title {
            color: #333;
        }
    }



    /**
     * Comments
     */

    .current-reshort__comments {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 50vh;
        z-index: 9999;
        background: #fff;
        overflow-y: scroll;

        &__title {
            display: flex;
            font-size: 1.1rem;
            justify-content: space-between;
            padding: 1rem;
        }

        &__close {
            cursor: pointer;
            svg {
                height: 18px;
                width: 18px;
            }
        }
    }

    ul.reshortz-comments-list {
        list-style-type: none;
        padding: 0 1rem;
        margin: 0;
        max-height: 70%;
        overflow-y: scroll;
    }

    .current-reshort__nocomments {
        padding: 1rem;
    }

    .reshort-comment {
        display: flex;
        flex-direction: column;
        margin-bottom: 0.5rem;
        border-bottom: 1px solid rgba(0, 0, 0, .1);
        padding-bottom: 0.5rem;

        &__header {
            display: flex;
            align-items: center;
        }

        &__avatar {
            margin-right: 0.5rem;
            img {
                height: 30px;
                width: 30px;
                border-radius: 100%;
            }
        }

        &__content {
            padding-left: 38px;
        }
    }

    .reshort-commentform {
        padding: 1rem;
    }

    .reshort-comment__replyto {
        font-size: .8rem;
        position: relative;
        padding-left: 3rem;

        &::before {
            content: '';
            position: absolute;
            height: 1px;
            width: 2.7rem;
            background: rgba(0, 0, 0, 0.3);
            left: 0;
            top: 10px;
        }

        &--author {
            font-size: .7rem;
            font-style: italic;
        }
    }


    .ad-running {
        .current-reshort__url,
        .reshort-item__categories,
        .reshort-item__tags,
        .current-reshort__aside .title,
        .current-reshort__aside .content {
            display: none;
        }
    }

    /**
    Slider
     */
    .reshortz-collection-cards-wrapper {
        position: relative;
    }

    .reshortz-collection-cards-slider {
        .reshortz-collection-cards{

            overflow-x: hidden;

            scrollbar-width: none;
            scrollbar-color: #ffbe00 #ffffff;


            /* Chrome, Edge, and Safari */
            &::-webkit-scrollbar {
                display: none;
            }

            &::-webkit-scrollbar-track {
                display: none;
            }

            &::-webkit-scrollbar-thumb {
                display: none;
            }
        }
    }

    .reshortz-collection-cards-grid {
        .reshortz-collection-cards{
            overflow-x: hidden;
            flex-wrap: wrap;

            > li {
                padding: 3px;
                &:not(:last-child) {
                    margin-right: 0;
                }
            }
        }
    }


    .reshortz-slider-nav {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        display: flex;
        cursor: pointer;
        width: 26px;
        height: 26px;
        border-radius: 100%;
        align-items: center;
        justify-content: center;
        background: #f5f5f5;

        @media (max-width: 768px) {
            top: -2rem;
            width: 36px;
            height: 36px;
        }

        &--left {
            right: 3rem;
            @media(min-width: 769px) {
                left: -3rem;
            }
        }

        &--right {
            right: 0;
            @media(min-width: 769px) {
                right: -3rem;
            }
        }
        svg {
            width: 16px;
            height: 16px;
            fill: #777;
        }
    }
}
