/*!
 * 90+ 足球比分 — 样式
 */

:root {
  --bg: #070c0d;
  --bg-2: #0a1214;
  --panel: #0d1719;
  --panel-2: #122023;
  --line: rgba(255, 255, 255, 0.075);
  --line-2: rgba(255, 255, 255, 0.045);
  --txt: #e9f4f0;
  --txt-2: #b3c7c2;
  --muted: #79918c;
  --green: #00e37a;
  --green-2: #00b864;
  --green-soft: rgba(0, 227, 122, 0.11);
  --red: #ff4d5e;
  --amber: #ffb020;
  --blue: #59a7ff;
  --radius: 16px;
  --topbar: 64px;
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.42);
  --font: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--txt);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(1000px 520px at 8% -12%, rgba(0, 227, 122, 0.10), transparent 62%),
    radial-gradient(760px 480px at 96% -6%, rgba(70, 140, 255, 0.075), transparent 60%),
    linear-gradient(180deg, #080e0f 0%, #070c0d 40%, #060a0b 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.4;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.014) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.014) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 25%, transparent 78%);
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
input, select { font-family: inherit; }
svg.ico { display: block; }

::selection { background: rgba(0, 227, 122, 0.3); }

:focus-visible {
  outline: 2px solid rgba(0, 227, 122, 0.7);
  outline-offset: 2px;
}

.dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  position: relative;
  flex: none;
}
.dot::after {
  content: "";
  position: absolute; inset: -3px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.28;
  animation: pulse 1.9s ease-out infinite;
}
.dot-idle { color: #4d635f; }
.dot-idle::after { animation: none; opacity: 0; }
.dot-live { color: var(--green); }
.dot-demo { color: var(--amber); }

@keyframes pulse {
  0% { transform: scale(0.6); opacity: 0.5; }
  70% { transform: scale(1.55); opacity: 0; }
  100% { transform: scale(1.55); opacity: 0; }
}

/* ---------------- 顶栏 ---------------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--topbar);
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 22px;
  background: rgba(7, 12, 13, 0.86);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--line);
}

.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand-mark {
  width: 34px; height: 34px;
  border-radius: 11px;
  display: grid; place-items: center;
  color: #05231a;
  background: linear-gradient(150deg, #2bff9d, #00c96b 62%, #00a95a);
  box-shadow: 0 6px 18px rgba(0, 220, 120, 0.32), inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text strong {
  font-size: 19px; font-weight: 800; letter-spacing: -0.02em;
}
.brand-text strong em { font-style: normal; color: var(--green); }
.brand-text span { font-size: 10px; color: var(--muted); letter-spacing: 0.22em; margin-top: 4px; }

.topbar-status { display: flex; align-items: center; gap: 14px; margin-left: 8px; }

.live-pill {
  display: inline-flex; align-items: center; gap: 7px;
  height: 28px; padding: 0 11px;
  border-radius: 999px;
  color: var(--red);
  background: rgba(255, 77, 94, 0.10);
  border: 1px solid rgba(255, 77, 94, 0.24);
  font-size: 12px;
  white-space: nowrap;
}
.live-pill b { font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; }
.live-pill span { color: #ffb9c0; }
.live-pill.is-idle { color: var(--muted); background: rgba(255, 255, 255, 0.04); border-color: var(--line); }
.live-pill.is-idle span { color: var(--muted); }
.live-pill.is-idle .dot::after { animation: none; opacity: 0; }

.topbar-clock { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }

.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.search {
  display: flex; align-items: center; gap: 7px;
  height: 34px; padding: 0 10px;
  width: 218px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  color: var(--muted);
  transition: border-color 0.16s, background 0.16s;
}
.search:focus-within { border-color: rgba(0, 227, 122, 0.45); background: rgba(0, 227, 122, 0.06); }
.search input {
  flex: 1; min-width: 0;
  border: 0; background: none; outline: none;
  color: var(--txt); font-size: 12.5px;
}
.search input::placeholder { color: #637975; }
.search kbd {
  font-family: inherit;
  font-size: 10px; color: #6d837f;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 4px;
  background: rgba(255, 255, 255, 0.04);
}

.source-chip {
  display: inline-flex; align-items: center; gap: 7px;
  height: 34px; padding: 0 11px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.045);
  font-size: 12px; color: var(--txt-2);
  transition: background 0.16s, border-color 0.16s;
}
.source-chip:hover { background: rgba(255, 255, 255, 0.075); border-color: var(--line-2); }
.source-chip .chev { transform: rotate(90deg); color: var(--muted); }

.icon-btn {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 10px;
  color: var(--txt-2);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.045);
  transition: background 0.16s, color 0.16s;
}
.icon-btn:hover { background: rgba(255, 255, 255, 0.08); color: var(--txt); }
.icon-btn.spin svg { animation: spin 0.7s ease; }
@keyframes spin { to { transform: rotate(360deg); } }

/* 数据源面板 */

.source-panel {
  position: absolute;
  top: 58px; right: 66px;
  width: 352px;
  padding: 16px;
  border-radius: 14px;
  background: #0c1618;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  z-index: 60;
  animation: pop 0.18s ease;
}
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(0.98); } }
.sp-head { font-size: 12px; letter-spacing: 0.14em; color: var(--muted); margin-bottom: 10px; }
.sp-option {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s;
}
.sp-option:hover { background: rgba(255, 255, 255, 0.04); }
.sp-option input { accent-color: var(--green); margin-top: 3px; }
.sp-option b { display: block; font-size: 13px; margin-bottom: 2px; }
.sp-option em { display: block; font-style: normal; font-size: 11.5px; color: var(--muted); line-height: 1.5; }
.sp-option:has(input:checked) { background: rgba(0, 227, 122, 0.07); border-color: rgba(0, 227, 122, 0.22); }

