/* 全局播放器样式  酷咔音乐 kkmp3.com 提供 */
* { margin:0; padding:0; box-sizing:border-box; }
body {
   background: url(https://kkmp3.com/upload/kkbj.webp) no-repeat center center fixed;
   background-size: cover;
   min-height: 100vh;
   display: flex;
   flex-direction: column;
   align-items: center;
   justify-content: center;
   font-family: system-ui, -apple-system, sans-serif;
   color: #fff;
   padding: 15px;
   position: relative;
   overflow-x: hidden;
}

.player-card {
    background: #1e1e2e;
    border-radius: 16px 16px 0 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
    max-width: 1200px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
    margin-bottom: 0;
    position: relative;
}

.home-icon {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 99;
    text-decoration: none;
}
.home-icon:hover {
    background: rgba(255,255,255,0.2);
}
.home-icon svg {
    width: 24px;
    height: 24px;
    fill: #fff;
}
.format-text {
    display: none;
    position: absolute;
    top: 65px;
    left: 15px;
    font-size: 12px;
    color: #01fdff;
    font-weight: 500;
    z-index: 98;
}

.share-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.1);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    color: #fff;
}
.share-btn:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.05);
}
.share-btn svg {
    width: 20px;
    height: 20px;
    fill: #fff;
}
.listen-text {
    display: none;
    position: absolute;
    top: 65px;
    right: 15px;
    font-size: 12px;
    color: #05e2e6;
    font-weight: 500;
    z-index: 98;
    white-space: nowrap;
}

.player-left {
    position: relative;
    width: 220px;
    height: 220px;
    flex-shrink: 0;
}
.cover {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    animation: rotate 20s linear infinite;
    animation-play-state: paused;
}
.cover.rotating { animation-play-state: running; }
@keyframes rotate { from{transform:rotate(0deg);} to{transform:rotate(360deg);} }

.player-right {
    width: 100%;
    display:flex;
    flex-direction:column;
    gap: 15px;
}
.title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 5px;
    text-align: center;
}

.title-scroll-container {
    position: absolute;
    top: 20px;
    left: 70px;
    right: 70px;
    height: 40px;
    display: flex;
    align-items: center;
    overflow: hidden;
    z-index: 90;
}
.title-scroll-content {
    white-space: nowrap;
    animation: title-scroll 8s linear infinite;
    padding-left: 100%;
}
@keyframes title-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

.meta {
    font-size: 14px;
    color: #aaa;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 8px;
}
.listen-count {
    color: #01fdff;
    font-weight: 500;
    white-space: nowrap;
}

#spectrumCanvas {
    width: 100%;
    height: 120px !important;
    display: block;
    background-image: url(https://kkmp3.com/upload/spectrum-bg.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    background-color: #121212;
    margin-top: 5px !important;
}

.progress-area {
    width:100%;
    position:relative;
    margin-top: 10px;
}
.progress-bar {
    width:100%;
    height:8px;
    background:#333;
    border-radius:4px;
    cursor:pointer;
}
.progress-fill {
    height:100%;
    background: linear-gradient(90deg, #ff00ff, #9933ff, #3399ff, #00ffff);
    border-radius:4px;
    width:0%;
    transition:width 0.1s;
}
.time-tooltip {
    position: absolute;
    bottom: -17px;
    left: 0%;
    transform: translateX(-50%);
    color: #01fdff;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    pointer-events: none;
    min-width: 80px;
}
.time-current { display:block; margin-bottom: 7px; }
.time-duration { display:block; color:#01fdff; font-size: 14px; }

.control-container {
    display: flex;
    align-items: center;
    width: 100%;
}
.play-control-bar {
    display: flex;
    align-items: center;
    gap: 25px;
}
.volume-control-bar {
    display: flex;
    align-items: center;
    margin-left: auto;
}
.control-btn {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    color: #fff;
    flex-shrink: 0;
}
.control-btn:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.1);
}
.play-btn {
    width: 60px;
    height: 60px;
    background: #ff2e63;
    color: #fff;
    box-shadow: 0 0 15px rgba(255,46,99,0.5);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.play-btn:hover {
    background: #ff477e;
    box-shadow: 0 0 20px rgba(255,46,99,0.7);
}
.play-btn.hint {
    animation: pulse 1.5s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 15px rgba(255,46,99,0.5); }
    50% { box-shadow: 0 0 25px rgba(255,46,99,0.8); }
    100% { box-shadow: 0 0 15px rgba(255,46,99,0.5); }
}

