/* ═══════════════════════════════════════════════════════════
   DELHI CAPITALS XI BUILDER — STYLESHEET
   Aesthetic: Deep navy stadium + electric red accents,
   editorial grid layout, Bebas Neue display type.
═══════════════════════════════════════════════════════════ */

/* ── CSS VARIABLES ─────────────────────────────────────── */
:root {
  /* Brand */
  --dc-navy:       #002147;
  --dc-navy-mid:   #0a2e5c;
  --dc-navy-light: #0d3b74;
  --dc-red:        #e8132b;
  --dc-red-dim:    #b50e21;
  --dc-gold:       #f5c518;
  --dc-white:      #f5f7fa;
  --dc-muted:      #8fa8c8;

  /* UI surfaces */
  --surface-1:     #031a35;
  --surface-2:     #062041;
  --surface-3:     #0b2c55;
  --surface-card:  #0e335f;
  --surface-slot:  #0a2647;
  --border:        rgba(255,255,255,0.08);
  --border-bright: rgba(255,255,255,0.18);

  /* Typography */
  --font-display: 'Bebas Neue', sans-serif;
  --font-body:    'DM Sans', sans-serif;

  /* Sizing */
  --card-w:   128px;
  --card-h:   168px;
  --slot-w:   108px;
  --slot-h:   136px;
  --radius:   10px;
  --gap:      12px;

  /* Transitions */
  --ease:     cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ── RESET & BASE ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 14px; -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }

body {
  background: var(--surface-1);
  color: var(--dc-white);
  font-family: var(--font-body);
  min-height: 100vh;
  overflow-x: hidden;
  /* Stadium atmospheric texture */
  background-image:
    radial-gradient(ellipse 120% 50% at 50% 0%, rgba(14,51,95,0.8) 0%, transparent 70%),
    radial-gradient(ellipse 80% 60% at 80% 100%, rgba(232,19,43,0.07) 0%, transparent 60%);
}

/* ── HEADER ─────────────────────────────────────────────── */
.site-header {
  background: linear-gradient(135deg, var(--dc-navy) 0%, var(--dc-navy-mid) 100%);
  border-bottom: 2px solid var(--dc-red);
  padding: 14px 20px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 24px rgba(0,0,0,0.5);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: 1600px;
  margin: 0 auto;
}

.dc-crest {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: var(--dc-red);
  border-radius: 8px;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px var(--dc-gold), inset 0 1px 0 rgba(255,255,255,0.2);
}
.crest-dc   { font-family: var(--font-display); font-size: 22px; line-height: 1; color: #fff; }
.crest-sub  { font-size: 5.5px; letter-spacing: 0.08em; color: rgba(255,255,255,0.85); text-transform: uppercase; }

.header-title { flex: 1; }
.header-title h1 {
  font-family: var(--font-display);
  font-size: clamp(22px, 4vw, 38px);
  letter-spacing: 0.06em;
  color: var(--dc-white);
  line-height: 1;
}
.subtitle {
  font-size: 11px;
  color: var(--dc-muted);
  letter-spacing: 0.04em;
  margin-top: 3px;
}

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

.live-indicator {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--dc-muted);
}
.live-indicator.connected { color: #4cff9f; }
.pulse-dot {
  width: 8px; height: 8px;
  background: #888;
  border-radius: 50%;
  flex-shrink: 0;
}
.live-indicator.connected .pulse-dot {
  background: #4cff9f;
  animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(76,255,159,0.6); }
  50%       { box-shadow: 0 0 0 6px rgba(76,255,159,0); }
}

.vote-count-badge {
  background: var(--surface-3);
  border: 1px solid var(--border-bright);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  gap: 5px;
  align-items: center;
}
.vote-count-badge span:first-child {
  color: var(--dc-gold);
  font-family: var(--font-display);
  font-size: 18px;
}

