
/* ===== FPL360 WIDE MODE (Comprehensive Stats) ===== */
.fplcs-wrap.fplcs-wide{
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  border-radius: 0 !important;
  padding-left: 18px !important;
  padding-right: 18px !important;
}

.fplcs-wrap.fplcs-wide .fplcs-panel,
.fplcs-wrap.fplcs-wide .fplcs-card,
.fplcs-wrap.fplcs-wide .fplcs-table,
.fplcs-wrap.fplcs-wide table{
  width: 100%;
  max-width: 100%;
}

/* tighter table spacing */
.fplcs-wrap.fplcs-wide th,
.fplcs-wrap.fplcs-wide td{
  padding: 8px 10px !important;
}

/* allow horizontal scroll for very wide tables */
.fplcs-wrap.fplcs-wide .fplcs-scroll{
  overflow-x: auto;
}

/* assets/fplcs.css (FULL FILE)
   FPL Comprehensive Stats — Team Analyzer
   Fixes "CSS off" issues (theme inheritance / wrong font color)
   - Forces readable dark text on white cards even inside dark themes
   - Bolder headings + better table/list typography
   - Clean controls row + responsive
*/

.fplcs{
  /* hard reset against theme inheritance */
  color: #0f172a !important;
  font-family: inherit;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 14px 12px;
}

.fplcs, .fplcs *{
  box-sizing: border-box;
}

.fplcs a{
  color: inherit !important;
  text-decoration: none;
}

.fplcs-card{
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid rgba(15, 23, 42, .10);
  border-radius: 18px;
  box-shadow: 0 18px 55px rgba(0,0,0,.10);
  overflow: hidden;
}

/* Header */
.fplcs-card-hd{
  padding: 16px 16px 12px;
  border-bottom: 1px solid rgba(15,23,42,.08);
  display:flex;
  gap:12px;
  justify-content:space-between;
  align-items:flex-start;
  background: #ffffff !important;
  color: #0f172a !important;
}

.fplcs-title{
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #0f172a !important;
  line-height: 1.1;
}

.fplcs-sub{
  margin-top: 6px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(15,23,42,.70) !important;
  line-height: 1.35;
}

