.efl3-legacy-module {
  --efl-red: #e1263f;
  --efl-red-hover: #f04455;
  --efl-bg: #000000;
  --efl-text: #ffffff;
  --efl-radius: 16px;
  --efl-radius-btn: 12px;
}
.efl-match-cards { display:grid; gap:16px; grid-template-columns:1fr; }
@media (min-width: 900px){ .efl-match-cards{ grid-template-columns: repeat(var(--efl-match-cols,2),minmax(0,1fr)); } }
.efl-match-card {
  background: var(--efl-bg);
  color: var(--efl-text);
  border: 1px solid rgba(255,255,255,0.15) !important;
  border-radius: var(--efl-radius);
  padding: 16px;
  text-align: center;
}
.efl-match-card-head{ margin-bottom: 12px; }
.efl-meta{ display:flex; gap:10px; flex-wrap:wrap; justify-content:center; align-items:center; font-size: 14px; }
.efl-match-no{ font-weight:700; }
.efl-league{ opacity:.9; padding:3px 8px; border: 1px solid rgba(255,255,255,.15); border-radius: 999px; }
.efl-event-link{ font-size:12px; padding:4px 8px; border: 1px solid rgba(255,255,255,.15); border-radius: var(--efl-radius-btn); text-decoration:none; color:#fff; }
.efl-logos { display:flex; justify-content:center; align-items:center; gap: 14px; }
.efl-logo-link { display:inline-flex; }
.efl-logo { width: 84px; height: 84px; object-fit: contain; background: #111; border:none; border-radius: 10px; }
.efl-vs { font-weight:800; display:flex; align-items:center; gap:8px; }
.efl-score { font-size: 28px; line-height:1; }
.efl-score-sep { font-size: 28px; opacity:.8; }
.efl-names { margin-top:10px; display:flex; gap:10px; justify-content:center; align-items:center; flex-wrap:wrap; }
.efl-team-name { color:#fff; text-decoration:none; font-weight:800; font-size:18px; }
.efl-vs2 { opacity:.75; }


.efl-meta + .efl-meta{ margin-top:6px; }

.efl-actions{ margin-top:12px; display:flex; justify-content:center; }
.efl-btn{ text-decoration:none; display:inline-block; padding:10px 14px; border-radius: var(--efl-radius-btn); font-weight:700; }
.efl-btn-primary{ background: var(--efl-red); color:#fff; border:none; }
.efl-btn-primary:hover{ background: var(--efl-red-hover); }

/* Chips like WW, with requested tweaks */
.efl-chip{ display:inline-flex; align-items:center; gap:6px; padding:4px 10px; border: 1px solid rgba(255,255,255,.15); border-radius:5px; font-size: 13px; line-height:1.2; }
.efl-chip.efl-match-no{ background:#e54642; border-color:#e54642; color:#fff; }
.efl-chip.efl-league{ /* outline style kept */ }

/* Button primary like WW */
.efl-actions{ margin-top:12px; display:flex; justify-content:center; }
.efl-btn{ text-decoration:none; display:inline-block; padding:12px 18px; border-radius:5px; font-weight:700; font-size:14px; }
.efl-btn-primary{ background: var(--efl-red); color:#fff; border:none; }
.efl-btn-primary:hover{ background: var(--efl-red-hover); }

/* 'Mecz nr' chip not bold */
.efl-chip.efl-match-no{ font-weight:400; }


/* --- EFL User Played v0.2.9: adjustments --- */
.efl-topchips{ display:flex; gap:8px; justify-content:center; align-items:center; margin-bottom:8px; flex-wrap:wrap; }
.efl-chip{ display:inline-flex; align-items:center; padding:3px 8px; border:1px solid rgba(255,255,255,.15); border-radius:5px; font-size:13px; line-height:1.2; color:#fff; }
.efl-chip.efl-match-no{ background:#e64642; border-color:#e64642; border-radius:5px; }
.efl-logos.efl-logos--score{ gap:14px; }
.efl-inline-score{ display:inline-flex; gap:8px; align-items:center; font-weight:800; font-size:22px; }
.efl-colon{ opacity:.9; }
.efl-vs-text{ margin:0 8px; opacity:.85; }

/* --- EFL User Played: filters & pagination --- */

.efl-user-played-wrapper{
  width:100%;
}

.efl-filters-form{
  margin-bottom:16px;
}

.efl-filters-row{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.efl-filter-field{
  flex:1 1 0;
  min-width:0;
  position:relative;
}

.efl-filter-input{
  width:100%;
  padding:6px 10px;
  border-radius:4px;
  border:1px solid rgba(255,255,255,0.15);
  background:#111;
  color:#fff;
  font-size:13px;
  text-align:center;
}

.efl-filter-input::placeholder{
  color:rgba(255,255,255,0.6);
}

.efl-filter-dropdown{
  position:absolute;
  left:0;
  right:0;
  top:100%;
  margin-top:2px;
  max-height:240px;
  overflow:auto;
  background:#111;
  border:1px solid rgba(255,255,255,0.15);
  border-radius:4px;
  padding:4px 0;
  display:none;
  z-index:20;
}

.efl-filter-dropdown.is-open{
  display:block;
}

.efl-filter-option{
  padding:6px 10px;
  font-size:13px;
  cursor:pointer;
  text-align:center;
}

.efl-filter-option:hover{
  background:#222;
}

/* Filters actions */

.efl-filters-actions{
  display:flex;
  flex-direction:column;
  gap:8px;
  margin-top:12px;
}

.efl-filter-submit,
.efl-filter-reset{
  width:100%;
  padding:8px 12px;
  border-radius:4px;
  font-size:13px;
  font-weight:bold;
  text-align:center;
  cursor:pointer;
}

.efl-filter-submit{
  background:#e54642;
  border:0;
  color:#fff;
}

.efl-filter-submit:hover{
  background:#c63b38;
}

.efl-filter-reset{
  border:1px solid rgba(255,255,255,0.15);
  background:#111;
  color:#fff;
  font-weight:normal;
}

/* Pagination */

.efl-pagination{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:4px;
  margin-top:12px;
  flex-wrap:wrap;
}

.efl-page-btn{
  border:0;
  padding:6px 10px;
  border-radius:4px;
  background:#2b2b2b;
  color:#fff;
  cursor:pointer;
  font-size:13px;
}

.efl-page-btn.is-active{
  background:#e44541;
  font-weight:bold;
}

.efl-page-btn:disabled{
  opacity:0.4;
  cursor:default;
}

/* Responsive for filters: stack on mobile */

@media (max-width: 768px){
  .efl-filters-row{
    flex-direction:column;
  }
  .efl-filter-field{
    width:100%;
  }
}



/* Strong center alignment for filter captions */
.efl-filter-input{
  text-align:center !important;
}
.efl-filter-option{
  text-align:center;
}


/* EFL User Played: mobile stacked team names */
@media (max-width: 640px){
  .efl-match-card .efl-teams{
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:4px;
  }
  .efl-match-card .efl-vs-text{
    text-transform:uppercase;
  }
}

/* Played-at chip – biały background, czarna czcionka */
.efl-chip.efl-played-at{
  background:#ffffff;
  color:#000000;
}


/* EFL User Played: mobile stacked team names */
@media (max-width: 640px){
  .efl-match-card .efl-teams{
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:4px;
  }
  .efl-match-card .efl-vs-text{
    text-transform:uppercase;
  }
}

/* Played-at chip – biały background, czarna czcionka */
.efl-chip.efl-played-at{
  background:#ffffff;
  color:#000000;
}

/* === EFL User Played 1.2.0 — Player Hub visual system === */
.efl-user-played-wrapper{
  --eflpm-card:#111;
  --eflpm-card-2:#171717;
  --eflpm-line:#2b2b2f;
  --eflpm-red:#ef4744;
  --eflpm-muted:#9b9ba1;
  --eflpm-green:#6fe05d;
  color:#fff;
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
.efl-user-played-wrapper *{box-sizing:border-box}
.eflpm-head{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin:0 0 18px;padding:22px 24px;border:1px solid var(--eflpm-line);border-radius:20px;background:linear-gradient(135deg,#151515 0%,#0a0a0a 62%,#190b0b 100%)}
.eflpm-head h2{margin:0;color:#fff;font-size:clamp(28px,4vw,42px);font-weight:900;letter-spacing:-.035em}
.eflpm-head p{margin:6px 0 0;color:var(--eflpm-muted);font-size:13px}
.eflpm-kicker{display:inline-block;margin-bottom:5px;color:#ff6966;text-transform:uppercase;letter-spacing:.12em;font-size:10px;font-weight:900}
.eflpm-mode-badge{display:inline-flex;align-items:center;justify-content:center;min-width:58px;height:40px;padding:0 14px;border-radius:12px;background:var(--eflpm-red);color:#fff;font-weight:950;font-size:12px;letter-spacing:.06em}
.eflpm-mode-badge.is-2v2{background:#163d16;border:1px solid #2f7429;color:#a5f493}

.efl-user-played-wrapper .efl-filters-form{margin:0 0 14px;padding:16px;border:1px solid var(--eflpm-line);border-radius:16px;background:#0d0d0f}
.efl-user-played-wrapper .efl-filters-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.efl-user-played-wrapper .efl-filter-field{min-width:0;position:relative}
.efl-user-played-wrapper .efl-filter-input{width:100%;height:44px;padding:0 13px;border:1px solid #35353a;border-radius:11px;background:#08080a;color:#fff;font-size:12px;text-align:left!important;outline:none}
.efl-user-played-wrapper .efl-filter-input:focus{border-color:var(--eflpm-red);box-shadow:0 0 0 2px rgba(239,71,68,.08)}
.efl-user-played-wrapper .efl-filter-input::placeholder{color:#7f7f86}
.efl-user-played-wrapper .efl-filter-dropdown{top:calc(100% + 6px);margin:0;max-height:250px;padding:6px;background:#101012;border:1px solid #34343a;border-radius:11px;box-shadow:0 18px 45px rgba(0,0,0,.45);z-index:50}
.efl-user-played-wrapper .efl-filter-option{padding:9px 10px;border-radius:8px;text-align:left;font-size:12px;color:#ddd}
.efl-user-played-wrapper .efl-filter-option:hover{background:#222226;color:#fff}
.efl-user-played-wrapper .efl-filters-actions{display:grid;grid-template-columns:1fr auto;gap:10px;margin-top:10px}
.efl-user-played-wrapper .efl-filter-submit,.efl-user-played-wrapper .efl-filter-reset{height:42px;border-radius:10px;font-size:12px;font-weight:900}
.efl-user-played-wrapper .efl-filter-submit{background:var(--eflpm-red);color:#fff;border:1px solid var(--eflpm-red)}
.efl-user-played-wrapper .efl-filter-submit:hover{background:#d83e3b}
.efl-user-played-wrapper .efl-filter-reset{width:auto;min-width:120px;padding:0 16px;background:#121214;color:#fff;border:1px solid #333338}
.efl-user-played-wrapper .efl-filter-reset:hover{border-color:#55555c}

.efl-user-played-wrapper .efl-match-cards{display:grid;grid-template-columns:repeat(var(--efl-match-cols,2),minmax(0,1fr));gap:12px}
.efl-user-played-wrapper .efl-match-card{margin:0;min-height:315px;padding:18px;border:1px solid var(--eflpm-line);border-radius:18px;background:linear-gradient(155deg,#151517 0%,#0d0d0f 100%);box-shadow:none;display:flex;flex-direction:column;justify-content:space-between;transition:.16s border-color,.16s transform}
.efl-user-played-wrapper .efl-match-card:hover{border-color:#45454b;transform:translateY(-1px)}
.efl-user-played-wrapper .efl-topchips{display:flex;justify-content:center;gap:6px;flex-wrap:wrap;margin-bottom:14px}
.efl-user-played-wrapper .efl-chip{padding:5px 8px;border-radius:999px;border:1px solid #3a3a40;background:#161618;color:#d8d8dc;font-size:9px;font-weight:800;line-height:1.2}
.efl-user-played-wrapper .efl-chip.efl-match-no{background:#2a1414;border-color:#65302e;color:#ff8b88}
.efl-user-played-wrapper .efl-chip.efl-played-at{background:#111;border-color:#39393f;color:#cfcfd4}
.efl-user-played-wrapper .efl-logos.efl-logos--score{display:grid;grid-template-columns:100px auto 100px;align-items:center;justify-content:center;gap:22px;margin:12px auto 14px}
.efl-user-played-wrapper .efl-logo-link{display:flex;align-items:center;justify-content:center;width:100px;height:100px;border-radius:18px;background:#0b0b0d;border:1px solid #29292e;overflow:hidden}
.efl-user-played-wrapper .efl-logo{width:86px;height:86px;object-fit:contain;background:transparent;border:0;border-radius:12px}
.efl-user-played-wrapper .efl-inline-score{display:flex;align-items:center;justify-content:center;gap:9px;min-width:86px;color:#fff;font-size:34px;font-weight:950;letter-spacing:-.04em}
.efl-user-played-wrapper .efl-colon{color:#74747b;font-weight:700}
.efl-user-played-wrapper .efl-match-card-head{margin:2px 0 16px}
.efl-user-played-wrapper .efl-teams{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:10px;color:#fff;font-size:13px;font-weight:850}
.efl-user-played-wrapper .efl-team{min-width:0;overflow-wrap:anywhere}
.efl-user-played-wrapper .efl-team--home{text-align:right}.efl-user-played-wrapper .efl-team--away{text-align:left}
.efl-user-played-wrapper .efl-vs-text{margin:0;color:#7f7f86;font-size:10px;font-weight:900;text-transform:uppercase}
.efl-user-played-wrapper .efl-actions{margin-top:auto}
.efl-user-played-wrapper .efl-actions .efl-btn{width:100%;min-width:0;padding:11px 14px;border:1px solid #63302e;border-radius:10px;background:#2a1414;color:#ff8b88!important;font-size:11px;font-weight:900;text-decoration:none!important;transition:.16s background,.16s border-color}
.efl-user-played-wrapper .efl-actions .efl-btn:hover{background:var(--eflpm-red);border-color:var(--eflpm-red);color:#fff!important}

.efl-user-played-wrapper .efl-pagination{gap:6px;margin-top:16px}
.efl-user-played-wrapper .efl-page-btn{min-width:38px;height:38px;padding:0 10px;border:1px solid #303035;border-radius:10px;background:#111113;color:#fff;font-size:11px;font-weight:850}
.efl-user-played-wrapper .efl-page-btn.is-active{background:var(--eflpm-red);border-color:var(--eflpm-red)}
.efl-user-played-wrapper .efl-page-btn:not(:disabled):hover{border-color:#55555b}

.eflpm-empty{grid-column:1/-1;display:flex;align-items:center;gap:14px;padding:24px;border:1px dashed #3a3a40;border-radius:16px;background:#0d0d0f;color:#aaa}
.eflpm-empty>span{width:48px;height:48px;flex:0 0 48px;display:flex;align-items:center;justify-content:center;border-radius:13px;background:#171719;font-size:22px}
.eflpm-empty b{display:block;color:#fff;font-size:14px}.eflpm-empty p{margin:4px 0 0;color:#8e8e95;font-size:11px;line-height:1.5}
.efl-user-played-state{padding:0}.efl-user-played-state .eflpm-empty{margin:0}

@media(max-width:900px){
  .efl-user-played-wrapper .efl-match-cards{grid-template-columns:1fr!important}
  .efl-user-played-wrapper .efl-filters-row{grid-template-columns:1fr 1fr}
}
@media(max-width:620px){
  .eflpm-head{align-items:flex-start;padding:18px;flex-direction:column}
  .efl-user-played-wrapper .efl-filters-row{grid-template-columns:1fr}
  .efl-user-played-wrapper .efl-filters-actions{grid-template-columns:1fr}
  .efl-user-played-wrapper .efl-filter-reset{width:100%}
  .efl-user-played-wrapper .efl-logos.efl-logos--score{grid-template-columns:74px auto 74px;gap:12px}
  .efl-user-played-wrapper .efl-logo-link{width:74px;height:74px;border-radius:14px}
  .efl-user-played-wrapper .efl-logo{width:62px;height:62px}
  .efl-user-played-wrapper .efl-inline-score{font-size:28px;min-width:68px}
  .efl-user-played-wrapper .efl-teams{display:flex;flex-direction:column;gap:4px}
  .efl-user-played-wrapper .efl-team--home,.efl-user-played-wrapper .efl-team--away{text-align:center}
}
/* === /EFL User Played 1.2.0 === */
