/* ===== 赛事页面样式 ===== */

.events-page {
    background: var(--sm-surface, #1a1a1a);
    color: var(--sm-text, #fff);
    min-height: 100vh;
}

/* 🏆 ===== 赛事数据统计区域已移除（无对应HTML元素） ===== */



/* 🏆 ===== 热门赛事排行榜样式已移至rank-event组件 ===== */

/* 🎨 ===== 特色赛事样式已删除 ===== */

/* 🚀 ===== 快速操作面板样式已移至quick-actions-events组件 ===== */

/* 📱 ===== 加载动画 ===== */
.loading-placeholder {
    text-align: center;
    padding: 80px 20px;
    color: rgba(255, 255, 255, 0.6);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-left: 3px solid #DC143C;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

/* 🎭 ===== 动画效果 ===== */

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

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

/* shimmer动画已删除 */

/* ===== 主要内容区域 ===== */
.main-content {
    padding: 0 0 80px;
}

/* ===== 详情内容区域 ===== */
.details-content {
    padding: 0 0 80px;
}

.details-content .container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0;
}

/* ===== 赛事双栏布局 ===== */
.events-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

/* 左侧主内容区域 */
.events-main-content {
    min-width: 0; /* 防止网格溢出 */
}

/* 右侧排行榜区域 */
.events-sidebar {
    min-width: 0; /* 防止网格溢出 */
}

/* ===== 赛事卡片容器样式 ===== */
.events-cards-wrapper {
    padding: 0;
}

.events-cards-header {
    text-align: left;
    margin-bottom: 2rem;
}

.events-cards-header h3 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--sm-text, #fff);
    margin: 0 0 0.5rem 0;
    line-height: 1.2;
}

.events-cards-header p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    line-height: 1.5;
}

/* ===== 赛事统计样式 ===== */
.events-stats {
    margin-top: 3rem;
}

.events-stats h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--sm-text, #fff);
    margin: 0 0 1.5rem 0;
}

.events-stats h3 i {
    color: #7DD3FC;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    position: relative;
    transition: background-color 240ms ease, opacity 240ms ease;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #DC143C, #FF6B35);
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--sm-text, #fff);
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    margin-bottom: 1rem;
}

.stat-icon {
    position: absolute;
    top: 1rem;
    right: 1rem;
    opacity: 0.3;
}

.stat-icon i {
    font-size: 1.5rem;
    color: #DC143C;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .events-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .events-cards-header {
        text-align: center;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== 筛选区域已移至filters组件 ===== */
/* .filter-section 样式已移除，筛选功能由统一filters组件处理 */

/* ===== 赛事网格样式已删除 ===== */

/* ===== 分页区域样式已删除 ===== */

/* ===== 创建赛事区域 ===== */
.action-center {
    text-align: center;
    padding: 60px 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 600px;
    margin: 0 auto 100px;
}

.action-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    margin: 0;
    line-height: 1.5;
}

/* ===== 赛事状态样式已删除 ===== */

/* ===== 动画效果 ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== 响应式设计已简化 ===== */
@media (max-width: 480px) {
    .main-content {
        padding: 0 0 60px 0; /* 保持简化的内容区域样式 */
    }
} 
/* Page-owned disclosure keeps the desktop floating timeline unchanged. */
.events-timeline-section > summary { display: none; }

@media (min-width: 769px) {
    /* Keep the return control beyond the fixed 80px timeline plus a 16px gap. */
    .events-page .single-elimination-container .bracket-header { padding-left: 96px; }
}

@media (max-width: 768px) {
    .events-page .main-content { padding: 0 0 32px; }
    .events-page .events-layout { gap: 28px; }
    .events-page .feature-preview-notice { margin: 8px 0; padding: 12px; font-size: 0.8rem; line-height: 1.7; }
    .events-page .events-cards-header { margin-bottom: 12px; text-align: left; }
    .events-page .events-cards-header h3 { font-size: 1.25rem; }
    .events-page .events-stats { margin-top: 24px; }
    .events-page .events-stats h3 { margin-bottom: 12px; font-size: 1.1rem; }
    .events-page .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .events-page .stat-card { min-width: 0; padding: 16px 10px; border-radius: 12px; }
    .events-page .stat-number { font-size: clamp(1.25rem, 6vw, 1.65rem); line-height: 1.4; overflow-wrap: anywhere; }
    .events-page .stat-label { margin: 4px 0 0; font-size: 0.75rem; }
    .events-page .stat-icon { top: 6px; right: 6px; }
    .events-page .stat-icon i { font-size: 0.85rem; }
    .events-page .stat-card::before { height: 1px; background: var(--sm-line, rgba(228, 232, 240, 0.12)); }
    .events-mobile-tools { margin: 0; }
    .events-timeline-section { margin: 10px 0; border: 1px solid var(--sm-line, rgba(228, 232, 240, 0.12)); border-radius: 10px; }
    .events-timeline-section > summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 44px; box-sizing: border-box; padding: 10px 12px; font-size: 0.8rem; cursor: pointer; }
    .events-timeline-section > summary span { color: var(--sm-text-muted, #aeb4bf); font-size: 0.7rem; }
    .events-timeline-section > summary:focus-visible { outline: 2px solid var(--sm-accent, #d8dee8); outline-offset: 2px; }
    .events-page .timeline-wrapper { position: relative; top: auto; left: auto; transform: none; z-index: auto; }
    .events-page .timeline-container { width: 100%; height: min(480px, 65vh); box-sizing: border-box; border: 0; border-radius: 0 0 10px 10px; box-shadow: none; background: transparent; }
    .events-page .timeline-container:hover,
    .events-page .timeline-container.expanded { width: 100%; height: min(480px, 65vh); transform: none; box-shadow: none; background: transparent; }
    .events-page .timeline-track { left: 10px; }
    .events-page .timeline-cards-wrapper { left: 42px; right: 8px; top: 48px; bottom: 110px; padding-right: 4px; }
    .events-page .timeline-controls { left: 8px; right: 8px; opacity: 1; box-shadow: none; }
    .events-page .timeline-container .filter-tag span { display: inline; }
    .events-page .timeline-container .filter-controls { justify-content: flex-start; }
}
