:root {
  color-scheme: dark;
  --bg: #07100d;
  --surface: rgba(12, 26, 20, 0.92);
  --surface-soft: rgba(255, 255, 255, 0.06);
  --text: #eef8f0;
  --muted: #8bb19a;
  --border: rgba(137, 255, 177, 0.18);
  --primary: #51f28f;
  --primary-2: #1aa65b;
  --warning: #f4c44e;
  --danger: #ef6a5b;
  --info: #10b981;
  --gold: #ffd700;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.36);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 0%, rgba(81, 242, 143, 0.13), transparent 30%),
    radial-gradient(circle at 85% 12%, rgba(244, 196, 78, 0.1), transparent 28%),
    linear-gradient(180deg, #08130f 0%, var(--bg) 48%, #050908 100%);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Microsoft YaHei", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
select,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(16px, 4vw, 48px);
  border-bottom: 1px solid rgba(223, 229, 226, 0.9);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(9, 107, 69, 0.24);
}

.brand h1 {
  margin: 0;
  font-size: 19px;
  line-height: 1.25;
}

.brand p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.clock {
  color: var(--muted);
  font-size: 13px;
}

.source-status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  border: 1px solid rgba(9, 107, 69, 0.2);
  border-radius: 999px;
  background: rgba(9, 107, 69, 0.08);
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
}

.auto-refresh-status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  border: 1px solid rgba(40, 104, 168, 0.18);
  border-radius: 999px;
  background: rgba(40, 104, 168, 0.07);
  color: var(--info);
  font-size: 12px;
  font-weight: 800;
}

.auto-refresh-status.live {
  border-color: rgba(9, 107, 69, 0.26);
  background: rgba(9, 107, 69, 0.09);
  color: var(--primary);
}

.source-status.warning {
  border-color: rgba(183, 121, 31, 0.28);
  background: rgba(183, 121, 31, 0.12);
  color: var(--warning);
}

.icon-button {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  line-height: 1;
}

.icon-button:hover {
  border-color: rgba(9, 107, 69, 0.38);
  color: var(--primary);
}

.ghost-button {
  min-height: 28px;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
}

.ghost-button:hover {
  border-color: rgba(9, 107, 69, 0.38);
  color: var(--primary);
}

.app-shell {
  width: min(1380px, 100%);
  margin: 0 auto;
  padding: 22px clamp(14px, 4vw, 48px) 42px;
}

.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  gap: 24px;
  align-items: end;
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(238, 243, 240, 0.8)),
    url("data:image/svg+xml,%3Csvg width='120' height='120' viewBox='0 0 120 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23096b45' stroke-opacity='.09' stroke-width='1'%3E%3Cpath d='M0 30h120M0 60h120M0 90h120M30 0v120M60 0v120M90 0v120'/%3E%3Ccircle cx='60' cy='60' r='34'/%3E%3C/g%3E%3C/svg%3E");
  box-shadow: var(--shadow);
}

.hero-copy h2 {
  max-width: 840px;
  margin: 8px 0 10px;
  font-size: clamp(26px, 4vw, 46px);
  line-height: 1.08;
  letter-spacing: 0;
}

