/* ppp体育 — 深色体育门户（蓝主色 + 红点缀） */
:root {
  --primary: #1890ff;
  --primary-hover: #40a9ff;
  --primary-dark: #096dd9;
  --primary-glow: rgba(24, 144, 255, 0.45);
  --primary-soft: rgba(24, 144, 255, 0.12);
  --danger: #ff4d4f;
  --green: var(--primary);
  --green-dark: var(--primary-dark);
  --green-deep: #141518;
  --green-light: var(--primary-soft);
  --green-glow: var(--primary-glow);
  --accent: var(--danger);
  --accent-soft: rgba(255, 77, 79, 0.15);
  --cyan: #69c0ff;
  --bg: #1a1b1e;
  --bg-elevated: #25262b;
  --card: #25262b;
  --card-hover: #2f3036;
  --text: #ffffff;
  --muted: #a0a0a0;
  --border: rgba(255, 255, 255, 0.08);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.28);
  --shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.45);
  --shadow-hover: 0 8px 28px rgba(24, 144, 255, 0.18);
  --radius: 8px;
  --radius-lg: 12px;
  --header-h: 76px;
  --layout-max: 1320px;
  --layout-pad-x: 16px;
  --news-row-thumb-w: 220px;
  --news-row-thumb-h: 124px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 70% 50% at 50% -10%, rgba(24, 144, 255, 0.08), transparent 50%),
    radial-gradient(ellipse 40% 30% at 100% 50%, rgba(24, 144, 255, 0.04), transparent 45%);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; transition: color 0.15s var(--ease); }
a:hover { color: var(--primary-hover); }

/* —— 顶栏 —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: linear-gradient(180deg, #181a1f 0%, #141518 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.4);
}
.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 5%, var(--primary) 50%, transparent 95%);
  opacity: 0.9;
}
.header-inner {
  max-width: var(--layout-max);
  margin: 0 auto;
  padding: 0 var(--layout-pad-x);
  height: var(--header-h);
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-weight: 700;
  flex-shrink: 0;
  transition: opacity 0.2s;
}
.brand:hover { opacity: 0.92; color: #fff; }
.brand-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 12px;
  display: block;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}
.brand-text {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
}

.top-nav {
  display: flex;
  flex-wrap: nowrap;
  overflow: visible;
  gap: 6px;
  flex: 1;
  scrollbar-width: none;
  padding: 0;
  align-items: center;
  position: relative;
}
.top-nav::-webkit-scrollbar { display: none; }
.top-nav > a,
.top-nav-group-trigger {
  color: rgba(255, 255, 255, 0.86);
  padding: 11px 20px;
  border-radius: 999px;
  white-space: nowrap;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  list-style: none;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.top-nav > a:hover,
.top-nav-group-trigger:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.08);
}
.top-nav > a.is-active,
.top-nav-group.is-active > .top-nav-group-trigger {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 18px var(--primary-glow);
}
.top-nav-group {
  position: relative;
}
.top-nav-group > summary::-webkit-details-marker {
  display: none;
}
.top-nav-group > summary::after {
  content: "▾";
  font-size: 12px;
  margin-left: 8px;
  opacity: 0.9;
}
.top-nav-group-menu {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  width: calc(4em + 48px);
  min-width: calc(4em + 48px);
  padding: 10px 14px;
  box-sizing: border-box;
  background: linear-gradient(180deg, #2f3239 0%, #25262b 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  z-index: 260;
  grid-template-columns: 1fr;
  gap: 6px;
  transform: translateY(6px);
  opacity: 0;
  transition: transform 0.18s var(--ease), opacity 0.18s var(--ease);
}
.top-nav-group[open] .top-nav-group-menu {
  display: grid;
  transform: translateY(0);
  opacity: 1;
}
.top-nav-group:hover .top-nav-group-menu {
  display: grid;
  transform: translateY(0);
  opacity: 1;
}
.top-nav-group-menu a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 40px;
  box-sizing: border-box;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 16px;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-align: center;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.88);
  transition: background 0.15s ease-out, color 0.15s ease-out;
}
.top-nav-group-menu a:hover,
.top-nav-group-menu a.is-active {
  color: #fff;
  background: rgba(24, 144, 255, 0.28);
  box-shadow: inset 0 0 0 1px rgba(24, 144, 255, 0.4);
}
.top-nav-group-menu-worldcup {
  margin-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.top-nav-group-menu-worldcup.is-active {
  color: #fff;
  background: rgba(24, 144, 255, 0.28);
  box-shadow: inset 0 0 0 1px rgba(24, 144, 255, 0.4);
}
@media (min-width: 901px) {
  .top-nav-group > summary:focus {
    outline: none;
  }
  .top-nav > a,
  .top-nav-group-trigger {
    font-size: 17px;
    padding: 12px 22px;
  }
  .top-nav-group-menu {
    width: calc(4em + 52px);
    min-width: calc(4em + 52px);
    padding: 12px 16px;
  }
  .top-nav-group-menu a {
    min-height: 42px;
    padding: 10px 14px;
    font-size: 17px;
  }
}

.header-search {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 5px 5px 5px 16px;
  transition: border-color 0.2s, background 0.2s;
}
.header-search:focus-within {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(24, 144, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(24, 144, 255, 0.2);
}
.header-search input {
  width: 148px;
  padding: 8px 8px;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 14px;
  outline: none;
}
.header-search input::placeholder { color: rgba(255, 255, 255, 0.45); }
.header-search button {
  background: var(--primary);
  border: none;
  padding: 9px 18px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  color: #fff;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}
}
.header-search button:hover {
  transform: translateY(-1px);
  background: var(--primary-hover);
  box-shadow: 0 4px 14px var(--primary-glow);
}

.nav-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 18px;
}

.site-wrap {
  max-width: var(--layout-max);
  margin: 0 auto;
  padding: 28px var(--layout-pad-x) 48px;
}

/* —— 首页：轮播与主栏同列，右侧对齐侧栏 —— */
.home-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}
.home-main > .hero-slider {
  grid-column: 1 / -1;
  grid-row: 1;
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
  min-width: 0;
}
.home-main > .content-layout {
  display: contents;
}
.home-main > .content-layout > .latest-feed {
  grid-column: 1;
  grid-row: 2;
  min-width: 0;
}
.home-main > .content-layout > .sidebar-team-boards {
  grid-column: 2;
  grid-row: 2;
  min-width: 0;
}

/* —— 首页 Hero（左文右图 + 渐变） —— */
.hero-slider {
  position: relative;
  margin-bottom: 32px;
  min-width: 0;
}
.hero-stage {
  position: relative;
  min-height: 200px;
  aspect-ratio: 21 / 6;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  background: #000;
}
.hero-panel {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.28s var(--ease);
  pointer-events: none;
}
.hero-panel.is-active {
  opacity: 1;
  pointer-events: auto;
}
.hero-panel__link {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  color: #fff;
  text-decoration: none;
}
.hero-panel__media {
  position: absolute;
  inset: 0;
  background: #101114;
}
.hero-panel__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% center;
  display: block;
  transition: transform 6s var(--ease);
}
.hero-panel.is-active .hero-panel__media img {
  transform: scale(1.04);
}
.hero-panel__media--placeholder .article-cover-placeholder--hero {
  min-height: 100%;
  border: none;
  background: linear-gradient(135deg, #1e3a5f 0%, #14161c 55%, #0a0b0d 100%);
}
.hero-panel__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    90deg,
    #000 0%,
    #000 34%,
    rgba(0, 0, 0, 0.88) 46%,
    rgba(0, 0, 0, 0.45) 62%,
    rgba(0, 0, 0, 0.08) 78%,
    transparent 92%
  );
  pointer-events: none;
}
.hero-panel__content {
  position: absolute;
  z-index: 2;
  left: 0;
  top: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  max-width: min(560px, 58%);
  padding: 22px 36px 36px;
  box-sizing: border-box;
}
.hero-slider:has(.hero-nav) .hero-panel__content {
  padding-left: 88px;
  max-width: min(600px, 62%);
}
.hero-panel__title {
  margin: 0;
  font-size: clamp(20px, 2vw, 30px);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
}
.hero-panel__author {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.88);
}
.hero-panel__avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}
.hero-panel__author-name {
  font-weight: 500;
}
.hero-panel__cta {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  margin-top: 4px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  font-weight: 600;
  transition: background 0.15s ease-out, border-color 0.15s ease-out;
}
@media (hover: hover) {
  .hero-panel__link:hover .hero-panel__cta {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.28);
  }
}
.hero-panel__badge {
  position: absolute;
  z-index: 3;
  top: 18px;
  right: 18px;
  padding: 6px 14px;
  border-radius: 6px;
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 14px rgba(24, 144, 255, 0.35);
}
.hero-slider .hero-dots {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0;
}
.hero-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: width 0.2s ease-out, background 0.2s ease-out;
}
.hero-dot.is-active {
  width: 22px;
  background: var(--primary);
}
.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0 4px;
  transition: background 0.15s ease-out, border-color 0.15s ease-out, transform 0.15s ease-out;
  backdrop-filter: blur(4px);
}
.hero-nav--prev { left: 18px; }
.hero-nav--next { right: 18px; padding-left: 2px; }
@media (hover: hover) {
  .hero-nav:hover {
    background: rgba(24, 144, 255, 0.55);
    border-color: rgba(24, 144, 255, 0.65);
    transform: translateY(-50%) scale(1.05);
  }
}
.hero-nav[disabled] {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

.content-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 28px;
  align-items: start;
}

.section-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}
.section-head-label {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.02em;
  position: relative;
  padding-left: 14px;
}
.section-head-label::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15em;
  bottom: 0.15em;
  width: 4px;
  border-radius: 2px;
  background: var(--primary);
}
.section-head-sub {
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
}
.section-head-link {
  margin-left: auto;
  font-size: 13px;
  color: var(--primary-hover);
  text-decoration: none;
}
.section-head-link:hover {
  color: #fff;
}

