/* =========================================================
   FCODL Premium UI v1 (Front)
   Scope: .fcodl (prevents theme conflicts)
========================================================= */
/* Session note: shared premium styles now cover both league workflows and self-registration. */

.fcodl{
  --bg: #0b0f16;
  --panel: rgba(255,255,255,.06);
  --panel-2: rgba(255,255,255,.08);
  --border: rgba(255,255,255,.10);
  --border-2: rgba(255,255,255,.14);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.62);
  --muted-2: rgba(255,255,255,.45);
  --shadow: 0 12px 40px rgba(0,0,0,.55);
  --shadow-2: 0 8px 22px rgba(0,0,0,.35);
  --radius: 16px;
  --radius-sm: 12px;
  --gap: 14px;
  --gap-lg: 18px;
  --pad: 16px;
  --pad-lg: 20px;
  --focus: 0 0 0 3px rgba(99, 179, 237, .35);
  --accent: #63b3ed;
  --good: #48bb78;
  --bad: #f56565;
  --warn: #f6ad55;
  color: var(--text);
}

/* container */
.fcodl .fcodl-container,
.fcodl .fcodl-wrap{
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px 14px 34px;
}

/* headings */
.fcodl h1, .fcodl h2, .fcodl h3{
  letter-spacing: .2px;
  margin: 0 0 10px;
}
.fcodl h1{ font-size: 34px; line-height: 1.15; }
.fcodl h2{ font-size: 22px; line-height: 1.25; }
.fcodl h3{ font-size: 16px; line-height: 1.3; color: var(--muted); font-weight: 600; }

.fcodl p{ color: var(--muted); margin: 6px 0 0; }
.fcodl .fcodl-muted{ color: var(--muted); }
.fcodl .fcodl-small{ font-size: 12px; color: var(--muted-2); }

/* cards */
.fcodl .fcodl-card{
  background: linear-gradient(180deg, var(--panel), rgba(255,255,255,.04));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-2);
  padding: var(--pad-lg);
  backdrop-filter: blur(10px);
}
.fcodl .fcodl-card + .fcodl-card{ margin-top: var(--gap-lg); }

/* section header row (title left / filters right) */
.fcodl .fcodl-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.fcodl .fcodl-row .fcodl-right{ display:flex; gap:10px; align-items:center; flex-wrap:wrap; }

/* grid compatibility (your markup already uses these sometimes) */
.fcodl .fcodl-grid{
  display:grid;
  grid-template-columns: repeat(12, minmax(0,1fr));
  gap: var(--gap);
}
.fcodl .fcodl-col-12{ grid-column: span 12; }
.fcodl .fcodl-col-8{ grid-column: span 8; }
.fcodl .fcodl-col-6{ grid-column: span 6; }
.fcodl .fcodl-col-4{ grid-column: span 4; }
.fcodl .fcodl-col-3{ grid-column: span 3; }
@media (max-width: 840px){
  .fcodl .fcodl-col-8,
  .fcodl .fcodl-col-6,
  .fcodl .fcodl-col-4,
  .fcodl .fcodl-col-3{ grid-column: span 12; }
}

