/* ============ 球场之夜 · 转播图形风格 ============ */
:root {
  --bg: #05080a;
  --panel: rgba(13, 20, 24, 0.78);
  --panel-solid: #0c1317;
  --line: rgba(110, 255, 170, 0.10);
  --line-strong: rgba(110, 255, 170, 0.22);
  --grass: #2cff7e;
  --grass-deep: #14b85a;
  --gold: #ffd45e;
  --mag: #ff3d8a;
  --cyan: #41e6ff;
  --text: #e9f4ed;
  --muted: #6f8b7c;
  --faint: #44584d;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  --soft: #c5d8cc;
  --num: "DIN Alternate", "Bahnschrift", "Avenir Next Condensed", "Arial Narrow", sans-serif;
  --body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  /* 组件级可换肤变量 */
  --chip-on-text: #04130a;
  --topbar-bg: linear-gradient(180deg, rgba(5, 8, 10, 0.96), rgba(5, 8, 10, 0.82));
  --cdnum-bg: linear-gradient(180deg, #101b14, #0a120d);
  --cdnum-glow: 0 0 18px rgba(44, 255, 126, 0.5);
  --modal-bg: linear-gradient(180deg, #0e1a13, #0c1317);
  --toast-bg: linear-gradient(135deg, #11241a, #0b1510);
  --mask-bg: rgba(2, 4, 5, 0.75);
  --scroll-thumb: #16241c;
  --pitch-opacity: 0.05;
  --grain-opacity: 0.5;
}

/* ============ 浅色主题（白日场） ============ */
html[data-theme="light"] {
  --bg: #eef3ee;
  --panel: rgba(255, 255, 255, 0.88);
  --panel-solid: #ffffff;
  --line: rgba(8, 90, 48, 0.12);
  --line-strong: rgba(8, 90, 48, 0.26);
  --grass: #0b9b4f;
  --grass-deep: #0a7c41;
  --gold: #b97f06;
  --mag: #d61f6f;
  --cyan: #0d7d9b;
  --text: #15241b;
  --muted: #5c7263;
  --faint: #97a89d;
  --soft: #3c5546;
  --shadow: 0 14px 40px rgba(30, 60, 42, 0.10);
  --chip-on-text: #ffffff;
  --topbar-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.85));
  --cdnum-bg: linear-gradient(180deg, #ffffff, #eef6ef);
  --cdnum-glow: none;
  --modal-bg: linear-gradient(180deg, #ffffff, #f2f7f3);
  --toast-bg: linear-gradient(135deg, #ffffff, #f0f7f1);
  --mask-bg: rgba(28, 46, 35, 0.4);
  --scroll-thumb: #c8d6cc;
  --pitch-opacity: 0.07;
  --grain-opacity: 0.18;
}
html[data-theme="light"] .fl-a { background: radial-gradient(circle, rgba(11, 155, 79, 0.10) 0%, transparent 60%); }
html[data-theme="light"] .fl-b { background: radial-gradient(circle, rgba(13, 125, 155, 0.07) 0%, transparent 60%); }
html[data-theme="light"] .mow-stripes {
  background: repeating-linear-gradient(90deg, rgba(11, 155, 79, 0.035) 0 90px, transparent 90px 180px);
}
html[data-theme="light"] .brand-badge { color: #ffffff; box-shadow: 0 4px 16px rgba(11, 155, 79, 0.35); }
html[data-theme="light"] .d-today { color: #ffffff; }
html[data-theme="light"] .bell.on { color: #ffffff; }
html[data-theme="light"] .hero {
  background:
    radial-gradient(120% 160% at 85% -20%, rgba(11, 155, 79, 0.10), transparent 55%),
    radial-gradient(100% 140% at 0% 120%, rgba(13, 125, 155, 0.06), transparent 50%),
    var(--panel);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 14px;
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
::selection { background: rgba(44, 255, 126, 0.25); }

/* 滚动条 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--scroll-thumb); border-radius: 6px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--line-strong); }

/* ============ 背景氛围 ============ */
.pitch-bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.mow-stripes {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg,
    rgba(44, 255, 126, 0.016) 0 90px,
    transparent 90px 180px);
}
.pitch-lines {
  position: absolute; inset: 0; width: 100%; height: 100%;
  color: var(--grass);
  opacity: var(--pitch-opacity);
}
.pitch-lines circle, .pitch-lines line, .pitch-lines rect { stroke: currentColor; stroke-width: 2; }
.floodlight { position: absolute; width: 80vmax; height: 80vmax; border-radius: 50%; filter: blur(40px); }
.fl-a {
  top: -55vmax; left: -28vmax;
  background: radial-gradient(circle, rgba(44, 255, 126, 0.10) 0%, transparent 60%);
}
.fl-b {
  bottom: -60vmax; right: -30vmax;
  background: radial-gradient(circle, rgba(65, 230, 255, 0.07) 0%, transparent 60%);
}
.grain {
  position: absolute; inset: 0; opacity: var(--grain-opacity); mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============ 顶栏 ============ */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 18px;
  padding: 10px 20px;
  background: var(--topbar-bg);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand-badge {
  font-family: var(--num); font-size: 20px; letter-spacing: 1px;
  color: #04130a;
  background: linear-gradient(135deg, var(--grass), #b8ff58);
  padding: 5px 11px; border-radius: 8px;
  box-shadow: 0 0 22px rgba(44, 255, 126, 0.35);
  transform: skewX(-8deg);
}
.brand-badge b { font-weight: 700; }
.brand-text { font-weight: 600; font-size: 15px; line-height: 1.15; display: flex; flex-direction: column; }
.brand-text small { color: var(--muted); font-weight: 400; font-size: 11px; letter-spacing: 1px; }

.ticker { flex: 1; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.ticker-track {
  display: inline-flex; gap: 36px; white-space: nowrap;
  animation: tick 45s linear infinite;
  font-size: 12.5px; color: var(--muted);
}
.ticker-track:hover { animation-play-state: paused; }
.ticker-track b { color: var(--text); font-weight: 600; }
.ticker-track .t-live { color: var(--mag); font-weight: 700; }
.ticker-track .t-score { font-family: var(--num); color: var(--gold); font-size: 14px; }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.topbar-right { flex: none; display: flex; align-items: center; gap: 10px; }
.tz-toggle {
  background: rgba(44, 255, 126, 0.06); color: var(--text);
  border: 1px solid var(--line-strong); border-radius: 20px;
  padding: 6px 14px; font-size: 12.5px; transition: all 0.2s;
}
.tz-toggle:hover { background: rgba(44, 255, 126, 0.14); box-shadow: 0 0 14px rgba(44, 255, 126, 0.18); }
.live-source { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); }
.live-source.ok { background: var(--grass); box-shadow: 0 0 8px var(--grass); }
.live-source.stale { background: var(--gold); }

/* ============ 布局 ============ */
.layout { display: flex; min-height: calc(100vh - 57px); }
.sidenav {
  flex: none; width: 88px;
  display: flex; flex-direction: column; gap: 4px;
  padding: 18px 10px;
  position: sticky; top: 57px; height: calc(100vh - 57px);
}
.sidenav a {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 12px 4px; border-radius: 12px;
  color: var(--muted); font-size: 12px;
  border: 1px solid transparent;
  position: relative; transition: all 0.18s;
}
.sidenav a i { font-style: normal; font-size: 19px; filter: grayscale(1) opacity(0.7); transition: filter 0.18s; }
.sidenav a:hover { color: var(--text); background: rgba(44, 255, 126, 0.05); }
.sidenav a.active {
  color: var(--grass);
  background: rgba(44, 255, 126, 0.08);
  border-color: var(--line-strong);
  box-shadow: inset 0 0 24px rgba(44, 255, 126, 0.06);
}
.sidenav a.active i { filter: none; }
.sidenav a.active::before {
  content: ""; position: absolute; left: -10px; top: 22%; bottom: 22%;
  width: 3px; border-radius: 3px; background: var(--grass);
  box-shadow: 0 0 10px var(--grass);
}
.nav-count {
  font-style: normal; font-family: var(--num); color: var(--gold); margin-left: 2px;
}

.view { flex: 1; padding: 22px 26px 80px; max-width: 1180px; }

/* 视图加载入场 */
.view > * { animation: rise 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) backwards; }
.view > *:nth-child(2) { animation-delay: 0.05s; }
.view > *:nth-child(3) { animation-delay: 0.1s; }
.view > *:nth-child(4) { animation-delay: 0.15s; }
.view > *:nth-child(5) { animation-delay: 0.2s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

/* ============ 倒计时 Hero ============ */
.hero {
  position: relative; overflow: hidden;
  border: 1px solid var(--line-strong); border-radius: 18px;
  background:
    radial-gradient(120% 160% at 85% -20%, rgba(44, 255, 126, 0.13), transparent 55%),
    radial-gradient(100% 140% at 0% 120%, rgba(65, 230, 255, 0.08), transparent 50%),
    var(--panel);
  padding: 22px 28px; margin-bottom: 22px;
  box-shadow: var(--shadow);
}
.hero::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 240px; height: 240px;
  border: 1px solid rgba(44, 255, 126, 0.12); border-radius: 50%;
}
.hero-label { font-size: 12px; letter-spacing: 3px; color: var(--muted); margin-bottom: 8px; }
.hero-row { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.hero-match { font-size: 21px; font-weight: 700; display: flex; align-items: center; gap: 12px; }
.hero-match .vs { font-family: var(--num); color: var(--mag); font-size: 16px; }
.hero-match .flag { font-size: 26px; }
.hero-sub { color: var(--muted); font-size: 12.5px; margin-top: 6px; }
.countdown { display: flex; gap: 10px; margin-left: auto; }
.cd-cell { text-align: center; }
.cd-num {
  font-family: var(--num); font-size: 38px; line-height: 1;
  min-width: 64px; padding: 10px 8px 8px;
  background: var(--cdnum-bg);
  border: 1px solid var(--line-strong); border-radius: 10px;
  color: var(--grass);
  text-shadow: var(--cdnum-glow);
  font-variant-numeric: tabular-nums;
}
.cd-label { font-size: 11px; color: var(--muted); margin-top: 5px; letter-spacing: 2px; }

/* ============ 筛选条 ============ */
.filterbar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-bottom: 18px;
}
.chip {
  border: 1px solid var(--line); background: transparent; color: var(--muted);
  border-radius: 18px; padding: 6px 14px; font-size: 12.5px;
  transition: all 0.15s;
}
.chip:hover { color: var(--text); border-color: var(--line-strong); }
.chip.active {
  color: var(--chip-on-text); background: var(--grass); border-color: var(--grass);
  font-weight: 600; box-shadow: 0 0 16px rgba(44, 255, 126, 0.3);
}
.chip.chip-gold.active { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 16px rgba(255, 212, 94, 0.3); }
.filter-spacer { flex: 1; }
.search-input {
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line);
  border-radius: 18px; color: var(--text); padding: 7px 14px; font-size: 13px;
  width: 170px; outline: none; transition: all 0.2s; font-family: var(--body);
}
.search-input:focus { border-color: var(--grass-deep); box-shadow: 0 0 12px rgba(44, 255, 126, 0.15); width: 210px; }
.search-input::placeholder { color: var(--faint); }
select.chip { appearance: none; background: var(--panel-solid); color: var(--muted); }

/* ============ 日期分组与比赛卡 ============ */
.day-block { margin-bottom: 26px; }
.day-head {
  position: sticky; top: 57px; z-index: 10;
  display: flex; align-items: baseline; gap: 12px;
  padding: 10px 2px 8px;
  background: linear-gradient(180deg, var(--bg) 75%, transparent);
}
.day-head .d-date { font-family: var(--num); font-size: 22px; color: var(--text); letter-spacing: 1px; }
.day-head .d-week { color: var(--grass); font-size: 13px; font-weight: 600; }
.day-head .d-count { color: var(--faint); font-size: 12px; }
.day-head .d-today {
  color: var(--chip-on-text); background: var(--gold); font-size: 11px; font-weight: 700;
  padding: 2px 9px; border-radius: 10px;
}

.match-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 12px; }

.mcard {
  position: relative; overflow: hidden;
  display: flex; gap: 14px; align-items: stretch;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 14px; padding: 14px 16px;
  cursor: pointer;
  transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s;
}
.mcard:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(44, 255, 126, 0.08), 0 0 24px rgba(44, 255, 126, 0.07);
}
.mcard.is-fav::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(120deg, rgba(255, 212, 94, 0.05), transparent 40%);
}
.m-time { flex: none; width: 64px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 3px; border-right: 1px dashed var(--line); padding-right: 12px; }
.m-clock { font-family: var(--num); font-size: 21px; color: var(--text); font-variant-numeric: tabular-nums; }
.m-tz { font-size: 10px; color: var(--faint); letter-spacing: 1px; }
.m-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 7px; justify-content: center; }
.m-row { display: flex; align-items: center; gap: 8px; }
.m-row .flag { font-size: 18px; flex: none; }
.m-row .t-name { font-weight: 600; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-row .t-name.tbd { color: var(--muted); font-weight: 400; font-size: 13px; }
.m-row .t-score { margin-left: auto; font-family: var(--num); font-size: 19px; color: var(--gold); font-variant-numeric: tabular-nums; }
.m-row.loser .t-name, .m-row.loser .t-score { opacity: 0.45; }
.m-meta { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--muted); }
.g-chip {
  flex: none; font-family: var(--num); font-size: 11px;
  border: 1px solid var(--line-strong); color: var(--grass);
  border-radius: 5px; padding: 1px 6px;
}
.g-chip.ko { color: var(--mag); border-color: rgba(255, 61, 138, 0.35); }
.g-chip.final { color: var(--gold); border-color: rgba(255, 212, 94, 0.45); }
.m-side { flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
.bell {
  background: transparent; border: 1px solid var(--line); border-radius: 50%;
  width: 34px; height: 34px; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
  color: var(--faint); transition: all 0.18s;
}
.bell:hover { border-color: var(--gold); color: var(--gold); transform: rotate(12deg); }
.bell.on {
  color: var(--chip-on-text); background: var(--gold); border-color: var(--gold);
  box-shadow: 0 0 14px rgba(255, 212, 94, 0.45);
}
.live-badge {
  display: inline-flex; align-items: center; gap: 5px;
  color: var(--mag); font-size: 11px; font-weight: 700;
}
.live-badge::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--mag);
  animation: pulse 1.1s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: 0.25; transform: scale(0.8); } }
.m-no { position: absolute; right: 10px; top: 8px; font-family: var(--num); font-size: 10px; color: var(--faint); }

/* ============ 日历视图 ============ */
.cal-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 980px) { .cal-wrap { grid-template-columns: 1fr; } }
.cal-month {
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px;
  padding: 18px; box-shadow: var(--shadow);
}
.cal-title { font-family: var(--num); font-size: 19px; margin-bottom: 12px; letter-spacing: 2px; }
.cal-title em { font-style: normal; color: var(--grass); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.cal-wd { text-align: center; font-size: 11px; color: var(--faint); padding: 4px 0; }
.cal-day {
  min-height: 64px; border-radius: 9px; padding: 6px 7px;
  border: 1px solid transparent; position: relative;
  font-family: var(--num); font-size: 13px; color: var(--muted);
}
.cal-day.has {
  border-color: var(--line); background: rgba(44, 255, 126, 0.03);
  cursor: pointer; color: var(--text);
  transition: all 0.15s;
}
.cal-day.has:hover { border-color: var(--grass-deep); background: rgba(44, 255, 126, 0.09); transform: scale(1.04); z-index: 2; }
.cal-day.today { border-color: var(--gold); box-shadow: inset 0 0 14px rgba(255, 212, 94, 0.1); }
.cal-day .cd-n { display: block; }
.cal-day .cd-c {
  position: absolute; right: 6px; top: 6px;
  font-size: 10px; color: var(--grass);
}
.cal-day .cd-dots { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 6px; }
.cal-day .dot { width: 6px; height: 6px; border-radius: 2px; background: var(--grass-deep); opacity: 0.85; }
.cal-day .dot.ko { background: var(--mag); }
.cal-day .dot.fin { background: var(--gold); }
.cal-legend { display: flex; gap: 16px; margin-top: 14px; font-size: 11.5px; color: var(--muted); }
.cal-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 5px; }