/* 首页资讯分类选项卡 */
.home-news-feed {
  margin-bottom: 8px;
}
.home-news-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin-bottom: 18px;
  padding: 4px 2px 10px;
  border-bottom: 2px solid var(--border);
}
.home-news-tabs::-webkit-scrollbar {
  display: none;
}
.home-news-tab {
  flex: 0 0 auto;
  padding: 9px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.home-news-tab:hover {
  color: #fff;
  border-color: rgba(24, 144, 255, 0.35);
  background: rgba(24, 144, 255, 0.1);
}
.home-news-tab.is-active {
  color: #fff;
  border-color: var(--primary);
  background: var(--primary);
}
.home-news-panel[hidden] {
  display: none !important;
}
.home-news-panel .news-list-rows {
  gap: 14px;
}

/* 首页积分榜选项卡 */
.home-standings-feed {
  margin-top: 28px;
}
.home-standings-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin-bottom: 14px;
  padding: 4px 2px 10px;
  border-bottom: 2px solid var(--border);
}
.home-standings-tabs::-webkit-scrollbar {
  display: none;
}
.home-standings-tab {
  flex: 0 0 auto;
  padding: 9px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.home-standings-tab:hover {
  color: #fff;
  border-color: rgba(24, 144, 255, 0.35);
  background: rgba(24, 144, 255, 0.1);
}
.home-standings-tab.is-active {
  color: #fff;
  border-color: var(--primary);
  background: var(--primary);
}
.home-standings-panel {
  display: none;
}
.home-standings-panel.is-active {
  display: block;
}
.home-standings-panel[hidden] {
  display: none !important;
}
.home-standings-season {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--muted);
}
.home-standings-season a {
  color: var(--primary-hover);
}
.home-standings-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
}
.home-standings-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.home-standings-table th,
.home-standings-table td {
  padding: 10px 12px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.home-standings-table th:nth-child(2),
.home-standings-table td:nth-child(2) {
  text-align: left;
}
.home-standings-table thead th {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  background: rgba(255, 255, 255, 0.03);
}
.home-standings-table tbody tr:last-child td {
  border-bottom: none;
}
.home-standings-team {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 120px;
}
.home-standings-badge {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex-shrink: 0;
}
.home-standings-team a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}
.home-standings-team a:hover {
  color: var(--primary-hover);
}

.home-matches {
  margin-bottom: 20px;
}
.home-matches-carousel {
  position: relative;
  padding: 0 44px;
}
.home-matches-track-wrap {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  scrollbar-width: none;
  cursor: grab;
  touch-action: pan-x;
  overscroll-behavior-x: contain;
}
.home-matches-track-wrap::-webkit-scrollbar {
  display: none;
}
.home-matches-track-wrap.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
  user-select: none;
}
.home-matches-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  width: max-content;
  min-width: 100%;
  padding: 2px 0 4px;
}
.home-match-card {
  flex: 0 0 220px;
  min-width: 220px;
  scroll-snap-align: start;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
}
.home-matches-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(18, 20, 26, 0.88);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}
.home-matches-nav--prev { left: 0; }
.home-matches-nav--next { right: 0; }
.home-matches-nav[disabled] {
  opacity: 0.35;
  cursor: not-allowed;
}
.home-match-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 8px;
  font-size: 12px;
  color: var(--muted);
}
.home-match-status {
  font-size: 11px;
  line-height: 1.2;
}
.home-match-card--live {
  border-color: rgba(255, 77, 79, 0.45);
  box-shadow: 0 0 0 1px rgba(255, 77, 79, 0.12);
}
.home-match-teams {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 6px;
}
.home-match-team--away {
  flex-direction: row-reverse;
  text-align: right;
}
.home-match-score {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  padding: 0 2px;
}
.home-match-score-sep {
  opacity: 0.55;
  font-weight: 700;
}
.home-match-card--live .home-match-score {
  color: #ff7875;
}
.home-match-team {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.home-match-logo {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  object-fit: contain;
  display: block;
}
.home-match-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
  flex: 1;
  min-width: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}
.home-match-vs {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
}

/* —— 资讯列表行 —— */
.news-list-rows {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}
.news-row-item {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  width: 100%;
  height: var(--news-row-thumb-h);
  min-height: var(--news-row-thumb-h);
  background: var(--card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.12s ease-out, border-color 0.12s ease-out;
}
@media (hover: hover) {
  .news-row-item:hover {
    box-shadow: var(--shadow-hover);
    border-color: rgba(24, 144, 255, 0.35);
    background: var(--card-hover);
  }
}
.news-row-thumb {
  flex: 0 0 var(--news-row-thumb-w);
  width: var(--news-row-thumb-w);
  height: var(--news-row-thumb-h);
  max-width: var(--news-row-thumb-w);
  display: block;
  background: #1a1b1e;
  overflow: hidden;
  position: relative;
}
.news-row-thumb.has-cover-placeholder {
  display: flex;
  align-items: stretch;
}
.news-row-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.18s ease-out;
}
.news-row-thumb .article-cover-placeholder {
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 8px;
}