/* ── BANNERS ────────────────────────────────────────────── */
.offline-banner, .voted-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 500;
}
.offline-banner {
  background: linear-gradient(90deg, #7a2c00, #b84400);
  color: #ffe0cc;
}
.voted-banner {
  background: linear-gradient(90deg, #004d1f, #006b29);
  color: #b4ffce;
}
[hidden] { display: none !important; }

/* ── MAIN LAYOUT ────────────────────────────────────────── */
.app-main {
  max-width: 1600px;
  margin: 0 auto;
  padding: 20px 16px 60px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* ── SECTION WRAPPER ────────────────────────────────────── */
.section {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.35);
}

.section-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px 12px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.section-title {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.08em;
  color: var(--dc-gold);
  flex-shrink: 0;
  min-width: 80px;
}

.role-legend {
  display: flex;
  gap: 12px;
  font-size: 11px;
  color: var(--dc-muted);
  flex-wrap: wrap;
}

/* ── FILTER BAR ─────────────────────────────────────────── */
.filter-bar {
  display: flex;
  gap: 6px;
  margin-left: auto;
  flex-wrap: wrap;
}
.filter-btn {
  background: var(--surface-3);
  border: 1px solid var(--border-bright);
  color: var(--dc-muted);
  border-radius: 20px;
  padding: 4px 12px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.filter-btn:hover  { color: var(--dc-white); border-color: var(--dc-white); }
.filter-btn.active {
  background: var(--dc-red);
  border-color: var(--dc-red);
  color: #fff;
  box-shadow: 0 2px 12px rgba(232,19,43,0.4);
}

/* ── SCROLL TRACK (shared) ──────────────────────────────── */
.scroll-track {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: var(--gap);
  padding: 16px 18px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--dc-red) var(--surface-3);
}
.scroll-track::-webkit-scrollbar       { height: 5px; }
.scroll-track::-webkit-scrollbar-track { background: var(--surface-3); }
.scroll-track::-webkit-scrollbar-thumb { background: var(--dc-red); border-radius: 4px; }

/* ── PLAYER CARD ────────────────────────────────────────── */
.player-card {
  width: var(--card-w);
  min-width: var(--card-w);
  height: var(--card-h);
  background: var(--surface-card);
  border: 1.5px solid var(--border-bright);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  cursor: grab;
  user-select: none;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), border-color 0.18s;
  outline: none;
  overflow: hidden;
  flex-shrink: 0;
}
.player-card:focus {
  border-color: var(--dc-gold);
  box-shadow: 0 0 0 2px var(--dc-gold);
}
.player-card:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 12px 30px rgba(0,0,0,0.5);
  border-color: rgba(255,255,255,0.35);
  z-index: 2;
}
.player-card.dragging {
  opacity: 0.45;
  transform: scale(0.95);
}
.player-card.assigned {
  border-color: var(--dc-gold);
  background: linear-gradient(160deg, #1a3a1a 0%, var(--surface-card) 100%);
}

/* Role icon */
.role-icon {
  position: absolute;
  top: 6px;
  left: 6px;
  font-size: 13px;
  line-height: 1;
  z-index: 1;
}

/* Slot badge on player card */
.card-slot-badge {
  position: absolute;
  top: 5px;
  right: 5px;
  background: var(--dc-red);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.5);
  z-index: 2;
}

