:root {
  --hero-start: #ff6f3d;
  --hero-mid: #ff8956;
  --hero-end: #ffb596;
  --primary: #e84f16;
  --primary-bright: #ff6b35;
  --primary-soft: #fff0e8;
  --recommendation: #ff7c45;
  --surface: #ffffff;
  --surface-soft: #fff8f4;
  --page: #fff4ef;
  --line: #ffe0d1;
  --line-strong: #ffc3a7;
  --text: #2c2927;
  --muted: #8e8580;
  --quiet: #b4aaa4;
  --success: #198754;
  --warning: #b95116;
  --danger: #c7372f;
  --shadow: 0 14px 38px rgba(143, 65, 30, 0.1);
  --radius-sm: 9px;
  --radius-md: 13px;
  --radius-card: 17px;
  --radius-panel: 21px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --hero-channel-height: 62px;
  color: var(--text);
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { min-width: 320px; min-height: 100%; background: #f2eee9; scroll-behavior: smooth; }
body { min-width: 320px; min-height: 100%; margin: 0; background: #f2eee9; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { border: 0; }
a { color: inherit; text-decoration: none; }
svg { display: block; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.app-shell {
  width: min(100%, 430px);
  min-height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  background: var(--page);
  box-shadow: 0 0 50px rgba(78, 49, 35, 0.12);
}

.hero {
  padding: calc(15px + var(--safe-top)) 15px 30px;
  color: white;
  background: linear-gradient(180deg, var(--hero-start) 0%, var(--hero-mid) 44%, var(--hero-end) 100%);
}

.hero-row { display: flex; align-items: center; justify-content: space-between; min-height: 45px; gap: 8px; }
.hero-identity, .hero-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 6px; }
.hero-avatar {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid #fff7;
  border-radius: 50%;
  color: #8c3212;
  background: #fff1e8;
}
.hero-avatar svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.hero-actions a {
  display: grid;
  min-width: 44px;
  min-height: 44px;
  padding-inline: 8px;
  place-items: center;
  border: 1px solid #fff9;
  border-radius: 13px;
  color: #853412;
  background: #fff3eb;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}
.hero-avatar[aria-current="page"], .hero-actions a[aria-current="page"] { color: #fff; background: #a33e18; }
.brand { display: inline-flex; align-items: center; gap: 5px; min-height: 44px; font-size: 22px; font-weight: 800; letter-spacing: -0.04em; white-space: nowrap; }
.brand b { margin-left: 2px; font-weight: 900; }
.brand-mark { width: 34px; height: 34px; fill: white; filter: drop-shadow(0 2px 5px rgba(144, 53, 20, 0.15)); }
.preview-status { display: inline-block; margin-right: 5px; padding: 3px 7px; border-radius: 8px; color: #853412; background: #fff2e8; font-size: 10px; font-weight: 800; }

.module-nav {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  margin-top: 14px;
  padding: 14px 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius-panel);
  color: var(--text);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}
.module-link {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 64px;
  align-items: center;
  justify-content: flex-start;
  flex-direction: column;
  gap: 7px;
  padding: 0 2px;
  border-radius: 13px;
  color: #625b56;
  background: transparent;
  cursor: pointer;
}
.module-link::after { content: ""; position: absolute; right: 8px; bottom: -8px; left: 8px; height: 3px; border-radius: 3px; background: transparent; }
.module-link[aria-current="page"] { color: var(--primary); }
.module-link[aria-current="page"]::after { background: var(--primary-bright); }
.module-icon {
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  border-radius: 50%;
  color: var(--primary-bright);
  background: #fff1e9;
}
.module-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.module-link span:last-child { overflow: hidden; max-width: 100%; font-size: 11px; font-weight: 800; white-space: nowrap; text-overflow: ellipsis; }
.hero-note { margin: 14px 8px -12px; color: rgba(255, 255, 255, 0.72); font-size: 11px; }

.hero-channel-nav {
  position: fixed;
  z-index: 15;
  bottom: 0;
  left: 50%;
  display: flex;
  width: min(100%, 430px);
  min-height: calc(var(--hero-channel-height) + var(--safe-bottom));
  align-items: center;
  gap: 8px;
  padding: 5px 10px calc(5px + var(--safe-bottom));
  border-top: 1px solid var(--line);
  background: #fffaf6;
  box-shadow: 0 -5px 22px rgba(142, 65, 31, 0.09);
  transform: translateX(-50%);
}
.hero-channel-home, .hero-channel-links a {
  display: grid;
  flex: 0 0 auto;
  min-width: 44px;
  min-height: 44px;
  padding-inline: 10px;
  place-items: center;
  border-radius: 10px;
  color: #5c4e47;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}
.hero-channel-home { color: #8d3415; background: #ffe7da; }
.hero-channel-links { display: flex; min-width: 0; gap: 2px; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: thin; }
.hero-channel-links a:focus-visible { outline-offset: -3px; }
.hero-channel-home[aria-current="page"], .hero-channel-links a[aria-current="page"] { color: #fff; background: #a33e18; }

.demo-banner, .stale-banner {
  margin: 10px 13px 0;
  padding: 9px 12px;
  border: 1px solid #efb188;
  border-radius: 12px;
  color: #7b3516;
  background: #fff4df;
  font-size: 11px;
  line-height: 1.55;
}
.stale-banner { border-color: #e7a2a0; color: #7e2926; background: #fff0ef; }

.source-status {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(149, 76, 42, 0.06);
}
.source-status.compact { margin-top: 11px; padding: 11px; background: #fffaf7; box-shadow: none; }
.source-status-head { display: flex; align-items: flex-start; gap: 9px; }
.source-status-head strong { display: block; font-size: 12px; }
.source-status-head p { margin: 3px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.source-dot { flex: 0 0 auto; width: 9px; height: 9px; margin-top: 4px; border: 2px solid #fff; border-radius: 50%; background: #aaa19b; box-shadow: 0 0 0 1px #cfc6c0; }
.source-dot.success { background: var(--success); box-shadow: 0 0 0 1px #7dc5a2; }
.source-dot.warning { background: #dd862b; box-shadow: 0 0 0 1px #ecc18d; }
.source-dot.danger { background: var(--danger); box-shadow: 0 0 0 1px #e6a09c; }
.source-status-meta { display: flex; flex-wrap: wrap; gap: 5px 10px; margin-top: 9px; padding-top: 8px; border-top: 1px dashed #eadbd3; color: #9b9089; font-size: 9px; line-height: 1.45; }

#main { min-height: 480px; padding: 22px 12px 10px; outline: none; }
.screen { display: grid; gap: 12px; }
.content-panel {
  padding: 13px;
  border: 1px solid rgba(255, 221, 205, 0.86);
  border-radius: var(--radius-panel);
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(149, 76, 42, 0.07);
}
.screen-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 2px 2px 0; }
.screen-title h1 { margin: 0; font-size: 21px; line-height: 1.25; letter-spacing: -0.04em; }
.screen-title p { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.screen-badge { flex: 0 0 auto; padding: 6px 9px; border: 1px solid var(--line); border-radius: 999px; color: var(--primary); background: #fff; font-size: 10px; font-weight: 800; }

.date-strip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; padding: 3px; border-radius: 12px; background: #fff7f2; }
.date-button { min-width: 0; min-height: 47px; padding: 5px 1px; border-radius: 9px; color: #9b928d; background: transparent; font-size: 10px; line-height: 1.35; cursor: pointer; }
.date-button b { display: block; margin-top: 2px; font-size: 10px; }
.date-button[aria-pressed="true"] { color: #fff; background: var(--primary-bright); box-shadow: 0 4px 12px rgba(232, 79, 22, 0.22); }

.today-summary, .analysis-overview { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: 11px; }
.today-summary div, .analysis-overview span { padding: 9px 6px; border-radius: 10px; background: var(--surface-soft); text-align: center; }
.today-summary small { display: block; color: var(--muted); font-size: 9px; }
.today-summary strong { display: block; margin-top: 3px; color: var(--primary); font-size: 15px; }
.analysis-overview { margin: 0; }
.analysis-overview span { color: var(--muted); font-size: 9px; }
.analysis-overview b { display: block; margin-bottom: 3px; color: var(--text); font-size: 15px; }

.filter-bar { display: flex; gap: 5px; overflow-x: auto; padding: 2px 0 8px; scrollbar-width: none; }
.filter-bar::-webkit-scrollbar { display: none; }
.filter-bar button { flex: 0 0 auto; min-height: 34px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; color: #807670; background: #fff; font-size: 10px; font-weight: 800; cursor: pointer; }
.filter-bar button[aria-pressed="true"] { border-color: var(--primary-bright); color: #fff; background: var(--primary-bright); }

.section-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 15px 1px 10px; }
.section-head h1 { margin: 0; font-size: 20px; line-height: 1.3; letter-spacing: -0.03em; }
.section-head > div { display: flex; min-width: 0; align-items: center; gap: 8px; }
.section-head h2, .section-head h3 { margin: 0; font-size: 17px; letter-spacing: -0.03em; }
.section-head .spark { color: var(--primary-bright); font-size: 20px; }
.section-head .pill { padding: 4px 8px; border-radius: 999px; color: var(--primary); background: var(--primary-soft); font-size: 10px; font-weight: 800; }
.refresh-button { display: inline-flex; min-height: 38px; align-items: center; gap: 5px; padding: 0 8px; border-radius: 9px; color: var(--muted); background: transparent; font-size: 11px; cursor: pointer; }
.refresh-button svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.recommendation-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 7px; }
.recommendation-card {
  min-width: 0;
  min-height: 124px;
  padding: 11px 8px 9px;
  border-radius: 12px;
  color: #fff;
  background: var(--recommendation);
  text-align: center;
  cursor: pointer;
  box-shadow: 0 7px 15px rgba(219, 83, 28, 0.16);
}
.recommendation-card small { display: block; overflow: hidden; color: rgba(255, 255, 255, 0.78); font-size: 9px; white-space: nowrap; text-overflow: ellipsis; }
.recommendation-card .teams { display: block; overflow: hidden; margin-top: 8px; font-size: 12px; font-weight: 800; white-space: nowrap; text-overflow: ellipsis; }
.recommendation-card .pick { display: block; margin-top: 7px; font-size: 16px; font-weight: 900; }
.recommendation-card .recommendation-state { display: inline-flex; margin-top: 8px; padding: 3px 7px; border-radius: 999px; color: #d94b16; background: #fff; font-size: 9px; font-weight: 900; }
.recommendation-card .probability { display: block; margin-top: 5px; font-size: 11px; font-weight: 800; }

.match-list { display: grid; gap: 9px; }
.match-card {
  display: block;
  width: 100%;
  padding: 12px 12px 10px;
  border: 1px solid transparent;
  border-radius: 14px;
  color: var(--text);
  background: var(--surface-soft);
  text-align: left;
  cursor: pointer;
}
.match-card:hover { border-color: var(--line-strong); }
.match-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #857c77; font-size: 10px; }
.match-head b { margin-left: 6px; color: var(--primary); }
.analysis-chip { padding: 4px 7px; border: 1px solid var(--primary-bright); border-radius: 999px; color: var(--primary); background: #fff; font-size: 9px; font-weight: 800; }
.analysis-chip.partial { border-color: #d9a96d; color: #92611f; }
.analysis-chip.waiting { border-color: #cfc6c0; color: #7f7671; }
.match-main { display: grid; grid-template-columns: minmax(0, 1fr) 90px minmax(0, 1fr); align-items: center; gap: 5px; margin-top: 10px; }
.team { display: grid; min-width: 0; justify-items: center; gap: 7px; }
.team-avatar { position: relative; display: grid; width: 42px; height: 42px; overflow: hidden; place-items: center; border: 1px solid #e7dfda; border-radius: 50%; color: #80756f; background: #ebe7e3; font-size: 14px; font-weight: 900; }
.team-avatar.large { width: 52px; height: 52px; margin: 0 auto 5px; }
.team-avatar-fallback { display: grid; position: absolute; inset: 0; place-items: center; }
.team-avatar img { position: relative; z-index: 1; display: block; width: 100%; height: 100%; padding: 4px; background: #fff; object-fit: contain; }
.team-avatar img[hidden] { display: none; }
.team strong { overflow: hidden; width: 100%; font-size: 12px; text-align: center; white-space: nowrap; text-overflow: ellipsis; }
.match-center { display: grid; justify-items: center; gap: 4px; }
.score { font-size: 20px; font-weight: 900; letter-spacing: 0.05em; }
.match-status { padding: 2px 7px; border-radius: 999px; color: #fff; background: var(--primary-bright); font-size: 9px; font-weight: 800; }
.match-status.live { background: var(--success); }
.match-status.finished { color: #675e59; background: #e9e4e0; }
.match-time { color: var(--muted); font-size: 9px; }
.match-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 11px; padding-top: 8px; border-top: 1px dashed #eadbd3; color: var(--muted); font-size: 9px; }
.match-metrics span { min-width: 0; text-align: center; }
.match-metrics b { display: block; margin-top: 3px; color: #4f4945; font-size: 10px; }
.match-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 5px 8px; margin-top: 8px; color: #a09691; font-size: 9px; }
.match-foot span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

.empty-state, .error-state, .locked-state { padding: 30px 20px; border: 1px dashed var(--line-strong); border-radius: 15px; color: var(--muted); background: #fffaf7; text-align: center; }
.empty-state strong, .error-state strong, .locked-state strong { display: block; color: var(--text); font-size: 15px; }
.empty-state p, .error-state p, .locked-state p { margin: 8px 0 0; font-size: 11px; line-height: 1.6; }
.empty-state button, .error-state button, .locked-state button { margin-top: 15px; }
.skeleton-list { display: grid; gap: 9px; }
.skeleton { height: 146px; overflow: hidden; border-radius: 14px; background: #f4eae4; }
.skeleton::after { content: ""; display: block; width: 45%; height: 100%; transform: translateX(-120%); background: linear-gradient(90deg, transparent, rgba(255,255,255,.75), transparent); animation: shimmer 1.3s infinite; }
@keyframes shimmer { to { transform: translateX(330%); } }

.analysis-list, .review-list { display: grid; gap: 10px; }
.analysis-card, .review-card { padding: 14px; border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.analysis-card header, .review-card header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.analysis-card h3, .review-card h3 { margin: 0; font-size: 15px; }
.analysis-card small, .review-card small { color: var(--muted); font-size: 10px; }
.analysis-card p { margin: 10px 0 0; color: #5d5550; font-size: 11px; line-height: 1.7; }
.analysis-card .analysis-risk { padding: 9px 10px; border-radius: 9px; color: #7c4b36; background: #fff3ec; }
.analysis-card .analysis-risk b { display: block; margin-bottom: 2px; color: var(--warning); font-size: 9px; }
.analysis-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; }
.analysis-grid span { padding: 8px 4px; border-radius: 9px; color: var(--muted); background: var(--surface-soft); font-size: 9px; text-align: center; }
.analysis-grid b { display: block; overflow: hidden; margin-top: 3px; color: var(--text); font-size: 11px; white-space: nowrap; text-overflow: ellipsis; }
.evidence-mini { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 5px; margin-top: 10px; }
.evidence-mini span { padding: 7px 8px; border: 1px solid #f0e5df; border-radius: 8px; color: var(--muted); font-size: 9px; }
.evidence-mini b { display: block; overflow: hidden; margin-bottom: 2px; color: #554d48; white-space: nowrap; text-overflow: ellipsis; }
.analysis-meta { margin-top: 9px; color: #a19791; font-size: 9px; line-height: 1.5; }

.calculator-card { padding: 16px; border: 1px solid var(--line); border-radius: 17px; background: #fff; }
.calculator-card h2 { margin: 0; font-size: 18px; }
.calculator-card > p { margin: 7px 0 14px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.calculator-boundary { display: flex; align-items: flex-start; gap: 9px; margin-bottom: 14px; padding: 10px; border-radius: 11px; color: #4d6358; background: #f0f8f4; }
.calculator-boundary > span { display: grid; flex: 0 0 auto; width: 28px; height: 28px; place-items: center; border-radius: 50%; color: var(--success); background: #fff; }
.calculator-boundary svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.calculator-boundary b, .calculator-boundary small { display: block; }
.calculator-boundary b { font-size: 11px; }
.calculator-boundary small { margin-top: 3px; color: #6f8077; font-size: 9px; line-height: 1.5; }
.form-grid { display: grid; gap: 11px; }
.form-grid.two { grid-template-columns: 1fr 1fr; }
label { display: grid; gap: 6px; color: #6f6661; font-size: 11px; font-weight: 700; }
input, select { width: 100%; min-height: 44px; padding: 0 11px; border: 1px solid #ddcec6; border-radius: 10px; color: var(--text); background: #fff; outline: none; }
input:focus, select:focus { border-color: var(--primary-bright); box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.14); }
.calculator-result { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 14px; }
.calculator-result div { padding: 11px; border-radius: 11px; background: var(--surface-soft); }
.calculator-result small { display: block; color: var(--muted); font-size: 9px; }
.calculator-result strong { display: block; margin-top: 5px; color: var(--primary); font-size: 17px; }
.calculator-actions { margin-top: 0; }
.calculator-status { min-height: 17px; margin: 12px 0 0 !important; color: #7c716b !important; font-size: 10px !important; }
.calculator-breakdown { margin-top: 10px; padding: 11px; border: 1px dashed var(--line-strong); border-radius: 10px; background: #fffaf7; }
.calculator-breakdown b { color: #5d534e; font-size: 10px; }
.calculator-breakdown p { margin: 5px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; overflow-wrap: anywhere; }
.calculator-warning { display: flex; align-items: flex-start; gap: 7px; margin: 12px 0 0; padding: 10px; border-radius: 10px; color: #76523f; background: #fff1e8; font-size: 10px; line-height: 1.6; }
.calculator-warning svg { flex: 0 0 auto; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.self-select-toolbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin: 14px 0 10px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #fffaf7; }
.self-select-toolbar strong, .self-select-toolbar small { display: block; }
.self-select-toolbar strong { color: var(--text); font-size: 12px; }
.self-select-toolbar small { margin-top: 3px; color: var(--muted); font-size: 9px; line-height: 1.4; }
.self-select-toolbar .button-row { flex: 0 0 auto; margin-top: 0; }
.self-select-toolbar button { min-height: 34px; padding: 0 10px; font-size: 9px; }
.self-select-list { display: grid; gap: 10px; }
.self-select-card { padding: 13px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.self-select-card header { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.self-select-card h3 { margin: 2px 0 0; color: var(--text); font-size: 13px; }
.self-select-card small { color: var(--muted); font-size: 9px; }
.self-select-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin-top: 11px; }
.self-select-options button { min-height: 48px; padding: 8px 9px; border: 1px solid var(--line); border-radius: 10px; text-align: left; color: var(--muted); background: var(--surface-soft); cursor: pointer; }
.self-select-options button[aria-pressed="true"] { border-color: var(--primary); color: var(--primary); background: #fff1e9; box-shadow: 0 4px 12px rgba(255, 104, 59, 0.12); }
.self-select-options span, .self-select-options b { display: block; overflow-wrap: anywhere; }
.self-select-options span { font-size: 8px; }
.self-select-options b { margin-top: 3px; color: var(--text); font-size: 11px; }
.self-select-options button[aria-pressed="true"] b { color: var(--primary); }
.odds-card .self-select-options { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.odds-card .self-select-options button { text-align: center; }
.odds-card .self-select-options button:disabled { opacity: .7; cursor: default; }
.odds-card .self-select-options span { font-size: 10px; }
.odds-card .self-select-options b { font-size: 15px; font-variant-numeric: tabular-nums; }
.self-select-remove { margin-top: 9px; padding: 0; color: var(--muted); background: transparent; font-size: 9px; text-decoration: underline; cursor: pointer; }
.self-select-scheme { margin-top: 14px; padding: 14px; border: 1px solid #ffd1bd; border-radius: 14px; background: linear-gradient(145deg, #fff8f4, #fff); }
.self-select-scheme header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.self-select-scheme header small, .self-select-scheme header h2 { display: block; margin: 0; }
.self-select-scheme header small { color: var(--muted); font-size: 9px; }
.self-select-scheme header h2 { margin-top: 3px; font-size: 15px; }
.self-select-scheme header > span { padding: 4px 8px; border-radius: 999px; color: var(--primary); background: #fff0e8; font-size: 9px; font-weight: 800; }
.self-select-scheme ol { display: grid; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.self-select-scheme li { display: flex; justify-content: space-between; gap: 10px; padding: 10px; border-radius: 10px; background: #fff; }
.self-select-scheme li strong, .self-select-scheme li small, .self-select-scheme li span, .self-select-scheme li b { display: block; }
.self-select-scheme li small { color: var(--muted); font-size: 8px; }
.self-select-scheme li strong { margin-top: 3px; font-size: 11px; }
.self-select-scheme li p { flex: 0 0 38%; margin: 0; text-align: right; }
.self-select-scheme li span { color: var(--muted); font-size: 8px; }
.self-select-scheme li b { margin-top: 3px; color: var(--primary); font-size: 11px; overflow-wrap: anywhere; }
.self-select-scheme > p { margin: 10px 0 0; color: var(--muted); font-size: 9px; line-height: 1.5; }

.review-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin: 11px 0; }
.review-summary div { padding: 10px 6px; border-radius: 11px; background: var(--surface-soft); text-align: center; }
.review-summary small { display: block; color: var(--muted); font-size: 9px; }
.review-summary strong { display: block; margin-top: 4px; font-size: 15px; }
.review-controls { display: grid; gap: 8px; margin-bottom: 8px; }
.review-controls label { font-size: 10px; }
.review-controls select, .review-controls input[type="date"] { min-width: 0; min-height: 40px; }
.review-controls .filter-bar { padding-bottom: 0; }
.sample-note { margin: 9px 1px 12px; padding: 9px 10px; border-radius: 9px; color: #796e67; background: #fff8e8; font-size: 9px; line-height: 1.55; }
.review-columns { display: grid; gap: 8px; margin-top: 11px; }
.review-columns section { padding: 10px; border: 1px solid #f0e5df; border-radius: 11px; background: #fffaf7; }
.review-columns h4 { margin: 0; font-size: 11px; }
.review-columns section > small { display: block; margin-top: 3px; color: var(--muted); font-size: 8px; }
.frozen-picks { display: grid; gap: 6px; margin-top: 9px; }
.frozen-picks > div { display: grid; grid-template-columns: minmax(62px, .8fr) minmax(0, 1.3fr) auto; align-items: center; gap: 6px; font-size: 9px; }
.frozen-picks span { color: var(--muted); }
.frozen-picks b { overflow: hidden; font-size: 10px; white-space: nowrap; text-overflow: ellipsis; }
.frozen-picks em { padding: 3px 6px; border-radius: 999px; font-size: 8px; font-style: normal; }
.frozen-picks em.hit { color: #9d301c; background: #ffe7de; }
.frozen-picks em.miss { color: #48645a; background: #eaf4ef; }
.frozen-picks em.pending { color: #756b65; background: #eee9e5; }
.review-empty-copy { margin: 9px 0 0; color: var(--muted); font-size: 9px; line-height: 1.5; }
.review-outcome { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 7px; margin-top: 10px; }
.review-outcome span { overflow: hidden; font-size: 12px; font-weight: 800; white-space: nowrap; text-overflow: ellipsis; }
.review-outcome span:last-child { text-align: right; }
.review-outcome strong { font-size: 18px; }
.review-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
.review-tags em { padding: 4px 7px; border-radius: 999px; color: #6e635d; background: #f3eeea; font-size: 9px; font-style: normal; }
.review-tags em.hit { color: #9d301c; background: #ffe7de; }
.review-audit { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-top: 9px; padding-top: 9px; border-top: 1px dashed #eadbd3; color: var(--muted); font-size: 9px; }
.review-audit b { max-width: 68%; color: #5b524d; text-align: right; }

.profile-card { padding: 18px; border: 1px solid var(--line); border-radius: 17px; background: #fff; }
.profile-head { display: flex; align-items: center; gap: 12px; }
.profile-avatar { display: grid; width: 52px; height: 52px; place-items: center; border-radius: 50%; color: #fff; background: var(--primary-bright); font-size: 18px; font-weight: 900; }
.profile-head h2 { margin: 0; font-size: 18px; }
.profile-head p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.profile-list { display: grid; margin-top: 16px; border-top: 1px solid #f0e5df; }
.profile-row { display: flex; min-height: 48px; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid #f0e5df; font-size: 12px; }
.profile-row span:last-child { color: var(--muted); text-align: right; }
.service-card h2 { margin: 0; font-size: 16px; }
.help-card { overflow: hidden; border: 1px solid var(--line); border-radius: 17px; background: #fff; }
.help-card details + details { border-top: 1px solid #f0e5df; }
.help-card summary { display: flex; min-height: 62px; align-items: center; gap: 10px; padding: 10px 14px; cursor: pointer; list-style: none; }
.help-card summary::-webkit-details-marker { display: none; }
.help-card summary::after { content: "+"; margin-left: auto; color: var(--primary); font-size: 20px; font-weight: 400; }
.help-card details[open] summary::after { content: "−"; }
.help-card summary > svg { flex: 0 0 auto; width: 20px; height: 20px; fill: none; stroke: var(--primary-bright); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.help-card summary span { min-width: 0; }
.help-card summary b, .help-card summary small { display: block; }
.help-card summary b { font-size: 12px; }
.help-card summary small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.help-card details > div { padding: 0 14px 12px 44px; color: #6f655f; font-size: 10px; line-height: 1.65; }
.help-card details > div p { margin: 6px 0; }

.primary-button, .outline-button, .danger-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: 11px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.primary-button { color: #fff; background: var(--primary); }
.outline-button { border: 1px solid var(--primary-bright); color: var(--primary); background: #fff; }
.danger-button { color: #9a302a; background: #fff0ef; }
.button-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.button-row > * { flex: 1 1 120px; }
button:disabled { cursor: not-allowed; opacity: 0.5; }

.legal-note { padding: 15px 18px calc(24px + var(--safe-bottom) + var(--hero-channel-height)); color: #a69b95; font-size: 9px; line-height: 1.6; text-align: center; }
.legal-note p { margin: 3px 0; }

.modal { width: min(calc(100% - 24px), 406px); max-height: calc(100vh - 28px); padding: 0; border: 0; border-radius: 20px; background: transparent; overflow: visible; }
.modal::backdrop { background: rgba(46, 30, 23, 0.5); backdrop-filter: blur(3px); }
.modal-card { max-height: calc(100vh - 28px); margin: 0; padding: 18px; border: 1px solid rgba(255,255,255,.7); border-radius: 20px; background: #fff; overflow: auto; box-shadow: 0 24px 70px rgba(52, 27, 16, 0.27); }
.modal-card > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.modal-card > header small { color: var(--primary); font-size: 10px; font-weight: 800; }
.modal-card > header h2 { margin: 4px 0 0; font-size: 20px; }
.icon-button { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 50%; color: #6f6661; background: #f6f0ec; font-size: 24px; cursor: pointer; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 16px 0; padding: 4px; border-radius: 11px; background: #f6f0ec; }
.auth-tabs button { min-height: 40px; border-radius: 8px; color: var(--muted); background: transparent; font-size: 12px; font-weight: 800; cursor: pointer; }
.auth-tabs button[aria-selected="true"] { color: var(--primary); background: #fff; box-shadow: 0 3px 10px rgba(90, 48, 30, 0.08); }
.auth-modal section { display: grid; gap: 12px; }
.check-line { grid-template-columns: auto 1fr; align-items: flex-start; font-weight: 500; line-height: 1.55; }
.check-line input { width: 18px; min-height: 18px; margin-top: 1px; }
.form-message { min-height: 18px; margin: 11px 0 0; color: var(--danger); font-size: 11px; line-height: 1.5; }
.detail-modal .modal-card { padding-bottom: calc(18px + var(--safe-bottom)); }
.detail-hero { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; margin-top: 15px; padding: 14px; border-radius: 14px; background: var(--surface-soft); text-align: center; }
.detail-hero strong { display: block; font-size: 13px; }
.detail-score { font-size: 21px; font-weight: 900; }
.detail-section { margin-top: 15px; }
.detail-section h3 { margin: 0 0 8px; font-size: 14px; }
.detail-copy { padding: 11px; border-left: 3px solid var(--primary-bright); border-radius: 0 10px 10px 0; color: #5e5550; background: #fff8f4; font-size: 11px; line-height: 1.75; white-space: pre-line; }
.source-list { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.source-list li { display: flex; justify-content: space-between; gap: 8px; padding: 8px 0; border-bottom: 1px solid #f0e5df; color: var(--muted); font-size: 10px; }
.source-list b { color: var(--text); }
.source-list li > div { min-width: 0; }
.source-list li span, .source-list li small { display: block; }
.source-list li small { margin-top: 3px; color: #aaa09a; font-size: 8px; line-height: 1.45; }
.source-list li b { flex: 0 0 auto; max-width: 52%; text-align: right; overflow-wrap: anywhere; }

.detail-screen { gap: 10px; }
.back-button { display: inline-flex; width: max-content; min-height: 38px; align-items: center; gap: 5px; padding: 0 9px; border-radius: 9px; color: #6c625c; background: rgba(255,255,255,.74); font-size: 11px; font-weight: 800; cursor: pointer; }
.back-button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.detail-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 2px 2px 0; }
.detail-title small { color: var(--primary); font-size: 10px; font-weight: 800; }
.detail-title h1 { margin: 4px 0 0; font-size: 19px; line-height: 1.3; letter-spacing: -0.035em; }
.detail-page-card { padding: 14px; border: 1px solid var(--line); border-radius: 17px; background: #fff; box-shadow: 0 9px 25px rgba(149, 76, 42, 0.06); }
.detail-page-card .detail-hero { margin-top: 0; }
.live-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 10px; }
.live-facts > div { min-width: 0; padding: 8px 4px; border: 1px solid #f1e5df; border-radius: 9px; background: #fff; text-align: center; }
.live-facts small, .live-facts b { display: block; }
.live-facts small { color: var(--muted); font-size: 8px; }
.live-facts b { overflow: hidden; margin-top: 3px; color: var(--text); font-size: 10px; white-space: nowrap; text-overflow: ellipsis; }
.live-facts p { display: flex; grid-column: 1 / -1; flex-wrap: wrap; justify-content: space-between; gap: 4px 8px; margin: 0; padding: 7px 8px; border-radius: 8px; color: #8c7f78; background: #fff8f4; font-size: 8px; }
.match-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 10px; }
.match-facts div { min-width: 0; padding: 8px 4px; border-radius: 9px; background: #fff8f4; text-align: center; }
.match-facts small, .match-facts b { display: block; }
.match-facts small { color: var(--muted); font-size: 8px; }
.match-facts b { overflow: hidden; margin-top: 3px; font-size: 9px; white-space: nowrap; text-overflow: ellipsis; }
.detail-page-card .detail-section { margin-top: 0; }
.detail-section-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.detail-section-title small { color: var(--muted); font-size: 9px; }
.detail-section-title h2 { margin: 3px 0 0; font-size: 16px; }
.detail-section-title > span { padding: 4px 7px; border-radius: 999px; color: var(--primary); background: var(--primary-soft); font-size: 8px; font-weight: 800; }
.detail-risk { margin: 9px 0 0; padding: 10px; border-radius: 10px; color: #735140; background: #fff0e8; font-size: 10px; line-height: 1.65; }
.detail-risk b { display: block; margin-bottom: 3px; color: var(--warning); }
.fact-groups, .watch-sections { display: grid; gap: 9px; margin-top: 12px; }
.fact-groups > section, .watch-sections:not(.rich) > section { padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: #fffaf7; }
.fact-groups h3, .watch-sections h3 { margin: 0; color: var(--text); font-size: 11px; }
.fact-groups ul, .watch-sections ul, .watch-limitations ul { display: grid; gap: 5px; margin: 7px 0 0; padding-left: 17px; color: #695f59; font-size: 10px; line-height: 1.55; }
.watch-sections header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.watch-sections header span { color: var(--primary); font-size: 8px; font-weight: 800; }
.watch-sections p { margin: 7px 0 0; color: var(--muted); font-size: 9px; }
.watch-limitations { margin-top: 10px; padding: 10px; border-radius: 10px; color: #76523f; background: #fff1e8; }
.watch-limitations b { font-size: 10px; }
.watch-time-meta { display: flex; flex-wrap: wrap; gap: 5px 10px; margin-top: 9px; color: #9b8f88; font-size: 8px; }
.watch-sections.rich { gap: 7px; }
.watch-group { overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: #fffaf7; }
.watch-group > summary { display: flex; min-height: 42px; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 10px; color: var(--text); font-size: 11px; font-weight: 800; cursor: pointer; list-style: none; }
.watch-group > summary::-webkit-details-marker { display: none; }
.watch-group > summary::before { content: "+"; flex: 0 0 auto; width: 18px; height: 18px; border-radius: 50%; color: var(--primary); background: var(--primary-soft); font-size: 13px; line-height: 18px; text-align: center; }
.watch-group[open] > summary::before { content: "−"; }
.watch-group > summary span { flex: 1; }
.watch-group > summary em { color: var(--primary); font-size: 8px; font-style: normal; }
.watch-group-body { padding: 0 10px 10px; }
.watch-empty { margin: 0 !important; color: var(--muted); font-size: 9px; line-height: 1.6; }
.watch-note { margin: 7px 0 0 !important; padding: 7px 8px; border-radius: 8px; color: #76523f !important; background: #fff1e8; font-size: 9px !important; line-height: 1.55; }
.watch-dimensions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.watch-dimensions span { min-width: 0; padding: 8px; border-radius: 8px; background: #fff; }
.watch-dimensions small, .watch-dimensions b { display: block; }
.watch-dimensions small { color: var(--muted); font-size: 8px; }
.watch-dimensions b { overflow-wrap: anywhere; margin-top: 3px; color: var(--text); font-size: 10px; }
.watch-quality-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; }
.watch-quality-grid span { padding: 7px; border-radius: 8px; color: #6e625b; background: #fff; font-size: 8px; }
.watch-quality-grid span.missing { color: #92715f; background: #fff0e8; }
.watch-quality-grid b { display: block; margin-bottom: 2px; color: var(--text); font-size: 9px; }
.watch-missing-queue { margin-top: 8px; }
.watch-missing-queue h4 { margin: 0; color: var(--text); font-size: 9px; }
.watch-notices { margin: 7px 0 0 !important; padding-left: 17px !important; }
.watch-progress { display: grid !important; gap: 4px !important; margin: 7px 0 0 !important; padding: 0 !important; list-style: none !important; }
.watch-progress li { display: flex; justify-content: space-between; gap: 8px; padding: 7px; border-radius: 7px; color: var(--muted); background: #fff; font-size: 8px; }
.watch-progress b { flex: 0 0 auto; color: var(--primary); }
.watch-compare { display: grid; overflow: hidden; border: 1px solid #f0e3dc; border-radius: 9px; background: #fff; }
.watch-compare > div { display: grid; grid-template-columns: minmax(0, 1fr) 80px minmax(0, 1fr); align-items: center; gap: 5px; min-height: 32px; padding: 5px 8px; border-top: 1px solid #f3e9e4; text-align: center; }
.watch-compare > div:first-child { border-top: 0; }
.watch-compare-head { color: var(--muted); background: #fff7f2; }
.watch-compare b { color: var(--text); font-size: 9px; overflow-wrap: anywhere; }
.watch-compare span { color: var(--muted); font-size: 8px; }
.watch-two-column { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.watch-side { min-width: 0; padding: 8px; border: 1px solid #f0e3dc; border-radius: 9px; background: #fff; }
.watch-side h4, .watch-group-body h4 { margin: 0 0 6px; color: var(--text); font-size: 10px; }
.watch-coverage { display: grid; gap: 3px; color: var(--muted); font-size: 8px; line-height: 1.45; }
.watch-form { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 7px 0 0 !important; }
.watch-form b { margin-right: 3px; color: var(--text); }
.watch-form span { display: inline-grid; width: 19px; height: 19px; place-items: center; border-radius: 50%; color: #fff; background: var(--primary-bright); font-size: 8px; font-weight: 800; }
.watch-metric-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; margin-top: 7px; }
.watch-metric-grid span { min-width: 0; padding: 6px 3px; border-radius: 7px; background: #fff7f2; text-align: center; }
.watch-metric-grid small, .watch-metric-grid b { display: block; }
.watch-metric-grid small { overflow: hidden; color: var(--muted); font-size: 7px; white-space: nowrap; text-overflow: ellipsis; }
.watch-metric-grid b { margin-top: 2px; color: var(--text); font-size: 8px; overflow-wrap: anywhere; }
.watch-history, .watch-player-list, .watch-facts { display: grid !important; gap: 5px !important; margin: 7px 0 0 !important; padding: 0 !important; list-style: none !important; }
.watch-history li, .watch-player-list li, .watch-facts li { padding: 7px; border-radius: 7px; background: #fff7f2; }
.watch-history small, .watch-history b, .watch-player-list span, .watch-player-list small, .watch-facts small { display: block; }
.watch-history small, .watch-player-list small, .watch-facts small { color: var(--muted); font-size: 7px; }
.watch-history b, .watch-player-list span { margin-top: 2px; color: var(--text); font-size: 8px; line-height: 1.45; }
.watch-history p, .watch-facts p { margin: 3px 0 0 !important; color: #766a63 !important; font-size: 8px !important; line-height: 1.5; }
.watch-player-list.rich p { margin: 4px 0 0 !important; color: #766a63 !important; font-size: 8px !important; line-height: 1.5; }
.watch-lineup-meta { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 7px; }
.watch-lineup-meta span { padding: 4px 6px; border-radius: 999px; color: #6c5d55; background: #fff; font-size: 8px; }
.watch-definition-list { display: grid; gap: 0; margin: 0; }
.watch-definition-list div { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 7px; padding: 6px 0; border-bottom: 1px solid #f2e7e1; font-size: 9px; }
.watch-definition-list div:last-child { border-bottom: 0; }
.watch-definition-list dt { color: var(--muted); }
.watch-definition-list dd { margin: 0; color: var(--text); text-align: right; overflow-wrap: anywhere; }
.league-center { display: grid; gap: 9px; margin-top: 10px; padding-top: 10px; border-top: 1px solid #f0e3dc; }
.league-center > h4, .league-block > h4 { margin: 0; color: var(--text); font-size: 10px; }
.league-block { display: grid; gap: 7px; }
.league-standing-view { overflow: hidden; border: 1px solid #f0e3dc; border-radius: 8px; background: #fff; }
.league-standing-view > summary { display: flex; min-height: 34px; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 8px; color: var(--text); font-size: 9px; font-weight: 800; cursor: pointer; list-style: none; }
.league-standing-view > summary::-webkit-details-marker { display: none; }
.league-standing-view > summary em { color: var(--primary); font-size: 8px; font-style: normal; }
.league-standing-view > .watch-empty { padding: 0 8px 8px; }
.league-table-scroll { max-width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; -webkit-overflow-scrolling: touch; }
.league-table { width: 100%; min-width: 620px; border-collapse: collapse; color: var(--text); font-size: 8px; }
.league-table th, .league-table td { padding: 6px 7px; border-top: 1px solid #f3e9e4; text-align: center; white-space: nowrap; }
.league-table th { color: var(--muted); background: #fff7f2; font-size: 7px; }
.league-table td:nth-child(2) { max-width: 170px; text-align: left; white-space: normal; }
.league-table td small { display: block; margin-top: 2px; color: var(--muted); font-size: 7px; line-height: 1.4; }
.league-results { max-height: 520px; overflow-y: auto; }
.detail-disclaimer { margin: 2px 4px; color: #948983; font-size: 9px; line-height: 1.65; text-align: center; }

.toast { position: fixed; z-index: 20; right: 16px; bottom: calc(18px + var(--safe-bottom) + var(--hero-channel-height)); left: 16px; max-width: 390px; margin: auto; padding: 11px 14px; border-radius: 11px; color: #fff; background: rgba(44, 37, 33, 0.94); font-size: 11px; text-align: center; opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity .18s ease, transform .18s ease; }
.toast.show { opacity: 1; transform: translateY(0); }

.fixture-panel { padding: 10px 8px; }
.fixture-toolbar { display: flex; align-items: center; gap: 5px; margin: 8px 0 4px; }
.fixture-tabs { display: grid; flex: 1; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.fixture-tabs button, .fixture-refresh { min-height: 36px; border: 0; border-radius: 8px; color: #615049; background: #fbefea; cursor: pointer; }
.fixture-tabs button { padding: 4px 2px; white-space: nowrap; font-size: 12px; font-weight: 750; }
.fixture-tabs button[aria-pressed="true"] { color: white; background: #b64125; }
.fixture-refresh { width: 36px; display: grid; place-items: center; flex-shrink: 0; }
.fixture-refresh svg { width: 17px; height: 17px; }
.fixture-notice { margin: 5px 0; padding: 5px 7px; color: #664b33; background: #faf1dc; border-radius: 5px; font-size: 10px; }
.fixture-list { display: grid; padding-bottom: 2px; }
.fixture-card { min-width: 0; padding: 4px 0; border-bottom: 1px solid #f0e8e3; font-variant-numeric: tabular-nums; }
.fixture-card:last-child { border-bottom: 0; }
.fixture-info, .fixture-pairing { display: grid; align-items: center; gap: 4px; min-width: 0; }
.fixture-info { grid-template-columns: minmax(0, 1fr) minmax(0, 1.32fr) minmax(30px, .65fr) auto 36px; color: #6d5b54; font-size: 10px; }
.fixture-pairing { grid-template-columns: 27px minmax(0, 1fr) 36px; }
.fixture-number, .fixture-competition b, .fixture-team strong, .fixture-phase { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.fixture-competition { display: flex; gap: 3px; align-items: baseline; min-width: 0; color: #503b33; }
.fixture-competition b { min-width: 0; color: #843c2a; }
.fixture-competition time, .fixture-stats span { flex-shrink: 0; white-space: nowrap; }
.fixture-phase { text-align: center; }
.fixture-phase.running, .fixture-score.running { color: #b42b23; font-weight: 800; }
.fixture-phase i { display: inline-block; width: 4px; height: 4px; margin-left: 2px; border-radius: 50%; background: currentColor; vertical-align: super; animation: fixture-live-pulse 1.1s ease-in-out infinite alternate; }
@keyframes fixture-live-pulse { from { opacity: .32; } to { opacity: 1; } }
.fixture-stats { display: flex; gap: 4px; }
.fixture-action, .fixture-favorite, .fixture-match { border: 0; background: transparent; cursor: pointer; padding: 0; }
.fixture-action { min-height: 28px; border: 1px solid #eccdc0; border-radius: 6px; color: #723d2e; font-size: 10px; font-weight: 750; }
.fixture-action.live { background: #fff0e8; }
.fixture-favorite { min-height: 36px; color: #71584e; font-size: 20px; }
.fixture-favorite[aria-pressed="true"] { color: #93511b; }
.fixture-match { display: grid; grid-template-columns: minmax(0, 1fr) 30px minmax(0, 1fr); align-items: center; gap: 3px; min-height: 36px; color: #30231e; }
.fixture-team { display: flex; gap: 2px; align-items: center; min-width: 0; font-size: 11px; }
.fixture-team.home { justify-content: flex-end; }
.fixture-team strong { min-width: 0; text-align: center; }
.fixture-team small { flex-shrink: 0; color: #736059; font-size: 9px; }
.fixture-crest.team-avatar { flex: 0 0 15px; width: 15px; height: 15px; font-size: 8px; }
.fixture-cards { display: inline-flex; gap: 1px; flex-shrink: 0; }
.fixture-card-count { display: inline-grid; place-items: center; min-width: 10px; padding: 1px; border-radius: 2px; font-size: 8px; text-align: center; }
.fixture-card-count.yellow { color: #331f04; background: #ffd06c; }
.fixture-card-count.red { color: white; background: #a93235; }
.fixture-card-count.quiet { color: #725c52; background: #f7ede8; }
.fixture-score { text-align: center; font-size: 13px; white-space: nowrap; }
.watch-preference label { display: flex; align-items: center; justify-content: space-between; min-height: 30px; font-size: 13px; font-weight: 700; }
.watch-preference input { width: 18px; height: 18px; accent-color: #b64125; }
.fixture-notifications { position: fixed; z-index: 19; right: 10px; bottom: calc(var(--safe-bottom) + var(--hero-channel-height) + 14px); left: 10px; display: grid; gap: 5px; max-width: 430px; margin: auto; pointer-events: none; }
.fixture-goal { display: flex; border: 1px solid #ebcab9; border-radius: 10px; color: #492b1e; background: #fff2e9; box-shadow: 0 3px 10px #52201020; pointer-events: auto; }
.fixture-goal-open, .fixture-goal-close { border: 0; color: inherit; background: transparent; cursor: pointer; }
.fixture-goal-open { display: grid; flex: 1; min-width: 0; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 8px; padding: 7px 10px; text-align: left; font-size: 12px; }
.fixture-goal-open span { grid-column: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fixture-goal-open small { margin-left: 5px; }
.fixture-goal-score { grid-column: 2; grid-row: 1 / 3; align-self: center; color: #a93624; font-size: 18px; }
.fixture-goal-close { width: 32px; font-size: 20px; }

:focus-visible { outline: 3px solid rgba(92, 42, 255, 0.48); outline-offset: 2px; }

@media (max-width: 349px) {
  .hero { padding-right: 10px; padding-left: 10px; }
  .module-nav { padding-right: 4px; padding-left: 4px; }
  .module-link span:last-child { font-size: 10px; }
  .module-icon { width: 32px; height: 32px; }
  .recommendation-row { gap: 4px; }
  .recommendation-card { padding-right: 5px; padding-left: 5px; }
  .match-main { grid-template-columns: minmax(0, 1fr) 80px minmax(0, 1fr); }
  .watch-two-column { grid-template-columns: 1fr; }
  .watch-compare > div { grid-template-columns: minmax(0, 1fr) 68px minmax(0, 1fr); padding-right: 5px; padding-left: 5px; }
  .form-grid.two { grid-template-columns: 1fr; }
  .self-select-toolbar { display: grid; }
  .self-select-toolbar .button-row { width: 100%; }
  .self-select-toolbar button { flex: 1; }
}

@media (min-width: 600px) {
  body { padding: 22px 0; }
  .app-shell { min-height: calc(100vh - 44px); border-radius: 26px; }
  .hero-channel-nav { border-radius: 0 0 18px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

.fixture-detail-screen .back-button {
  width: fit-content;
  text-decoration: none;
}

.fixture-hero {
  padding: 22px 12px;
  border: 1px solid #f1d6cb;
  border-radius: 18px;
  color: #3d211a;
  background: radial-gradient(ellipse at 50% 0, #fff9f6 12%, #ffebe1 86%);
}

.fixture-hero-heading {
  display: grid;
  justify-items: center;
  gap: 3px;
  margin-bottom: 15px;
  text-align: center;
}

.fixture-hero-heading h1 {
  margin: 0;
  font-size: 18px;
}

.fixture-hero-heading time {
  color: #78554a;
  font-size: 12px;
}

.fixture-hero-score {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(80px, .75fr) minmax(0, 1fr);
  align-items: start;
  gap: 6px;
  text-align: center;
}

.fixture-hero-team,
.fixture-hero-middle {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 7px;
  min-width: 0;
}

.fixture-hero-team strong {
  overflow-wrap: anywhere;
  font-size: 14px;
}

.fixture-hero-team small,
.fixture-hero-middle small {
  color: #78554a;
}

.fixture-hero-middle > b {
  padding-top: 7px;
  font-size: clamp(24px, 6vw, 36px);
  font-variant-numeric: tabular-nums;
}

.fixture-countdown {
  display: grid;
  justify-items: center;
  gap: 2px;
  margin-top: 2px;
  font-size: 11px;
  color: #78554a;
}

.fixture-countdown strong {
  color: #502a1c;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.fixture-detail-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 3px;
  margin: 12px 0;
  padding: 4px;
  border: 1px solid #f5dfd6;
  border-radius: 12px;
  background: #fff;
}

.fixture-detail-tabs a {
  display: grid;
  min-height: 42px;
  place-items: center;
  padding: 3px 2px;
  border-radius: 8px;
  color: #60473e;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
}

.fixture-detail-tabs a[aria-current] {
  color: #973813;
  background: #ffede3;
}

.fixture-detail-panel,
.fixture-live-facts {
  margin: 0 0 12px;
  padding: 12px;
  border: 1px solid #f4dfd6;
  border-radius: 12px;
  background: #fff;
}

.fixture-detail-panel h2 {
  margin: 0 0 7px;
  font-size: 15px;
}

.fixture-detail-panel summary {
  cursor: pointer;
  font-weight: 650;
}

.fixture-detail-panel > .detail-page-card {
  margin-top: 12px;
}

.fixture-detail-note {
  margin: 8px 0 12px;
  color: #715b52;
  line-height: 1.5;
}

.fixture-detail-note:empty {
  display: none;
}

.fixture-live-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
  text-align: center;
}

.fixture-live-facts dt {
  margin-bottom: 5px;
  color: #715b52;
  font-size: 12px;
}

.fixture-live-facts dd {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.fixture-chat-heading,
.fixture-chat-message header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
}

.fixture-chat-heading h2 {
  margin: 0;
}

.fixture-chat-list {
  display: grid;
  gap: 7px;
  max-height: 22rem;
  overflow: auto;
  margin: 8px 0;
  overflow-wrap: anywhere;
}

.fixture-chat-message {
  padding: 9px 10px;
  border-radius: 8px;
  background: #faf6f3;
}

.fixture-chat-message.is-mine {
  background: #ffefe7;
}

.fixture-chat-message header {
  color: #78554a;
  font-size: 11px;
}

.fixture-chat-message p {
  margin: 4px 0 0;
  white-space: pre-wrap;
}

.fixture-chat-compose {
  display: grid;
  gap: 5px;
}

.fixture-chat-compose label {
  font-size: 12px;
  font-weight: 650;
}

.fixture-chat-compose div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 8px;
}

.fixture-chat-compose textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 45px;
  padding: 7px 10px;
  resize: vertical;
  border: 1px solid #d4b5a7;
  border-radius: 8px;
  font: inherit;
}
.digital-items {
  display: grid;
  gap: 12px;
  margin-block: 12px;
}
.digital-item-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 12px;
}
.digital-item-body {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.65;
}