.hero-copy p {
  max-width: 780px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.eyebrow {
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.hero-metrics div {
  min-height: 92px;
  padding: 16px;
  border: 1px solid rgba(9, 107, 69, 0.13);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
}

.hero-metrics strong {
  display: block;
  font-size: 30px;
}

.hero-metrics span {
  color: var(--muted);
  font-size: 13px;
}

.control-bar {
  display: grid;
  grid-template-columns: auto 150px 160px 130px 160px 160px;
  gap: 12px;
  align-items: end;
  margin: 18px 0;
}

.segmented {
  display: flex;
  gap: 4px;
  width: max-content;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
}

.segment {
  min-width: 72px;
  height: 36px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
}

.segment.active {
  background: var(--primary);
  color: #fff;
}

.select-field {
  display: grid;
  gap: 6px;
}

.select-field span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.select-field select,
.select-field input {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
}

.workspace {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 340px;
  gap: 18px;
  align-items: start;
}

.league-column {
  position: sticky;
  top: 90px;
}

.league-panel,
.main-column,
.insight-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 28px rgba(26, 39, 35, 0.06);
}

.league-panel {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.main-column {
  padding: 18px;
}

.insight-column {
  display: grid;
  gap: 14px;
  position: sticky;
  top: 90px;
}

.insight-panel {
  padding: 16px;
}

.section-title {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.section-title h3 {
  margin: 3px 0 0;
  font-size: 20px;
}

.section-title.compact {
  margin-bottom: 0;
}

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

.search-field {
  display: grid;
  gap: 6px;
}

.search-field span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.search-field input {
  width: 100%;
  height: 40px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
}

.league-nav {
  display: grid;
  gap: 6px;
}

.league-nav-button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  color: var(--text);
  text-align: left;
}

.league-nav-button:hover {
  background: rgba(9, 107, 69, 0.06);
}

.league-nav-button.active {
  border-color: rgba(9, 107, 69, 0.2);
  background: rgba(9, 107, 69, 0.1);
  color: var(--primary);
}

.league-nav-button span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 800;
}

.league-nav-button strong {
  min-width: 28px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.match-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.match-card {
  display: grid;
  gap: 14px;
  min-height: 312px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
}

.match-card.live {
  border-color: rgba(180, 35, 24, 0.35);
  box-shadow: 0 14px 32px rgba(180, 35, 24, 0.08);
}

.match-card-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.tag.live {
  background: rgba(180, 35, 24, 0.1);
  color: var(--danger);
}

.tag.nba {
  background: rgba(40, 104, 168, 0.1);
  color: var(--info);
}

.tag.football {
  background: rgba(9, 107, 69, 0.1);
  color: var(--primary);
}

.tag.high {
  background: rgba(180, 35, 24, 0.1);
  color: var(--danger);
}

.tag.medium {
  background: rgba(183, 121, 31, 0.13);
  color: var(--warning);
}

.tag.low {
  background: rgba(9, 107, 69, 0.1);
  color: var(--primary);
}

.match-time {
  color: var(--muted);
  font-size: 12px;
  text-align: right;
  white-space: nowrap;
}

.teams {
  display: grid;
  gap: 8px;
}

.team-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.team-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 19px;
  font-weight: 850;
}

.score {
  min-width: 38px;
  text-align: right;
  font-size: 24px;
  font-weight: 900;
}

.market-row,
.factor-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.metric-box {
  min-height: 72px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fafbfb;
}

.metric-box span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.metric-box strong {
  display: block;
  margin-top: 4px;
  font-size: 18px;
}

.progress {
  width: 100%;
  height: 7px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 99px;
  background: #e8ecea;
}

.progress > i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--primary);
}

.card-note {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.prediction-strip {
  display: grid;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(40, 104, 168, 0.14);
  border-radius: var(--radius);
  background: rgba(40, 104, 168, 0.06);
}

.prediction-strip-head {
  display: grid;
  gap: 4px;
}

.prediction-strip span,
.prediction-pick span,
.prediction-detail-grid span {
  color: var(--info);
  font-size: 12px;
  font-weight: 800;
}

.prediction-strip strong,
.prediction-pick strong,
.prediction-detail-grid strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 14px;
}

.live-situation-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: -2px;
}

.live-situation-row span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 26px;
  padding: 4px 8px;
  border: 1px solid rgba(47, 62, 70, 0.1);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.live-situation-row b {
  color: var(--text);
}

.live-situation-row .danger {
  border-color: rgba(185, 28, 28, 0.18);
  background: rgba(185, 28, 28, 0.08);
  color: #991b1b;
}

.live-situation-row .warn {
  border-color: rgba(174, 99, 24, 0.18);
  background: rgba(174, 99, 24, 0.08);
  color: #8a4b13;
}

.prediction-pick-grid,
.prediction-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.prediction-pick,
.prediction-detail-grid > div {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 8px;
  border: 1px solid rgba(40, 104, 168, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.68);
}

.recommendation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
}

.recommendation-grid.compact {
  grid-template-columns: 1fr;
}

.recommendation-item {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 8px;
  border: 1px solid rgba(47, 62, 70, 0.1);
  border-radius: var(--radius);
  background: #fff;
}

