/* 自定义前台样式（与 index.html 的资源共存） */

:root{
  --primary: #16a34a;          /* 建议主色：运动绿（与后台一致） */
  --primary-2: #22c55e;
  --ink: #0f172a;
  --muted: #64748b;
  --bg: #f6f7fb;
  --card: #ffffff;
  --line: #e5e7eb;
  --soft: #eef2f7;
  --shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  --radius: 16px;
}

.custom-wrap {
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-size: 16px; /* 全站字体 +2 规格 */
  line-height: 1.55;
}

/* 让页面不要“全屏铺满”，PC 更舒服 */
.custom-page .wrap,
.front-header .wrap,
.custom-footer .wrap{
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
  box-sizing: border-box;
}

/* 顶部：参考图那种深色导航 */
.front-header{
  background: linear-gradient(180deg, #111827, #0b1220);
  border-bottom: 1px solid rgba(148,163,184,0.22);
  position: relative;
  z-index: 200; /* 确保下拉菜单压住正文 */
}
.front-nav{
  height: 56px;
  display:grid;
  grid-template-columns: auto 1fr auto;
  align-items:center;
  gap: 18px;
}
.front-left{
  display:flex;
  align-items:center;
  gap: 10px;
  min-width: 0;
}
.front-nav-top{
  display:grid;
  grid-template-columns: auto 1fr auto;
  align-items:center;
  gap: 18px;
}
.front-menu-top{ min-width:0; }
.front-menu--top{
  justify-content:flex-start;
  width: auto;
}
.front-menu--top .front-menu-link{
  height: 56px;
  padding: 0 14px;
}
.front-burger{
  display:none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(148,163,184,0.22);
  background: rgba(2,6,23,0.35);
  cursor:pointer;
  align-items:center;
  justify-content:center;
  padding:0;
}
.front-burger:hover{ background: rgba(148,163,184,0.14); }
.front-burger-ico{
  width: 20px;
  height: 20px;
  fill: #e2e8f0;
  display:block;
}
.front-brand{
  display:flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
  color:#f8fafc;
  font-weight:800;
  letter-spacing:-0.01em;
  height: 36px;
  align-self: center;
}
.front-brand-mark{
  width:30px;
  height:30px;
  border-radius:10px;
  background: linear-gradient(135deg, var(--primary-2), var(--primary));
  display:flex;
  align-items:center;
  justify-content:center;
  color:#052e16;
  font-weight:900;
  font-size:13px;
}
.front-brand-logo{
  width:30px;
  height:30px;
  border-radius:10px;
  object-fit:cover;
  display:block;
}
.front-brand-text{
  font-size:16px;
  white-space:nowrap;
  line-height: 1;
}

.front-nav-links{
  display:flex;
  align-items:center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  height: 36px;              /* 让中间导航有固定高度 */
}
.front-nav-item{ position:relative; }
.front-nav-link{
  display:inline-flex;
  align-items:center;
  gap:6px;
  height: 36px;              /* 统一与 logo/search 的垂直节奏 */
  padding: 0 10px;
  border-radius: 10px;
  text-decoration:none;
  color:#e2e8f0;
  font-size: 13px;
  font-weight: 600;
}
.front-nav-link:hover{
  background: rgba(148,163,184,0.14);
  color:#ffffff;
}
.front-caret{ font-size: 11px; color:#94a3b8; }
.front-nav-item.has-children:hover .front-nav-dropdown{ display:block; }
.front-nav-dropdown{
  display:none;
  position:absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 180px;
  background:#0b1220;
  border: 1px solid rgba(148,163,184,0.22);
  border-radius: 14px;
  padding: 8px;
  box-shadow: 0 18px 50px rgba(0,0,0,0.45);
  z-index: 80;
}
.front-nav-dropdown-link{
  display:block;
  padding: 8px 10px;
  border-radius: 10px;
  text-decoration:none;
  color:#e2e8f0;
  font-size: 13px;
}
.front-nav-dropdown-link:hover{
  background: rgba(148,163,184,0.14);
  color:#fff;
}

.front-nav-right{ display:flex; align-items:center; }

.front-ico{
  width: 18px;
  height: 18px;
  fill: currentColor;
  color: #e2e8f0;
  display:block;
}
/* PC 搜索框已移除 */

/* Mobile 搜索按钮/弹层已移除 */

/* 登录按钮已移除 */

/* 多语言下拉已移除 */

/* 二级菜单条（参考图那种） */
.front-menu{
  list-style:none;
  display:flex;
  align-items:stretch;
  justify-content:flex-start;
  gap: 12px; /* 导航之间间隔更大 */
  padding: 0;
  margin: 0;
  width: 100%;
  overflow-x:auto;
  scrollbar-width:none;
  -webkit-overflow-scrolling:touch;
}
.front-menu::-webkit-scrollbar{ display:none; }
.front-menu-item{
  position: relative;
  display:flex;
  align-items:stretch;
}
.front-menu-link{
  display:flex;
  align-items:center;
  height: 56px;
  padding: 0 16px;
  color:#e2e8f0;
  text-decoration:none;
  font-size: 17px;
  font-weight: 800;
  border-bottom: 2px solid transparent;
}
.front-menu-logo{
  width: 18px;
  height: 18px;
  border-radius: 6px;
  object-fit: cover;
  flex: 0 0 auto;
}
.front-menu-item:hover .front-menu-link{
  background: rgba(148,163,184,0.10);
  border-bottom-color: rgba(148,163,184,0.22);
}
.front-menu-item.active .front-menu-link{
  border-bottom-color: rgba(34,197,94,.85);
}
.front-menu-item.has-children:hover .front-menu-dropdown,
.front-menu-item.has-children:focus-within .front-menu-dropdown{
  display:block;
}
.front-menu-dropdown{
  display:none;
  position:absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background:#0b1220;
  border: 1px solid rgba(148,163,184,0.22);
  border-radius: 14px;
  padding: 8px;
  box-shadow: 0 18px 50px rgba(0,0,0,0.45);
  z-index: 999;
  margin-top: 8px;
}
.front-menu-dropdown::before{
  content:'';
  position:absolute;
  left: 0;
  right: 0;
  top: -8px;
  height: 14px; /* hover 桥（更大），避免鼠标移动时菜单闪退 */
}
.front-menu-dropdown-link{
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  text-decoration:none;
  color:#e2e8f0;
  font-size: 16px;
  font-weight: 700;
}
.front-menu-dropdown-link:hover{ background: rgba(148,163,184,0.14); color:#fff; }

@media (min-width: 769px){
  /* PC：顶部菜单在 logo 与搜索之间，贴近 logo */
  .front-nav-top{
    grid-template-columns: auto 1fr auto;
  }
  .front-menu--top{
    margin-left: 6px; /* 减少 logo 与“首页”的间隔 */
  }
  .front-menu{
    justify-content:flex-start;
    overflow: visible; /* 允许下拉菜单显示（避免被 scroll 容器裁剪） */
  }
}

/* 让“近期赛程”正文区域里的比赛更像小卡片 */
.front-day-body{
  padding: 10px 12px 14px;
}
.front-match{
  background: #ffffff;
  border: 1px solid rgba(226,232,240,0.95);
  box-shadow: 0 8px 22px rgba(15,23,42,0.06);
  border-radius: 14px;
  margin-bottom: 10px;
}
.front-match:hover{
  background: #ffffff;
  border-color: rgba(148,163,184,0.55);
}

/* League page UI */
.league-top{
  display:grid;
  grid-template-columns: 260px 1fr 220px;
  gap: 14px;
  align-items:start;
  margin: 10px 0 14px;
}
.league-top-left{
  display:flex;
  align-items:center;
  gap: 12px;
}
.league-logo{
  width: 44px;
  height: 44px;
  display:block;
}
.league-title{ font-size: 22px; font-weight: 900; color: var(--ink); letter-spacing:-0.02em; }
.league-sub{ margin-top: 4px; color: var(--muted); font-size: 13px; }

.league-round-grid{
  background: #fff;
  border: 1px solid rgba(226,232,240,0.9);
  border-radius: var(--radius);
  box-shadow: 0 10px 24px rgba(15,23,42,0.06);
  padding: 10px 12px;
  display:flex;
  flex-wrap:wrap;
  gap: 8px 10px;
  align-items:center;
}
.league-round-head{
  display:flex;
  align-items:center;
  gap: 12px;
}
.league-round-label{
  font-weight: 900;
  color: var(--ink);
  font-size: 14px;
  white-space: nowrap;
}
.league-round-num{
  min-width: 34px;
  height: 30px;
  padding: 0 8px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius: 10px;
  text-decoration:none;
  color: var(--ink);
  font-weight: 800;
  font-size: 13px;
  border: 1px solid transparent;
  white-space: nowrap;
}
.league-round-num:hover{ background: #f1f5f9; }
.league-round-num.active{
  background: rgba(34,197,94,.10);
  border-color: rgba(34,197,94,.35);
}

.league-team-dd{ position: relative; display:flex; justify-content:flex-end; }
.league-team-btn{
  height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border:none;
  background: #60a5fa;
  color:#fff;
  font-weight: 900;
  cursor:pointer;
}
.league-team-btn:hover{ filter: brightness(0.98); }
.league-team-panel{
  display:none;
  position:absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(720px, calc(100vw - 24px));
  background:#fff;
  border: 1px solid rgba(226,232,240,0.9);
  border-radius: var(--radius);
  box-shadow: 0 18px 50px rgba(15,23,42,0.18);
  padding: 12px;
  z-index: 500;
}
.league-team-panel::before{
  content:'';
  position:absolute;
  left: 0;
  right: 0;
  top: -14px;
  height: 14px; /* hover 桥：从按钮移动到面板不丢 hover */
}
.league-team-dd:hover .league-team-panel{ display:block; }
.league-team-dd.is-open .league-team-panel{ display:block; }
.league-team-grid{
  display:grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px 10px;
}
.league-team-item{
  text-decoration:none;
  color: var(--ink);
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 14px;
}
.league-team-item:hover{ background:#f8fafc; }
.league-team-logo{ width: 26px; height: 26px; object-fit:contain; }
.league-team-name{ font-size: 13px; font-weight: 800; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

@media (max-width: 768px){
  .league-top{ grid-template-columns: 1fr; }
  .league-team-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Mobile Drawer */
.front-drawer-overlay{
  position: fixed;
  inset: 0;
  background: rgba(2,6,23,0.62);
  backdrop-filter: blur(4px);
  z-index: 90;
  opacity: 0;
  transition: opacity .18s ease;
}
.front-drawer-overlay.show{ opacity: 1; }
.front-drawer{
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 320px;
  max-width: calc(100vw - 44px);
  background: linear-gradient(180deg, #0b1220, #0a0f1c);
  border-right: 1px solid rgba(148,163,184,0.22);
  z-index: 100;
  transform: translateX(-102%);
  transition: transform .18s ease;
  display:flex;
  flex-direction: column;
}
.front-drawer.open{ transform: translateX(0); }
.front-drawer-head{
  height: 56px;
  display:flex;
  align-items:center;
  justify-content: space-between;
  padding: 0 14px;
  border-bottom: 1px solid rgba(148,163,184,0.18);
}
.front-drawer-brand{
  display:flex;
  align-items:center;
  gap: 10px;
  color:#f8fafc;
  font-weight: 900;
}
.front-drawer-close{
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(148,163,184,0.22);
  background: rgba(2,6,23,0.35);
  color:#e2e8f0;
  cursor:pointer;
  font-size: 20px;
  line-height: 1;
}
.front-drawer-body{
  padding: 10px 10px 18px;
  overflow:auto;
}
.front-drawer-link,
.front-drawer-sublink{
  display:block;
  text-decoration:none;
  color:#e2e8f0;
  padding: 12px 12px;
  border-radius: 14px;
  font-weight: 800;
}
.front-drawer-link:hover,
.front-drawer-sublink:hover{ background: rgba(148,163,184,0.14); color:#fff; }
.front-drawer-sublink{
  margin-left: 10px;
  font-weight: 700;
  color:#cbd5e1;
  padding: 10px 12px;
}
.front-drawer-sep{
  height: 1px;
  background: rgba(148,163,184,0.16);
  margin: 10px 6px;
  border-radius: 999px;
}
.front-lock{ overflow: hidden; }

/* 旧版顶部菜单样式已替换为 front-header 系列（保留历史代码时可移除） */

.custom-page {
  padding: 22px 0 54px;
}

/* 新首页：参考图那种“标题 + 简介 + 筛选面板 + 按天列表” */
.front-hero{
  /* 与 .wrap 的左右 padding 对齐（不要额外缩进/居中） */
  padding: 18px 0 14px;
  text-align: left;
}
.front-hero-title{
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.front-hero-sub{
  margin-top: 8px;
  max-width: 780px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.front-panel{
  margin-top: 10px;
  background: var(--card);
  border: 1px solid rgba(226,232,240,0.9);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px 14px 12px;
}

.front-controls{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px 12px;
}
.front-control{
  display:flex;
  align-items:center;
  gap:8px;
}
.front-label{ font-size: 13px; color: var(--muted); }
.front-input{
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 10px;
  background:#fff;
  outline:none;
  font-size: 13px;
}
.front-input:focus{
  border-color: rgba(34,197,94,.55);
  box-shadow: 0 0 0 3px rgba(34,197,94,.10);
}
.front-btn{
  border: none;
  border-radius: 12px;
  padding: 9px 14px;
  background: linear-gradient(135deg, var(--primary-2), var(--primary));
  color:#fff;
  font-weight: 700;
  cursor:pointer;
}
.front-btn:disabled{ opacity:.6; cursor:not-allowed; }

.front-range{ flex: 1 1 360px; }
.front-pill{
  border: 1px solid var(--line);
  background:#fff;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 12px;
  color: var(--muted);
  cursor:pointer;
}
.front-pill.active{
  color:#14532d;
  border-color: rgba(34,197,94,.35);
  box-shadow: 0 0 0 2px rgba(34,197,94,.12);
}

.front-tabs{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-top: 12px;
}
.front-tab{
  border:1px solid var(--line);
  background:#fff;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  color: var(--ink);
  cursor:pointer;
}
.front-tab.active{
  border-color: rgba(34,197,94,.35);
  box-shadow: 0 0 0 2px rgba(34,197,94,.12);
}

.front-list{ margin-top: 14px; }
.front-day{
  background: var(--card);
  border: 1px solid rgba(226,232,240,0.9);
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(15,23,42,0.06);
  overflow: hidden;
  margin-bottom: 12px;
}
.front-day-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 12px 14px;
  background: linear-gradient(180deg,#ffffff,#fbfcff);
  border-bottom: 1px solid #eef2f7;
}
.front-day-title{ font-weight: 800; color: var(--ink); }
.front-day-count{ color: var(--muted); font-size: 12px; }
.front-day-body{ padding: 6px 10px 10px; }

.front-match{
  display:grid;
  grid-template-columns: 60px 1fr 220px 96px;
  gap: 10px 12px;
  align-items:center;
  padding: 10px 8px;
  border-radius: 14px;
}
.front-match:hover{ background:#f8fafc; }
.front-time{ font-variant-numeric: tabular-nums; color: var(--muted); font-size: 15px; }
.front-teams{
  display:grid;
  grid-template-columns: 1fr 110px 1fr;
  align-items:center;
  gap: 10px;
  min-width:0;
}
.front-team{ display:flex; align-items:center; gap:8px; min-width:0; }
.front-team-right{ justify-content:flex-end; }
.front-logo{ width:24px; height:24px; object-fit:contain; border-radius:7px; background:#fff; border:1px solid #e5e7eb; padding:2px; }
.front-team-name{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-weight: 600; color: var(--ink); }
.front-score{
  justify-self:center;
  font-weight: 800;
  background:#0f172a;
  color:#fff;
  border-radius: 12px;
  padding: 6px 10px;
  font-variant-numeric: tabular-nums;
}
.front-meta{
  display:flex;
  gap: 8px;
  align-items:center;
  color: var(--muted);
  font-size: 14px;
}
.front-round{ max-width: 150px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.front-actions-col{ display:flex; justify-content:flex-end; gap: 10px; flex-wrap: wrap; }
.front-action{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  text-decoration:none;
  white-space: nowrap;
}
.front-action-live{
  /* 参考图：橙色胶囊按钮 */
  border: 1px solid rgba(245,158,11,.35);
  color:#ffffff;
  background: #f59e0b;
  box-shadow: 0 10px 20px rgba(245,158,11,.22);
}
.front-action-live:hover{ filter: brightness(0.98); }
.front-action-none{
  border:1px solid rgba(148,163,184,.25);
  color: var(--muted);
  background: rgba(148,163,184,.08);
}

/* 表格里的“无赛况”不需要胶囊圈起来 */
.custom-table .front-action-none{
  border: 0;
  background: transparent;
  padding: 0;
  border-radius: 0;
  height: auto;
  color:#94a3b8;
  font-weight: 700;
}

.front-empty{
  margin-top: 12px;
  background: var(--card);
  border: 1px dashed rgba(148,163,184,.55);
  border-radius: 16px;
  padding: 22px 14px;
  text-align:center;
  color: var(--muted);
}
.front-empty-error{ color:#b91c1c; border-color: rgba(185,28,28,.35); }

.custom-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  overflow: hidden;
  border: 1px solid rgba(226,232,240,0.9);
}

.custom-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid #eef2f7;
  background: linear-gradient(180deg, #ffffff, #fbfcff);
}

.custom-title {
  font-size: 18px;
  font-weight: 600;
  color: #0f172a;
}

.custom-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #334155;
}

.custom-toolbar label{
  color: var(--muted);
  font-size: 13px;
}

.custom-toolbar input[type="date"] {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 8px 10px;
  background: #fff;
  outline: none;
}
.custom-toolbar input[type="date"]:focus {
  border-color: var(--primary-2);
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.12);
}

.custom-btn {
  border: none;
  border-radius: 10px;
  padding: 8px 14px;
  background: linear-gradient(135deg, var(--primary-2), var(--primary));
  color: #fff;
  cursor: pointer;
  font-weight: 600;
}
.custom-btn:hover { opacity: 0.96; }

.custom-table-wrap {
  padding: 10px 18px 18px;
  overflow: auto;
}

.custom-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 920px;
}

.custom-table thead th {
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  padding: 10px 12px;
  border-bottom: 1px solid #eef2f7;
  background: #fbfcfe;
}

/* 赛事/轮次/球队页：表头按截图的绿色风格 */
.league-table .custom-table thead th{
  background: #67d2c3;
  color:#ffffff;
  border-bottom: none;
}
.league-table .custom-table thead th:first-child{
  border-top-left-radius: 10px;
}
.league-table .custom-table thead th:last-child{
  border-top-right-radius: 10px;
}

.custom-teamcell{
  display:flex;
  align-items:center;
  gap:10px;
}
.custom-teamcell img{
  width: 22px;
  height: 22px;
  object-fit: contain;
}
.custom-teamcell .name{
  font-weight: 600;
  color:#0f172a;
}

.league-subnav{
  display:flex;
  gap: 14px;
  align-items:center;
  padding: 10px 0 2px;
  margin-bottom: 10px;
}
.league-subnav-item{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 8px 12px;
  border-radius: 999px;
  text-decoration:none;
  color: #0f172a;
  background: #fff;
  border: 1px solid #e5e7eb;
  font-weight: 800;
  font-size: 14px;
}
.league-subnav-item:hover{ background: #f8fafc; }
.league-subnav-item.active{
  background: rgba(34,197,94,.12);
  border-color: rgba(34,197,94,.35);
  color:#14532d;
}

.league-rule{
  margin-top: 18px;
  border: 1px solid #eef2f7;
  border-radius: 14px;
  background: #fff;
  padding: 14px 16px;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.06);
}
.league-table.custom-table-wrap{
  background:#fff;
  border: 1px solid #eef2f7;
  border-radius: 14px;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.06);
}
.league-table.custom-table-wrap .custom-table thead th{
  position: sticky;
  top: 0;
  z-index: 2;
}
.league-table.custom-table-wrap .custom-table{
  min-width: 880px;
}

@media (max-width: 768px){
  .league-subnav{
    gap: 10px;
    flex-wrap: wrap;
  }
  .league-subnav-item{
    font-size: 13px;
    padding: 7px 10px;
  }
}
.league-rule-title{
  font-size: 16px;
  font-weight: 900;
  color:#0f172a;
  margin: 0 0 10px;
}
.league-rule-inner p{
  margin: 6px 0;
  color:#334155;
  font-size: 13px;
  line-height: 1.7;
}
.league-rule-subtitle{
  margin-top: 12px;
  font-weight: 900;
  color:#0f172a;
}

.custom-playercell{
  display:flex;
  align-items:center;
  gap:10px;
}
.custom-playercell .avatar{
  width: 24px;
  height: 24px;
  border-radius: 999px;
  object-fit: cover;
  background:#f1f5f9;
  border: 1px solid #e5e7eb;
}
.custom-playercell .name{
  font-weight: 700;
  color:#0f172a;
}

.scorers-cards{ display:none; }
.scorer-card{
  background:#fff;
  border:1px solid rgba(226,232,240,0.95);
  box-shadow:0 8px 22px rgba(15,23,42,0.06);
  border-radius:14px;
  padding:12px;
  margin-bottom:10px;
}
.scorer-card-head{
  display:flex;
  align-items:center;
  gap:10px;
}
.scorer-rank{
  min-width:36px;
  height:28px;
  border-radius:999px;
  background:#0f172a;
  color:#fff;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-weight:800;
  font-size:12px;
}
.scorer-rank.rank-gold{
  background: linear-gradient(135deg, #f59e0b, #facc15);
  color:#3b2f05;
  box-shadow: 0 8px 18px rgba(245,158,11,.32);
}
.scorer-rank.rank-silver{
  background: linear-gradient(135deg, #cbd5e1, #e2e8f0);
  color:#1e293b;
  box-shadow: 0 8px 18px rgba(148,163,184,.25);
}
.scorer-rank.rank-bronze{
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color:#fff7ed;
  box-shadow: 0 8px 18px rgba(217,119,6,.28);
}
.scorer-team{ margin-top:8px; }
.scorer-stats{
  margin-top:10px;
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:8px;
}
.scorer-stat{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  padding:7px 8px;
  border-radius:10px;
  background:#f8fafc;
  font-size:12px;
  color:#475569;
}
.scorer-stat b{
  color:#0f172a;
  font-weight:800;
  font-size:13px;
}
.goal-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.1;
  margin-right: 4px;
  border:1px solid transparent;
}
.goal-badge.goal-hot{
  background:#fef2f2;
  border-color:#fecaca;
  color:#b91c1c;
}
.goal-badge.goal-mid{
  background:#ecfdf5;
  border-color:#bbf7d0;
  color:#15803d;
}
.goal-badge.goal-low{
  background:#eff6ff;
  border-color:#bfdbfe;
  color:#1d4ed8;
}

.league-pager{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  margin: 14px 0 0;
}
.league-pager-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 8px 12px;
  border-radius: 10px;
  text-decoration:none;
  border: 1px solid #e5e7eb;
  background:#fff;
  color:#0f172a;
  font-weight: 800;
  font-size: 13px;
}
.league-pager-btn:hover{ background:#f8fafc; }
.league-pager-btn.disabled{
  opacity:.45;
  pointer-events:none;
}
.league-pager-text{
  color:#64748b;
  font-weight: 800;
  font-size: 13px;
}

@media (min-width: 769px){
  /* PC：仅赛事/轮次/球队页用表格，隐藏卡片列表（首页仍需显示列表） */
  .custom-page--league .front-day-body{ display:none; }
}

.custom-table tbody td {
  padding: 12px 12px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 14px;
  color: #0f172a;
}

.custom-table tbody tr:hover td {
  background: #f8fafc;
}

.custom-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}
.badge-upcoming { background: #eef2ff; color: #3730a3; }
.badge-live { background: #ecfdf5; color: #166534; }
.badge-finished { background: #f1f5f9; color: #0f172a; }
.badge-postponed { background: #fff7ed; color: #9a3412; }

.custom-score {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}
.custom-score .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 24px;
  border-radius: 8px;
  background: #0f172a;
  color: #fff;
  font-size: 13px;
}
.custom-score .sep { color: #94a3b8; font-weight: 600; }

/* 赛事 Tabs + 日期范围 */
.custom-tabs {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  padding: 12px 18px 0;
}
.custom-tab {
  border:1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  color: var(--ink);
  cursor:pointer;
  user-select:none;
}
.custom-tab.active {
  border-color: rgba(34,197,94,.35);
  box-shadow: 0 0 0 2px rgba(34,197,94,.12);
}
.custom-range {
  display:flex;
  gap:8px;
  padding: 10px 18px 0;
  padding-bottom: 6px;
}
.custom-range .custom-pill {
  border:1px solid var(--line);
  background:#fff;
  border-radius:999px;
  padding: 6px 10px;
  font-size: 12px;
  color: var(--muted);
  cursor:pointer;
}
.custom-range .custom-pill.active {
  color: #14532d;
  border-color: rgba(34,197,94,.35);
  box-shadow: 0 0 0 2px rgba(34,197,94,.12);
}

/* 表格中球队展示 */
.team { display:inline-flex; align-items:center; gap:8px; }
.team-logo { width:24px; height:24px; object-fit:contain; border-radius:7px; background:#fff; border:1px solid #e5e7eb; padding:2px; }
.team-name { white-space:nowrap; }
.custom-live{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(34,197,94,.35);
  color:#166534;
  padding:2px 8px;
  border-radius:999px;
  text-decoration:none;
  font-size:12px;
  font-weight:600;
}

/* 手机端：卡片式赛程 */
.custom-cards { display:none; padding: 10px 18px 18px; }
.match-card{
  background: var(--card);
  border:1px solid #eef2f7;
  border-radius: 14px;
  padding: 12px 12px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  margin-bottom: 10px;
}
.match-top{ display:flex; align-items:center; justify-content:space-between; gap:10px; }
.match-time{ font-size:12px; color: var(--muted); }
.match-meta{ display:flex; gap:8px; align-items:center; }
.match-mid{
  display:grid;
  grid-template-columns: 1fr auto 1fr;
  align-items:center;
  gap:10px;
  margin-top:10px;
}
.team-row{ display:flex; align-items:center; gap:8px; min-width:0; }
.team-row-right{ justify-content:flex-end; }
.match-score{
  font-weight:800;
  background:#0f172a;
  color:#fff;
  border-radius:12px;
  padding: 6px 10px;
  font-size:14px;
  font-variant-numeric: tabular-nums;
  min-width: 64px;        /* 让所有比分胶囊同宽，视觉对齐 */
  text-align:center;
}
.match-bottom{ margin-top:8px; font-size:12px; color: var(--muted); }
.match-empty{ padding: 18px; text-align:center; color: var(--muted); }
.match-empty-error{ color:#b91c1c; }

/* Footer */
.custom-footer{
  border-top:1px solid rgba(148,163,184,.25);
  background:#0b1220;
  color:#cbd5e1;
  padding: 22px 0;
}
.custom-footer a{ color:#e2e8f0; text-decoration:none; margin-left:14px; }
.custom-footer a:hover{ text-decoration:underline; }
.custom-footer-inner{ display:flex; align-items:flex-start; justify-content:space-between; gap:16px; }
.custom-footer-title{ font-weight:700; color:#f8fafc; }
.custom-footer-desc{ font-size:12px; color:#94a3b8; margin-top:4px; }
.custom-footer-copy{ margin-top:14px; font-size:12px; color:#64748b; }

@media (max-width: 768px){
  .custom-toolbar{ flex-wrap:wrap; justify-content:flex-start; }
  .custom-table{ min-width: 0; }
  .custom-table-wrap{ display:none; }
  .custom-cards{ display:block; }
  .front-burger{ display:inline-flex; }
  .front-left{ width: 100%; }
  .front-nav{
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .front-menu-top{ display:none; } /* 手机端用抽屉菜单 */
  .front-nav-right{
    display:none; /* 手机端隐藏桌面搜索框 */
  }
  .front-search{ display:none; }

  /* Tabs 在手机上横向可滚动，更像原生 App */
  .custom-tabs{
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .custom-tabs::-webkit-scrollbar{ display:none; }
  .custom-tab{ white-space: nowrap; }

  .custom-range{ overflow-x:auto; -webkit-overflow-scrolling: touch; scrollbar-width:none; }
  .custom-range::-webkit-scrollbar{ display:none; }

  .custom-card-header{
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .custom-title{ font-size: 17px; }

  .front-hero-title{ font-size: 22px; }
  .front-panel{ padding: 12px 12px 10px; }
  .front-tabs{
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .front-tabs::-webkit-scrollbar{ display:none; }
  .front-tab{ white-space: nowrap; }

  .front-range{ overflow-x:auto; -webkit-overflow-scrolling: touch; scrollbar-width:none; }
  .front-range::-webkit-scrollbar{ display:none; }

  .front-list{ display:none; } /* 首页手机用卡片 */
  .custom-page--league .front-list{ display:block; } /* 联赛/轮次/球队页手机显示分组赛程 */
  .custom-page--league .league-table.custom-table-wrap{ display:none; } /* 联赛页手机隐藏表格，仅保留小卡片 */
  .custom-page--league .front-day-body{ display:block; }
  .custom-page--league .front-match{
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 12px 10px;
  }
  .custom-page--league .front-time{
    font-size: 14px;
  }
  .custom-page--league .front-teams{
    grid-template-columns: 1fr auto 1fr;
    gap: 8px;
  }
  .custom-page--league .front-team-name{
    font-size: 14px;
  }
  .custom-page--league .front-score{
    padding: 5px 10px;
    font-size: 13px;
    line-height: 1;
  }
  .custom-page--league .front-meta{
    font-size: 12px;
  }
  .custom-page--league .front-actions-col{
    justify-content: flex-start;
  }

  /* 积分榜/射手榜（非联赛页）仍显示表格，可横向滚动 */
  .custom-page:not(.custom-page--league) .league-table.custom-table-wrap{ display:block; }
  .custom-page:not(.custom-page--league) .league-table.custom-table-wrap .custom-table{ min-width: 880px; }

  /* 射手榜移动端：切换为卡片，保留全部数据字段 */
  .custom-page--scorers .league-table.custom-table-wrap{ display:none; }
  .custom-page--scorers .scorers-cards{ display:block; }
  .custom-page--scorers .custom-playercell,
  .custom-page--scorers .custom-teamcell{ min-width:0; gap:7px; }
  .custom-page--scorers .custom-playercell .avatar{ width:22px; height:22px; }
  .custom-page--scorers .custom-playercell .name,
  .custom-page--scorers .custom-teamcell .name{
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
  }

  /* 移动端禁用 hover 悬浮展开，避免点击后“粘住不收起” */
  .league-team-dd:hover .league-team-panel{ display:none; }
  .league-team-dd.is-open .league-team-panel{ display:block !important; }
}

@media (min-width: 1200px){
  .custom-page{ padding-top: 26px; }
  .custom-card{ border-radius: 16px; }
  .custom-card-header{ padding: 18px 20px; }
  .custom-table-wrap{ padding: 12px 20px 22px; }
}

/* 桌面端兜底：强制显示表格、隐藏卡片（避免误触发移动端样式） */
@media (min-width: 769px){
  .custom-table-wrap{ display:block; }
  .custom-cards{ display:none; }
  .front-menu-top{ display:block; }
}

/* 桌面设备兜底（即便窗口很窄，也按 PC 交互显示） */
@media (hover: hover) and (pointer: fine){
  .front-burger{ display:none !important; }
  .front-menu-top{ display:block !important; }
  .front-nav-right{ display:flex !important; }
  .front-search{ display:flex !important; }

  /* 赛程首页：PC 默认用列表/表格展示 */
  .front-list{ display:block !important; }
  .custom-cards{ display:none !important; }
}

/* 首页 PC：日期小卡片严格列间距对齐（主队/比分/客队） */
.front-day .custom-table thead th,
.front-day .custom-table tbody td{
  padding-top: 8px !important;
  padding-bottom: 8px !important;
  padding-left: 12px !important;
  padding-right: 12px !important;
}
.front-day .custom-table thead th:nth-child(1),
.front-day .custom-table tbody td:nth-child(1){ width: 90px !important; }  /* 时间 */
.front-day .custom-table thead th:nth-child(2),
.front-day .custom-table tbody td:nth-child(2){ width: 140px !important; } /* 轮次 */
.front-day .custom-table thead th:nth-child(3),
.front-day .custom-table tbody td:nth-child(3){ width: 90px !important; }  /* 状态 */
.front-day .custom-table thead th:nth-child(4),
.front-day .custom-table tbody td:nth-child(4){
  padding-right: 0 !important; /* 主队贴比分列边界 */
}
.front-day .custom-table thead th:nth-child(4),
.front-day .custom-table tbody td:nth-child(4){ width: 180px !important; } /* 主队 */
.front-day .custom-table thead th:nth-child(5),
.front-day .custom-table tbody td:nth-child(5){
  padding-left: 0 !important;  /* 比分贴两侧边界 */
  padding-right: 0 !important;
}
/* 比分列宽：让“比分 -> 客队”的列间距 = 180px */
.front-day .custom-table thead th:nth-child(5),
.front-day .custom-table tbody td:nth-child(5){ width: 180px !important; }
/* 让表头“比分”文字与该列数字居中对齐 */
.front-day .custom-table thead th:nth-child(5){
  text-align: center !important;
}
.front-day .custom-table tbody td:nth-child(5){
  text-align: center !important;
}
.front-day .custom-table thead th:nth-child(6),
.front-day .custom-table tbody td:nth-child(6){
  padding-left: 120px !important; /* 增大“比分 -> 客队”间距 */
}
.front-day .custom-table thead th:nth-child(6),
.front-day .custom-table tbody td:nth-child(6){ width: 260px !important; } /* 客队 */
.front-day .custom-table thead th:nth-child(7),
.front-day .custom-table tbody td:nth-child(7){ width: 90px !important; }  /* 赛况 */
.front-day .custom-table tbody td:nth-child(4) .custom-teamcell,
.front-day .custom-table tbody td:nth-child(6) .custom-teamcell{
  width: 100% !important; /* 让 justify-content 生效并贴近边界 */
}
.front-day .custom-table tbody td:nth-child(6) .custom-teamcell{
  /* 客队列：队徽在队名前面 */
  flex-direction: row;
  justify-content: flex-start; /* 客队文字起点贴左边界，和主队贴右边界形成对称 */
}
.front-day .custom-table tbody td:nth-child(5) .custom-score{
  width: 100% !important;
  display: flex !important;
  justify-content: center !important;
}
.front-day .custom-teamcell{
  gap: 6px !important;
}