.sp-key {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: 10px;
  font-size: 12px; color: var(--muted);
}
.sp-key input, .sp-key select {
  width: 170px; height: 30px;
  padding: 0 9px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.045);
  color: var(--txt);
  font-size: 12px;
  outline: none;
}
.sp-actions { display: flex; gap: 8px; margin-top: 14px; }
.sp-note { margin: 12px 0 0; font-size: 11px; color: #6c827e; line-height: 1.6; }

.btn {
  height: 32px; padding: 0 14px;
  border-radius: 9px;
  font-size: 12.5px;
  font-weight: 600;
  transition: background 0.16s, transform 0.12s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green); color: #04231a; flex: 1; }
.btn-primary:hover { background: #22f38e; }
.btn-ghost { border: 1px solid var(--line); color: var(--txt-2); background: rgba(255, 255, 255, 0.03); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.07); color: var(--txt); }

/* ---------------- 布局 ---------------- */

.shell {
  position: relative;
  z-index: 1;
  max-width: 1520px;
  margin: 0 auto;
  padding: 18px 22px 8px;
  display: grid;
  grid-template-columns: 214px minmax(0, 1fr) 324px;
  gap: 18px;
  align-items: start;
}

/* ---------------- 侧栏 ---------------- */

.sidebar {
  position: sticky;
  top: calc(var(--topbar) + 16px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 14px 10px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.024), rgba(255, 255, 255, 0.008));
  border: 1px solid var(--line);
}
.side-title {
  display: flex; align-items: center; justify-content: space-between;
  padding: 2px 10px 8px;
  font-size: 11px; letter-spacing: 0.16em;
  color: var(--muted);
  text-transform: uppercase;
}
.side-count { color: var(--txt-2); letter-spacing: 0; font-size: 11px; }

.league-nav { display: flex; flex-direction: column; gap: 2px; }

