.back {
  position: fixed;
  left: 15px;
  top: 17px;
  width: 31px;
  height: 31px;

  &>img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  &:active {
    opacity: 0.8;
  }
}

.musicCFixed {
  position: fixed;
  top: 17px;
  left: 55px;

  .musicName {
    font-size: 15px;
    font-weight: 600;
    color: #FFFFFF;
    line-height: 33px;
  }
}

.subjectListContainer {
  // font-size: 20px;

  :global {
    .van-popover__content {
      max-height: 50vh;
      overflow-x: hidden;
      overflow-y: auto;
    }
  }
}

.popoverMusic {
  width: 160px;

  // border: none;
  --van-popover-action-width: 100%;

  :global {
    .van-popover__action {
      // display: flex;
      // justify-content: center;
      // align-items: center;
      // padding: 0;
      // width: 100%;
      height: 36px;
      // color: #999;
      // font-size: 13px;
      padding: 0 12px;
    }

    .van-popover__content {
      max-height: 70vh;
      overflow-x: hidden;
      overflow-y: auto;
    }

    // var(--van-padding-md)
    .van-popover__action-text {
      display: block;
      width: 136px;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      text-align: center;
      line-height: 36px;
    }
  }
}

.container {
  background: url('../../common/images/icon_bg.png') no-repeat center center / cover;
  padding: 63px 18px 18px 37px;
  height: 100vh;
  overflow: hidden;
}

.content {
  display: flex;
  height: calc(100vh - 81px);
  overflow: hidden;
}

.opacityBg {
  background: linear-gradient(134deg,
      rgba(255, 255, 255, 0.75) 0%,
      rgba(255, 255, 255, 0.34) 100%);
  border-radius: 18px;
  border: 2px solid #fff;
}

.leftContent {
  position: relative;
  display: flex;
  width: 37%;
}

.leftBg {
  position: absolute;
  left: 0;
  top: 0;
  width: 95px;
  height: 100%;
  background: linear-gradient(48deg, #43b2ff 0%, #159af7 100%);
  border: 2px solid #fff;
  border-radius: 18px 9px 0 18px;
  z-index: 1;
}

.leftBg2 {
  position: absolute;
  left: 0;
  top: 0;
  width: calc(100% - 12px);
  height: 100%;
  background: linear-gradient(134deg,
      rgba(255, 255, 255, 0.75) 0%,
      rgba(255, 255, 255, 0.34) 100%);
  border-radius: 18px;
  border: 2px solid #fff;
}

.types {
  position: relative;
  top: 2px;
  width: 95px;
  height: calc(100% - 4px);
  padding: 4px 0;
  overflow-x: hidden;
  overflow-y: auto;
  border-radius: 18px;
  z-index: 1;
  flex-shrink: 0;

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

  .type {
    position: relative;
    padding: 4px 12px;

    &.typeActive {
      .typeImg {
        padding: 6px;
        border-color: #99ffd0;
        animation: scaleBtn 1s ease-in-out;
      }
    }
  }

  .typeImg {
    border: 2px solid transparent;
    border-radius: 6px;
    height: 95px;
    transition: 0.3s;

    &:active {
      transform: scale(0.8);
    }
  }

  .typeIcon {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.3s;
  }

  .typeIcon[loaded='true'] {
    opacity: 1;
  }
}

:global {
  .van-popover__action {
    height: 38px;
    font-size: 14px;
    color: #999999;
  }

  .selected {
    font-weight: 600;
    color: #1CACF1;
  }
}

.center {
  flex: 1;
  position: relative;
  padding-right: 12px;
  height: 100%;
  overflow: hidden;

  .centerSearch {
    padding: 6px 9px;
  }

  .subjects {

    .subjectName {
      position: relative;
      display: flex;
      align-items: center;
      padding-left: 10px;
      padding-right: 9px;

      &.active {
        span {
          color: #1CACF1;
        }

        i {
          margin-top: -5px;
          border-bottom: 5px solid #1CACF1;
          transform: rotate(0deg);

        }
      }

      span {
        font-size: 14px;
        // color: #1CACF1;
        color: #333333;
        line-height: 20px;
        max-width: 40px;
        text-overflow: ellipsis;
        white-space: nowrap;
        overflow: hidden;
      }

      i {
        display: inline-block;
        width: 0;
        height: 0;
        border-top: 5px solid transparent;
        border-left: 5px solid transparent;
        border-right: 5px solid transparent;
        border-bottom: 5px solid #AAAAAA;
        margin-top: 6px;
        margin-left: 5px;
        transform: rotate(180deg);
      }

      // border-right: 1px solid #CCCCCC;
      &::after {
        position: absolute;
        right: 0;
        content: '';
        display: inline-block;
        width: 1px;
        height: 17px;
        background-color: #CCCCCC;
      }
    }



  }

  :global {
    #coai-0 {
      .van-search {
        width: 100%;
        z-index: 1;
        padding: 0px 0px;
      }

      .van-field__control::-webkit-input-placeholder {
        font-size: 12px;
      }

      .searchNotice {
        background-color: #f8f9fc !important;
        border-radius: 40px;

        .van-search__content {
          background: #f8f9fc !important;
          padding-left: 9px;
        }
      }
    }
  }
}

