@import "../../../themes/default";

:global {
  .app-slider {
    position: relative;

    .app-carousel {
      .smooth-list {
        margin-left: -6px;
        margin-right: -6px;
      }

      .smooth-arrow {
        width: 23px;
        height: 41px;
      }

      .smooth-arrow-top {
        width: 12px;
        height: 21px;
        background-size: 12px 21px !important;
        top: -30px;
      }

      .smooth-arrow.smooth-arrow-top {
        opacity: 0.65;
      }

      .smooth-arrow-top.smooth-next {
        right: 0;
      }

      .smooth-arrow-top.smooth-prev {
        right: 28px;
        left: auto;
      }

      .smooth-arrow-top.smooth-hidden {
        display: block;
        opacity: 0.3 !important;
      }

      .smooth-next {
        background: url('@{cdnUrl}/public/img/arrow/next.png') no-repeat;
        right: -27px;
      }

      .smooth-prev {
        background: url('@{cdnUrl}/public/img/arrow/prev.png') no-repeat;
        left: -27px;
        //transform: rotate(180deg);
      }

      .smooth-dots {
        top: -12px;
        right: -2px;
        text-align: right;
      }

      .smooth-dots li.smooth-active button {
        background: #de0813;
      }
    }

    .app-carousel-item {
      margin: 0 6px;
    }

    .app-slider-heading {
      font-size: 22px;
      padding-top: 32px;
      padding-bottom: 8px;
      margin: 0;
    }
  }

  .app-slider.app-slider-fullscreen {
    .app-thumbnail-landscape, .app-thumbnail-portrait {
      background-size: cover;
    }

    .app-carousel {
      .smooth-next {
        right: 10px;
      }

      .smooth-prev {
        left: 10px;
      }

      .smooth-slider-center {
        .smooth-arrow {
          width: @padding-slide-center;
          height: 100%;
          background: rgba(0, 0, 0, 0.65);
          opacity: 0.96;
        }

        .smooth-next {
          right: -@padding-slide-center;
          //right: calc(~"-40% + 2px");

          &:before {
            content: '';
            position: absolute;
            background: url('@{cdnUrl}/public/img/arrow/next.png') no-repeat;
            top: 0;
            bottom: 0;
            right: 0;
            left: 0;
            margin: auto;
            width: 23px;
            height: 41px;
          }
        }

        .smooth-prev {
          left: -@padding-slide-center;
          transform: rotate(0deg);

          &:before {
            content: '';
            position: absolute;
            background: url('@{cdnUrl}/public/img/arrow/prev.png') no-repeat;
            top: 0;
            bottom: 0;
            right: 0;
            left: 0;
            margin: auto;
            width: 23px;
            height: 41px;
          }
        }
      }

      .smooth-dots {
        text-align: center;
        top: auto;
        bottom: 12px;
        left: 0;
        right: 0;
        margin-left: 0;
      }

      @media (min-width: 1601px) {
        .smooth-slider-center {
          .smooth-arrow {
            width: @padding-slide-center-min-width-1601;
          }

          .smooth-next {
            right: -@padding-slide-center-min-width-1601;
          }

          .smooth-prev {
            left: -@padding-slide-center-min-width-1601;
          }
        }
      }
    }
  }

  .app-slider.app-slider-center {
    overflow: hidden;

    .smooth-list {
      overflow: inherit;
    }
  }

  .app-slider-text .app-carousel .smooth-arrow:before {
    background: url('@{cdnUrl}/public/img/arrow-next.png') no-repeat;
  }

  .app-slider-fullscreen {
    h3 {
      display: none !important;
    }

    .app-skeleton-title {
      display: block !important
    }

    .app-carousel {
      .smooth-list {
        margin: 0;
      }
    }

    .app-carousel-item {
      border-radius: 0;
      margin: 0 !important;
      position: relative;
      overflow: hidden;
    }

    .app-thumbnail, .app-thumbnail-default {
      border-radius: 0 !important;
      padding-bottom: 31% !important;
      background-repeat: no-repeat;
    }

    .app-thumbnail:before {
      content: '';
      position: absolute;
      z-index: 10;
      opacity: 1 !important;
      background-color: transparent !important;
      top: 0;
      bottom: 0;
      left: 0;
      width: 0 !important;
    }

    .app-carousel-item-right {
      .app-thumbnail, .app-thumbnail-default {
        padding-bottom: 57% !important;
        background-repeat: no-repeat;
      }

      .app-thumbnail:before {
        content: '';
        position: absolute;
        z-index: 10;
        opacity: 1 !important;
        background-color: transparent !important;
        background-image: -webkit-gradient(linear, left top, right top, from(#000), to(transparent));
        background-image: -webkit-linear-gradient(left, #000, transparent);
        background-image: -moz-linear-gradient(left, #000, transparent);
        background-image: -o-linear-gradient(left, #000, transparent);
        background-image: linear-gradient(to right, #000, transparent);
        top: 0;
        bottom: 0;
        left: 0;
        width: 60% !important;
      }
    }

    .app-carousel-meta {
      display: none;
    }

    .app-carousel {
      .smooth-dots {
        height: 10px;
        text-align: left;
        margin-left: 12px;

        li {
          margin: 0 6px 0 0;

          button {
            width: 10px;
            height: 10px;
            border-radius: 50%;
          }
        }

        li.smooth-active {
          button {
            width: 10px;
            height: 10px;
          }
        }
      }
    }
  }

  .app-slider-more {
    position: relative;
    background: @color-black-40;
    color: #fff;
    text-align: center;
    padding-bottom: 60%;
    font-size: 0;
    cursor: pointer;

    &:hover {
      background: @color-black-70;
    }

    &:after {
      content: "Xem thêm";
      position: absolute;
      font-size: 14px;
      top: 0;
      bottom: 0;
      left: 0;
      right: 0;
      margin: auto;
      display: -ms-flexbox;
      display: flex;
      .items-center();
      .justify-center();
    }
  }

  .app-slider-portrait-more {
    padding-bottom: 130% !important;
  }

  .app-slider-detail {
    .app-slider-content {
      background-color: #000000;
    }

    .app-carousel {
      width: 860px;
      margin-left: auto;

      .app-thumbnail {
        padding-bottom: 450px !important;

        &:before {
          content: "";
          position: absolute;
          background-image: url("@{cdnUrl}/public/img/bg-film.png") !important;
          .thumbnail-background-gradient();
          top: 0;
          bottom: 0;
          left: 0;
          right: 0;
          width: 400px !important;
          height: 100%;
          border-radius: 0;
        }

        &:after {
          content: "";
          position: absolute;
          top: 0;
          bottom: 0;
          left: 0;
          right: 0;
          width: 400px !important;
          height: 100% !important;
          opacity: 1 !important;
          background-size: auto !important;
          margin-left: 0 !important;
          border-radius: 0;
          .thumbnail-background-gradient();
        }
      }

      .smooth-dots {
        left: auto !important;
        right: 12px;
      }
    }

    .app-carousel-item {
      cursor: default;
    }
  }

  @media (max-width: 768px) {
    .app-slider {
      .app-slider-heading {
        font-size: 18px;
        line-height: 21px;
      }
    }
  }
}
