* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background: transparent !important;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: transparent !important;
  min-height: 100vh;
  padding: 16px;
  color: #e8e8e8;
}

.container {
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
  background: transparent;
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
  background: rgba(40, 40, 55, 0.85);
  border-radius: 16px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.header-tournament {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.header-tournament h1 {
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.tournament-date {
  font-size: 0.9em;
  color: rgba(255, 255, 255, 0.7);
}

.live-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 20px;
  background: #AB0535;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  animation: livePulse 1.5s ease-in-out infinite;
}

@keyframes livePulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(171, 5, 53, 0.4); }
  50%      { opacity: 0.9; box-shadow: 0 0 12px 2px rgba(171, 5, 53, 0.35); }
}

.header-shotlink {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.shotlink-logo {
  height: 40px;
  width: auto;
  opacity: 0.6;
}

.shotlink-label {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.header-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.header-meta-left {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-start;
}

.header-meta-right {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  flex-shrink: 0;
}

.meta-label {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: block;
  margin-bottom: 2px;
}

.header-next span:not(.meta-label) {
  font-size: 0.9em;
  color: rgba(255, 255, 255, 0.85);
}

.header-stat .stat-value {
  font-size: 0.95em;
  color: rgba(255, 255, 255, 0.9);
}

.total-profit-value {
  font-size: 1.2rem;
  font-weight: 700;
  color: #AB0535;
}

.units-label {
  font-size: 0.75em;
  color: rgba(255, 255, 255, 0.5);
  margin-left: 3px;
}

/* ============================================================
   LOADING
   ============================================================ */
.loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  color: rgba(255, 255, 255, 0.6);
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: #AB0535;
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
  margin-bottom: 12px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.load-error {
  color: #f87171;
}

/* ============================================================
   PICK CARDS  — 3 columns desktop, 2 tablet, 1 mobile
   ============================================================ */
.picks-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.no-picks {
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  padding: 24px;
}

.pick-card {
  background: rgba(50, 50, 65, 0.7);
  border-radius: 14px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.2s;
  position: relative;
}

.pick-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

/* In the money */
.pick-card-winning {
  border-color: rgba(60, 180, 90, 0.4);
}
.pick-card-winning:hover {
  border-color: rgba(60, 180, 90, 0.6);
}

/* Eliminated (WD / CUT) — dimmed + diagonal strikethrough */
.pick-card-eliminated {
  opacity: 0.5;
}
.pick-card-eliminated::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 14px;
  pointer-events: none;
  background: linear-gradient(
    to bottom right,
    transparent calc(50% - 1px),
    rgba(255, 80, 80, 0.25) calc(50% - 1px),
    rgba(255, 80, 80, 0.25) calc(50% + 1px),
    transparent calc(50% + 1px)
  );
}

.pick-card-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pick-player {
  font-size: 1.05rem;
  font-weight: 600;
  color: #ffffff;
}

.pick-bet-type {
  font-size: 0.82em;
  color: rgba(255, 255, 255, 0.7);
}

/* ============================================================
   SEGMENTED BET METER
   ============================================================ */
.pick-card-meter {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.meter-label {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.bet-meter-segments {
  display: flex;
  gap: 4px;
  align-items: flex-end;
}

.meter-seg {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.meter-seg-bar {
  width: 100%;
  height: 10px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
  transition: background 0.3s, box-shadow 0.3s;
}

.meter-seg-active .meter-seg-bar {
  background: #AB0535;
  box-shadow: 0 0 6px rgba(171, 5, 53, 0.35);
}

.meter-seg-label {
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.3);
  line-height: 1;
}

.meter-seg-active .meter-seg-label {
  color: rgba(255, 255, 255, 0.7);
}

.meter-units-label {
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.3);
  margin-top: -2px;
}

/* ============================================================
   CARD DETAILS
   ============================================================ */
.pick-card-details {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.pick-detail {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.detail-label {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.detail-value {
  font-size: 0.9em;
  color: rgba(255, 255, 255, 0.9);
}

.pick-detail-profit .detail-value.profit-value {
  color: #e8a0b0;
  font-weight: 600;
}

.pick-card-winning .profit-value {
  color: #5ee08a;
}

/* ============================================================
   MOBILE
   ============================================================ */
@media (max-width: 900px) {
  .picks-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}

@media (max-width: 768px) {
  body {
    padding: 12px;
  }

  .container {
    gap: 16px;
  }

  .header {
    padding: 16px;
    border-radius: 12px;
  }

  .header-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-tournament h1 {
    font-size: 1.2rem;
  }

  .live-badge {
    padding: 6px 14px;
    min-height: 44px;
    align-items: center;
  }

  .header-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .header-meta-left,
  .header-meta-right {
    flex-wrap: wrap;
  }

  .total-profit-value {
    font-size: 1.1rem;
  }

  .pick-card {
    padding: 14px;
  }

  .pick-player {
    font-size: 1rem;
  }
}

@media (max-width: 540px) {
  .picks-cards {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  body {
    padding: 10px;
  }

  .header {
    padding: 14px;
  }

  .pick-card {
    padding: 12px;
  }
}