.league-item {
  position: relative;
  display: flex; align-items: center; gap: 9px;
  width: 100%;
  height: 36px;
  padding: 0 10px;
  border-radius: 10px;
  color: var(--txt-2);
  font-size: 13px;
  text-align: left;
  transition: background 0.15s, color 0.15s;
}
.league-item:hover { background: rgba(255, 255, 255, 0.045); color: var(--txt); }
.league-item.is-active {
  background: var(--green-soft);
  color: #fff;
  font-weight: 600;
}
.league-item.is-active::before {
  content: "";
  position: absolute; left: 0; top: 8px; bottom: 8px;
  width: 2.5px; border-radius: 3px;
  background: var(--green);
}
.lg-chip {
  width: 24px; height: 22px;
  flex: none;
  border-radius: 6px;
  display: grid; place-items: center;
  font-size: 8.5px; font-weight: 800; letter-spacing: 0.02em;
  color: #fff;
  background-color: var(--c, #2a3f3c);
  background-image: linear-gradient(160deg, rgba(255, 255, 255, 0.24), rgba(0, 0, 0, 0.5));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}
.lg-all { background: linear-gradient(150deg, #2b3a3f, #141e21); font-size: 8px; }
.lg-fav { background: linear-gradient(150deg, #b98a1c, #6d4d06); color: #fff6d8; }
.lg-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lg-count { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.league-item.is-active .lg-count { color: rgba(255, 255, 255, 0.55); }
.lg-live {
  position: absolute; right: 8px; top: 50%;
  width: 5px; height: 5px; margin-top: -2.5px;
  border-radius: 50%;
  background: var(--red);
  opacity: 0;
}
.lg-live.on { opacity: 1; box-shadow: 0 0 0 3px rgba(255, 77, 94, 0.16); }

.side-note {
  display: flex; align-items: center; gap: 7px;
  padding: 10px 10px 2px;
  margin-top: auto;
  font-size: 10.5px;
  color: #6b817d;
  line-height: 1.5;
  border-top: 1px solid var(--line-2);
}

/* ---------------- 日期与筛选 ---------------- */

.datebar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 12px;
  scrollbar-width: none;
}
.datebar::-webkit-scrollbar { display: none; }

.date-btn {
  position: relative;
  flex: 1 0 auto;
  min-width: 74px;
  height: 54px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px;
  color: var(--txt-2);
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.15s;
}
.date-btn:hover { background: rgba(255, 255, 255, 0.06); color: var(--txt); }
.date-btn em { font-style: normal; font-size: 11px; color: var(--muted); }
.date-btn b { font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.date-btn.is-active {
  background: linear-gradient(160deg, #00e37a, #00b060);
  border-color: transparent;
  color: #032018;
  box-shadow: 0 8px 22px rgba(0, 200, 110, 0.28);
}
.date-btn.is-active em { color: rgba(3, 32, 24, 0.62); }
.date-btn.is-today b { letter-spacing: -0.01em; }
.date-live {
  position: absolute; top: 7px; right: 8px;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--red);
  opacity: 0;
}
.date-live.on { opacity: 1; box-shadow: 0 0 0 3px rgba(255, 77, 94, 0.14); }
.date-btn.is-active .date-live { background: #04231a; }

.filterbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 12px;
}

.segmented {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
}
.seg {
  display: inline-flex; align-items: center; gap: 6px;
  height: 28px; padding: 0 13px;
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--muted);
  transition: background 0.15s, color 0.15s;
}
.seg:hover { color: var(--txt-2); }
.seg.active { background: #1a2b2e; color: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3); }
.seg .dot { color: var(--red); }

.list-meta { font-size: 11.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.meta-sep { color: #40534f; }

/* ---------------- 比赛列表 ---------------- */

.matchlist { display: flex; flex-direction: column; gap: 14px; }

.group {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0.008));
  overflow: clip;
}

.group-head {
  position: sticky;
  top: var(--topbar);
  z-index: 8;
  display: flex; align-items: center; gap: 9px;
  padding: 10px 16px;
  background: rgba(11, 19, 21, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.group-head h2 { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: 0.01em; }
.group-count { font-size: 11px; color: var(--muted); }
.group-live {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; color: #ff8f99;
}
.group-live .dot { color: var(--red); }

.rows { display: flex; flex-direction: column; }

.row {
  position: relative;
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) 64px;
  align-items: center;
  gap: 10px;
  padding: 9px 14px 9px 16px;
  border-top: 1px solid var(--line-2);
  cursor: pointer;
  transition: background 0.14s;
}
.rows .row:first-child { border-top: 0; }
.row:hover { background: rgba(255, 255, 255, 0.032); }
.row.is-open { background: rgba(0, 227, 122, 0.07); }
.row.is-live::before {
  content: "";
  position: absolute; left: 0; top: 10px; bottom: 10px;
  width: 2px; border-radius: 2px;
  background: linear-gradient(180deg, #ff6b78, #d42a3b);
}
.row.is-live { background: linear-gradient(90deg, rgba(255, 77, 94, 0.05), transparent 34%); }
.row.is-flash { animation: rowFlash 2.4s ease-out; }
@keyframes rowFlash {
  0% { background: rgba(0, 227, 122, 0.26); }
  60% { background: rgba(0, 227, 122, 0.10); }
  100% { background: transparent; }
}

.cell-time { display: flex; align-items: center; gap: 5px; font-variant-numeric: tabular-nums; }
.t-ko { font-size: 12.5px; color: var(--txt-2); font-weight: 600; }
.t-ft { font-size: 11.5px; color: var(--muted); }
.t-ht { font-size: 11.5px; color: var(--amber); }
.t-live { display: inline-flex; align-items: center; gap: 6px; color: var(--red); font-size: 13px; font-weight: 700; }
.t-live .dot { color: var(--red); }

.cell-teams { min-width: 0; display: flex; flex-direction: column; gap: 3px; }

.teamline {
  display: flex; align-items: center; gap: 9px;
  height: 27px;
}
.tname {
  flex: 1;
  min-width: 0;
  font-size: 13.5px;
  color: var(--txt);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.tgoals {
  min-width: 22px;
  text-align: right;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--txt);
}
.tgoals.is-live { color: var(--green); }
.teamline.is-dim .tname { color: var(--muted); }
.teamline.is-dim .tgoals { color: var(--txt-2); }

.cell-meta { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.star {
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border-radius: 7px;
  color: #465c58;
  transition: color 0.15s, background 0.15s, transform 0.12s;
}
.star:hover { color: var(--amber); background: rgba(255, 176, 32, 0.1); transform: scale(1.06); }
.star.on { color: var(--amber); }
.star.on svg path { fill: rgba(255, 176, 32, 0.22); }
.cell-meta .chev { color: #3d514d; }

/* 徽标 */

.badge {
  position: relative;
  width: 24px; height: 24px;
  flex: none;
  border-radius: 7px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(145deg, var(--c), var(--c2));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16), 0 2px 6px rgba(0, 0, 0, 0.32);
  overflow: hidden;
}
.badge i {
  font-style: normal;
  font-size: 8.5px; font-weight: 800; letter-spacing: 0.01em;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}
.badge img {
  position: absolute; inset: 2px;
  width: calc(100% - 4px); height: calc(100% - 4px);
  object-fit: contain;
}
.badge-lg { width: 38px; height: 38px; border-radius: 11px; }
.badge-lg i { font-size: 12px; }
.badge-xl { width: 52px; height: 52px; border-radius: 15px; }
.badge-xl i { font-size: 15px; }

/* 空态 / 骨架 */

.empty {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 56px 20px;
  border-radius: var(--radius);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  color: var(--muted);
  text-align: center;
}
.empty-ico {
  width: 46px; height: 46px;
  border-radius: 14px;
  display: grid; place-items: center;
  color: #4e6662;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
}
.empty p { margin: 0; font-size: 13px; }

.skel { display: block; height: 10px; border-radius: 6px; background: rgba(255, 255, 255, 0.06); animation: shimmer 1.4s ease-in-out infinite; }
.skel-row { display: grid; grid-template-columns: 64px 1fr 40px; gap: 14px; align-items: center; padding: 14px 16px; border-top: 1px solid var(--line-2); }
.skel-line { display: flex; flex-direction: column; gap: 8px; }
.w60 { width: 60%; } .w40 { width: 40%; } .w30 { width: 30%; } .w20 { width: 20px; }
@keyframes shimmer { 50% { opacity: 0.45; } }

/* ---------------- 右侧栏 ---------------- */

.rail {
  position: sticky;
  top: calc(var(--topbar) + 16px);
  display: flex; flex-direction: column; gap: 14px;
  max-height: calc(100vh - var(--topbar) - 32px);
  overflow-y: auto;
  padding-right: 2px;
  scrollbar-width: thin;
}

.card {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.008));
  padding: 14px;
}
.card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.card-head h3 { margin: 0; font-size: 13px; font-weight: 700; }
.muted { color: var(--muted); }

.card-featured {
  position: relative;
  overflow: hidden;
  padding: 0;
  background:
    radial-gradient(420px 180px at 100% -20%, rgba(0, 227, 122, 0.14), transparent 70%),
    linear-gradient(180deg, #11201f, #0c1618);
}
.card-featured::before {
  content: "";
  position: absolute; right: -30px; bottom: -50px;
  width: 180px; height: 180px;
  border: 1px solid rgba(0, 227, 122, 0.14);
  border-radius: 50%;
}
.card-featured::after {
  content: "";
  position: absolute; right: 34px; bottom: -16px;
  width: 86px; height: 86px;
  border: 1px solid rgba(0, 227, 122, 0.1);
  border-radius: 50%;
}

.ft-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 13px 14px 0; position: relative; z-index: 1; }
.ft-league { display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--txt-2); }
.ft-league .lg-chip { width: 22px; height: 20px; font-size: 8px; }
.ft-status { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: var(--muted); }
.ft-status.live { color: #ff8f99; }
.ft-status.live .dot { color: var(--red); }

.ft-body {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 6px;
  padding: 14px 14px 12px;
  position: relative;
  z-index: 1;
  cursor: pointer;
}
.ft-team { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; }
.ft-team b { font-size: 12.5px; font-weight: 600; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.ft-num {
  font-size: 30px; font-weight: 800; letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  display: flex; align-items: center; gap: 3px;
  color: var(--green);
}
.ft-num em { font-style: normal; font-size: 20px; color: rgba(255, 255, 255, 0.35); font-weight: 600; }
.ft-vs { font-size: 16px; color: var(--muted); font-weight: 700; letter-spacing: 0.06em; }
.ft-foot {
  padding: 10px 14px;
  border-top: 1px solid var(--line-2);
  font-size: 11.5px;
  color: var(--muted);
  position: relative; z-index: 1;
  background: rgba(0, 0, 0, 0.16);
}
.ft-foot b { color: var(--green); font-variant-numeric: tabular-nums; }
.ft-score-lite { color: var(--txt-2); font-variant-numeric: tabular-nums; }

.feed-live { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; letter-spacing: 0.1em; color: #ff8f99; }
.feed-live .dot { color: var(--red); }

.feed { display: flex; flex-direction: column; gap: 1px; max-height: 372px; overflow-y: auto; margin: 0 -6px; padding: 0 6px; }
.feed::-webkit-scrollbar, .rail::-webkit-scrollbar { width: 4px; }
.feed::-webkit-scrollbar-thumb, .rail::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.12); border-radius: 4px; }

.feed-item {
  display: grid;
  grid-template-columns: 34px 10px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border-radius: 8px;
  text-align: left;
  color: var(--txt-2);
  font-size: 11.5px;
  animation: feedIn 0.3s ease;
  transition: background 0.14s;
}
.feed-item:hover { background: rgba(255, 255, 255, 0.05); }
@keyframes feedIn { from { opacity: 0; transform: translateY(-4px); } }
.f-min { color: var(--green); font-weight: 700; font-variant-numeric: tabular-nums; }
.f-mark { width: 6px; height: 6px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1); }
.f-mark.yellow { background: #ffc93c; }
.f-mark.red { background: #ff5252; }
.f-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.f-text b { color: var(--txt); font-weight: 600; }
.f-text em { font-style: normal; color: var(--muted); }
.f-score { font-variant-numeric: tabular-nums; color: var(--txt); font-weight: 700; font-size: 11px; }
.feed-empty { font-size: 11.5px; color: var(--muted); line-height: 1.7; padding: 6px 2px; }

.card-info p { margin: 0 0 10px; font-size: 11.5px; color: var(--muted); line-height: 1.7; }
.info-rows { display: flex; flex-direction: column; gap: 6px; }
.info-rows div { display: flex; align-items: center; justify-content: space-between; font-size: 11.5px; color: var(--muted); }
.info-rows b { color: var(--txt-2); font-weight: 600; }

/* ---------------- 抽屉 ---------------- */

.scrim {
  position: fixed; inset: 0;
  background: rgba(2, 6, 7, 0.55);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s;
  z-index: 65;
}
body.drawer-open .scrim { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 468px;
  max-width: 100vw;
  background: #0a1214;
  border-left: 1px solid var(--line);
  box-shadow: -30px 0 60px rgba(0, 0, 0, 0.45);
  transform: translateX(102%);
  transition: transform 0.34s cubic-bezier(0.22, 0.61, 0.36, 1);
  z-index: 70;
  overflow-y: auto;
  overscroll-behavior: contain;
}
body.drawer-open .drawer { transform: none; }
.drawer-inner { padding: 16px 18px 28px; }

.dw-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dw-league { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--txt-2); }
.dw-close { width: 30px; height: 30px; border-radius: 9px; }

.dw-score {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: 10px;
  padding: 22px 4px 16px;
}
.dw-team { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; }
.dw-team b { font-size: 13.5px; font-weight: 600; text-align: center; }
.dw-role { font-size: 10px; color: var(--muted); background: rgba(255, 255, 255, 0.05); border-radius: 4px; padding: 1px 6px; }
.dw-num { display: flex; flex-direction: column; align-items: center; gap: 6px; padding-top: 4px; }
.dw-num { flex-direction: row; flex-wrap: wrap; justify-content: center; }
.dw-num b { font-size: 34px; font-weight: 800; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; line-height: 1; }
.dw-num em { font-style: normal; font-size: 22px; color: rgba(255, 255, 255, 0.3); margin: 0 2px; }
.dw-num.live b { color: var(--green); }
.dw-num .dw-status { flex-basis: 100%; }
.dw-vs { font-size: 18px; font-weight: 700; color: var(--muted); letter-spacing: 0.08em; }
.dw-status {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 3px 9px; border-radius: 999px;
}
.dw-status.live { color: #ff9ba4; background: rgba(255, 77, 94, 0.12); }
.dw-status.live .dot { color: var(--red); }

.dw-meta {
  display: flex; flex-wrap: wrap; gap: 6px 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.028);
  border: 1px solid var(--line-2);
  font-size: 11px;
  color: var(--muted);
}
.dw-meta span { position: relative; padding-left: 10px; }
.dw-meta span::before { content: ""; position: absolute; left: 0; top: 6px; width: 3px; height: 3px; border-radius: 50%; background: #3d514d; }

.dw-tabs { display: flex; gap: 4px; margin: 16px 0 12px; border-bottom: 1px solid var(--line); }
.dw-tab {
  position: relative;
  padding: 8px 12px;
  font-size: 12.5px;
  color: var(--muted);
  transition: color 0.15s;
}
.dw-tab:hover { color: var(--txt-2); }
.dw-tab.is-active { color: #fff; font-weight: 600; }
.dw-tab.is-active::after {
  content: "";
  position: absolute; left: 10px; right: 10px; bottom: -1px;
  height: 2px; border-radius: 2px;
  background: var(--green);
}

.dw-panel { min-height: 160px; }
.dw-empty { padding: 30px 12px; text-align: center; font-size: 12px; color: var(--muted); line-height: 1.8; }

.timeline { position: relative; padding: 4px 0 4px 2px; }
.tl-item {
  position: relative;
  display: grid;
  grid-template-columns: 46px 14px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 8px 0;
  font-size: 12.5px;
  color: var(--txt-2);
}
.tl-item::before {
  content: "";
  position: absolute;
  left: 52px; top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03));
}
.tl-min { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 11.5px; text-align: right; }
.tl-dot {
  position: relative; z-index: 1;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--c, #3d514d);
  box-shadow: 0 0 0 3px #0a1214;
  margin-left: 3px;
}
.tl-text { display: flex; align-items: center; gap: 5px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-text b { color: var(--txt); font-weight: 600; }
.tl-text em { font-style: normal; color: var(--muted); font-size: 11.5px; }
.tl-text .ico { color: var(--green); flex: none; }
.tl-score {
  font-size: 11px; font-weight: 700;
  color: #04231a; background: var(--green);
  padding: 1px 6px; border-radius: 5px;
  font-variant-numeric: tabular-nums;
}
.tl-item.is-mark { color: var(--muted); font-size: 11.5px; }
.tl-item.is-mark .tl-dot { background: #33463f; }
.tl-item.is-away .tl-text b { color: var(--txt-2); }

.stats { display: flex; flex-direction: column; gap: 14px; padding: 6px 2px 10px; }
.stat-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: baseline; margin-bottom: 6px; }
.stat-head b { font-size: 13px; font-variant-numeric: tabular-nums; }
.stat-head b:last-child { text-align: right; }
.stat-head span { font-size: 11.5px; color: var(--muted); }
.stat-track { display: flex; height: 6px; border-radius: 4px; overflow: hidden; background: rgba(255, 255, 255, 0.06); gap: 2px; }
.stat-track .sh { background: linear-gradient(90deg, #00b060, #00e37a); border-radius: 4px; transition: width 0.5s ease; }
.stat-track .sa { background: linear-gradient(90deg, #4b6b74, #6d95a0); border-radius: 4px; transition: width 0.5s ease; }

.pre { display: flex; flex-direction: column; gap: 2px; padding-top: 4px; }
.pre-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 4px; border-bottom: 1px solid var(--line-2); font-size: 12.5px; }
.pre-row span { color: var(--muted); }
.pre-row b { font-weight: 600; color: var(--txt-2); text-align: right; }
.pre-form { display: flex; flex-direction: column; gap: 10px; padding: 14px 4px 6px; }
.pre-form-team { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12.5px; }
.pre-form-team div { display: flex; gap: 4px; }
.form-chip {
  font-style: normal;
  width: 22px; height: 22px;
  display: grid; place-items: center;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 700;
}
.form-chip.W { background: rgba(0, 227, 122, 0.16); color: #4fffa8; }
.form-chip.D { background: rgba(255, 255, 255, 0.08); color: var(--txt-2); }
.form-chip.L { background: rgba(255, 77, 94, 0.14); color: #ff8f99; }
.form-none { font-size: 11.5px; color: var(--muted); }
.pre-note { margin: 6px 4px 0; font-size: 11px; color: #6c827e; }

/* ---------------- 提示 ---------------- */

.toasts {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 90;
  display: flex; flex-direction: column; gap: 8px;
  pointer-events: none;
}
.toast {
  display: flex; align-items: center; gap: 9px;
  min-width: 220px;
  padding: 11px 14px;
  border-radius: 11px;
  background: #10201f;
  border: 1px solid rgba(0, 227, 122, 0.28);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5);
  font-size: 12.5px;
  color: var(--txt);
  animation: toastIn 0.28s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.toast.out { animation: toastOut 0.3s ease forwards; }
.toast-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(0, 227, 122, 0.16); flex: none; }
.toast.is-warn { border-color: rgba(255, 176, 32, 0.3); }
.toast.is-warn .toast-dot { background: var(--amber); box-shadow: 0 0 0 4px rgba(255, 176, 32, 0.16); }
.toast.is-info { border-color: var(--line); }
.toast.is-info .toast-dot { background: var(--blue); box-shadow: 0 0 0 4px rgba(89, 167, 255, 0.16); }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px) scale(0.98); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(20px); } }

/* ---------------- 页脚 ---------------- */

.footer {
  position: relative;
  z-index: 1;
  max-width: 1520px;
  margin: 0 auto;
  padding: 18px 22px 30px;
  display: flex; flex-wrap: wrap; gap: 8px;
  font-size: 11px;
  color: #5c716d;
}
.foot-sep { color: #2f403d; }

/* ---------------- 响应式 ---------------- */

@media (max-width: 1320px) {
  .shell { grid-template-columns: 200px minmax(0, 1fr) 300px; gap: 14px; }
}

@media (max-width: 1180px) {
  .shell { grid-template-columns: 204px minmax(0, 1fr); }
  .rail { display: none; }
}

@media (max-width: 900px) {
  .topbar { padding: 0 14px; gap: 12px; }
  .topbar-status .topbar-clock { display: none; }
  .search { width: 150px; }
  .shell { grid-template-columns: minmax(0, 1fr); padding: 12px 14px 4px; gap: 12px; }
  .sidebar {
    position: static;
    padding: 8px;
    border-radius: 14px;
  }
  .side-block { display: contents; }
  .side-title, .side-note { display: none; }
  .sidebar { flex-direction: row; overflow-x: auto; scrollbar-width: none; }
  .sidebar::-webkit-scrollbar { display: none; }
  .league-nav { flex-direction: row; gap: 6px; }
  .league-item { height: 34px; width: auto; flex: none; padding: 0 11px; border: 1px solid var(--line); }
  .league-item.is-active::before { display: none; }
  .lg-name { font-size: 12.5px; }
  .lg-count { display: none; }
  .lg-live { position: static; margin: 0; }
  .date-btn { min-width: 66px; height: 50px; }
  .group-head { top: 0; position: static; }
  .brand-text span { display: none; }
  .footer { padding: 14px 14px 24px; }
}

@media (max-width: 620px) {
  .search { width: 36px; padding: 0; justify-content: center; }
  .search input, .search kbd { display: none; }
  .search:focus-within { position: absolute; left: 12px; right: 12px; top: 50%; transform: translateY(-50%); width: auto; padding: 0 10px; z-index: 5; }
  .search:focus-within input { display: block; }
  .source-chip span { display: none; }
  .source-chip { width: 36px; justify-content: center; padding: 0; }
  .source-chip .chev { display: none; }
  .row { grid-template-columns: 62px minmax(0, 1fr) 46px; padding: 8px 10px 8px 12px; gap: 8px; }
  .tname { font-size: 13px; }
  .tgoals { font-size: 18px; }
  .cell-meta .chev { display: none; }
  .star { width: 24px; height: 24px; }
  .filterbar { flex-direction: column; align-items: flex-start; gap: 8px; }
  .seg { padding: 0 10px; font-size: 12px; }
  .segmented { width: 100%; justify-content: space-between; }
  .list-meta { order: 2; }
  .drawer { width: 100%; }
  .source-panel { left: 12px; right: 12px; width: auto; }
  .toasts { left: 14px; right: 14px; bottom: 14px; }
  .toast { min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
