@charset "utf-8";
/**************************************************
 * MKOnlinePlayer v2.31
 * 小屏幕样式修复
 * 编写：mengkun(http://mkblog.cn)
 * 时间：2017-9-13
 *************************************************/

/* 默认隐藏顶部横条 */
.mobile-top-bar {
    display: none;
}

/* 小于 900px 采用这个样式 */
@media screen and (max-width: 900px) {
    /* 小屏幕下背景固定为黑色 */
    html, body {
        background-color: #000 !important;
        background: #000 !important;
    }
    
    /* 小屏幕顶部固定横条 */
    .mobile-top-bar {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 50px;
        background-color: #fff;
        align-items: center;
        justify-content: space-between;
        padding: 0 15px;
        z-index: 1001;
    }
    
    .mobile-top-title {
        color: #000;
        font-size: 18px;
        font-weight: bold;
    }
    
    .mobile-sheet-select-btn {
        background-color: #000;
        color: #fff;
        border: none;
        padding: 6px 12px;
        border-radius: 4px;
        font-size: 14px;
        cursor: pointer;
    }
    
    /*隐藏头部logo*/
    .header {
        display: none;
    }
    
    /* 隐藏选项卡按钮区 */
    .btn-bar {
        display: none;
    }
    
    /*中部顶格，调整列表高度给歌词留出足够空间*/
    .center {
        top: 25px !important;
        bottom: 180px;
    }
    
    /* 隐藏列表头部的歌曲、歌手、专辑文字 */
    .list-head {
        display: none !important;
        height: 0 !important;
    }
    .list-head .music-name,
    .list-head .auth-name,
    .list-head .music-album {
        display: none !important;
    }
    
    
    /* 调出播放器按钮 */
    .btn[data-action='player'] {
        display: inline-block;
    }
    
    /* 显示小屏幕播放列表按钮 */
    .mobile-float-btns {
        display: block !important;
        visibility: visible !important;
    }
    
    .mobile-float-btns .mobile-menu-btn {
        display: flex !important;
        visibility: visible !important;
    }
    
    /* 按钮工具条区域 - 完全隐藏，包括占位 */
    .btn-bar {
        display: none !important;
        height: 0 !important;
        width: 0 !important;
        overflow: hidden;
    }
    /* 隐藏版权信息 */
    .btn-box .btn.hidden-xs.hidden-sm {
        display: none !important;
    }
    .btn-box {
        background-color: #000;
        background-color: rgba(0, 0, 0, 0.12);
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
    }
    .btn {
        margin: 0;
        padding: 0;
        width: 25%;
        height: 100%;
        display: block;
        float: left;
        border: none;
        text-align: center;
        line-height: 35px;
        color: #C5C5C5;
    }
    .btn:hover {
        border: none;
    }
    .btn-box .active:after {
        content: '';
        display: block;
        border-bottom: 3px solid #A2A0A0;
        margin-top: -3px;
    }
    
    /* 中部容器区域 */
    .data-area {
        top: 20px;
    }
    
    /*数据区域占满整个屏幕*/
    .data-area {
        right: 0;
    }
    
    
    /*列表菜单不显示*/
    .list-menu {
        display: none!important;
    }
    .music-name-cult {
        padding-right: 0!important;
    }
    
    /* 专辑区域腾出位置 */
    .music-album {
        margin-right: 30px;
    }
    /* 小屏幕的列表菜单 */
    .list-mobile-menu {
        position: absolute;
        display: block;
        width: 30px;
        height: 30px;
        background-image: url(../images/player.png);
        background-position: -30px -365px;
        right: 0;
        top: 50%;
        -webkit-transform: translateY(-50%);
           -moz-transform: translateY(-50%);
            -ms-transform: translateY(-50%);
             -o-transform: translateY(-50%);
                transform: translateY(-50%);
        z-index: 2;
        cursor: pointer;
    }
    
    /* 控制按钮区域缩小并居中，调整向上移动距离 */
    .con-btn {
        width: 100px;
        height: 40px;
        margin: 0 auto;
        transform: translateY(-50px);
        -webkit-transform: translateY(-50px);
        -moz-transform: translateY(-50px);
        -ms-transform: translateY(-50px);
        -o-transform: translateY(-50px);
    }
    /*单行歌词显示区域*/
    .single-lyric,
#current-lyric{
        display: block;
        text-align: center;
        width: 100%;
        height: 32px;
        line-height: 32px;
        color: #31C27C;
        font-size: 16px;
        font-weight: 600;
        position: relative;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        margin: 12px 0;
        padding-top: 2px;
        transform: translateY(-13px);
        -webkit-transform: translateY(-13px);
        -moz-transform: translateY(-13px);
        -ms-transform: translateY(-13px);
        -o-transform: translateY(-13px);
        transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    
    /*歌词容器样式 - 确保歌词能正确显示并居中*/
    .single-lyric {
        position: relative !important;
        overflow: visible !important;
        display: block !important;
        white-space: nowrap !important;
        color: #31C27C !important;
        z-index: 0 !important;
        text-indent: 0 !important;
        padding: 10px 0 !important;
        margin: 0 auto !important;
        line-height: 1.5 !important;
        text-align: center !important;
        width: 100% !important;
        background: transparent !important;
    }
    
    /*当前歌词样式 - 确保正确显示并居中*/
    #current-lyric {
        position: relative !important;
        overflow: visible !important;
        display: inline !important;
        white-space: nowrap !important;
        color: #31C27C !important;
        font-size: 16px !important;
        font-weight: 600 !important;
        z-index: 0 !important;
        text-indent: 0 !important;
        padding: 5px 15px !important;
        margin: 0 auto !important;
        line-height: 1.5 !important;
        text-align: center !important;
        background: transparent !important;
        visibility: visible !important;
        animation: none !important;
        border-radius: 0;
    }
    
    /* 小屏幕歌词动画效果 - 颜色渐变 */
    @keyframes lyricColorPulse {
        0%, 100% {
            color: #31C27C;
        }
        50% {
            color: #4CEB9F;
        }
    }
    
    /* 小屏幕歌词动画效果 - 轻微呼吸缩放 */
    @keyframes lyricBreath {
        0%, 100% {
            transform: translateY(-13px) scale(1);
            filter: brightness(1);
        }
        50% {
            transform: translateY(-13px) scale(1.03);
            filter: brightness(1.1);
        }
    }
    
    /* 小屏幕歌词动画效果 - 淡入 */
    @keyframes lyricFadeIn {
        from {
            opacity: 0;
            transform: translateY(-13px) translateY(10px);
            filter: blur(5px);
        }
        to {
            opacity: 1;
            transform: translateY(-13px) translateY(0);
            filter: blur(0);
        }
    }
    
    /* 背景动画 */
    @keyframes lyricGlow {
    }
    
    /* 应用动画效果的类 */
    .lyric-animate-color {
        animation: lyricColorPulse 4s ease-in-out infinite;
    }
    
    .lyric-animate-scale {
        animation: lyricBreath 3s ease-in-out infinite;
    }
    
    .lyric-animate-fade {
        animation: lyricFadeIn 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    
    /* 强调动画 - 颜色+发光 */
    .lyric-animation-complete {
        animation: lyricColorPulse 4s ease-in-out infinite, lyricBreath 3s ease-in-out infinite;
    }
    
    /* 纯发光动画类 */
    .lyric-glow {
        animation: lyricGlow 3s ease-in-out infinite;
    }
    
    /*进度条调整并居中内容，调整向上移动距离*/
    .progress {
        width: 85%;
        height: 30px;
        position: relative;
        margin: 0 auto;
        transform: translateY(-35px);
        -webkit-transform: translateY(-35px);
        -moz-transform: translateY(-35px);
        -ms-transform: translateY(-35px);
        -o-transform: translateY(-35px);
    }
    .progress-box {
        left: 0;
        right: 0;
        text-align: center;
    }
    /*音量控制区域隐藏*/
    .vol {
        display: none !important;
    }
    
    /*隐藏右侧歌词及封面*/
    .player {
        display: none;
        width: 100%;
    }
    .cover {
        margin-top: 80px;
    }
    /* 显示歌词容器，确保可以滚动 */
    #lyric {
        display: block;
        overflow-y: auto;
        max-height: 200px;
    }
    .lyric {
        top: 180px;
    }
    /* 未播放时的歌词提示样式 */
    .single-lyric[data-lyric=""]::before,
    #current-lyric[data-lyric=""]::before {
        content: '';
        color: #888;
        font-size: 12px;
    }
    
    /* 有歌词时不显示提示 */
    .single-lyric:not([data-lyric=""])::before,
    #current-lyric:not([data-lyric=""])::before {
        content: '';
    }
}