.recommendation-item span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.recommendation-item strong {
  color: var(--text);
  font-size: 13px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.recommendation-item.ok {
  border-color: rgba(13, 113, 74, 0.18);
  background: rgba(13, 113, 74, 0.06);
}

.recommendation-item.info {
  border-color: rgba(40, 104, 168, 0.14);
  background: rgba(40, 104, 168, 0.05);
}

.recommendation-item.warn {
  border-color: rgba(174, 99, 24, 0.2);
  background: rgba(174, 99, 24, 0.08);
}

.coverage-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.coverage-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 26px;
  padding: 4px 8px;
  border: 1px solid rgba(47, 62, 70, 0.1);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.coverage-pill b {
  color: var(--text);
}

.coverage-pill.ok {
  border-color: rgba(13, 113, 74, 0.16);
  background: rgba(13, 113, 74, 0.08);
  color: var(--primary);
}

.coverage-pill.info {
  border-color: rgba(40, 104, 168, 0.16);
  background: rgba(40, 104, 168, 0.07);
  color: var(--info);
}

.coverage-pill.warn {
  border-color: rgba(174, 99, 24, 0.18);
  background: rgba(174, 99, 24, 0.08);
  color: #8a4b13;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
}

.primary-button {
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: var(--radius);
  background: var(--text);
  color: #fff;
  font-weight: 800;
}

.primary-button:hover {
  background: var(--primary);
}

.signal-list {
  display: grid;
  gap: 10px;
}

.signal-item {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
}

.signal-item.ok {
  border-color: rgba(13, 113, 74, 0.14);
  background: rgba(13, 113, 74, 0.04);
}

.signal-item.warn {
  border-color: rgba(183, 121, 31, 0.24);
  background: rgba(183, 121, 31, 0.08);
}

.signal-item strong {
  display: block;
  margin-bottom: 4px;
}

.signal-item span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.factor-guide-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.factor-guide-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 34px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.factor-guide-list strong {
  color: var(--text);
  font-size: 13px;
}

.sporttery-panel {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid rgba(190, 29, 35, 0.16);
  border-radius: var(--radius);
  background: #fff;
}

.sporttery-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.sporttery-head h3 {
  margin: 4px 0 6px;
  font-size: 20px;
}

.sporttery-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.sporttery-actions {
  display: flex;
  align-items: end;
  gap: 10px;
}

.multiplier-field {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.multiplier-field input {
  width: 72px;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font: inherit;
  font-weight: 900;
}

.stake-field input {
  width: 104px;
}

.sporttery-status {
  padding: 10px 12px;
  border-radius: var(--radius);
  background: #fff8f6;
  color: #9c251f;
  font-size: 13px;
  font-weight: 800;
}

.sporttery-status.warning {
  background: #fff2ec;
  color: #a33a2a;
}

.sporttery-plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.sporttery-plan-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(190, 29, 35, 0.14);
  border-radius: var(--radius);
  background: #fffdfc;
}

.sporttery-plan-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.sporttery-plan-top span,
.sporttery-pick-head span,
.sporttery-score-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.sporttery-plan-top h4 {
  margin: 3px 0 0;
  color: var(--text);
  font-size: 18px;
}

.sporttery-plan-top > strong {
  display: inline-flex;
  min-width: 46px;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: #d80000;
  color: #fff;
  font-size: 14px;
}

.sporttery-prize-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.sporttery-prize-row div {
  display: grid;
  gap: 3px;
  padding: 8px;
  border-radius: var(--radius);
  background: #fff4f1;
}

.sporttery-prize-row span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.sporttery-prize-row strong {
  color: #d80000;
  font-size: 14px;
}

.sporttery-pick-list {
  display: grid;
  gap: 10px;
}

.sporttery-pick {
  display: grid;
  gap: 7px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.sporttery-pick-head,
.sporttery-choice {
  display: grid;
  gap: 3px;
}

.sporttery-pick-head strong,
.sporttery-score-card strong {
  color: var(--text);
  font-size: 14px;
  line-height: 1.35;
}

.sporttery-choice {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.sporttery-choice span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.sporttery-choice strong {
  color: #d80000;
  font-size: 15px;
  white-space: nowrap;
}

.sporttery-pick p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.sporttery-ref-row,
.sporttery-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sporttery-ref-row em,
.sporttery-chip-row span {
  display: inline-flex;
  padding: 4px 7px;
  border-radius: var(--radius);
  background: var(--surface-soft);
  color: var(--text);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.35;
}

.sporttery-score-block {
  display: grid;
  gap: 10px;
}

.sporttery-score-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.sporttery-score-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fafbfb;
}

.sporttery-notice {
  padding: 10px 12px;
  border-left: 3px solid rgba(190, 29, 35, 0.28);
  background: #fff8f1;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.detail-panel {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  justify-content: end;
  background: rgba(21, 33, 29, 0.35);
}

.detail-panel.open {
  display: flex;
}

.detail-card {
  position: relative;
  width: min(760px, 100%);
  height: 100%;
  overflow-y: auto;
  padding: 24px;
  background: var(--bg);
  box-shadow: -18px 0 44px rgba(0, 0, 0, 0.18);
}

.close-button {
  position: sticky;
  top: 0;
  margin-left: auto;
  z-index: 3;
}

.detail-hero,
.detail-section {
  margin-bottom: 14px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
}

.detail-hero h2 {
  margin: 8px 0;
  font-size: 30px;
  line-height: 1.15;
}

.detail-subtitle {
  color: var(--muted);
  line-height: 1.6;
}

.detail-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.full-width {
  grid-column: 1 / -1;
}

.bar-list {
  display: grid;
  gap: 10px;
}

.data-coverage-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.data-coverage-card {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
}

.data-coverage-card.ok {
  border-color: rgba(13, 113, 74, 0.16);
  background: rgba(13, 113, 74, 0.05);
}

.data-coverage-card.info {
  border-color: rgba(40, 104, 168, 0.16);
  background: rgba(40, 104, 168, 0.05);
}

.data-coverage-card.warn {
  border-color: rgba(174, 99, 24, 0.18);
  background: rgba(174, 99, 24, 0.06);
}

.data-coverage-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.data-coverage-card strong {
  display: block;
  margin-top: 3px;
  color: var(--text);
  font-size: 16px;
  line-height: 1.25;
}

.data-coverage-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.bar-line {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) 54px;
  gap: 10px;
  align-items: center;
  font-size: 13px;
}

.bar-line.compact {
  grid-template-columns: 76px minmax(0, 1fr) 44px;
}

.prediction-detail {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid rgba(9, 107, 69, 0.12);
  border-radius: var(--radius);
  background: rgba(9, 107, 69, 0.06);
}

.prediction-detail span {
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
}

.prediction-detail strong {
  overflow-wrap: anywhere;
}

.analysis-factor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.analysis-factor-card {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fafbfb;
}

.analysis-factor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.analysis-factor-head strong,
.analysis-factor-head span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.analysis-factor-head span {
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
}

.factor-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}