/* 无封面/正文无图：分类名占位 */
.article-cover-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 124px;
  padding: 12px;
  box-sizing: border-box;
  background: linear-gradient(145deg, rgba(24, 144, 255, 0.22) 0%, rgba(24, 144, 255, 0.06) 100%);
  border: 1px dashed rgba(24, 144, 255, 0.4);
}
.article-cover-placeholder-text {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  color: var(--primary-hover);
  letter-spacing: 0.04em;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-row-thumb.has-cover-placeholder,
.news-card-thumb.has-cover-placeholder {
  background: #1e1f24;
}
.news-card-thumb .article-cover-placeholder {
  min-height: 168px;
}
.news-card-thumb .article-cover-placeholder-text {
  font-size: 20px;
}
.hero-slide--placeholder {
  display: flex;
  align-items: stretch;
}
.article-cover-placeholder--hero {
  min-height: 100%;
  border: none;
  background: linear-gradient(135deg, #1e3a5f 0%, #25262b 50%, #1a1b1e 100%);
}
.article-cover-placeholder--hero .article-cover-placeholder-text {
  font-size: clamp(22px, 4vw, 32px);
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}
.hot-item-thumb {
  flex: 0 0 72px;
  width: 72px;
  height: 48px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  display: block;
}
.hot-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hot-item-thumb .article-cover-placeholder {
  min-height: 48px;
  padding: 4px;
  border-radius: 8px;
}
.hot-item-thumb .article-cover-placeholder-text {
  font-size: 11px;
  font-weight: 600;
  -webkit-line-clamp: 2;
}
@media (hover: hover) {
  .news-row-item:hover .news-row-thumb img { transform: scale(1.04); }
}
.news-row-content {
  flex: 1;
  min-width: 0;
  height: var(--news-row-thumb-h);
  padding: 10px 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 4px;
  overflow: hidden;
  box-sizing: border-box;
}
.news-row-meta {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 0;
  flex-shrink: 0;
}
.news-row-meta time {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.news-row-title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
  letter-spacing: 0.01em;
  flex-shrink: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-row-title a {
  color: var(--text);
  transition: color 0.1s ease-out;
}
@media (hover: hover) {
  .news-row-item:hover .news-row-title a { color: var(--primary-hover); }
}
.news-row-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
  margin: 0;
  flex: 1;
  min-height: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cat-tag {
  background: transparent;
  color: var(--primary-hover);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
  border: 1px solid rgba(24, 144, 255, 0.45);
}
.page-title-sub {
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  margin-left: 8px;
}

/* 搜索页表单 */
.search-form--page {
  display: flex;
  align-items: center;
  gap: 0;
  max-width: 720px;
  margin: 0 0 28px;
  padding: 6px 6px 6px 22px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.search-form--page:focus-within {
  background: var(--card-hover);
  border-color: rgba(24, 144, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(24, 144, 255, 0.18), var(--shadow);
}
.search-form--page input[type="search"] {
  flex: 1;
  min-width: 0;
  padding: 14px 12px;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 16px;
  font-family: inherit;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.search-form--page input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
}
.search-form--page input[type="search"]::placeholder {
  color: rgba(255, 255, 255, 0.4);
}
.search-form--page button {
  flex-shrink: 0;
  padding: 12px 28px;
  border: none;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.15s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
@media (hover: hover) {
  .search-form--page button:hover {
    transform: translateY(-1px);
    background: var(--primary-hover);
    box-shadow: 0 4px 16px var(--primary-glow);
  }
}
.search-form--page button:active {
  transform: translateY(0);
}
.result-count {
  margin: 0 0 20px;
  font-size: 14px;
  color: var(--muted);
}

/* —— 卡片网格（分类等） —— */
.news-masonry {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}

/* 首页最新：多列瀑布流 */
.news-masonry--flow {
  display: block;
  column-count: 3;
  column-gap: 22px;
}
.news-masonry--flow .news-card {
  display: inline-block;
  width: 100%;
  margin: 0 0 22px;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  vertical-align: top;
}
.news-masonry--flow .news-card-thumb img {
  height: auto;
  min-height: 140px;
  max-height: 240px;
}
.news-masonry--flow .news-card:nth-child(6n + 1) .news-card-thumb img { min-height: 150px; }
.news-masonry--flow .news-card:nth-child(6n + 2) .news-card-thumb img { min-height: 190px; }
.news-masonry--flow .news-card:nth-child(6n + 3) .news-card-thumb img { min-height: 165px; }
.news-masonry--flow .news-card:nth-child(6n + 4) .news-card-thumb img { min-height: 210px; }
.news-masonry--flow .news-card:nth-child(6n + 5) .news-card-thumb img { min-height: 145px; }
.news-masonry--flow .news-card:nth-child(6n) .news-card-thumb img { min-height: 175px; }

.waterfall-sentinel {
  height: 1px;
  width: 100%;
  visibility: hidden;
}
.waterfall-status {
  text-align: center;
  padding: 16px 12px 8px;
  font-size: 14px;
  color: var(--muted);
}
.waterfall-status.is-loading {
  color: var(--primary-hover);
}
.news-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.12s ease-out, border-color 0.12s ease-out;
}
@media (hover: hover) {
  .news-card:hover {
    box-shadow: var(--shadow-hover);
    border-color: rgba(24, 144, 255, 0.35);
    background: var(--card-hover);
  }
}
.news-card-thumb {
  flex-shrink: 0;
  overflow: hidden;
}
.news-card-thumb img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  transition: transform 0.18s ease-out;
}
@media (hover: hover) {
  .news-card:hover .news-card-thumb img { transform: scale(1.03); }
}
.news-card-body { padding: 16px 18px; flex: 1; }
.news-card-meta {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.news-card-title { font-size: 17px; font-weight: 700; line-height: 1.35; margin-bottom: 8px; }
.news-card-title a { color: var(--text); }
.news-card-title a:hover { color: var(--primary-hover); }
.news-card-desc { font-size: 14px; color: var(--muted); line-height: 1.55; }

/* —— 侧边热门 —— */
.sidebar-hot {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  position: sticky;
  top: calc(var(--header-h) + 20px);
}
.sidebar-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
}
.sidebar-title::before {
  content: "";
  width: 4px;
  height: 16px;
  border-radius: 2px;
  background: var(--primary);
  flex-shrink: 0;
}
.hot-list { list-style: none; }
.hot-item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 10px;
  margin: 0 -10px;
  border-radius: var(--radius);
  color: var(--text);
  transition: background 0.1s ease-out;
}
@media (hover: hover) {
  .hot-item:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
  }
}
.hot-item:last-child { border-bottom: none; }
.hot-rank {
  width: 26px;
  height: 26px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--muted);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hot-list li:nth-child(1) .hot-rank {
  background: var(--danger);
  color: #fff;
  box-shadow: 0 2px 8px rgba(255, 77, 79, 0.4);
}
.hot-list li:nth-child(2) .hot-rank {
  background: rgba(255, 77, 79, 0.65);
  color: #fff;
}
.hot-list li:nth-child(3) .hot-rank {
  background: rgba(255, 77, 79, 0.4);
  color: #fff;
}
.hot-title {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* —— 首页侧栏球队榜 —— */
.sidebar-team-boards {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: calc(var(--header-h) + 20px);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.team-board {
  background: linear-gradient(165deg, #23262e 0%, #181b22 55%, #14161c 100%);
  border-radius: 14px;
  padding: 20px 18px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  color: #e8eaed;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow: hidden;
}
.team-board-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 16px;
  padding-left: 14px;
  letter-spacing: 0.04em;
  position: relative;
  color: #fff;
}
.team-board-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 18px;
  border-radius: 2px;
  background: linear-gradient(180deg, #3d8bfd 0%, #ff6b35 100%);
}
.team-board-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}
.team-board--football .team-board-tabs {
  gap: 6px;
  margin-bottom: 12px;
}
.team-board--football .team-board-tab {
  flex: 1 1 calc(33.333% - 6px);
  min-width: 52px;
  padding: 7px 6px;
  font-size: 12px;
}
.team-board--football .team-board-table td {
  padding: 9px 3px;
}
.team-board--football .team-board-logo,
.team-board--football .team-board-logo--empty {
  width: 24px;
  height: 24px;
}
.team-board--football .team-board-name {
  font-size: 13px;
}
.team-board-tab {
  flex: 1;
  min-width: 0;
  padding: 10px 14px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}
.team-board-tab.is-active {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}
.team-board-panel {
  display: none;
}
.team-board-panel.is-active {
  display: block;
  min-width: 0;
  max-width: 100%;
}
.team-board-subtabs {
  display: flex;
  gap: 20px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.team-board-subtabs::-webkit-scrollbar { display: none; }
.team-board-subtab {
  flex-shrink: 0;
  border: none;
  background: none;
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
  font-weight: 600;
  padding: 0 0 6px;
  cursor: pointer;
  position: relative;
}
.team-board-subtab.is-active {
  color: #5b9cff;
}
.team-board-subtab.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: #5b9cff;
  border-radius: 1px;
}
.team-board-subpanel { display: none; }
.team-board-subpanel.is-active { display: block; }
.team-board-table-wrap {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}
.team-board-table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 13px;
}
.team-board-table th {
  text-align: left;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  padding: 0 4px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
  letter-spacing: 0.06em;
}
.team-board-table th.col-rank {
  width: 9%;
  padding: 0;
  border-bottom-color: transparent;
}
.team-board-table th.col-rank--labeled {
  padding: 0 2px 12px;
  border-bottom-color: rgba(255, 255, 255, 0.1);
  text-align: center;
  white-space: nowrap;
}
.team-board-table th.col-team {
  text-align: center;
  width: 68%;
}
.team-board-table th.col-stat {
  width: 23%;
  text-align: right;
}
.team-board-table td.col-rank {
  width: 9%;
  text-align: center;
  vertical-align: middle;
}
.team-board-table td.col-stat {
  width: 23%;
  text-align: right;
  vertical-align: middle;
}
.team-board-table td.col-team {
  width: 68%;
  overflow: hidden;
  text-align: center;
  vertical-align: middle;
}
.team-board-table tbody tr {
  transition: background 0.12s ease-out;
}
@media (hover: hover) {
  .team-board-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.04);
  }
}
.team-board-table td {
  padding: 11px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.team-board-table tbody tr:last-child td { border-bottom: none; }
.team-board-table td.col-stat {
  color: rgba(255, 255, 255, 0.9);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 600;
}
.team-board-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  font-size: 13px;
  font-weight: 700;
  font-style: italic;
  color: rgba(255, 255, 255, 0.5);
}
.team-board-rank[data-rank="1"] { color: #ff4d4f; }
.team-board-rank[data-rank="2"] { color: #ff9c6e; }
.team-board-rank[data-rank="3"] { color: #5b9cff; }
.team-board-team {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #fff;
  min-width: 0;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 6px;
  box-sizing: border-box;
}
.team-board-team:hover { color: #5b9cff; }
.team-board-logo {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}
.team-board-logo--empty {
  display: inline-block;
  width: 28px;
  height: 28px;
  border-radius: 50%;
}
.team-board-name {
  font-size: 14px;
  font-weight: 600;
  flex: 0 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.02em;
}
.team-board-empty {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.45);
  padding: 16px 0;
  margin: 0;
  text-align: center;
}
.team-board-more-wrap {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}
.team-board-more {
  font-size: 13px;
  color: #5b9cff;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.team-board-more:hover { text-decoration: underline; }

.breadcrumb {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
  padding: 10px 14px;
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  width: 100%;
  box-sizing: border-box;
}
.page-main > .breadcrumb {
  max-width: 100%;
}
.breadcrumb a { color: var(--primary); font-weight: 500; }
.page-title {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 24px;
  letter-spacing: 0.02em;
  line-height: 1.25;
}

.pagination {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 28px;
  align-items: center;
}
.pagination a,
.pagination .current {
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--border);
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.pagination a {
  color: var(--muted);
}
.pagination a:hover {
  border-color: var(--primary);
  color: var(--primary-hover);
  background: var(--primary-soft);
}
.pagination .current {
  background: var(--primary);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 2px 10px var(--primary-glow);
}

/* —— 文章页 —— */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 28px;
}
.article-main {
  background: var(--card);
  padding: 32px 36px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.article-header h1 {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 16px;
  letter-spacing: 0.01em;
}
.article-meta {
  font-size: 14px;
  color: var(--muted);
  display: flex;
  gap: 12px 20px;
  flex-wrap: wrap;
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.article-meta-source {
  color: var(--primary-hover);
}
.article-meta-share {
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  font-size: 14px;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.15s ease-out;
}
.article-meta-share:hover,
.article-meta-share.is-copied {
  color: var(--primary-hover);
}
.article-meta-share.is-copied {
  cursor: default;
}
.article-source a {
  color: var(--primary-hover);
  word-break: break-all;
}
.article-source a:hover {
  color: var(--cyan);
}
.article-cover { margin: 24px 0; border-radius: var(--radius); overflow: hidden; }
.article-cover img {
  max-width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.article-content {
  font-size: 17px;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.88);
  margin-top: 24px;
}
.article-content p { margin-bottom: 1.15em; }
.article-content a { color: var(--primary-hover); text-decoration: underline; }
.article-content a:hover { color: var(--cyan); }
.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 12px 0;
}
.article-content h2,
.article-content h3 {
  margin: 1.5em 0 0.6em;
  font-weight: 700;
  color: var(--text);
}
.article-source {
  margin-top: 28px;
  padding: 14px 16px;
  font-size: 13px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius);
  border-left: 3px solid var(--primary);
}
.article-related-read {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.article-related-read-title {
  margin: 0 0 20px;
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
}
.article-related-read-title::before {
  content: "";
  width: 4px;
  height: 16px;
  border-radius: 2px;
  background: var(--primary);
  flex-shrink: 0;
}
.article-related-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.article-related-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.article-related-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.article-related-item:first-child {
  padding-top: 0;
}
.article-related-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}
.article-related-meta .cat-tag {
  color: var(--primary);
}
.article-related-link {
  display: block;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--text);
  text-decoration: none;
}
.article-related-link:hover {
  color: var(--primary);
}
.article-sidebar {
  background: var(--card);
  padding: 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  position: sticky;
  top: calc(var(--header-h) + 20px);
}
.article-sidebar-rec-title {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 700;
}
.article-sidebar-block {
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.article-sidebar-block:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}
.article-sidebar-block-title {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.article-sidebar-block-title::before {
  content: "";
  width: 4px;
  height: 14px;
  border-radius: 2px;
  background: var(--primary);
  flex-shrink: 0;
}
.news-list-rows--sidebar {
  gap: 12px;
}
.news-list-rows--sidebar .news-row-item {
  height: auto;
  min-height: 0;
  box-shadow: none;
}
.news-list-rows--sidebar .news-row-thumb {
  flex: 0 0 96px;
  width: 96px;
  max-width: 96px;
  height: auto;
  align-self: stretch;
}
.news-list-rows--sidebar .news-row-thumb img,
.news-list-rows--sidebar .news-row-thumb .article-cover-placeholder {
  min-height: 64px;
}
.news-list-rows--sidebar .news-row-content {
  height: auto;
  padding: 8px 12px;
}
.news-list-rows--sidebar .news-row-title {
  font-size: 14px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-list-rows--sidebar .news-row-desc {
  font-size: 12px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}
.news-list-rows--sidebar .news-row-meta {
  font-size: 11px;
  gap: 6px;
}
.article-sidebar-entities {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.sidebar-entity-panel {
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.sidebar-entity-panel-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--text);
  text-decoration: none;
}
.sidebar-entity-panel-head:hover .sidebar-entity-name {
  color: var(--primary-hover);
}
.sidebar-entity-head-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sidebar-entity-media {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 8px;
  background: #1a1b1e;
}
.sidebar-entity-media--round {
  object-fit: cover;
  border-radius: 50%;
}
.sidebar-entity-name {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}
.sidebar-entity-sub {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.3;
}
.sidebar-entity-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
  margin: 0 0 12px;
}
.sidebar-entity-fact dt {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 2px;
}
.sidebar-entity-fact dd {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--text);
}
.sidebar-entity-intro {
  margin-bottom: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.sidebar-entity-intro-title {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-hover);
}
.sidebar-entity-intro-body {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.82);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
}
.sidebar-entity-more {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-hover);
  text-decoration: none;
}
.sidebar-entity-more:hover {
  text-decoration: underline;
}
.sidebar-entity-more--secondary {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  color: var(--muted);
}
@media (max-width: 768px) {
  .sidebar-entity-facts {
    grid-template-columns: 1fr;
  }
}
.sidebar-rec { list-style: none; }
.sidebar-rec li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  line-height: 1.45;
}
.sidebar-rec li:last-child { border-bottom: none; }
.sidebar-rec a { font-weight: 500; }

