/* 随机视频网站样式 - 浅蓝色风格 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 50%, #90caf9 100%);
    min-height: 100vh;
    color: #1976d2;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 头部样式 */
.header {
    text-align: center;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(25, 118, 210, 0.2);
    backdrop-filter: blur(10px);
}

.header h1 {
    font-size: 2.5em;
    margin-bottom: 15px;
    color: #1565c0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.stats span {
    background: linear-gradient(45deg, #42a5f5, #1976d2);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(25, 118, 210, 0.3);
    transition: transform 0.3s ease;
}

.stats span:hover {
    transform: translateY(-2px);
}

/* 主内容区域 */
.main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

/* 视频容器 */
.video-container {
    width: 100%;
    max-width: 800px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(25, 118, 210, 0.2);
    text-align: center;
    backdrop-filter: blur(10px);
    position: relative;
}

.video-wrapper {
    position: relative;
    width: 100%;
    border-radius: 15px;
    overflow: hidden;
    background: #000;
}

video {
    width: 100%;
    height: auto;
    max-height: 70vh;
    display: block;
}

/* 视频加载覆盖层 */
.video-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    z-index: 10;
    border-radius: 15px;
}

.loading-text {
    font-size: 1.2em;
    margin-bottom: 20px;
    color: #bbdefb;
    font-weight: bold;
}

/* 美化加载动画 */
.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #42a5f5;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

.loading-dots {
    display: flex;
    gap: 5px;
}

.loading-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #42a5f5;
    animation: bounce 1.4s infinite ease-in-out;
}

.loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.loading-dots span:nth-child(2) { animation-delay: -0.16s; }

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

@keyframes bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

.video-info {
    margin-top: 15px;
}

.video-info h3 {
    color: #1565c0;
    font-size: 1.3em;
    margin-bottom: 10px;
}

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

.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-primary {
    background: linear-gradient(45deg, #42a5f5, #1976d2);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(25, 118, 210, 0.4);
}

.btn-secondary {
    background: linear-gradient(45deg, #78909c, #546e7a);
    color: white;
}

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

.btn-like {
    background: linear-gradient(45deg, #f48fb1, #e91e63);
    color: white;
}

.btn-like:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(233, 30, 99, 0.4);
}

.btn-like.liked {
    animation: likeAnimation 0.6s ease;
}

.btn-info {
    background: linear-gradient(45deg, #26c6da, #00acc1);
    color: white;
}

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

@keyframes likeAnimation {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* 用户点赞列表样式 */
.user-likes-container {
    width: 100%;
    max-width: 800px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 8px 32px rgba(25, 118, 210, 0.2);
    backdrop-filter: blur(10px);
}

.user-likes-container h3 {
    color: #1565c0;
    font-size: 1.5em;
    margin-bottom: 20px;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.user-likes-list {
    max-height: 400px;
    overflow-y: auto;
    margin: 20px 0;
    padding: 10px;
    background: rgba(227, 242, 253, 0.5);
    border-radius: 10px;
    border: 2px dashed #90caf9;
}

.user-likes-list ul {
    list-style: none;
}

.like-item {
    padding: 12px 15px;
    margin: 8px 0;
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    border-radius: 10px;
    border-left: 4px solid #1976d2;
    color: #1565c0;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(25, 118, 210, 0.1);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.like-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(25, 118, 210, 0.2);
    background: linear-gradient(135deg, #bbdefb, #90caf9);
}

.like-time {
    font-size: 0.85em;
    color: #546e7a;
    background: rgba(255, 255, 255, 0.7);
    padding: 4px 8px;
    border-radius: 5px;
    font-weight: normal;
}

.empty-message {
    text-align: center;
    color: #78909c;
    font-style: italic;
    padding: 20px;
}

/* 底部样式 */
.footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(25, 118, 210, 0.1);
}

.footer p {
    color: #1976d2;
    font-weight: bold;
}

/* 消息提示 */
.message {
    background: linear-gradient(135deg, #c8e6c9, #a5d6a7);
    color: #2e7d32;
    padding: 12px 20px;
    border-radius: 10px;
    margin: 15px 0;
    text-align: center;
    border: 2px solid #4caf50;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.2);
    animation: slideIn 0.5s ease;
}

.error {
    color: #f44336;
    background: rgba(244, 67, 54, 0.1);
    padding: 10px;
    border-radius: 5px;
    margin: 10px 0;
    text-align: center;
    border: 1px solid #f44336;
    font-weight: bold;
}

@keyframes slideIn {
    0% { transform: translateY(-20px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .header h1 {
        font-size: 2em;
    }
    
    .stats {
        gap: 15px;
    }
    
    .stats span {
        padding: 8px 16px;
        font-size: 0.9em;
    }
    
    .video-container {
        padding: 15px;
    }
    
    .controls {
        gap: 10px;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 1em;
        min-width: 120px;
    }
    
    .user-likes-container {
        padding: 20px;
    }
    
    .user-likes-list {
        max-height: 300px;
    }
    
    .like-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 1.8em;
    }
    
    .stats {
        flex-direction: column;
        align-items: center;
    }
    
    .stats span {
        width: 100%;
        text-align: center;
    }
    
    .controls {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
    }
}