/* ============ 小组视图 ============ */
.groups-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px; }
.group-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  padding: 16px 18px; box-shadow: var(--shadow);
  transition: border-color 0.2s;
}
.group-card:hover { border-color: var(--line-strong); }
.group-head {
  font-family: var(--num); font-size: 17px; letter-spacing: 2px; margin-bottom: 10px;
  color: var(--grass);
  display: flex; align-items: center; gap: 8px;
}
.group-head::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line-strong), transparent); }
.stand-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.stand-table th { color: var(--faint); font-weight: 400; font-size: 11px; text-align: center; padding: 3px 2px; }
.stand-table th:first-child { text-align: left; }
.stand-table td { padding: 6px 2px; text-align: center; font-family: var(--num); color: var(--muted); border-top: 1px solid rgba(255, 255, 255, 0.025); }
.stand-table td.tm {
  text-align: left; font-family: var(--body); color: var(--text); font-weight: 500;
  cursor: pointer; white-space: nowrap;
}
.stand-table td.tm:hover { color: var(--grass); }
.stand-table td.pts { color: var(--gold); font-weight: 700; }
.stand-table tr.q-pos td:first-child { box-shadow: inset 3px 0 0 var(--grass-deep); }

/* ============ 球队视图 ============ */
.teams-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.team-tile {
  display: flex; align-items: center; gap: 10px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px; cursor: pointer; transition: all 0.16s;
}
.team-tile:hover { border-color: var(--grass-deep); transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45); }
.team-tile .flag { font-size: 24px; }
.team-tile .tt-n { font-weight: 600; font-size: 14px; }
.team-tile .tt-g { font-family: var(--num); font-size: 11px; color: var(--muted); }
.team-tile .tt-star { margin-left: auto; color: var(--faint); font-size: 15px; background: none; border: none; transition: transform 0.15s; }
.team-tile .tt-star:hover { transform: scale(1.3); }
.team-tile .tt-star.on { color: var(--gold); text-shadow: 0 0 10px rgba(255, 212, 94, 0.6); }