/* stat tiles (Player page) */
.fcodl .fcodl-statgrid{
  display:grid;
  grid-template-columns: repeat(6, minmax(0,1fr));
  gap: 10px;
}
@media (max-width: 980px){ .fcodl .fcodl-statgrid{ grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (max-width: 520px){ .fcodl .fcodl-statgrid{ grid-template-columns: repeat(2, minmax(0,1fr)); } }

.fcodl .fcodl-stat{
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 14px 12px;
}
.fcodl .fcodl-stat .k{ font-size: 12px; color: var(--muted-2); margin-bottom: 6px; }
.fcodl .fcodl-stat .v{
  font-size: 22px;
  line-height: 1.05;
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

/* forms */
.fcodl label{
  display:block;
  font-size: 12px;
  color: var(--muted-2);
  margin: 0 0 6px;
  font-weight: 600;
  letter-spacing: .2px;
}
.fcodl input[type="text"],
.fcodl input[type="number"],
.fcodl input[type="url"],
.fcodl select,
.fcodl textarea{
  width: 100%;
  background: rgba(0,0,0,.30);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 12px;
  padding: 11px 12px;
  outline: none;
  transition: transform .05s ease, border-color .15s ease, box-shadow .15s ease;
}
.fcodl textarea{ min-height: 90px; resize: vertical; }

.fcodl input:focus,
.fcodl select:focus,
.fcodl textarea:focus{
  border-color: rgba(99,179,237,.55);
  box-shadow: var(--focus);
}

.fcodl ::placeholder{ color: rgba(255,255,255,.35); }

.fcodl .fcodl-help{
  font-size: 12px;
  color: var(--muted-2);
  margin-top: 6px;
}

/* buttons */
.fcodl button,
.fcodl .fcodl-btn,
.fcodl input[type="submit"]{
  background: rgba(99,179,237,.18);
  border: 1px solid rgba(99,179,237,.35);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 700;
  letter-spacing: .2px;
  box-shadow: var(--shadow-2);
  transition: transform .05s ease, background .15s ease, border-color .15s ease;
}
.fcodl button:hover,
.fcodl .fcodl-btn:hover,
.fcodl input[type="submit"]:hover{
  background: rgba(99,179,237,.25);
  border-color: rgba(99,179,237,.55);
}
.fcodl button:active,
.fcodl .fcodl-btn:active,
.fcodl input[type="submit"]:active{ transform: translateY(1px); }

.fcodl .fcodl-btn-secondary{
  background: rgba(255,255,255,.08);
  border-color: var(--border-2);
}

/* badges (W/D/L, result, leg diff) */
.fcodl .fcodl-badge{
  display:inline-flex;
  align-items:center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.06);
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.fcodl .fcodl-badge.win{ border-color: rgba(72,187,120,.45); background: rgba(72,187,120,.12); }
.fcodl .fcodl-badge.loss{ border-color: rgba(245,101,101,.45); background: rgba(245,101,101,.12); }
.fcodl .fcodl-badge.draw{ border-color: rgba(246,173,85,.45); background: rgba(246,173,85,.12); }

.fcodl .fcodl-diff.pos{ color: rgba(72,187,120,.95); font-weight: 800; }
.fcodl .fcodl-diff.neg{ color: rgba(245,101,101,.95); font-weight: 800; }
.fcodl .fcodl-diff.zero{ color: var(--muted); font-weight: 800; }

/* tables */
.fcodl .fcodl-tablewrap{
  border: 1px solid var(--border);
  background: rgba(255,255,255,.04);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.fcodl .fcodl-table{
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
.fcodl .fcodl-table thead th{
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgba(10, 14, 22, .92);
  backdrop-filter: blur(10px);
  color: rgba(255,255,255,.80);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .6px;
  padding: 12px 12px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.fcodl .fcodl-table tbody td{
  padding: 12px 12px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  color: rgba(255,255,255,.86);
}
.fcodl .fcodl-table tbody tr:nth-child(odd){
  background: rgba(255,255,255,.02);
}
.fcodl .fcodl-table tbody tr:hover{
  background: rgba(99,179,237,.08);
}
.fcodl .fcodl-table td.num,
.fcodl .fcodl-table th.num{
  text-align: right;
}
.fcodl .fcodl-table td.center,
.fcodl .fcodl-table th.center{
  text-align: center;
}

/* responsive tables: horizontal scroll only when needed */
@media (max-width: 860px){
  .fcodl .fcodl-tablewrap{
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-sm);
  }
  .fcodl .fcodl-table{ min-width: 760px; }

  /* Smaller padding in mobile tables */
  .fcodl .fcodl-table thead th,
  .fcodl .fcodl-table tbody td{
    padding: 10px 8px;
    font-size: 13px;
  }

  /* Keep headers readable */
  .fcodl .fcodl-table thead th{
    font-size: 11px;
  }
}

/* players list cards (if markup uses simple list) */
.fcodl .fcodl-list{
  display:flex;
  flex-direction:column;
  gap: 10px;
}
.fcodl .fcodl-listitem{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.05);
}
.fcodl .fcodl-listitem .name{ font-weight: 800; }
.fcodl .fcodl-linkbtn{
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 12px;
  border: 1px solid rgba(99,179,237,.35);
  background: rgba(99,179,237,.12);
  color: var(--text);
  font-weight: 800;
}

/* page spacing helpers */
.fcodl .fcodl-sp-10{ height: 10px; }
.fcodl .fcodl-sp-16{ height: 16px; }
.fcodl .fcodl-sp-24{ height: 24px; }
.fcodl .fcodl-sp-32{ height: 32px; }
.fcodl .fcodl-sp-48{ height: 48px; }

/* =========================================================
   FCODL FRONT – UI POLISH PATCH (cola no final do CSS)
   ========================================================= */

/* Base container */
.fcodl-wrap{
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 12px 28px;
}

/* Card feel (reaproveita pra tudo) */
.fcodl-card{
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
  padding: 16px;
}

/* Tipografia e hierarquia */
.fcodl-wrap h1, .fcodl-wrap h2, .fcodl-wrap h3{
  line-height: 1.15;
  letter-spacing: -.2px;
}
.fcodl-wrap h1{ font-size: 28px; margin: 10px 0 6px; }
.fcodl-wrap h2{ font-size: 18px; margin: 18px 0 10px; }
.fcodl-wrap p{ margin: 0 0 10px; opacity: .92; }

/* Inputs / selects / buttons (consistência) */
.fcodl-label{
  font-size: 12px;
  font-weight: 600;
  opacity: .75;
  margin: 0 0 6px !important;
  display: block;
}

.fcodl-select,
.fcodl-wrap input[type="text"],
.fcodl-wrap input[type="number"],
.fcodl-wrap input[type="url"]{
  border: 1px solid rgba(0,0,0,.14) !important;
  border-radius: 12px !important;
  padding: 10px 12px !important;
  min-height: 42px;
  background: #fff !important;
  outline: none;
  transition: box-shadow .15s ease, border-color .15s ease;
}

.fcodl-wrap input:focus,
.fcodl-select:focus{
  border-color: rgba(0,0,0,.28) !important;
  box-shadow: 0 0 0 4px rgba(0,0,0,.06);
}

.fcodl-btn{
  border-radius: 12px !important;
  padding: 10px 14px !important;
  min-height: 42px;
  font-weight: 700;
  border: 1px solid rgba(0,0,0,.14) !important;
  background: rgba(0,0,0,.92) !important;
  color: #fff !important;
  cursor: pointer;
  transition: transform .08s ease, box-shadow .15s ease, opacity .15s ease;
}
.fcodl-btn:hover{
  box-shadow: 0 10px 18px rgba(0,0,0,.12);
}
.fcodl-btn:active{
  transform: translateY(1px);
}


/* Filter form removed - using .fcodl .fcodl-inline instead (line ~688) */



/* =========================================================
   2) PLAYER PAGE – KPIs + tabela “Recent matches”
   ========================================================= */
.fcodl-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin: 12px 0 16px;
}

.fcodl-kpi{
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  padding: 12px 12px 10px;
  background: rgba(255,255,255,.88);
}
.fcodl-kpi .k{
  font-size: 12px;
  font-weight: 700;
  opacity: .68;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: .6px;
}
.fcodl-kpi .v{
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.2px;
}

/* Tabela: leitura e scroll horizontal elegante */
.fcodl-table-wrap{
  overflow-x: auto;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.08);
  background: rgba(255,255,255,.88);
}

.fcodl-table{
  width: 100%;
  border-collapse: collapse;
  min-width: 760px; /* evita quebrar colunas demais */
}

.fcodl-table thead th{
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .6px;
  opacity: .75;
  padding: 12px 10px;
  border-bottom: 1px solid rgba(0,0,0,.08);
  background: rgba(0,0,0,.03);
  position: sticky;
  top: 0;
}

.fcodl-table tbody td{
  padding: 11px 10px;
  border-bottom: 1px solid rgba(0,0,0,.06);
  font-size: 14px;
}

.fcodl-table tbody tr:nth-child(odd){
  background: rgba(0,0,0,.015);
}

.fcodl-table tbody tr:hover{
  background: rgba(0,0,0,.035);
}

/* Result badge (se você já imprime W/L como texto na coluna) */
.fcodl-badge{
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(0,0,0,.04);
}

/* =========================================================
   3) SUBMIT MATCH RESULT – formulário mais “premium”
   ========================================================= */
.fcodl-card form{
  display: grid;
  gap: 12px;
}

/* Dá um “ritmo” nos inputs */
.fcodl-card .fcodl-select,
.fcodl-card input[type="text"],
.fcodl-card input[type="number"],
.fcodl-card input[type="url"]{
  width: 100%;
}

/* Ensure form elements have good spacing */
.fcodl-card form > *:not(:last-child){
  margin-bottom: 4px;
}

/* Botão principal com presença */
.fcodl-card .fcodl-btn{
  justify-self: start;
  padding-left: 18px !important;
  padding-right: 18px !important;
}

/* Mobile: form buttons go full width */
@media (max-width: 768px) {
  .fcodl-card .fcodl-btn{
    justify-self: stretch;
    width: 100% !important;
  }

  .fcodl-card form{
    gap: 14px;
  }
}

/* Pequeno ajuste pros textos de ajuda/placeholder ficarem suaves */
.fcodl-wrap ::placeholder{
  opacity: .55;
}
.fcodl-help{
  font-size: 12px;
  opacity: .68;
  margin-top: 6px;
}


/* =========================================================
   FCODL UI - Hotfix (Forms / Filters / Player KPIs)
   Cole este bloco NO FINAL do assets/css/fcodl-ui.css
   ========================================================= */

/* 1) Garantir que inputs/selects sejam sempre legíveis */
.fcodl .fcodl-select,
.fcodl .fcodl-input,
.fcodl select,
.fcodl input[type="text"],
.fcodl input[type="number"],
.fcodl input[type="email"],
.fcodl input[type="url"],
.fcodl textarea{
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;

  background: rgba(255,255,255,0.08) !important;
  color: rgba(255,255,255,0.92) !important;

  border: 1px solid rgba(255,255,255,0.16) !important;
  border-radius: 12px;

  padding: 12px 14px;
  line-height: 1.2;

  outline: none;
}

.fcodl .fcodl-select:focus,
.fcodl .fcodl-input:focus,
.fcodl select:focus,
.fcodl input:focus,
.fcodl textarea:focus{
  border-color: rgba(255,255,255,0.30) !important;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.08);
}

/* placeholder */
.fcodl input::placeholder,
.fcodl textarea::placeholder{
  color: rgba(255,255,255,0.55) !important;
}

/* dropdown options (alguns browsers limitam, mas ajuda muito) */
.fcodl select option{
  background: #fff;
  color: #111;
  padding: 8px;
}

/* Ensure select text is always visible */
.fcodl select{
  color: rgba(255,255,255,0.92) !important;
  /* For browsers that don't support custom styling */
  -webkit-appearance: menulist;
  -moz-appearance: menulist;
  appearance: menulist;
}

/* Better contrast for disabled inputs */
.fcodl input:disabled,
.fcodl select:disabled,
.fcodl textarea:disabled{
  opacity: 0.6;
  cursor: not-allowed;
  background: rgba(255,255,255,0.04) !important;
}

/* 2) Labels e espaçamentos do formulário (mata o “gap gigante”) */
.fcodl .fcodl-label{
  display: block;
  margin: 0 0 6px 0 !important;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
}

/* remove o <br> que existe logo após alguns labels do shortcode */
.fcodl .fcodl-label + br{
  display: none;
}

/* reduzir margens padrão de <p> dentro do card/form */
.fcodl .fcodl-card p{
  margin: 0 0 12px 0;
}
.fcodl .fcodl-card p:last-child{
  margin-bottom: 0;
}

/* 3) Filter bar (Rankings / League Table / Player) - FLEXBOX LAYOUT */
.fcodl .fcodl-inline{
  display: flex !important;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: flex-end;
  margin: 0;
}

.fcodl .fcodl-inline input[type="hidden"]{
  display: none !important;
}

.fcodl .fcodl-inline .fcodl-label{
  flex-basis: 100%;
  margin: 0 !important;
  font-weight: 700;
  font-size: 12px;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.fcodl .fcodl-inline .fcodl-select{
  flex: 0 1 auto;
  min-width: 160px;
  max-width: 280px;
  width: auto !important;
  padding: 10px 12px !important;
  font-size: 14px !important;
  color: #333 !important;
  border-radius: 6px !important;
  border: 1px solid #ccc !important;
  background: #fff !important;
  transition: all 0.2s ease;
}

.fcodl .fcodl-inline .fcodl-select:hover {
  border-color: #2271b1 !important;
  box-shadow: 0 2px 8px rgba(34, 113, 177, 0.15) !important;
}

.fcodl .fcodl-inline .fcodl-select:focus {
  border-color: #2271b1 !important;
  box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.2) !important;
  outline: none !important;
}

.fcodl .fcodl-inline .fcodl-btn{
  flex: 0 0 auto;
  white-space: nowrap;
  padding: 10px 18px !important;
  font-weight: 700;
}

/* mobile: stacked layout */
@media (max-width: 640px){
  .fcodl .fcodl-inline{
    gap: 8px 12px;
  }
  .fcodl .fcodl-inline .fcodl-label{ flex-basis: 100%; }
  .fcodl .fcodl-inline .fcodl-select{ flex-basis: calc(50% - 6px); max-width: none !important; }
  .fcodl .fcodl-inline .fcodl-btn{ flex-basis: 100%; width: 100%; }
}

/* 4) Player KPIs: cards mais “premium”, mais largos e com boa leitura */
.fcodl .fcodl-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.fcodl .fcodl-kpi{
  background: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.06));
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 14px;

  padding: 14px 14px;
  min-height: 92px;

  display: flex;
  flex-direction: column;
  justify-content: space-between;

  overflow: hidden;
}

