.elementor-5491 .elementor-element.elementor-element-ae275d4{--display:flex;}/* Start custom CSS for html, class: .elementor-element-d3896ba *//* =====================================================
   MAIN
===================================================== */

.ffm-recommendations {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px;
  box-sizing: border-box;
  font-family: inherit;
}


/* =====================================================
   HEADER
===================================================== */

.ffm-rec-header {
  text-align: center;
  margin-bottom: 35px;
}

.ffm-rec-header h1 {
  margin: 0 0 12px;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.1;
}

.ffm-rec-header p {
  max-width: 720px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.7;
}


/* =====================================================
   STATS
===================================================== */

.ffm-rec-stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 25px;
}

.ffm-stat-card {
  padding: 18px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
}

.ffm-stat-label {
  display: block;
  margin-bottom: 7px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  opacity: 0.6;
}

.ffm-stat-card strong {
  display: block;
  font-size: 21px;
  line-height: 1.25;
}

.ffm-stat-card small {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  line-height: 1.4;
  opacity: 0.6;
}


/* =====================================================
   GAMEWEEK POSTS
===================================================== */

.ffm-rec-posts {
  margin-bottom: 25px;
  padding: 18px 20px;
  border-radius: 14px;
  background: rgba(107, 79, 163, 0.06);
  border: 1px solid rgba(107, 79, 163, 0.12);
}

.ffm-rec-posts-label {
  display: block;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: #6b4fa3;
}

.ffm-rec-post-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.ffm-rec-post-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 8px;
  background: #ffffff;
  color: #2c2038;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid rgba(0, 0, 0, 0.08);
  transition: 0.2s ease;
}

.ffm-rec-post-links a:hover {
  background: #6b4fa3;
  color: #ffffff;
}


/* =====================================================
   FILTERS
===================================================== */

.ffm-rec-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.ffm-search input {
  width: 260px;
  max-width: 100%;
  padding: 11px 14px;
  border-radius: 9px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  font-size: 14px;
  box-sizing: border-box;
}

.ffm-filter-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.ffm-filter-group select {
  padding: 10px 12px;
  border-radius: 9px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #ffffff;
  font-size: 13px;
}


/* =====================================================
   TABLE
===================================================== */

.ffm-rec-table-wrap {
  border-radius: 16px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.ffm-rec-table-scroll {
  overflow-x: auto;
}

.ffm-rec-table {
  width: 100%;
  min-width: 850px;
  border-collapse: collapse;
  font-size: 13px;
}

.ffm-rec-table thead {
  background: #2c2038;
  color: #ffffff;
}

.ffm-rec-table th {
  padding: 13px 14px;
  text-align: left;
  white-space: normal;
  font-size: 11px;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ffm-rec-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  white-space: nowrap;
}

.ffm-rec-table tbody tr {
  transition: background 0.2s ease;
}

.ffm-rec-table tbody tr:hover {
  background: rgba(107, 79, 163, 0.06);
}

.ffm-rec-table tbody tr:last-child td {
  border-bottom: none;
}


/* =====================================================
   TABLE COLUMN SIZING
===================================================== */

.ffm-rec-table th:nth-child(1),
.ffm-rec-table td:nth-child(1) {
  width: 75px;
}

.ffm-rec-table th:nth-child(2),
.ffm-rec-table td:nth-child(2) {
  min-width: 145px;
}

.ffm-rec-table th:nth-child(3),
.ffm-rec-table td:nth-child(3) {
  width: 50px;
}

.ffm-rec-table th:nth-child(5),
.ffm-rec-table td:nth-child(5) {
  width: 65px;
}

.ffm-rec-table th:nth-child(6),
.ffm-rec-table td:nth-child(6) {
  width: 105px;
  text-align: center;
}

.ffm-rec-table th:nth-child(7),
.ffm-rec-table td:nth-child(7) {
  width: 75px;
  text-align: center;
}


/* =====================================================
   POSITION BADGES
===================================================== */

.ffm-position {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  padding: 4px 7px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
}

.pos-gk {
  background: #fff3cd;
}

.pos-def {
  background: #dbeafe;
}

.pos-mid {
  background: #ede9fe;
}

.pos-fwd {
  background: #fee2e2;
}


/* =====================================================
   RANK
===================================================== */

.ffm-rank {
  font-weight: 700;
}

.rank-top {
  color: #6b4fa3;
}


/* =====================================================
   RATINGS
===================================================== */

.ffm-rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 9px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 700;
}

.rating-amazing {
  background: #f3e8ff;
}

.rating-good {
  background: #dcfce7;
}

.rating-meh {
  background: #fef3c7;
}

.rating-flop {
  background: #fee2e2;
}


/* =====================================================
   NOTE
===================================================== */

.ffm-rec-note {
  margin-top: 20px;
  padding: 18px 20px;
  border-left: 4px solid #6b4fa3;
  background: rgba(107, 79, 163, 0.06);
  border-radius: 10px;
}