.team-hero {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  background: var(--panel); border: 1px solid var(--line-strong); border-radius: 18px;
  padding: 22px 26px; margin-bottom: 18px; box-shadow: var(--shadow);
  position: relative; overflow: hidden;
}
.team-hero .flag-big { font-size: 54px; filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.5)); }
.team-hero h1 { font-size: 26px; }
.team-hero .th-en { color: var(--muted); font-size: 13px; margin-top: 3px; }
.team-hero .th-chips { display: flex; gap: 8px; margin-top: 9px; }
.team-hero .actions { margin-left: auto; display: flex; flex-direction: column; gap: 8px; }
.btn {
  border: 1px solid var(--line-strong); background: rgba(44, 255, 126, 0.07);
  color: var(--text); border-radius: 9px; padding: 8px 16px; font-size: 12.5px;
  transition: all 0.18s; white-space: nowrap;
}
.btn:hover { background: rgba(44, 255, 126, 0.16); box-shadow: 0 0 16px rgba(44, 255, 126, 0.2); }
.btn.gold { border-color: rgba(255, 212, 94, 0.4); background: rgba(255, 212, 94, 0.08); }
.btn.gold:hover { background: rgba(255, 212, 94, 0.18); box-shadow: 0 0 16px rgba(255, 212, 94, 0.2); }
.btn.danger { border-color: rgba(255, 61, 138, 0.35); background: rgba(255, 61, 138, 0.07); }

