.joe_video {
  &__contain {
    position: relative;
    padding: 60px 15px 15px;
    background: var(--background);
    border-radius: var(--radius-wrap);
    box-shadow: var(--box-shadow);

    &-title {
      position: absolute;
      top: 15px;
      left: -10px;
      height: 30px;
      padding: 0 12px;
      color: #fff;
      font-weight: 500;
      line-height: 30px;
      background: var(--theme);
      border-radius: 2px 2px 2px 0;
      box-shadow: 2px 5px 10px rgba(49, 58, 70, 0.15);
      user-select: none;

      &::after {
        position: absolute;
        bottom: -10px;
        left: -10px;
        border-color: var(--theme) transparent transparent;
        border-style: solid;
        border-width: 10px;
        transform: rotate(90deg);
        content: "";
      }
    }
  }

  &__type {
    margin-bottom: 15px;

    &-list {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
      gap: 15px;
      padding-top: 15px;
      border-top: 1px solid var(--classC);

      .item {
        height: 28px;
        padding: 0 15px;
        overflow: hidden;
        color: var(--routine);
        font-size: 12px;
        line-height: 28px;
        white-space: nowrap;
        text-align: center;
        text-overflow: ellipsis;
        background: var(--classD);
        border-radius: 14px;
        cursor: pointer;
        transition: color 0.35s, background 0.35s, box-shadow 0.35s,
          transform 0.35s;
        user-select: none;

        &.active {
          color: #fff;
          background: var(--theme);
          box-shadow: 0 5px 5px rgba(0, 0, 0, 0.1);
          transform: translateY(-2px);
        }

        &:hover {
          box-shadow: 0 5px 5px rgba(0, 0, 0, 0.1);
          transform: translateY(-2px);
        }
      }

      .error {
        color: var(--routine);
        text-align: center;
        user-select: none;
      }
    }
  }

  &__list {
    &-item {
      display: grid;
      grid-template-columns: repeat(5, 1fr);
      gap: 15px;
      padding-top: 15px;
      border-top: 1px solid var(--classC);

      .item {
        position: relative;
        overflow: hidden;
        border-radius: var(--radius-inner);

        .year {
          position: absolute;
          top: 8px;
          right: 8px;
          z-index: 3;
          padding: 2px 5px;
          color: #fff;
          font-size: 12px;
          font-style: normal;
          background: #ff6800;
          border-radius: 2px;
        }

        .thumb {
          position: relative;
          height: 260px;

          .pic {
            width: 100%;
            height: 100%;
            object-fit: cover;
          }

          &::before {
            position: absolute;
            top: 0;
            right: 0;
            bottom: 0;
            left: 0;
            z-index: 2;
            background: rgba(0, 0, 0, 0);
            transition: background 0.3s ease-out;
            content: "";
          }

          &::after {
            position: absolute;
            top: 50%;
            left: 50%;
            z-index: 3;
            width: 50px;
            height: 50px;
            margin: -25px 0 0 -25px;
            background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAMAAAAp4XiDAAAA1VBMVEUcHBwAAAD8/PwpKSn///////+SkpL6+vrMzMx6enrj4+Pf39+4uLhkZGRhYWFTU1P///9DQ0P////////////////+/v5bW1v39/fz8/P////////a2tpoaGj////19fXY2Nizs7Oqqqr///+VlZU8PDz///////////////////+9vb3///+xsbH///////////////////////////+Ojo7////////v7+/s7Oz////////////q6url5eXc3Nzc3NzJycnCwsKgoKCLi4v////////8X/FsAAAARnRSTlNmAPtq77qS9r2F1NGsfHt2k3BWHQsG+3ny69rWy35f7sinopeUbiHcxr2wr6qmpaF9LxoWmJAyH+jig3tj3dnOzLmzmo4z4F1A4QAAAdxJREFUSMellmlX6jAQhod0X1gKlLKDILjgLuj17veq7///SaLgoZm02OjzsTlPTyaZmQyVFBrDmtU1Wy2za9WGDXWdK42rHiR6V/d7leszAE4QrgaRYUSDVRg4AM6uc5XbS0CMbYNSGPZYAJe32UrdhHCrpFB1Bcx6hhJPAT+hTBIfmMZcaVoQB5TLgYDVlJXmMdoe7cFr47iZVuITdCq0l0oHJ3FKmWLEDdUZYbpT6hAefYgnUH9XbkycUwHOYd5slQv4VAgfFxvlDqJcTCkL3L0pp3CpIC5OX5V7iGpRpSowXys/0CeZp7/9xSDb6eP7WunBVn615mFikIqNbokacNjaf2zoTFTFcDCnIQKSecA7vzziBPhJNYTsR9jRWvDdhaiRhUOSGCDN74gkDmHREcr8o8S3RL5NHJGJmaxMINOR1iOYBPACBKMvR9pSlQUYgit8Y6oSsI2p4YfMaCc8fH7IPPyRxw9ZvUqbnzG/SjVhykgxnqkJk5GWzi6Mx8y0VJP/DzYId5ad/GqJrbZCkltic6WQ/wnHn0R5hfy5dlF61mtK+q1Pv8Hqt3G9xyIZYfmVJ0n/4dN/XrfES8Cv5GzKB5ax/qjw9YGEjz32Zuyx2djz+eFKf4R7ATsDgJd2KvNDAAAAAElFTkSuQmCC)
              no-repeat;
            transform: scale(2);
            opacity: 0;
            transition: transform 0.25s ease-out, opacity 0.25s ease-out;
            content: "";
          }

          &:hover {
            &::before {
              background: rgba(0, 0, 0, 0.5);
            }

            &::after {
              transform: scale(1);
              opacity: 0.8;
            }
          }
        }

        .title {
          height: 38px;
          padding: 0 10px;
          overflow: hidden;
          color: var(--routine);
          font-size: 12px;
          line-height: 38px;
          white-space: nowrap;
          text-align: center;
          text-overflow: ellipsis;
          background: var(--classD);
        }
      }

      .error {
        color: var(--minor);
        text-align: center;
      }

      &:empty {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        height: 180px;

        &::after {
          display: block;
          width: 70px;
          height: 70px;
          background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTciIGhlaWdodD0iNTciIHZpZXdCb3g9IjAgMCA1NyA1NyIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiBzdHJva2U9IiM0MDllZmYiPg0KICAgIDxnIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+DQogICAgICAgIDxnIHRyYW5zZm9ybT0idHJhbnNsYXRlKDEgMSkiIHN0cm9rZS13aWR0aD0iMiI+DQogICAgICAgICAgICA8Y2lyY2xlIGN4PSI1IiBjeT0iNTAiIHI9IjUiPg0KICAgICAgICAgICAgICAgIDxhbmltYXRlIGF0dHJpYnV0ZU5hbWU9ImN5Ig0KICAgICAgICAgICAgICAgICAgICAgYmVnaW49IjBzIiBkdXI9IjIuMnMiDQogICAgICAgICAgICAgICAgICAgICB2YWx1ZXM9IjUwOzU7NTA7NTAiDQogICAgICAgICAgICAgICAgICAgICBjYWxjTW9kZT0ibGluZWFyIg0KICAgICAgICAgICAgICAgICAgICAgcmVwZWF0Q291bnQ9ImluZGVmaW5pdGUiIC8+DQogICAgICAgICAgICAgICAgPGFuaW1hdGUgYXR0cmlidXRlTmFtZT0iY3giDQogICAgICAgICAgICAgICAgICAgICBiZWdpbj0iMHMiIGR1cj0iMi4ycyINCiAgICAgICAgICAgICAgICAgICAgIHZhbHVlcz0iNTsyNzs0OTs1Ig0KICAgICAgICAgICAgICAgICAgICAgY2FsY01vZGU9ImxpbmVhciINCiAgICAgICAgICAgICAgICAgICAgIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIiAvPg0KICAgICAgICAgICAgPC9jaXJjbGU+DQogICAgICAgICAgICA8Y2lyY2xlIGN4PSIyNyIgY3k9IjUiIHI9IjUiPg0KICAgICAgICAgICAgICAgIDxhbmltYXRlIGF0dHJpYnV0ZU5hbWU9ImN5Ig0KICAgICAgICAgICAgICAgICAgICAgYmVnaW49IjBzIiBkdXI9IjIuMnMiDQogICAgICAgICAgICAgICAgICAgICBmcm9tPSI1IiB0bz0iNSINCiAgICAgICAgICAgICAgICAgICAgIHZhbHVlcz0iNTs1MDs1MDs1Ig0KICAgICAgICAgICAgICAgICAgICAgY2FsY01vZGU9ImxpbmVhciINCiAgICAgICAgICAgICAgICAgICAgIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIiAvPg0KICAgICAgICAgICAgICAgIDxhbmltYXRlIGF0dHJpYnV0ZU5hbWU9ImN4Ig0KICAgICAgICAgICAgICAgICAgICAgYmVnaW49IjBzIiBkdXI9IjIuMnMiDQogICAgICAgICAgICAgICAgICAgICBmcm9tPSIyNyIgdG89IjI3Ig0KICAgICAgICAgICAgICAgICAgICAgdmFsdWVzPSIyNzs0OTs1OzI3Ig0KICAgICAgICAgICAgICAgICAgICAgY2FsY01vZGU9ImxpbmVhciINCiAgICAgICAgICAgICAgICAgICAgIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIiAvPg0KICAgICAgICAgICAgPC9jaXJjbGU+DQogICAgICAgICAgICA8Y2lyY2xlIGN4PSI0OSIgY3k9IjUwIiByPSI1Ij4NCiAgICAgICAgICAgICAgICA8YW5pbWF0ZSBhdHRyaWJ1dGVOYW1lPSJjeSINCiAgICAgICAgICAgICAgICAgICAgIGJlZ2luPSIwcyIgZHVyPSIyLjJzIg0KICAgICAgICAgICAgICAgICAgICAgdmFsdWVzPSI1MDs1MDs1OzUwIg0KICAgICAgICAgICAgICAgICAgICAgY2FsY01vZGU9ImxpbmVhciINCiAgICAgICAgICAgICAgICAgICAgIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIiAvPg0KICAgICAgICAgICAgICAgIDxhbmltYXRlIGF0dHJpYnV0ZU5hbWU9ImN4Ig0KICAgICAgICAgICAgICAgICAgICAgZnJvbT0iNDkiIHRvPSI0OSINCiAgICAgICAgICAgICAgICAgICAgIGJlZ2luPSIwcyIgZHVyPSIyLjJzIg0KICAgICAgICAgICAgICAgICAgICAgdmFsdWVzPSI0OTs1OzI3OzQ5Ig0KICAgICAgICAgICAgICAgICAgICAgY2FsY01vZGU9ImxpbmVhciINCiAgICAgICAgICAgICAgICAgICAgIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIiAvPg0KICAgICAgICAgICAgPC9jaXJjbGU+DQogICAgICAgIDwvZz4NCiAgICA8L2c+DQo8L3N2Zz4=);
          background-repeat: no-repeat;
          background-size: 100% 100%;
          content: "";
        }
      }
    }

    &-search {
      position: absolute;
      top: 15px;
      right: 15px;
      display: flex;
      align-items: center;

      .input {
        width: 180px;
        height: 30px;
        padding: 0 12px;
        color: var(--routine);
        font-size: 12px;
        background: var(--background);
        border: 1px solid var(--theme);
      }

      .button {
        height: 30px;
        padding: 0 12px;
        color: #fff;
        font-size: 12px;
        background: var(--theme);
        border: none;
      }
    }
  }

  &__pagination {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-top: 15px;

    &-item {
      height: 32px;
      margin-left: 5px;
      padding: 0 15px;
      color: var(--main);
      line-height: 32px;
      background: var(--background);
      border-radius: 2px;
      cursor: pointer;
      transition: background 0.35s, color 0.35s;
      user-select: none;

      &:first-child {
        margin-left: 0;
      }

      svg {
        transition: fill 0.35s;
        fill: var(--routine);
      }

      .next {
        transform: rotate(180deg);
      }

      &.active,
      &:hover {
        color: #fff;
        background: var(--theme);

        svg {
          fill: #fff;
        }
      }
    }
  }

  &__detail {
    margin-bottom: 15px;

    &-info {
      display: flex;
      padding-top: 15px;
      border-top: 1px solid var(--classC);

      .thumbnail {
        position: relative;
        flex-shrink: 0;
        width: 180px;
        height: 240px;
        margin-right: 15px;
        overflow: hidden;
        border-radius: var(--radius-inner);

        .pic {
          width: 100%;
          height: 100%;
          object-fit: cover;
        }

        .year {
          position: absolute;
          top: 8px;
          right: 8px;
          z-index: 3;
          padding: 2px 5px;
          color: #fff;
          font-size: 12px;
          font-style: normal;
          background: #ff6800;
          border-radius: 2px;
        }
      }

      .description {
        overflow: hidden;

        dt {
          max-width: 100%;
          margin-bottom: 10px;
          overflow: hidden;
          color: var(--main);
          font-size: 22px;
          white-space: nowrap;
          text-overflow: ellipsis;
        }

        dd {
          display: -webkit-box;
          max-height: 44px;
          margin-bottom: 5px;
          /* autoprefixer: on */
          overflow: hidden;
          line-height: 22px;
          text-overflow: ellipsis;
          word-break: break-all;
          -webkit-line-clamp: 2;
          /*! autoprefixer: ignore next */
          -webkit-box-orient: vertical;

          .muted {
            color: var(--minor);
          }

          .text {
            color: var(--routine);
          }
        }
      }

      .error {
        margin: 0 auto;
        color: var(--minor);
        user-select: none;
      }
    }
  }

  &__player {
    margin-bottom: 15px;

    &-play {
      width: 100%;
      height: 500px;
      background: #000;
    }
  }

  &__source {
    margin-bottom: 15px;

    &:last-child {
      margin-bottom: 0;
    }

    &-list {
      display: grid;
      grid-template-columns: repeat(6, 1fr);
      gap: 15px;
      padding-top: 15px;
      border-top: 1px solid var(--classC);

      .item {
        height: 30px;
        padding: 0 10px;
        overflow: hidden;
        color: var(--routine);
        font-size: 12px;
        line-height: 30px;
        white-space: nowrap;
        text-align: center;
        text-overflow: ellipsis;
        background: var(--classD);
        border-radius: 15px;
        cursor: pointer;
        transition: transform 0.35s, box-shadow 0.35s, background 0.35s,
          color 0.35s;

        &.active {
          color: #fff;
          background: var(--theme);
          box-shadow: 0 5px 5px rgba(0, 0, 0, 0.1);
          transform: translateY(-2px);
        }

        &:hover {
          box-shadow: 0 5px 5px rgba(0, 0, 0, 0.1);
          transform: translateY(-2px);
        }
      }
    }
  }
}