.ffm-rec-note strong:first-child {
  font-size: 14px;
}

.ffm-rec-note p {
  margin: 8px 0 0;
  line-height: 1.6;
}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 1000px) {

  .ffm-rec-stats {
    grid-template-columns: repeat(3, 1fr);
  }

}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 700px) {

  .ffm-recommendations {
    padding: 20px 12px;
  }


  /* HEADER */

  .ffm-rec-header {
    margin-bottom: 25px;
  }

  .ffm-rec-header h1 {
    font-size: 32px;
  }

  .ffm-rec-header p {
    font-size: 15px;
    line-height: 1.6;
  }


  /* STATS */

  .ffm-rec-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .ffm-stat-card {
    padding: 15px;
  }

  .ffm-stat-card strong {
    font-size: 18px;
  }


  /* POSTS */

  .ffm-rec-posts {
    padding: 15px;
  }

  .ffm-rec-post-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .ffm-rec-post-links a {
    padding: 9px 8px;
  }


  /* FILTERS */

  .ffm-rec-controls {
    align-items: stretch;
  }

  .ffm-search {
    width: 100%;
  }

  .ffm-search input {
    width: 100%;
  }

  .ffm-filter-group {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .ffm-filter-group select {
    width: 100%;
  }


  /* =================================================
     MOBILE PLAYER CARDS
  ================================================= */

  .ffm-rec-table-wrap {
    overflow: visible;
    border-radius: 14px;
  }

  .ffm-rec-table-scroll {
    overflow: visible;
  }

  .ffm-rec-table {
    min-width: 0;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
  }

  .ffm-rec-table thead {
    display: none;
  }

  .ffm-rec-table tbody {
    display: block;
    padding: 0 10px 10px;
  }

  .ffm-rec-table tbody tr {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
      "week player rating"
      "pos team league"
      "points points rank";
    gap: 8px 10px;
    padding: 15px;
    margin: 0;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  }

  .ffm-rec-table tbody tr:hover {
    background: #ffffff;
  }

  .ffm-rec-table td {
    width: auto !important;
    min-width: 0;
    padding: 0;
    border: none;
    white-space: normal;
    text-align: left !important;
  }


  /* WEEK */

  .ffm-rec-table td:nth-child(1) {
    grid-area: week;
    align-self: center;
    font-size: 11px;
    font-weight: 700;
    color: #6b4fa3;
  }


  /* PLAYER */

  .ffm-rec-table td:nth-child(2) {
    grid-area: player;
    align-self: center;
    min-width: 0;
  }

  .ffm-rec-table td:nth-child(2) strong {
    display: block;
    font-size: 16px;
    line-height: 1.2;
  }


  /* RATING */

  .ffm-rec-table td:nth-child(8) {
    grid-area: rating;
    justify-self: end;
  }


  /* POSITION */

  .ffm-rec-table td:nth-child(3) {
    grid-area: pos;
  }


  /* TEAM */

  .ffm-rec-table td:nth-child(4) {
    grid-area: team;
    align-self: center;
    font-size: 12px;
    opacity: 0.75;
  }


  /* LEAGUE */

  .ffm-rec-table td:nth-child(5) {
    grid-area: league;
    justify-self: end;
    align-self: center;
    font-size: 11px;
    font-weight: 700;
    opacity: 0.65;
  }


  /* POINTS */

  .ffm-rec-table td:nth-child(6) {
    grid-area: points;
    padding-top: 8px;
    margin-top: 2px;
    border-top: 1px solid rgba(0, 0, 0, 0.07);
    font-size: 12px;
    color: #555;
  }

  .ffm-rec-table td:nth-child(6)::before {
    content: "Points since recommended: ";
  }

  .ffm-rec-table td:nth-child(6) strong {
    font-size: 15px;
    color: #2c2038;
  }


  /* RANK */

  .ffm-rec-table td:nth-child(7) {
    grid-area: rank;
    justify-self: end;
    align-self: end;
    font-size: 12px;
  }

  .ffm-rec-table td:nth-child(7)::before {
    content: "Rank ";
    color: #777;
    font-weight: 400;
  }


  /* BADGES */

  .ffm-position {
    min-width: 34px;
  }

  .ffm-rating {
    padding: 5px 8px;
    font-size: 10px;
  }


  /* NOTE */

  .ffm-rec-note {
    padding: 16px;
    font-size: 14px;
  }

}


/* =====================================================
   SMALL MOBILE
===================================================== */

@media (max-width: 420px) {

  .ffm-rec-stats {
    grid-template-columns: 1fr;
  }

  .ffm-rec-post-links {
    grid-template-columns: repeat(3, 1fr);
  }

  .ffm-rec-table tbody tr {
    padding: 14px;
  }

}/* End custom CSS */