.comments-block {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 2px solid var(--border);
}
.comments-block h3 {
  font-size: 18px;
  margin-bottom: 16px;
}
.comment-form textarea {
  width: 100%;
  min-height: 110px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  font-family: inherit;
  font-size: 14px;
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.comment-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(24, 144, 255, 0.2);
}
.comment-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.comment-row input {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  flex: 1;
  min-width: 140px;
  background: var(--bg);
  color: var(--text);
}
.comment-row input::placeholder { color: var(--muted); }
.btn-primary {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 11px 28px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 4px 14px var(--primary-glow);
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}
.btn-primary:hover {
  transform: translateY(-1px);
  background: var(--primary-hover);
  box-shadow: 0 6px 20px var(--primary-glow);
}
.comment-tip { font-size: 12px; color: var(--muted); margin-top: 10px; }
.comment-list { margin-top: 20px; }
.comment-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.comment-item strong { margin-right: 8px; color: var(--text); }
.comment-item time { font-size: 12px; color: var(--muted); }

.article-entity-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
}
.entity-tag {
  display: inline-block;
  padding: 4px 12px;
  font-size: 13px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-hover);
  border: 1px solid rgba(24, 144, 255, 0.35);
}
.entity-tag:hover {
  background: rgba(24, 144, 255, 0.22);
  color: #fff;
}
.entity-tag--star {
  background: rgba(255, 77, 79, 0.12);
  border-color: rgba(255, 77, 79, 0.35);
  color: #ff9c9e;
}

/* 球队/球星单页与列表 */
.entity-hero {
  padding: 24px 28px;
  margin-bottom: 20px;
}
.entity-hero-main {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  margin-bottom: 20px;
}
.entity-hero-primary {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  flex: 1;
  min-width: 0;
}
.entity-league-logo {
  flex-shrink: 0;
  margin-left: auto;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.entity-league-logo-link {
  display: block;
  line-height: 0;
}
.entity-league-logo-img {
  display: block;
  width: 88px;
  height: 88px;
  object-fit: contain;
}
.entity-hero-media {
  flex-shrink: 0;
  object-fit: cover;
  background: #1a1b1e;
  border-radius: 12px;
}
.entity-hero-media.team-logo {
  width: 112px;
  height: 112px;
  object-fit: contain;
  padding: 8px;
}
/* 球员头像（含无图/失败时首字占位） */
.athlete-avatar {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(24, 144, 255, 0.38) 0%, rgba(24, 144, 255, 0.14) 100%);
  border: 1px solid rgba(24, 144, 255, 0.4);
  box-sizing: border-box;
}
.athlete-avatar__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  border-radius: 50%;
}
.athlete-avatar__letter {
  display: none;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  user-select: none;
  z-index: 0;
}
.athlete-avatar.is-fallback .athlete-avatar__letter {
  display: flex;
}
.athlete-avatar.is-fallback .athlete-avatar__img {
  display: none;
}
.athlete-avatar--hero {
  width: 120px;
  height: 120px;
  border-width: 3px;
  border-color: var(--border);
}
.athlete-avatar--hero .athlete-avatar__letter {
  font-size: 2.75rem;
}
.athlete-avatar--directory {
  width: 52px;
  height: 52px;
  margin-bottom: 8px;
}
.athlete-avatar--directory .athlete-avatar__letter {
  font-size: 1.25rem;
}
.athlete-avatar--roster {
  width: 48px;
  height: 48px;
  margin-bottom: 0;
}
.athlete-avatar--roster .athlete-avatar__letter {
  font-size: 1.1rem;
}
.entity-hero-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 4px;
}
.entity-hero-names {
  flex: 1;
  min-width: 0;
}
/* 球员/球队页：联赛 LOGO 靠 hero 区域最右侧（与 team.php 一致） */
.entity-hero-main > .entity-league-logo {
  margin-left: auto;
  align-self: center;
  flex-shrink: 0;
}
.entity-hero-main > .entity-league-logo-img {
  width: 88px;
  height: 88px;
}
.entity-hero-text h1,
.entity-hero-title-row h1 {
  margin: 0 0 8px;
  font-size: 1.75rem;
}
.entity-hero-sub {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 15px;
}
.entity-hero-league a,
.entity-hero-tagline a {
  color: var(--primary-hover);
}
.entity-hero-tagline {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}
.entity-hero-tagline span::before {
  content: "·";
  margin: 0 6px;
  opacity: 0.6;
}
.entity-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px 20px;
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.entity-meta-grid--row {
  grid-template-columns: repeat(var(--meta-cols, 6), minmax(0, 1fr));
  gap: 12px 14px;
}
.entity-meta-grid--row .entity-meta-item dd {
  font-size: 13px;
  word-break: break-word;
}
.entity-meta-item dt {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
}
.entity-meta-item dd {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.entity-meta-item dd a {
  color: var(--primary-hover);
}
.entity-section {
  margin-bottom: 28px;
}
.entity-articles .article-related-list {
  margin-top: 4px;
}
.entity-section-title {
  font-size: 1.15rem;
  margin: 0 0 16px;
  padding-left: 12px;
  border-left: 3px solid var(--primary);
}
.entity-section-link {
  font-size: 13px;
  font-weight: normal;
  margin-left: 12px;
  color: var(--muted);
}
.entity-prose {
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.85);
}

.entity-tabs-panel {
  padding: 0;
  overflow: hidden;
}
.entity-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}
.entity-tab {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
  padding: 14px 22px;
  cursor: pointer;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.15s ease-out, background 0.15s ease-out;
}
.entity-tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}
.entity-tab.is-active {
  color: #fff;
  background: rgba(24, 144, 255, 0.1);
}
.entity-tab.is-active::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 0;
  height: 2px;
  border-radius: 2px 2px 0 0;
  background: var(--primary);
}
.entity-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: var(--primary-hover);
  background: var(--primary-soft);
}
.entity-tab-panel {
  display: none;
  padding: 20px 22px 22px;
}
.entity-tab-panel.is-active {
  display: block;
}
.entity-tab-points {
  display: inline-flex;
  align-items: center;
  margin-left: 2px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #69b1ff;
  background: rgba(24, 144, 255, 0.18);
}
.entity-tab-panel[data-tab-panel="standings"] {
  padding: 0;
}
.team-stats-dashboard {
  padding: 18px 20px 22px;
  background: linear-gradient(180deg, rgba(8, 12, 20, 0.96) 0%, rgba(12, 18, 28, 0.98) 100%);
}
.team-stats-dashboard-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 20px;
  margin-bottom: 14px;
}
.team-stats-dashboard-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}
.team-stats-dashboard-season {
  margin: 4px 0 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
}
.team-stats-dashboard-head-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.team-stats-updated {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.38);
}
.team-stats-legend {
  display: flex;
  gap: 14px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
}
.team-stats-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.team-stats-legend-item i {
  display: inline-block;
  width: 18px;
  height: 3px;
  border-radius: 2px;
}
.team-stats-legend-item--team i {
  background: rgba(24, 144, 255, 0.95);
}
.team-stats-legend-item--league i {
  background: transparent;
  border-top: 2px dashed rgba(255, 152, 60, 0.95);
  height: 0;
  width: 18px;
}
.team-stats-summary-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  padding: 14px 16px;
  margin-bottom: 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.team-stats-summary-main {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 14px;
}
.team-stats-summary-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}
.team-stats-summary-points {
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.team-stats-summary-points small {
  font-size: 16px;
  font-weight: 600;
  margin-left: 2px;
  color: rgba(255, 255, 255, 0.65);
}
.team-stats-summary-rank {
  font-size: 14px;
  font-weight: 600;
  color: #69b1ff;
}
.team-stats-summary-form .standings-form {
  letter-spacing: 1px;
  font-weight: 700;
}
.team-stats-standings-link {
  margin-left: auto;
  font-size: 13px;
  color: var(--primary-hover);
  text-decoration: none;
}
.team-stats-standings-link:hover {
  text-decoration: underline;
}
.team-stats-chart-wrap {
  display: flex;
  justify-content: center;
  padding: 4px 0 8px;
}
.team-stats-radar-canvas {
  width: 100%;
  max-width: 560px;
  height: auto;
  aspect-ratio: 520 / 420;
}
.team-stats-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 6px;
}
@media (max-width: 720px) {
  .team-stats-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.team-stats-kpi {
  padding: 12px 10px;
  border-radius: 10px;
  text-align: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.team-stats-kpi-value {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}
.team-stats-kpi-label {
  margin-top: 4px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}
.team-stats-kpi-rank {
  margin-top: 4px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
}
.team-schedule-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.team-schedule-item {
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}
.team-schedule-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 10px;
  font-size: 13px;
  color: var(--muted);
}
.team-schedule-side {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.08);
}
.team-schedule-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.team-schedule-opponent {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
  min-width: 0;
}
.team-schedule-opponent a {
  color: #fff;
}
.team-schedule-opponent a:hover {
  color: var(--primary-hover);
}
.team-schedule-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
}
.team-schedule-vs {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}
.team-schedule-score {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 22px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.team-schedule-score span {
  color: var(--muted);
  font-weight: 600;
}
.team-schedule-streams {
  margin-top: 10px;
}
.team-schedule-more {
  margin: 14px 0 0;
  font-size: 14px;
}
.team-schedule-more a {
  color: var(--primary-hover);
  font-weight: 600;
}

.entity-directory-hero {
  position: relative;
  margin: 0 0 24px;
  padding: 22px 128px 22px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(24, 144, 255, 0.14) 0%, var(--card) 42%, var(--card) 100%);
  overflow: hidden;
}
.entity-directory-hero-body {
  position: relative;
  z-index: 1;
  min-width: 0;
}
.entity-directory-hero-title-row {
  display: block;
}
.entity-directory-hero .entity-league-logo {
  position: absolute;
  right: 20px;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  margin: 0;
  padding: 8px 10px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.entity-directory-hero .entity-league-logo-img {
  width: 88px;
  height: 88px;
}
.entity-directory-hero--stars {
  background: linear-gradient(135deg, rgba(114, 46, 209, 0.16) 0%, var(--card) 45%, var(--card) 100%);
}
.entity-directory-hero-glow {
  position: absolute;
  top: -40%;
  right: -8%;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(24, 144, 255, 0.22) 0%, transparent 70%);
  pointer-events: none;
}
.entity-directory-hero--stars .entity-directory-hero-glow {
  background: radial-gradient(circle, rgba(114, 46, 209, 0.24) 0%, transparent 70%);
}
.entity-directory-hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  flex-wrap: wrap;
}
.entity-directory-hero-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #fff;
  background: linear-gradient(90deg, var(--primary), #36cfc9);
}
.entity-directory-hero--stars .entity-directory-hero-badge {
  background: linear-gradient(90deg, #722ed1, #eb2f96);
}
.entity-directory-hero-en {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--muted);
}
.entity-directory-hero-title {
  margin: 0 0 8px;
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.02em;
  padding-right: 0;
}
.entity-directory-hero-desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 36em;
}

