/* 加载等待页面样式 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* 加载页面容器 */
.loading-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-container.hide {
    opacity: 0;
    visibility: hidden;
}

/* 加载动画圆圈 */
.loading-spinner {
    width: 60px;
    height: 60px;
    position: relative;
}

.loading-spinner::before,
.loading-spinner::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    border: 3px solid transparent;
}

.loading-spinner::before {
    width: 100%;
    height: 100%;
    border-top-color: #23ade5;
    border-right-color: #23ade5;
    animation: spin 1s linear infinite;
}

.loading-spinner::after {
    width: 70%;
    height: 70%;
    top: 15%;
    left: 15%;
    border-bottom-color: #e94560;
    border-left-color: #e94560;
    animation: spin 0.8s linear infinite reverse;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* 加载文字 */
.loading-text {
    margin-top: 30px;
    color: #fff;
    font-size: 16px;
    letter-spacing: 2px;
    animation: pulse 1.5s ease-in-out infinite;
}

.loading-text::after {
    content: '';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

@keyframes dots {
    0% {
        content: '';
    }
    25% {
        content: '.';
    }
    50% {
        content: '..';
    }
    75% {
        content: '...';
    }
    100% {
        content: '';
    }
}

/* 加载进度 */
.loading-progress {
    margin-top: 20px;
    width: 200px;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.loading-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #23ade5, #e94560);
    border-radius: 3px;
    animation: progress 2s ease-in-out infinite;
}

@keyframes progress {
    0% {
        width: 0%;
        transform: translateX(-100%);
    }
    50% {
        width: 100%;
        transform: translateX(0%);
    }
    100% {
        width: 100%;
        transform: translateX(100%);
    }
}

/* 提示信息 */
.loading-tip {
    margin-top: 40px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    text-align: center;
    max-width: 300px;
    line-height: 1.6;
}

/* 错误提示 */
.loading-error {
    color: #e94560;
    font-size: 14px;
    text-align: center;
    max-width: 400px;
    padding: 0 20px;
}

.loading-error-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

/* 播放器容器 */
.artplayer-app {
    width: 100%;
    height: 100%;
    display: none;
}

.artplayer-app.show {
    display: block;
}

/* 播放提示框 */
.play-hint {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    max-width: calc(100vw - 40px);
}

.play-hint.show {
    opacity: 1;
    transform: translateX(0);
}

.play-hint-icon {
    width: 24px;
    height: 24px;
    background: #23ade5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.play-hint-icon::before {
    content: '';
    width: 0;
    height: 0;
    border-left: 8px solid #fff;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    margin-left: 2px;
}

.play-hint-text {
    line-height: 1.4;
    word-wrap: break-word;
}

/* 响应式调整 */
@media (max-width: 480px) {
    .play-hint {
        bottom: 15px;
        left: 15px;
        padding: 10px 16px;
        font-size: 13px;
        max-width: calc(100vw - 30px);
    }
    
    .play-hint-icon {
        width: 20px;
        height: 20px;
    }
    
    .play-hint-icon::before {
        border-left-width: 6px;
        border-top-width: 4px;
        border-bottom-width: 4px;
    }
}