/* Photo area */
.card-photo {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  margin-top: 20px;
  object-fit: cover;
  background: var(--surface-3);
  border: 2px solid var(--border-bright);
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-photo-placeholder {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  margin-top: 20px;
  background: linear-gradient(135deg, var(--surface-3), var(--dc-navy-light));
  border: 2px solid var(--border-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 26px;
  color: var(--dc-muted);
}

.card-info {
  padding: 7px 6px 6px;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  overflow: hidden;
  width: 100%;
}
.card-name {
  font-size: 11px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--dc-white);
  word-break: break-word;
  text-align: center;
  max-width: 100%;
}
.card-role {
  font-size: 9.5px;
  color: var(--dc-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── XI BUILDER SLOTS ───────────────────────────────────── */
.xi-builder-row { align-items: stretch; }

.xi-slot {
  width: var(--slot-w);
  min-width: var(--slot-w);
  height: var(--slot-h);
  border: 2px dashed rgba(255,255,255,0.2);
  border-radius: var(--radius);
  background: var(--surface-slot);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
  cursor: default;
  outline: none;
  flex-shrink: 0;
  overflow: hidden;
}
.xi-slot:focus {
  border-color: var(--dc-gold);
  box-shadow: 0 0 0 2px var(--dc-gold);
}
.xi-slot.drag-over {
  border-color: var(--dc-gold);
  background: rgba(245,197,24,0.1);
  transform: scale(1.04);
}
.xi-slot.filled {
  border-style: solid;
  border-color: rgba(255,255,255,0.18);
  background: var(--surface-card);
  cursor: grab;
}
.xi-slot.filled:hover { border-color: var(--dc-red); }

.slot-number {
  font-family: var(--font-display);
  font-size: 32px;
  color: rgba(255,255,255,0.12);
  line-height: 1;
  user-select: none;
}
.xi-slot.filled .slot-number { display: none; }
.slot-label {
  font-size: 9px;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.06em;
  margin-top: 2px;
}
.xi-slot.filled .slot-label { display: none; }

/* Slot index badge */
.slot-index-badge {
  position: absolute;
  top: 4px;
  left: 4px;
  background: var(--dc-red);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

/* Remove button inside slot */
.slot-remove {
  position: absolute;
  bottom: 4px;
  right: 4px;
  background: rgba(232,19,43,0.8);
  border: none;
  color: #fff;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  z-index: 3;
  line-height: 1;
}
.slot-remove:hover { background: var(--dc-red); }

/* Mini card inside slot */
.mini-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  height: 100%;
  padding: 22px 4px 6px;
  gap: 4px;
}
.mini-photo {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--surface-3);
  border: 2px solid var(--border-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--dc-muted);
  overflow: hidden;
  flex-shrink: 0;
}
.mini-photo img { width: 100%; height: 100%; object-fit: cover; }
.mini-name {
  font-size: 9.5px;
  font-weight: 600;
  color: var(--dc-white);
  text-align: center;
  line-height: 1.2;
  word-break: break-word;
  max-width: 92px;
}
.mini-role-icon {
  font-size: 11px;
}

/* ── BUILDER ACTIONS ────────────────────────────────────── */
.builder-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

/* ── CROWD XI ───────────────────────────────────────────── */
.crowd-row { align-items: flex-start; }

.crowd-slot {
  width: var(--slot-w);
  min-width: var(--slot-w);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.crowd-slot-index {
  font-family: var(--font-display);
  font-size: 11px;
  color: var(--dc-red);
  letter-spacing: 0.08em;
}
.crowd-card {
  width: 92px;
  background: var(--surface-card);
  border: 1.5px solid var(--border-bright);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 6px 8px;
  gap: 5px;
  min-height: 110px;
  transition: border-color 0.3s;
  position: relative;
}
.crowd-card.top-voted { border-color: var(--dc-gold); }
.crowd-photo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface-3);
  border: 2px solid var(--border-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  overflow: hidden;
  flex-shrink: 0;
}
.crowd-photo img { width: 100%; height: 100%; object-fit: cover; }
.crowd-name {
  font-size: 9.5px;
  font-weight: 600;
  color: var(--dc-white);
  text-align: center;
  line-height: 1.2;
}
.crowd-pct {
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--dc-gold);
}
.crowd-empty {
  font-size: 10px;
  color: var(--dc-muted);
  text-align: center;
  padding: 8px 0;
}

/* Leaderboard panel */
.leaderboard-panel {
  width: var(--slot-w);
  background: var(--surface-3);
  border: 1px solid var(--border-bright);
  border-radius: 8px;
  padding: 6px;
  display: none;
}
.leaderboard-panel.visible { display: block; }
.lb-row {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 3px 2px;
  border-bottom: 1px solid var(--border);
  font-size: 9px;
  color: var(--dc-muted);
}
.lb-row:last-child { border-bottom: none; }
.lb-rank { font-weight: 700; color: var(--dc-gold); min-width: 14px; }
.lb-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-count { font-weight: 600; color: var(--dc-white); }

/* ── BUTTONS ────────────────────────────────────────────── */
.btn-primary {
  background: var(--dc-red);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 9px 20px;
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 0.06em;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(232,19,43,0.4);
}
.btn-primary:hover:not(:disabled) {
  background: var(--dc-red-dim);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(232,19,43,0.55);
}
.btn-primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-ghost {
  background: transparent;
  color: var(--dc-muted);
  border: 1px solid var(--border-bright);
  border-radius: 8px;
  padding: 7px 14px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.btn-ghost:hover { color: var(--dc-white); border-color: var(--dc-white); background: rgba(255,255,255,0.06); }
.btn-ghost[aria-pressed="true"] {
  background: rgba(245,197,24,0.1);
  border-color: var(--dc-gold);
  color: var(--dc-gold);
}

.btn-text {
  background: none;
  border: none;
  color: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}

/* ── MODALS ─────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s var(--ease);
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal-box {
  background: var(--surface-2);
  border: 1px solid var(--border-bright);
  border-radius: 16px;
  padding: 28px 24px 24px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 60px rgba(0,0,0,0.7);
  animation: slideUp 0.25s var(--ease);
}
@keyframes slideUp { from { transform: translateY(18px); opacity: 0; } to { transform: none; opacity: 1; } }

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--surface-3);
  border: none;
  color: var(--dc-muted);
  width: 28px; height: 28px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 13px;
  transition: color 0.2s, background 0.2s;
  display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { color: var(--dc-white); background: var(--dc-red); }

.modal-box h3 {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.05em;
  margin-bottom: 18px;
  color: var(--dc-white);
}
.modal-box h3 span { color: var(--dc-red); }

/* Position grid modal */
.position-modal-box { width: min(380px, 95vw); }

.position-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.pos-btn {
  background: var(--surface-3);
  border: 1.5px solid var(--border-bright);
  color: var(--dc-white);
  border-radius: 8px;
  padding: 12px 0;
  font-family: var(--font-display);
  font-size: 22px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  text-align: center;
}
.pos-btn:hover   { background: var(--dc-red); border-color: var(--dc-red); transform: scale(1.06); }
.pos-btn.occupied { opacity: 0.4; cursor: not-allowed; }
.pos-btn.occupied:hover { background: var(--surface-3); border-color: var(--border-bright); transform: none; }

/* Confirm modal */
.confirm-modal-box { width: min(440px, 95vw); }

.confirm-xi-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 22px;
}
.confirm-xi-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  padding: 7px 10px;
  background: var(--surface-3);
  border-radius: 7px;
  border: 1px solid var(--border);
}
.confirm-slot-num {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--dc-red);
  min-width: 22px;
}
.confirm-actions { display: flex; justify-content: flex-end; gap: 10px; }