.factor-evidence {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 8px;
  border: 1px solid rgba(47, 62, 70, 0.08);
  border-radius: var(--radius);
  background: #fff;
}

.factor-evidence strong {
  color: var(--text);
  font-size: 12px;
}

.factor-evidence span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.factor-evidence.ok {
  border-color: rgba(13, 113, 74, 0.16);
  background: rgba(13, 113, 74, 0.05);
}

.factor-evidence.info {
  border-color: rgba(40, 104, 168, 0.14);
  background: rgba(40, 104, 168, 0.05);
}

.factor-evidence.warn {
  border-color: rgba(174, 99, 24, 0.18);
  background: rgba(174, 99, 24, 0.07);
}

.victory-factor-summary {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.victory-factor-score {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid rgba(9, 107, 69, 0.16);
  border-radius: var(--radius);
  background: rgba(9, 107, 69, 0.07);
}

.victory-factor-score span {
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
}

.victory-factor-score strong {
  font-size: 22px;
}

.victory-factor-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
}

.victory-factor-item {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
}

.victory-factor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.victory-factor-head strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.victory-factor-impact {
  display: inline-flex;
  min-width: 44px;
  justify-content: center;
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--text);
  font-weight: 900;
  white-space: nowrap;
}

.victory-factor-item.positive .victory-factor-impact {
  background: rgba(13, 113, 74, 0.1);
  color: var(--primary);
}

.victory-factor-item.negative .victory-factor-impact {
  background: rgba(180, 35, 24, 0.1);
  color: var(--danger);
}

