/**
 * Dynasty Nerds Trade Calculator Widget — Roster Browse Layout (v2)
 * All classes tc- prefixed + scoped under .tc-widget for Elementor specificity.
 */

/* ── Container ── */
.tc-widget {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
  max-width: 1200px !important;
  width: calc(100vw - 48px) !important;
  margin: 0 auto !important;
  padding: 32px 16px !important;
  position: relative !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  background: #fff !important;
  border-radius: 16px !important;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08) !important;
  position: relative !important;
  overflow: visible !important;
  box-sizing: border-box !important;
}

.tc-widget *,
.tc-widget *::before,
.tc-widget *::after {
  box-sizing: border-box !important;
}

/* Dark theme */
.tc-widget.tc-dark { background: #1a2f4a !important; box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3) !important; }
.tc-widget.tc-dark .tc-heading { color: #fff !important; }
.tc-widget.tc-dark .tc-subheading { color: #94a3b8 !important; }
.tc-widget.tc-dark .tc-side { background: rgba(255,255,255,0.04) !important; }
.tc-widget.tc-dark .tc-side-label { color: #cbd5e1 !important; }
.tc-widget.tc-dark .tc-search-input {
  background: rgba(255,255,255,0.08) !important;
  border-color: rgba(255,255,255,0.15) !important;
  color: #fff !important;
}
.tc-widget.tc-dark .tc-search-input::placeholder { color: #64748b !important; }
.tc-widget.tc-dark .tc-roster-item { border-color: rgba(255,255,255,0.08) !important; }
.tc-widget.tc-dark .tc-roster-item:hover { background: rgba(255,255,255,0.06) !important; }
.tc-widget.tc-dark .tc-ri-name { color: #e2e8f0 !important; }
.tc-widget.tc-dark .tc-ri-checked { background: rgba(178, 21, 13, 0.12) !important; }
.tc-widget.tc-dark .tc-center { background: rgba(255,255,255,0.03) !important; border-color: rgba(255,255,255,0.1) !important; }
.tc-widget.tc-dark .tc-center-heading { color: #e2e8f0 !important; }
.tc-widget.tc-dark .tc-center-total-value { color: #fff !important; }
.tc-widget.tc-dark .tc-sel-row { background: rgba(255,255,255,0.05) !important; border-color: rgba(255,255,255,0.1) !important; }
.tc-widget.tc-dark .tc-sel-name { color: #e2e8f0 !important; }
.tc-widget.tc-dark .tc-sel-value { color: #94a3b8 !important; }
.tc-widget.tc-dark .tc-rec-row { background: rgba(255,255,255,0.05) !important; border-color: rgba(255,255,255,0.1) !important; }
.tc-widget.tc-dark .tc-selected-header { color: #94a3b8 !important; }
.tc-widget.tc-dark .tc-add-link { color: #94a3b8 !important; }
.tc-widget.tc-dark .tc-verdict { background: rgba(255,255,255,0.05) !important; border-color: rgba(255,255,255,0.1) !important; }
.tc-widget.tc-dark .tc-verdict-label { color: #fff !important; }
.tc-widget.tc-dark .tc-verdict-detail { color: #94a3b8 !important; }
.tc-widget.tc-dark .tc-rec-container { background: rgba(194, 139, 52, 0.1) !important; border-color: rgba(194, 139, 52, 0.3) !important; }
.tc-widget.tc-dark .tc-rec-header { color: #f5c842 !important; }
.tc-widget.tc-dark .tc-rec-row { background: rgba(255,255,255,0.05) !important; border-color: rgba(194, 139, 52, 0.2) !important; }
.tc-widget.tc-dark .tc-rec-name { color: #e2e8f0 !important; }
.tc-widget.tc-dark .tc-rec-arrow { color: #f5c842 !important; }
.tc-widget.tc-dark .tc-empty-state { color: #64748b !important; border-color: rgba(255,255,255,0.08) !important; }
.tc-widget.tc-dark .tc-footer { color: #475569 !important; }
.tc-widget.tc-dark .tc-roster-empty { color: #64748b !important; }

/* ── Header ── */
.tc-widget .tc-header {
  text-align: center !important;
  margin-bottom: 28px !important;
}

.tc-widget .tc-heading {
  font-family: 'Teko', 'Inter', sans-serif !important;
  font-size: 32px !important;
  font-weight: 700 !important;
  color: #1a2f4a !important;
  margin: 0 0 6px 0 !important;
  line-height: 1.1 !important;
  letter-spacing: 0.5px !important;
  text-transform: uppercase !important;
}

.tc-widget .tc-subheading {
  font-size: 15px !important;
  color: #64748b !important;
  margin: 0 !important;
  font-weight: 400 !important;
}

/* ── Trade counter bar (prominent) ── */
.tc-widget .tc-trade-bar {
  display: none;
  width: 100% !important;
  padding: 10px 16px !important;
  border-radius: 10px !important;
  margin-bottom: 16px !important;
  text-align: center !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
}

.tc-widget .tc-trade-bar.tc-trade-bar-free {
  display: block !important;
  background: #f0fdf4 !important;
  border: 1px solid #bbf7d0 !important;
  color: #166534 !important;
}

.tc-widget .tc-trade-bar.tc-trade-bar-low {
  display: block !important;
  background: #fefce8 !important;
  border: 1px solid #fde68a !important;
  color: #854d0e !important;
}

.tc-widget .tc-trade-bar.tc-trade-bar-out {
  display: block !important;
  background: #fef2f2 !important;
  border: 1px solid #fecaca !important;
  color: #991b1b !important;
}

.tc-widget .tc-trade-bar-dots {
  display: inline-flex !important;
  gap: 6px !important;
  margin-left: 8px !important;
  vertical-align: middle !important;
}

.tc-widget .tc-trade-bar-dot {
  width: 10px !important;
  height: 10px !important;
  border-radius: 50% !important;
  display: inline-block !important;
  border: 1.5px solid #cbd5e1 !important;
  background: #fff !important;
  transition: all 0.3s !important;
}

.tc-widget .tc-trade-bar-dot.tc-dot-used {
  background: #B2150D !important;
  border-color: #B2150D !important;
}

.tc-widget .tc-trade-bar-dot.tc-dot-available {
  background: #16a34a !important;
  border-color: #16a34a !important;
}

/* ── Welcome popup ── */
.tc-welcome-backdrop {
  display: none;
  position: fixed !important;
  inset: 0 !important;
  background: rgba(0, 0, 0, 0.5) !important;
  z-index: 99999 !important;
}

.tc-welcome-backdrop.tc-welcome-show {
  display: block !important;
}

.tc-welcome {
  display: none;
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  z-index: 100000 !important;
  background: #fff !important;
  border-radius: 16px !important;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2) !important;
  padding: 28px 28px !important;
  text-align: center !important;
  max-width: 480px !important;
  width: calc(100% - 32px) !important;
  overflow: hidden !important;
}

.tc-welcome.tc-welcome-show {
  display: block !important;
}

.tc-welcome-icon {
  font-size: 40px !important;
  margin-bottom: 6px !important;
}

.tc-welcome-title {
  font-family: 'Teko', 'Inter', sans-serif !important;
  font-size: 30px !important;
  font-weight: 700 !important;
  color: #1a2f4a !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  margin: 0 0 8px 0 !important;
  line-height: 1.2 !important;
}

.tc-welcome-body {
  font-size: 16px !important;
  color: #475569 !important;
  margin: 0 0 16px 0 !important;
  line-height: 1.5 !important;
}

.tc-welcome-body strong {
  color: #1a2f4a !important;
}

.tc-welcome-features {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  margin-bottom: 16px !important;
  text-align: left !important;
  padding: 0 8px !important;
}

.tc-welcome-feature {
  font-size: 15px !important;
  color: #334155 !important;
  font-weight: 500 !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.tc-welcome-check {
  color: #16a34a !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  flex-shrink: 0 !important;
}

.tc-welcome-btn {
  width: 100% !important;
  padding: 12px 24px !important;
  background: #B2150D !important;
  color: #fff !important;
  border: none !important;
  border-radius: 10px !important;
  font-family: 'Teko', 'Inter', sans-serif !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  cursor: pointer !important;
  transition: background 0.2s, transform 0.1s !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  margin-bottom: 10px !important;
}

.tc-welcome-btn:hover {
  background: #931109 !important;
  transform: translateY(-1px) !important;
}

.tc-welcome-footer {
  font-size: 11px !important;
  color: #94a3b8 !important;
  margin: 0 !important;
}

/* ── Three-Column Grid ── */
.tc-widget .tc-grid {
  display: grid !important;
  grid-template-columns: minmax(180px, 1fr) minmax(360px, 2fr) minmax(180px, 1fr) !important;
  gap: 0 !important;
  align-items: start !important;
}

/* ── Side (Roster Columns) ── */
.tc-widget .tc-side {
  min-width: 0 !important;
  padding: 16px 12px !important;
  background: #f8fafc !important;
  border-radius: 12px !important;
}

.tc-widget .tc-side-label {
  font-family: 'Teko', 'Inter', sans-serif !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  color: #1a2f4a !important;
  margin: 0 0 10px 0 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.tc-widget .tc-side-dot {
  width: 10px !important;
  height: 10px !important;
  border-radius: 50% !important;
  display: inline-block !important;
  flex-shrink: 0 !important;
}

.tc-widget .tc-side-a .tc-side-dot { background: #B2150D !important; }
.tc-widget .tc-side-b .tc-side-dot { background: #16a34a !important; }

/* ── Search ── */
.tc-widget .tc-search-wrap {
  position: relative !important;
  margin-bottom: 10px !important;
}

.tc-widget .tc-search-input {
  width: 100% !important;
  padding: 9px 12px 9px 34px !important;
  border: 2px solid #e2e8f0 !important;
  border-radius: 10px !important;
  font-size: 13px !important;
  font-family: inherit !important;
  outline: none !important;
  transition: border-color 0.2s !important;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") 10px center no-repeat !important;
  color: #1e293b !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}

.tc-widget .tc-search-input:focus {
  border-color: #B2150D !important;
  background-color: #fff !important;
}

.tc-widget .tc-search-input::placeholder {
  color: #94a3b8 !important;
}

/* ── Position Filter Tabs ── */
.tc-widget .tc-pos-tabs {
  display: flex !important;
  gap: 0 !important;
  padding: 4px 0 !important;
  border-bottom: 1px solid #e2e8f0 !important;
}
.tc-widget .tc-pos-tab {
  flex: 1 !important;
  padding: 5px 0 !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.5px !important;
  text-transform: uppercase !important;
  color: #94a3b8 !important;
  background: transparent !important;
  border: none !important;
  border-bottom: 2px solid transparent !important;
  cursor: pointer !important;
  transition: color 0.15s, border-color 0.15s !important;
  font-family: 'Inter', sans-serif !important;
}
.tc-widget .tc-pos-tab:hover {
  color: #1e293b !important;
}
.tc-widget .tc-pos-tab-active {
  color: #B2150D !important;
  border-bottom-color: #B2150D !important;
}

/* ── Roster (scrollable player list) ── */
.tc-widget .tc-roster {
  max-height: 500px !important;
  overflow-y: auto !important;
  display: flex !important;
  flex-direction: column !important;
}

/* Custom scrollbar */
.tc-widget .tc-roster::-webkit-scrollbar {
  width: 5px !important;
}
.tc-widget .tc-roster::-webkit-scrollbar-track {
  background: transparent !important;
}
.tc-widget .tc-roster::-webkit-scrollbar-thumb {
  background: #cbd5e1 !important;
  border-radius: 4px !important;
}
.tc-widget .tc-roster::-webkit-scrollbar-thumb:hover {
  background: #94a3b8 !important;
}

.tc-widget .tc-roster-empty {
  padding: 20px 12px !important;
  text-align: center !important;
  color: #94a3b8 !important;
  font-size: 13px !important;
}

/* ── Roster Item ── */
.tc-widget .tc-roster-item {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 8px 8px !important;
  cursor: pointer !important;
  transition: background 0.15s !important;
  border-bottom: 1px solid #edf0f3 !important;
  font-size: 13px !important;
  margin: 0 !important;
  user-select: none !important;
  -webkit-user-select: none !important;
}

.tc-widget .tc-roster-item:last-child {
  border-bottom: none !important;
}

.tc-widget .tc-roster-item:hover {
  background: rgba(0, 0, 0, 0.03) !important;
}

.tc-widget .tc-roster-item.tc-ri-checked {
  background: rgba(178, 21, 13, 0.06) !important;
}

.tc-widget .tc-roster-item.tc-ri-disabled {
  opacity: 0.4 !important;
  cursor: not-allowed !important;
}

/* Checkbox */
.tc-widget .tc-ri-checkbox {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  min-height: 18px !important;
  flex-shrink: 0 !important;
  accent-color: #B2150D !important;
  cursor: pointer !important;
  margin: 0 !important;
}

.tc-widget .tc-ri-disabled .tc-ri-checkbox {
  cursor: not-allowed !important;
}

/* Headshot in roster item */
.tc-widget .tc-ri-headshot {
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  background: #e2e8f0 !important;
  flex-shrink: 0 !important;
}

.tc-widget .tc-ri-initials {
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  display: none;
  align-items: center !important;
  justify-content: center !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  color: #fff !important;
  flex-shrink: 0 !important;
  letter-spacing: 0.5px !important;
}

.tc-widget .tc-ri-info {
  flex: 1 !important;
  min-width: 0 !important;
  display: block !important;
  text-align: left !important;
}

.tc-widget .tc-ri-name {
  display: block !important;
  font-weight: 600 !important;
  color: #1e293b !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  font-size: 13px !important;
  line-height: 1.3 !important;
  margin-bottom: 2px !important;
}

.tc-widget .tc-ri-badge {
  display: inline-block !important;
  padding: 4px 7px !important;
  border-radius: 4px !important;
  font-size: 9px !important;
  font-weight: 700 !important;
  letter-spacing: 0.5px !important;
  line-height: 1 !important;
}

/* ── Combo Badge (brand standard — team color | accent divider | position) ── */
.tc-widget .tc-combo-badge,
.tc-widget .tc-ri-info .tc-combo-badge,
.tc-widget .tc-sel-info .tc-combo-badge {
  display: inline-flex !important;
  align-items: stretch !important;
  border-radius: 4px !important;
  overflow: hidden !important;
  font-size: 9px !important;
  font-weight: 800 !important;
  letter-spacing: 0.4px !important;
  line-height: 1 !important;
  flex-shrink: 0 !important;
  height: 18px !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
}
.tc-widget .tc-combo-team,
.tc-widget .tc-ri-info .tc-combo-team,
.tc-widget .tc-sel-info .tc-combo-team {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 4px !important;
  font-weight: 800 !important;
  font-size: 9px !important;
  letter-spacing: 0.4px !important;
  min-width: 26px !important;
  border: none !important;
  margin: 0 !important;
}
.tc-widget .tc-combo-divider,
.tc-widget .tc-ri-info .tc-combo-divider,
.tc-widget .tc-sel-info .tc-combo-divider {
  width: 2px !important;
  flex-shrink: 0 !important;
  display: block !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
.tc-widget .tc-combo-pos,
.tc-widget .tc-ri-info .tc-combo-pos,
.tc-widget .tc-sel-info .tc-combo-pos {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 4px !important;
  background: #cbd5e1 !important;
  color: #1e293b !important;
  font-weight: 800 !important;
  font-size: 9px !important;
  letter-spacing: 0.4px !important;
  min-width: 22px !important;
  border: none !important;
  margin: 0 !important;
}
.tc-widget .tc-ri-value {
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #1e293b !important;
  flex-shrink: 0 !important;
  margin-left: auto !important;
}
.tc-widget.tc-dark .tc-ri-value { color: #94a3b8 !important; }

/* ── Center Column ── */
.tc-widget .tc-center {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  padding: 16px 16px !important;
  border-left: 1px solid #e2e8f0 !important;
  border-right: 1px solid #e2e8f0 !important;
  min-height: 300px !important;
  position: relative !important;
  background: #fff !important;
}

.tc-widget .tc-center-heading {
  font-family: 'Teko', 'Inter', sans-serif !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  color: #1a2f4a !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  margin: 0 0 16px 0 !important;
  text-align: center !important;
}

/* ── Center Totals Bar ── */
.tc-widget .tc-center-totals {
  display: none !important;
  width: 100% !important;
  justify-content: space-between !important;
  align-items: center !important;
  margin-bottom: 16px !important;
  padding: 10px 12px !important;
  background: #f8fafc !important;
  border-radius: 10px !important;
  border: 1px solid #e9ecef !important;
}

.tc-widget .tc-center-total {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 2px !important;
}

.tc-widget .tc-total-label {
  font-size: 10px !important;
  font-weight: 600 !important;
  color: #94a3b8 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
}

.tc-widget .tc-total-val-row {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.tc-widget .tc-center-total-a .tc-side-dot { background: #B2150D !important; }
.tc-widget .tc-center-total-b .tc-side-dot { background: #16a34a !important; }

.tc-widget .tc-center-total-value {
  font-size: 20px !important;
  font-weight: 700 !important;
  color: #fff !important;
  font-family: 'Teko', 'Inter', sans-serif !important;
}

.tc-widget .tc-center-total-arrow {
  font-size: 16px !important;
  color: #94a3b8 !important;
  flex-shrink: 0 !important;
}

/* ── Selected Players Row (side by side) ── */
.tc-widget .tc-selected-row {
  display: flex !important;
  gap: 12px !important;
  width: 100% !important;
  margin-bottom: 12px !important;
}

/* ── Per-column total row (dark container, light text — inspiration style) ── */
.tc-widget .tc-col-total {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 8px 12px !important;
  background: #1a2f4a !important;
  border: none !important;
  border-radius: 8px !important;
  margin-bottom: 8px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #fff !important;
}
.tc-widget .tc-col-total-label {
  font-size: 11px !important;
  font-weight: 600 !important;
  color: #94a3b8 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.3px !important;
}
.tc-widget .tc-col-total .tc-side-dot {
  width: 8px !important;
  height: 8px !important;
  border-radius: 50% !important;
  flex-shrink: 0 !important;
}
.tc-widget .tc-col-total-a .tc-side-dot { background: #B2150D !important; }
.tc-widget .tc-col-total-b .tc-side-dot { background: #16a34a !important; }
.tc-widget .tc-col-total-arrow {
  margin-left: auto !important;
  font-size: 14px !important;
  color: rgba(255,255,255,0.5) !important;
}
.tc-widget .tc-col-total-b .tc-col-total-arrow {
  margin-left: 0 !important;
  margin-right: auto !important;
}

/* ── Selected Players Columns ── */
.tc-widget .tc-selected-a,
.tc-widget .tc-selected-b {
  flex: 1 1 0% !important;
  min-width: 0 !important;
}

/* ── Selected Players Section ── */
.tc-widget .tc-selected-section {
  min-width: 0 !important;
  margin-bottom: 0 !important;
}

.tc-widget .tc-selected-header {
  font-size: 11px !important;
  font-weight: 700 !important;
  color: #64748b !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  margin: 0 0 6px 0 !important;
}

.tc-widget .tc-selected-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
}

.tc-widget .tc-sel-row {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 8px 10px !important;
  background: #f8fafc !important;
  border: 1px solid #edf0f3 !important;
  border-radius: 8px !important;
  font-size: 13px !important;
}

/* Headshot in selected player */
.tc-widget .tc-sel-headshot {
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  background: #e2e8f0 !important;
  flex-shrink: 0 !important;
}

.tc-widget .tc-sel-initials {
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  color: #fff !important;
  flex-shrink: 0 !important;
}
/* Hide initials when headshot sibling is visible */
.tc-widget .tc-sel-headshot + .tc-sel-initials {
  display: none !important;
}

.tc-widget .tc-sel-info {
  flex: 1 !important;
  min-width: 0 !important;
  text-align: left !important;
}

.tc-widget .tc-sel-name {
  display: block !important;
  font-weight: 600 !important;
  color: #1e293b !important;
  font-size: 13px !important;
  line-height: 1.3 !important;
}

.tc-widget .tc-sel-badge {
  display: inline-block !important;
  padding: 4px 6px !important;
  border-radius: 4px !important;
  font-size: 9px !important;
  font-weight: 700 !important;
  letter-spacing: 0.5px !important;
  line-height: 1 !important;
  margin-top: 2px !important;
}

.tc-widget .tc-sel-info-right {
  text-align: right !important;
}

.tc-widget .tc-sel-info-right .tc-sel-badge {
  margin-left: auto !important;
}

.tc-widget .tc-sel-val-col {
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  flex-shrink: 0 !important;
}

.tc-widget .tc-sel-value {
  color: #475569 !important;
  font-weight: 700 !important;
  font-family: 'Teko', 'Inter', sans-serif !important;
  font-size: 16px !important;
}

.tc-widget .tc-sel-arrow {
  font-size: 14px !important;
  font-weight: 600 !important;
}

.tc-widget .tc-sel-arrow-a {
  color: #B2150D !important;
}

.tc-widget .tc-sel-arrow-b {
  color: #16a34a !important;
}

/* ── Mobile-only initial "Add Player" buttons (hidden on desktop) ── */
.tc-widget .tc-mobile-add-row {
  display: none !important;
}

/* "+ Add Another Player" link */
.tc-widget .tc-add-link {
  background: none !important;
  border: none !important;
  color: #B2150D !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  padding: 6px 0 !important;
  font-family: inherit !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  text-align: left !important;
  transition: color 0.15s !important;
}

.tc-widget .tc-add-link:hover {
  color: #931109 !important;
  text-decoration: underline !important;
}

/* ── Recommended Adds (center column, under losing team) ── */
.tc-widget .tc-recommended-center {
  display: none !important;
  width: 100% !important;
  margin-bottom: 14px !important;
}

.tc-widget .tc-rec-container {
  background: #fef9f0 !important;
  border: 1px solid #fde68a !important;
  border-radius: 10px !important;
  padding: 12px !important;
}

.tc-widget .tc-rec-header {
  font-size: 11px !important;
  font-weight: 700 !important;
  color: #92400e !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  margin: 0 0 8px 0 !important;
}

.tc-widget .tc-rec-row {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 6px 8px !important;
  background: #fff !important;
  border: 1px solid #fde68a !important;
  border-radius: 8px !important;
  margin-bottom: 4px !important;
}

.tc-widget .tc-rec-row:last-child {
  margin-bottom: 0 !important;
}

.tc-widget .tc-rec-info {
  flex: 1 !important;
  min-width: 0 !important;
  text-align: left !important;
}

.tc-widget .tc-rec-name {
  display: block !important;
  font-weight: 600 !important;
  color: #1e293b !important;
  font-size: 13px !important;
  line-height: 1.3 !important;
  margin-bottom: 2px !important;
}

.tc-widget .tc-rec-badge {
  display: inline-block !important;
  padding: 3px 6px !important;
  border-radius: 4px !important;
  font-size: 9px !important;
  font-weight: 700 !important;
  letter-spacing: 0.5px !important;
  line-height: 1 !important;
}

.tc-widget .tc-rec-headshot {
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  background: #e2e8f0 !important;
  flex-shrink: 0 !important;
}

.tc-widget .tc-rec-initials {
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  display: none;
  align-items: center !important;
  justify-content: center !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  color: #fff !important;
  flex-shrink: 0 !important;
}

.tc-widget .tc-rec-value {
  font-family: 'Teko', 'Inter', sans-serif !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #475569 !important;
  flex-shrink: 0 !important;
}

.tc-widget .tc-rec-arrow {
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #92400e !important;
  flex-shrink: 0 !important;
}

/* ── Blur behavior ── */
.tc-widget .tc-blurred {
  filter: blur(6px) !important;
  -webkit-filter: blur(6px) !important;
  user-select: none !important;
  -webkit-user-select: none !important;
  pointer-events: none !important;
}

/* ── Hidden values (shown as dash until Compare) ── */
.tc-widget .tc-value-hidden {
  color: #94a3b8 !important;
  font-style: normal !important;
  user-select: none !important;
}

/* ── Sign-in trade bar ── */
.tc-widget .tc-trade-bar.tc-trade-bar-signin {
  display: block !important;
  background: #eff6ff !important;
  color: #1e40af !important;
  font-weight: 600 !important;
}

/* ── Gated compare button (logged-out) ── */
.tc-widget .tc-compare-btn.tc-compare-gated {
  background: #1a2f4a !important;
  color: #fff !important;
  cursor: pointer !important;
  opacity: 1 !important;
}
.tc-widget .tc-compare-btn.tc-compare-gated:hover {
  background: #0f1f33 !important;
}

/* ── Verdict ── */
.tc-widget .tc-verdict {
  width: 100% !important;
  padding: 16px !important;
  background: #eef2f7 !important;
  border: 1px solid #dce3ec !important;
  border-radius: 12px !important;
  text-align: center !important;
  opacity: 0 !important;
  transform: translateY(10px) !important;
  transition: opacity 0.3s, transform 0.3s !important;
  pointer-events: none !important;
  max-height: 0 !important;
  overflow: hidden !important;
  margin-bottom: 0 !important;
}

.tc-widget .tc-verdict.tc-visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
  pointer-events: auto !important;
  max-height: 500px !important;
  overflow: visible !important;
  margin-bottom: 14px !important;
}

.tc-widget .tc-verdict-label {
  font-family: 'Teko', 'Inter', sans-serif !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  margin-bottom: 2px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  color: #1a2f4a !important;
}

.tc-widget .tc-verdict-detail {
  font-size: 12px !important;
  color: #64748b !important;
  margin-bottom: 10px !important;
  line-height: 1.4 !important;
}

.tc-widget .tc-verdict-points {
  font-weight: 700 !important;
  color: #1a2f4a !important;
}

.tc-widget .tc-verdict-bar {
  height: 8px !important;
  border-radius: 4px !important;
  overflow: hidden !important;
  margin: 8px 0 !important;
  position: relative !important;
}

.tc-widget .tc-verdict-bar-bg {
  position: absolute !important;
  inset: 0 !important;
  background: #B2150D;
  border-radius: 4px !important;
}

.tc-widget .tc-verdict-bar-fill {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  height: 100% !important;
  background: #1a2f4a;
  border-radius: 4px !important;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1) !important;
  width: 50%;
}

.tc-widget .tc-verdict-bar-labels {
  display: flex !important;
  justify-content: space-between !important;
  font-size: 10px !important;
  color: #94a3b8 !important;
  font-weight: 500 !important;
}

/* ── Compare Button ── */
.tc-widget .tc-compare-btn {
  width: 100% !important;
  padding: 10px 12px !important;
  background: #B2150D !important;
  color: #fff !important;
  border: none !important;
  border-radius: 10px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  font-family: 'Teko', 'Inter', sans-serif !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  cursor: pointer !important;
  transition: background 0.2s, transform 0.1s !important;
  line-height: 1.2 !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  margin-bottom: 6px !important;
  white-space: nowrap !important;
}

.tc-widget .tc-compare-btn:hover:not([disabled]) {
  background: #931109 !important;
  transform: translateY(-1px) !important;
}

.tc-widget .tc-compare-btn[disabled] {
  opacity: 0.4 !important;
  cursor: not-allowed !important;
}

.tc-widget .tc-reset-link {
  background: none !important;
  border: none !important;
  color: #94a3b8 !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  text-decoration: underline !important;
  font-family: inherit !important;
  padding: 4px 8px !important;
  transition: color 0.15s !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  margin-bottom: 16px !important;
}

.tc-widget .tc-reset-link:hover {
  color: #64748b !important;
}

/* ── CTA Banner ── */
.tc-widget .tc-cta-banner {
  display: none !important;
  margin-top: 4px !important;
  padding: 14px 16px !important;
  background: #fef9f0 !important;
  border: 1px solid #fde68a !important;
  border-radius: 10px !important;
  text-align: center !important;
  transition: all 0.3s !important;
  width: 100% !important;
}

.tc-widget .tc-cta-banner.tc-cta-visible {
  display: block !important;
}

.tc-widget .tc-cta-banner.tc-cta-prominent {
  background: linear-gradient(135deg, #1a2f4a 0%, #2d4a6f 100%) !important;
  border-color: transparent !important;
  padding: 20px 16px !important;
}

.tc-widget .tc-cta-headline {
  display: none !important;
  font-family: 'Teko', 'Inter', sans-serif !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #fff !important;
  margin: 0 0 4px 0 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  line-height: 1.2 !important;
}

.tc-widget .tc-cta-banner.tc-cta-prominent .tc-cta-headline {
  display: block !important;
}

.tc-widget .tc-cta-text {
  font-size: 11px !important;
  color: #92400e !important;
  margin: 0 0 8px 0 !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
  word-wrap: break-word !important;
}

.tc-widget .tc-cta-banner.tc-cta-prominent .tc-cta-text {
  color: #e2e8f0 !important;
  font-size: 13px !important;
}

.tc-widget .tc-cta-btn {
  display: inline-block !important;
  padding: 8px 20px !important;
  background: #B2150D !important;
  color: #fff !important;
  text-decoration: none !important;
  border-radius: 8px !important;
  font-family: 'Teko', 'Inter', sans-serif !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  transition: background 0.2s, transform 0.1s !important;
}

.tc-widget .tc-cta-btn:hover {
  background: #931109 !important;
  transform: translateY(-1px) !important;
  color: #fff !important;
  text-decoration: none !important;
}

.tc-widget .tc-cta-banner.tc-cta-prominent .tc-cta-btn {
  padding: 10px 28px !important;
  font-size: 16px !important;
}

/* ── Lock overlay ── */
.tc-widget .tc-lock-overlay {
  display: none !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 100 !important;
  background: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  padding: 40px 24px !important;
  border-radius: 16px !important;
}

.tc-widget .tc-lock-overlay.tc-visible {
  display: flex !important;
}

.tc-widget.tc-dark .tc-lock-overlay {
  background: rgba(26, 47, 74, 0.9) !important;
}

.tc-widget .tc-lock-icon { font-size: 48px !important; margin-bottom: 16px !important; }

.tc-widget .tc-lock-heading {
  font-family: 'Teko', 'Inter', sans-serif !important;
  font-size: 28px !important;
  font-weight: 700 !important;
  color: #1a2f4a !important;
  margin: 0 0 8px 0 !important;
  text-transform: uppercase !important;
}
.tc-widget.tc-dark .tc-lock-heading { color: #fff !important; }

.tc-widget .tc-lock-body {
  font-size: 15px !important;
  color: #64748b !important;
  margin: 0 0 20px 0 !important;
  max-width: 320px !important;
  line-height: 1.5 !important;
}
.tc-widget.tc-dark .tc-lock-body { color: #94a3b8 !important; }

.tc-widget .tc-lock-cta {
  display: inline-block !important;
  padding: 14px 36px !important;
  background: #B2150D !important;
  color: #fff !important;
  text-decoration: none !important;
  border-radius: 10px !important;
  font-family: 'Teko', 'Inter', sans-serif !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  transition: background 0.2s, transform 0.1s !important;
}

.tc-widget .tc-lock-cta:hover {
  background: #931109 !important;
  transform: translateY(-1px) !important;
  color: #fff !important;
  text-decoration: none !important;
}

/* ── Footer ── */
.tc-widget .tc-footer {
  text-align: center !important;
  margin-top: 20px !important;
  font-size: 12px !important;
  color: #94a3b8 !important;
}

.tc-widget .tc-footer-link {
  color: #B2150D !important;
  text-decoration: underline !important;
  font-weight: 600 !important;
  transition: color 0.15s !important;
}

.tc-widget .tc-footer-link:hover {
  color: #931109 !important;
}

/* ── Mobile Modal (hidden by default, shown on mobile) ── */
.tc-modal-backdrop {
  display: none;
  position: fixed !important;
  inset: 0 !important;
  background: rgba(0, 0, 0, 0.5) !important;
  z-index: 9998 !important;
  opacity: 0 !important;
  transition: opacity 0.25s !important;
}

.tc-modal-backdrop.tc-modal-open {
  display: block !important;
  opacity: 1 !important;
}

.tc-modal {
  display: none;
  position: fixed !important;
  left: 8px !important;
  right: 8px !important;
  top: 50% !important;
  bottom: auto !important;
  transform: translateY(-50%) !important;
  z-index: 9999 !important;
  background: #fff !important;
  border-radius: 16px !important;
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.25) !important;
  flex-direction: column !important;
  overflow: hidden !important;
}

.tc-modal.tc-modal-open {
  display: flex !important;
}

.tc-modal-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 14px 16px !important;
  background: #fff !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

.tc-modal-title {
  font-family: 'Teko', 'Inter', sans-serif !important;
  font-size: 22px !important;
  font-weight: 700 !important;
  color: #1a2f4a !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  margin: 0 !important;
}

.tc-modal-close {
  background: none !important;
  border: none !important;
  font-size: 28px !important;
  color: #64748b !important;
  cursor: pointer !important;
  padding: 0 4px !important;
  line-height: 1 !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}

/* ── Modal position filter tabs ── */
.tc-modal-pos-tabs {
  display: flex !important;
  gap: 0 !important;
  padding: 8px 12px !important;
  border-bottom: 1px solid #e2e8f0 !important;
  background: #f8fafc !important;
  flex-shrink: 0 !important;
  overflow-x: auto !important;
}

.tc-modal-pos-tab {
  flex: 1 1 0% !important;
  padding: 6px 4px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  font-family: inherit !important;
  color: #64748b !important;
  background: none !important;
  border: 0 none !important;
  border-top: none !important;
  border-left: none !important;
  border-right: none !important;
  border-bottom: 2px solid transparent !important;
  border-radius: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  cursor: pointer !important;
  text-align: center !important;
  white-space: nowrap !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  transition: color 0.15s, border-color 0.15s !important;
}

.tc-modal-pos-tab:active,
.tc-modal-pos-tab:focus {
  color: #1e293b !important;
  outline: none !important;
  box-shadow: none !important;
}

.tc-modal-pos-tab.tc-modal-pos-active {
  color: #B2150D !important;
  border-bottom: 2px solid #B2150D !important;
}

.tc-modal-search-wrap {
  padding: 10px 16px !important;
  border-bottom: 1px solid #e2e8f0 !important;
  background: #fff !important;
  flex-shrink: 0 !important;
}

.tc-modal .tc-search-input {
  width: 100% !important;
  padding: 9px 12px 9px 34px !important;
  border: 2px solid #e2e8f0 !important;
  border-radius: 10px !important;
  font-size: 13px !important;
  font-family: inherit !important;
  outline: none !important;
  transition: border-color 0.2s !important;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") 10px center no-repeat !important;
  color: #1e293b !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}

.tc-modal .tc-search-input:focus {
  border-color: #B2150D !important;
  background-color: #fff !important;
}

.tc-modal .tc-search-input::placeholder {
  color: #94a3b8 !important;
}

.tc-modal-roster {
  height: 330px !important;
  max-height: 330px !important;
  min-height: 330px !important;
  overflow-y: auto !important;
  padding: 0 16px !important;
  -webkit-overflow-scrolling: touch !important;
}

/* Modal inherits font/box-sizing since it's on document.body */
.tc-modal,
.tc-modal *,
.tc-modal *::before,
.tc-modal *::after {
  box-sizing: border-box !important;
}

.tc-modal {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

/* Roster items inside modal — larger touch targets */
.tc-modal-roster .tc-roster-item {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 12px 8px !important;
  cursor: pointer !important;
  transition: background 0.15s !important;
  border-bottom: 1px solid #edf0f3 !important;
  font-size: 14px !important;
  margin: 0 !important;
  user-select: none !important;
  -webkit-user-select: none !important;
}

.tc-modal-roster .tc-roster-item:last-child {
  border-bottom: none !important;
}

.tc-modal-roster .tc-roster-item:hover {
  background: rgba(0, 0, 0, 0.03) !important;
}

.tc-modal-roster .tc-roster-item.tc-ri-checked {
  background: rgba(178, 21, 13, 0.06) !important;
}

.tc-modal-roster .tc-roster-item.tc-ri-disabled {
  opacity: 0.4 !important;
  cursor: not-allowed !important;
}

.tc-modal-roster .tc-ri-checkbox {
  width: 24px !important;
  height: 24px !important;
  min-width: 24px !important;
  min-height: 24px !important;
  flex-shrink: 0 !important;
  accent-color: #B2150D !important;
  cursor: pointer !important;
  margin: 0 !important;
}

.tc-modal-roster .tc-ri-headshot {
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  background: #e2e8f0 !important;
  flex-shrink: 0 !important;
}

.tc-modal-roster .tc-ri-initials {
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  display: none;
  align-items: center !important;
  justify-content: center !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  color: #fff !important;
  flex-shrink: 0 !important;
  letter-spacing: 0.5px !important;
}

.tc-modal-roster .tc-ri-info {
  flex: 1 !important;
  min-width: 0 !important;
  display: block !important;
  text-align: left !important;
}

.tc-modal-roster .tc-ri-name {
  display: block !important;
  font-weight: 600 !important;
  color: #1e293b !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  font-size: 14px !important;
  line-height: 1.3 !important;
  margin-bottom: 2px !important;
}

.tc-modal-roster .tc-ri-badge {
  display: inline-block !important;
  padding: 4px 7px !important;
  border-radius: 4px !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: 0.5px !important;
  line-height: 1 !important;
}

.tc-modal-roster .tc-combo-badge {
  display: inline-flex !important;
  align-items: stretch !important;
  border-radius: 4px !important;
  overflow: hidden !important;
  font-size: 9px !important;
  font-weight: 800 !important;
  letter-spacing: 0.4px !important;
  line-height: 1 !important;
  flex-shrink: 0 !important;
  height: 18px !important;
}
.tc-modal-roster .tc-combo-team {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 5px !important;
  font-weight: 800 !important;
  font-size: 9px !important;
  letter-spacing: 0.4px !important;
  min-width: 26px !important;
}
.tc-modal-roster .tc-combo-divider {
  width: 2px !important;
  flex-shrink: 0 !important;
}
.tc-modal-roster .tc-combo-pos {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 5px !important;
  background: #cbd5e1 !important;
  color: #1e293b !important;
  font-weight: 800 !important;
  font-size: 9px !important;
  letter-spacing: 0.4px !important;
  min-width: 22px !important;
}

.tc-modal-roster .tc-ri-disabled .tc-ri-checkbox {
  cursor: not-allowed !important;
}

.tc-modal-footer {
  padding: 12px 16px !important;
  padding-bottom: max(12px, env(safe-area-inset-bottom)) !important;
  border-top: 1px solid #e2e8f0 !important;
  flex-shrink: 0 !important;
  background: #fff !important;
}

.tc-modal-done {
  width: 100% !important;
  padding: 12px !important;
  background: #B2150D !important;
  color: #fff !important;
  border: none !important;
  border-radius: 10px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  font-family: 'Teko', 'Inter', sans-serif !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  cursor: pointer !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}

.tc-modal-done:hover {
  background: #931109 !important;
}

/* ── Responsive: Tablet (≤ 900px) ── */
@media (max-width: 900px) {
  .tc-widget {
    width: calc(100vw - 32px) !important;
    padding: 24px 14px !important;
  }

  .tc-widget .tc-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
  }

  .tc-widget .tc-center {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    border-left: none !important;
    border-right: none !important;
    border-top: 1px solid #e2e8f0 !important;
    padding: 16px 0 0 0 !important;
    min-height: auto !important;
  }

  .tc-widget .tc-side-a {
    grid-row: 1 !important;
    grid-column: 1 !important;
  }

  .tc-widget .tc-side-b {
    grid-row: 1 !important;
    grid-column: 2 !important;
  }

  .tc-widget .tc-roster {
    max-height: 350px !important;
  }
}

/* ── Responsive: Mobile (≤ 640px) ── */
@media (max-width: 640px) {
  .tc-widget {
    width: calc(100vw - 16px) !important;
    padding: 16px 10px !important;
    border-radius: 12px !important;
  }

  .tc-widget .tc-trade-bar {
    font-size: 12px !important;
    padding: 8px 12px !important;
    margin-bottom: 12px !important;
  }

  .tc-welcome {
    padding: 18px 14px !important;
    max-width: calc(100% - 12px) !important;
    border-radius: 12px !important;
  }

  .tc-welcome-title {
    font-size: 20px !important;
  }

  .tc-welcome-body {
    font-size: 14px !important;
    margin: 0 0 10px 0 !important;
  }

  .tc-welcome-features {
    gap: 4px !important;
    margin-bottom: 12px !important;
  }

  .tc-welcome-feature {
    font-size: 14px !important;
  }

  .tc-welcome-btn {
    padding: 10px 20px !important;
    font-size: 14px !important;
  }

  .tc-welcome-footer {
    font-size: 10px !important;
    margin-top: 8px !important;
  }

  .tc-widget .tc-header {
    margin-bottom: 16px !important;
  }

  .tc-widget .tc-heading {
    font-size: 24px !important;
  }

  .tc-widget .tc-subheading {
    font-size: 13px !important;
  }

  /* Hide side columns — modal replaces them */
  .tc-widget .tc-side {
    display: none !important;
  }

  /* Center takes full width, no grid */
  .tc-widget .tc-grid {
    display: block !important;
  }

  .tc-widget .tc-center {
    border-left: none !important;
    border-right: none !important;
    padding: 0 !important;
    min-height: auto !important;
    align-items: stretch !important;
    width: 100% !important;
  }

  .tc-widget .tc-mobile-add-row,
  .tc-widget .tc-selected-row {
    width: 100% !important;
    align-self: stretch !important;
  }

  .tc-widget .tc-center-heading {
    font-size: 20px !important;
  }

  .tc-widget .tc-selected-header {
    font-size: 12px !important;
  }

  /* Keep selected players side by side on mobile — full width 50/50 */
  .tc-widget .tc-selected-row {
    flex-direction: row !important;
    gap: 8px !important;
    width: 100% !important;
  }

  .tc-widget .tc-selected-a,
  .tc-widget .tc-selected-b {
    flex: 1 1 50% !important;
    max-width: 50% !important;
  }

  .tc-widget .tc-col-total {
    width: 100% !important;
  }

  /* Selected player cards — readable on mobile */
  .tc-widget .tc-sel-row {
    padding: 7px 6px !important;
    gap: 6px !important;
  }

  .tc-widget .tc-sel-headshot,
  .tc-widget .tc-sel-initials {
    width: 32px !important;
    height: 32px !important;
  }

  .tc-widget .tc-sel-name {
    font-size: 13px !important;
  }

  .tc-widget .tc-sel-badge {
    font-size: 9px !important;
    padding: 3px 6px !important;
  }

  .tc-widget .tc-sel-value {
    font-size: 15px !important;
  }

  .tc-widget .tc-sel-arrow {
    font-size: 13px !important;
  }

  /* Mobile-only initial add row — mirrors the selected player layout */
  .tc-widget .tc-mobile-add-row {
    display: flex !important;
    gap: 8px !important;
    margin-bottom: 12px !important;
  }

  .tc-widget .tc-mobile-add-col {
    flex: 1 1 0% !important;
    min-width: 0 !important;
  }

  /* Hide mobile add row once both sides have players (JS adds this class) */
  .tc-widget .tc-mobile-add-row.tc-hidden {
    display: none !important;
  }

  /* "+ Add Player" becomes a prominent button on mobile */
  .tc-widget .tc-add-link {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    padding: 10px 8px !important;
    background: #f1f5f9 !important;
    border: 1px dashed #cbd5e1 !important;
    border-radius: 8px !important;
    color: #64748b !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    margin-top: 6px !important;
  }

  /* Center heading */
  .tc-widget .tc-center-heading {
    font-size: 18px !important;
  }

  /* Totals bar compact */
  .tc-widget .tc-center-totals {
    padding: 8px 8px !important;
  }

  .tc-widget .tc-center-total-value {
    font-size: 19px !important;
  }

  .tc-widget .tc-total-label {
    font-size: 10px !important;
  }

  /* Verdict */
  .tc-widget .tc-verdict {
    padding: 12px !important;
  }

  .tc-widget .tc-verdict-label {
    font-size: 20px !important;
  }

  .tc-widget .tc-verdict-detail {
    font-size: 12px !important;
  }

  /* Compare button full width */
  .tc-widget .tc-compare-btn {
    font-size: 15px !important;
    padding: 12px 20px !important;
  }

  .tc-widget .tc-reset-link {
    width: 100% !important;
    text-align: center !important;
  }

  /* CTA banner compact */
  .tc-widget .tc-cta-banner {
    padding: 12px !important;
  }

  .tc-widget .tc-cta-text {
    font-size: 11px !important;
  }

  .tc-widget .tc-cta-btn {
    font-size: 13px !important;
    padding: 8px 16px !important;
  }

  /* Lock overlay responsive */
  .tc-widget .tc-lock-heading {
    font-size: 22px !important;
  }

  .tc-widget .tc-lock-body {
    font-size: 13px !important;
    max-width: 280px !important;
  }

  .tc-widget .tc-lock-cta {
    padding: 12px 28px !important;
    font-size: 16px !important;
  }

  /* Footer */
  .tc-widget .tc-footer {
    font-size: 11px !important;
    margin-top: 14px !important;
  }
}

/* ── Responsive: Small phones (≤ 400px) ── */
@media (max-width: 400px) {
  .tc-widget {
    width: calc(100vw - 8px) !important;
    padding: 12px 8px !important;
    border-radius: 10px !important;
  }

  .tc-widget .tc-heading {
    font-size: 20px !important;
  }

  .tc-widget .tc-sel-row {
    padding: 5px 4px !important;
    gap: 4px !important;
  }

  .tc-widget .tc-sel-headshot,
  .tc-widget .tc-sel-initials {
    width: 28px !important;
    height: 28px !important;
  }

  .tc-widget .tc-sel-name {
    font-size: 12px !important;
  }

  .tc-widget .tc-sel-value {
    font-size: 14px !important;
  }

  .tc-widget .tc-center-total-value {
    font-size: 15px !important;
  }

  .tc-widget .tc-selected-header {
    font-size: 10px !important;
  }
}