.entity-list-layout {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
.entity-list-side {
  position: sticky;
  top: 80px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
}
.entity-list-side-title {
  font-size: 14px;
  margin: 0 0 12px;
  color: var(--muted);
}
.entity-league-nav {
  list-style: none;
  margin: 0;
  padding: 0;
}
.entity-league-nav a {
  display: block;
  padding: 8px 10px;
  border-radius: 6px;
  color: var(--text);
  font-size: 14px;
}
.entity-league-nav a:hover,
.entity-league-nav a.is-active {
  background: rgba(24, 144, 255, 0.15);
  color: var(--primary-hover);
}
.entity-list-side-hint {
  margin: 16px 0 0;
  font-size: 13px;
}
.entity-list-block {
  margin-bottom: 32px;
}
.entity-list-block-title {
  font-size: 1.1rem;
  margin: 0 0 14px;
}
.entity-list-block-title a {
  color: var(--text);
}
.entity-list-region-block {
  margin-bottom: 22px;
}
.entity-list-region-block:last-child {
  margin-bottom: 0;
}
.entity-list-region-title {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 12px;
  padding-left: 10px;
  border-left: 3px solid var(--primary);
  color: var(--text);
}
.team-directory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.team-directory-grid--flat-countries {
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  gap: 10px;
}
.entity-list-region-block--flat {
  margin-bottom: 0;
}
.team-directory-grid--flat-countries .team-directory-card {
  padding: 10px 8px 12px;
  min-height: 0;
}
.team-directory-grid--flat-countries .team-directory-logo {
  width: 44px;
  height: 44px;
  margin-bottom: 8px;
}
.team-directory-grid--flat-countries .team-directory-name {
  font-size: 13px;
  line-height: 1.35;
}
.team-directory-grid--flat-countries .team-directory-en {
  font-size: 11px;
  margin-top: 2px;
}
.team-directory-country {
  display: block;
  width: 100%;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.team-directory-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  min-height: 120px;
}
.team-directory-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  margin-bottom: 10px;
}
.team-directory-logo--empty {
  display: block;
  background: #1a1b1e;
  border-radius: 8px;
}
.team-directory-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
}
.team-directory-en {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}
.star-roster-head {
  margin-bottom: 12px;
}
.star-roster-team {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 600;
}
.star-roster-team-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
}
.star-directory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.star-directory-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 8px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}
.star-directory-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.star-directory-meta {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}
@media (max-width: 768px) {
  .entity-list-layout {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .entity-list-side {
    position: static;
    padding: 10px 12px;
    margin-bottom: 0;
  }
  .entity-list-side-title {
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 600;
  }
  .entity-league-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
  }
  .entity-league-nav li {
    margin: 0;
    flex: 0 0 auto;
  }
  .entity-league-nav a {
    display: inline-block;
    padding: 6px 12px;
    font-size: 13px;
    line-height: 1.3;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    white-space: nowrap;
  }
  .entity-league-nav a.is-active {
    background: rgba(24, 144, 255, 0.22);
    border-color: rgba(24, 144, 255, 0.45);
    color: var(--primary-hover);
    font-weight: 600;
  }
  .entity-list-side-hint {
    margin: 10px 0 0;
    font-size: 12px;
  }
  .entity-directory-hero {
    margin-bottom: 12px;
    padding: 12px 14px;
  }
  .entity-directory-hero .entity-league-logo {
    position: static;
    transform: none;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    flex-shrink: 0;
  }
  .entity-directory-hero .entity-league-logo-img {
    width: 44px;
    height: 44px;
  }
  .entity-directory-hero-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 2px;
  }
  .entity-directory-hero-title {
    margin: 0;
    font-size: 1.2rem;
    flex: 1;
    min-width: 0;
    line-height: 1.25;
  }
  .entity-directory-hero-eyebrow {
    margin-bottom: 6px;
  }
  .entity-directory-hero-en {
    display: none;
  }
  .entity-directory-hero-desc {
    font-size: 12px;
    line-height: 1.45;
    max-width: none;
  }
  .entity-directory-hero-glow {
    width: 140px;
    height: 140px;
    top: -30%;
    right: -20%;
  }
  .entity-meta-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .entity-meta-grid--row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 520px) {
  .entity-meta-grid--row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.team-profile {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  align-items: flex-start;
}
.team-logo {
  width: 120px;
  height: 120px;
  object-fit: contain;
  border-radius: 12px;
  background: #1a1b1e;
}
.team-meta { list-style: none; color: var(--muted); margin: 12px 0; }
.team-meta li { margin-bottom: 6px; }
.team-intro { margin-top: 12px; line-height: 1.75; color: rgba(255, 255, 255, 0.82); }
.roster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 88px));
  justify-content: start;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.roster-grid > li {
  min-width: 0;
  max-width: 100%;
}
.roster-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: 8px 6px 10px;
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  text-align: center;
  overflow: hidden;
  box-sizing: border-box;
  color: var(--text);
}
.roster-card:hover {
  border-color: rgba(24, 144, 255, 0.35);
  background: var(--card-hover);
}
.roster-card .athlete-avatar {
  flex-shrink: 0;
  margin-bottom: 6px;
}
.roster-card .athlete-avatar--roster {
  width: 48px;
  height: 48px;
}
.roster-card .athlete-avatar__img {
  object-fit: cover;
  object-position: center top;
}
/* 兼容旧静态页：阵容内裸 img 也限制尺寸 */
.roster-card > img {
  width: 48px;
  height: 48px;
  max-width: 48px;
  max-height: 48px;
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
  margin-bottom: 6px;
  flex-shrink: 0;
  display: block;
}
.roster-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.roster-pos {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.team-roster .roster-grid,
.star-teammates .roster-grid {
  grid-template-columns: repeat(auto-fill, minmax(76px, 92px));
}
@media (min-width: 1100px) {
  .team-roster .roster-grid,
  .star-teammates .roster-grid {
    grid-template-columns: repeat(8, 88px);
  }
}
@media (max-width: 768px) {
  .roster-grid,
  .team-roster .roster-grid,
  .star-teammates .roster-grid {
    grid-template-columns: repeat(auto-fill, minmax(68px, 80px));
    gap: 8px;
  }
  .roster-card {
    padding: 6px 4px 8px;
  }
  .roster-card .athlete-avatar--roster,
  .roster-card > img {
    width: 44px;
    height: 44px;
    max-width: 44px;
    max-height: 44px;
  }
  .roster-name { font-size: 11px; }
}
.roster-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.roster-inline a { color: var(--primary-hover); }

.star-profile {
  display: flex;
  gap: 28px;
  background: var(--card);
  padding: 28px 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  margin-bottom: 28px;
}
.star-avatar {
  width: 148px;
  height: 148px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--card-hover);
  box-shadow: var(--shadow);
}
.star-meta { list-style: none; margin: 14px 0; color: var(--muted); }
.empty-tip {
  color: var(--muted);
  padding: 48px 24px;
  text-align: center;
  background: var(--card);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border);
}

/* —— 页脚 —— */
.site-footer {
  background: #141518;
  color: var(--muted);
  margin-top: 56px;
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border);
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 80% 0%, rgba(24, 144, 255, 0.08), transparent);
  pointer-events: none;
}
.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 40px 20px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  position: relative;
  z-index: 1;
}
.footer-col h3 {
  color: #fff;
  margin-bottom: 14px;
  font-size: 16px;
  font-weight: 700;
}
.footer-about-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-bottom: 14px;
}
.footer-about-head h3 {
  margin-bottom: 0;
}
.footer-sitemap-link {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-hover);
  transition: color 0.15s ease-out;
}
.footer-sitemap-link:hover {
  color: var(--cyan);
}
.footer-sitemap-list {
  margin: -4px 0 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
}
.footer-sitemap-list a {
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  transition: color 0.15s ease-out, border-color 0.15s ease-out, background 0.15s ease-out;
}
.footer-sitemap-list a:hover {
  color: var(--primary-hover);
  border-color: rgba(24, 144, 255, 0.45);
  background: rgba(24, 144, 255, 0.1);
}

