.container {
  display: flex;
  flex-direction: column;
  height: 100%;

  .iconBack {
    width: 36px;
    height: 36px;
  }

  :global {
    .n-breadcrumb .n-breadcrumb-item {
      font-size: max(16px, 12Px) !important;
    }

    .n-breadcrumb>ul {
      display: flex;
      align-items: center;

      .n-breadcrumb-item {
        display: flex;
        align-items: center;
      }

      .n-breadcrumb-item__separator {
        display: none;
      }

      .n-breadcrumb-item__link {
        padding: 5px 18px;
        background: #FFFFFF;
        border-radius: 16px;
        color: #21225D;
        line-height: 20px;
      }
    }

    .n-breadcrumb .n-breadcrumb-item:last-child .n-breadcrumb-item__link {
      color: #fff;
      background: var(--product-color);
    }

  }

  &> :global(.n-space) {
    height: 36px;
    flex-shrink: 0;
  }

  .separator {
    width: 9px;
    height: 15px;
    margin: 0 16px;
  }
}

.wrap {
  padding-top: 15px;
  flex: 1;
  transition: padding .3s;
  overflow: hidden;

  &.wrapBottom {
    padding-bottom: 108px;

  }
}

.content {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #DDF2FF;
  border-radius: 20px;
  // max-height: 90vh;
}

.tools {
  padding: 20px;
  display: flex;
  align-items: center;
  flex-shrink: 0;

  :global {
    .n-input {
      margin-left: auto;
      width: 361px;
    }

    .n-input__input-el {
      height: 100%;
      line-height: 100%;
    }


    .n-button {
      --n-height: 37px !important;
      height: 37px;
      padding: 0 24px;
      font-size: max(18px, 13Px);

      &.n-button--primary-type {
        font-weight: bold !important;
        color: #fff;
      }
    }


  }
}

.contentWrap {
  flex: 1;
  display: flex;
  padding: 0 20px 20px;
  overflow: hidden;
  gap: 0 32px;
}

.musicList {
  // width: 512px;
  // display: flex;
  // // height: 100%;
  // overflow-x: hidden;
  // overflow-y: auto;
  // // min-width: 330px;
  // // max-height: 100vh;
  // min-height: 71vh;
  // margin-right: 32px;
  background-color: #fff;
  border-radius: 16px;

  width: 512px;
  min-width: 294px;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  min-width: 330Px;
  // position: relative;
  // z-index: 1;

  // &::before {
  //   content: ' ';
  //   position: absolute;
  //   z-index: 0;
  //   left: 0;
  //   top: 0;
  //   width: 512px;
  //   min-width: 294px;
  //   height: var(--xiaoku-music-height);
  //   background-color: #fff;
  //   border-radius: 16px;
  // }

  &::-webkit-scrollbar {
    width: 0;
    display: none;
  }



  .wrapList {
    // display: flex;
    // flex-direction: column;
    // width: 100%;

    // position: relative;
    // z-index: 1;
    width: 512px;
    min-width: 294px;
    min-height: 100%;
    // background: #fff;
    border-radius: 16px;

  }

  .empty {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50vh;
    // height: 100%;
  }
}

.searchSection {
  position: sticky;
  top: 0;
  left: 0;
  z-index: 9;

  padding: 24px;
  background-color: #fff;

  display: flex;
  align-items: center;

  :global {
    .TheSearch {
      background: #F5F6FA;
      --n-color-focus: #F5F6FA !important;
    }

    .nBaseCascaser {
      border-radius: 100px;
      width: 170px;
      background: #F5F6FA;
      margin-right: 16px;

      .n-base-selection__border {
        border-color: #F5F6FA;
      }
    }
  }
}

.itemContainer {
  width: 100%;
  border-radius: 16px;
  padding: 4px 8px;
  // background-color: #fff;

  &:first-child {
    padding-top: 8px;
  }

  &:last-child {
    // border-radius: 0 0 16px 16px;
    padding-bottom: 8px;
  }
}

