* {
  box-sizing: border-box;
}
.creationBg{
  position: fixed;
  z-index: -1;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  top: 0;
  left: 0;
  background: url("./images/bg.png") no-repeat;
  background-size: 100% 100%;
}
.creation{
  :global{
    .van-nav-bar .van-icon{
      color: #ffffff;
    }
  }
  &.isScreenScroll,&.isShareScreenScroll{
    :global{
      .van-nav-bar .van-icon{
        color: #333333;
      }
    }
  }
}
.singer{
  text-align: center;
  font-weight: 400;
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  line-height: 20px;
  margin-bottom: 14vh;
}

.playSection{
  height: 210px;
  position: relative;
  &::after{
    position: absolute;
    content: "";
    width: 100%;
    height: 40px;
    bottom: -40px;
    left: 0;
    pointer-events: none;
  }
  :global {
      .plyr {
          width: 100%;
          height: 100%;
          z-index: initial;
          .plyr__controls{
              background: initial;
              padding: 0 12px 2px;
              opacity: 1 !important;
              transform: translateY(0) !important;
              pointer-events: initial !important;
              .plyr__controls__item.plyr__progress__container{
                  input[type=range]{
                      color: #ffffff;
                      height: 10px;
                  }
                  input[type="range"]::-webkit-slider-runnable-track {
                      height: 2px;
                  }
                  input[type="range"]::-webkit-slider-thumb {
                      width: 6px;
                      height: 6px;
                      margin-top: -2px;
                      box-shadow: initial;
                  }
                  .plyr__progress__buffer{
                      height: 2px;
                      color: rgba(255, 255, 255, 0.7);
                      background-color: rgba(0, 0, 0, 0.1);
                      margin-top: -1px;
                  }
              }
              .plyr__controls__item.plyr__time{
                display: none;
              }
              .plyr__controls__item.plyr__control{
                display: none;
              }
          }
      }
  }
  .videoBox{
    width: 100%;
    height: 100%;
  }
  .audioBox{
      width: 100%;
      height: 100%;
      background: url("./images/audioBg.png") no-repeat;
      background-size: 100% 100%;
      position: relative;
      overflow: hidden;
      .audioBga {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -60%);
        width: 100%;
        height: 82%;
      }

      .audioBga1 {
          position: absolute;
          left: 0;
          top: 16px;
          width: 94px;
      }

      .audioBga2 {
          width: 192px;
          position: absolute;
          right: -24px;
          top: 0;
      }
      :global {
          .plyr {
              position: absolute;
              height: initial;
              left: 0;
              bottom: 0;
              z-index: 2;
          }
      }
      .audioVisualizer{
          position: absolute;
          top: 50%;
          left: 50%;
          transform: translate(-50%,-50%);
          width: 280px;
          height: 55px;
      }
      .tyBg {
        width: 139px;
        height: 74px;
        position: absolute;
        z-index: 1;
        left: 50%;
        top: 50%;
        transform: translate(-50%, calc(-50% + 28px));
     }
     .audioBoxBg {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        z-index: 2;
        width: 74px;
        height: 75px;
        background: url("./images/audio-bg.png") no-repeat center;
        background-size: 100% 100%;

        .audioPan {
           position: absolute;
           left: 50%;
           top: 50%;
           transform: translate(-50%, -50%);
           z-index: 8;
           width: 59px;
           height: 60px;
           background: url("./images/audio-pan.png") no-repeat center;
           background-size: 100% 100%;
           display: flex;
           align-items: center;
           justify-content: center;

           animation: rotateImg 6s linear infinite;

           &.imgRotate {
              animation-play-state: paused;
           }
        }

        .audioImg {
           width: 32px;
           height: 32px;
           border-radius: 50%;
        }

        .audioPoint {
           position: absolute;
           z-index: 9;
           left: 50%;
           top: 50%;
           transform: translate(-50%, -50%);
           width: 8px;
           height: 8px;
           background: url("./images/audio-point.png") no-repeat center;
           background-size: contain;
        }

        .audioZhen {
           position: absolute;
           z-index: 9;
           right: -4px;
           top: -33px;
           width: 26px;
           height: 87px;
           background: url("./images/audio-zhen.png") no-repeat center;
           background-size: contain;
           transition: transform 0.5s ease-in-out;

           &.active {
              transform: rotate(92deg) translate3d(0, 0, 3px);
              transition: transform 0.5s ease-in-out;
           }
        }
     }      
  }
  .playLarge{
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background: url("./images/midPlay.png") no-repeat;
    background-size: 100% 100%;
    z-index: 12;
    display: none;
    &.playIngShow{
      display: initial;
    }
  }
  .mediaTimeCon{
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, .3);
  }
  &.mediaTimeShow{
    .mediaTimeCon{
      display: block;
    }
  }
  .mediaTime{
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 95px;
    display: flex;
    font-weight: 500;
    font-size: 16px;
    color: #B8E8FF;
    line-height: 20px;
    z-index: 10;
    text-shadow: 0px 1px 1px rgba(0,0,0,0.5);
    & div:first-child{
      width: 50px;
      text-align: right;
    }
    .note{
      margin: 0 4px;
    }
    .duration{
      color: #fff;
    }
  }
  .landscapeScreen{
    width: 32px;
    height: 32px;
    position: absolute;
    background: url("./images/Landscape.png") no-repeat;
    background-size: 26px 26px;
    background-position: center center;
    right: 7px;
    top: 7px;
    z-index: 15;
  }
  .staffBoxCon{
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    z-index: 1;
    overflow: hidden;
    visibility: hidden;
    &.staffBoxShow{
      visibility: initial;
    }
  }
  .staffBox{
    width: 100%;
    height: calc(var(--staffBoxHeight) + 12px);
    position: absolute;
    bottom: 0;
    padding-bottom: 12px;
    .staff{
      width: 100%;
      height: 100%;
      padding-left: 10px;
    }
    .mask{
      position: absolute;
      z-index: 6;
      width: 100%;
      height: 100%;
    }
    &.staffBoxBg {
      .staff{
        background-color: rgba(255, 255, 255, 0.7) !important;
      }
    }
  }
  &.isLandscapeScreen2 {
    :global {
      .plyr {
        .plyr__controls{
          .plyr__controls__item.plyr__progress__container {
            input[type="range"] {
               color: #01c1b5 !important;
            }
            .plyr__progress__buffer {
               color: rgba(1, 193, 181, 0.8);
               background-color: #fff;
            }
         }
        }
      }
    }
  }
}