.loop-btn {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    color: #fff;
    flex-shrink: 0;
}
.loop-btn:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.1);
}
.loop-btn.active {
    background: #ff2e63;
    box-shadow: 0 0 15px rgba(255,46,99,0.5);
}
.loop-btn.active:hover {
    background: #ff477e;
    box-shadow: 0 0 20px rgba(255,46,99,0.7);
}

.control-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    transition: all 0.2s ease;
}
.play-btn .control-icon {
    width: 32px;
    height: 32px;
}
.loop-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}
.control-btn:hover .control-icon {
    transform: scale(1.1);
}

.volume-area {
    display: flex;
    align-items: center;
    gap: 12px;
}
.volume-icon {
    width: 24px;
    height: 24px;
    fill: #fff;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}
.volume-icon:hover {
    fill: #ff2e63;
}
.volume-slider {
    width: 200px;
    height: 6px;
    background: #333;
    border-radius: 3px;
    cursor: pointer;
    position: relative;
}
.volume-fill {
    height: 100%;
    background: #ff2e63;
    border-radius: 3px;
    width: 70%;
    transition: width 0.1s;
}
.volume-dot {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translate(50%, -50%);
    width: 14px;
    height: 14px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 5px rgba(255,255,255,0.5);
}

.category-song-list {
    width: 100%;
    max-width: 1200px;
    background: #1e1e2e;
    border-radius: 0 0 16px 16px;
    padding: 15px 20px 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
    margin-bottom: 20px;
}
.list-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.song-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}
.song-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: transform 0.2s;
    position: relative;
}
.song-item:hover {
    transform: scale(1.05);
}
.song-cover-wrap {
    width: 100%;
    aspect-ratio: 1/1;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}
.song-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: opacity 0.2s;
}
.song-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: rgba(255, 46, 99, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.2s;
    z-index: 10;
}
.song-item:hover .song-play-btn {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}
.song-item:hover .song-cover {
    opacity: 0.8;
}
.song-play-btn svg {
    width: 16px;
    height: 16px;
    fill: #fff;
    margin-left: 2px;
}
.song-listen-count {
    position: absolute;
    bottom: 6px;
    right: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
    background: #ff2e63;
    color: #fff;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    z-index: 11;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.song-title {
    font-size: 14px;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
    padding: 10px 0;
}
.pagination-btn {
    padding: 10px 28px;
    background: linear-gradient(135deg, rgba(255, 46, 99, 0.2), rgba(255, 46, 99, 0.1));
    border: 1px solid rgba(255, 46, 99, 0.5);
    border-radius: 50px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.5px;
}
.pagination-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, rgba(255, 46, 99, 0.8), rgba(255, 46, 99, 0.6));
    border-color: #ff2e63;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 46, 99, 0.3);
}
.pagination-btn:disabled {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.15);
    color: #666;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}
.pagination-info {
    font-size: 15px;
    color: #ddd;
    background: rgba(255,255,255,0.05);
    padding: 8px 20px;
    border-radius: 50px;
    min-width: 200px;
    text-align: center;
}

.footer {
    width: 100%;
    max-width: 1200px;
    text-align: center;
    padding: 15px 0;
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    margin-top: 10px;
    margin-bottom: 20px;
}
.footer a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
}
.footer a:hover {
    color: #fff;
}