.victory-factor-item p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.analysis-factor-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.lineup-list,
.event-list,
.injury-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lineup-list li,
.event-list li,
.injury-list li {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
}

.lineup-list li:last-child,
.event-list li:last-child,
.injury-list li:last-child {
  border-bottom: 0;
}

.lineup-list li > span,
.event-list li > span,
.injury-list li > span {
  min-width: 0;
}

.pill-value {
  flex: 0 1 auto;
  color: var(--text);
  font-weight: 800;
  overflow-wrap: anywhere;
  text-align: right;
}

.injury-card-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.injury-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fafbfb;
}

.injury-card div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.injury-card strong {
  color: var(--text);
  font-size: 14px;
}

.injury-card span,
.injury-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.injury-status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #fff0ec;
  color: #a33a2a !important;
  font-weight: 900;
  white-space: nowrap;
}

.team-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.team-stat-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fafbfb;
}

.team-stat-card > strong {
  color: var(--text);
  font-size: 15px;
}

.team-stat-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
}

.team-stat-item {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 8px;
  border-radius: var(--radius);
  background: #fff;
}

.team-stat-item span {
  color: var(--muted);
  font-size: 12px;
}

.team-stat-item strong {
  color: var(--text);
  font-size: 14px;
  overflow-wrap: anywhere;
}

.data-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.data-notice {
  display: grid;
  gap: 6px;
  padding: 8px 0 8px 12px;
  border-left: 3px solid rgba(9, 107, 69, 0.36);
  background: #f6faf7;
}

.data-notice.warning {
  border-left-color: rgba(180, 35, 24, 0.42);
  background: #fff8f6;
}

.data-notice strong {
  color: var(--text);
  font-size: 14px;
}