.fcodl .fcodl-kpi > div{
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
}

.fcodl .fcodl-kpi strong{
  font-size: 26px;
  line-height: 1.0;
  color: rgba(255,255,255,0.95);
  margin-top: 8px;
}

/* 5) Tabelas: segurança de overflow + header mais consistente */
.fcodl .fcodl-table{
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.fcodl .fcodl-table table{
  width: 100%;
  border-collapse: collapse;
  min-width: 720px; /* evita quebrar feio em telas menores */
}

.fcodl .fcodl-table th{
  color: rgba(255,255,255,0.70);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.fcodl .fcodl-table td{
  color: rgba(255,255,255,0.88);
}
/* === Ranking Zones Styling === */

/* Legend badges */
.fcodl .fcodl-legend {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* =========================================================
   BADGES - PREMIUM STYLING WITH IMPROVED CONTRAST
   Updated: 2026-02-27 - Improved visibility and colors
   ========================================================= */
.fcodl .fcodl-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.fcodl .fcodl-badge--premier {
  background: linear-gradient(135deg, #00A651 0%, #00C664 100%);
  color: #ffffff !important;
  border: 2px solid #00A651 !important;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0, 166, 81, 0.3);
  padding: 8px 16px !important;
}

.fcodl .fcodl-badge--major {
  background: linear-gradient(135deg, #0066CC 0%, #0080FF 100%);
  color: #ffffff !important;
  border: 2px solid #0066CC !important;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
  padding: 8px 16px !important;
}

/* Table row highlighting for ranking zones */
.fcodl .fcodl-table--rankings tr.fcodl-row--premier {
  background: linear-gradient(90deg, rgba(72, 187, 120, 0.12), rgba(56, 178, 172, 0.08)) !important;
  border-left: 3px solid #48bb78;
}

.fcodl .fcodl-table--rankings tr.fcodl-row--major {
  background: linear-gradient(90deg, rgba(99, 179, 237, 0.12), rgba(66, 153, 225, 0.08)) !important;
  border-left: 3px solid #63b3ed;
}

.fcodl .fcodl-table--rankings tr.fcodl-row--premier:hover,
.fcodl .fcodl-table--rankings tr.fcodl-row--major:hover {
  opacity: 0.9;
}

/* Rank column bold styling for top positions */
.fcodl .fcodl-table--rankings tr.fcodl-row--premier td:first-child,
.fcodl .fcodl-table--rankings tr.fcodl-row--major td:first-child {
  font-weight: 700;
  font-size: 16px;
}

/* === Tournament Styles === */

/* Tournament grid layout */
.fcodl .fcodl-tournaments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

@media (max-width: 768px) {
  .fcodl .fcodl-tournaments-grid {
    grid-template-columns: 1fr;
  }
}

/* Tournament card */
.fcodl .fcodl-tournament-card {
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fcodl .fcodl-tournament-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,.65);
}

/* Tournament header with badges */
.fcodl .fcodl-tournament-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fcodl .fcodl-tournament-header h4 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.fcodl .fcodl-tournament-header .fcodl-badge {
  align-self: flex-start;
}

/* Tournament bracket image */
.fcodl .fcodl-tournament-bracket img {
  display: block;
  border: 1px solid var(--border);
}

/* Tournament report content */
.fcodl .fcodl-tournament-report {
  color: var(--text);
  line-height: 1.7;
}

.fcodl .fcodl-tournament-report p {
  margin: 0 0 16px 0;
  color: var(--text);
}

.fcodl .fcodl-tournament-report h1,
.fcodl .fcodl-tournament-report h2,
.fcodl .fcodl-tournament-report h3,
.fcodl .fcodl-tournament-report h4 {
  margin: 24px 0 12px 0;
  color: var(--text);
}

.fcodl .fcodl-tournament-report ul,
.fcodl .fcodl-tournament-report ol {
  margin: 12px 0;
  padding-left: 24px;
}

.fcodl .fcodl-tournament-report li {
  margin: 6px 0;
  color: var(--text);
}

.fcodl .fcodl-tournament-report strong {
  color: var(--accent);
  font-weight: 600;
}

/* Secondary button style */
.fcodl .fcodl-btn--secondary {
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--border);
}

.fcodl .fcodl-btn--secondary:hover {
  background: var(--panel-2);
  border-color: var(--border-2);
}

/* === Mobile Optimizations === */

@media (max-width: 768px) {
  /* Container padding reduction on mobile */
  .fcodl .fcodl-container,
  .fcodl .fcodl-wrap{
    padding: 14px 12px 24px;
  }

  /* Headings scale down */
  .fcodl h1{ font-size: 28px; }
  .fcodl h2{ font-size: 20px; }

  /* Card padding reduction */
  .fcodl .fcodl-card{
    padding: 16px;
  }

  /* Form inputs: larger touch targets */
  .fcodl .fcodl-select,
  .fcodl .fcodl-input,
  .fcodl select,
  .fcodl input[type="text"],
  .fcodl input[type="number"],
  .fcodl input[type="email"],
  .fcodl input[type="url"],
  .fcodl textarea{
    padding: 14px 12px !important;
    min-height: 48px !important;
    font-size: 16px !important; /* Prevents iOS zoom */
  }

  /* Buttons: full width and larger */
  .fcodl .fcodl-btn,
  .fcodl input[type="submit"],
  .fcodl button[type="submit"]{
    width: 100% !important;
    min-height: 48px !important;
    padding: 14px 18px !important;
    font-size: 16px !important;
  }

  /* Labels: more prominent */
  .fcodl .fcodl-label{
    font-size: 13px !important;
    margin-bottom: 8px !important;
  }

  /* Player KPIs: stack in single column */
  .fcodl .fcodl-grid{
    grid-template-columns: 1fr !important;
  }

  /* KPI cards: slightly larger */
  .fcodl .fcodl-kpi{
    padding: 14px;
  }
  .fcodl .fcodl-kpi .k{
    font-size: 13px;
  }
  .fcodl .fcodl-kpi .v{
    font-size: 22px;
  }

  /* Stat tiles: 2 columns on mobile */
  .fcodl .fcodl-stat{
    padding: 14px;
  }
  .fcodl .fcodl-stat .val{
    font-size: 20px;
  }

  /* Badges: slightly larger */
  .fcodl .fcodl-badge{
    font-size: 11px;
    padding: 5px 10px;
  }

  /* Row elements: stack on mobile */
  .fcodl .fcodl-row{
    flex-direction: column;
    align-items: stretch;
  }
  .fcodl .fcodl-row .fcodl-right{
    width: 100%;
    justify-content: stretch;
  }

  /* Tournament grid: single column */
  .fcodl .fcodl-tournaments-grid{
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 480px) {
  /* Extra small screens: more aggressive optimizations */
  .fcodl h1{ font-size: 24px; }
  .fcodl h2{ font-size: 18px; }

  .fcodl .fcodl-container,
  .fcodl .fcodl-wrap{
    padding: 12px 10px 20px;
  }

  /* Tables: ensure minimum usable width */
  .fcodl .fcodl-table{
    font-size: 12px;
  }
  .fcodl .fcodl-table thead th,
  .fcodl .fcodl-table tbody td{
    padding: 8px 6px;
  }

  /* Stat grid: single column on very small screens */
  .fcodl .fcodl-statgrid{
    grid-template-columns: 1fr !important;
  }
}

/* =========================================================
   SUBMIT RESULT FORM - Premium UI/UX
   ========================================================= */

/* Form card wrapper */
.fcodl-submit-form-card{
  max-width: 640px !important;
  margin: 0 auto;
}

.fcodl-register-form-card{
  max-width: 700px !important;
}

/* Form structure */
.fcodl-submit-form{
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* Form sections (blocks) */
.fcodl-form-section{
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 14px;
  padding: 20px;
}

.fcodl-section-title{
  font-size: 15px;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.85);
  margin: 0 0 16px 0;
  letter-spacing: 0.2px;
}

.fcodl-required-badge{
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: rgba(146, 64, 14, 0.95);
  background: rgba(251, 191, 36, 0.18);
  border: 1px solid rgba(245, 158, 11, 0.22);
  margin-left: 8px;
  vertical-align: middle;
}

.fcodl-required-note{
  margin: -4px 0 16px 0;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(0, 0, 0, 0.62);
}

/* Form groups */
.fcodl-form-group{
  margin-bottom: 16px;
}

.fcodl-form-group:last-child{
  margin-bottom: 0;
}

.fcodl-form-group .fcodl-label{
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.72);
  margin-bottom: 6px;
  letter-spacing: 0.2px;
}

.fcodl-helper-text{
  font-size: 12px;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.45);
  margin-left: 4px;
}

/* Score section styling */
.fcodl-score-section{
  background: linear-gradient(135deg, rgba(99, 179, 237, 0.08) 0%, rgba(99, 179, 237, 0.03) 100%);
  border-color: rgba(99, 179, 237, 0.18);
}

/* Score area - side by side */
.fcodl-score-area{
  display: flex;
  align-items: center;
  gap: 16px;
}

.fcodl-score-input{
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fcodl-score-label{
  font-size: 13px;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.72);
  text-align: center;
  letter-spacing: 0.3px;
}

.fcodl-score-field{
  width: 100% !important;
  height: 64px !important;
  font-size: 32px !important;
  font-weight: 800 !important;
  text-align: center !important;
  letter-spacing: -0.5px;
  background: rgba(255, 255, 255, 0.9) !important;
  border: 2px solid rgba(0, 0, 0, 0.12) !important;
  border-radius: 12px !important;
  padding: 0 !important;
  transition: all 0.2s ease;
}

.fcodl-score-field:focus{
  border-color: rgba(99, 179, 237, 0.6) !important;
  box-shadow: 0 0 0 4px rgba(99, 179, 237, 0.12) !important;
  transform: scale(1.02);
}

.fcodl-score-divider{
  font-size: 28px;
  font-weight: 300;
  color: rgba(0, 0, 0, 0.25);
  padding: 0 4px;
  margin-top: 24px;
}

/* Form actions */
.fcodl-form-actions{
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 8px;
}

.fcodl-btn-primary{
  width: 100% !important;
  min-height: 52px !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.88) 100%) !important;
  border: 2px solid rgba(0, 0, 0, 0.18) !important;
  border-radius: 14px !important;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18) !important;
  transition: all 0.2s ease !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px;
}

