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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    height: 100vh;
    overflow: hidden;
    color: white;
    position: relative;
}

/* 启动页面样式 */
.start-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    transition: opacity 1s ease-in-out;
}

.start-page.fade-out {
    opacity: 0;
    pointer-events: none;
}

.start-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: #78b6fe;
}

.start-bg-image {
    display: none;
}

.start-bg-overlay {
    display: none;
}

.start-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 60px;
}

.start-play-btn {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: white;
    border: none;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 40px rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    position: relative;
}

.start-play-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 25px 50px rgba(255, 255, 255, 0.4);
}

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

/* 新的加载器动画样式 */
.container-loader {
    --size: 300px;
    width: var(--size);
    height: var(--size);
    position: relative;
    zoom: 0.5;
    transform: translateX(-50%);
}

.container-loader .ball {
    position: absolute;
    width: calc(var(--size) + var(--i));
    height: calc(var(--size) + var(--i));
    background-color: var(--color);
    border-radius: 50%;
    animation: move 5s linear infinite;
    transform-origin: var(--size);
    mix-blend-mode: hard-light;
    animation-duration: var(--d);
    filter: blur(58px);
}

.container-loader .ball:nth-child(even) {
    animation-direction: reverse;
}

@keyframes move {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(359deg);
    }
}

/* 倒计时样式 */
.countdown {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border: 3px solid rgba(255, 255, 255, 0.3);
    animation: pulse-countdown 1s ease-in-out infinite;
}

.countdown span {
    font-size: 4rem;
    font-weight: 700;
    color: #4fc3f7;
    text-shadow: 0 0 20px rgba(79, 195, 247, 0.6);
}

@keyframes pulse-countdown {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(79, 195, 247, 0.4); }
    50% { transform: scale(1.05); box-shadow: 0 0 0 20px rgba(79, 195, 247, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(79, 195, 247, 0); }
}

/* 主播放页面样式 */
.main-page {
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.main-page.show {
    opacity: 1;
}

/* 背景模糊效果 */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(20px) brightness(0.4);
    transform: scale(1.1);
}

.bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.6) 0%, 
        rgba(0, 0, 0, 0.3) 50%, 
        rgba(0, 0, 0, 0.7) 100%);
}

/* 主容器 */
.container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    padding: 40px;
    justify-content: space-between;
    backdrop-filter: blur(10px);
    overflow: hidden;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        height: 100vh;
        padding: 20px;
        overflow: hidden;
    }
    
    body {
        height: 100vh;
        overflow: hidden;
        position: fixed;
        width: 100%;
    }
    
    html {
        height: 100vh;
        overflow: hidden;
    }
}

/* 歌曲信息区域 */
.song-info {
    margin-bottom: 20px;
}

.song-details {
    display: flex;
    align-items: center;
    gap: 20px;
}

.album-cover {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
    flex-shrink: 0;
}

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

.text-info {
    flex: 1;
}

.song-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #fff, #a0a0a0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.artist {
    font-size: 1.0rem;
    color: #b0b0b0;
    margin: 0;
}

/* 手机端响应式调整 */
@media (max-width: 768px) {
    .song-details {
        gap: 15px;
    }
    
    .album-cover {
        width: 60px;
        height: 60px;
    }
    
    .song-title {
        font-size: 1.8rem;
        margin-bottom: 5px;
    }
    
    .artist {
        font-size: 0.9rem;
    }
}

.song-meta {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.song-meta p {
    font-size: 0.9rem;
    color: #888;
}

/* 歌词显示区域 */
.lyrics-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -30px 0 20px 0;
    min-height: 0;
}

.lyrics {
    text-align: center;
    max-height: 450px;
    overflow: hidden;
    padding: 20px;
    width: 100%;
    max-width: 800px;
}

/* 手机端歌词区域调整 */
@media (max-width: 768px) {
    .lyrics-container {
        margin: -20px 0 15px 0;
        flex: 1;
        min-height: 200px;
    }
    
    .lyrics {
        max-height: 300px;
        padding: 15px;
    }
    
    .lyric-line {
        font-size: 1.0rem;
        line-height: 1.8;
        margin: 8px 0;
    }
    
    .lyric-line.active {
        font-size: 1.2rem;
    }
}

.lyric-line {
    font-size: 1.2rem;
    line-height: 2;
    margin: 10px 0;
    opacity: 0.6;
    transition: all 0.3s ease;
    cursor: pointer;
}

.lyric-line.active {
    opacity: 1;
    font-size: 1.4rem;
    color: #4fc3f7;
    text-shadow: 0 0 10px rgba(79, 195, 247, 0.5);
    transform: scale(1.05);
}

.lyric-line.passed {
    opacity: 0.4;
}

/* 播放控制区域 */
.player-controls {
    padding: 25px;
    flex-shrink: 0;
}

/* 手机端播放控制区域调整 */
@media (max-width: 768px) {
    .player-controls {
        padding: 15px;
    }
}

.progress-container {
    margin-bottom: 20px;
}

.time-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: #b0b0b0;
}

.progress-bar-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}

.progress-bar {
    position: relative;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    overflow: hidden;
    flex: 1;
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, #4fc3f7, #29b6f6);
    border-radius: 3px;
    transition: width 0.1s ease;
}

.progress-slider {
    position: absolute;
    top: -8px;
    left: 0;
    width: 100%;
    height: 22px;
    opacity: 0;
    cursor: pointer;
}

.control-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.control-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.play-btn {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #4fc3f7, #29b6f6);
}

.play-btn:hover {
    background: linear-gradient(135deg, #29b6f6, #0288d1);
    box-shadow: 0 10px 20px rgba(79, 195, 247, 0.4);
}

.volume-control {
    display: flex;
    align-items: center;
    position: relative;
    flex-shrink: 0;
}

.volume-icon {
    cursor: pointer;
    transition: color 0.3s ease;
}

.volume-icon:hover {
    color: #4fc3f7;
}

.volume-slider-container {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    padding: 15px 10px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: none;
    z-index: 1000;
    align-items: center;
    flex-direction: column;
    gap: 5px;
}

.volume-display {
    color: #4fc3f7;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    min-width: 30px;
}

.volume-slider-container.show {
    display: flex;
}

.volume-slider {
    width: 4px;
    height: 100px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
    writing-mode: bt-lr;
    -webkit-appearance: slider-vertical;
}

.volume-slider::-webkit-slider-thumb {
    appearance: none;
    width: 16px;
    height: 16px;
    background: #4fc3f7;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.volume-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: #4fc3f7;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 20px;
    }
    
    .song-info {
        flex-direction: column;
        text-align: center;
    }
    
    .album-cover {
        width: 100px;
        height: 100px;
    }
    
    .song-title {
        font-size: 1.5rem;
    }
    
    .control-buttons {
        gap: 15px;
    }
    
    .control-btn {
        width: 45px;
        height: 45px;
    }
    
    .play-btn {
        width: 60px;
        height: 60px;
    }
}

/* 动画效果 */

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}