.sec-title {
  font-size: 15px; font-weight: 700; letter-spacing: 1px;
  margin: 24px 0 12px; display: flex; align-items: center; gap: 10px;
}
.sec-title::before { content: ""; width: 4px; height: 16px; background: var(--grass); border-radius: 2px; box-shadow: 0 0 8px var(--grass); }
.sec-title small { color: var(--faint); font-weight: 400; }

.facts-list { display: grid; gap: 10px; }
.fact-item {
  background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--grass-deep);
  border-radius: 0 12px 12px 0; padding: 12px 16px;
  font-size: 13px; line-height: 1.75; color: var(--soft);
}

.squad-table { width: 100%; border-collapse: collapse; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; font-size: 12.5px; }
.squad-table th {
  text-align: left; padding: 10px 12px; color: var(--faint); font-size: 11px; font-weight: 500;
  border-bottom: 1px solid var(--line-strong); letter-spacing: 1px;
  background: rgba(44, 255, 126, 0.04);
}
.squad-table td { padding: 8px 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.03); color: var(--muted); }
.squad-table td.p-num { font-family: var(--num); color: var(--grass); font-size: 14px; }
.squad-table td.p-name { color: var(--text); font-weight: 500; }
.squad-table td.p-stat { font-family: var(--num); font-variant-numeric: tabular-nums; }
.squad-table tr:hover td { background: rgba(44, 255, 126, 0.03); }
.pos-tag { font-size: 10.5px; padding: 2px 7px; border-radius: 5px; border: 1px solid var(--line-strong); }
.pos-GK { color: var(--gold); border-color: rgba(255, 212, 94, 0.4); }
.pos-DF { color: var(--cyan); border-color: rgba(65, 230, 255, 0.35); }
.pos-MF { color: var(--grass); }
.pos-FW { color: var(--mag); border-color: rgba(255, 61, 138, 0.35); }