/* —— 赛程中心页 —— */
.scores-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 18px;
  align-items: start;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.scores-leagues {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 16px;
  min-width: 0;
  max-width: 100%;
}
.scores-leagues-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}
.scores-league-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.scores-league-item {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid transparent;
  color: var(--muted);
  text-decoration: none;
  transition: background 0.15s ease-out, border-color 0.15s ease-out, color 0.15s ease-out, transform 0.15s ease-out;
}
.scores-league-item:hover {
  color: #fff;
  background: rgba(24, 144, 255, 0.12);
  border-color: rgba(24, 144, 255, 0.35);
  transform: translateY(-1px);
}
.scores-league-item.is-active {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
}
.scores-right {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  max-width: 100%;
}
.scores-right-top {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}
.scores-right-top-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
}
.scores-date-form {
  margin: 0;
}
.scores-top-filter-form {
  margin: 0;
}
.scores-top-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.scores-top-filter-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
/* 赛程中心：自定义下拉（避免系统白底弹层） */
.scores-filter-item {
  position: relative;
}
.scores-filter-select {
  position: relative;
  display: inline-block;
}
.scores-filter-select__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 140px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.scores-filter-select__btn::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid rgba(255, 255, 255, 0.55);
  margin-left: 4px;
  transform: translateY(1px);
}
.scores-filter-select__btn:hover,
.scores-filter-select__btn[aria-expanded="true"] {
  border-color: rgba(24, 144, 255, 0.45);
  background: rgba(24, 144, 255, 0.1);
}
.scores-filter-select__menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 400;
  min-width: 100%;
  max-height: 280px;
  overflow-y: auto;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: #2b2d33;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
}
.scores-filter-select__menu[hidden] {
  display: none !important;
}
.scores-filter-select__option {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: rgba(255, 255, 255, 0.92);
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
}
.scores-filter-select__option:hover {
  background: rgba(24, 144, 255, 0.18);
  color: #fff;
}
.scores-filter-select__option.is-active {
  background: rgba(24, 144, 255, 0.28);
  color: #fff;
  font-weight: 600;
}
/* 保留原生 select 作降级（隐藏，由自定义 UI 提交） */
.scores-page select.scores-date-select,
.scores-page select.scores-status-select {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.scores-page select option {
  background: #2b2d33;
  color: #fff;
}
.scores-league-tag {
  margin-left: 6px;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 999px;
  color: var(--primary-hover);
  background: var(--primary-soft);
  border: 1px solid rgba(24, 144, 255, 0.28);
  font-weight: 700;
}
.scores-page {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: clip;
}
.scores-title {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 8px;
}
.scores-subtitle {
  color: var(--muted);
  margin-bottom: 14px;
  font-size: 14px;
}
.scores-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.scores-filter select,
.scores-filter input[type="date"] {
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}
.scores-list {
  display: grid;
  gap: 14px;
  min-width: 0;
  max-width: 100%;
}
.scores-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0 0;
  padding: 0 2px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}
.scores-section-title--live {
  color: #ff7875;
}
.scores-section-title--finished {
  color: var(--muted);
  margin-top: 10px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
}
.scores-section-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
}
.scores-smart-hint {
  margin: 0;
  width: 100%;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}
/* —— 赛程中心：日历 + 表格式单行 —— */
.scores-top-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
}
.scores-filter-select--date .scores-filter-select__btn {
  min-width: 120px;
}
.scores-calendar-panel {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 50;
  width: min(320px, calc(100vw - 24px));
  padding: 12px;
  background: #1a2030;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}
.scores-calendar-panel[hidden] {
  display: none !important;
}
.scores-calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-weight: 700;
  color: #fff;
}
.scores-calendar-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  color: var(--muted);
  border: 1px solid var(--border);
  background: transparent;
  font: inherit;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}
