/* ============================
   足球日报 - 共享样式
   跟随博客主题系统（standalone-theme.js）
   保留球队/联赛品牌色（barca-red 等装饰元素）
   ============================ */

/* 主题 CSS 变量由 standalone-theme.js 设置：
   --theme-bg / --theme-body / --theme-card / --theme-text
   --theme-heading / --theme-secondary / --theme-accent
   --theme-border / --theme-nav-text / --theme-nav-hover
   下面仅保留页面内固有的装饰色 */

:root {
  /* 队伍品牌色（不可改 — 视觉识别用） */
  --barca-red: #a50044;
  --spain-red: #c4000a;
  --miami-pink: #f0bfe9;
  --miami-orange: #e8891d;
  --ucl-blue: #1a1a8a;
  --pl-purple: #3d195b;
  --laliga-yellow: #fdd835;
  --serie-green: #008c45;
  --buli-red: #d20515;
  /* 类型徽章色 */
  --morning-bg: #fef3c7;
  --morning-text: #92400e;
  --evening-bg: #e0e7ff;
  --evening-text: #3730a3;
  /* 通用语义色 */
  --green-ok: #16a34a;
  --red-hot: #e8443a;
  --orange-hot: #f08c3a;
  --amber-hot: #f5b73a;
  --gold: #d4a843;
  --blue-info: #2563eb;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--theme-body, #f7f3eb);
  color: var(--theme-text, #222);
  font-family: "Noto Sans SC", -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  font-size: 15.5px;
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: 0.01em;
  padding: 0;
  max-width: 760px;
  margin: 0 auto;
  transition: background 0.45s ease, color 0.45s ease;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

@media (min-width: 768px) {
  body { max-width: 960px; }
  .archive-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1200px) {
  body { max-width: 1100px; }
  .archive-grid { grid-template-columns: repeat(4, 1fr); }
}

/* 顶部导航 - 加粗体跟随首页字重 */
.top-nav {
  background: var(--theme-card, #fff);
  border-bottom: 1px solid var(--theme-border, #e8e2d6);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
  transition: background 0.45s ease, border-color 0.45s ease;
}
.top-nav a {
  color: var(--theme-secondary, #888);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.top-nav a:hover { color: var(--theme-accent); }
.top-nav .nav-sep { color: var(--theme-border, #ddd); }
.top-nav .nav-current {
  color: var(--theme-heading, #222);
  font-size: 15px;
  font-weight: 700;
}

.page-header { padding: 20px 20px 12px; }
.page-header h1 {
  font-size: 20px;
  font-weight: 800;
  color: var(--theme-heading);
}
.page-header .date-line {
  font-size: 12px;
  color: var(--theme-secondary);
  margin-top: 4px;
}

/* 通用卡片 */
.card {
  background: var(--theme-card, #fff);
  border-radius: 14px;
  padding: 4px 0;
  margin: 0 24px 14px;
  border: 1px solid var(--theme-border, #e8e2d6);
  transition: background 0.45s ease;
}
.card-title {
  padding: 16px 22px 12px;
  font-size: 15px;
  font-weight: 700;
  color: var(--theme-heading);
  border-bottom: 1px solid var(--theme-border, #e8e2d6);
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: -0.01em;
}
.card-title .badge { font-size: 10px; padding: 2px 6px; border-radius: 4px; font-weight: 700; }
.badge-red { background: var(--red-hot); color: #fff; }
.badge-blue { background: var(--blue-info); color: #fff; }
.badge-amber { background: var(--gold); color: #fff; }
.badge-purple { background: var(--pl-purple); color: #fff; }
.badge-green { background: var(--green-ok); color: #fff; }

/* 热搜榜 */
.hot-item {
  display: flex;
  align-items: flex-start;
  padding: 12px 20px;
  gap: 12px;
  border-bottom: 1px solid var(--theme-border, #f5f2ec);
  cursor: pointer;
  transition: background 0.15s;
}
.hot-item:last-child { border-bottom: none; }
.hot-item:hover { background: color-mix(in srgb, var(--theme-accent) 8%, transparent); }
.hot-rank {
  width: 22px; height: 22px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: var(--theme-secondary);
  background: color-mix(in srgb, var(--theme-accent) 15%, var(--theme-card));
  flex-shrink: 0;
  margin-top: 1px;
}
.hot-rank.r1 { background: var(--red-hot); color: #fff; }
.hot-rank.r2 { background: var(--orange-hot); color: #fff; }
.hot-rank.r3 { background: var(--amber-hot); color: #fff; }
.hot-content { flex: 1; min-width: 0; }
.hot-headline {
  font-size: 14px;
  font-weight: 600;
  color: var(--theme-heading);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hot-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 5px;
  font-size: 11px;
  color: var(--theme-secondary);
  flex-wrap: wrap;
}
.hot-tag { font-size: 10px; padding: 1px 6px; border-radius: 4px; font-weight: 600; }
.hot-expand-hint {
  font-size: 11px;
  color: var(--theme-secondary);
  flex-shrink: 0;
  margin-top: 2px;
  align-self: flex-start;
}

/* 新闻标签 - 保留品牌色（视觉识别用） */
.tag-hot { background: #fff0e6; color: #e05a00; }
.tag-barca { background: #ffe5ed; color: var(--barca-red); }
.tag-spain { background: #fff0e6; color: var(--spain-red); }
.tag-miami { background: #f0f7ff; color: var(--miami-orange); }
.tag-ucl { background: #f0e6ff; color: var(--ucl-blue); }
.tag-pl { background: var(--pl-purple); color: #fff; }
.tag-laliga { background: var(--laliga-yellow); color: #333; }
.tag-serie { background: var(--serie-green); color: #fff; }
.tag-buli { background: var(--buli-red); color: #fff; }
.tag-transfer { background: #e6f0ff; color: #1a6fcc; }
.tag-match { background: #e8f8ee; color: #1a9a4a; }
.tag-league { background: color-mix(in srgb, var(--theme-secondary) 12%, transparent); color: var(--theme-secondary); }

/* 新闻展开 */
.news-expand {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: color-mix(in srgb, var(--theme-accent) 5%, var(--theme-card));
}
.news-expand.open { max-height: 2000px; }
.news-expand-inner {
  padding: 12px 20px 14px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--theme-text);
  border-top: 1px solid var(--theme-border);
}
.news-expand-inner p { margin-bottom: 8px; }
.news-expand-inner p:last-child { margin-bottom: 0; }

/* 比分卡 */
.score-comp {
  font-size: 11px;
  color: var(--theme-secondary);
  padding: 10px 20px 4px;
  font-weight: 600;
}
.score-card {
  display: flex;
  align-items: center;
  padding: 8px 20px;
  gap: 0;
  border-bottom: 1px solid var(--theme-border);
}
.score-card:last-child { border-bottom: none; }
.score-team {
  flex: 1;
  font-size: 13px;
  font-weight: 600;
  color: var(--theme-text);
}
.score-team.home { text-align: right; padding-right: 12px; }
.score-team.away { text-align: left; padding-left: 12px; }
.score-box { display: flex; flex-direction: column; align-items: center; min-width: 80px; }
.score-main {
  font-size: 18px;
  font-weight: 800;
  color: var(--theme-heading);
  letter-spacing: 3px;
  text-align: center;
}
.score-penalty { font-size: 11px; color: var(--theme-secondary); margin-top: 1px; }
.score-note { font-size: 10px; color: var(--theme-secondary); margin-top: 1px; }

/* 赛程区 */
.sched-item {
  display: flex;
  align-items: center;
  padding: 11px 20px;
  gap: 10px;
  border-bottom: 1px solid var(--theme-border);
  font-size: 13px;
}
.sched-item:last-child { border-bottom: none; }
.sched-time {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: var(--gold);
  padding: 3px 8px;
  border-radius: 5px;
  white-space: nowrap;
}
.sched-time.live { background: var(--red-hot); }
.sched-comp { font-size: 10px; color: var(--theme-secondary); white-space: nowrap; }
.sched-teams { flex: 1; font-weight: 600; color: var(--theme-text); }
.sched-icon { font-size: 13px; }

/* 快讯条 */
.flash-item {
  padding: 10px 20px;
  border-bottom: 1px solid var(--theme-border);
  font-size: 13px;
  line-height: 1.7;
  color: var(--theme-text);
  cursor: pointer;
  transition: background 0.15s;
}
.flash-item:last-child { border-bottom: none; }
.flash-item:hover { background: color-mix(in srgb, var(--theme-accent) 5%, var(--theme-card)); }
.flash-item strong { color: var(--theme-heading); }
.flash-item .flash-time { font-size: 11px; color: var(--theme-secondary); margin-right: 6px; }

/* 关注球队横条 */
.follow-bar {
  display: flex;
  gap: 8px;
  padding: 10px 22px 16px;
  overflow-x: auto;
}
.follow-bar::-webkit-scrollbar { display: none; }
.follow-chip {
  flex-shrink: 0;
  padding: 7px 16px 7px 7px;
  border-radius: 99px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
  cursor: pointer;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.follow-chip .chip-logo {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: contain;
  background: rgba(255,255,255,0.9);
  padding: 2px;
  flex-shrink: 0;
}
.follow-chip:hover { transform: translateY(-1px); box-shadow: 0 2px 8px rgba(0,0,0,0.12); }
/* 队伍品牌色 - 保留 */
.chip-barca { background: var(--barca-red); color: #fff; }
.chip-spain { background: var(--spain-red); color: #fff; }
.chip-miami { background: var(--miami-pink); color: var(--barca-red); }
.chip-ucl { background: var(--ucl-blue); color: #fff; }
.chip-pl { background: var(--pl-purple); color: #fff; }
.chip-laliga { background: var(--laliga-yellow); color: #333; }

.footer {
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  color: var(--theme-secondary);
  padding: 24px 0 28px;
  opacity: 0.6;
}

/* ============================
   球队详情页 - 极简 hero
   ============================ */
.team-hero {
  padding: 44px 20px 26px;
  text-align: left;
  border-bottom: 1px solid var(--theme-border);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 22px;
}
.team-hero .team-emoji,
.team-hero .team-logo {
  flex-shrink: 0;
  width: 104px;
  height: 104px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  margin-bottom: 0;
}
.team-hero .team-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.1));
}
.team-hero .team-emoji {
  font-size: 64px;
}
.team-hero .team-text {
  flex: 1;
  min-width: 0;
}
.team-hero .team-name {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--theme-heading);
  margin-bottom: 8px;
  line-height: 1.15;
}
.team-hero .team-sub {
  font-size: 14px;
  color: var(--theme-secondary);
  margin-top: 4px;
  font-weight: 400;
}

.team-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  text-align: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--theme-border);
}
.team-stat-num {
  font-size: 22px;
  font-weight: 800;
  color: var(--theme-heading);
}
.team-stat-label {
  font-size: 11px;
  color: var(--theme-secondary);
  margin-top: 2px;
}

.team-section-title {
  padding: 14px 20px 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--theme-heading);
  border-bottom: 1px solid var(--theme-border);
  display: flex;
  align-items: center;
  gap: 6px;
}

.pos-group-title {
  padding: 8px 20px 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--theme-secondary);
  background: color-mix(in srgb, var(--theme-accent) 5%, var(--theme-card));
}

.player-row {
  display: flex;
  align-items: center;
  padding: 10px 20px;
  gap: 10px;
  border-bottom: 1px solid var(--theme-border);
  cursor: pointer;
  transition: background 0.15s;
}
.player-row:last-child { border-bottom: none; }
.player-row:hover { background: color-mix(in srgb, var(--theme-accent) 5%, var(--theme-card)); }
.player-num-wrap { position: relative; flex-shrink: 0; }
.player-num {
  width: 30px; height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
}
.player-injured-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--red-hot);
  color: #fff;
  font-size: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--theme-card);
}
.player-info { flex: 1; min-width: 0; }
.player-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--theme-heading);
}
.player-pos { font-size: 11px; color: var(--theme-secondary); }
.player-flag { font-size: 13px; flex-shrink: 0; }

/* 球员弹窗 */
.player-modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.45);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.player-modal-overlay.show { display: flex; }
.player-modal {
  background: var(--theme-card);
  border-radius: 16px;
  width: 100%;
  max-width: 480px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 0 0 24px;
  animation: modalIn 0.2s ease;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}
.player-modal-header {
  padding: 20px 20px 14px;
  text-align: center;
  position: sticky;
  top: 0;
  background: var(--theme-card);
  z-index: 1;
}
.player-modal-header .pm-close {
  position: absolute;
  right: 16px; top: 16px;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--theme-accent) 15%, var(--theme-card));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--theme-secondary);
  cursor: pointer;
  border: none;
}
.player-modal-header .pm-emoji { font-size: 36px; margin-bottom: 6px; }
.player-modal-header .pm-name {
  font-size: 18px;
  font-weight: 800;
  color: var(--theme-heading);
}
.player-modal-header .pm-meta {
  font-size: 12px;
  color: var(--theme-secondary);
  margin-top: 4px;
}
.player-modal-header .pm-meta span { margin: 0 4px; }

.pm-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  text-align: center;
  padding: 12px 24px;
  border-bottom: 1px solid var(--theme-border);
}
.pm-stat-num {
  font-size: 18px;
  font-weight: 800;
  color: var(--theme-heading);
}
.pm-stat-label {
  font-size: 10px;
  color: var(--theme-secondary);
  margin-top: 1px;
}

.pm-detail-section { padding: 14px 28px 6px; }
.pm-detail-section-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--theme-heading);
  margin-bottom: 8px;
}
.pm-detail-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 32px;
  font-size: 13px;
  border-bottom: 1px solid var(--theme-border);
}
.pm-detail-row:last-child { border-bottom: none; }
.pm-detail-key { color: var(--theme-secondary); }
.pm-detail-val { font-weight: 600; color: var(--theme-heading); }

.pm-injured-tag {
  display: inline-block;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 4px;
  background: #fde8e8;
  color: var(--red-hot);
  font-weight: 700;
  margin-top: 6px;
}

/* 积分榜 */
.standings-wrap { overflow-x: auto; padding: 4px 16px 8px; }
.standings-wrap .standings-table { min-width: 100%; }
.standings-table { width: 100%; border-collapse: collapse; }
.standings-table th {
  padding: 8px 10px;
  font-size: 10px;
  font-weight: 700;
  color: var(--theme-secondary);
  text-align: center;
  border-bottom: 1px solid var(--theme-border);
}
.standings-table th:nth-child(2) { text-align: left; padding-left: 14px; }
.standings-table td {
  padding: 7px 10px;
  font-size: 12px;
  text-align: center;
  border-bottom: 1px solid var(--theme-border);
}
.standings-table td:nth-child(2) {
  text-align: left;
  font-weight: 600;
  color: var(--theme-text);
  padding-left: 14px;
}
.standings-table tr.highlight td { background: color-mix(in srgb, var(--theme-accent) 8%, transparent); }
.standings-table .rank { font-weight: 800; color: var(--theme-secondary); }
.standings-table .pts { font-weight: 800; color: var(--theme-heading); }

/* 欧冠对阵图 */
.ucl-bracket { padding: 12px 20px; }
.ucl-round-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--theme-secondary);
  padding: 6px 0;
  border-bottom: 1px dashed var(--theme-border);
}
.ucl-match { display: flex; align-items: center; padding: 8px 0; gap: 8px; }
.ucl-team { flex: 1; font-size: 12px; font-weight: 600; color: var(--theme-text); text-align: center; }
.ucl-vs { font-size: 10px; color: var(--theme-secondary); font-weight: 700; }
.ucl-score { font-size: 11px; font-weight: 800; color: var(--theme-heading); }
.ucl-agg { font-size: 10px; color: var(--theme-secondary); }
.ucl-advance { font-size: 10px; color: var(--green-ok); font-weight: 700; }
.ucl-eliminated { font-size: 10px; color: var(--theme-secondary); }

/* 奖杯条 */
.trophy-row {
  display: flex;
  align-items: center;
  padding: 10px 20px;
  gap: 10px;
  border-bottom: 1px solid var(--theme-border);
}
.trophy-row:last-child { border-bottom: none; }
.trophy-icon { font-size: 18px; }
.trophy-name { flex: 1; font-size: 13px; font-weight: 600; color: var(--theme-heading); }
.trophy-count { font-size: 13px; font-weight: 800; color: var(--gold); }

/* ============================
   归档页 - 重构卡片网格
   字重对齐首页：标题 800 / 月份 700 / 日期 800
   ============================ */
.archive-header {
  padding: 56px 24px 32px;
  text-align: left;
  border-bottom: 1px solid var(--theme-border);
  margin-bottom: 8px;
}
.archive-header .archive-icon {
  font-size: 32px;
  margin-bottom: 16px;
  line-height: 1;
  display: block;
}
.archive-header h1 {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--theme-heading);
  margin-bottom: 8px;
  line-height: 1.15;
}
.archive-header .archive-sub {
  font-size: 15px;
  font-weight: 500;
  color: var(--theme-secondary);
  margin-top: 6px;
  line-height: 1.6;
}

.archive-section { padding: 0; }

.archive-month-label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--theme-secondary);
  padding: 28px 24px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.archive-month-label::before {
  content: '';
  width: 4px;
  height: 14px;
  background: var(--theme-accent);
  border-radius: 2px;
  display: inline-block;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 0 24px 8px;
}

.archive-card {
  display: block;
  background: var(--theme-card);
  border-radius: 14px;
  padding: 16px 18px;
  text-decoration: none;
  border: 1.5px solid var(--theme-border);
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}
.archive-card:hover {
  transform: translateY(-2px);
  border-color: var(--theme-accent);
  box-shadow: 0 6px 20px color-mix(in srgb, var(--theme-accent) 14%, transparent);
}
.archive-card:active {
  transform: translateY(0);
}

.ac-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.ac-type {
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
/* 早晚报配色保留 - 视觉识别 */
.ac-morning { background: var(--morning-bg); color: var(--morning-text); }
.ac-evening { background: var(--evening-bg); color: var(--evening-text); }

.ac-date {
  font-size: 17px;
  font-weight: 800;
  color: var(--theme-heading);
  letter-spacing: -0.01em;
}

.ac-weekday {
  font-size: 12px;
  font-weight: 600;
  color: var(--theme-secondary);
  margin-bottom: 6px;
  margin-top: 2px;
}

.ac-desc {
  font-size: 12px;
  font-weight: 500;
  color: var(--theme-secondary);
}

.archive-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--theme-secondary);
}
.archive-empty-icon { font-size: 36px; margin-bottom: 8px; }
.archive-empty p { font-size: 13px; }

@media (max-width: 540px) {
  .archive-grid { grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 16px 8px; }
  .archive-header { padding: 40px 16px 24px; }
  .archive-header h1 { font-size: 30px; }
  .archive-month-label { padding: 20px 16px 12px; }
}

/* ============================
   动态新闻流（team-dynamic.js）
   ============================ */

.news-card { margin-bottom: 12px; }

.news-section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--theme-heading);
  border-bottom: 1px solid var(--theme-border);
  letter-spacing: -0.01em;
}

.news-section-meta {
  font-size: 10px;
  font-weight: 500;
  color: var(--theme-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0;
  text-transform: none;
}

.news-refresh-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  background: color-mix(in srgb, var(--theme-accent) 12%, var(--theme-card));
  color: var(--theme-accent);
  border-radius: 99px;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.news-list {
  padding: 8px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.news-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: var(--theme-card);
  border: 1px solid var(--theme-border);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: all 0.18s ease;
}

.news-item:hover {
  border-color: var(--theme-accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px color-mix(in srgb, var(--theme-accent) 18%, transparent);
}

.news-thumb {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  background-color: color-mix(in srgb, var(--theme-accent) 10%, var(--theme-card));
}

.news-thumb-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.news-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.news-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--theme-heading);
  line-height: 1.35;
  letter-spacing: -0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-desc {
  font-size: 12px;
  color: var(--theme-secondary);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-time {
  font-size: 10px;
  color: var(--theme-secondary);
  margin-top: auto;
  letter-spacing: 0.5px;
}

@media (max-width: 540px) {
  .news-thumb { width: 60px; height: 60px; }
  .news-title { font-size: 13px; }
}

/* ============================
   动态球员名单（team-dynamic.js · roster）
   ============================ */

.roster-card { margin-bottom: 12px; }

.roster-pos-title {
  padding: 16px 20px 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--theme-heading);
  letter-spacing: 0;
}

.roster-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
}

.roster-table th {
  padding: 8px 12px;
  background: color-mix(in srgb, var(--theme-accent) 6%, var(--theme-card));
  color: var(--theme-secondary);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-bottom: 1px solid var(--theme-border);
}
.roster-table th:first-child { padding-left: 20px; }
.roster-table th:last-child { padding-right: 20px; }

.rt-row {
  transition: background 0.15s;
}
.rt-row:hover {
  background: color-mix(in srgb, var(--theme-accent) 4%, var(--theme-card));
}
.rt-row td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--theme-border);
  color: var(--theme-text);
}
.rt-row td:first-child { padding-left: 20px; }
.rt-row td:last-child { padding-right: 20px; }
.rt-row:last-child td { border-bottom: none; }

.rt-row.rt-injured {
  opacity: 0.6;
}

.rt-jer {
  font-weight: 700;
  color: var(--theme-heading);
  width: 40px;
  text-align: center;
}

.rt-name {
  min-width: 100px;
}
.rt-flag {
  width: 18px;
  height: 14px;
  vertical-align: middle;
  margin-right: 6px;
  border-radius: 2px;
  display: inline-block;
}
.rt-name-text {
  font-weight: 600;
  vertical-align: middle;
}
.rt-inj-badge {
  margin-left: 6px;
  vertical-align: middle;
  font-size: 11px;
}

.rt-stat {
  text-align: center;
  font-variant-numeric: tabular-nums;
  color: var(--theme-text);
}
.rt-stat.rt-goal { color: var(--theme-accent); font-weight: 700; }
.rt-stat.rt-assist { color: var(--theme-heading); font-weight: 600; }

.rt-card {
  text-align: center;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.rt-card .rt-yellow { color: #d97706; font-weight: 600; }
.rt-card .rt-red { color: #dc2626; font-weight: 700; }

@media (max-width: 540px) {
  .roster-table { font-size: 12px; }
  .roster-table th { font-size: 9px; padding: 6px 8px; }
  .roster-table th:first-child { padding-left: 14px; }
  .roster-table th:last-child { padding-right: 14px; }
  .rt-row td { padding: 7px 8px; }
  .rt-row td:first-child { padding-left: 14px; }
  .rt-row td:last-child { padding-right: 14px; }
  .rt-name-text { font-size: 12px; }
}


/* ============================
   球队详情页通用 (team-page.js)
   ============================ */
.loading-skeleton { background: linear-gradient(90deg, var(--theme-border, #eee) 25%, var(--theme-card, #fafafa) 50%, var(--theme-border, #eee) 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: 6px; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.skel-row { height: 32px; margin: 0 20px 6px; }
.skel-table-row { height: 28px; margin: 0 16px 4px; }
.last-update { font-size: 10px; color: var(--theme-secondary, #999); font-weight: 400; margin-left: 6px; }

.recent-match { display: flex; align-items: center; padding: 8px 16px; gap: 10px; border-bottom: 1px solid var(--theme-border, #eee); font-size: 13px; }
.recent-match:last-child { border-bottom: none; }
.recent-match .rm-date { color: var(--theme-secondary, #999); font-size: 11px; min-width: 40px; }
.recent-match .rm-venue { font-size: 10px; color: var(--theme-secondary, #999); min-width: 16px; }
.recent-match .rm-vs { flex: 1; display: flex; align-items: center; gap: 6px; min-width: 0; }
.recent-match .rm-vs .rm-opp { font-weight: 500; }
.recent-match .rm-score { font-weight: 700; font-size: 14px; min-width: 46px; text-align: center; }
.recent-match .rm-result { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 4px; min-width: 30px; text-align: center; }
.recent-match .rm-comp { font-size: 10px; color: var(--theme-secondary, #999); min-width: 40px; text-align: right; }
.rm-win { background: #dcfce7; color: #16a34a; }
.rm-draw { background: #fef3c7; color: #d97706; }
.rm-loss { background: #fee2e2; color: #ef4444; }

.next-match { display: flex; align-items: center; gap: 14px; padding: 14px 18px 16px; }
.next-match .nx-logo { width: 42px; height: 42px; object-fit: contain; flex-shrink: 0; }
.next-match .nx-info { flex: 1; min-width: 0; }
.next-match .nx-title { font-size: 15px; font-weight: 800; color: var(--theme-heading, #222); }
.next-match .nx-meta { font-size: 12px; color: var(--theme-secondary, #888); margin-top: 3px; }
.next-match .nx-when { text-align: right; font-size: 12.5px; color: var(--theme-accent, #888); font-weight: 700; white-space: nowrap; }
.next-empty { padding: 10px 18px 16px; font-size: 13px; color: var(--theme-secondary, #888); }