/* ============ 看点事件 ============ */
.ev-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.ev-card {
  background: var(--panel); border: 1px solid var(--line);
  border-left: 3px solid var(--ev-color, var(--grass));
  border-radius: 0 14px 14px 0; padding: 14px 16px;
  transition: transform 0.16s, border-color 0.16s, box-shadow 0.16s;
}
.ev-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--line-strong); border-left-color: var(--ev-color); }
.ev-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.ev-tag {
  font-size: 10.5px; padding: 2px 8px; border-radius: 5px;
  border: 1px solid currentColor; letter-spacing: 1px; opacity: 0.9;
}
.ev-date { font-family: var(--num); font-size: 12px; color: var(--gold); }
.ev-team {
  margin-left: auto; background: none; border: none; color: var(--muted);
  font-size: 12px; font-family: var(--body); transition: color 0.15s;
}
.ev-team:hover { color: var(--grass); }
.ev-title { font-weight: 700; font-size: 14.5px; margin-bottom: 6px; }
.ev-detail { font-size: 12.5px; line-height: 1.8; color: var(--soft); }

/* 过期状态 */
.ev-card.expired { opacity: 0.55; filter: saturate(0.35); }
.ev-card.expired:hover { opacity: 0.8; }
.ev-expired-tag {
  font-size: 10px; padding: 2px 7px; border-radius: 5px; letter-spacing: 1px;
  color: var(--faint); border: 1px dashed var(--faint);
}

