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

:global {
  .app-carousel-item {
    position: relative;
    border-radius: @border-radius-base;
    overflow: hidden;
    cursor: pointer;

    a {
      &:hover {
        color: @color-white !important;
      }
    }

    .app-thumbnail {
      -webkit-transition: -webkit-transform 0.5s;
      transition: transform 0.5s;
      border-radius: @border-radius-base;

      &:before {
        content: "";
        background-color: rgba(0, 0, 0, 0.2);
        border-radius: @border-radius-base;
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: 100%;
        opacity: 0;
      }

      &:after {
        content: "";
        background: url("@{cdnUrl}/public/img/icon/svg/play.svg") no-repeat;
        background-size: 68px 68px;
        position: absolute;
        width: 68px;
        height: 68px;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        margin: auto;
        opacity: 0;
      }
    }

    &:hover {
      //.app-carousel-title {
      //  color: @color-base;
      //}

      .app-thumbnail {
        //-webkit-transform: scale3d(1.1, 1.1, 1);
        //transform: scale3d(1.1, 1.1, 1);

        &:before {
          opacity: 1;
          .transition-opacity();
        }

        &:after {
          opacity: 1;
          .transition-opacity();
        }
      }
    }
  }

  .app-carousel-item-text {
    text-align: center;
    font-size: 30px;
    padding: 12px;
    font-weight: bold;
    line-height: 1.5;
    color: #fff;
  }

  .smooth-active .app-carousel-item-text span {
    box-shadow: inset 0 -4px 0 #de0813;
    padding-bottom: 6px;
  }

  .app-carousel-meta {
    line-height: 1.5;
    margin-top: 8px;
  }

  .app-carousel-title {
    font-size: @font-size-carousel-title;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;

    .app-icon {
      width: 20px;
      height: 20px;
      margin-right: 6px;
      vertical-align: text-bottom;
    }
  }

  .app-carousel-extra {
    color: @color-white-40;
    font-size: 15px;

    .countdown-timer {
      text-align: left;
      color: #9e9e9e;
      margin-bottom: 0;
    }
  }

  .app-carousel-img {
    position: absolute;
    bottom: -3px;
    right: -7px;
  }

  .app-carousel-live {
    //position: absolute;
    //top: 2px;
    //right: 6px;
    color: #9e9e9e;
    line-height: 18px;
    //text-transform: uppercase;

    &:before {
      display: inline-block;
      width: 10px;
      height: 10px;
      vertical-align: 0;
      margin-right: 3px;
      background: #de0813;
      content: '';
      border-radius: 6px;
    }
  }

  .app-carousel-item-absolute {
    &:hover {
      .app-thumbnail {
        -webkit-transform: scale3d(1.1, 1.1, 1);
        transform: scale3d(1.1, 1.1, 1);
      }
    }

    .app-carousel-meta {
      position: absolute;
      bottom: 0;
      padding: 12px 12px 6px;
      margin-top: 0;
      width: 100%;
      z-index: 11;

      &:before {
        content: '';
        position: absolute;
        right: 0;
        bottom: 0;
        left: 0;
        height: 60px;
        z-index: 1;
        .carousel-item-background-gradient();
      }

      .box-sizing();

      img {
        height: 32px;
      }
    }
  }

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

  .app-carousel-meta-body {
    position: relative;
    z-index: 9;
  }

  .app-carousel-item-active {
    background-color: @color-black-40;
  }

  @media (max-width: 768px) {
    .app-carousel-title {
      font-size: 15px;
    }

    .app-carousel-extra {
      font-size: 13px;
    }
  }
}
