/* ===== LGSports 比赛情报详情页样式 ===== */
/* 适用于 matches.html — 情报头部、分类Tab、排序栏、情报卡片 */

/* ========================================
   1. 情报页面容器
   ======================================== */

.mt-intel-page {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--dashboard-bg, #f5f7fa);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  min-height: 0;
  padding-bottom: 80px;
}

.mt-intel-page::-webkit-scrollbar {
  display: none;
}

/* ========================================
   2. 比赛头部（sticky）
   ======================================== */

.mt-intel-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--card-bg, #fff);
  border-bottom: 1px solid var(--border-color, #e8e8e8);
  flex-shrink: 0;
}

.mt-intel-header-top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px 8px;
}

.mt-intel-back {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-primary, #333);
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
  border-radius: 50%;
  transition: background 0.15s;
}

.mt-intel-back:active {
  background: var(--chip-bg, #f5f5f5);
}

.mt-intel-back svg {
  width: 22px;
  height: 22px;
}

.mt-intel-match-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mt-intel-match-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary, #1a1a2e);
}

.mt-intel-match-title .mt-intel-league {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary, #888);
  background: var(--chip-bg, #f5f5f5);
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

.mt-intel-match-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-secondary, #888);
}

.mt-intel-match-date {
  font-weight: 500;
}

.mt-intel-countdown {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--text-secondary, #888);
}

.mt-intel-countdown-value {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-orange, #f59e0b);
  font-variant-numeric: tabular-nums;
}

/* ========================================
   3. 情报分类 Tab
   ======================================== */

.mt-intel-tabs {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0 16px;
  background: var(--card-bg, #fff);
  border-bottom: 1px solid var(--border-color, #e8e8e8);
  flex-shrink: 0;
}

.mt-intel-tab {
  position: relative;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary, #888);
  background: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s;
  -webkit-tap-highlight-color: transparent;
  display: flex;
  align-items: center;
  gap: 4px;
}

.mt-intel-tab .mt-intel-tab-count {
  font-size: 12px;
  color: var(--text-secondary, #aaa);
  font-weight: 500;
}

.mt-intel-tab.active {
  color: var(--primary-blue, #2563eb);
  font-weight: 700;
}

.mt-intel-tab.active .mt-intel-tab-count {
  color: var(--primary-blue, #2563eb);
  font-weight: 700;
}

.mt-intel-tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 3px;
  border-radius: 2px;
  background: var(--primary-blue, #2563eb);
}

/* ========================================
   4. 排序筛选栏
   ======================================== */

.mt-intel-sortbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: var(--card-bg, #fff);
  border-bottom: 1px solid var(--border-color, #e8e8e8);
  flex-shrink: 0;
}

.mt-intel-sort-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.mt-intel-sort-btn {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary, #333);
  background: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.mt-intel-sort-btn:active {
  color: var(--primary-blue, #2563eb);
}

.mt-intel-sort-btn.active {
  color: var(--primary-blue, #2563eb);
  font-weight: 700;
}

.mt-intel-sort-btn svg {
  width: 14px;
  height: 14px;
}

/* 统计周期切换组 */
.mt-intel-period-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.mt-intel-period-btn {
  padding: 4px 0;
  font-size: 13px;
  font-weight: 400;
  color: var(--text-secondary, #888);
  background: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.mt-intel-period-btn.active {
  color: var(--primary-blue, #2563eb);
  font-weight: 700;
}

.mt-intel-filter-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary, #888);
  background: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

.mt-intel-filter-btn svg {
  width: 16px;
  height: 16px;
}

/* ========================================
   5. 情报卡片列表
   ======================================== */

.mt-intel-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 16px 0;
}

/* ========================================
   6. 情报卡片
   ======================================== */

.mt-intel-card {
  background: var(--card-bg, #fff);
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: var(--card-shadow, 0 2px 12px rgba(0, 0, 0, 0.06));
  cursor: pointer;
  transition: transform 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.mt-intel-card:active {
  transform: scale(0.98);
}

/* 卡片头部：头像 + 作者信息 */
.mt-intel-card-header {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 8px;
  cursor: pointer;
}

.mt-intel-card-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: linear-gradient(135deg, #e0e0e0, #f0f0f0);
}

.mt-intel-card-author {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.mt-intel-card-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.mt-intel-card-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary, #1a1a2e);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 统计数据行 */
.mt-intel-card-stats {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--text-secondary, #888);
}

.mt-intel-card-stats .mt-intel-stat-sep {
  color: var(--border-color, #e0e0e0);
}

.mt-intel-card-stats .mt-intel-stat-value {
  font-weight: 600;
  color: var(--text-primary, #555);
}

/* 发布时间 */
.mt-intel-card-time {
  font-size: 11px;
  color: var(--text-secondary, #aaa);
  margin-bottom: 6px;
}

/* 情报标题 */
.mt-intel-card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary, #1a1a2e);
  line-height: 1.4;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 情报摘要 */
.mt-intel-card-summary {
  font-size: 13px;
  color: var(--text-secondary, #888);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ========================================
   6.1 结算信息区块（已结算情报卡片）
   ======================================== */

.mt-intel-card-settlement {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--border-color, #e8e8e8);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* 结算头部行：总体结果徽章 + 回报率 */
.mt-intel-settle-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mt-intel-settle-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid;
  line-height: 1.4;
}

.mt-intel-settle-badge.hit {
  color: #ef4444;
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.08);
}

.mt-intel-settle-badge.miss {
  color: #22c55e;
  border-color: #22c55e;
  background: rgba(34, 197, 94, 0.08);
}

.mt-intel-settle-badge.partial {
  color: #f59e0b;
  border-color: #f59e0b;
  background: rgba(245, 158, 11, 0.08);
}

.mt-intel-settle-badge.nobet {
  color: #6b7280;
  border-color: #9ca3af;
  background: rgba(156, 163, 175, 0.1);
}

/* 空仓情报提示行（灰色） */
.mt-intel-nobet-hint {
  font-size: 12px;
  color: #9ca3af;
  line-height: 1.5;
}

.mt-intel-settle-rr {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary, #555);
  font-variant-numeric: tabular-nums;
}

.mt-intel-settle-rr.hit {
  color: #ef4444;
}

.mt-intel-settle-rr.miss {
  color: #22c55e;
}

.mt-intel-settle-rr.partial {
  color: #f59e0b;
}

/* 逐玩法结算行 */
.mt-intel-settle-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-secondary, #888);
}

.mt-intel-settle-play {
  min-width: 64px;
  color: var(--text-secondary, #888);
}

.mt-intel-settle-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 3px;
}

.mt-intel-settle-tag.hit {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.12);
}

.mt-intel-settle-tag.miss {
  color: #22c55e;
  background: rgba(34, 197, 94, 0.12);
}

/* ========================================
   7. 空状态
   ======================================== */

.mt-intel-empty {
  text-align: center;
  padding: 60px 16px;
  font-size: 14px;
  color: var(--text-secondary, #888);
}

/* ========================================
   8. Dark-mode 适配
   ======================================== */

body.dark-mode .mt-intel-page {
  background: #111827;
}

body.dark-mode .mt-intel-header {
  background: #1f2937;
  border-color: #374151;
}

body.dark-mode .mt-intel-back {
  color: #f3f4f6;
}

body.dark-mode .mt-intel-match-title {
  color: #f3f4f6;
}

body.dark-mode .mt-intel-match-title .mt-intel-league {
  background: #374151;
  color: #9ca3af;
}

body.dark-mode .mt-intel-match-meta,
body.dark-mode .mt-intel-countdown {
  color: #9ca3af;
}

body.dark-mode .mt-intel-countdown-value {
  color: var(--accent-orange, #f59e0b);
}

body.dark-mode .mt-intel-tabs {
  background: #1f2937;
  border-color: #374151;
}

body.dark-mode .mt-intel-tab {
  color: #6b7280;
}

body.dark-mode .mt-intel-tab.active {
  color: #60a5fa;
}

body.dark-mode .mt-intel-tab.active .mt-intel-tab-count {
  color: #60a5fa;
}

body.dark-mode .mt-intel-sortbar {
  background: #1f2937;
  border-color: #374151;
}

body.dark-mode .mt-intel-sort-btn {
  color: #d1d5db;
}

body.dark-mode .mt-intel-sort-btn.active {
  color: #60a5fa;
}

body.dark-mode .mt-intel-period-btn {
  color: #d1d5db;
}

body.dark-mode .mt-intel-period-btn.active {
  color: #60a5fa;
}

body.dark-mode .mt-intel-filter-btn {
  color: #9ca3af;
}

body.dark-mode .mt-intel-card {
  background: #1f2937;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

body.dark-mode .mt-intel-card-name {
  color: #f3f4f6;
}

body.dark-mode .mt-intel-card-stats {
  color: #9ca3af;
}

body.dark-mode .mt-intel-card-stats .mt-intel-stat-value {
  color: #d1d5db;
}

body.dark-mode .mt-intel-card-time {
  color: #6b7280;
}

body.dark-mode .mt-intel-card-title {
  color: #f3f4f6;
}

body.dark-mode .mt-intel-card-summary {
  color: #6b7280;
}

/* 结算区块 dark-mode */
body.dark-mode .mt-intel-card-settlement {
  border-top-color: #374151;
}

body.dark-mode .mt-intel-settle-badge.hit {
  color: #f87171;
  border-color: #f87171;
  background: rgba(239, 68, 68, 0.15);
}

body.dark-mode .mt-intel-settle-badge.miss {
  color: #4ade80;
  border-color: #4ade80;
  background: rgba(34, 197, 94, 0.15);
}

body.dark-mode .mt-intel-settle-badge.partial {
  color: #fbbf24;
  border-color: #fbbf24;
  background: rgba(245, 158, 11, 0.15);
}

body.dark-mode .mt-intel-settle-rr {
  color: #d1d5db;
}

body.dark-mode .mt-intel-settle-rr.hit {
  color: #f87171;
}

body.dark-mode .mt-intel-settle-rr.miss {
  color: #4ade80;
}

body.dark-mode .mt-intel-settle-rr.partial {
  color: #fbbf24;
}

body.dark-mode .mt-intel-settle-row,
body.dark-mode .mt-intel-settle-play {
  color: #9ca3af;
}

body.dark-mode .mt-intel-settle-tag.hit {
  color: #f87171;
  background: rgba(239, 68, 68, 0.18);
}

body.dark-mode .mt-intel-settle-tag.miss {
  color: #4ade80;
  background: rgba(34, 197, 94, 0.18);
}

/* ========================================
   9. 移动端响应式
   ======================================== */

@media (max-width: 768px) {
  .mt-intel-header-top {
    padding: 10px 12px 6px;
    gap: 8px;
  }

  .mt-intel-match-title {
    font-size: 15px;
  }

  .mt-intel-match-title .mt-intel-league {
    font-size: 11px;
    padding: 1px 6px;
  }

  .mt-intel-match-meta {
    font-size: 11px;
    gap: 6px;
  }

  .mt-intel-countdown-value {
    font-size: 13px;
  }

  .mt-intel-tab {
    padding: 8px 12px;
    font-size: 13px;
  }

  .mt-intel-sortbar {
    padding: 8px 12px;
    gap: 8px;
  }

  .mt-intel-sort-group {
    gap: 8px;
  }

  .mt-intel-sort-btn {
    font-size: 12px;
  }

  .mt-intel-list {
    padding: 10px 12px 0;
    gap: 8px;
  }

  .mt-intel-card {
    padding: 12px 14px;
  }

  .mt-intel-card-avatar {
    width: 36px;
    height: 36px;
  }

  .mt-intel-card-name {
    font-size: 13px;
  }

  .mt-intel-card-stats {
    font-size: 11px;
    gap: 8px;
  }

  .mt-intel-card-title {
    font-size: 14px;
  }

  .mt-intel-card-summary {
    font-size: 12px;
  }

  .mt-intel-settle-row {
    font-size: 11px;
    gap: 6px;
  }

  .mt-intel-settle-play {
    min-width: 56px;
  }
}