/* 文档原文折叠 */
.ev-src { margin-top: 10px; font-size: 12px; }
.ev-src summary {
  cursor: pointer; color: var(--faint); list-style: none; user-select: none;
  transition: color 0.15s; display: inline-block;
}
.ev-src summary::-webkit-details-marker { display: none; }
.ev-src summary:hover { color: var(--grass); }
.ev-src[open] summary { color: var(--grass); }
.ev-src-body {
  margin-top: 8px; padding: 10px 12px;
  background: rgba(127, 127, 127, 0.05);
  border-left: 2px solid var(--line-strong); border-radius: 0 8px 8px 0;
  line-height: 1.7; color: var(--muted);
}
.ev-src-body q { quotes: "“" "”"; font-style: italic; }
.ev-src-body cite { display: block; margin-top: 6px; font-style: normal; font-size: 11px; color: var(--faint); }

/* 球员链接与球员页 */
.ev-player {
  background: none; border: none; color: var(--muted); font-size: 12px;
  font-family: var(--body); transition: color 0.15s;
}
.ev-player:hover { color: var(--gold); }
.p-row { cursor: pointer; }
.pl-num { font-family: var(--num); font-size: 18px; color: var(--grass); margin-left: 6px; }
.pl-stats { margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap; }
.pl-stat {
  text-align: center; min-width: 76px; padding: 10px 12px;
  background: var(--cdnum-bg); border: 1px solid var(--line); border-radius: 12px;
}
.pl-stat .pl-v { font-family: var(--num); font-size: 24px; color: var(--grass); }
.pl-stat .pl-v small { font-size: 12px; color: var(--muted); }
.pl-stat .pl-l { font-size: 11px; color: var(--muted); margin-top: 3px; }

/* 弹层内看点 */
.mo-events { margin: 16px 0 4px; border-top: 1px dashed var(--line-strong); padding-top: 14px; }
.mo-ev-title { font-size: 12px; letter-spacing: 2px; color: var(--muted); margin-bottom: 10px; }
.mo-ev {
  border-left: 3px solid var(--ev-color, var(--grass));
  padding: 6px 12px; margin-bottom: 8px;
  background: rgba(127, 127, 127, 0.04); border-radius: 0 8px 8px 0;
}
.mo-ev b { display: block; font-size: 13px; margin-bottom: 2px; }
.mo-ev span { font-size: 12px; color: var(--soft); line-height: 1.7; }

