/*引入网页字体文件*/
@import url("AvenirNextRoundedProMedium.TTF");
/*网页的整体样式*/
html {
  
    box-sizing: border-box ;/* 盒子模型 外边距 边框 内边距*/
    /*设置全局使用的变量*/
    --parent-height : 20em ;
    --duration: 1s ;
    --duration-text-wrap: 12s 1.5s cubic-bezier(0.82, 0.82, 1, 1.01) ;
    --cubic-header: var(--duration) cubic-bezier(0.71, 0.21, 0.3, 0.95) ;
    --cubic-slider : var(--duration) cubic-bezier(0.4, 0, 0.2, 1) ;
    --cubic-play-list : .35s var(--duration) cubic-bezier(0, 0.85, 0.11, 1.64) ;
    --cubic-slider-context : cubic-bezier(1, -0.01, 1, 1.01) ;
    
}
/*给html元素 设置伪元素*/
html *,
html *::before,
html *::after {
/*盒子模型 尺寸继承父元素*/
    box-sizing: inherit ;
    /*移除滚动条宽度*/
    scrollbar-width: none ;
  
}

/*body样式*/
body{
  
    margin: 0 ;/*外边距为0*/
    height: 100vh ;/*视口高度*/
    display: flex ;/*弹性盒布局*/
    user-select: none ;/*禁止输入*/
    align-items: center ;/*水平居中*/
    justify-content: center ;/*垂直居中*/
    background-color: #e5e7e9 ;/*背景颜色*/
    font-family: 'Quicksand', sans-serif ;/*字体*/
    -webkit-tap-highlight-color: transparent ;/*高亮透明*/
    transition: background-color  var(--cubic-slider) ;/*过渡*/

}  
/*图片标签*/
.img {

    width: 100% ;
    display: block ;
    object-fit: cover ;

}
/*列表样式*/
.list {

    margin: 0 ;
    padding: 0 ;
    list-style-type: none ;

}
/*弹性盒样式*/
.flex {

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

}

.uppercase{
  
    text-transform: uppercase ; /*文本内容转为大写*/
  
}
/*播放器的整体样式*/
.player {

    width: 17.15em ; /*宽度*/
    display: flex ; /*弹性盒布局*/
    overflow: hidden ;/*溢出隐藏*/
    font-size: 1.22em ;/*字体大小*/
    border-radius: 1.35em ;/*圆角*/
    flex-direction: column ;/*弹性盒按列垂直排*/
    background-color: white ;/*背景颜色*/
    height: var(--parent-height) ;/*高度*/

}
/*播放器头部样式 正在播放部分*/
.player__header {

    z-index: 1 ;/*元素层级*/
    gap: 0 .4em ;/*弹性盒列之间的间隙*/
    width: 100% ;/*宽度*/
    display: flex;/*弹性盒*/
    height: 5.85em ;/*高度*/
    flex-shrink: 0 ;/*弹性盒伸缩比例*/
    position: relative;/*相对定位*/
    align-items: flex-start ;/*x轴向左上角对齐*/
    border-radius: inherit ;/*圆角内阴影*/
    justify-content: flex-end ;/*y轴向右下方对齐*/
    background-color: white  ;/*背景颜色*/
    padding: .95em 0.6em 0 1.2em ;/*内边距*/
    box-shadow: 0 2px 6px 1px #0000001f ;/*阴影*/
    transition: height var(--cubic-header), box-shadow var(--duration), padding var(--duration) ease-in-out ;/*过渡动画*/

}
/*播放器头部其他样式*/
.player__header.open-header {

    height: 100% ;
    padding-left: 0 ;
    padding-right: 0 ;
    box-shadow: unset ;

}
/*播放器容器中图片的样式*/
.player__img {

    width: 3.22em ;
    height: 3.22em ;
    border-radius: 1.32em ;

}
/*播放器中图片的绝对定位和尺寸大小*/
.player__img--absolute {
  
    top: 1.4em ;
    left: 1.2em ;
    position: absolute ;
    
}
/*切换时添加的样式*/
.slider {

    flex-shrink: 0 ;
    overflow: hidden ;
    transition: width var(--cubic-header), height var(--cubic-header), top var(--cubic-header), left var(--cubic-header);
    
}
/*切换时的其他样式*/
.slider.open-slider{

    top: 0 ;
    left: 0 ;
    width: 100% ;
    height: 14.6em ;

}
/*切换时内容区域的样式*/
.slider__content {

    display: flex ;
    height: 100% ;
    will-change : transform ;/*可以提前通知浏览器我们要对元素做什么动画，这样浏览器可以提前准备合适的优化设置*/
    transition: transform var(--cubic-slider);

}
/*切换区域图片的样式*/
.slider__img {

    filter: brightness(75%) ;

}
/*切换区域歌曲名称 歌手名称的样式*/
.slider__name, 
.slider__title {
  
    overflow: hidden ;
    white-space: nowrap ;

}
/*切换时文本区域的样式*/
.text-wrap {

    display: block ;
    white-space: pre ;/*文本之间有空格*/
    width: fit-content ;/*宽度随内容变化*/
    animation: text-wrap var(--duration-text-wrap) infinite ;/*设置动画*/

}
/*z关键帧动画*/
@keyframes text-wrap {

    75%{
      
        transform: translate3d(-51.5%, 0, 0) ;
      
    }

    100%{
      
        transform: translate3d(-51.5%, 0, 0) ;

    }
    
}
/*播放器按钮的样式*/
.player__button {

    all: unset ;/*所有样式继承父级*/
    z-index: 100 ;/*属性规定元素的堆叠顺序，值越高就会显示在上面*/
    width: 2.5em ;
    height: 2.5em ;
    cursor: pointer ;

}
/*播放列表样式*/
.playlist {

    transform: scale(0) ;/*平移 缩放*/
    transition: transform calc(var(--duration) / 2) ;/*过渡动画*/
    
}
/*开始切换时播放列表的样式*/
.slider.open-slider .playlist {

    transform: scale(1) ;/*缩放*/
    transition: transform var(--cubic-play-list) ;


}
/*播放器按钮的绝对定位样式*/
.player__button--absolute--nw {

    top: 5.5% ;
    left: 5.5% ;
    position: absolute ;
    
}
/*播放器按钮的绝对定位居中样式*/
.player__button--absolute--center {
    
    top: 0 ;
    left: 0 ;
    right: 0 ;
    bottom: 0 ;
    margin: auto ;
    position: absolute ;

}
/*暂停按钮的样式*/
img[alt ="pause-icon"] {

    display: none ;
    
}
/*播放器控制按钮区域的样式*/
.player__controls {

    width: 77% ;
    gap: .5em 0 ;
    display: flex ;
    flex-wrap: wrap ;
    align-items: center ;
    will-change: contents ;
    align-content: center ;
    justify-content: center ;
    transition: transform var(--cubic-header) , width var(--cubic-header) ;

}
/*移动控制按钮的样式*/
.player__controls.move {

    width: 88% ;
    transform: translate3d(-1.1em , calc(var(--parent-height) - 153%) , 0) ;
    
}
/*播放器内容区域样式*/
.player__context {

    margin: 0 ;
    width: 100% ;
    display: flex ;
    line-height: 1.8 ;
    flex-direction: column ;
    justify-content: center ;
    text-transform: capitalize ;

}
/*播放器切换区域样式*/
.slider__context {

    width: 56.28% ;
    cursor: pointer ;
    text-align: center ;
    padding-bottom: .2em ;
    will-change: contents ;
    transition: width var(--cubic-header) ;
    animation: calc(var(--duration) / 2) var(--cubic-slider-context) ;

}
/*透明效果的关键帧动画*/
@keyframes opacity {
   

    0% {

        opacity: 0 ;

    }

    90%{

        opacity: 1 ;

    }

}
/*移动控制按钮和切换内容时的其他样式*/
.player__controls.move .slider__context{
    
    width: 49.48% ;

}