/* 小于 620px 采用这个样式 */
@media screen and (max-width: 620px) {
    /*专辑信息不显示*/
    .music-album {
        display: none;
    }
    /*歌手名字*/
    .auth-name {
        width: 35%;
        padding-right: 30px;
        box-sizing: border-box;
    }
    /*音乐名字拉长*/
    .music-name {
        margin-right: 35%;
    }
}

/* 小于 500px 采用这个样式 */
@media screen and (max-width: 500px) {
    .center {
        bottom: 80px;
    }
    /* 歌单封面 */
    .sheet-item {   
        width: 33.33%;
    }
    /* 歌单名字 */
    .sheet-name {
        max-width: 100px;
    }
    .cover {
        margin-top: 70px;
    }
    .footer {
        height: 80px;
    }
}

/* 小于 350px 采用这个样式 */
@media screen and (max-width: 350px) {
    /* 歌单封面 */
    .sheet-item {   
        width: 50%;
    }
}

/* 小屏幕悬浮按钮组 */
.mobile-float-btns {
    display: none;
    position: fixed;
    right: 20px;
    bottom: 100px;
    width: 50px;
    height: 50px;
    z-index: 1000;
}

.mobile-float-btn {
    position: absolute;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.mobile-menu-btn {
    right: 3px;
    bottom: 3px;
    background-color: #31C27C;
    color: white;
    font-size: 28px;
    z-index: 1002;
}

.mobile-menu-btn .btn-icon {
    transition: transform 0.3s ease;
}

.mobile-float-btns.expanded .mobile-menu-btn .btn-icon {
    transform: rotate(45deg);
}

.mobile-sheet-btn {
    right: 3px;
    bottom: 55px;
    background-color: #fff;
    color: #333;
    opacity: 0;
    transform: scale(0);
    visibility: hidden;
    z-index: 1001;
}

.mobile-search-btn {
    right: 55px;
    bottom: 3px;
    background-color: #fff;
    color: #333;
    opacity: 0;
    transform: scale(0);
    visibility: hidden;
    z-index: 1001;
}

.mobile-float-btn .btn-icon {
    font-size: 20px;
}

.mobile-float-btns.expanded .mobile-sheet-btn,
.mobile-float-btns.expanded .mobile-search-btn {
    opacity: 1;
    transform: scale(1);
    visibility: visible;
}

/* 小屏幕播放列表模态框 */
.mobile-playlist-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    animation: fadeIn 0.3s ease;
    overflow: hidden;
    touch-action: pan-y;
}