/* ============ 提醒中心 ============ */
.remind-panel {
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px;
  padding: 20px 24px; margin-bottom: 16px; box-shadow: var(--shadow);
}
.remind-panel h3 { font-size: 14.5px; margin-bottom: 12px; }
.perm-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.perm-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--mag); }
.perm-dot.ok { background: var(--grass); box-shadow: 0 0 8px var(--grass); }
.lead-opts { display: flex; gap: 8px; flex-wrap: wrap; }
.empty-tip {
  text-align: center; color: var(--faint); padding: 48px 0; font-size: 13px;
  border: 1px dashed var(--line); border-radius: 16px;
}
.empty-tip b { display: block; font-size: 30px; margin-bottom: 10px; }

/* ============ 资料页 ============ */
.docs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.doc-card {
  display: flex; gap: 14px; align-items: center;
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  padding: 18px 20px; transition: all 0.18s; box-shadow: var(--shadow);
}
.doc-card:hover { border-color: var(--grass-deep); transform: translateY(-3px); }
.doc-card .d-ico { font-size: 26px; }
.doc-card .d-name { font-weight: 600; font-size: 14px; }
.doc-card .d-sub { color: var(--faint); font-size: 11.5px; margin-top: 3px; }
.doc-card .d-arrow { margin-left: auto; color: var(--grass); font-family: var(--num); }

/* ============ 弹层 ============ */
.modal-mask[hidden] { display: none; }
.modal-mask {
  position: fixed; inset: 0; z-index: 100;
  background: var(--mask-bg); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  animation: fadein 0.2s;
}
@keyframes fadein { from { opacity: 0; } }
.modal {
  width: min(560px, calc(100vw - 40px)); max-height: 86vh; overflow: auto;
  background: var(--modal-bg);
  border: 1px solid var(--line-strong); border-radius: 20px;
  padding: 26px 30px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7), 0 0 40px rgba(44, 255, 126, 0.06);
  animation: pop 0.25s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
@keyframes pop { from { opacity: 0; transform: scale(0.92) translateY(12px); } }
.modal .mo-round { font-size: 11.5px; letter-spacing: 2px; color: var(--muted); display: flex; justify-content: space-between; }
.modal .mo-teams {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center;
  margin: 20px 0; text-align: center;
}
.modal .mo-team .flag { font-size: 42px; display: block; }
.modal .mo-team .n { font-weight: 700; font-size: 16px; margin-top: 6px; }
.modal .mo-score { font-family: var(--num); font-size: 36px; color: var(--gold); font-variant-numeric: tabular-nums; }
.modal .mo-vs { font-family: var(--num); font-size: 22px; color: var(--mag); }
.mo-info { display: grid; gap: 8px; margin: 18px 0; }
.mo-info .row { display: flex; gap: 10px; font-size: 13px; color: var(--muted); }
.mo-info .row b { color: var(--text); font-weight: 500; }
.mo-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.mo-close {
  position: sticky; float: right; top: 0;
  background: none; border: none; color: var(--faint); font-size: 20px;
}
.mo-close:hover { color: var(--text); }

/* ============ 通知 toast ============ */
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 200; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: var(--toast-bg);
  border: 1px solid var(--line-strong); border-left: 4px solid var(--grass);
  border-radius: 12px; padding: 13px 18px; font-size: 13px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.6);
  animation: slidein 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.15);
  max-width: 340px;
}
.toast.gold { border-left-color: var(--gold); }
@keyframes slidein { from { opacity: 0; transform: translateX(60px); } }
.toast b { color: var(--grass); }

/* ============ 响应式 ============ */
@media (max-width: 760px) {
  .ticker { display: none; }
  .layout { flex-direction: column; }
  .sidenav {
    flex-direction: row; width: 100%; height: auto; position: fixed;
    bottom: 0; top: auto; z-index: 60;
    background: var(--topbar-bg); backdrop-filter: blur(14px);
    border-top: 1px solid var(--line); padding: 6px 8px;
    justify-content: space-around;
  }
  .sidenav a { padding: 6px 8px; }
  .sidenav a.active::before { display: none; }
  .view { padding: 16px 14px 110px; }
  .countdown { margin-left: 0; }
  .cd-num { font-size: 28px; min-width: 52px; }
}