@media (min-width: 768px) {
    .player-card {
        flex-direction: row;
        padding: 30px;
        gap: 30px;
    }
    .player-left {
        width: 280px;
        height: 280px;
    }
    .title {
        display: block;
        text-align: left;
    }
    .title-scroll-container {
        display: none;
    }
    .meta {
        text-align: left;
    }
    #spectrumCanvas {
        height: 180px !important;
    }
    .progress-bar {
        height: 11px;
    }
    .time-tooltip {
        font-size: 18px;
        bottom: -16px;
    }
    .control-container {
        flex-direction: row;
        align-items: center;
        margin-top: 5px;
    }
    .play-control-bar {
        gap: 30px;
    }
    .volume-control-bar {
        margin-left: auto;
    }
    .control-btn {
        width: 45px;
        height: 45px;
    }
    .play-btn {
        width: 70px;
        height: 70px;
    }
    .loop-btn {
        width: 45px;
        height: 45px;
    }
    .volume-slider {
        width: 250px;
        height: 8px;
    }
    .category-song-list {
        padding: 15px 25px 25px;
    }
    .list-title {
        font-size: 20px;
    }
    .song-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 20px;
    }
    .song-play-btn {
        width: 50px;
        height: 50px;
    }
    .song-play-btn svg {
        width: 20px;
        height: 20px;
    }
    .song-listen-count {
        font-size: 13px;
        padding: 3px 10px;
        border-radius: 14px;
    }
    .song-title {
        font-size: 15px;
    }
    .pagination-btn {
        padding: 12px 32px;
        font-size: 16px;
    }
    .pagination-info {
        font-size: 16px;
        min-width: 220px;
    }
    .footer {
        font-size: 15px;
    }
    .control-icon {
        width: 24px;
        height: 24px;
    }
    .play-btn .control-icon {
        width: 32px;
        height: 32px;
    }
    .loop-icon {
        width: 22px;
        height: 22px;
    }
    .home-icon {
        top: 25px;
        left: 25px;
        width: 45px;
        height: 45px;
    }
    .home-icon svg {
        width: 26px;
        height: 26px;
    }
}

@media (max-width: 767px) {
    .control-container {
        flex-direction: column;
        gap: 15px;
        margin-top: 12px;
    }
    .play-control-bar {
        justify-content: center;
        width: 100%;
    }
    .volume-control-bar {
        display: none !important;
    }
    .control-icon {
        width: 18px;
        height: 18px;
    }
    .play-btn .control-icon {
        width: 24px;
        height: 24px;
    }
    .loop-icon {
        width: 18px;
        height: 18px;
    }
    .pagination {
        gap: 10px;
        flex-wrap: wrap;
    }
    .pagination-btn {
        padding: 8px 20px;
        font-size: 14px;
    }
    .pagination-info {
        font-size: 14px;
        padding: 6px 15px;
        margin-top: 10px;
        width: 100%;
    }
    .home-icon {
        top: 15px;
        left: 15px;
        width: 38px;
        height: 38px;
    }
    .home-icon svg {
        width: 22px;
        height: 22px;
    }
    .share-btn {
        top: 15px;
        right: 15px;
        width: 38px;
        height: 38px;
    }
    .title-scroll-container {
        top: 15px;
        left: 65px;
        right: 65px;
        height: 38px;
        font-size: 18px;
    }
    #spectrumCanvas {
        height: 120px !important;
    }
    .player-card {
        flex-direction: column;
        padding-top: 60px;
        gap: 8px !important;
    }
    .title {
        display: none;
    }
    .meta-line1 {
        display: none;
    }
    .format-text {
        display: none !important;
    }
    .listen-text {
        display: none !important;
    }
    .meta-line2 .format-label,
    .meta-line2 .listen-count {
        display: none;
    }
    .player-right {
        margin-top: -10px !important;
        gap: 8px !important;
    }
    .player-left {
        width: 260px;
        height: 260px;
    }
    .song-listen-count {
        padding: 2px 6px !important;
    }
}

@media (min-width: 1024px) {
    body {
        padding: 20px;
    }
    .home-icon {
        top: 30px;
        left: 30px;
        width: 50px;
        height: 50px;
    }
    .home-icon svg {
        width: 28px;
        height: 28px;
    }
}