.item {
  position: relative;
  display: flex;
  align-items: center;
  padding: 10px;
  border-radius: 12px;

  cursor: pointer;

  &:hover {
    background-color: rgba(0, 0, 0, .05);
  }

  &.active {
    background-color: #DDF2FF;

    .arrow {
      opacity: 1;
    }
  }

  .img {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 8px;
    margin-right: 12px;
    // box-shadow: 0 0 10px 4px rgba(27, 35, 55, .1);
    overflow: hidden;
    flex-shrink: 0;

    :global {
      .n-image {
        width: 60px;
        height: 60px;
      }
    }

    img {
      transition: opacity .3s;
      opacity: 0;
      height: 100%;
      width: 100%;
    }

    img[data-loaded="true"] {
      opacity: 1;
    }
  }

  .title {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    .titleName {
      font-size: max(18px, 13Px);
      font-weight: 600;
      color: #131415;
      line-height: 28px;
      width: 100%;
    }

    .titleDes {
      font-size: max(14px, 11Px);
      font-weight: 400;
      color: #777777;
      line-height: 20px;
      max-width: 100%;
      white-space: nowrap;
      text-overflow: ellipsis;
      overflow: hidden;
      padding: 3px 0;
      display: flex;
      align-items: center;
      justify-content: center;

      .composer {
        // padding-top: 2px;
      }
    }

    .iconType {
      background: #fff;
      border-radius: 3px;
      padding: 1px 3px;
      font-size: max(12px, 9Px);
      text-align: center;
      font-weight: 400;
      line-height: 1;
      border: 1px solid transparent;
      margin-right: 5px;
    }

    .iconPlay {
      border: 1px solid #15B2FD;
      color: #00ADFF;
    }

    .iconSing {
      border: 1px solid #CD8613;
      color: #CE8208;
    }
  }

  .btn {
    margin-left: auto;
    width: 84px;
    height: 36px;
    background: linear-gradient(to right, #44CAFF, #259DFE);
    border: none;
    padding: 0;
    font-weight: bold !important;
    flex-shrink: 0;
    min-width: 62px;
    min-height: 30px;
    font-size: max(18px, 12Px);

    :global {
      .n-button__content {
        &>img {
          margin-left: 10px;
          width: 9px;
          height: 12px;
        }
      }
    }
  }

  .arrow {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translate(124%, -50%);
    opacity: 0;
  }

  .showPlayLoading {
    opacity: 0;
  }

}

.loadingWrap {
  display: flex;
  justify-content: center;
  min-height: 80px;

  &.showLoading {
    height: 0;
    opacity: 0;
    min-height: 0;
    display: none;
  }
}

.musicStaff {
  display: flex;
  flex-direction: column;
  position: relative;
  left: -8px;
  flex: 1;
  background-color: #fff;
  border-radius: 16px;
  // height: 100%;
  z-index: 1;
  overflow: hidden;

  &::-webkit-scrollbar {
    width: 0;
    display: none;
  }

  .goBtn {
    position: absolute;
    left: 50%;
    bottom: 46px;
    transform: translateX(-50%);
    height: 70px;
    cursor: pointer;
    transition: all .2s ease-in;

    // &.goBtnBottom {
    //   bottom: 154px;
    // }
  }

  .rightBtns {
    position: absolute;
    top: 20px;
    right: 24px;
    display: flex;
    align-items: center;

    .textBtn {
      margin-right: 24px;
      padding: 1px 16px !important;
      line-height: 37px !important;
      height: 37px !important;
      background: #F5F6FA;
      --n-border: #F5F6FA !important;
    }

    .transBtn {
      width: 45px;
      height: 45px;
      cursor: pointer;
      margin-right: 15px;
      // background: url('./images/icon_trans_default.png');
      // background-size: contain;

      // &:hover {
      //   background: url('./images/icon_trans.png');
      //   background-size: contain;
      // }
      &:hover {
        opacity: 0.7;
      }
    }
  }

  .favitor {

    width: 48px;
    height: 48px;
    cursor: pointer;
    transition: all .3s;

    &:hover {
      // transform: scale(1.1);

      img {
        opacity: 0.7;
      }
    }

    &>img {
      display: block;
      width: 100%;
      height: 100%;
      // filter: drop-shadow(0 0 10px rgba(27, 35, 55, .1));
    }
  }
}

.musicName {
  padding-top: 30px;
  font-size: 26px;
  font-weight: 500;
  color: #333;
  line-height: 24px;
  text-align: center;
}

.staffImgs {
  flex: 1;
  overflow-y: auto;
  height: 100%;
  padding: 0 30px;

  &>img {
    width: 100%;
  }
}


:global {

  .van-fade-enter-active,
  .van-fade-leave-active {
    transition: all 0.3s;
  }

  .van-fade-enter-from,
  .van-fade-leave-to {
    opacity: 0;
  }
}

.previewWindow {
  width: 85%;
  height: 85vh;
  position: relative;
  box-shadow: none !important;


  .previewClose {
    position: absolute;
    right: -80px;
    top: 0px;
    width: 60px;
    height: 65px;
    cursor: pointer;
  }

  .previewIframe {
    width: 100%;
    height: 85vh;
    background-color: #234892;
    border-radius: 16px;
  }
}

.popSelect {
  font-size: 16px;
  width: 300px;
  max-height: 500px;
  overflow-y: scroll;
  box-shadow: 0px 2px 16px 0px rgba(0, 0, 0, 0.08);
  border-radius: 11px;
  --n-option-height: 34px;

  :global {
    .n-base-select-option__content {
      width: 80% !important;
    }
  }
}

.popSelect1 {
  font-size: 16px;
  width: 240px;
  // max-height: 500px;
  // overflow-y: scroll;
  box-shadow: 0px 2px 16px 0px rgba(0, 0, 0, 0.08);
  border-radius: 11px;
  --n-option-height: 34px;

  :global {
    .n-base-select-option__content {
      width: 80% !important;
    }
  }
}

.popTrans {
  font-size: 16px;
  width: 200px;
  overflow-y: scroll;
  box-shadow: 0px 2 16px 0px rgba(0, 0, 0, 0.08);
  border-radius: 11px;
  --n-option-height: 34px;

  :global {
    .n-base-select-option__content {
      width: 80% !important;
    }
  }
}

.textBtn {
  .iconArrow {
    display: inline-block;
    margin-left: 8px;
    margin-top: 2px;
    width: 8px;
    height: 5px;
    background: url('./images/icon-arrow.svg') no-repeat center center / contain;
    transform: rotate(180deg);
    color: #131415;
    fill: #131415;
  }

  &:hover {
    opacity: 0.7;
  }

  &:hover,
  &.textBtnActive {
    background: #F5F6FA;
    --n-border: #F5F6FA !important;
    --n-border-hover: #F5F6FA !important;
    font-weight: 600 !important;
    color: #131415 !important;

    .iconArrow {
      transform: rotate(0deg);
      background: url('./images/icon-arrow.svg') no-repeat center center / contain;
      color: #131415;
      fill: #131415;
      margin-top: 0;
    }
  }
}