/* ── ANIMATIONS ─────────────────────────────────────────── */
@keyframes cardAppear {
  from { opacity: 0; transform: scale(0.88) translateY(10px); }
  to   { opacity: 1; transform: none; }
}
.player-card { animation: cardAppear 0.3s var(--ease) both; }

@keyframes slotFill {
  from { transform: scale(0.85); opacity: 0; }
  to   { transform: none; opacity: 1; }
}
.xi-slot .mini-card { animation: slotFill 0.25s var(--ease); }
.crowd-card          { animation: slotFill 0.3s var(--ease); }

/* Drop-glow */
.xi-slot.drop-accept {
  border-color: var(--dc-gold) !important;
  box-shadow: 0 0 0 3px rgba(245,197,24,0.3);
}

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 600px) {
  :root {
    --card-w: 110px;
    --card-h: 150px;
    --slot-w: 92px;
    --slot-h: 118px;
  }
  .header-inner { gap: 10px; }
  .vote-count-badge { display: none; }
  .section-title { font-size: 18px; }
  .builder-actions { flex-wrap: wrap; gap: 6px; }
}

/* ── UTILITY ────────────────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* Drag ghost override */
.drag-ghost {
  opacity: 0 !important;
}

/* ═══════════════════════════════════════════════════════
   V2 ADDITIONS — Role symbols, dual XI, overseas, impact
═══════════════════════════════════════════════════════ */