.mobile-playlist-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 400px;
    max-height: 80vh;
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    animation: modalScale 0.3s ease;
    touch-action: pan-y;
}

.mobile-playlist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: #f5f5f5;
    border-bottom: 1px solid #e0e0e0;
    flex-shrink: 0;
}

.mobile-playlist-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.mobile-playlist-close {
    font-size: 28px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
}

.mobile-playlist-close:hover {
    color: #31C27C;
}

.mobile-playlist-body {
    max-height: calc(80vh - 55px);
    overflow-y: auto;
    overflow-x: hidden;
    padding: 10px 0;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
}

/* 隐藏滚动条 */
.mobile-playlist-body::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.mobile-playlist-body::-webkit-scrollbar-track {
    background: transparent;
}

.mobile-playlist-body::-webkit-scrollbar-thumb {
    background: transparent;
}

.mobile-playlist-body {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.mobile-playlist-list {
    padding: 0;
    margin: 0;
}

/* 模态框动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes modalScale {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* 模态框内列表项样式 */
.mobile-playlist-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.mobile-playlist-item:hover {
    background-color: #f8f8f8;
}

.mobile-list-cover {
    width: 50px;
    height: 50px;
    border-radius: 5px;
    overflow: hidden;
    flex-shrink: 0;
}

.mobile-list-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mobile-list-info {
    flex: 1;
    margin-left: 12px;
    overflow: hidden;
}

.mobile-list-name {
    font-size: 14px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mobile-list-count {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}

/* 歌单选择模态框列表样式 */
.mobile-sheet-list {
    padding: 0;
    margin: 0;
}

.mobile-sheet-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.mobile-sheet-item:hover {
    background-color: #f8f8f8;
}

.mobile-sheet-cover {
    width: 50px;
    height: 50px;
    border-radius: 5px;
    overflow: hidden;
    flex-shrink: 0;
}

.mobile-sheet-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mobile-sheet-info {
    flex: 1;
    margin-left: 12px;
    overflow: hidden;
}

.mobile-sheet-name {
    font-size: 14px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mobile-sheet-count {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}

/* 自定义歌单模态框样式 - 小屏幕切换歌单 */
.mobile-sheet-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.7) !important;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999 !important;
}

.mobile-sheet-modal.active {
    display: flex !important;
}

.mobile-sheet-modal-content {
    background-color: #fff;
    border-radius: 8px;
    width: 90%;
    max-width: 450px;
    overflow: hidden;
    display: block !important;
    min-height: 200px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    /* 强制显示 */
    visibility: visible !important;
    opacity: 1 !important;
}

.mobile-sheet-modal-header {
    padding: 15px 20px;
    background-color: #f5f5f5;
    color: #000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-sheet-modal-title {
    font-size: 18px;
    font-weight: bold;
}

.mobile-sheet-modal-close {
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    color: #666;
    transition: color 0.2s ease;
}

.mobile-sheet-modal-close:hover {
    color: #000;
}

.mobile-sheet-modal-body {
    padding: 20px;
}

/* 输入区域样式 */
.mobile-sheet-input-area {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.mobile-sheet-input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease;
}

.mobile-sheet-input:focus {
    border-color: #31C27C;
}

.mobile-sheet-input::placeholder {
    color: #999;
}

.mobile-sheet-confirm {
    padding: 12px 25px;
    background-color: #31C27C;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s ease, opacity 0.2s ease;
    white-space: nowrap;
}

.mobile-sheet-confirm:hover {
    background-color: #2ab069;
}

.mobile-sheet-confirm:disabled {
    background-color: #999;
    cursor: not-allowed;
}

/* 结果区域样式 */
.mobile-sheet-result {
    min-height: 20px;
    font-size: 14px;
}

.mobile-sheet-loading {
    color: #31C27C;
    text-align: center;
    padding: 10px 0;
}

.mobile-sheet-success {
    color: #31C27C;
    text-align: center;
    padding: 10px 0;
}

.mobile-sheet-error {
    color: #ff4d4f;
    text-align: center;
    padding: 10px 0;
}

/* 移除不再需要的列表样式 */
.mobile-sheet-modal-list,
.mobile-sheet-modal-item,
.mobile-sheet-modal-cover,
.mobile-sheet-modal-cover img,
.mobile-sheet-modal-info,
.mobile-sheet-modal-name,
.mobile-sheet-modal-count {
    display: none;
}