/* Project Miniflix - 简约现代主题样式文件 */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: 100vh;
    color: #334155;
    line-height: 1.6;
}

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

/* 页面标题 */
.page-title {
    text-align: center;
    color: #1e293b;
    margin-bottom: 48px;
    font-size: 2.75rem;
    font-weight: 700;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.025em;
}

/* 视频网格 */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

/* 视频卡片 */
.video-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    box-shadow: 
        0 1px 3px rgba(0, 0, 0, 0.1),
        0 1px 2px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    border: 1px solid rgba(226, 232, 240, 0.8);
    backdrop-filter: blur(10px);
}

.video-card:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 10px 25px rgba(0, 0, 0, 0.1),
        0 4px 10px rgba(0, 0, 0, 0.05);
    text-decoration: none;
    color: inherit;
    border-color: rgba(16, 185, 129, 0.2);
}

/* 封面图片统一处理 */
.video-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.2s ease;
}

.video-card:hover .video-thumbnail {
    transform: scale(1.02);
}

/* 卡片内容 */
.video-info {
    padding: 24px;
}

.video-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1e293b;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.video-duration {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.75);
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    backdrop-filter: blur(4px);
}

.video-description {
    color: #64748b;
    font-size: 0.925rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 封面容器 */
.thumbnail-container {
    position: relative;
    overflow: hidden;
    background: #f1f5f9;
}

/* 播放器页面样式 */
.player-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 
        0 4px 6px rgba(0, 0, 0, 0.05),
        0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 32px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    backdrop-filter: blur(10px);
}

.video-player {
    width: 100%;
    height: 400px;
    background: #000;
}

.video-details {
    padding: 32px;
}

.video-details h1 {
    color: #1e293b;
    margin-bottom: 16px;
    font-size: 1.875rem;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.video-details p {
    color: #64748b;
    line-height: 1.6;
    font-size: 1rem;
}

/* 返回按钮 */
.back-button {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    font-weight: 600;
    font-size: 0.925rem;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
}

.back-button:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    text-decoration: none;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(16, 185, 129, 0.3);
}

/* 错误信息 */
.error-message {
    text-align: center;
    background: rgba(254, 242, 242, 0.95);
    color: #dc2626;
    padding: 24px;
    border-radius: 12px;
    margin: 24px 0;
    border: 1px solid rgba(252, 165, 165, 0.3);
    backdrop-filter: blur(10px);
}

.error-message h3 {
    margin-bottom: 12px;
    font-size: 1.5rem;
    font-weight: 600;
}

.error-message p {
    margin-bottom: 16px;
    line-height: 1.5;
    color: #991b1b;
}

/* 错误操作按钮 */
.error-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.retry-button, .refresh-button {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.925rem;
    font-weight: 600;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.retry-button:hover, .refresh-button:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
}

/* 加载状态 */
.loading {
    text-align: center;
    color: #64748b;
    font-size: 1.125rem;
    font-weight: 500;
    padding: 48px 0;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    margin: 24px 0;
    backdrop-filter: blur(10px);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 24px 16px;
    }

    .page-title {
        font-size: 2.25rem;
        margin-bottom: 32px;
    }

    .video-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .video-player {
        height: 250px;
    }

    .video-details {
        padding: 24px;
    }

    .video-details h1 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .error-actions {
        flex-direction: column;
    }

    .retry-button, .refresh-button {
        width: 100%;
        justify-content: center;
    }

    .video-info {
        padding: 20px;
    }

    .page-title {
        font-size: 2rem;
    }
} 