.musicContent {
  width: 100%;
  height: calc(100% - var(--van-search-input-height) - 12px - 2px);
  padding: 6px 12px 12px 12px;
  overflow-x: hidden;
  overflow-y: auto;

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

.searchNotice {
  position: fixed;
  padding: 0;
  pointer-events: none;

  :global {
    .van-notice-bar {
      padding: 0;
      height: 100%;
    }
  }
}


.searchNoticeShow {
  :global {
    .van-field__control {
      opacity: 0;
    }
  }
}

.musicItem {
  position: relative;
  display: flex;
  align-items: center;
  border: 3px solid #fff;
  border-radius: 9px;
  margin-bottom: 6px;
  background-color: #fff;
  padding: 4px;
  transition: all 0.3s;
  overflow: hidden;
  --van-notice-bar-text-color: #333;

  &.disableNotic {
    :global {
      .van-notice-bar__content {
        transition-duration: 0s !important;
        transform: none !important;
      }
    }
  }

  &.musicActive {
    border-width: 3px;
    background: linear-gradient(180deg, #ffffff 0%, #bfe1ff 100%);
    transform: scale(1.05);
    box-shadow: 0px 2px 4px 0px rgba(73, 159, 228, 1);
    --van-notice-bar-text-color: rgba(73, 159, 228, 1);

    :global {
      .van-notice-bar__content {
        transition-property: transform;
      }
    }
  }

  .iconType {
    position: absolute;
    width: 28px;
    height: 14px;
    right: 0;
    top: 0;
    z-index: 9;

    // &.FREE {
    //   background: url('./image/icon-music-default.png') no-repeat center;
    //   background-size: contain;
    // }

    &.VIP {
      background: url('./image/icon-music-vip.png') no-repeat center;
      background-size: contain;
    }
  }

  .musicAvtor {
    position: relative;
    display: block;
    width: 7.2vw;
    height: 7.2vw;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    margin-right: 1vw;
    overflow: hidden;
  }

  .titleImg {
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s;
    border-radius: 10px;
  }

  .titleImg[loaded='true'] {
    opacity: 1;
  }

  .musicInfo {
    flex: 1;

    .musicName {
      font-weight: 600;
      color: #333;
      margin-bottom: 3px;
    }

    .noticeBar {
      padding: 0;
      height: 28px;
    }

    .musicDes {
      width: 100%;
      display: flex;
      align-items: center;
    }

    .musicFavitor {
      border: 1px solid #ffc5c5;
      color: #ff6a6a;
      padding: 1px 3px 1px 14px;
      border-radius: 4px;
      background-color: #fff8f7;
      background-image: url('./image/icon_hot.svg');
      background-repeat: no-repeat;
      background-size: auto 70%;
      background-position: 2px center;
      margin-right: 4px;
    }

    .musicAuthor {
      flex: 1;
      font-size: 12px;
      font-weight: 400;
      color: #777;
      line-height: 12px;
      max-width: 9vw;
    }
  }

  .musicIcon {
    flex-shrink: 0;
    margin-right: 4px;
  }
}

.right {
  position: relative;
  background: #fff;
  overflow: hidden;
  border: none;
  width: 63%;
  border-radius: 18px;
}

.right-musicName {
  font-size: 15px;
  font-weight: 500;
  color: #131415;
  line-height: 20px;
  text-align: center;
  padding: 12px 0;
}

.staff {
  width: 100%;
}

.rightBox {
  width: 100%;
  height: 100%;
  border-radius: 18px;
  overflow: hidden;
  position: relative;

  .iconTransfer {
    position: absolute;
    right: 0;
    top: 0;
    background: linear-gradient(90deg, #44C9FF 0%, #259CFE 100%);
    border-radius: 0px 0px 0px 16px;
    padding: 5px 8px 4px;
    font-size: 11px;
    font-weight: 500;
    color: #FFFFFF;
    line-height: 18px;
    display: flex;
    align-items: center;

    &::before {
      content: '';
      display: inline-block;
      width: 12px;
      height: 11px;
      background: url('./image/icon-transfer.png') no-repeat center;
      background-size: contain;
      margin-right: 5px;
    }
  }
}

.rightBtns {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0 18px 18px 18px;
  display: flex;
  align-items: flex-end;
  height: 78px;
  background: #fff;
  background-image: linear-gradient(180deg,
      rgba(255, 255, 255, 0) 0%,
      #c1eeff 100%);
  border-radius: 0 0 18px 18px;

  &>img {
    margin: 0 4px;
    height: 30px;
    transition: 0.3s;

    &:active {
      transform: scale(0.6);
    }
  }

  :global {
    .van-popover__wrapper {
      display: flex;
      align-items: center;
      margin-right: 12px;
    }
  }

  .rightBtnsRight {
    transition: 0.3s;
    margin: 0 4px;
    padding: 5px 10px 0;
    margin-left: auto;

    img {
      height: 30px;
      animation: scaleBtn 1s ease-in-out infinite;
    }
  }
}

@keyframes scaleBtn {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes displayIcon {
  to {
    opacity: 1;
  }
}

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

.empty {
  :global {
    .van-empty__image {
      width: 100%;
      height: initial;
    }

    .van-empty__description {
      color: #fff;
      padding: 0;
    }
  }
}