/* 全局重置和优化触摸高亮 */
* {
    padding: 0;
    margin: 0;
    -webkit-tap-highlight-color: transparent; /* 移动端点击去掉高亮 */
}

/* svg 图标样式 */
.icon {
    width: 1em;
    height: 1em;
    vertical-align: -0.15em;
    fill: currentColor;
    overflow: hidden;
}

/* 引入自定义字体 */
@font-face {
    font-family: "mjfont";
    src: url("https://www.hhlqilongzhu.cn/api/QQmusic_ck/music_bfq/font/mjfont.woff2");
}

/* 播放器整体容器 */
.cenguigui_yy {
    font-family: "mjfont";
    width: 280px;
    height: 140px;
    position: fixed;
    left: -300px; /* 初始隐藏在左侧 */
    bottom: 80px;
    z-index: 999999;
    border-radius: 0 20px 20px 0;
    background: url(https://www.hhlqilongzhu.cn/api/QQmusic_ck/music_bfq/img/bg-cat-main.png) no-repeat top;
    background-size: 100% auto;
    padding-top: 30px;
    transition: left 1s linear 0s; /* 左侧滑动动画 */
}

/* 播放器卡片样式 */
.bfq {
    box-sizing: border-box;
    width: 100%;
    height: 140px;
    background-image: linear-gradient(180deg, #FFF2EF 0%, #FFFFFF 50%);
    box-shadow: 5px 3px 8px #ffd1d8; /* 卡片阴影 */
    display: flex;
    padding-top: 10px;
}

/* 顶部信息区域容器 */
.yykjtop {
    display: flex;
}

/* 歌手及歌名信息区域 */
.gqxx {
    box-sizing: border-box;
    width: 210px;
    height: 60px;
    padding: 0 5px;
}

/* 歌曲封面容器 */
.yyfm {
    width: 50px;
    height: 50px;
    flex-shrink: 0; /* 避免被压缩 */
}

/* 封面图片样式 */
.yyfm img {
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    border-radius: 20px; /* 圆角 */
    border: 3px solid #FFD1D8; /* 边框 */
}

/* 播放器主体容器 */
.yykj {
    width: 280px;
    height: 100%;
    overflow: hidden;
    box-sizing: border-box;
    padding: 0 20px;
}

/* 歌名样式 */
#yyname {
    font-size: 16px;
    box-sizing: border-box;
    color: #ffa9b8;
    text-align: center;
    font-weight: bold;
    padding-top: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; /* 超出隐藏显示省略号 */
}

/* 歌手样式 */
#yyzuozhe {
    padding: 5px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #78c1ff;
    font-weight: bold;
    text-align: center;
    margin-bottom: 5px;
    font-size: 13px;
}

/* 进度条区域 */
.jindutiao {
    height: 40px;
}

/* 进度条背景 */
#progressBar {
    width: 100%;
    height: 10px;
    border-radius: 20px;
    background-color: #ccc;
    position: relative;
    overflow: hidden;
}

/* 进度条实际进度 */
#progressBar .progress {
    height: 100%;
    border-radius: 20px;
    background-color: #ffa9b8;
    position: absolute;
    top: 0;
    left: 0;
}

/* 当前时间和总时长 */
.yyshijian {
    display: flex;
    justify-content: space-between;
    margin: 5px 0;
    font-size: 15px;
}

/* 播放控制按钮容器 */
.bfqan {
    display: flex;
    justify-content: space-around;
}

/* 控制按钮 SVG 样式 */
.bfqan div svg {
    width: 100%;
    height: 100%;
    background-color: #fff;
}

/* 控制按钮容器 */
.bfqan div {
    width: 20px;
    height: 20px;
    overflow: hidden;
}

/* 静音图标默认显示 */
#yousheng {
    display: block;
}

/* 播放器展开按钮容器 */
.zkan {
    width: 30px;
    height: 140px;
    display: flex;
    align-items: center;
    background-color: #FFD1D8;
    position: absolute;
    border-radius: 0 15px 15px 0;
    right: -30px;
    top: 30px;
}

/* 展开按钮 SVG 样式 */
.zkan svg {
    width: 30px;
    height: 30px;
    transform: scaleX(1);
    transition: transform 0.5s linear 0s;
}
