:root {
    --primary-bg: #f5f5f3;
    --card-bg: #ffffff;
    --text-color: #333333;
    --accent-color: #e8927c;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--primary-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.player-container {
    width: 100%;
    max-width: 375px;
    padding: 20px;
}

.card {
    background: var(--card-bg);
    border-radius: 24px;
    padding: 30px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    transform: translateX(0);
    touch-action: pan-y pinch-zoom; /* 允许垂直滚动和缩放，但阻止水平滚动 */
    user-select: none; /* 防止文本选择 */
}

.decoration {
    position: absolute;
    bottom: -20px;
    left: -20px;
    width: 150px;
    height: 150px;
    background-image: url('zhu.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: bottom left;
    opacity: 0.1;
    pointer-events: none; /* 确保不会影响点击事件 */
    z-index: 0;
}

.decoration-right {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 150px;
    height: 150px;
    background-image: url('zhu.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: top right;
    opacity: 0.1;
    pointer-events: none;
    z-index: 0;
    transform: rotate(180deg); /* 旋转图片使其朝向合适的方向 */
}

/* 确保其他内容在装饰层之上 */
.music-info,
.controls,
.header {
    position: relative;
    z-index: 1;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.time-info {
    color: #999;
    font-size: 14px;
}

.date-info {
    color: #999;
    font-size: 14px;
}

.cover {
    width: 200px;
    height: 200px;
    margin: 0 auto 20px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

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

.song-name {
    font-size: 24px;
    color: var(--text-color);
    text-align: center;
    margin-bottom: 0;
}

.artist-name {
    font-size: 14px;
    color: #999;
    text-align: center;
    margin-bottom: 15px;
}

.time-range {
    display: flex;
    justify-content: space-between;
    color: #999;
    font-size: 12px;
    margin-bottom: 10px;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: #eee;
    border-radius: 2px;
    margin-bottom: 30px;
    cursor: pointer;
}

.progress {
    width: 0%;
    height: 100%;
    background: var(--accent-color);
    border-radius: 2px;
    transition: width 0.1s linear;
}

.controls {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 20px;
}

.control-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    font-size: 18px;
    transition: all 0.3s ease;
}

.control-btn:hover {
    color: var(--accent-color);
    transform: scale(1.1);
}

.control-btn#playBtn {
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    border-radius: 50%;
    color: white;
}

.control-btn#playBtn:hover {
    background: #d67c68;
    transform: scale(1.1);
}

.hitokoto {
    margin-top: 30px;
    text-align: center;
    color: #999;
    position: relative;
    z-index: 1;
}

.hitokoto-text,
.hitokoto-from {
    transition: opacity 0.5s ease-in-out;
}

.hitokoto-text {
    font-size: 10px;
    line-height: 1.6;
    margin-bottom: 8px;
    font-style: italic;
}

.hitokoto-from {
    font-size: 7px;
    opacity: 0.8;
} 