/* ── ROLE SYMBOLS (text badges replacing emojis) ─────── */
.role-sym {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  font-weight: 800;
  font-family: var(--font-body);
  letter-spacing: 0.04em;
  padding: 2px 4px;
  border-radius: 3px;
  line-height: 1;
  flex-shrink: 0;
}
.bat-sym  { background: #1a3a5c; color: #7ec8f7; border: 1px solid #7ec8f7; }
.bowl-sym { background: #3a1a1a; color: #f77e7e; border: 1px solid #f77e7e; }
.ar-sym   { background: #2a2a00; color: #f5c518; border: 1px solid #f5c518; }
.wk-sym   { background: #1a2a1a; color: #7ef77e; border: 1px solid #7ef77e; }

/* Card role icon top-left */
.role-icon-card {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 2;
  font-size: 7px !important;
}

/* ── OVERSEAS TAG ────────────────────────────────────── */
.overseas-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #6b1a00;
  color: #ffb87a;
  border: 1px solid #ffb87a;
  border-radius: 3px;
  font-size: 7.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 1px 3px;
  line-height: 1;
  flex-shrink: 0;
}
.card-os-tag {
  position: absolute;
  bottom: 38px;
  left: 6px;
  z-index: 2;
}
.mini-os   { margin-top: 2px; }
.crowd-os  { margin-top: 2px; }

/* ── SLOT BADGES — dual XI ───────────────────────────── */
.card-slot-badge {
  position: absolute;
  top: 5px;
  right: 5px;
  color: #fff;
  font-size: 8px;
  font-weight: 700;
  padding: 2px 4px;
  border-radius: 4px;
  z-index: 3;
  line-height: 1;
}
.bat-badge  { background: #1460a8; top: 5px; }
.bowl-badge { background: #7a0000; top: 22px; }

/* ── XI TABS ─────────────────────────────────────────── */
.xi-tabs {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}
.xi-tab {
  background: var(--surface-3);
  border: 1.5px solid var(--border-bright);
  color: var(--dc-muted);
  border-radius: 8px;
  padding: 6px 14px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  white-space: nowrap;
}
.xi-tab:hover { color: var(--dc-white); border-color: var(--dc-white); }
.xi-tab.active {
  background: var(--dc-navy-light);
  border-color: var(--dc-gold);
  color: var(--dc-gold);
  box-shadow: 0 2px 10px rgba(245,197,24,0.25);
}

/* ── XI PANEL (hidden/visible) ───────────────────────── */
.xi-panel { display: block; }
.xi-panel.hidden { display: none; }

/* ── OVERSEAS COUNTER ────────────────────────────────── */
.overseas-counter {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--surface-3);
  border: 1px solid var(--border-bright);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 11px;
  flex-shrink: 0;
}
.oc-label { color: var(--dc-muted); font-weight: 500; }
.oc-pips  { display: flex; gap: 3px; }
.oc-pip {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--surface-1);
  border: 1.5px solid var(--dc-muted);
  transition: background 0.2s, border-color 0.2s;
}
.oc-pip.filled { background: var(--dc-red); border-color: var(--dc-red); }
.oc-count { font-weight: 700; font-family: var(--font-display); font-size: 15px; }

/* ── IMPACT PLAYER ROW ───────────────────────────────── */
.impact-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 18px 14px;
  border-top: 1px dashed rgba(255,255,255,0.1);
  margin-top: 4px;
}
.impact-label-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-shrink: 0;
  min-width: 160px;
}
.impact-badge {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(90deg, #7a0070, #b800a8);
  color: #fff;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: 4px;
  width: fit-content;
  box-shadow: 0 2px 8px rgba(184,0,168,0.4);
}
.impact-rule {
  font-size: 10px;
  color: var(--dc-muted);
  line-height: 1.3;
  max-width: 180px;
}
.impact-track {
  padding: 8px 0;
  flex: 1;
}

/* Impact slot styling */
.xi-slot.impact-slot {
  border-color: rgba(184,0,168,0.5);
  background: rgba(184,0,168,0.06);
  min-height: var(--slot-h);
}
.xi-slot.impact-slot.filled {
  border-color: rgba(184,0,168,0.8);
  background: rgba(184,0,168,0.12);
}
.xi-slot.impact-slot.drag-over {
  border-color: #e800d8;
  background: rgba(184,0,168,0.2);
}
.impact-index-badge {
  background: #7a0070 !important;
  font-size: 7px !important;
  width: auto !important;
  padding: 2px 4px;
  border-radius: 4px !important;
}

/* ── POSITION MODAL — player picker mode ─────────────── */
.player-pick-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px !important;
  font-size: 11px !important;
  text-align: left;
  width: 100%;
}
.pick-role { flex-shrink: 0; }
.pick-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.impact-pos-btn {
  background: rgba(184,0,168,0.15) !important;
  border-color: #b800a8 !important;
  color: #e07eda !important;
  grid-column: span 2;
}
.other-xi-btn {
  background: rgba(20,96,168,0.15) !important;
  border-color: #1460a8 !important;
  color: #7ec8f7 !important;
  grid-column: span 2;
  font-size: 10px !important;
}

/* Position grid for player-picker mode: single column */
.position-grid.picker-mode {
  grid-template-columns: 1fr !important;
  max-height: 60vh;
  overflow-y: auto;
}

/* ── CONFIRM MODAL — two columns ─────────────────────── */
.confirm-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 18px;
}
.confirm-col-title {
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--dc-gold);
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}
.confirm-impact-row {
  margin-top: 8px;
  padding: 6px 8px;
  background: rgba(184,0,168,0.1);
  border: 1px solid rgba(184,0,168,0.4);
  border-radius: 6px;
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
@media (max-width: 560px) {
  .confirm-two-col { grid-template-columns: 1fr; }
  .xi-tabs { flex-wrap: wrap; }
  .overseas-counter { display: none; }
  .impact-row { flex-direction: column; align-items: flex-start; }
}

/* ── ROLE LEGEND UPDATE ──────────────────────────────── */
.role-legend {
  display: flex;
  gap: 10px;
  font-size: 10px;
  color: var(--dc-muted);
  flex-wrap: wrap;
  align-items: center;
}
.role-legend span {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ── SHARE BUTTON ────────────────────────────────────── */
.btn-share {
  background: linear-gradient(135deg, #7a0070, #b800a8);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 9px 16px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(184,0,168,0.4);
  white-space: nowrap;
}
.btn-share:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(184,0,168,0.6);
}

/* ── CONFIRM MODAL — single XI label ─────────────────── */
.confirm-xi-type-label {
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
  padding: 6px 12px;
  background: rgba(255,255,255,0.06);
  border-radius: 6px;
  display: inline-block;
}

/* ── CONFIRM MODAL — section headings & spacer ───────── */
.confirm-section-heading {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.06em;
  padding: 8px 10px 4px;
  list-style: none;
  border-top: 1px solid var(--border);
  margin-top: 4px;
}
.confirm-section-heading:first-child { border-top: none; margin-top: 0; }
.confirm-spacer {
  height: 10px;
  list-style: none;
}
.confirm-impact-inline {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  background: rgba(184,0,168,0.08);
  border: 1px solid rgba(184,0,168,0.25);
  border-radius: 6px;
  margin: 4px 0 8px;
  list-style: none;
  font-size: 12px;
}

/* ═══════════════════════════════════════════════════════
   PEOPLE'S XI
═══════════════════════════════════════════════════════ */
.peoples-tab { background: linear-gradient(135deg,rgba(245,197,24,0.15),rgba(245,197,24,0.05)) !important; border-color: rgba(245,197,24,0.4) !important; color: var(--dc-gold) !important; }
.peoples-tab.active { background: rgba(245,197,24,0.2) !important; border-color: var(--dc-gold) !important; box-shadow: 0 2px 12px rgba(245,197,24,0.3) !important; }

.peoples-xi-wrap { padding: 12px 18px 18px; }
.peoples-xi-meta { font-size: 11px; color: var(--dc-muted); margin-bottom: 10px; }

.peoples-xi-tabs { display: flex; gap: 6px; margin-bottom: 14px; }
.peoples-tab-btn {
  background: var(--surface-3); border: 1.5px solid var(--border-bright);
  color: var(--dc-muted); border-radius: 8px; padding: 5px 14px;
  font-family: var(--font-body); font-size: 11px; font-weight: 600;
  cursor: pointer; transition: all 0.2s var(--ease);
}
.peoples-tab-btn:hover { color: var(--dc-white); }
.peoples-tab-btn.active { background: rgba(245,197,24,0.12); border-color: var(--dc-gold); color: var(--dc-gold); }

.peoples-xi-panel { display: block; }
.peoples-xi-panel.hidden { display: none; }

.peoples-row { gap: 10px; padding: 10px 0; }

.peoples-card {
  width: 88px; min-width: 88px;
  padding: 8px 5px 8px;
  gap: 4px;
  position: relative;
}
.peoples-card .crowd-slot-index { font-size: 9px; margin-bottom: 2px; }

.peoples-impact-row { padding: 8px 0 4px; }
.peoples-impact-wrap { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.peoples-impact-wrap .impact-badge { flex-shrink: 0; }

/* ═══════════════════════════════════════════════════════
   COMPARISON MODAL
═══════════════════════════════════════════════════════ */
.compare-modal-box {
  width: min(680px, 96vw);
  max-height: 90vh;
  overflow-y: auto;
}

.compare-score-banner {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.score-block {
  flex: 1;
  min-width: 140px;
  background: var(--surface-3);
  border: 1px solid var(--border-bright);
  border-radius: 10px;
  padding: 12px 16px;
  text-align: center;
}
.score-label { font-size: 11px; color: var(--dc-muted); margin-bottom: 4px; font-weight: 600; }
.score-num { font-family: var(--font-display); font-size: 36px; line-height: 1; }
.score-num span { font-size: 18px; color: var(--dc-muted); }
.score-sub { font-size: 10px; color: var(--dc-muted); margin-top: 4px; }

.compare-xi-tabs { margin-bottom: 12px; }

.compare-panel { display: block; }
.compare-panel.hidden { display: none; }

.compare-header-row {
  display: grid;
  grid-template-columns: 36px 1fr 28px 1fr 44px;
  gap: 6px;
  padding: 6px 8px;
  font-size: 10px;
  font-weight: 700;
  color: var(--dc-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
}
.compare-match-hdr { text-align: center; }

.compare-row {
  display: grid;
  grid-template-columns: 36px 1fr 28px 1fr 44px;
  gap: 6px;
  padding: 7px 8px;
  border-radius: 6px;
  align-items: center;
  font-size: 12px;
  border: 1px solid transparent;
  margin-bottom: 2px;
  transition: background 0.15s;
}
.compare-row:hover { background: rgba(255,255,255,0.03); }
.compare-match { background: rgba(76,255,159,0.05); border-color: rgba(76,255,159,0.15); }
.compare-diff  { background: rgba(255,255,255,0.02); }
.compare-impact-row-el {
  margin-top: 6px;
  background: rgba(184,0,168,0.08) !important;
  border-color: rgba(184,0,168,0.25) !important;
}

.compare-slot-num {
  background: var(--dc-red);
  color: #fff;
  font-family: var(--font-display);
  font-size: 13px;
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.compare-player-name {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--dc-white);
}
.compare-match-icon {
  text-align: center;
  font-size: 14px;
  font-weight: 700;
}
.match-yes { color: #4cff9f; }
.match-no  { color: rgba(255,255,255,0.2); }
.compare-pct {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--dc-gold);
  text-align: right;
}
.compare-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

/* Voted banner compare button */
.voted-compare-btn {
  background: rgba(255,255,255,0.12) !important;
  border: 1px solid rgba(255,255,255,0.3) !important;
  border-radius: 6px !important;
  padding: 3px 10px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  color: #b4ffce !important;
}
.voted-compare-btn:hover { background: rgba(255,255,255,0.2) !important; }

@media (max-width: 560px) {
  .compare-header-row,
  .compare-row { grid-template-columns: 30px 1fr 22px 1fr 36px; font-size: 10px; gap: 4px; }
  .compare-score-banner { gap: 8px; }
  .score-block { padding: 8px 10px; }
  .score-num { font-size: 28px; }
}

/* ═══════════════════════════════════════════════════════
   HERO BANNER
═══════════════════════════════════════════════════════ */
.hero-banner {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: linear-gradient(135deg, #001228 0%, #002147 40%, #1a0010 100%);
  border-bottom: 2px solid var(--dc-red);
}

/* When no image is present, make it taller and richer */
.hero-no-image {
  height: 180px;
  background:
    radial-gradient(ellipse 80% 60% at 20% 50%, rgba(232,19,43,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 80% 50%, rgba(14,51,95,0.8) 0%, transparent 70%),
    linear-gradient(135deg, #001228 0%, #002147 50%, #0a1a30 100%);
}

/* Actual photo */
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* Dark overlay on top of photo so text is always readable */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0,18,40,0.92) 0%,
    rgba(0,18,40,0.75) 40%,
    rgba(0,18,40,0.35) 70%,
    rgba(0,18,40,0.15) 100%
  );
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  gap: 24px;
}

/* Left content block */
.hero-content { display: flex; flex-direction: column; gap: 6px; }

.hero-season-tag {
  display: inline-block;
  background: var(--dc-red);
  color: #fff;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.12em;
  padding: 3px 10px;
  border-radius: 4px;
  width: fit-content;
  box-shadow: 0 2px 8px rgba(232,19,43,0.5);
}

.hero-heading {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 52px);
  color: #fff;
  letter-spacing: 0.06em;
  line-height: 1;
  text-shadow: 0 2px 20px rgba(0,0,0,0.6);
}

.hero-sub {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.04em;
  max-width: 360px;
}

/* Right stats block */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 14px 22px;
  backdrop-filter: blur(8px);
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.hero-stat-num {
  font-family: var(--font-display);
  font-size: 30px;
  color: var(--dc-gold);
  line-height: 1;
}

.hero-stat-label {
  font-size: 9px;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.hero-stat-divider {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,0.12);
}

/* Decorative cricket-field arc in background */
.hero-banner::after {
  content: '';
  position: absolute;
  right: -60px;
  top: 50%;
  transform: translateY(-50%);
  width: 380px;
  height: 380px;
  border-radius: 50%;
  border: 40px solid rgba(232,19,43,0.06);
  pointer-events: none;
}
.hero-banner::before {
  content: '';
  position: absolute;
  right: 60px;
  top: 50%;
  transform: translateY(-50%);
  width: 240px;
  height: 240px;
  border-radius: 50%;
  border: 2px solid rgba(245,197,24,0.08);
  pointer-events: none;
}

@media (max-width: 600px) {
  .hero-banner, .hero-no-image { height: 150px; }
  .hero-overlay { padding: 0 16px; }
  .hero-heading { font-size: 26px; }
  .hero-stats { gap: 12px; padding: 10px 14px; }
  .hero-stat-num { font-size: 22px; }
  .hero-stat-divider { height: 28px; }
  .hero-sub { display: none; }
}

/* ═══════════════════════════════════════════════════════
   VIEW SWITCHER TABS
═══════════════════════════════════════════════════════ */
.view-switcher {
  display: flex;
  gap: 0;
  background: var(--dc-navy);
  border-bottom: 2px solid var(--border);
  padding: 0 20px;
  position: sticky;
  top: 64px; /* below header */
  z-index: 90;
  box-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
.view-tab {
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--dc-muted);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  padding: 12px 20px 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 7px;
  transition: color 0.2s, border-color 0.2s;
  margin-bottom: -2px;
  letter-spacing: 0.02em;
}
.view-tab:hover { color: var(--dc-white); }
.view-tab.active {
  color: var(--dc-gold);
  border-bottom-color: var(--dc-gold);
}
.view-tab-icon { font-size: 16px; }

/* ═══════════════════════════════════════════════════════
   LINEUP VIEW — two-column layout
═══════════════════════════════════════════════════════ */
.lineup-section { overflow: visible; }

.lineup-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 0 0 16px;
}

/* Each column */
.lineup-col {
  border-right: 1px solid var(--border);
  min-width: 0;
}
.lineup-col:last-child { border-right: none; }

.lineup-col-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px 8px;
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 5;
}
.bat-col-hdr  { background: rgba(20,96,168,0.15); color: #7ec8f7; }
.bowl-col-hdr { background: rgba(122,0,0,0.15);   color: #f77e7e; }

.lineup-filled-count {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  color: var(--dc-muted);
  background: var(--surface-3);
  border-radius: 10px;
  padding: 2px 8px;
}

/* Individual lineup rows */
.lineup-rows { display: flex; flex-direction: column; }

.lineup-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  min-height: 44px;
  transition: background 0.15s;
  position: relative;
}
.lineup-row:nth-child(even) { background: rgba(255,255,255,0.015); }
.lineup-row.drag-over-row {
  background: rgba(245,197,24,0.08);
  border-color: rgba(245,197,24,0.3);
}

/* Slot number badge */
.lineup-slot-num {
  font-family: var(--font-display);
  font-size: 15px;
  color: rgba(255,255,255,0.2);
  min-width: 22px;
  text-align: center;
  flex-shrink: 0;
  transition: color 0.2s;
}
.lineup-row.filled .lineup-slot-num { color: var(--dc-red); }

/* Player name in row */
.lineup-player-name {
  flex: 1;
  font-size: 13px;
  font-weight: 600;
  color: var(--dc-white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lineup-row:not(.filled) .lineup-player-name {
  color: rgba(255,255,255,0.2);
  font-weight: 400;
  font-size: 11px;
}

/* OS tag on left of name */
.lineup-os-tag {
  font-size: 7.5px;
  font-weight: 800;
  background: #6b1a00;
  color: #ffb87a;
  border: 1px solid #ffb87a;
  border-radius: 3px;
  padding: 1px 3px;
  flex-shrink: 0;
  line-height: 1;
}

/* Role symbol on right */
.lineup-role-sym { flex-shrink: 0; }

/* Remove button inside filled row */
.lineup-row-remove {
  background: none;
  border: none;
  color: rgba(255,255,255,0.2);
  font-size: 12px;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  flex-shrink: 0;
  transition: color 0.15s, background 0.15s;
  line-height: 1;
}
.lineup-row-remove:hover { color: var(--dc-red); background: rgba(232,19,43,0.1); }

/* Drop hint on empty rows */
.lineup-drop-hint {
  font-size: 10px;
  color: rgba(255,255,255,0.12);
  font-style: italic;
  flex: 1;
}

/* Impact row at bottom of each column */
.lineup-impact-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px 4px;
  border-top: 1px dashed rgba(184,0,168,0.3);
  margin-top: 4px;
}
.lineup-impact-rule {
  font-size: 10px;
  color: var(--dc-muted);
}

.lineup-impact-drop {
  min-height: 44px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border);
  background: rgba(184,0,168,0.05);
  cursor: pointer;
  transition: background 0.15s;
}
.lineup-impact-drop:hover,
.lineup-impact-drop.drag-over-row { background: rgba(184,0,168,0.12); }
.lineup-impact-drop.filled { background: rgba(184,0,168,0.1); }

.lineup-empty-label {
  font-size: 11px;
  color: rgba(255,255,255,0.18);
  font-style: italic;
}

/* Impact filled state */
.lineup-impact-name {
  flex: 1;
  font-size: 13px;
  font-weight: 600;
  color: #e07eda;
}
.lineup-impact-badge {
  font-family: var(--font-display);
  font-size: 11px;
  color: #b800a8;
  letter-spacing: 0.06em;
  min-width: 22px;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════
   PLAYER POOL (Lineup View)
═══════════════════════════════════════════════════════ */
.pool-section { margin-top: 0; }

.pool-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 14px 16px;
}

.pool-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--surface-card);
  border: 1.5px solid var(--border-bright);
  border-radius: 20px;
  padding: 5px 10px 5px 8px;
  cursor: grab;
  font-size: 12px;
  font-weight: 600;
  color: var(--dc-white);
  user-select: none;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s, opacity 0.15s;
  white-space: nowrap;
}
.pool-chip:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.4);
  border-color: rgba(255,255,255,0.3);
}
.pool-chip.dragging { opacity: 0.4; transform: scale(0.95); }
.pool-chip.used-bat  { border-color: rgba(20,96,168,0.6);  background: rgba(20,96,168,0.12); }
.pool-chip.used-bowl { border-color: rgba(180,0,0,0.6);    background: rgba(180,0,0,0.12); }
.pool-chip.used-both { border-color: rgba(245,197,24,0.6); background: rgba(245,197,24,0.06); }

.pool-chip-os {
  font-size: 7px;
  font-weight: 800;
  background: #6b1a00;
  color: #ffb87a;
  border: 1px solid #ffb87a;
  border-radius: 3px;
  padding: 1px 3px;
  line-height: 1;
}
.pool-chip-name { flex: 1; }
.pool-chip-role { flex-shrink: 0; }

/* Usage dots on chips */
.pool-chip-dots { display: flex; gap: 3px; align-items: center; }
.pool-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.pool-dot-bat  { background: #7ec8f7; }
.pool-dot-bowl { background: #f77e7e; }

@media (max-width: 640px) {
  .lineup-columns { grid-template-columns: 1fr; }
  .lineup-col { border-right: none; border-bottom: 2px solid var(--dc-red); }
  .lineup-col:last-child { border-bottom: none; }
  .view-switcher { top: 56px; padding: 0 10px; }
  .view-tab { padding: 10px 12px 8px; font-size: 12px; }
}
