/* /static/css/prop-correlation.css — Prop Correlation Finder */

/* Lock body scroll on desktop so each column scrolls independently */
body.pc-active {
  overflow: hidden;
  height: 100vh;
}

.pc-container {
  height: 100vh;
  overflow: hidden;
}

/* === Workspace Grid (2-col layout) === */
.pc-workspace-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  height: 100%;
}

/* === Left: Main Area === */
.pc-main-area {
  padding: 24px 28px 0 20px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.pc-main-header {
  margin-bottom: 24px;
}
.pc-main-header h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--theme-text-primary, #E6EDF3);
}
.pc-main-header .pc-sub {
  font-size: 13px;
  color: var(--theme-text-secondary, #8B949E);
  margin-top: 4px;
}

/* === Right: Sidebar === */
.pc-sidebar {
  background: rgba(255,255,255,0.02);
  border-left: 1px solid rgba(255,255,255,0.06);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

/* Sidebar shared section padding */
.pc-sb-section {
  padding: 14px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.pc-sb-section:empty, .pc-sb-players:empty { display: none; }
#pc-games-area {
  overflow-y: auto;
  flex-shrink: 0;
  max-height: 600px;
}
#pc-games-area.pc-games-capped {
  max-height: 400px;
}
.pc-sb-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--theme-text-secondary, #8B949E);
  letter-spacing: 0.5px;
  margin: 0 0 10px;
}
.pc-sb-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.pc-sb-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--theme-text-secondary, #8B949E);
  letter-spacing: 0.5px;
}
.pc-sb-loading {
  padding: 20px 14px;
  font-size: 13px;
  color: var(--theme-text-secondary, #8B949E);
  font-style: italic;
}
.pc-sb-empty {
  padding: 20px 14px;
  color: var(--theme-text-secondary, #8B949E);
  font-size: 13px;
  text-align: center;
}

/* === Sidebar: Game Items === */
.pc-sb-game {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 7px;
  cursor: pointer;
  transition: background 0.15s;
  margin-bottom: 2px;
}
.pc-sb-game:hover { background: rgba(255,255,255,0.03); }
.pc-sb-game.active { background: rgba(0,211,189,0.08); }
.pc-sb-game.no-props { opacity: 0.45; }
.pc-sb-game-matchup {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 0;
}
.pc-sb-game-teams {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  color: var(--theme-text-primary, #E6EDF3);
  white-space: nowrap;
}
.pc-sb-logo {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex-shrink: 0;
}
.pc-sb-game-at {
  font-size: 10px;
  color: var(--theme-text-secondary, #8B949E);
  font-weight: 600;
}
.pc-sb-game-time {
  font-size: 10px;
  color: var(--theme-text-secondary, #8B949E);
}
.pc-sb-game-badge {
  font-size: 9px;
  font-weight: 600;
  color: #00D3BD;
  background: rgba(0,211,189,0.12);
  padding: 4px 7px;
  border-radius: 8px;
  flex-shrink: 0;
  white-space: nowrap;
  margin-left: auto;
  margin-top: -10px;
}
.pc-sb-game-badge.off {
  color: var(--theme-text-secondary, #8B949E);
  background: rgba(255,255,255,0.05);
}

/* === Sidebar: Team Grid === */
.pc-team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.pc-team-btn {
  background: var(--theme-card-bg, rgba(255,255,255,0.04));
  border: 2px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  padding: 5px 6px;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  color: var(--theme-text-primary, #E6EDF3);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.pc-team-btn:hover { border-color: #00D3BD; }
.pc-team-btn.active { border-color: #00D3BD; background: rgba(0,211,189,0.08); }
.pc-team-btn-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

/* === Sidebar: Vs Opponent Button === */
.pc-vs-filter {
  padding: 0;
  display: flex;
  align-items: center;
}
.pc-vs-btn {
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  color: var(--theme-text-secondary, #8B949E);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  padding: 5px 10px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}
.pc-vs-btn:hover {
  border-color: #00D3BD;
  color: var(--theme-text-primary, #E6EDF3);
}
.pc-vs-btn.active {
  background: rgba(0,211,189,0.08);
  border-color: #00D3BD;
  color: #00D3BD;
}
.pc-vs-btn #pc-vs-opp {
  font-weight: 700;
}

/* === Sidebar: Player List === */
.pc-sb-players {
  flex: 1;
  overflow-y: auto;
  padding: 4px 6px 120px;
}
.pc-sp-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  border-radius: 7px;
  cursor: pointer;
  transition: background 0.15s;
  margin-bottom: 1px;
}
.pc-sp-item:hover { background: rgba(255,255,255,0.03); }
.pc-sp-item.sel-player { background: rgba(0,211,189,0.08); }
.pc-sp-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}
.pc-sp-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.pc-sp-avatar.pc-sp-avatar-team {
  border-radius: 0;
  object-fit: contain;
  width: 22px;
  height: 22px;
}
.pc-sp-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--theme-text-primary, #E6EDF3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pc-sp-badge {
  font-size: 10px;
  font-weight: 600;
  color: var(--theme-text-secondary, #8B949E);
  background: rgba(255,255,255,0.06);
  padding: 2px 7px;
  border-radius: 10px;
  flex-shrink: 0;
}
.pc-sp-badge.sel-player { color: #fff; }

/* Injured player rows */
.pc-sp-item.pc-sp-injured { opacity: 0.5; }
.pc-sp-item.pc-sp-injured.pc-sp-inj-active { opacity: 1; background: rgba(248,113,113,0.08); }
.pc-inj-out { background: rgba(248,113,113,0.2); color: #f87171; }
.pc-inj-questionable { background: rgba(251,191,36,0.2); color: #fbbf24; }
.pc-inj-probable { background: rgba(74,222,128,0.2); color: #4ade80; }

/* === Main Area: Workspace (prop cards + result) === */
.pc-workspace {
  display: flex;
  gap: 20px;
  flex-wrap: nowrap;
  align-items: stretch;
  flex: 1;
  min-height: 0;
}
.pc-workspace > .pc-prop-card.card-result {
  overflow-y: auto;
  max-height: 100%;
  flex-shrink: 0;
  padding-bottom: 120px;
}
.pc-players-wrap {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-content: flex-start;
  min-width: 0;
  flex: 1;
  overflow-y: auto;
  max-height: 100%;
  padding-bottom: 120px;
}

/* === Welcome / empty state === */
.pc-welcome {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 20px 60px;
}
.pc-welcome-icon {
  font-size: 48px;
  color: #00D3BD;
  opacity: 0.5;
  margin-bottom: 20px;
}
.pc-welcome h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--theme-text-primary, #E6EDF3);
  margin: 0 0 8px;
}
.pc-welcome-sub {
  font-size: 16px;
  color: var(--theme-text-secondary, #8B949E);
  margin: 0 0 36px;
}
.pc-welcome-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}
.pc-step {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  color: var(--theme-text-secondary, #8B949E);
}
.pc-step-num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(0,211,189,0.12);
  color: #00D3BD;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* === Prop Card (player A / B) === */
.pc-prop-card {
  background: var(--theme-card-bg, rgba(255,255,255,0.04));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  width: 360px;
  flex-shrink: 0;
  overflow: hidden;
}
/* Player card border-top color is set inline via JS */
.pc-prop-card.card-result { width: 360px; }

/* Card header */
.pc-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px 6px;
}
.pc-card-header .pc-left { display: flex; align-items: center; gap: 10px; }
.pc-card-avatar-wrap {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}
.pc-card-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}
.pc-card-avatar-badge {
  position: absolute;
  bottom: -2px;
  right: -4px;
  width: 16px;
  height: 16px;
  object-fit: contain;
}
.pc-card-team-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex-shrink: 0;
}
.pc-card-name-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.pc-badge {
  font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 4px;
  text-transform: uppercase; letter-spacing: 0.5px;
}
/* Player badge color is set inline via JS */
.pc-player-name { font-size: 15px; font-weight: 700; color: var(--theme-text-primary, #E6EDF3); }
.pc-card-header { position: relative; }
.pc-close-btn {
  position: absolute; top: 8px; right: 8px;
  background: rgba(255,255,255,0.08); border: none; color: var(--theme-text-secondary, #8B949E);
  cursor: pointer; font-size: 14px; width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: color 0.15s, background 0.15s; font-family: inherit; padding: 0; line-height: 1;
}
.pc-close-btn:hover { color: #f87171; background: rgba(248,113,113,0.15); }

/* O/U toggle (integrated into line-val button — click to flip) */

/* Prop rows — single-line compact layout */
.pc-props { padding: 0 0 4px; }
.pc-prop-row {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 14px; cursor: pointer;
  transition: background 0.15s; border-left: 3px solid transparent;
}
.pc-prop-row:hover { background: rgba(255,255,255,0.02); }
.pc-prop-row.sel { background: rgba(0,211,189,0.06); border-left-color: #00a896; }
.pc-prop-check {
  width: 16px; height: 16px; border: 2px solid rgba(255,255,255,0.15); border-radius: 3px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.pc-prop-row.sel .pc-prop-check { border-color: #00a896; background: #00a896; }
.pc-prop-row.sel .pc-prop-check::after { content: '\2713'; font-size: 11px; font-weight: 700; color: #fff; line-height: 1; }
.pc-prop-radio {
  width: 16px; height: 16px; border: 2px solid rgba(255,255,255,0.15); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.pc-prop-row.sel .pc-prop-radio { border-color: #00a896; }
.pc-prop-row.sel .pc-prop-radio::after { content: ''; width: 8px; height: 8px; background: #00a896; border-radius: 50%; }
.pc-prop-market { font-size: 13px; font-weight: 600; flex: 1; color: var(--theme-text-primary, #E6EDF3); white-space: nowrap; }
.pc-prop-odds-pill {
  font-size: 11px; font-weight: 700; color: var(--theme-text-primary, #E6EDF3);
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px; padding: 3px 0; flex-shrink: 0; white-space: nowrap;
  width: 46px; text-align: center;
}
.pc-props-hint {
  font-size: 11px; color: var(--theme-text-secondary, #8B949E); text-align: right;
  padding: 2px 14px 1px;
}
.pc-hint-o { color: #4ade80; font-weight: 700; }
.pc-hint-u { color: #f87171; font-weight: 700; }

/* Combo props toggle */
.pc-combo-toggle {
  display: block; width: calc(100% - 28px); margin: 6px 14px;
  padding: 5px 0; font-size: 11px; font-weight: 600;
  color: var(--theme-text-secondary, #8B949E); background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08); border-radius: 6px;
  cursor: pointer; text-align: center; transition: background 0.15s;
}
.pc-combo-toggle:hover { background: rgba(255,255,255,0.08); color: var(--theme-text-primary, #E6EDF3); }

/* Line stepper — inline with prop row */
.pc-line-wrap {
  display: flex; align-items: center; gap: 0;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px; overflow: hidden; flex-shrink: 0; width: 120px; margin-left: auto;
}
.pc-line-val {
  font-size: 12px; font-weight: 700; white-space: nowrap;
  padding: 4px 0; flex: 1; text-align: center;
  background: none; border: none; cursor: pointer; font-family: inherit;
  transition: background 0.15s, color 0.15s;
}
.pc-line-val.is-over { color: #4ade80; }
.pc-line-val.is-under { color: #f87171; }
.pc-line-val.is-over:hover { background: rgba(74,222,128,0.1); }
.pc-line-val.is-under:hover { background: rgba(248,113,113,0.1); }
.pc-line-val.no-toggle { cursor: default; opacity: 0.6; }
.pc-line-val.no-toggle:hover { background: none; }
.pc-line-arr {
  background: none; border: none; color: var(--theme-text-secondary, #8B949E);
  cursor: pointer; font-size: 9px; padding: 5px 8px; transition: all 0.15s;
  font-family: inherit; line-height: 1; border-left: 1px solid rgba(255,255,255,0.08);
}
.pc-line-arr:first-child { border-left: none; border-right: 1px solid rgba(255,255,255,0.08); }
.pc-line-arr:hover:not(.disabled) { color: #f59e0b; background: rgba(245,158,11,0.08); }
.pc-line-arr.disabled { opacity: 0.2; cursor: default; }

/* === Stats panel (below props when selected) === */
.pc-stats {
  padding: 12px 18px 14px; border-top: 1px solid rgba(255,255,255,0.04);
}
.pc-stats-head {
  font-size: 11px; color: var(--theme-text-secondary, #8B949E); text-transform: uppercase;
  letter-spacing: 0.5px; font-weight: 600; margin-bottom: 10px;
  display: flex; align-items: center; gap: 6px;
}
.pc-stats-head .psh-line.psh-over { color: #4ade80; }
.pc-stats-head .psh-line.psh-under { color: #f87171; }
.pc-stat-row {
  display: flex; justify-content: space-between; align-items: center; padding: 4px 0;
}
.pc-stat-label { font-size: 12px; color: var(--theme-text-secondary, #8B949E); }
.pc-stat-value { font-size: 13px; font-weight: 600; color: var(--theme-text-primary, #E6EDF3); }
.pc-stat-sub { font-size: inherit; color: var(--theme-text-secondary, #8B949E); margin-left: 4px; font-weight: 600; }
.pc-stat-delta { font-size: 11px; font-weight: 700; margin-left: 4px; }

/* Hit rate bar */
.pc-hit-wrap { margin-top: 2px; }
.pc-hit-bar {
  height: 4px; background: rgba(255,255,255,0.08); border-radius: 2px; overflow: hidden; margin-top: 4px;
}
.pc-hit-fill { height: 100%; border-radius: 2px; }

/* L10 sparkline */
.pc-l10-row {
  display: flex; align-items: center; gap: 4px; margin-top: 8px;
}
.pc-l10-label { font-size: 11px; color: var(--theme-text-secondary, #8B949E); white-space: nowrap; flex-shrink: 0; }
.pc-l10-squares { display: flex; gap: 3px; }
.pc-l10-sq {
  width: 16px; height: 16px; border-radius: 3px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.pc-l10-sq.hit { background: rgba(74,222,128,0.25); border: 1px solid rgba(74,222,128,0.5); }
.pc-l10-sq.miss { background: rgba(248,113,113,0.18); border: 1px solid rgba(248,113,113,0.35); }
.pc-l10-sq .sq-val { font-size: 7px; font-weight: 700; line-height: 1; }
.pc-l10-sq.hit .sq-val { color: #4ade80; }
.pc-l10-sq.miss .sq-val { color: #f87171; }
.pc-l10-summary {
  font-size: 12px; font-weight: 700; margin-left: auto; white-space: nowrap; flex-shrink: 0;
}
.pc-streak {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 4px;
}
.pc-streak.over { color: #4ade80; background: rgba(74,222,128,0.1); }
.pc-streak.under { color: #f87171; background: rgba(248,113,113,0.1); }
.pc-stats-loading {
  padding: 12px 18px; border-top: 1px solid rgba(255,255,255,0.04);
  font-size: 12px; color: var(--theme-text-secondary, #8B949E); font-style: italic;
}

/* === Add teammate dashed card === */
.pc-add-card {
  width: 360px; min-height: 200px;
  border: 2px dashed rgba(255,255,255,0.08); border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 8px; cursor: pointer; transition: all 0.2s;
}
.pc-add-card:hover { border-color: #00D3BD; }
.pc-add-card:hover .ac-icon { background: rgba(0,211,189,0.2); }
.pc-add-card:hover .ac-text { color: #00D3BD; }
.pc-add-card .ac-icon {
  font-size: 24px; color: #00D3BD; transition: all 0.2s;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(0,211,189,0.1); display: flex; align-items: center; justify-content: center;
}
.pc-add-card .ac-text { font-size: 13px; color: var(--theme-text-secondary, #8B949E); font-weight: 500; transition: color 0.2s; }

/* === Result card === */
.pc-rc-header {
  padding: 10px 18px 4px; display: flex; align-items: center; gap: 8px;
}
.pc-rc-header h3 {
  font-size: 12px; font-weight: 700; color: #00D3BD;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.pc-rc-verdict { padding: 12px 18px; text-align: center; border-bottom: 1px solid rgba(255,255,255,0.04); }
.pc-rc-verdict .rv-lift { font-size: 32px; font-weight: 800; display: flex; align-items: center; justify-content: center; gap: 12px; }
.pc-rc-verdict .rv-lift .pc-info-icon { width: 18px; height: 18px; font-size: 11px; }
.pc-rv-tag {
  display: inline-block; font-size: 11px; font-weight: 700; padding: 3px 10px;
  border-radius: 10px; margin-top: 6px; text-transform: uppercase; letter-spacing: 0.3px;
}
.pc-rv-tag.positive { background: rgba(74,222,128,0.15); color: #4ade80; }
.pc-rv-tag.neutral { background: rgba(138,142,164,0.1); color: #8892a4; }
.pc-rv-tag.negative { background: rgba(248,113,113,0.15); color: #f87171; }

.pc-rc-insight {
  padding: 12px 18px; font-size: 13px; color: var(--theme-text-secondary, #8B949E);
  line-height: 1.5; border-bottom: 1px solid rgba(255,255,255,0.04); text-align: center;
}
.pc-rc-insight-avatars {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 10px;
}
.pc-rc-avatar-chip {
  position: relative;
  display: inline-block;
}
.pc-rc-insight-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.pc-rc-stat-chip {
  position: absolute;
  bottom: -4px;
  right: -4px;
  font-size: 8px;
  font-weight: 700;
  color: #00D3BD;
  background: rgba(6,14,30,0.9);
  border: 1px solid rgba(0,211,189,0.3);
  padding: 1px 5px;
  border-radius: 4px;
  letter-spacing: 0.3px;
  white-space: nowrap;
  line-height: 1.3;
}
.pc-rc-compare { padding: 14px 18px; border-bottom: 1px solid rgba(255,255,255,0.04); }
.pc-rc-bar-group { margin-bottom: 10px; }
.pc-rc-bar-group:last-child { margin-bottom: 0; }
.pc-rc-bar-label {
  display: flex; justify-content: space-between; align-items: center; font-size: 11px; margin-bottom: 4px;
}
.pc-rc-bar-label .rbl-name { color: var(--theme-text-secondary, #8B949E); }
.pc-rc-bar-label .rbl-value { font-weight: 700; color: var(--theme-text-primary, #E6EDF3); }
.pc-rc-bar-track {
  height: 8px; background: rgba(255,255,255,0.04); border-radius: 4px; overflow: hidden;
}
.pc-rc-bar-fill { height: 100%; border-radius: 4px; }
.pc-rc-metrics { padding: 8px 18px 12px; }
.pc-rc-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,0.02);
}
.pc-rc-row:last-child { border-bottom: none; }
.pc-rcr-label { font-size: 12px; color: var(--theme-text-secondary, #8B949E); }
.pc-rcr-value { font-size: 13px; font-weight: 700; color: var(--theme-text-primary, #E6EDF3); }

/* Value score */
.pc-rc-value { padding: 14px 18px; border-top: 1px solid rgba(255,255,255,0.04); }
.pc-rc-value-head {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px;
}
.pc-rc-value-head .rvh-label {
  font-size: 10px; color: var(--theme-text-secondary, #8B949E); text-transform: uppercase;
  letter-spacing: 0.5px; font-weight: 600; display: flex; align-items: center; gap: 6px;
}
.pc-rc-value-score { font-size: 22px; font-weight: 800; letter-spacing: -0.5px; }
.pc-rc-value-tag {
  display: inline-block; font-size: 10px; font-weight: 700; padding: 2px 8px;
  border-radius: 8px; text-transform: uppercase; letter-spacing: 0.3px;
}
.pc-rc-vb-row {
  display: flex; justify-content: space-between; align-items: center; padding: 4px 0; font-size: 11px;
}
.pc-rc-vb-label { color: var(--theme-text-secondary, #8B949E); }
.pc-rc-vb-val { font-weight: 600; color: var(--theme-text-primary, #E6EDF3); }

/* Info icon + popup */
.pc-info-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 15px; height: 15px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.15);
  font-size: 9px; font-weight: 600; color: var(--theme-text-secondary, #8B949E);
  cursor: pointer; font-style: normal; font-family: Inter, -apple-system, sans-serif; line-height: 1;
  text-transform: none;
  transition: all 0.15s; flex-shrink: 0; position: relative; vertical-align: middle;
}
.pc-info-icon:hover { border-color: #00D3BD; color: #00D3BD; }
.pc-info-popup {
  position: fixed;
  background: var(--theme-card-bg, #1e2028); border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px; padding: 10px 14px; font-size: 12px;
  color: var(--theme-text-primary, #c0c8d8); line-height: 1.5;
  width: 240px; font-style: normal; font-family: Inter, -apple-system, sans-serif; font-weight: 400;
  z-index: 9999; pointer-events: none; opacity: 0; transition: opacity 0.15s;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
  text-align: left; white-space: normal; text-transform: none;
}
.pc-info-popup.pc-popup-visible { opacity: 1; pointer-events: auto; }

/* Pairwise correlation rows */
.pc-rc-pairwise { padding: 0 16px 8px; }
.pc-rc-pair-row {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,0.04); font-size: 12px;
}
.pc-rc-pair-row:last-child { border-bottom: none; }
.pc-rc-pair-names { flex: 1; color: var(--theme-text-primary, #E6EDF3); font-weight: 500; }
.pc-rc-pair-lift { font-weight: 700; min-width: 48px; text-align: right; }
.pc-rc-pair-cohit { color: var(--theme-text-secondary, #8B949E); min-width: 80px; text-align: right; }

/* === Detail toggle + content === */
.pc-detail-toggle {
  background: none; border: 1px solid rgba(255,255,255,0.08);
  color: var(--theme-text-secondary, #8B949E);
  border-radius: 8px; padding: 8px 16px; font-size: 13px;
  cursor: pointer; transition: all 0.2s; font-family: inherit; margin-top: 16px;
}
.pc-detail-toggle:hover { border-color: #00D3BD; color: var(--theme-text-primary, #E6EDF3); }
.pc-detail-content { display: none; flex-direction: column; gap: 16px; margin-top: 16px; }
.pc-detail-content.open { display: flex; }
.pc-detail-card {
  background: var(--theme-card-bg, rgba(255,255,255,0.04));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px; padding: 20px;
}
.pc-section-title {
  font-size: 15px; font-weight: 600; color: var(--theme-text-primary, #E6EDF3); margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px;
}
.pc-badge-count {
  font-size: 11px; background: rgba(0,211,189,0.15); color: #00D3BD;
  padding: 2px 8px; border-radius: 10px; font-weight: 500;
}
.pc-chart-wrap { position: relative; width: 100%; height: 280px; }

/* Game log table */
.pc-log-wrap { overflow-x: auto; }
.pc-log-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.pc-log-table th, .pc-log-table td {
  padding: 8px 12px; text-align: center; border-bottom: 1px solid rgba(255,255,255,0.04);
}
.pc-log-table th {
  color: var(--theme-text-secondary, #8B949E); font-weight: 500; font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.5px; position: sticky; top: 0;
  background: var(--theme-card-bg, #1a1d24);
}
.pc-log-table th:first-child, .pc-log-table td:first-child { text-align: left; }
.pc-log-table .over { color: #4ade80; font-weight: 600; }
.pc-log-table .under { color: #f87171; font-weight: 600; }
.pc-log-table .both-hit { background: rgba(74,222,128,0.08); }

/* Loading / Toast */
.pc-loading {
  text-align: center; padding: 60px 0;
  color: var(--theme-text-secondary, #8B949E); font-size: 14px;
}
.pc-toast {
  position: fixed; top: 20px; left: 50%; transform: translateX(-50%) translateY(-10px);
  background: #00D3BD; color: #fff;
  padding: 12px 20px; border-radius: 8px; font-size: 14px; z-index: 9999;
  max-width: 400px; opacity: 0; transition: all 0.3s;
  pointer-events: none; white-space: nowrap;
}
.pc-toast.visible { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }

/* === Drawer wrapper — preserves flex chain on desktop === */
.pc-drawer-handle { display: none; }
.pc-drawer-toggle-btn { display: none; }
.pc-drawer-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

/* === Responsive === */
@media (max-width: 1000px) {
  /* Undo desktop body lock on mobile — page scrolls normally */
  body.pc-active {
    overflow: visible;
    height: auto;
  }

  /* Lock page scroll when drawer is open */
  body.pc-body-locked {
    overflow: hidden;
    position: fixed;
    width: 100%;
  }

  .pc-container {
    height: auto;
    overflow: visible;
    overflow-x: hidden;
  }

  .pc-workspace-grid {
    grid-template-columns: 1fr;
    height: auto;
    min-height: auto;
  }

  .pc-main-area {
    display: block;
    overflow: visible;
    overflow-x: hidden;
    padding: 140px 8px calc(var(--pb-bottom-nav-height, 64px) + 16px);
    min-height: 100vh;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
  }

  /* --- Top drawer (anchored below navbar, expands downward) --- */
  .pc-sidebar {
    position: fixed;
    top: var(--pc-navbar-h, 120px);
    left: 0;
    right: 0;
    z-index: 1100;
    transition: transform 0.3s ease, opacity 0.3s ease;
    border-left: none;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    border-radius: 0 0 16px 16px;
    background: var(--bg-base, #060e1e);
    box-shadow: none;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

  /* --- Drawer handle --- */
  .pc-drawer-handle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    height: 120px;
    flex-shrink: 0;
    padding: 0px 24px 0px;
    box-sizing: border-box;
    background: var(--bg-base, #060e1e);
    border-top: 1px solid rgba(255,255,255,0.06);
    border-bottom: none;
    cursor: pointer;
    order: 2;
  }
  .pc-drawer-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    min-width: 72px;
    border-radius: 50%;
    border: 2px solid #00D3BD;
    background: rgba(0,211,189,0.12);
    color: #00D3BD;
    font-size: 32px;
    font-weight: 700;
    font-family: inherit;
    line-height: 1;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.15s, transform 0.15s;
  }
  .pc-drawer-toggle-btn:active {
    background: rgba(0,211,189,0.25);
    transform: scale(0.92);
  }
  .pc-drawer-summary {
    font-size: 32px;
    font-weight: 600;
    color: var(--theme-text-primary, #E6EDF3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* --- Drawer body (scrollable content) --- */
  .pc-drawer-body {
    overflow-y: auto;
    max-height: 0;
    transition: max-height 0.3s ease;
    -webkit-overflow-scrolling: touch;
    order: 1;
  }
  .pc-sidebar.pc-drawer-open .pc-drawer-body {
    max-height: calc(70vh - 108px);
  }

  /* --- Cards: single column, full width --- */
  .pc-workspace { flex-direction: column; gap: 16px; width: 100%; flex: none; min-height: auto; align-items: stretch; }
  .pc-workspace > .pc-prop-card.card-result { max-height: none; overflow: visible; }
  .pc-players-wrap { flex-direction: column; gap: 16px; width: 100%; max-height: none; overflow: visible; padding-bottom: 0; }
  .pc-prop-card, .pc-add-card, .pc-prop-card.card-result { width: 100%; box-sizing: border-box; }

  /* --- Drawer: sidebar section titles & labels --- */
  .pc-sb-title { font-size: 28px; font-weight: 700; margin-bottom: 20px; }
  .pc-sb-section { padding: 26px 30px; }
  .pc-sb-label-row { padding: 26px 30px; }
  .pc-sb-label { font-size: 28px; font-weight: 700; }
  .pc-sb-loading { padding: 36px 30px; font-size: 26px; }
  .pc-sb-empty { padding: 36px 30px; font-size: 26px; }

  /* --- Drawer: games horizontal scroll row --- */
  .pc-games-grid {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .pc-games-grid::-webkit-scrollbar { display: none; }
  .pc-sb-game {
    flex-direction: column;
    padding: 18px 20px;
    gap: 6px;
    border-radius: 18px;
    margin-bottom: 0;
    border: 1px solid rgba(255,255,255,0.06);
    flex-shrink: 0;
    min-width: 140px;
  }
  .pc-sb-game.active { border-color: #00D3BD; }
  .pc-sb-game-matchup { align-items: center; }
  .pc-sb-game-teams { font-size: 26px; gap: 6px; justify-content: center; }
  .pc-sb-logo { width: 38px; height: 38px; }
  .pc-sb-game-at { font-size: 20px; }
  .pc-sb-game-time { font-size: 20px; }
  .pc-sb-game-badge { display: none; }

  /* --- Drawer: team picker --- */
  .pc-team-grid { gap: 12px; }
  .pc-team-btn {
    flex-direction: row;
    font-size: 26px;
    padding: 18px 20px;
    border-radius: 18px;
    gap: 14px;
    justify-content: center;
  }
  .pc-team-btn-logo { width: 44px; height: 44px; }

  /* --- Drawer: vs opponent button (inline in label row) --- */
  .pc-vs-btn { font-size: 22px; padding: 12px 22px; border-radius: 14px; border-width: 2px; }

  /* --- Drawer: player list (2-col grid) --- */
  .pc-sb-players {
    padding: 12px 30px 36px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
  .pc-sp-item { padding: 22px 18px; border-radius: 22px; margin-bottom: 0; border: 1px solid rgba(255,255,255,0.06); }
  .pc-sp-left { gap: 14px; }
  .pc-sp-avatar { width: 60px; height: 60px; }
  .pc-sp-avatar.pc-sp-avatar-team { width: 48px; height: 48px; }
  .pc-sp-name { font-size: 30px; }
  .pc-sp-badge { font-size: 24px; padding: 5px 18px; }

  /* --- Welcome / empty state --- */
  .pc-welcome { padding: 80px 24px 60px; }
  .pc-welcome-icon { font-size: 80px; margin-bottom: 28px; }
  .pc-welcome h2 { font-size: 42px; }
  .pc-welcome-sub { font-size: 32px; margin-bottom: 48px; }
  .pc-step { font-size: 32px; gap: 24px; }
  .pc-step-num { width: 58px; height: 58px; font-size: 28px; }

  /* --- Prop card: header --- */
  .pc-card-header { padding: 16px 20px 10px; }
  .pc-card-header .pc-left { gap: 18px; }
  .pc-card-avatar-wrap { width: 84px; height: 84px; }
  .pc-card-avatar { width: 84px; height: 84px; }
  .pc-card-avatar-badge { width: 34px; height: 34px; }
  .pc-card-team-logo { width: 74px; height: 74px; }
  .pc-badge { font-size: 22px; padding: 5px 16px; border-radius: 8px; }
  .pc-player-name { font-size: 34px; }
  .pc-close-btn { font-size: 32px; width: 60px; height: 60px; top: 10px; right: 10px; }

  /* --- Prop card: prop rows --- */
  .pc-props-hint { font-size: 26px; padding: 6px 24px 4px; }
  .pc-prop-row { padding: 20px 24px; gap: 16px; }
  .pc-prop-check, .pc-prop-radio { width: 38px; height: 38px; }
  .pc-prop-check { border-radius: 10px; }
  .pc-prop-row.sel .pc-prop-check::after { font-size: 24px; }
  .pc-prop-row.sel .pc-prop-radio::after { width: 20px; height: 20px; }
  .pc-prop-market { font-size: 30px; }
  .pc-line-wrap { width: 300px; border-radius: 20px; }
  .pc-line-val { font-size: 28px; padding: 12px 0; }
  .pc-line-arr { font-size: 22px; padding: 16px 36px; }
  .pc-prop-odds-pill { font-size: 26px; width: 100px; padding: 8px 0; border-radius: 16px; }
  .pc-combo-toggle { font-size: 26px; padding: 14px 0; margin: 12px 24px; border-radius: 12px; }

  /* --- Prop card: stats panel --- */
  .pc-stats { padding: 24px 24px 28px; }
  .pc-stats-head { font-size: 24px; margin-bottom: 18px; }
  .pc-stat-row { padding: 12px 0; }
  .pc-stat-label { font-size: 28px; }
  .pc-stat-value { font-size: 30px; }
  .pc-stat-delta { font-size: 24px; }
  .pc-stats-loading { font-size: 28px; padding: 24px 24px; }

  /* --- Prop card: hit rate bar + L10 --- */
  .pc-hit-bar { height: 10px; }
  .pc-l10-row { gap: 10px; margin-top: 18px; }
  .pc-l10-label { font-size: 26px; }
  .pc-l10-squares { gap: 7px; }
  .pc-l10-sq { width: 38px; height: 38px; border-radius: 7px; }
  .pc-l10-sq .sq-val { font-size: 17px; }
  .pc-l10-summary { font-size: 28px; }
  .pc-streak { font-size: 28px; padding: 8px 16px; border-radius: 10px; }

  /* --- Add teammate card --- */
  .pc-add-card { min-height: 200px; border-radius: 18px; gap: 14px; }
  .pc-add-card .ac-icon { font-size: 44px; width: 76px; height: 76px; }
  .pc-add-card .ac-text { font-size: 26px; }

  /* --- Result card --- */
  .pc-rc-verdict .rv-lift { font-size: 56px; gap: 16px; }
  .pc-rc-verdict .rv-lift .pc-info-icon { width: 36px; height: 36px; font-size: 20px; }
  .pc-rv-tag { font-size: 20px; padding: 6px 20px; }
  .pc-rc-insight { font-size: 24px; padding: 20px 24px; }
  .pc-rc-insight-avatars { gap: 14px; margin-bottom: 16px; }
  .pc-rc-avatar-chip { cursor: pointer; }
  .pc-rc-insight-avatar { width: 90px; height: 90px; }
  .pc-rc-stat-chip { font-size: 14px; padding: 2px 8px; border-radius: 6px; bottom: -6px; right: -6px; left: auto; }
  .pc-rc-compare { padding: 28px 24px; }
  .pc-rc-compare > div[style] { font-size: 26px !important; margin-bottom: 20px; }
  .pc-rc-bar-group { margin-bottom: 20px; }
  .pc-rc-bar-label { font-size: 28px; margin-bottom: 12px; }
  .pc-rc-bar-track { height: 16px; }
  .pc-rc-row { padding: 16px 0; }
  .pc-rcr-label { font-size: 28px; }
  .pc-rcr-value { font-size: 30px; }
  .pc-rc-pairwise { padding: 0 24px 20px; }
  .pc-rc-pairwise > div[style] { font-size: 26px !important; margin-bottom: 18px; }
  .pc-rc-pair-row { font-size: 28px; padding: 18px 0; gap: 20px; }
  .pc-rc-pair-lift { min-width: 100px; }
  .pc-rc-pair-cohit { min-width: 150px; }
  .pc-rc-value { padding: 28px 24px; }
  .pc-rc-value-head .rvh-label { font-size: 26px; }
  .pc-rc-value-score { font-size: 50px; }
  .pc-rc-value-tag { font-size: 22px; padding: 6px 18px; }
  .pc-rc-vb-row { font-size: 28px; padding: 14px 0; }

  /* --- Info icon popup --- */
  .pc-info-icon { width: 28px; height: 28px; font-size: 16px; }
  .pc-info-icon::before { content: ''; position: absolute; inset: -12px; }
  .pc-info-popup { font-size: 24px; padding: 20px 24px; line-height: 1.4; }

  /* --- Disable hover effects on mobile (preserve active states) --- */
  .pc-sb-game:not(.active):hover { background: none; }
  .pc-team-btn:not(.active):hover { border-color: rgba(255,255,255,0.08); }
  .pc-vs-btn:not(.active):hover { border-color: rgba(255,255,255,0.1); color: var(--theme-text-secondary, #8B949E); }
  .pc-sp-item:not(.sel-player):not(.pc-sp-inj-active):hover { background: none; }
  .pc-prop-row:not(.sel):hover { background: none; }
  .pc-combo-toggle:hover { background: rgba(255,255,255,0.04); color: var(--theme-text-secondary, #8B949E); }
  .pc-line-val.is-over:hover { background: none; }
  .pc-line-val.is-under:hover { background: none; }
  .pc-line-arr:hover:not(.disabled) { color: var(--theme-text-secondary, #8B949E); background: none; }
  .pc-add-card:hover { border-color: rgba(255,255,255,0.08); }
  .pc-add-card:hover .ac-icon { background: rgba(0,211,189,0.1); }
  .pc-add-card:hover .ac-text { color: var(--theme-text-secondary, #8B949E); }
  .pc-close-btn:hover { color: var(--theme-text-secondary, #8B949E); }
  .pc-info-icon:hover { border-color: rgba(255,255,255,0.15); color: var(--theme-text-secondary, #8B949E); }
  .pc-detail-toggle:hover { border-color: rgba(255,255,255,0.08); color: var(--theme-text-secondary, #8B949E); }
}

/* === Desktop result card size bump === */
@media (min-width: 1001px) {
  .pc-rc-insight { font-size: 15px; padding: 14px 20px; }
  .pc-rc-insight-avatar { width: 52px; height: 52px; }
  .pc-rc-stat-chip { font-size: 9px; padding: 2px 6px; }
  .pc-rc-section-title { font-size: 12px !important; margin-bottom: 12px !important; }
  .pc-rc-bar-label { font-size: 13px; margin-bottom: 6px; }
  .pc-rc-bar-track { height: 10px; }
  .pc-rc-compare { padding: 16px 20px; }
  .pc-rc-metrics { padding: 10px 20px 14px; }
  .pc-rcr-label { font-size: 13px; }
  .pc-rcr-value { font-size: 14px; }
  .pc-rc-row { padding: 8px 0; }
  .pc-rc-pairwise { padding: 0 20px 10px; }
  .pc-rc-pair-row { font-size: 13px; padding: 7px 0; }
  .pc-rc-value { padding: 16px 20px; }
  .pc-rc-value-head .rvh-label { font-size: 12px; }
  .pc-rc-value-score { font-size: 26px; }
  .pc-rc-value-tag { font-size: 11px; padding: 3px 10px; }
  .pc-rc-vb-row { font-size: 13px; padding: 6px 0; }
  .pc-info-icon { width: 17px; height: 17px; font-size: 10px; }
  .pc-info-popup { width: 260px; font-size: 13px; padding: 12px 16px; }
}
