/* iosxy 音乐播放器样式 */

/* 全局重置和优化触摸高亮 */
* {
    padding: 0;
    margin: 0;
    -webkit-tap-highlight-color: transparent;
}

/* svg 图标样式 */
.icon {
    width: 1em;
    height: 1em;
    vertical-align: -0.15em;
    fill: currentColor;
    overflow: hidden;
}

/* 引入自定义字体 - 通过代理解决 CORS */
@font-face {
    font-family: "mjfont";
    src: url("https://api.iosxy.top/bfq/font.php?f=mjfont.woff2") format("woff2");
}

/* 播放器整体容器 */
.iosxy_player {
    font-family: "mjfont", sans-serif;
    width: 280px;
    height: 140px;
    position: fixed;
    left: -300px;
    bottom: 80px;
    z-index: 999999;
    border-radius: 0 20px 20px 0;
    background: url(https://api.iosxy.top/bfq/font.php?f=bg-cat-main.png) no-repeat top;
    background-size: 100% auto;
    padding-top: 30px;
    transition: left 0.5s ease;
}

/* 播放器卡片样式 */
.iosxy_player .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;
}

/* 顶部信息区域容器 */
.iosxy_player .yykjtop {
    display: flex;
}

/* 歌手及歌名信息区域 */
.iosxy_player .gqxx {
    box-sizing: border-box;
    width: 210px;
    height: 60px;
    padding: 0 5px;
}

/* 歌曲封面容器 */
.iosxy_player .yyfm {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
}

/* 封面图片样式 */
.iosxy_player .yyfm img {
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    border: 3px solid #FFD1D8;
}

/* 播放器主体容器 */
.iosxy_player .yykj {
    width: 280px;
    height: 100%;
    overflow: hidden;
    box-sizing: border-box;
    padding: 0 20px;
}

/* 歌名样式 */
.iosxy_player #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;
}

/* 歌手样式 */
.iosxy_player #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;
}

/* 进度条区域 */
.iosxy_player .jindutiao {
    height: 40px;
}

/* 进度条背景 */
.iosxy_player #progressBar {
    width: 100%;
    height: 10px;
    border-radius: 20px;
    background-color: #ccc;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

/* 进度条实际进度 */
.iosxy_player #progressBar .progress {
    height: 100%;
    border-radius: 20px;
    background-color: #ffa9b8;
    position: absolute;
    top: 0;
    left: 0;
    transition: width 0.1s linear;
}

/* 当前时间和总时长 */
.iosxy_player .yyshijian {
    display: flex;
    justify-content: space-between;
    margin: 5px 0;
    font-size: 15px;
    color: #999;
}

/* 播放控制按钮容器 */
.iosxy_player .bfqan {
    display: flex;
    justify-content: space-around;
}

/* 控制按钮 SVG 样式 */
.iosxy_player .bfqan div svg {
    width: 100%;
    height: 100%;
    background-color: #fff;
    cursor: pointer;
    transition: transform 0.2s;
}

.iosxy_player .bfqan div svg:hover {
    transform: scale(1.1);
}

/* 控制按钮容器 */
.iosxy_player .bfqan div {
    width: 20px;
    height: 20px;
    overflow: hidden;
}

/* 静音图标默认显示 */
.iosxy_player #yousheng {
    display: block;
}

.iosxy_player #wusheng {
    display: none;
}

.iosxy_player #zanting {
    display: none;
}

/* 播放器展开按钮容器 */
.iosxy_player .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;
    cursor: pointer;
}

/* 展开按钮 SVG 样式 */
.iosxy_player .zkan svg {
    width: 30px;
    height: 30px;
    transform: scaleX(1);
    transition: transform 0.3s ease;
}