.scores-calendar-nav:hover {
  color: #fff;
  border-color: rgba(24, 144, 255, 0.5);
  background: rgba(24, 144, 255, 0.1);
}
.scores-calendar-weekdays,
.scores-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  text-align: center;
}
.scores-calendar-weekdays {
  margin-bottom: 6px;
  font-size: 12px;
  color: var(--muted);
}
.scores-calendar-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 4px 2px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #e8ecf4;
  cursor: pointer;
  font: inherit;
}
.scores-calendar-day--empty {
  pointer-events: none;
}
.scores-calendar-day--empty-day {
  opacity: 0.55;
}
.scores-calendar-day--empty-day .scores-calendar-day-cnt {
  display: none;
}
.scores-calendar-day.has-matches:hover,
.scores-calendar-day.scores-calendar-day--empty-day:hover {
  background: rgba(24, 144, 255, 0.15);
  opacity: 1;
}
.scores-calendar-day.is-today .scores-calendar-day-num {
  color: #69b1ff;
}
.scores-calendar-day.is-active {
  background: rgba(24, 144, 255, 0.35);
  color: #fff;
}
.scores-calendar-day-num {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
}
.scores-calendar-day-cnt {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.2;
}
.scores-calendar-foot {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.scores-calendar-today {
  border: none;
  background: none;
  color: #69b1ff;
  font-size: 13px;
  cursor: pointer;
  padding: 4px 8px;
}
.scores-calendar-today:hover {
  text-decoration: underline;
}
.scores-list--table {
  gap: 0;
}
.scores-table-head {
  display: grid;
  grid-template-columns: var(--scores-row-cols);
  gap: 8px;
  align-items: center;
  padding: 8px 12px;
  font-size: 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 10px 10px 0 0;
}
.scores-page {
  --scores-row-cols: 52px 44px 56px minmax(0, 1fr) 88px;
}
.scores-page.scores-page--all-leagues {
  --scores-row-cols: 56px 52px 44px 56px minmax(0, 1fr) 88px;
}
.scores-table-col--match {
  text-align: center;
}
.scores-date-title {
  margin: 16px 0 8px;
  padding: 0 4px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}
.scores-date-count {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}
.scores-date-block {
  border: 1px solid var(--border);
  border-radius: 0 0 10px 10px;
  overflow: hidden;
  margin-bottom: 8px;
}
.scores-date-block .scores-table-head {
  display: none;
}
.scores-date-block .scores-row:first-child {
  border-top: none;
}
.scores-row {
  position: relative;
  display: grid;
  grid-template-columns: var(--scores-row-cols);
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  background: var(--card);
  border-top: 1px solid var(--border);
  min-width: 0;
}
.scores-row-cell {
  font-size: 13px;
  color: var(--muted);
  min-width: 0;
}
.scores-row-competition {
  color: #b8c4d9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.scores-row-time {
  font-variant-numeric: tabular-nums;
  color: #fff;
}
.scores-row-status {
  justify-self: start;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 999px;
}
.scores-row-match {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.scores-row-team {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.scores-row-team--home {
  justify-content: flex-end;
  text-align: right;
}
.scores-row-team--away {
  justify-content: flex-start;
}
.scores-row-logo {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
}
.scores-row-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}
.scores-row-score {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-shrink: 0;
}
.scores-row-score strong {
  font-size: 20px;
  line-height: 1;
  color: var(--cyan);
  font-weight: 700;
}
.scores-row-score-sep {
  color: var(--muted);
  font-size: 14px;
}
.scores-row-score-vs {
  font-size: 12px;
  color: var(--muted);
}
.scores-row-actions {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
  flex-wrap: nowrap;
}
.scores-row-btn {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  padding: 4px 10px;
  font-size: 12px;
  border-radius: 6px;
  border: 1px solid rgba(24, 144, 255, 0.45);
  color: #69b1ff;
  background: rgba(24, 144, 255, 0.08);
}
.scores-row-btn:hover {
  background: rgba(24, 144, 255, 0.2);
  color: #fff;
}
.scores-row-btn--live {
  border-color: rgba(255, 77, 79, 0.5);
  color: #ff9c9e;
  background: rgba(255, 77, 79, 0.1);
}
.scores-row-league {
  font-size: 12px;
  color: #8fa3bf;
  white-space: nowrap;
}

.score-card {
  padding: 16px 18px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}
.score-card-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 10px;
}
.score-status {
  font-weight: 700;
  color: #fff;
  padding: 2px 8px;
  border-radius: 999px;
}
.score-status--live { background: #ff4d4f; }
.score-status--scheduled { background: rgba(255, 255, 255, 0.18); }
.score-status--finished { background: rgba(24, 144, 255, 0.5); }
.score-status--postponed,
.score-status--cancelled { background: rgba(255, 169, 64, 0.55); }
.score-teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
}
.score-team {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}
.score-team strong {
  font-size: 16px;
}
.score-team-name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.score-team-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.score-team-name a,
.score-team-name span {
  display: inline-block;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.score-team-name a {
  color: #fff;
}
.score-team-name a:hover {
  color: var(--primary-hover);
}
.score-team b {
  font-size: 28px;
  line-height: 1;
  color: var(--cyan);
}
.score-vs {
  color: var(--muted);
  font-size: 12px;
}
.score-streams {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.score-streams a {
  font-size: 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 10px;
  color: var(--muted);
}
.score-streams a:hover {
  color: var(--primary-hover);
  border-color: rgba(24, 144, 255, 0.45);
}
@media (max-width: 900px) {
  .scores-layout {
    grid-template-columns: 1fr;
  }
  .scores-right-top {
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (max-width: 768px) {
  .scores-title {
    font-size: 22px;
    margin-bottom: 4px;
  }
  .scores-layout {
    gap: 12px;
  }
  .scores-leagues {
    padding: 12px;
    overflow: hidden;
  }
  .scores-leagues-title {
    margin-bottom: 10px;
    font-size: 14px;
  }
  .scores-league-list {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    margin: 0 -4px;
    padding: 2px 4px 6px;
  }
  .scores-league-list::-webkit-scrollbar {
    display: none;
  }
  .scores-league-item {
    flex: 0 0 auto;
    scroll-snap-align: start;
    min-width: 68px;
    text-align: center;
    white-space: nowrap;
    padding: 9px 14px;
    border-radius: 999px;
    font-size: 14px;
  }
  .scores-right-top {
    padding: 12px;
  }
  .scores-top-filter-row {
    width: 100%;
    gap: 10px;
  }
  .scores-top-filter-item {
    flex: 1 1 0;
    min-width: 0;
  }
  .scores-filter-select {
    width: 100%;
  }
  .scores-filter-select__btn {
    width: 100%;
    min-width: 0;
    justify-content: space-between;
    font-size: 13px;
    padding: 9px 12px;
  }
  .scores-smart-hint {
    font-size: 11px;
    line-height: 1.45;
  }
  .score-card {
    padding: 12px 14px;
  }
  .score-card-head {
    gap: 6px 10px;
    font-size: 12px;
    margin-bottom: 8px;
  }
  .score-teams {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
  }
  .score-vs {
    align-self: center;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 0;
  }
  .score-team {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    min-width: 0;
  }
  .score-team strong {
    font-size: 14px;
    flex: 1;
    min-width: 0;
  }
  .score-team-name {
    flex: 1;
    min-width: 0;
  }
  .score-team-name a,
  .score-team-name span {
    max-width: none;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
    font-size: 14px;
  }
  .score-team-logo {
    width: 26px;
    height: 26px;
  }
  .score-team b {
    font-size: 22px;
    flex-shrink: 0;
    min-width: 1.2em;
    text-align: right;
  }
  .score-streams {
    gap: 6px;
  }
  .score-streams a {
    font-size: 11px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .scores-table-head {
    display: none;
  }
  .scores-row {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "comp status"
      "match match"
      "actions actions";
    gap: 6px 10px;
    padding: 12px;
  }
  .scores-row-competition { grid-area: comp; }
  .scores-row-time { display: none; }
  .scores-row-status { grid-area: status; justify-self: end; }
  .scores-row-match {
    grid-area: match;
    grid-template-columns: 1fr auto 1fr;
  }
  .scores-row-actions {
    grid-area: actions;
    justify-content: flex-start;
  }
  .scores-row-league {
    grid-column: 1 / -1;
    font-size: 11px;
  }
  .scores-page--all-leagues .scores-row {
    grid-template-areas:
      "league league"
      "comp status"
      "match match"
      "actions actions";
  }
  .scores-page--all-leagues .scores-row-league { grid-area: league; }
  .scores-calendar-panel {
    left: 0;
    right: auto;
    width: min(300px, 100%);
  }
}
.footer-col p { line-height: 1.75; font-size: 14px; }
.footer-links { color: var(--muted); }
.footer-brand {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
}
.footer-brand-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}
.footer-logo-img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  object-position: center center;
  border-radius: 14px;
  display: block;
  margin: 0 auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}
.footer-site-name {
  font-size: 20px;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
  white-space: nowrap;
}
.footer-about .footer-copy {
  margin-top: 18px;
  padding: 0;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.45);
  border: none;
}

/* —— 响应式 —— */
@media (max-width: 1100px) {
  .home-match-card {
    flex-basis: 208px;
    min-width: 208px;
  }
  .news-masonry--flow { column-count: 2; }
}
@media (max-width: 600px) {
  .home-matches-carousel {
    padding: 0 32px;
  }
  .home-matches-nav {
    width: 28px;
    height: 28px;
    font-size: 20px;
    border-radius: 6px;
  }
  .home-match-card {
    flex-basis: 186px;
    min-width: 186px;
  }
  .news-masonry--flow { column-count: 1; }
}

/* H5 首页瀑布流：缩略图固定高度，避免竖图过高 */
@media (max-width: 768px) {
  .news-masonry--flow .news-card-thumb {
    height: 140px;
    flex-shrink: 0;
    display: block;
    overflow: hidden;
  }
  .news-masonry--flow .news-card-thumb img,
  .news-masonry--flow .news-card:nth-child(6n + 1) .news-card-thumb img,
  .news-masonry--flow .news-card:nth-child(6n + 2) .news-card-thumb img,
  .news-masonry--flow .news-card:nth-child(6n + 3) .news-card-thumb img,
  .news-masonry--flow .news-card:nth-child(6n + 4) .news-card-thumb img,
  .news-masonry--flow .news-card:nth-child(6n + 5) .news-card-thumb img,
  .news-masonry--flow .news-card:nth-child(6n) .news-card-thumb img {
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: none;
    object-fit: cover;
    object-position: center;
  }
  .news-masonry--flow .news-card-thumb .article-cover-placeholder {
    height: 100%;
    min-height: 0;
  }
}

@media (max-width: 900px) {
  .home-main {
    display: block;
  }
  .home-main > .content-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .home-main > .content-layout > .latest-feed,
  .home-main > .content-layout > .sidebar-team-boards {
    grid-column: auto;
    grid-row: auto;
  }
  .content-layout,
  .article-layout {
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  .content-layout > *,
  .latest-feed,
  .sidebar-hot,
  .sidebar-team-boards {
    min-width: 0;
    max-width: 100%;
  }
  .sidebar-hot,
  .sidebar-team-boards,
  .article-sidebar { position: static; }
  .news-row-thumb {
    flex: 0 0 120px;
    width: 120px;
    max-width: 120px;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }
  .footer-brand {
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 8px;
  }
  .footer-brand-stack {
    align-items: center;
    width: 100%;
  }
}

@media (max-width: 768px) {
  :root {
    --header-h: 52px;
    --news-row-thumb-w: 100px;
    --news-row-thumb-h: auto;
  }

  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  :root {
    --layout-pad-x: 12px;
  }
  .site-wrap {
    padding: 16px 12px 32px;
    max-width: 100%;
    overflow-x: hidden;
  }

  .content-layout {
    gap: 20px;
    overflow-x: hidden;
  }

  .sidebar-team-boards { gap: 14px; width: 100%; }
  .team-board { padding: 16px 14px 14px; border-radius: 12px; }
  .team-board-title { font-size: 17px; margin-bottom: 14px; }
  .team-board-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-left: -2px;
    margin-right: -2px;
    padding: 0 2px;
  }
  .team-board-tabs::-webkit-scrollbar { display: none; }
  .team-board-tab { flex: 0 0 auto; min-width: 68px; padding: 9px 14px; font-size: 13px; }
  .team-board-subtab { font-size: 13px; }
  .team-board-table { font-size: 12px; }
  .team-board-table th.col-rank,
  .team-board-table td.col-rank { width: 8%; }
  .team-board-table th.col-stat,
  .team-board-table td.col-stat { width: 20%; }
  .team-board-table th.col-team,
  .team-board-table td.col-team { width: 72%; }
  .team-board-table td { padding: 10px 3px; }
  .team-board-logo,
  .team-board-logo--empty { width: 24px; height: 24px; }
  .team-board-name { font-size: 13px; max-width: none; }
  .team-board-team { gap: 8px; padding: 0 4px; }
  .team-board-table td.col-stat { font-size: 13px; }
  .news-list-rows,
  .news-row-item {
    max-width: 100%;
    min-width: 0;
  }
  .news-row-content {
    height: auto;
    min-height: 0;
    padding: 10px 10px 10px 8px;
  }

  /* 顶栏：汉堡菜单靠右 */
  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    flex-shrink: 0;
    margin-left: auto;
  }
  .header-search { display: none; }
  .site-header { position: sticky; }
  .header-inner {
    flex-wrap: wrap;
    align-items: center;
    height: var(--header-h);
    min-height: var(--header-h);
    padding: 0 12px;
    gap: 0;
  }
  .brand {
    flex: 1;
    min-width: 0;
  }
  .brand-logo { width: 42px; height: 42px; }
  .brand-text { font-size: 17px; letter-spacing: 0.05em; }
  .footer-brand {
    justify-content: center;
    align-items: center;
    padding-top: 4px;
  }
  .footer-brand-stack {
    align-items: center;
    gap: 12px;
  }
  .footer-logo-img {
    width: 72px;
    height: 72px;
    margin-left: auto;
    margin-right: auto;
  }
  .footer-site-name {
    width: 100%;
    text-align: center;
  }
  .top-nav {
    display: none;
    order: 10;
    width: 100%;
    flex: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: #141518;
    flex-direction: column;
    padding: 12px 16px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
    z-index: 150;
  }
  .top-nav.is-open { display: flex; }
  .top-nav > a,
  .top-nav-group-trigger {
    border-radius: var(--radius);
    width: 100%;
    justify-content: flex-start;
    font-size: 16px;
    padding: 12px 16px;
  }
  .top-nav-group-menu a {
    font-size: 15px;
    padding: 10px 8px;
  }
  .top-nav-group {
    width: 100%;
  }
  .top-nav-group > summary::after {
    margin-left: auto;
  }
  .top-nav-group-menu {
    position: static;
    margin-top: 6px;
    width: 100%;
    min-width: 0;
    max-width: none;
    box-shadow: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    background: rgba(255, 255, 255, 0.03);
    transform: none;
    opacity: 1;
    transition: none;
  }

  /* 首页幻灯：左文右图叠层 */
  .hero-slider {
    margin-bottom: 20px;
  }
  .hero-stage {
    min-height: 0;
    aspect-ratio: 20 / 11;
  }
  .hero-panel__media img {
    object-position: center center;
  }
  .hero-panel__overlay {
    background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.1) 0%,
      rgba(0, 0, 0, 0.45) 38%,
      rgba(0, 0, 0, 0.94) 100%
    );
  }
  .hero-panel__content {
    top: auto;
    max-width: none;
    width: 100%;
    padding: 12px 52px 46px;
    justify-content: flex-end;
    gap: 6px;
  }
  .hero-slider:has(.hero-nav) .hero-panel__content {
    padding-left: 52px;
    padding-right: 52px;
    max-width: none;
  }
  .hero-panel__title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    -webkit-line-clamp: 3;
  }
  .hero-panel__author {
    font-size: 11px;
    gap: 6px;
  }
  .hero-panel__avatar {
    width: 22px;
    height: 22px;
    font-size: 11px;
  }
  .hero-panel__author-name {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .hero-panel__cta {
    margin-top: 0;
    padding: 6px 12px;
    font-size: 11px;
  }
  .hero-panel__badge {
    top: 10px;
    right: 10px;
    padding: 4px 8px;
    font-size: 11px;
  }
  .hero-slider .hero-dots {
    bottom: 10px;
  }
  .hero-dot {
    width: 6px;
    height: 6px;
  }
  .hero-dot.is-active {
    width: 16px;
  }
  .hero-nav {
    width: 36px;
    height: 36px;
    font-size: 24px;
    padding-bottom: 2px;
  }
  .hero-nav--prev { left: 8px; }
  .hero-nav--next { right: 8px; }

  /* 列表：左小图右文，高度随内容 */
  .news-row-item {
    flex-direction: row;
    align-items: stretch;
    height: auto;
    min-height: 0;
  }
  .news-row-thumb {
    flex: 0 0 108px;
    width: 108px;
    height: auto;
    max-width: 108px;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    min-height: 100%;
  }
  .news-row-thumb img {
    flex: 1;
    width: 100%;
    height: 100%;
    min-height: 72px;
    object-fit: cover;
  }
  .news-row-thumb .article-cover-placeholder {
    flex: 1;
    width: 100%;
    height: 100%;
    min-height: 100%;
    border-radius: 0;
  }
  .news-row-thumb .article-cover-placeholder-text {
    font-size: 13px;
  }
  .news-row-content {
    height: auto;
    padding: 10px 12px;
    justify-content: flex-start;
  }
  .entity-hero-main {
    flex-wrap: nowrap;
    align-items: flex-start;
    margin-bottom: 12px;
  }
  .entity-hero-primary {
    gap: 14px;
    width: 100%;
  }
  .athlete-avatar--hero {
    width: 88px;
    height: 88px;
  }
  .athlete-avatar--hero .athlete-avatar__letter {
    font-size: 2rem;
  }
  .entity-hero-title-row {
    align-items: center;
    gap: 10px;
    margin-bottom: 2px;
  }
  .entity-hero-title-row .entity-league-logo {
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
  }
  .entity-hero-title-row .entity-league-logo-img {
    width: 40px;
    height: 40px;
  }
  .entity-hero-text h1,
  .entity-hero-title-row h1 {
    font-size: 1.2rem;
    margin-bottom: 4px;
    line-height: 1.25;
  }
  .entity-hero-sub {
    font-size: 13px;
    margin-bottom: 4px;
  }
  .entity-hero-tagline {
    font-size: 13px;
  }
  /* 旧结构：LOGO 仍在 hero-main 外侧时 */
  .entity-hero-main > .entity-league-logo {
    margin-left: 0;
    width: auto;
    display: block;
    padding: 0;
    background: transparent;
    border: none;
  }
  .entity-hero-main > .entity-league-logo .entity-league-logo-img {
    width: 40px;
    height: 40px;
  }
  .news-row-title {
    font-size: 15px;
    margin-bottom: 4px;
    -webkit-line-clamp: 2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .news-row-desc {
    font-size: 13px;
    -webkit-line-clamp: 1;
  }
  .news-row-meta {
    margin-bottom: 6px;
    gap: 6px;
  }

  .section-head-label { font-size: 18px; }
  .section-head-sub { font-size: 12px; }
  .article-main { padding: 22px 18px; }
  .article-header h1 { font-size: 24px; }

  .search-form--page {
    max-width: none;
    margin-bottom: 20px;
    padding-left: 16px;
  }
  .search-form--page input[type="search"] {
    font-size: 15px;
    padding: 12px 8px;
  }
  .search-form--page button {
    padding: 10px 20px;
    font-size: 14px;
  }
}

@media (max-width: 400px) {
  .hero-stage {
    aspect-ratio: 20 / 12;
  }
  .hero-panel__content {
    padding: 10px 46px 42px;
    gap: 5px;
  }
  .hero-slider:has(.hero-nav) .hero-panel__content {
    padding-left: 46px;
    padding-right: 46px;
  }
  .hero-panel__title {
    font-size: 14px;
    line-height: 1.38;
  }
  .hero-panel__author {
    font-size: 10px;
  }
  .hero-panel__avatar {
    width: 20px;
    height: 20px;
    font-size: 10px;
  }
  .hero-panel__cta {
    padding: 5px 10px;
    font-size: 10px;
  }
  .hero-panel__badge {
    top: 8px;
    right: 8px;
    padding: 3px 7px;
    font-size: 10px;
  }
  .hero-nav {
    width: 32px;
    height: 32px;
    font-size: 22px;
  }
}

/* —— TheSportsDB 升级：比赛详情 / 积分榜 / 搜索 —— */
.scores-page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.scores-page-links {
  display: flex;
  gap: 14px;
  font-size: 14px;
}
.scores-page-links a {
  color: var(--primary-hover);
}
.home-match-card {
  position: relative;
}
.home-match-card-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}
.score-card--link {
  position: relative;
}
.score-card-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}
.team-schedule-link {
  float: right;
  font-size: 12px;
  color: var(--primary-hover);
}
.score-card--link .score-team-name a,
.score-card--link .score-streams a {
  position: relative;
  z-index: 2;
}
.score-highlights-tag {
  margin-top: 10px;
  display: inline-block;
  font-size: 12px;
  color: #ffd666;
  border: 1px solid rgba(255, 214, 102, 0.35);
  border-radius: 999px;
  padding: 2px 10px;
}
.standings-table-wrap {
  overflow-x: auto;
  margin-bottom: 24px;
}
.standings-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.standings-table th,
.standings-table td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.standings-table th:nth-child(2),
.standings-table td:nth-child(2) {
  text-align: left;
}
.standings-team {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 140px;
}
.standings-badge {
  width: 24px;
  height: 24px;
  object-fit: contain;
}
.standings-season {
  color: var(--muted);
  font-size: 13px;
}
.standings-season--muted {
  opacity: 0.85;
}
.standings-page--basketball .scores-right {
  min-width: 0;
}