.data-notice span,
.roster-empty {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.roster-grid {
  display: grid;
  gap: 14px;
}

.roster-team {
  display: grid;
  gap: 8px;
}

.roster-team strong {
  font-size: 14px;
}

.roster-empty {
  margin: 0;
}

.player-card-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.player-card-list.watchlist {
  margin-top: 10px;
}

.player-watchlist-section .data-notice {
  margin-bottom: 10px;
}

.player-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.player-card:hover {
  border-color: rgba(9, 107, 69, 0.38);
  box-shadow: 0 8px 20px rgba(9, 107, 69, 0.08);
}

.player-avatar {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: var(--surface-soft);
  color: var(--primary);
  font-size: 15px;
  font-weight: 900;
}

.player-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.player-info {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.player-info strong {
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-info span {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.player-stat-row em {
  display: inline-flex;
  padding: 2px 5px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--text);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.3;
}

.mini-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 6px;
}

.player-profile-section {
  border-color: rgba(9, 107, 69, 0.22);
}

.player-profile-layout {
  display: grid;
  gap: 12px;
}

.player-profile-main {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.player-profile-avatar {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: var(--surface-soft);
  color: var(--primary);
  font-size: 20px;
  font-weight: 900;
}

.player-profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.player-profile-main strong {
  display: block;
  margin-bottom: 4px;
  font-size: 18px;
}

.player-profile-main span,
.player-profile-main small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.player-fact-grid,
.player-profile-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.player-fact-grid div,
.player-profile-stats div {
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
}

.player-fact-grid span,
.player-profile-stats span {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 11px;
}

.player-fact-grid strong,
.player-profile-stats strong {
  display: block;
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 13px;
}

.empty-state {
  display: grid;
  min-height: 220px;
  place-items: center;
  color: var(--muted);
  text-align: center;
}

.source-footnote {
  padding-top: 8px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

@media (max-width: 1120px) {
  .workspace {
    grid-template-columns: 1fr;
  }

  .league-column {
    position: static;
  }

  .league-nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .insight-column {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .app-header {
    align-items: flex-start;
  }

  .clock {
    display: none;
  }

  .auto-refresh-status {
    display: none;
  }

  .hero-panel {
    grid-template-columns: 1fr;
  }

  .control-bar {
    grid-template-columns: 1fr;
  }

  .segmented {
    width: 100%;
  }

  .segment {
    flex: 1;
  }

  .match-grid,
  .league-nav,
  .insight-column,
  .analysis-factor-grid,
  .prediction-pick-grid,
  .prediction-detail-grid,
  .recommendation-grid,
  .data-coverage-grid,
  .sporttery-plan-grid,
  .sporttery-score-grid,
  .team-stat-grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .match-card {
    min-height: 0;
  }

  .market-row,
  .factor-row {
    grid-template-columns: 1fr;
  }

  .detail-card {
    padding: 14px;
  }

  .sporttery-head,
  .sporttery-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .multiplier-field input {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .app-shell {
    padding-inline: 10px;
  }

  .app-header {
    padding-inline: 10px;
  }

  .brand h1 {
    font-size: 16px;
  }

  .hero-panel {
    padding: 18px;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .team-name {
    font-size: 17px;
  }

  .score {
    font-size: 22px;
  }

  .bar-line {
    grid-template-columns: 92px minmax(0, 1fr) 42px;
  }

  .player-card-list {
    grid-template-columns: 1fr;
  }

  .player-fact-grid,
  .player-profile-stats,
  .sporttery-prize-row,
  .team-stat-items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .injury-card {
    grid-template-columns: 1fr;
  }

  .injury-status {
    justify-self: start;
  }

  .coverage-pill {
    white-space: normal;
  }

  .section-title {
    gap: 10px;
  }

  .data-chip {
    max-width: 112px;
    white-space: normal;
    justify-content: center;
    text-align: center;
  }
}

.app-header {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto;
  gap: 16px;
  border-bottom-color: var(--border);
  background: rgba(7, 16, 13, 0.88);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
}

.brand {
  color: var(--text);
}

.brand-mark {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #06130b;
  box-shadow: 0 0 30px rgba(81, 242, 143, 0.28);
}

.brand h1 {
  font-size: 20px;
  font-weight: 900;
}

.brand p {
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 4px;
}

.trophy {
  font-size: 17px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.site-nav a {
  padding: 8px 10px;
  border-radius: var(--radius);
}

.site-nav a:hover,
.site-nav a.active {
  background: var(--surface-soft);
  color: var(--text);
}

.site-nav a.active {
  border: 1px solid rgba(81, 242, 143, 0.22);
  color: var(--primary);
}

.hero-panel {
  border-color: var(--border);
  background:
    linear-gradient(145deg, rgba(16, 33, 25, 0.94), rgba(7, 16, 13, 0.9)),
    url("https://images.unsplash.com/photo-1522778119026-d647f0596c20?auto=format&fit=crop&w=1600&q=70") center/cover;
  background-blend-mode: multiply;
}

.hero-copy h2 {
  font-size: clamp(34px, 6vw, 72px);
  font-weight: 900;
}

.hero-copy p {
  color: #b7cdbc;
}

.hero-metrics div,
.league-panel,
.main-column,
.insight-panel,
.match-card,
.signal-item,
.sporttery-panel,
.sporttery-plan-card,
.sporttery-score-card,
.detail-card,
.detail-section,
.data-coverage-card,
.analysis-factor-card,
.player-card,
.injury-card,
.event-item,
.team-stat-card,
.environment-card,
.metric-box,
.prediction-pick,
.prediction-detail-grid > div,
.recommendation-card,
.sporttery-pick,
.sporttery-prize-row div,
.factor-guide-list li {
  border-color: var(--border);
  background: rgba(12, 26, 20, 0.88);
  color: var(--text);
  box-shadow: none;
}

.match-card.live {
  border-color: rgba(239, 106, 91, 0.42);
  box-shadow: 0 18px 36px rgba(239, 106, 91, 0.08);
}

.tag,
.league-nav-button strong,
.data-chip,
.coverage-pill {
  background: rgba(255, 255, 255, 0.07);
  color: var(--muted);
}

.tag.football,
.tag.low,
.league-nav-button.active {
  border-color: rgba(81, 242, 143, 0.22);
  background: rgba(81, 242, 143, 0.1);
  color: var(--primary);
}

.tag.live,
.tag.high {
  background: rgba(239, 106, 91, 0.12);
  color: var(--danger);
}

.tag.medium {
  background: rgba(244, 196, 78, 0.12);
  color: var(--warning);
}

.segmented,
.segment,
.select-field select,
.select-field input,
.search-field input,
.multiplier-field input,
.icon-button,
.ghost-button,
.league-nav-button {
  border-color: var(--border);
  background: rgba(6, 14, 11, 0.72);
  color: var(--text);
}

.segment.active,
.primary-button {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #06130b;
}

.primary-button:hover {
  background: var(--gold);
  color: #06130b;
}

.source-status,
.auto-refresh-status,
.sporttery-status {
  border-color: rgba(81, 242, 143, 0.24);
  background: rgba(81, 242, 143, 0.08);
  color: var(--primary);
}

.source-status.warning,
.sporttery-status.warning {
  border-color: rgba(244, 196, 78, 0.28);
  background: rgba(244, 196, 78, 0.1);
  color: var(--warning);
}

.sporttery-notice {
  border-color: rgba(244, 196, 78, 0.26);
  background: rgba(244, 196, 78, 0.08);
  color: #e9d189;
}

.sporttery-plan-top > strong,
.odds-pill.positive,
.victory-factor-score strong {
  background: rgba(244, 196, 78, 0.16);
  color: var(--gold);
}

.source-footnote {
  border-top-color: var(--border);
}

.detail-panel {
  background: rgba(1, 5, 4, 0.68);
}

.footer-slogan {
  margin-top: 0;
  padding: 40px 16px;
  background: linear-gradient(135deg, #064e3b, #1a1a2e);
  color: #ffd700;
  text-align: center;
  font-size: 16px;
  font-weight: 900;
}

@media (max-width: 1040px) {
  .app-header {
    grid-template-columns: 1fr;
  }

  .site-nav,
  .header-actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

@media (max-width: 520px) {
  .brand p {
    letter-spacing: 2px;
  }

  .site-nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }

  .site-nav a {
    padding: 8px 6px;
    text-align: center;
  }
}

/* Integrated dashboard polish */
.app-shell {
  width: min(1360px, 100%);
  padding: 22px clamp(18px, 4vw, 56px) 48px;
}

.hero-panel {
  min-height: 270px;
  padding: clamp(24px, 4vw, 42px);
  overflow: hidden;
  position: relative;
}

.hero-panel::after {
  content: "";
  position: absolute;
  inset: auto 28px 24px auto;
  width: min(420px, 36vw);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.82));
}

.control-bar {
  align-items: end;
  padding: 16px;
  border: 1px solid rgba(137, 255, 177, 0.14);
  border-radius: 8px;
  background: rgba(6, 14, 11, 0.48);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.segmented {
  height: 46px;
  padding: 4px;
}

.segment {
  height: 36px;
  font-size: 14px;
}

.select-field span,
.multiplier-field {
  color: #9bd7ad;
}

.select-field select,
.select-field input,
.multiplier-field input {
  min-height: 42px;
  border-color: rgba(137, 255, 177, 0.18);
  background: rgba(2, 10, 7, 0.72);
}

.sporttery-panel {
  gap: 18px;
  padding: clamp(18px, 2.4vw, 26px);
  border-color: rgba(137, 255, 177, 0.2);
  background:
    linear-gradient(180deg, rgba(15, 38, 27, 0.92), rgba(7, 18, 13, 0.94)),
    linear-gradient(135deg, rgba(255, 215, 0, 0.06), transparent 44%);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.24);
}

.sporttery-head {
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(137, 255, 177, 0.14);
}

.sporttery-head h3 {
  margin-top: 2px;
  font-size: 24px;
  letter-spacing: 0;
}

.sporttery-head p {
  max-width: 680px;
  color: #a8c8b1;
}

.sporttery-actions {
  padding: 10px;
  border: 1px solid rgba(137, 255, 177, 0.14);
  border-radius: 8px;
  background: rgba(3, 13, 9, 0.46);
}

.sporttery-status {
  min-height: 40px;
  padding: 11px 14px;
  border: 1px solid rgba(81, 242, 143, 0.18);
  border-left: 3px solid var(--primary);
  background: rgba(81, 242, 143, 0.08);
  color: #bfffd2;
}

.sporttery-status.warning {
  border-color: rgba(255, 215, 0, 0.22);
  border-left-color: var(--gold);
  background: rgba(255, 215, 0, 0.1);
  color: var(--gold);
}

.sporttery-plan-grid {
  align-items: start;
  gap: 14px;
}

.sporttery-plan-card {
  align-content: start;
  gap: 14px;
  min-height: 0;
  padding: 16px;
  border-color: rgba(137, 255, 177, 0.18);
  background: linear-gradient(180deg, rgba(8, 26, 17, 0.96), rgba(5, 16, 11, 0.94));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.sporttery-plan-card.稳健 {
  border-top: 3px solid var(--primary);
}

.sporttery-plan-card.均衡 {
  border-top: 3px solid var(--gold);
}

.sporttery-plan-card.进取 {
  border-top: 3px solid #ff8c00;
}

.sporttery-plan-top h4 {
  font-size: 22px;
}

.sporttery-plan-top > strong {
  min-width: 54px;
  min-height: 34px;
  border: 1px solid rgba(255, 215, 0, 0.26);
  background: rgba(255, 215, 0, 0.12);
  color: var(--gold);
}

.sporttery-plan-summary {
  margin: 0;
  color: #a8c8b1;
  font-size: 12px;
  line-height: 1.55;
}

.sporttery-prize-row {
  gap: 10px;
}

.sporttery-prize-row div {
  padding: 10px;
  border-color: rgba(255, 215, 0, 0.13);
  background: rgba(255, 215, 0, 0.055);
}

.sporttery-prize-row span {
  color: #92b79d;
}

.sporttery-prize-row strong {
  color: #ffd76a;
  font-size: 15px;
}

.sporttery-pick-list {
  gap: 8px;
}

.sporttery-pick {
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(137, 255, 177, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.sporttery-pick-head {
  grid-template-columns: minmax(0, 1fr);
}

.sporttery-pick-head span {
  color: #74d69b;
}

.sporttery-pick-head strong,
.sporttery-score-card strong {
  font-size: 15px;
}

.sporttery-choice {
  min-height: 30px;
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(81, 242, 143, 0.07);
}

.sporttery-choice strong {
  color: #ffd76a;
  font-size: 14px;
}

.sporttery-pick p {
  color: #91b99c;
}

.sporttery-ref-row em,
.sporttery-chip-row span {
  border: 1px solid rgba(137, 255, 177, 0.12);
  background: rgba(5, 18, 12, 0.9);
  color: #e7f8ea;
}

.sporttery-score-block {
  margin-top: 4px;
  padding-top: 16px;
  border-top: 1px solid rgba(137, 255, 177, 0.14);
}

.sporttery-score-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
}

.sporttery-score-card {
  gap: 12px;
  padding: 14px;
  border-color: rgba(137, 255, 177, 0.16);
  background: rgba(5, 18, 12, 0.72);
}

.sporttery-notice {
  border-left: 3px solid var(--gold);
}

.match-card,
.league-panel,
.main-column,
.insight-panel {
  background: rgba(7, 22, 15, 0.88);
}

@media (max-width: 1180px) {
  .sporttery-plan-grid,
  .sporttery-score-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .app-shell {
    padding-inline: 12px;
  }

  .control-bar,
  .sporttery-head,
  .sporttery-actions {
    align-items: stretch;
  }

  .sporttery-plan-grid,
  .sporttery-score-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .hero-panel {
    min-height: 0;
  }

  .sporttery-panel {
    padding: 14px;
  }

  .sporttery-prize-row {
    grid-template-columns: 1fr;
  }

  .sporttery-plan-top h4 {
    font-size: 19px;
  }
}

.sporttery-plan-card .sporttery-pick p,
.sporttery-plan-card .sporttery-ref-row {
  display: none;
}

.sporttery-plan-card .sporttery-pick {
  grid-template-columns: minmax(0, 1fr) minmax(112px, auto);
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
}

.sporttery-plan-card .sporttery-choice {
  display: flex;
  min-height: 32px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 8px;
}

.sporttery-plan-card .sporttery-pick-head {
  min-width: 0;
}

.sporttery-plan-card .sporttery-pick-head strong,
.sporttery-plan-card .sporttery-pick-head span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 520px) {
  .sporttery-plan-card .sporttery-pick {
    grid-template-columns: 1fr;
  }

  .sporttery-plan-card .sporttery-pick-head strong,
  .sporttery-plan-card .sporttery-pick-head span {
    white-space: normal;
  }
}
