/* Here is your custom css styles. */

/* ==================== 网易云音乐风格播放器样式 ==================== */

.netease-music-player {
    margin: 20px 30px;
    width: calc(100% - 60px);
    background: linear-gradient(180deg, #667eea 0%, #ffffff 100%);
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12), 0 8px 20px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    overflow: hidden;
    font-family: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    transition: background 0.8s ease-in-out;
    position: relative;
    box-sizing: border-box;
}

/* 主播放区域：封面 + 信息控制 */
.player-main {
    display: flex;
    padding: 20px 25px;
    background: transparent;
    position: relative;
    min-height: 180px;
}

/* 封面容器 */
.cover-container {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 25px;
}

/* 唱片机指针 */
.tone-arm {
    position: absolute;
    top: 5px;
    left: 120px;
    width: 100px;
    height: 120px;
    transform-origin: top left;
    transform: rotate(-25deg);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    pointer-events: none;
}

.tone-arm.playing {
    transform: rotate(-10deg);
}

.tone-arm-body {
    width: 6px;
    height: 80px;
    background: linear-gradient(135deg, #666 0%, #999 50%, #666 100%);
    border-radius: 3px;
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.3);
}

.tone-arm-head {
    position: absolute;
    bottom: 0;
    left: -9px;
    width: 24px;
    height: 16px;
    background: linear-gradient(135deg, #888 0%, #ccc 50%, #888 100%);
    border-radius: 6px 10px 6px 6px;
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.3);
}

.tone-arm-needle {
    position: absolute;
    right: -12px;
    bottom: 6px;
    width: 16px;
    height: 3px;
    background: #333;
    border-radius: 2px;
    transform: rotate(-30deg);
}

.cover-wrapper {
    position: relative;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.6) 100%);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), inset 0 2px 8px rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: rotatePaused 20s linear infinite;
    animation-play-state: paused;
}

.cover-wrapper.playing {
    animation-play-state: running;
}

@keyframes rotatePaused {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.cover-image {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.4);
}

.cover-hole {
    position: absolute;
    width: 28px;
    height: 28px;
    background: radial-gradient(circle, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 50%;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.6);
}

/* 信息和控制区域 */
.player-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: 5px 0;
    gap: 15px;
}

/* 歌曲信息 */
.song-info {
    margin-bottom: 0;
}

.song-name {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.song-artist {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* 进度条 */
.progress-container {
    display: flex;
    align-items: center;
    margin-bottom: 0;
    color: #fff;
    font-size: 11px;
}

.time-current,
.time-total {
    min-width: 45px;
    font-size: 12px;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.time-current {
    text-align: right;
    margin-right: 10px;
}

.time-total {
    text-align: left;
    margin-left: 10px;
}

.progress-bar {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
}

.progress-played {
    height: 100%;
    background: #fff;
    border-radius: 2px;
    position: relative;
    width: 0%;
    transition: width 0.1s linear;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.progress-dot {
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    cursor: grab;
}

.progress-dot:active {
    cursor: grabbing;
}

/* 控制按钮 */
.controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.control-btn {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 14px;
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1);
}

.control-btn:active {
    transform: scale(0.95);
}

.play-btn {
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.play-btn:hover {
    background: rgba(0, 0, 0, 0.95);
    transform: scale(1.12);
}

/* 音量控制 */
.volume-control {
    position: relative;
    display: flex;
    align-items: center;
}

.volume-slider {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    padding: 15px 10px;
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.volume-control:hover .volume-slider {
    opacity: 1;
    visibility: visible;
}

.volume-bar {
    width: 4px;
    height: 100px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
}

.volume-current {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: #fff;
    border-radius: 2px;
    height: 70%;
}

.volume-dot {
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* 播放列表 */
.playlist-container {
    background: rgba(255, 255, 255, 0.95);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
}

.playlist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
    background: rgba(0, 0, 0, 0.02);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: background 0.3s ease;
}

.playlist-header:hover {
    background: rgba(0, 0, 0, 0.04);
}

.playlist-header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

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

.playlist-count {
    font-size: 13px;
    color: #999;
}

.playlist-toggle {
    background: none;
    border: none;
    color: #999;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 5px;
}

.playlist-toggle:hover {
    color: #667eea;
}

.playlist-content {
    max-height: 0;
    overflow-y: auto;
    padding: 0;
    transition: max-height 0.4s ease-in-out;
}

.playlist-container.expanded .playlist-content {
    max-height: 300px;
}

.playlist-content::-webkit-scrollbar {
    width: 6px;
}

.playlist-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.02);
}

.playlist-content::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 3px;
}

.playlist-content::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.25);
}

.playlist-item {
    display: flex;
    align-items: center;
    padding: 12px 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.playlist-item:hover {
    background: rgba(102, 126, 234, 0.08);
}

.playlist-item.active {
    background: rgba(102, 126, 234, 0.12);
}

.playlist-item.active .item-title {
    color: #667eea;
    font-weight: 600;
}

.item-index {
    min-width: 30px;
    font-size: 14px;
    color: #999;
}

.item-info {
    flex: 1;
    min-width: 0;
    margin: 0 15px;
}

.item-title {
    font-size: 14px;
    color: #333;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.item-artist {
    font-size: 12px;
    color: #999;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.item-duration {
    font-size: 12px;
    color: #999;
}

/* 响应式设计 */
@media only screen and (max-width: 768px) {
    .player-main {
        flex-direction: column;
        align-items: center;
        padding: 15px 20px;
        min-height: auto;
    }

    .cover-container {
        margin-right: 0;
        margin-bottom: 15px;
    }

    .cover-wrapper {
        width: 120px;
        height: 120px;
    }

    .cover-image {
        width: 95px;
        height: 95px;
    }

    .cover-hole {
        width: 24px;
        height: 24px;
    }

    .tone-arm {
        top: 0;
        left: 100px;
        width: 80px;
        height: 100px;
    }

    .tone-arm-body {
        height: 65px;
    }

    .player-info {
        width: 100%;
        gap: 10px;
    }

    .song-name {
        font-size: 18px;
        text-align: center;
    }

    .song-artist {
        text-align: center;
        font-size: 12px;
    }

    .controls {
        justify-content: center;
        gap: 10px;
    }

    .control-btn {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }

    .play-btn {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
}

@media only screen and (max-width: 480px) {
    .player-main {
        padding: 12px 15px;
    }

    .cover-wrapper {
        width: 100px;
        height: 100px;
    }

    .cover-image {
        width: 78px;
        height: 78px;
    }

    .cover-hole {
        width: 20px;
        height: 20px;
    }

    .tone-arm {
        left: 80px;
        width: 70px;
        height: 85px;
    }

    .tone-arm-body {
        height: 55px;
    }

    .song-name {
        font-size: 16px;
    }

    .song-artist {
        font-size: 11px;
    }

    .control-btn {
        width: 30px;
        height: 30px;
        font-size: 11px;
    }

    .play-btn {
        width: 36px;
        height: 36px;
        font-size: 13px;
    }

    .controls {
        gap: 8px;
    }

    .progress-container {
        font-size: 10px;
    }
}