/* —— NBA 战绩榜（积分榜页 / 首页） —— */
.nba-standings-board {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.nba-standings-block {
  background: linear-gradient(165deg, #1a1d24 0%, #12141a 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 18px 16px 14px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28);
}
.nba-standings-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.nba-standings-block-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.04em;
}
.nba-standings-updated {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  white-space: nowrap;
}
.nba-standings-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.nba-standings-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 13px;
  color: #e8eaed;
}
.nba-standings-board--compact .nba-standings-table {
  min-width: 520px;
  font-size: 12px;
}
.nba-standings-table th,
.nba-standings-table td {
  padding: 10px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
  white-space: nowrap;
}
.nba-standings-table th {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.03);
}
.nba-standings-table th.col-team,
.nba-standings-table td.col-team {
  text-align: left;
}
.nba-standings-table tbody tr:hover {
  background: rgba(24, 144, 255, 0.06);
}
.nba-standings-table tbody tr:last-child td {
  border-bottom: none;
}
.nba-standings-team {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 100px;
}
.nba-standings-badge {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
}
.nba-standings-board--compact .nba-standings-badge {
  width: 22px;
  height: 22px;
}
.nba-standings-team a {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.nba-standings-team a:hover {
  color: #69b1ff;
}
.nba-rank {
  display: inline-block;
  min-width: 22px;
  font-weight: 700;
  font-style: italic;
  color: rgba(255, 255, 255, 0.75);
}
.nba-rank--top1 { color: #ff4d4f; }
.nba-rank--top2 { color: #faad14; }
.nba-rank--top3 { color: #69b1ff; }
.nba-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
}
.nba-tag--playoff {
  color: #91d5ff;
  background: rgba(24, 144, 255, 0.2);
  border: 1px solid rgba(24, 144, 255, 0.35);
}
.nba-tag--playin {
  color: #b7eb8f;
  background: rgba(82, 196, 26, 0.15);
  border: 1px solid rgba(82, 196, 26, 0.3);
}
.nba-tag--out {
  color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.home-standings-panel .nba-standings-block {
  padding: 14px 12px 10px;
  border-radius: 12px;
}
.home-standings-panel .nba-standings-block-title {
  font-size: 15px;
}
.home-standings-panel .nba-standings-board {
  gap: 16px;
}
.match-page .match-detail {
  max-width: 100%;
  overflow: hidden;
}
.match-detail-thumb {
  margin: 16px 0 20px;
  max-width: 100%;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  line-height: 0;
}
.match-detail-thumb img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  vertical-align: middle;
}
.match-detail img {
  max-width: 100%;
  height: auto;
}
.match-detail-scoreboard {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: center;
  margin: 20px 0;
  max-width: 100%;
}
.match-detail-team {
  text-align: center;
}
.match-detail-logo {
  width: 64px;
  height: 64px;
  margin-bottom: 8px;
}
.match-detail-points {
  display: block;
  font-size: 36px;
  margin-top: 8px;
}
.match-detail-vs {
  font-size: 18px;
  color: var(--muted);
}
.match-detail-block {
  margin: 20px 0;
}
.match-stats-table {
  width: 100%;
  border-collapse: collapse;
}
.match-stats-table th {
  text-align: center;
  font-weight: 600;
  padding: 8px;
}
.match-stats-table td {
  text-align: center;
  padding: 8px;
  width: 40%;
}
.match-timeline,
.match-lineup,
.match-tv-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.match-timeline li,
.match-lineup li,
.match-tv-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.search-section {
  margin-bottom: 28px;
}
.search-section-title {
  font-size: 18px;
  margin-bottom: 12px;
}
.search-entity-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.search-entity-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.search-muted {
  margin-left: 8px;
  color: var(--muted);
  font-size: 13px;
}
@media (max-width: 768px) {
  .standings-table {
    font-size: 12px;
  }
  .standings-table th,
  .standings-table td {
    padding: 8px 4px;
  }
  .match-page {
    min-width: 0;
    overflow-x: hidden;
  }
  .match-page .match-detail {
    padding-left: 0;
    padding-right: 0;
  }
  .match-detail-thumb {
    margin-left: 0;
    margin-right: 0;
    border-radius: var(--radius);
  }
  .match-detail-thumb img {
    width: 100%;
    max-width: 100%;
  }
  .match-detail-scoreboard {
    gap: 8px;
  }
  .match-detail-logo {
    width: 48px;
    height: 48px;
    max-width: 100%;
  }
  .match-detail-points {
    font-size: 28px;
  }
  .match-stats-table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}