.fplcs-mini{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.fplcs-badge{
  display:inline-flex;
  gap:6px;
  align-items:center;
  padding: 7px 10px;
  border-radius: 999px;
  background: #f5f7fb !important;
  border: 1px solid rgba(15,23,42,.10);
  color: rgba(15,23,42,.85) !important;
  font-size: 12px;
  font-weight: 800;
}

.fplcs-badge b{
  color: #0f172a !important;
  font-weight: 900;
}

/* Controls row */
.fplcs-controls{
  padding: 14px 16px 16px;
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  align-items:flex-end;
  background: #ffffff !important;
  color: #0f172a !important;
}

.fplcs-field{
  display:flex;
  flex-direction:column;
  gap:6px;
  min-width: 220px;
}

.fplcs-field label{
  font-size: 12px;
  font-weight: 900;
  color: rgba(15,23,42,.72) !important;
  letter-spacing: .02em;
  text-transform: none;
}

.fplcs-field input,
.fplcs-field select{
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(15,23,42,.14);
  background: #ffffff !important;
  color: #0f172a !important;
  font-size: 14px;
  font-weight: 800;
  outline: none;
  box-shadow: none;
}

.fplcs-field input::placeholder{
  color: rgba(15,23,42,.40) !important;
  font-weight: 700;
}

.fplcs-field input:focus,
.fplcs-field select:focus{
  border-color: rgba(99,102,241,.45);
  box-shadow: 0 0 0 4px rgba(99,102,241,.12);
}

.fplcs-league-wrap{
  min-width: 260px;
}

.fplcs-btn{
  height: 42px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(15,23,42,.14);
  background: #6d28d9 !important;
  color: #ffffff !important;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .01em;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(109,40,217,.18);
  transition: transform .08s ease, filter .12s ease, opacity .12s ease;
}

.fplcs-btn:hover{ filter: brightness(1.03); }
.fplcs-btn:active{ transform: translateY(1px); }
.fplcs-btn:disabled{
  opacity: .55;
  cursor:not-allowed;
  box-shadow: none;
}

.fplcs-btn.fplcs-btn-ghost{
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid rgba(15,23,42,.16);
  box-shadow: none;
}

.fplcs-btn.fplcs-btn-ghost:hover{
  background: #f5f7fb !important;
}

/* Status */
.fplcs-status{
  padding: 0 16px 14px;
  background: #ffffff !important;
}

.fplcs-alert{
  border-radius: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(15,23,42,.10);
  background: #f8fafc !important;
  color: rgba(15,23,42,.85) !important;
  font-size: 13px;
  font-weight: 800;
}

.fplcs-alert.ok{
  background: rgba(34,197,94,.08) !important;
  border-color: rgba(34,197,94,.22);
  color: rgba(15,23,42,.92) !important;
}

.fplcs-alert.info{
  background: rgba(59,130,246,.08) !important;
  border-color: rgba(59,130,246,.22);
  color: rgba(15,23,42,.92) !important;
}

.fplcs-alert.warn{
  background: rgba(245,158,11,.10) !important;
  border-color: rgba(245,158,11,.26);
  color: rgba(15,23,42,.92) !important;
}

.fplcs-alert.err{
  background: rgba(239,68,68,.10) !important;
  border-color: rgba(239,68,68,.26);
  color: rgba(15,23,42,.92) !important;
}

/* Dashboard cards grid */
.fplcs-grid{
  padding: 0 16px 18px;
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
  background: #ffffff !important;
  color: #0f172a !important;
}

.fplcs-stat{
  grid-column: span 4;
  border-radius: 16px;
  border: 1px solid rgba(15,23,42,.10);
  background: #ffffff !important;
  padding: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
}

.fplcs-stat .k{
  font-size: 12px;
  font-weight: 900;
  color: rgba(15,23,42,.72) !important;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.fplcs-stat .v{
  margin-top: 8px;
  font-size: 14px;
  font-weight: 800;
  color: #0f172a !important;
}

.fplcs-stat .s{
  margin-top: 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: rgba(15,23,42,.72) !important;
  line-height: 1.35;
}

.fplcs-big{
  font-size: 22px;
  font-weight: 950;
  color: #0f172a !important;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.fplcs-split{
  display:flex;
  justify-content:space-between;
  gap: 10px;
  flex-wrap:wrap;
}

.fplcs-split b{ font-weight: 950; color:#0f172a !important; }
.fplcs-stat b{ font-weight: 950; color:#0f172a !important; }

.fplcs-playerline{
  margin-top: 8px;
  display:flex;
  gap:10px;
  align-items:center;
}

.fplcs-playerline .muted{
  color: rgba(15,23,42,.62) !important;
  font-weight: 800;
}

/* Chips */
.fplcs-chips{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.fplcs-chip{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f5f7fb !important;
  border: 1px solid rgba(15,23,42,.10);
  color: rgba(15,23,42,.85) !important;
  font-size: 12px;
  font-weight: 900;
}

/* Player pictures (small circles) */
.fplcs-pic{
  width: 34px;
  height: 34px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid rgba(15,23,42,.14);
  background: #f5f7fb !important;
  flex: 0 0 auto;
}

.fplcs-pic.sm{
  width: 32px;
  height: 32px;
}

.fplcs-pic.ph{
  display:inline-block;
}

/* Ownership section */
.fplcs-section{
  padding: 12px 16px 18px;
  border-top: 1px solid rgba(15,23,42,.08);
  background: #ffffff !important;
  color: #0f172a !important;
}

.fplcs-section-hd{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap: 12px;
  margin-bottom: 12px;
}

.fplcs-h{
  font-size: 15px;
  font-weight: 950;
  color: #0f172a !important;
  letter-spacing: -0.01em;
}

.fplcs-ownership{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
}

.fplcs-own-card{
  grid-column: span 4;
  border-radius: 16px;
  border: 1px solid rgba(15,23,42,.10);
  background: #ffffff !important;
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
  overflow:hidden;
}

.fplcs-own-hd{
  padding: 12px;
  display:flex;
  gap:10px;
  align-items:center;
  border-bottom: 1px solid rgba(15,23,42,.08);
  background: #ffffff !important;
}

.fplcs-own-hd .txt .nm{
  font-size: 14px;
  font-weight: 950;
  color: #0f172a !important;
  line-height: 1.1;
}

.fplcs-own-hd .txt .sub{
  margin-top: 4px;
  font-size: 12px;
  font-weight: 800;
  color: rgba(15,23,42,.68) !important;
}

.fplcs-own-list{
  padding: 10px 12px;
}

.fplcs-own-row{
  display:flex;
  justify-content:space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(15,23,42,.06);
}

.fplcs-own-row:last-child{ border-bottom: 0; }

.fplcs-own-row .l{
  display:flex;
  flex-direction:column;
  gap: 2px;
  min-width: 0;
}

.fplcs-own-row .l .t{
  font-size: 12.5px;
  font-weight: 950;
  color: #0f172a !important;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  max-width: 100%;
}

.fplcs-own-row .l .m{
  font-size: 12px;
  font-weight: 800;
  color: rgba(15,23,42,.68) !important;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  max-width: 100%;
}

.fplcs-own-row .r{
  font-size: 13px;
  font-weight: 950;
  color: #0f172a !important;
  flex: 0 0 auto;
  min-width: 30px;
  text-align:right;
}

/* Responsive */
@media (max-width: 1100px){
  .fplcs-stat{ grid-column: span 6; }
  .fplcs-own-card{ grid-column: span 6; }
}

@media (max-width: 720px){
  .fplcs-card-hd{ flex-direction:column; align-items:flex-start; }
  .fplcs-mini{ justify-content:flex-start; }
  .fplcs-field{ min-width: 100%; }
  .fplcs-btn{ width: 100%; }
  .fplcs-stat{ grid-column: span 12; }
  .fplcs-own-card{ grid-column: span 12; }
}

/* Extra hard override for themes that force white text globally */
.fplcs .fplcs-title,
.fplcs .fplcs-h,
.fplcs .fplcs-stat,
.fplcs .fplcs-stat * ,
.fplcs .fplcs-section,
.fplcs .fplcs-section * ,
.fplcs .fplcs-controls,
.fplcs .fplcs-controls * ,
.fplcs .fplcs-card-hd,
.fplcs .fplcs-card-hd * {
  color: inherit;
}

.fplcs{
  color:#0f172a !important;
}


/* Clickable manager rows (auto-load entry) */
.fplcs .fplcs-entrylink{
  cursor: pointer;
}
.fplcs .fplcs-entrylink:focus{
  outline: 2px solid rgba(124,58,237,.35);
  outline-offset: 2px;
  border-radius: 12px;
}
.fplcs .fplcs-entrylink:hover .t,
.fplcs .fplcs-entrylink:hover .m{
  text-decoration: underline;
}
