/* 体育彩票预测插件前端样式（全部以 .lottery-app 作用域隔离，避免污染主题） */

.lottery-app {
  --lp-bg: #f2f5fa;
  --lp-card: #ffffff;
  --lp-ink: #1e293b;
  --lp-muted: #64748b;
  --lp-line: #e2e8f0;
  --lp-brand: #1d4ed8;
  --lp-brand-dark: #1e3a8a;
  --lp-home: #2563eb;
  --lp-draw: #94a3b8;
  --lp-away: #f59e0b;
  --lp-good: #059669;
  --lp-bad: #dc2626;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--lp-ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.lottery-app * { box-sizing: border-box; }

.lottery-hero {
  background: linear-gradient(135deg, #0f2a6b 0%, #1d4ed8 60%, #3b82f6 100%);
  color: #fff;
  padding: 30px 20px 26px;
  margin-bottom: 20px;
  border-radius: 0 0 22px 22px;
}
.lottery-hero-inner { max-width: 860px; margin: 0 auto; }
.lottery-hero h1 { font-size: 23px; font-weight: 700; margin: 0 0 6px; letter-spacing: .5px; }
.lottery-hero p { margin: 0; opacity: .9; font-size: 13px; }

.lottery-wrap { max-width: 860px; margin: 0 auto; padding: 0 16px 40px; }

.lottery-card {
  background: var(--lp-card);
  border: 1px solid var(--lp-line);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 18px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .04);
}
.lottery-card h2 {
  font-size: 16px; font-weight: 700; margin: 0 0 14px;
  display: flex; align-items: center; gap: 8px;
}
.lottery-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lp-brand); display: inline-block; }

.lottery-app button {
  cursor: pointer; border: none; border-radius: 9px;
  font-size: 14px; font-weight: 600; padding: 10px 18px;
  transition: opacity .15s; font-family: inherit;
}
.lottery-app button:disabled { opacity: .55; cursor: not-allowed; }
.lottery-btn-primary { background: var(--lp-brand); color: #fff; }
.lottery-btn-primary:hover { background: var(--lp-brand-dark); }

.lottery-match-list { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.lottery-match-item {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 12px 14px; border: 1px solid var(--lp-line);
  border-radius: 11px; cursor: pointer; transition: border-color .15s, background .15s;
}
.lottery-match-item:hover { border-color: var(--lp-brand); background: #f8faff; }
.lottery-match-meta { min-width: 0; }
.lottery-match-league { font-size: 11px; color: var(--lp-muted); }
.lottery-match-teams { font-weight: 600; font-size: 14px; }
.lottery-match-teams .lottery-vs { color: var(--lp-muted); font-weight: 400; margin: 0 6px; }
.lottery-match-odds { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.lottery-match-odds .lottery-big { font-size: 15px; font-weight: 700; }
.lottery-match-odds .lottery-small { font-size: 11px; color: var(--lp-muted); }

.lottery-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .lottery-grid { grid-template-columns: 1fr; } }

.lottery-prob-block { margin: 16px 0; }
.lottery-prob-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.lottery-prob-label { width: 44px; font-weight: 600; font-size: 14px; flex-shrink: 0; }
.lottery-bar-track { flex: 1; height: 22px; background: #eef2f7; border-radius: 6px; overflow: hidden; }
.lottery-bar {
  height: 100%; border-radius: 6px; color: #fff; font-size: 11px; font-weight: 600;
  display: flex; align-items: center; justify-content: flex-end; padding-right: 8px;
  min-width: 34px; white-space: nowrap; transition: width .5s ease;
}
.lottery-bar.lottery-home { background: var(--lp-home); }
.lottery-bar.lottery-draw { background: var(--lp-draw); }
.lottery-bar.lottery-away { background: var(--lp-away); }

.lottery-kv { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px dashed var(--lp-line); font-size: 13px; }
.lottery-kv:last-child { border-bottom: none; }
.lottery-kv .lottery-k { color: var(--lp-muted); }
.lottery-kv .lottery-v { font-weight: 600; font-variant-numeric: tabular-nums; }

.lottery-ev-badge {
  display: inline-block; padding: 2px 9px; border-radius: 20px; font-size: 12px; font-weight: 700;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.lottery-ev-pos { background: #ecfdf5; color: var(--lp-good); }
.lottery-ev-neg { background: #fef2f2; color: var(--lp-bad); }

.lottery-advice { border-radius: 11px; padding: 14px 16px; font-weight: 600; font-size: 14px; margin-top: 14px; }
.lottery-advice.lottery-bet { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.lottery-advice.lottery-pass { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.lottery-advice .lottery-stake { font-weight: 700; font-size: 16px; }

.lottery-predicted { font-size: 14px; margin-bottom: 4px; }
.lottery-predicted b { font-size: 18px; color: var(--lp-brand); }

.lottery-app form label { display: block; font-size: 12px; color: var(--lp-muted); margin: 10px 0 4px; }
.lottery-app form input {
  width: 100%; padding: 10px 12px; border: 1px solid var(--lp-line);
  border-radius: 9px; font-size: 14px; background: #fff; font-family: inherit;
}
.lottery-app form input:focus { outline: 2px solid #bfdbfe; border-color: var(--lp-brand); }
.lottery-odds-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }

.lottery-mt { margin-top: 14px; }
.lottery-hint { font-size: 12px; color: var(--lp-muted); margin-top: 10px; }
.lottery-err { color: var(--lp-bad); font-size: 13px; margin-top: 10px; }
.lottery-loading { color: var(--lp-muted); font-size: 13px; margin-top: 10px; }
.lottery-footer { text-align: center; font-size: 12px; color: var(--lp-muted); margin-top: 8px; }
