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

body {
    font-family: 'Arial', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 100%);
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
    overflow-y: scroll;
    overflow-x: hidden;
}

/* 导航栏样式 */
.navbar {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e8e 100%);
    padding: 15px 0;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.nav-brand {
    font-size: 1.8em;
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.nav-stats {
    display: flex;
    gap: 20px;
}

.stat-item {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    color: white;
    font-weight: bold;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 主容器 */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 视频区域 */
.video-section {
    margin-bottom: 30px;
}

.video-container {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.video-wrapper {
    position: relative;
    display: inline-block;
    max-width: 800px;
    width: 100%;
}

#player {
    width: 100%;
    height: auto;
    max-height: 70vh;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: block;
    background: #000;
}

/* 首次播放提示 */
.play-tip {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    z-index: 20;
}

.play-tip.hidden {
    display: none;
}

.tip-content {
    text-align: center;
    color: white;
    padding: 30px;
}

.tip-icon {
    font-size: 3em;
    margin-bottom: 20px;
}

.tip-text {
    font-size: 1.3em;
    margin-bottom: 25px;
    font-weight: bold;
}

.tip-btn {
    background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

.tip-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.6);
}

/* 悬浮按钮样式 */
.floating-btn {
    position: absolute;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: bold;
    z-index: 15;
}

.floating-next {
    top: 15px;
    right: 15px;
    background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
    color: white;
    padding: 12px 20px;
    font-size: 1em;
}

.floating-next:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.5);
    background: linear-gradient(45deg, #ff5252, #ff7979);
}

.floating-next:active {
    transform: translateY(0) scale(0.95);
}

.btn-icon {
    font-size: 1.2em;
}

.btn-text {
    white-space: nowrap;
}

/* 视频信息 */
.video-info {
    margin-top: 15px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 1.1em;
    color: #666;
}

/* 控制按钮区域 */
.controls-section {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    min-width: 150px;
}

.btn-switch {
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
    color: white;
}

.btn-switch:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(68, 160, 141, 0.4);
}

.btn-switch.active {
    background: linear-gradient(45deg, #44a08d, #4ecdc4);
    transform: scale(0.98);
}

.btn-mute {
    background: linear-gradient(45deg, #a8a8a8, #7a7a7a);
    color: white;
}

.btn-mute:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(122, 122, 122, 0.4);
}

/* 加载动画 */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.loading-overlay.show {
    opacity: 1;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid #ff6b6b;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 页脚 */
.footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px 15px 0 0;
    color: #666;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-stats {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }
    
    .stat-item {
        text-align: center;
    }
    
    .main-container {
        padding: 10px;
    }
    
    .video-container {
        padding: 15px;
    }
    
    .floating-next {
        padding: 10px 16px;
        font-size: 0.9em;
    }
    
    .btn-text {
        display: none;
    }
    
    .controls-section {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .tip-content {
        padding: 20px;
    }
    
    .tip-icon {
        font-size: 2.5em;
    }
    
    .tip-text {
        font-size: 1.1em;
    }
}

@media (max-width: 480px) {
    .nav-brand {
        font-size: 1.5em;
    }
    
    .stat-item {
        font-size: 0.9em;
        padding: 6px 12px;
    }
    
    .floating-next {
        top: 10px;
        right: 10px;
        padding: 8px;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 1em;
    }
    
    .video-info {
        font-size: 1em;
    }
}

/* 大屏幕优化 */
@media (min-width: 1200px) {
    .video-wrapper {
        max-width: 900px;
    }
    
    #player {
        max-height: 75vh;
    }
}