.podcast-box-listings {
  &.loading {
    .podcast-box-listing-wrapper {
      filter: blur(2px);
    }

    .podcast-box-pagination, .podcast-box-listings-sort {
      .podcast-box-loader {
        display: block;
      }
    }

  }
}

.podcast-box-listing-wrapper {

  .podcast-box-listing {
    $text_color: #7f7f7f;
    $brand_color: #5996FF;

    display: flex;
    flex-wrap: wrap;
    margin-bottom: 20px;
    box-shadow: 0px 0px 8px #ddd;
    padding: 15px;
    border-radius: 5px;
    align-items: flex-start;
    border: 1px solid #ddd;
    position: relative;

    .start-listening {
      background: $brand_color;
      color: #fff;
      padding: 5px;
      display: flex;
      align-items: center;
      position: absolute;
      right: 15px;
      top: 50%;
      transform: translateY(-30%);
      border-radius: 5px;

      i {
        margin: 0 !important;
      }
    }

    .listing-thumbnail {
      margin-right: 15px;

      img {
        width: 100px;
        border-radius: 5px;
      }
    }

    .listing-details {
      overflow: hidden;
      flex: 1;
      max-width: 100%;
      position: relative;

      .podcast-country {
        display: flex;
        align-items: center;
        color: #777;

        img {
          margin-right: 5px;
          border-radius: 3px;
        }

      }

      .podcast-byline {
        font-size: 14px;
        display: flex;
        align-items: center;
        color: #555;
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;

        i {
          background: transparent;
          color: #555;
          width: auto;
          height: auto;
          margin-right: 3px;
          padding: 0;
        }
      }

      i {
        margin-right: 8px;
        color: #fff;
        background: $brand_color;
        padding: 3px;
        border-radius: 5px;
        height: auto;
        width: auto;
        font-size: 16px;
      }
    }

    .listing-desc {
      width: 100%;
      margin-bottom: 0;
      line-height: 1.5;
      margin-top: 15px;
      color: $text_color;
    }

    .listing-heading {
      display: flex;
      align-items: center;

      .podcast-name {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 1.2rem;
        color: #555;
      }
    }

    .listing-episode {
      border-top: 1px solid #ddd;
      margin-top: 10px;
      padding-top: 5px;
      width: 100%;

      &-title {
        margin-bottom: 5px;
        color: #555;
      }

      &-header {
        display: flex;
        flex-flow: column;
        margin-bottom: 15px;

        .episode-title {
          font-size: 1.1rem;
          color: #555;
          display: flex;
          align-items: center;

          span {
            text-overflow: ellipsis;
            white-space: nowrap;
            overflow: hidden;
            line-height: 1;
          }
        }

        .episode-date {
          display: flex;
          align-items: center;
          color: $text_color;
          font-size: .875rem;
        }

        i {
          margin-top: 3px;
          margin-right: 7px;
          background: transparent;
          border-radius: 3px;
          height: auto;
          width: auto;
          font-size: 14px;
        }

      }

      &-footer {
        display: flex;
        align-items: center;
        justify-content: space-between;

        & > a {
          display: flex;
          align-items: center;
          background: $brand_color;
          color: #fff;
          padding: 3px 8px;
          border-radius: 5px;

          i {
            margin-right: 5px;
          }

          &:hover {
            background: darken(#5996FF, 20%);
          }
        }

        .podcast-box-loader {
          width: 23px;
          height: 23px;
          border-top: 5px solid rgba(#fff, 0.3);
          border-right: 5px solid rgba(#fff, 0.3);
          border-bottom: 5px solid rgba(#fff, 0.3);
          border-left: 5px solid #fff;
          margin: 0 5px 0 0;
        }
      }

    }

  }

  &.grid {
    display: flex;
    flex-wrap: wrap;

    .podcast-box-listing {
      width: 23%;
      flex-flow: column;
      margin: 6px;
      padding: 7px;

      .listing-details {
        .listing-heading {
          i {
            display: none;
          }
        }
      }

      .listing-thumbnail {
        margin-right: 0;
        margin-bottom: 10px;

        img {
          width: 100%;
        }
      }

      .listing-desc {
        display: none;
      }

      .listing-episode {
        display: none;
      }

    }


    &.col_2 {
      .podcast-box-listing {
        width: 48%;
      }
    }

    &.col_3 {
      .podcast-box-listing {
        width: 31.4%;
      }
    }

    &.col_4 {
      .podcast-box-listing {
        width: 23.12%;
      }
    }

    &.col_5 {
      .podcast-box-listing {
        width: 18.12%;
      }
    }

    &.col_6 {
      .podcast-box-listing {
        width: 14.79%;
      }
    }

  }
}

//listing_sort
.podcast-box-listings-sort {
  display: flex;
  align-items: center;

  label {
    margin-right: 7px;
  }
}

// not found
.not-found {
  h4 {
    color: indianred;

    i {
      margin-right: 5px;
    }

    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/*------- listing top ---------*/
.podcast-box-listing-top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  width: 100%;
  margin-top: 15px;
  margin-bottom: 15px;
  border-bottom: 1px solid #ddd;
  padding-bottom: 15px;

  div {
    display: flex;
    align-items: center;
  }

  .count, .country-name {
    margin: 0 5px;
    font-weight: 600;
  }


  img {
    margin-left: 5px;
    width: 20px;
    border-radius: 3px;
  }

  label {
    margin-right: 5px;
    margin-bottom: 0;
    font-size: .9rem;
  }

  .select2-container {
    max-width: 170px !important;
  }

}

/*------- Pagination ---------*/
.podcast-box-pagination {
  width: 100%;
  margin: 30px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px #ddd;
  padding: 10px;
  border-radius: 5px;

  .navigation {
    display: flex;
    padding: 0;
    margin: 0;
  }

  .nav-links {
    display: flex !important;
    justify-content: center !important;
    align-items: inherit !important;
    flex-wrap: wrap !important;
    margin: 0 !important;
    list-style: none;
    border-radius: .25rem;

    & > a, & > span {
      position: relative;
      display: flex;
      align-items: center;
      padding: 6px 12px;
      text-decoration: none !important;
      font-size: 15px;
      margin-left: -1px;
      border: 1px solid #dee2e6;
      margin-right: 0;
      margin-top: 0;

      &:hover {
        background: #eee;
      }

      .dashicons {
        font-size: inherit;
        height: auto;
      }

      &:first-child {
        border-top-left-radius: 3px;
        border-bottom-left-radius: 3px;
      }

      &:last-child {
        border-top-right-radius: 3px;
        border-bottom-right-radius: 3px;
      }

    }

    & > span.current {
      background: #eee;
    }
  }

  &-form {
    display: flex;
    align-items: center;
    margin-left: auto;

    label {
      color: #555;
      font-size: 1rem;
      line-height: 1;
    }

    &-input {
      width: 60px !important;
      padding: 5px !important;
      border-radius: 3px;
      margin: 0 7px !important;
      line-height: 1 !important;
      font-size: 1rem;
    }

    &-submit {
      padding: 5px;
      display: flex;
      align-items: center;
      box-shadow: none;
      border-radius: 3px;
      font-size: 1rem;
    }

  }

  @media (max-width: 767px) {
    flex-flow: column;
    box-shadow: none;

    .podcast-box-loader {
      margin-bottom: 5px;
    }

    &-form {
      margin-top: 15px;
      margin-left: 0;
    }
  }

  &:empty {
    display: none !important;
  }

}