/* BGG 排行页 */
.bgg-rankings-page {
  padding-bottom: 40px;
}
.bgg-rankings-head {
  margin: 10px 0 24px;
}
.bgg-rankings-head h1 {
  font-size: 28px;
  margin: 0 0 8px;
  color: #1a1a1a;
}
.bgg-rankings-sub {
  margin: 0 0 6px;
  color: #64748b;
  font-size: 14px;
}
.bgg-rankings-updated {
  margin: 0;
  color: #0f766e;
  font-size: 14px;
  font-weight: 600;
}
.bgg-rankings-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.bgg-rankings-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  font-size: 14px;
}
.bgg-rankings-table th,
.bgg-rankings-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
  vertical-align: middle;
}
.bgg-rankings-table th {
  background: #f8fafc;
  color: #334155;
  font-weight: 600;
  white-space: nowrap;
}
.bgg-rankings-table tr:hover td {
  background: #f8fafc;
}
.bgg-rankings-table .col-rank {
  width: 64px;
  font-weight: 700;
}
.bgg-rankings-table .col-delta {
  width: 72px;
}
.bgg-rankings-table a {
  color: #0f766e;
  text-decoration: none;
}
.bgg-rankings-table a:hover {
  text-decoration: underline;
}
.bgg-delta {
  display: inline-block;
  min-width: 2.2em;
  font-weight: 600;
}
.bgg-delta-up { color: #16a34a; }
.bgg-delta-down { color: #dc2626; }
.bgg-delta-flat { color: #94a3b8; }
.bgg-delta-new { color: #2563eb; font-size: 12px; }
.bgg-yes { color: #16a085; font-weight: 600; }
.bgg-no { color: #94a3b8; }
.bgg-empty { color: #cbd5e1; }
.bgg-buy { font-weight: 600; color: #c2410c !important; }
.bgg-signup {
  display: inline-block;
  padding: 4px 10px;
  background: #0f766e;
  color: #fff !important;
  border-radius: 4px;
  font-size: 13px;
  text-decoration: none !important;
}
.bgg-signup:hover {
  background: #0d9488;
  text-decoration: none !important;
}

/* TOP100 移动端卡片样式（桌面端隐藏） */
.bgg-card-container {
  display: none;
}
.bgg-card {
  display: none;
}

@media (max-width: 768px) {
  .bgg-rankings-head h1 { font-size: 22px; }
  
  /* 隐藏表格，显示卡片容器 */
  .bgg-rankings-table-wrap {
    display: none;
  }
  
  .bgg-card-container {
    display: block;
    padding: 0;
    margin: 0;
  }
  
  /* 卡片样式 */
  .bgg-card {
    display: block;
    width: 100%;
    margin-bottom: 10px;
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    box-sizing: border-box;
    transition: box-shadow 0.2s ease;
  }
  
  .bgg-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }
  
  /* 卡片交替背景色 */
  .bgg-card.bg-white {
    background: #ffffff;
  }
  
  .bgg-card.bg-light-red {
    background: #fef2f2;
  }
  
  /* 卡片链接 */
  .bgg-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
  }
  
  /* 排名 */
  .bgg-card-rank {
    font-size: 24px;
    font-weight: 700;
    color: #0f766e;
    margin-bottom: 8px;
  }
  
  /* 游戏标题 */
  .bgg-card-title {
    font-size: 16px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 10px;
    line-height: 1.4;
  }
  
  /* 信息区域（仅已收录显示） */
  .bgg-card-info {
    font-size: 14px;
    line-height: 1.6;
  }
  
  /* 信息行 */
  .bgg-card-row {
    display: flex;
    align-items: flex-start;
  }
  
  /* 标签 */
  .bgg-card-label {
    flex-shrink: 0;
    width: 55px;
    font-size: 13px;
    color: #94a3b8;
    font-weight: 500;
  }
  
  /* 值 */
  .bgg-card-value {
    flex: 1;
    font-size: 14px;
    color: #334155;
    word-break: break-word;
  }
}