.musicSection {
  width: 100%;
  min-height: calc(var(--creationHeight, 100vh) - var(--barheight) - 20px - 14vh - 210px - 55px - 80px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 10px 12px 0;

  .avatarInfoBox{
    display: flex;
    justify-content: space-between;
    align-items: center;
    .avatar{
      display: flex;
      align-items: center;
      .avatarImg {
        position: relative;
      }
      .userLogo{
        width: 44px;
        height: 44px;
        border: 2px solid #FFFFFF;
        margin-right: 10px;
        border-radius: 50%;
        overflow: hidden;
        &.vipLogo {
          border: 2px solid #FADA9B;
        }
        &.svipLogo {
          border: 2px solid #F0AF88;
        }
      }
      .vipIcon {
        position: absolute;
        bottom: -6px;
        left: 2px;
        z-index: 1;
        width: 40px;
        height: 18px;
      }
      .infoCon{
        .info{
          display: flex;
          align-items: center;
          .userName{
            font-weight: 500;
            font-size: 16px;
            color: #FFFFFF;
            line-height: 22px;
            overflow: hidden;
            white-space: nowrap;
            text-overflow: ellipsis;
            max-width: 160px;
          }
          .iconMember{
            margin-left: 6px;
            width: 14px;
            height: 14px;
          }
        }
        .sub{
          margin-top: 2px;
          font-weight: 400;
          font-size: 12px;
          color: #FFFFFF;
          line-height: 17px;
        }
      }
    }
    .linkes{
      display: flex;
      align-items: center;
      border-radius: 13px;
      padding: 4px 8px 3px;
      background-color: rgba(255,255,255,.12);
      font-weight: 400;
      font-size: 14px;
      color: #FFFFFF;
      .iconZan{
        width: 18px;
        height: 18px;
        margin-right: 2px;
      }
    }
  }
  .textEllipsis{
    margin-top: 10px;
    font-weight: 400;
    font-size: 14px;
    color: #FFFFFF;
    line-height: 20px;
    :global{
      .van-text-ellipsis__action{
        color: #5CCEFF;
        font-weight: 500;
        margin-left: 2px;
        &:active{
          opacity: 1;
        }
      }
    }
  }
}

.likeSection {
  margin: 20px 12px;
  background: rgba(255,255,255,.09);
  border-radius: 10px;
  padding: 12px 12px 0 12px;
  overflow: hidden;
  .likeTitle {
    display: flex;
    align-items: center;
    font-size: 17px;
    font-weight: 600;
    color: #ffffff;
    line-height: 24px;
    &::before {
      display: inline-block;
      content: '';
      width: 4px;
      height: 14px;
      border-radius: 2px;
      background: #2dc7aa;
      margin-right: 6px;
    }
  }
  .likeItem {
    padding: 13px 0 16px;
    background-color: initial;
    border-bottom: 1px solid rgba(242,242,242,0.12);
    &.likeItemLast{
      border-bottom: none;
    }
    .userLogo {
      border-radius: 50%;
      overflow: hidden;
      width: 42px;
      height: 42px;
      margin-right: 7px;
    }

    .userInfo {
      .name {
        font-size: 16px;
        font-weight: 500;
        color: #ffffff;
        line-height: 22px;
      }

      .sub {
        padding-top: 2px;
        font-size: 13px;
        color: #ffffff;
        line-height: 18px;
      }
    }

    .time {
      font-weight: 400;
      font-size: 13px;
      color: #FFFFFF;
      line-height: 18px;
    }
  }
  .mEmpty{
    padding: 0;
  }
  .btnImg{
    display: flex;
    justify-content: center;
    margin-top: 3px;
    margin-bottom: 12px;
    &>img{
      width: 88px;
      height: 31px;
      &:active{
        opacity: 0.8;
      }
    }
  }
  :global {
    .van-empty__description {
      color: #fff;
    }
    .van-cell {
      padding-left: 0;
      padding-right: 0;
    }
  }
}

.upward{
  padding-top: 12px;
  display: flex;
  justify-content: center;
  height: 55px;
  background: linear-gradient(180deg, rgba(42, 78, 85, 0) 0%, rgba(43, 78, 85, 0.7) 19%, #2b4e55 100%);
  > img{
    width: 19px;
    height: 15px;
  }
}
.bottomSection {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px 0 20px;
  width: 100%;
  height: 80px;
  background: #1F1F1F;
  box-shadow: 0px -1px 10px 0px rgba(0,0,0,0.05);
  .bottomShare {
    display: flex;
    align-items: center;
    p {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      margin-right: 28px;
      &:last-child{
        margin-right: 0;
      }
    }
    img {
      width: 18px;
      height: 18px;
    }
    span {
      margin-top: 8px;
      font-weight: 400;
      font-size: 12px;
      color: #ffffff;
      line-height: 17px;
    }
  }

  .btnEdit {
    width: 80px;
    height: 30px;
  }
}

.popupContainer {
  width: 80%;
  max-width: 350px;
  .popupTit {
    margin-top: 20px;
    text-align: center;
    font-weight: 600;
    font-size: 18px;
    color: #131415;
    line-height: 25px;
  }
  .popupContent {
    margin: 20px 0;
    font-weight: 400;
    font-size: 16px;
    color: #777777;
    line-height: 26px;
    text-align: center;
  }
  .popupBtnGroup {
    text-align: center;
    margin-bottom: 20px;
    :global {
      .van-button {
        height: 40px;
        font-size: 16px;
        font-weight: 400 !important;
        line-height: 22px;
        min-width: 122px;
        &:last-child {
           margin-left: 15px;
           background: #2dc7aa;
           border: none;
        }
     }
    }
  }
}
// 分享样式
.playSection.notLoaded{
  :global{
    .plyr .plyr__controls {
      display: none;
    }
  }
}
.logoDownload{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 13px;
  position: relative;
  &::after{
    content: "";
    position: absolute;
    bottom: 0;
    left: 13px;
    width: calc(100% - 26px);
    height: 1px;
    background-color: rgba(255, 255, 255, 0.3) ;
  }
  .logoImg{
    width: 107px;
    height: 30px;
  }
  .logTit{
    font-weight: 400;
    font-size: 14px;
    color: #FFFFFF;
    line-height: 22px;
    padding: 2px 10px;
    border-radius: 20px;
    background: #2DC7AA;
  }
}
.isShareScreenScroll{
  .logoDownload{
    background-color: #ffffff;
    .logTit{
      background: #2dc7aa;
      border: none;
      padding: 3px 11px;
    }
  }
}
.singerBox{
  height: 20vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  .musicSheetName{
    width: 200px;
    margin: 0 auto 10px;
    :global{
      .van-notice-bar{
          padding: 0;
          height: 28px;
          font-weight: 600;
          font-size: 20px;
          color: #FFFFFF;
          line-height: 28px;
          .van-notice-bar__content{
            min-width: 100%;
            text-align: center;
          }
      }
    }
  }
  .singerName{
    text-align: center;
    font-weight: 400;
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    line-height: 20px;
    margin-bottom: 10px;
  }
}
.musicShareSection{
  min-height: calc(var(--creationHeight, 100vh) - var(--barheight) - 20vh - 210px - 55px);
}
.likeShareItem{
  background-color: initial !important;
  padding: 0;
  margin-top: 25px;
  &:first-child{
    margin-top: 15px;
  }
  &.likeShareItemLast{
    padding-bottom: 20px;
  }
  .audioImgBox{
    position: relative;
    width: 51px;
    height: 51px;
    margin-right: 14px;
    .audioPan{
      position: absolute;
      width: 100%;
      height: 100%;
      right: -6px;
      top: 0;
    }
    .muploader{
      position: relative;
      z-index: 1;
      width: 100%;
      height: 100%;
      border-radius: 8.5px;
    }
    .imgLabel{
      position: absolute;
      right: 0;
      top: 0;
      width: 28px;
      height: 14px;
      z-index: 10;
    }
  }
  .userInfo{
    .musicSheetName{
      font-weight: 600;
      font-size: 16px;
      color: #FFFFFF;
      line-height: 22px;
      width: 200px;
    }
    .usernameCon{
      display: flex;
      align-items: center;
      margin-top: 4px;
      .likeNum{
        display: flex;
        align-items: center;
        border-radius: 3px;
        background-color: rgba(255,255,255,.22);
        padding: 1px 2px;
        img{
          width: 14px;
          height: 15px;
        }
        span{
          font-weight: 400;
          font-size: 10px;
          color: #FFFFFF;
          line-height: 1;
          margin-left: 2px;
        }
      }
      .username{
        max-width: 160px;
        margin-left: 4px;
        font-weight: 400;
        font-size: 13px;
        color: #DEDEDE;
        //line-height: 13px;
      }
    }
  }
  :global{
    .van-cell__value{
      display: flex;
      align-items: center;
      justify-content: flex-end;
    }
  }
  .playImg{
    width: 20px;
    height: 20px;
  }
}
.isEmpty{
  height: calc(var(--creationHeight, 100vh) - var(--barheight));
  display: flex;
  align-items: center;
}

// 平板样式
.creation{
  &.creationTablet{
    .playSection{
      height: 340px;
      .audioBox {
        .audioBga{
          width: 80%;
          height: 62%;
        }
      }
    }
    .musicSection{
      min-height: calc(var(--creationHeight, 100vh) - var(--barheight) - 20px - 14vh - 340px - 55px - 80px);
    }
    .musicShareSection{
      min-height: calc(var(--creationHeight, 100vh) - var(--barheight) - 20vh - 340px - 55px);
    }
    .wxpopup{
      img{
        width: 54%;
        margin-right: 18px;
      }
    }
  }
}

@keyframes rotate {
  from {
      transform: rotate(0deg);
  }
  to {
      transform: rotate(360deg);
  }
}
.loadingPop {
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999999;
  background: rgba(0, 0, 0, .5);
  .loadingCssBox{
      width: 27px;
      height: 27px;
      display: flex;
      justify-content: space-between;
      flex-wrap: wrap;
      align-content: space-between;
      margin-bottom: 24px;
      animation: rotate 1.5s linear infinite;
      .loadingCssItem{
          width: 11px;
          height: 11px;
          border-radius: 50%;
          background: #11ffd4;
          opacity: 0.5;
          &:nth-child(2){
              opacity:1;
          }
      }
  }
  .loadingTip {
      font-size: 14px;
      color: #fff;
  }
}

.wxpopup {
  width: 100%;
  height: 100%;
  min-height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  text-align: right;

  img {
    width: 88%;
    margin-right: 6%;
  }
}

// :global{
//   .dialogMusicClass.van-dialog{
//     width: 300px;
//     .van-dialog__message{
//       font-weight: 500;
//       line-height: 24px;
//     }
//   }
// }

// 横屏样式
.creation.creationTablet{
  .playSection.isLandscapeScreen{
    position: relative;
    .audioBox {
      .audioBga{
        width: 72%;
        height: 56%;
      }
    }
  }
}
.playSection.isLandscapeScreen{
  overflow: hidden;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  z-index: 1000;
  &::before {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 115px;
    content: "";
    background: linear-gradient(0, rgba(255, 255, 255, 0) 0%, rgba(3, 3, 3, 0.2) 45%, rgba(0, 0, 0, 0.7) 100%);
    z-index: 2;
  }
  .landscapeScreen{
    display: none;
  }
  .audioBox{
    .audioBoxBg,.audioVisualizer{
       transform: translate(-50%, -50%) scale(1.4);
    }
    .tyBg{
       transform: translate(-50%, calc(-50% + 39px)) scale(1.4);
    }
  }  
  :global {
    .plyr{
      .plyr__controls{
        padding: 0 20px 20px;
        .plyr__controls__item.plyr__control{
          display: block;
          padding: 0;
          width: 18px;
          height: 18px;
          &:hover{
              background: initial;
          }
          .icon--pressed{
              width: 100%;
              height: 100%;
              background: url("./images/pause1.png") no-repeat;
              background-size: 100% 100%;
              use{
                  display: none;
              }
          }
          .icon--not-pressed{
              width: 100%;
              height: 100%;
              background: url("./images/play1.png") no-repeat;
              background-size: 100% 100%;
              use{
                  display: none;
              }
          }
        }
        .plyr__controls__item.plyr__progress__container{
          margin-left: 9px;
          input[type=range]{
              color: #ffffff;
              height: 20px;
          }
          input[type="range"]::-webkit-slider-runnable-track {
              height: 4px;
          }
          input[type="range"]::-webkit-slider-thumb {
              width: 12px;
              height: 12px;
              margin-top: -4px;
              box-shadow: initial;
              background: #ffffff;
          }
          .plyr__progress__buffer{
              height: 4px;
              color: rgba(255, 255, 255, 0.7);
              background-color: #fff;
              margin-top: -2px;
          }
        }
        .plyr__controls__item.plyr__time{
            font-weight: 500;
            font-size: 14px;
            color: #FFFFFF;
            display: initial;
            &.plyr__time--current{
                margin-left: 9px;
            }
        }
      }
    }
  }
  .backBox{
    position: absolute;
    left: 20px;
    top: 20px;
    display: flex;
    z-index: 999;
    .backImg{
      width: 21px;
      height: 21px;
    }
    .musicDetail{
      margin-left: 10px;
      .musicSheetName{
        width: 300px;
        //margin-top: 4px;
        :global{
          .van-notice-bar{
              padding: 0;
              height: 20px;
              font-weight: 600;
              font-size: 18px;
              color: #FFFFFF;
              line-height: 20px;
          }
        }
      }
      .username{
        margin-top: 2px;
        font-weight: 400;
        font-size: 12px;
        color: rgba(255, 255, 255, 0.7);
        line-height: 18px
      }
    }
    .adMusicDetail {
      :global{
        .van-notice-bar{
            color: #131415 !important;
        }
      }
      .username {
        color: #333333;
      }
    }
  }
  .staffBox{
    height: calc(var(--staffBoxHeight) + 44px);
    padding-bottom: 44px;
    .staff{
      padding-left: 20px;
    }
    &.staffBoxBg {
      .staff{
        background-color: rgba(255, 255, 255, 0.7) !important;
      }
    }
  }
  &.isLandscapeScreen2 {
    &::before {
      background: transparent;
    }
    :global {
      .plyr{
        .plyr__controls{
          .plyr__controls__item.plyr__control{
            .icon--pressed{
                width: 100%;
                height: 100%;
                background: url("./images/pause2.png") no-repeat;
                background-size: 100% 100%;
            }
            .icon--not-pressed{
              width: 100%;
              height: 100%;
              background: url("./images/play2.png") no-repeat;
              background-size: 100% 100%;
            }
          }
          .plyr__controls__item.plyr__progress__container{
            input[type="range"]::-webkit-slider-thumb {
               background-color: #2DC7AA;
            }
          }
         .plyr__controls__item.plyr__time {
            font-weight: 500;
            font-size: 14px;
            color: #131415;
            display: initial;
            &.plyr__time--current {
              margin-left: 9px;
            }
          }
        }
      }
    }  
  }
}