.fcodl-btn-primary:hover{
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.98) 0%, rgba(0, 0, 0, 0.94) 100%) !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25) !important;
  transform: translateY(-2px) !important;
}

.fcodl-btn-primary:active{
  transform: translateY(0) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

.fcodl-form-hint{
  text-align: center;
  font-size: 13px;
  color: rgba(0, 0, 0, 0.50);
  margin: 0;
  line-height: 1.4;
}

/* Inputs styling inside form */
.fcodl-submit-form .fcodl-select,
.fcodl-submit-form input[type="text"],
.fcodl-submit-form input[type="email"],
.fcodl-submit-form input[type="number"],
.fcodl-submit-form input[type="password"],
.fcodl-submit-form input[type="url"],
.fcodl-submit-form textarea{
  width: 100%;
  min-height: 48px;
  font-size: 15px;
  border: 1px solid rgba(0, 0, 0, 0.12) !important;
  border-radius: 12px !important;
  padding: 12px 14px !important;
  background: rgba(255, 255, 255, 0.9) !important;
  color: rgba(0, 0, 0, 0.88) !important;
  transition: all 0.2s ease;
}

.fcodl-submit-form textarea{
  min-height: 90px !important;
  resize: vertical;
  font-family: inherit;
}

.fcodl-submit-form .fcodl-select:focus,
.fcodl-submit-form input:focus,
.fcodl-submit-form textarea:focus{
  border-color: rgba(99, 179, 237, 0.5) !important;
  box-shadow: 0 0 0 4px rgba(99, 179, 237, 0.10) !important;
  background: rgba(255, 255, 255, 1) !important;
}

.fcodl-submit-form ::placeholder{
  color: rgba(0, 0, 0, 0.35);
}

/* Message feedback styling */
.fcodl .fcodl-submit-message{
  margin-bottom: 20px;
  padding: 16px 18px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

.fcodl .fcodl-submit-message.success{
  background: rgba(72, 187, 120, 0.12);
  border: 1px solid rgba(72, 187, 120, 0.3);
  color: rgba(34, 84, 61, 0.95);
}

.fcodl .fcodl-submit-message.error{
  background: rgba(245, 101, 101, 0.12);
  border: 1px solid rgba(245, 101, 101, 0.3);
  color: rgba(124, 45, 45, 0.95);
}

/* Mobile optimizations */
@media (max-width: 768px) {
  .fcodl-submit-form{
    gap: 24px;
  }

  .fcodl-form-section{
    padding: 16px;
  }

  .fcodl-section-title{
    font-size: 14px;
    margin-bottom: 14px;
  }

  .fcodl-score-area{
    gap: 12px;
  }

  .fcodl-score-field{
    height: 56px !important;
    font-size: 28px !important;
  }

  .fcodl-score-divider{
    font-size: 24px;
    margin-top: 20px;
  }

  .fcodl-btn-primary{
    min-height: 56px !important;
  }

  .fcodl-form-group{
    margin-bottom: 14px;
  }
}

@media (max-width: 480px) {
  .fcodl-submit-form{
    gap: 20px;
  }

  .fcodl-form-section{
    padding: 14px;
  }

  .fcodl-score-area{
    flex-direction: column;
    gap: 14px;
  }

  .fcodl-score-input{
    width: 100%;
  }

  .fcodl-score-divider{
    display: none;
  }

  .fcodl-score-field{
    height: 52px !important;
    font-size: 26px !important;
  }

  .fcodl-section-title{
    font-size: 13px;
  }

  .fcodl-required-badge{
    display: block;
    margin-left: 0;
    margin-top: 4px;
  }

  .fcodl-required-note{
    font-size: 12px;
    margin-top: 0;
  }
}

/* =========================================================
   PLAYER PROFILE - PREMIUM DESIGN
   ========================================================= */

/* =========================================================
   PLAYER PROFILE - HIGH IMPACT PREMIUM DESIGN
   ========================================================= */

/* Profile header with stats */
.fcodl .fcodl-player-profile {
  padding: 24px;
}

.fcodl .fcodl-player-profile__header {
  margin-bottom: 24px;
  border-bottom: 3px solid #2271b1;
  padding-bottom: 16px;
}

.fcodl .fcodl-player-profile__name {
  font-size: 48px;
  font-weight: 900;
  margin: 0 0 4px 0;
  color: #000;
  letter-spacing: -1px;
  text-shadow: 0 2px 4px rgba(0,0,0,.05);
}

.fcodl .fcodl-player-profile__season {
  font-size: 14px;
  color: #666;
  font-weight: 600;
}

/* Filter toolbar */
.fcodl .fcodl-player-profile__toolbar {
  margin-bottom: 24px;
  display: flex;
  gap: 12px;
  align-items: flex-end;
  flex-wrap: wrap;
}

.fcodl .fcodl-player-profile__toolbar .fcodl-label {
  font-weight: 700;
  font-size: 12px;
  color: #333;
  margin: 0 0 6px 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.fcodl .fcodl-player-profile__toolbar .fcodl-select {
  min-width: 180px;
  border-radius: 8px;
  border: 2px solid #ddd;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 500;
  background: #fff;
  transition: all 0.25s ease;
}

.fcodl .fcodl-player-profile__toolbar .fcodl-select:hover {
  border-color: #2271b1;
  box-shadow: 0 4px 12px rgba(34, 113, 177, 0.15);
}

.fcodl .fcodl-player-profile__toolbar .fcodl-select:focus {
  border-color: #2271b1;
  box-shadow: 0 0 0 4px rgba(34, 113, 177, 0.2);
  outline: none;
}

/* KPI Grid - Premium Cards with HIGH IMPACT */
.fcodl .fcodl-player-profile__kpi-section {
  margin-bottom: 28px;
}

.fcodl .fcodl-player-profile__kpi-section .fcodl-section-title {
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 14px;
  color: #333;
  text-transform: uppercase;
  letter-spacing: 1.2px;
}

.fcodl .fcodl-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 14px;
  margin-bottom: 0;
}

.fcodl .fcodl-kpi-card {
  border-radius: 10px;
  padding: 16px 14px;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
  border: none;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
}

/* Cores diferentes por métrica */
.fcodl .fcodl-kpi-card:nth-child(1) {
  background: linear-gradient(135deg, #2271b1 0%, #0f5faf 100%);
  color: #fff;
}

.fcodl .fcodl-kpi-card:nth-child(2) {
  background: linear-gradient(135deg, #00a32a 0%, #008024 100%);
  color: #fff;
}

.fcodl .fcodl-kpi-card:nth-child(3) {
  background: linear-gradient(135deg, #dba617 0%, #b5860f 100%);
  color: #fff;
}

.fcodl .fcodl-kpi-card:nth-child(4) {
  background: linear-gradient(135deg, #d63638 0%, #b3272a 100%);
  color: #fff;
}

.fcodl .fcodl-kpi-card:nth-child(5) {
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
  color: #fff;
}

.fcodl .fcodl-kpi-card:nth-child(6) {
  background: linear-gradient(135deg, #e94b3c 0%, #c93829 100%);
  color: #fff;
}

.fcodl .fcodl-kpi-card:nth-child(7) {
  background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%);
  color: #fff;
}

.fcodl .fcodl-kpi-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 120px;
  height: 120px;
  background: rgba(255,255,255,.15);
  border-radius: 50%;
  transition: all 0.5s ease;
}

.fcodl .fcodl-kpi-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 32px rgba(0,0,0,.18);
}

.fcodl .fcodl-kpi-card:hover::before {
  transform: translate(20px, 20px);
}

.fcodl .fcodl-kpi-card__label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  opacity: 0.9;
}

.fcodl .fcodl-kpi-card__value {
  display: block;
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.5px;
  word-break: break-word;
}

.fcodl .fcodl-kpi-card__unit {
  display: block;
  font-size: 10px;
  margin-top: 6px;
  opacity: 0.85;
  font-weight: 500;
}

/* Recent Matches Table */
.fcodl .fcodl-player-profile__matches-section {
  margin-top: 28px;
}

.fcodl .fcodl-player-profile__matches-section .fcodl-section-title {
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 12px;
  color: #333;
  text-transform: uppercase;
  letter-spacing: 1.2px;
}

.fcodl .fcodl-player-profile__matches-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}

.fcodl .fcodl-player-profile__matches-table thead {
  background: #2271b1;
  border-bottom: none;
}

.fcodl .fcodl-player-profile__matches-table th {
  padding: 12px 12px;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.fcodl .fcodl-player-profile__matches-table td {
  padding: 11px 12px;
  font-size: 14px;
  color: #333;
  border-bottom: 1px solid #f0f0f0;
  font-weight: 500;
}

.fcodl .fcodl-player-profile__matches-table tbody tr {
  transition: all 0.2s ease;
}

.fcodl .fcodl-player-profile__matches-table tbody tr:nth-child(odd) {
  background: #fafbfc;
}

.fcodl .fcodl-player-profile__matches-table tbody tr:hover {
  background: #e8f2ff;
}

.fcodl .fcodl-player-profile__matches-table tbody tr:last-child td {
  border-bottom: none;
}

.fcodl .fcodl-player-profile__matches-table td.fcodl-result--win {
  color: #00a32a;
  font-weight: 700;
}

.fcodl .fcodl-player-profile__matches-table td.fcodl-result--draw {
  color: #dba617;
  font-weight: 700;
}

.fcodl .fcodl-player-profile__matches-table td.fcodl-result--loss {
  color: #d63638;
  font-weight: 700;
}

/* Empty state */
.fcodl .fcodl-player-profile__empty {
  text-align: center;
  padding: 40px 20px;
  color: #999;
  font-style: italic;
  font-size: 14px;
}

/* =========================================================
   FRONT MOBILE RESPONSIVE PATCH (Public Pages)
   ========================================================= */

.fcodl .fcodl-page .fcodl-tablewrap{
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.fcodl .fcodl-page .fcodl-tablewrap .fcodl-table{
  min-width: 720px;
}

.fcodl .fcodl-page--league-table .fcodl-tablewrap .fcodl-table,
.fcodl .fcodl-page--rankings .fcodl-tablewrap .fcodl-table{
  min-width: 760px;
}

.fcodl .fcodl-page--players .fcodl-tablewrap .fcodl-table,
.fcodl .fcodl-page--player-profile .fcodl-tablewrap .fcodl-player-profile__matches-table{
  min-width: 640px;
}

.fcodl .fcodl-legend-card{
  margin-bottom: 16px;
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(255,255,255,.04);
}

.fcodl .fcodl-page--submit-result .fcodl-submit-form-card{
  max-width: 700px;
  margin: 0 auto;
}

.fcodl .fcodl-page--submit-result .fcodl-form-section{
  border: 1px solid var(--border);
  background: rgba(255,255,255,.03);
}

.fcodl .fcodl-page--submit-result .fcodl-form-section--submit-action{
  background: rgba(99,179,237,.10);
  border-color: rgba(99,179,237,.28);
}

.fcodl .fcodl-page--submit-result .fcodl-score-field{
  font-variant-numeric: tabular-nums;
}

.fcodl .fcodl-page--submit-result .fcodl-btn-primary{
  min-height: 52px;
}

.fcodl .fcodl-page--players .fcodl-btn,
.fcodl .fcodl-page--tournaments .fcodl-tournament-card__cta{
  text-decoration: none;
}

.fcodl .fcodl-page--tournaments .fcodl-tournament-meta,
.fcodl .fcodl-page--tournaments .fcodl-tournament-excerpt,
.fcodl .fcodl-page--tournaments .fcodl-tournament-card__cta{
  margin-top: 12px;
}

.fcodl .fcodl-page--tournament-detail .fcodl-tournament-detail__badges{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

.fcodl .fcodl-page--tournament-detail .fcodl-badge--small{
  font-size: 11px;
}

.fcodl .fcodl-page--tournament-detail .fcodl-tournament-detail__bracket-card,
.fcodl .fcodl-page--tournament-detail .fcodl-tournament-detail__report-card{
  margin-top: 20px;
}

.fcodl .fcodl-page--tournament-detail .fcodl-tournament-detail__bracket-wrap,
.fcodl .fcodl-page--tournament-detail .fcodl-tournament-detail__report{
  margin-top: 16px;
}

.fcodl .fcodl-page--tournament-detail .fcodl-tournament-detail__bracket-wrap{
  overflow-x: auto;
}

.fcodl .fcodl-page--tournament-detail .fcodl-tournament-detail__bracket-image{
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.fcodl .fcodl-page--tournament-detail .fcodl-tournament-detail__back{
  margin-top: 24px;
}

@media (max-width: 860px){
  .fcodl .fcodl-page .fcodl-header{
    margin-bottom: 12px;
  }

  .fcodl .fcodl-page .fcodl-card{
    padding: 14px;
  }

  .fcodl .fcodl-page .fcodl-inline{
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 10px;
    align-items: stretch;
  }

  .fcodl .fcodl-page .fcodl-inline .fcodl-select,
  .fcodl .fcodl-page .fcodl-inline .fcodl-btn{
    width: 100% !important;
    max-width: none !important;
    min-width: 0;
  }

  .fcodl .fcodl-page .fcodl-inline .fcodl-btn{
    min-height: 46px;
  }

  .fcodl .fcodl-page--submit-result .fcodl-submit-form{
    gap: 16px;
  }

  .fcodl .fcodl-page--submit-result .fcodl-score-area{
    display:grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .fcodl .fcodl-page--submit-result .fcodl-score-divider{
    display:none;
  }

  .fcodl .fcodl-page--submit-result .fcodl-score-field{
    height: 56px !important;
    font-size: 28px !important;
  }

  .fcodl .fcodl-page--players .fcodl-tablewrap .fcodl-btn{
    min-height: 42px;
    width: 100%;
    justify-content: center;
  }

  .fcodl .fcodl-page--player-profile .fcodl-player-profile{
    padding: 14px;
  }

  .fcodl .fcodl-page--player-profile .fcodl-player-profile__name{
    font-size: clamp(28px, 8vw, 36px);
    line-height: 1.1;
    word-break: break-word;
  }

  .fcodl .fcodl-page--player-profile .fcodl-kpi-grid{
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 10px;
  }

  .fcodl .fcodl-page--player-profile .fcodl-kpi-card{
    min-height: 88px;
    padding: 12px;
  }

  .fcodl .fcodl-page--player-profile .fcodl-kpi-card__value{
    font-size: 24px;
  }

  .fcodl .fcodl-page--tournaments .fcodl-tournaments-grid{
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .fcodl .fcodl-page--tournaments .fcodl-tournament-card{
    padding: 14px;
  }
}

@media (max-width: 520px){
  .fcodl .fcodl-page .fcodl-container,
  .fcodl .fcodl-page .fcodl-wrap{
    padding: 12px 10px 18px;
  }

  .fcodl .fcodl-page h1{ font-size: 24px; }
  .fcodl .fcodl-page h2{ font-size: 19px; }

  .fcodl .fcodl-page .fcodl-tablewrap .fcodl-table{
    min-width: 600px;
  }

  .fcodl .fcodl-page--rankings .fcodl-tablewrap .fcodl-table,
  .fcodl .fcodl-page--league-table .fcodl-tablewrap .fcodl-table{
    min-width: 680px;
  }

  .fcodl .fcodl-page--player-profile .fcodl-kpi-grid{
    grid-template-columns: 1fr;
  }

  .fcodl .fcodl-page--submit-result .fcodl-section-title{
    font-size: 14px;
  }

  .fcodl .fcodl-page--submit-result .fcodl-btn-primary{
    font-size: 15px !important;
    min-height: 54px;
  }
}
