/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans Tibetan', 'Helvetica Neue', Arial, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: #faf8f3;
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* 主内容区域 */
.main-content {
    width: 100%;
    max-width: 600px;
}

/* 播放器主体 */
.player-section {
    background: linear-gradient(145deg, #ffffff 0%, #fefefe 100%);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 
        0 20px 60px -15px rgba(0, 0, 0, 0.15),
        0 10px 30px -10px rgba(0, 0, 0, 0.1),
        0 2px 10px rgba(0, 0, 0, 0.08),
        inset 0 2px 4px rgba(255, 255, 255, 0.95),
        inset 0 -2px 4px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    position: relative;
}

/* 专辑封面 */
.album-cover-container {
    margin: 20px 0;
}

.album-cover {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 
        0 15px 50px rgba(0, 0, 0, 0.25),
        0 5px 20px rgba(0, 0, 0, 0.15),
        inset 0 2px 10px rgba(255, 255, 255, 0.1);
    position: relative;
    animation: rotate 20s linear infinite;
}

.album-cover.rotating-paused {
    animation-play-state: paused;
}

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

.cover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, transparent 30%, rgba(0, 0, 0, 0.2) 100%);
    pointer-events: none;
}

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

/* 歌曲信息 */
.song-info {
    text-align: center;
    max-width: 400px;
}

.song-title {
    font-size: 28px;
    color: #222;
    margin-bottom: 10px;
    font-weight: 600;
}

.artist-name {
    font-size: 18px;
    color: #666;
    margin-bottom: 5px;
}

.album-name {
    font-size: 14px;
    color: #999;
    display: none;
}

/* 进度条 */
.progress-container {
    width: 100%;
    max-width: 500px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.time {
    font-size: 14px;
    color: #666;
    min-width: 45px;
}

.progress-bar {
    flex: 1;
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    position: relative;
    cursor: pointer;
    overflow: visible;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4caf50, #2e7d32);
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s linear;
}

.progress-handle {
    width: 14px;
    height: 14px;
    background: #4caf50;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    left: 0%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.2s;
}

.progress-bar:hover .progress-handle {
    opacity: 1;
}

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

.control-btn {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover {
    transform: scale(1.05);
    border-color: #4caf50;
    color: #4caf50;
}

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

.play-btn {
    width: 70px;
    height: 70px;
    font-size: 26px;
    background: linear-gradient(135deg, #4caf50, #2e7d32);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
}

.play-btn:hover {
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.5);
    color: white;
}

.prev-btn, .next-btn {
    width: 50px;
    height: 50px;
    font-size: 20px;
}

.skip-btn, .like-btn {
    width: 45px;
    height: 45px;
    font-size: 18px;
}

.like-btn.liked {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
    border: none;
}

.like-btn.liked i {
    animation: heartBeat 0.5s;
}

@keyframes heartBeat {
    0%, 100% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.3);
    }
    50% {
        transform: scale(1);
    }
    75% {
        transform: scale(1.2);
    }
}

/* 署名 */
.signature {
    font-size: 10px;
    color: #999;
    text-align: center;
    letter-spacing: 0.5px;
    padding: 10px 0;
    font-weight: 500;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    .album-cover {
        width: 220px;
        height: 220px;
    }

    .song-title {
        font-size: 22px;
    }

    .play-btn {
        width: 60px;
        height: 60px;
    }
}