.player__title {

    font-size: .7em ;
    font-weight: bold ;
    color: #00000086 ;

}

.progres {

    width: 90% ;
    height: .25em ;
    cursor: pointer ;
    border-radius: 1em ;
    touch-action : none ;
    background-color: #e5e7ea ;
    transition: width var(--cubic-header) ;

}
/*移除进度条时的宽度*/
.player__controls.move .progres{

    width: 98% ;
    
}
/*进度条上的拖放按钮样式*/
.progres__filled {

    width: 0% ;
    height: 100% ;
    display: flex ;
    position: relative ;
    align-items: center ;
    border-radius: inherit ;
    background-color: #78adfe ;
    
}
/*拖放按钮的伪元素样式*/
.progres__filled::before {

    right: 0 ;
    width: .35em ;
    content: " " ;
    height: .35em ;
    border-radius: 50% ;
    position: absolute ;
    background-color: #5781bd ;
    
}
/*播放器列表的其他样式*/
.player__playlist {

    height: 100% ;
    overflow: auto ;   
    padding: 1.05em .9em 0 1.2em ; 

}
/*播放器列表的滚动条样式*/
.player__playlist::-webkit-scrollbar {
    
    width: 0 ;

}
/*播放列表中li样式*/
.player__song {

/*     gap: 0 .65em ; */
    display: flex ;
    cursor: pointer ;
    margin-bottom: .5em ;
    padding-bottom: .7em ;
    border-bottom: .1em solid #d8d8d859 ;

}
/*播放列表中li内容样式*/
.player__song .player__context {

    line-height: 1.5 ;
    margin-left: .65em ;

}
/*播放列表中歌曲名称字体大小*/
.player__song-name {

    font-size: .88em ;

}
/*播放列表中歌曲时长样式*/
.player__song-time {

    font-size: .65em ;
    font-weight: bold ;
    color: #00000079 ; 
    height: fit-content ;
    align-self: flex-end ;

}
/*播放器中所有的播放歌曲标签样式*/
.audio {

    display: none !important ;

}