/* bets.css — My Bets screen. AIR + POSTER. */

.bets {
  padding: calc(env(safe-area-inset-top, 0px) + 26px) 20px
    calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px) + 28px);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ---------- empty state ---------- */
.bets-empty {
  min-height: 70dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 14px;
}
.bets-empty-title {
  font-size: clamp(46px, 15vw, 72px);
  color: var(--ink);
}
.bets-empty-sub {
  color: var(--grey);
  font-size: 15px;
  margin: -4px 0 6px;
}

/* ---------- header + summary ---------- */
.bets-head { display: flex; flex-direction: column; gap: 6px; }
.bets-title { font-size: clamp(34px, 9vw, 46px); }
.bets-summary {
  font-size: 11.5px;
  letter-spacing: .04em;
  color: var(--grey);
  text-transform: uppercase;
}
.bets-sum-val { color: var(--ink); font-weight: 600; }
.bets-sum-val.is-up { color: var(--sunrise); }
.bets-sum-val.is-down { color: var(--ink); }

/* ---------- segmented control ---------- */
.bets-seg {
  display: flex;
  background: var(--bezel);
  border-radius: 999px;
  padding: 3px;
  gap: 3px;
}
.bets-seg-btn {
  flex: 1 1 0;
  border: none;
  background: transparent;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--grey);
  padding: 9px 0;
  border-radius: 999px;
  transition: background .16s ease, color .16s ease;
}
.bets-seg-btn.is-active {
  background: var(--ink);
  color: var(--bone);
}

/* ---------- list ---------- */
.bets-list { display: flex; flex-direction: column; gap: 14px; }
.bets-empty-seg {
  color: var(--grey);
  font-size: 12px;
  letter-spacing: .08em;
  text-align: center;
  padding: 32px 0;
}

/* ---------- card ---------- */
.bet-card {
  background: rgba(255, 255, 255, .45);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bet-top { display: flex; align-items: center; gap: 12px; }
.bet-thumb {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bezel);
}
.bet-thumb img { width: 100%; height: 100%; object-fit: cover; }
.bet-q {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.2;
  color: var(--ink);
  margin: 0;
}

/* side chip + price */
.bet-sideline { display: flex; align-items: center; gap: 10px; }
.bet-chip {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 10.5px;
  letter-spacing: .12em;
  padding: 4px 9px;
  border-radius: 5px;
  line-height: 1;
}
.bet-chip.is-yes {
  background: rgba(31, 164, 91, .14);
  color: var(--yes);
}
.bet-chip.is-no {
  background: rgba(224, 72, 78, .14);
  color: var(--no);
}
.bet-price {
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--grey);
}

/* meta rows */
.bet-meta { display: flex; flex-direction: column; gap: 5px; }
.bet-metarow {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 12px;
  letter-spacing: .03em;
}
.bet-metalabel { color: var(--grey); }
.bet-metaval { color: var(--ink); font-weight: 600; }
.bet-closes {
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--grey);
}

/* live value */
.bet-live {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
}
.bet-live.is-up { color: var(--sunrise); }
.bet-live.is-down { color: var(--grey); }

/* settled */
.bet-verdict { display: flex; flex-direction: column; gap: 4px; }
.bet-verdict-title { font-size: 30px; line-height: .96; }
.bet-verdict-title.is-win { color: var(--sunrise); }
.bet-verdict-title.is-loss { color: var(--ink); }
.bet-verdict-pnl {
  font-size: 18px;
  font-weight: 600;
}
.bet-verdict-pnl.is-up { color: var(--sunrise); }
.bet-verdict-pnl.is-down { color: var(--ink); }

.bet-settled.is-win { border-color: rgba(226, 166, 61, .35); }

.bet-share {
  align-self: flex-start;
  padding: 9px 18px;
  font-size: 14px;
}
