.scout-modal.hidden { display: none; }
    
      .scout-modal {
        position: fixed;
        inset: 0;
        z-index: 10020;
      }
    
      .scout-modal-overlay {
        position: absolute;
        inset: 0;
        background: rgba(0,0,0,0.65);
        backdrop-filter: blur(6px);
      }
    
      .scout-modal-card {
        position: relative;
        box-sizing: border-box;
        width: min(1240px, calc(100% - 24px));
        max-height: 88vh;
        margin: 3vh auto 0;
  background: linear-gradient(180deg, rgba(1,12,54,0.96), rgba(13,16,32,0.98));
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px;
  box-shadow: 0 22px 60px rgba(0,0,0,0.55);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
    
      .scout-modal-top {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 14px;
        padding: 16px;
        border-bottom: 1px solid rgba(255,255,255,0.10);
      }
    
      .scout-modal-player {
        display: flex;
        gap: 12px;
        min-width: 0;
      }
    
      .scout-modal-avatar {
        width: 56px;
        height: 56px;
        border-radius: 14px;
        overflow: hidden;
        background: rgba(255,255,255,0.06);
        border: 1px solid rgba(255,255,255,0.12);
        flex: 0 0 auto;
      }
    
      .scout-modal-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
      }
    
      .scout-modal-title-wrap {
        min-width: 0;
      }
    
      .scout-modal-name {
        font-size: 20px;
        font-weight: 900;
        line-height: 1.1;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
      }
    
      .scout-modal-sub {
        margin-top: 4px;
        font-size: 13px;
        opacity: 0.78;
      }
    
      .scout-modal-chips {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 10px;
      }
    
      .scout-chip {
        display: inline-flex;
        align-items: center;
        padding: 6px 10px;
        border-radius: 999px;
        font-size: 12px;
        font-weight: 700;
        border: 1px solid rgba(255,255,255,0.12);
        background: rgba(255,255,255,0.05);
      }
    
      .scout-modal-close {
        width: 38px;
        height: 38px;
        border-radius: 12px;
        border: 1px solid rgba(255,255,255,0.14);
        background: rgba(255,255,255,0.06);
        color: #fff;
        font-size: 16px;
        cursor: pointer;
        flex: 0 0 auto;
      }
    
      .scout-modal-close:hover {
        filter: brightness(1.08);
      }
    
      .scout-modal-body {
  padding: 16px;
  overflow-y: auto;
  min-height: 0;
}
    
.scout-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr 1fr;
  gap: 12px;
  align-items: start;
}

.scout-grid > .scout-panel {
  min-width: 0;
}
    
.scout-panel {
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
  border-radius: 16px;
  padding: 10px;
}
    
      .scout-panel-title {
        font-size: 13px;
        font-weight: 900;
        margin-bottom: 10px;
        opacity: 0.95;
        letter-spacing: 0.2px;
      }
    
      .scout-overview-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
      }
    
      .scout-stat {
        border: 1px solid rgba(255,255,255,0.08);
        border-radius: 12px;
        background: rgba(0,0,0,0.16);
        padding: 10px;
      }
    
      .scout-stat-label {
        font-size: 12px;
        opacity: 0.72;
      }
    
      .scout-stat-value {
        margin-top: 5px;
        font-size: 18px;
        font-weight: 900;
      }
    
      .scout-fixtures-list {
        display: flex;
        flex-direction: column;
        gap: 8px;
      }
    
      .scout-fixture-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.16);
}
    
      .scout-fixture-left {
        display: flex;
        flex-direction: column;
        gap: 3px;
      }
    
      .scout-fixture-main {
        font-weight: 800;
      }
    
      .scout-fixture-sub {
        font-size: 12px;
        opacity: 0.72;
      }
    
      .scout-fixture-right {
        font-size: 12px;
        font-weight: 800;
        opacity: 0.86;
        white-space: nowrap;
      }
    
      .scout-notes {
        line-height: 1.45;
        opacity: 0.92;
        font-size: 14px;
      }
    
      @media (max-width: 1100px) {
  .scout-grid {
    grid-template-columns: 1fr;
  }

  .scout-overview-grid {
    grid-template-columns: 1fr 1fr;
  }

  .scout-modal-card {
    width: min(900px, calc(100% - 20px));
    max-height: 90vh;
    margin: 2vh auto 0;
  }
}

@media (max-width: 700px) {
  .scout-overview-grid {
    grid-template-columns: 1fr 1fr;
  }

  .scout-modal-card {
    width: calc(100% - 16px);
    max-height: 92vh;
    margin: 1.5vh auto 0;
  }
}

.scout-modal-card {
  background:
    radial-gradient(circle at top left, rgba(0,255,157,0.10), transparent 28%),
    radial-gradient(circle at top right, rgba(0,153,255,0.10), transparent 24%),
    linear-gradient(180deg, rgba(7,18,66,0.98), rgba(13,16,32,0.99));
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 24px 70px rgba(0,0,0,0.60);
}

.scout-panel {
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

.scout-panel-title {
  color: #9fffd7;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.25px;
}

.scout-stat {
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(0,0,0,0.14));
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.scout-stat-value {
  color: #ffffff;
}

.scout-stat-form .scout-stat-value { color: #7CFFB2; }
.scout-stat-selected .scout-stat-value { color: #8AD8FF; }
.scout-stat-points .scout-stat-value { color: #FFD86B; }
.scout-stat-minutes .scout-stat-value { color: #D6C2FF; }
.scout-stat-attacking .scout-stat-value { color: #FF9DB0; }
.scout-stat-defensive .scout-stat-value { color: #9BE7A4; }

.scout-fixture-row {
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(0,0,0,0.14));
  border: 1px solid rgba(255,255,255,0.10);
  transition: transform 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
}

.scout-fixture-row:hover {
  transform: translateY(-1px);
  border-color: rgba(0,255,157,0.25);
  box-shadow: 0 10px 24px rgba(0,0,0,0.22);
}

.scout-difficulty-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.scout-fixture-status {
  font-size: 11px;
  font-weight: 900;
  opacity: 0.92;
  white-space: nowrap;
}

.scout-notes {
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(0,0,0,0.14));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 12px;
}

.gwpts-label {
  opacity: 0.7;
  margin-right: 6px;
}

.gwpts-raw {
  font-weight: 700;
  color: #fff;
}

.gwpts-hit {
  margin: 0 6px;
  font-weight: 800;
  color: #ff6b6b;
}

.gwpts-equals {
  margin: 0 4px;
  opacity: 0.6;
}

.gwpts-total {
  font-weight: 900;
  color: #00ff9d;
}

.gwpts-muted {
  opacity: 0.6;
}

.chip-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.chip-disabled {
  opacity: 0.45;
}

.chip-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.chip-disabled {
  filter: grayscale(0.15);
}

/* =========================
   SCOUT REPORT MODAL — TABBED LAYOUT
   ========================= */

   .scout-modal-card--tabs {
  position: relative;
  width: min(760px, calc(100% - 24px));
  max-height: 86vh;
  overflow: hidden;
  background: linear-gradient(180deg, #061132 0%, #081a48 100%);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  box-shadow: 0 24px 70px rgba(0,0,0,0.5);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.scout-close--floating {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
}

.scout-hero {
  display: flex;
  gap: 18px;
  align-items: center;
  padding-right: 40px;
}

.scout-hero-avatar {
  width: 104px;
  height: 132px;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  flex: 0 0 auto;
}

.scout-hero-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

.scout-hero-main {
  min-width: 0;
  flex: 1 1 auto;
}

.scout-hero-name {
  font-size: 28px;
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 4px;
}

.scout-hero-sub {
  font-size: 14px;
  opacity: 0.78;
  margin-bottom: 12px;
}

.scout-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.scout-hero-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  background: rgba(0,255,157,0.10);
  color: #00ff9d;
  border: 1px solid rgba(0,255,157,0.28);
}

.scout-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.scout-tab {
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  color: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s ease;
}

.scout-tab:hover {
  filter: brightness(1.05);
}

.scout-tab.active {
  background: #00ff9d;
  color: #03120c;
  border-color: transparent;
  box-shadow: 0 10px 24px rgba(0,255,157,0.20);
}

.scout-tab-panels {
  min-height: 0;
  flex: 1 1 auto;
  overflow: hidden;
}

.scout-tab-panel {
  display: none;
  height: 100%;
  overflow-y: auto;
  padding-right: 4px;
}

.scout-tab-panel.active {
  display: block;
}

.scout-tab-panel::-webkit-scrollbar {
  width: 8px;
}

.scout-tab-panel::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.14);
  border-radius: 999px;
}

.scout-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.scout-overview-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 10px 12px;
}

.scout-overview-label {
  font-size: 11px;
  opacity: 0.72;
  margin-bottom: 4px;
}

.scout-overview-value {
  font-size: 17px;
  font-weight: 900;
  line-height: 1.1;
}

.scout-notes {
  margin-top: 14px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  font-size: 13px;
  line-height: 1.55;
  opacity: 0.92;
}

.scout-notes-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.scout-notes-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 8px;
  min-height: 126px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.scout-notes-title {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.2px;
  color: #00ff9d;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.scout-notes-body {
  font-size: 13px;
  line-height: 1.55;
  opacity: 0.92;
  white-space: pre-line;
}


@media (max-width: 760px) {
  /* Option B: Next Match full-width on top, Last 3 + Next 3 side by side below. */
  .scout-notes-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  /* Next Match spans both columns (full-width top row). */
  .scout-notes-card--feature {
    grid-column: 1 / -1;
  }

  .scout-notes-card {
    min-height: auto;
    padding: 8px 6px;
  }

  .scout-notes-title {
    font-size: 10px;
    margin-bottom: 6px;
  }

  .scout-notes-body {
    font-size: 12px;
  }

  /* Keep Last 3 / Next 3 fixtures readable in their now-narrower columns. */
  .scout-notes-card--stacked .scout-mini-list {
    gap: 6px;
  }

  .scout-mini-match--compact {
    min-height: auto;
    padding: 6px 5px;
  }

  .scout-mini-badge--large {
    width: 24px;
    height: 24px;
  }
}

@media (max-width: 640px) {
    .scout-modal {
      display: flex;
      flex-direction: column;
      justify-content: flex-start;
      padding: 72px 8px 8px;
      overflow: hidden;
    }

    .scout-modal-card--tabs {
      padding: 14px;
      max-height: calc(100dvh - 80px);
      height: auto;
      width: 100%;
      margin: 0 auto;
      gap: 12px;
    }
  
    .scout-hero {
      align-items: center;
      gap: 12px;
      padding-right: 32px;
    }
  
    .scout-hero-avatar {
      width: 56px;
      height: 70px;
      border-radius: 12px;
    }
  
    .scout-hero-name {
      font-size: 18px;
    }
  
    .scout-hero-sub {
      font-size: 12px;
      margin-bottom: 8px;
    }
  
    .scout-hero-badges {
      gap: 5px;
    }
  
    .scout-hero-badge {
      font-size: 11px;
      padding: 3px 8px;
    }
  
    .scout-tabs {
      grid-template-columns: repeat(3, 1fr);
      gap: 6px;
    }
  
    .scout-tab {
      padding: 7px 4px;
      font-size: 12px;
      border-radius: 9px;
    }
  
    .scout-overview-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 8px;
    }
  
    .scout-tab-panels {
      position: relative;
    }
  
    .scout-tab-panels::after {
      content: "";
      position: absolute;
      left: 0;
      right: 0;
      bottom: 0;
      height: 26px;
      background: linear-gradient(180deg, rgba(8,26,72,0), #081a48);
      pointer-events: none;
    }
  
    .scout-tab-panel {
      padding-bottom: 20px;
    }
  }

.scout-notes-grid--enhanced {
  align-items: stretch;
}

.scout-notes-card--feature,
.scout-notes-card--stacked {
  min-height: 138px;
}

.scout-mini-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.scout-mini-list--compact {
  gap: 8px;
}

.scout-mini-match,
.scout-mini-fixture--single {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 10px;
  min-width: 0;
}

.scout-mini-match--compact {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 116px;
  padding: 7px 8px 6px;
  text-align: center;
}

.scout-mini-fixture--single {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 132px;
}

.scout-mini-badge-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

.scout-mini-badge {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex: 0 0 auto;
}

.scout-mini-badge--large {
  width: 34px;
  height: 34px;
  filter: drop-shadow(0 2px 5px rgba(0,0,0,0.35));
}

.scout-mini-code {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  text-align: center;
  letter-spacing: 0.3px;
  margin-top: 2px;
  margin-bottom: 2px;
}

.scout-mini-meta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 3px;
}

.scout-notes-card .scout-notes-body {
  margin-top: -20px;
}

.scout-mini-fixture-top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.scout-mini-fixture-main {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex-wrap: wrap;
}

.scout-mini-opp {
  font-weight: 800;
  font-size: 13px;
  line-height: 1.2;
}

.scout-mini-ha {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  font-size: 11px;
  font-weight: 900;
  opacity: 0.92;
}

.scout-mini-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.scout-mini-pill--neutral {
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.88);
}

.scout-mini-pill--soft {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.84);
}

.scout-mini-fixture-sub {
  margin-top: 4px;
  font-size: 12px;
  opacity: 0.82;
  line-height: 1.35;
}

.scout-note-empty {
  font-size: 13px;
  opacity: 0.78;
  line-height: 1.5;
}

.scout-notes-card--stacked .scout-mini-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 1100px) {
  .scout-notes-card--stacked .scout-mini-list,
  .scout-mini-list {
    grid-template-columns: 1fr;
  }

  .scout-mini-match--compact,
  .scout-mini-fixture--single {
    min-height: auto;
  }
}

.scout-mini-fixture-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.scout-mini-badge {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex: 0 0 auto;
}

.scout-mini-opp {
  font-weight: 800;
  font-size: 13px;
  white-space: nowrap;
}

.scout-mini-ha {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  font-size: 11px;
  font-weight: 900;
  opacity: 0.92;
}

.scout-mini-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.scout-mini-pill--neutral {
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.88);
}

.scout-mini-fixture-sub {
  margin-top: 8px;
  font-size: 12px;
  opacity: 0.8;
  line-height: 1.4;
}

.scout-note-empty {
  font-size: 13px;
  opacity: 0.78;
  line-height: 1.5;
}

@media (max-width: 760px) {
  /* Keep the Next Match fixture's top row horizontal (opponent + FDR inline). */
  .scout-mini-fixture-top {
    flex-direction: row;
    align-items: center;
  }
}

.scout-fixture-main--badge {
  display: flex;
  align-items: center;
  gap: 10px;
}

.scout-fixture-badge {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
}

.scout-fixture-main--badge {
  display: flex;
  align-items: center;
  gap: 10px;
}

.scout-fixture-badge {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
}

.scout-difficulty-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.scout-difficulty-badge--neutral {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.85);
}

.ffb-summary-strip { margin-top: 12px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.ffb-sum-cell { background: #12182b; border: 1px solid rgba(255,255,255,0.06); border-radius: 12px; padding: 10px 12px; }
.ffb-sum-label { font-size: 11px; color: #8b93a7; margin-bottom: 8px; }
.ffb-sum-value { font-size: 18px; font-weight: 800; color: #e8ecf4; }
.ffb-sum-accent { color: #00ff9d; }
.ffb-sum-status { font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 999px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.10); color: #c3cbd9; }
@media (max-width: 560px) {
  .ffb-summary-strip { gap: 6px; }
  .ffb-sum-cell { padding: 8px 6px; }
  .ffb-sum-label { font-size: 9px; margin-bottom: 5px; }
  .ffb-sum-value { font-size: 15px; }

  .chips-list { flex-wrap: nowrap; gap: 6px; }
  .chip-btn { min-width: 0; padding: 10px 4px; }
  .chip-btn .chip-icon { font-size: 17px; }
  .chip-btn .chip-name { font-size: 10.5px; }
  .chip-btn small { font-size: 8px; padding: 2px 5px; letter-spacing: 0; }
}

#gw-points-bar .gwpts-label, #gw-points-bar .gwpts-equals, #gw-points-bar .gwpts-raw { display: none; }
#gw-points-bar .gwpts-total { color: #00ff9d; font-weight: 800; }
#gw-points-bar .gwpts-hit { color: #ff6b6b; font-size: 12px; font-weight: 700; margin-right: 4px; }

.rhs-rank-stats { display:flex; gap:8px; margin-top:12px; }
.rhs-rank-stats .rhs-rank-points { flex:1; margin-top:0; }

/* ===== Player picker modal refresh ===== */
#player-modal .modal-content { background:#12182b; border:1px solid rgba(255,255,255,0.08); border-radius:16px; padding:0; overflow:hidden; max-width:460px; width:92%; }
#player-modal .pm2-head { display:flex; align-items:center; justify-content:space-between; padding:14px 16px; border-bottom:1px solid rgba(255,255,255,0.06); }
#player-modal .pm2-title { font-size:15px; font-weight:800; color:#e8ecf4; }
#player-modal .pm2-x { width:28px; height:28px; border-radius:8px; border:none; background:rgba(255,255,255,0.06); color:#c3cbd9; font-size:14px; cursor:pointer; }
#player-modal .player-controls { padding:12px 16px; display:flex; flex-wrap:wrap; gap:8px; }
#player-modal .player-controls input, #player-modal .player-controls select { background:#0e1424; border:1px solid rgba(255,255,255,0.08); border-radius:10px; padding:9px 12px; color:#e8ecf4; font-size:13px; }
#player-modal .player-controls input { flex:1 1 100%; }
#player-modal .player-controls select { flex:1; }
#player-modal #player-list { max-height:55vh; overflow:auto; padding:0; }
#player-modal .player-row { display:flex; align-items:center; gap:12px; padding:10px 16px; border-top:1px solid rgba(255,255,255,0.05); cursor:pointer; transition:background 0.12s; }
#player-modal .player-row:hover { background:rgba(255,255,255,0.03); }
#player-modal .player-left { display:flex; align-items:center; gap:12px; flex:1; min-width:0; }
#player-modal .pm2-kitwrap { width:34px; height:32px; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
#player-modal .modal-headshot { width:34px; height:34px; border-radius:50%; object-fit:cover; object-position:top; }
#player-modal .modal-headshot.is-kit { width:34px; height:32px; border-radius:0; object-fit:contain; filter:drop-shadow(0 2px 3px rgba(0,0,0,0.4)); }
#player-modal .player-meta { min-width:0; }
#player-modal .player-name { font-size:13px; font-weight:800; color:#eef2f8; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
#player-modal .player-sub { font-size:11px; color:#8b93a7; margin-top:2px; }
#player-modal .pm2-stat { text-align:right; flex-shrink:0; }
#player-modal .pm2-form { font-size:12px; font-weight:800; color:#00ff9d; }
#player-modal .pm2-formlbl { font-size:9px; color:#8b93a7; }
#player-modal .player-price { font-size:11px; font-weight:800; padding:3px 8px; border-radius:999px; background:rgba(0,255,157,0.12); color:#00ff9d; flex-shrink:0; }
#player-modal .player-price.over { background:rgba(255,107,107,0.12); color:#ff6b6b; }
#player-modal .pm2-add { width:28px; height:28px; border-radius:50%; background:#00ff9d; color:#04231a; font-size:18px; font-weight:700; line-height:26px; text-align:center; flex-shrink:0; }
#player-modal .pm2-add.dim { background:rgba(255,255,255,0.08); color:#6b7280; }
@media (max-width:560px) {
  #player-modal .modal-content { position:fixed; left:0; right:0; bottom:0; top:auto; width:100%; max-width:none; border-radius:18px 18px 0 0; max-height:88vh; margin:0; }
  #player-modal #player-list { max-height:60vh; }
  #player-modal .player-row { padding:12px 16px; }
  #player-modal .pm2-add { width:32px; height:32px; line-height:30px; }
}

/* =====================================================================
   ONE-SCREEN SQUAD LAYOUT
   Chips bar -> pitch -> bench fits in one screenshot (~758px tall), so the
   header/budget row can scroll off above it.
   Targets the classes squad.js actually renders:
     .slot > .slot-headshot > img.slot-headshot-img  +  .slot-nameplate
   Appended last so it beats the earlier duplicate .slot / .bench rules.
   ===================================================================== */

/* --- chips: one compact strip instead of four tall cards --- */
.chips-bar { padding: 4px 0 !important; margin: 0 0 6px !important; }
.chips-list { display: flex !important; gap: 8px !important; flex-wrap: nowrap !important; }
.chip-btn {
  flex: 1 1 0 !important;
  min-width: 0 !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  padding: 7px 8px !important;
  min-height: 0 !important;
}
.chip-btn .chip-icon { font-size: 14px !important; margin: 0 !important; }
.chip-btn .chip-name { font-size: 12px !important; white-space: nowrap !important; }
.chip-btn small { font-size: 9px !important; opacity: .6 !important; white-space: nowrap !important; }

/* --- pitch: tight rows, no big position headings --- */
.pitch { padding: 6px 8px !important; }
.position { margin-bottom: 0 !important; position: relative; padding-left: 22px; }
.position h3 { display: none !important; }
.slots { gap: 13px !important; margin: 4px 0 !important; }

/* tiny left-edge position labels, from data-pos so no JS changes needed */
.position::before {
  content: attr(data-pos);
  position: absolute; left: 2px; top: 50%; transform: translateY(-50%);
  font-size: 9px; font-weight: 900; letter-spacing: .5px;
  color: rgba(255,255,255,.45); pointer-events: none;
}

/* --- THE PLAYER CARD (real classes) — same kit images, resized box --- */
.slot { width: 92px !important; height: auto !important; padding-bottom: 3px; }
.slot-headshot { width: 66px !important; height: 72px !important; border-radius: 8px !important; }
.slot-headshot img { object-fit: contain !important; object-position: center !important; }
.slot-nameplate { margin-top: 1px !important; padding: 2px 2px 0 !important; }
.slot-name  { font-size: 13px !important; line-height: 1.2 !important; }
.slot-price { font-size: 11px !important; line-height: 1.2 !important; }
.slot-score { font-size: 11px !important; line-height: 1.2 !important; margin-top: 1px !important; }
.remove-btn { font-size: 15px !important; }
.transfer-btn { width: 21px !important; height: 21px !important; font-size: 11px !important; line-height: 21px !important; }
.badge { width: 20px !important; height: 20px !important; font-size: 10px !important; line-height: 20px !important; }

/* --- bench strip: attached to the bottom of the pitch --- */
.bench-strip {
  display: flex; align-items: center; gap: 10px;
  background: #0b1122;
  border: 1px solid rgba(255,255,255,0.07);
  border-top: none;
  border-radius: 0 0 14px 14px;
  padding: 8px 10px;
  margin: -1px 0 8px;
}
.bench-label {
  font-size: 10px; font-weight: 900; letter-spacing: .7px; text-transform: uppercase;
  color: #7d879c; writing-mode: vertical-rl; transform: rotate(180deg); flex-shrink: 0;
}
.bench {
  flex: 1 !important;
  gap: 13px !important;
  margin-bottom: 0 !important;
  justify-content: center !important;
}

/* --- slim action row --- */
#confirm-squad-btn { padding: 8px 18px !important; font-size: 13px !important; border-radius: 999px !important; }
#edit-squad-btn { padding: 8px 16px !important; font-size: 13px !important; border-radius: 999px !important; }
#formation-indicator {
  font-size: 10px !important; margin: 0 0 1px !important;
  text-transform: uppercase; letter-spacing: .4px;
}

@media (max-width: 768px) {
  .chip-btn { flex-direction: column !important; gap: 1px !important; padding: 5px 3px !important; }
  .chip-btn .chip-name { font-size: 9px !important; }
  .chip-btn small { font-size: 7.5px !important; }

  /* let cards shrink so 4- and 5-across rows both fit a 390px phone */
  .slot { flex: 1 1 0 !important; width: auto !important; min-width: 0 !important; max-width: 84px !important; }
  .slot-headshot { width: 52px !important; height: 58px !important; }
  .slot-name  { font-size: 11px !important; }
  .slot-price { font-size: 9.5px !important; }
  .slot-score { font-size: 9.5px !important; }
  .transfer-btn { width: 18px !important; height: 18px !important; line-height: 18px !important; font-size: 10px !important; }
  .badge { width: 17px !important; height: 17px !important; line-height: 17px !important; font-size: 9px !important; }

  .slots { gap: 4px !important; }
  .bench { gap: 4px !important; }
  .position { padding-left: 0 !important; }
  .position::before { display: none !important; }
  .bench-strip { flex-direction: column; gap: 4px; align-items: stretch; padding: 8px 6px; }
  .bench-label { writing-mode: horizontal-tb; transform: none; text-align: center; }
}

/* Fix: .scout-notes-body has margin-top:-20px to pull tall mini-lists up under
   the title. A single-line empty state has nothing to absorb it, so the text
   landed on top of the heading. Cancel the pull for empty states only. */
   .scout-notes-card .scout-notes-body > .scout-note-empty {
  display: block;
  margin-top: 26px;
}
#player-points-modal.hidden { display: none; }

#player-points-modal {
position: fixed;
inset: 0;
z-index: 10030; /* above .scout-modal (10020) */
}

.ppm-overlay {
position: absolute;
inset: 0;
background: rgba(0,0,0,0.65);
}

.ppm-card {
position: relative;
width: min(520px, calc(100% - 24px));
margin: 60px auto;
background: #010c36;
border: 1px solid rgba(255,255,255,0.12);
border-radius: 14px;
padding: 14px;
box-shadow: 0 18px 60px rgba(0,0,0,0.45);
}

.ppm-header {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 12px;
padding-bottom: 10px;
border-bottom: 1px solid rgba(255,255,255,0.10);
}

.ppm-title { font-size: 18px; font-weight: 800; }
.ppm-sub { font-size: 13px; opacity: 0.8; margin-top: 2px; }

.ppm-close {
background: transparent;
border: 1px solid rgba(255,255,255,0.18);
color: #fff;
border-radius: 10px;
padding: 6px 10px;
cursor: pointer;
}

.ppm-body { padding-top: 12px; }

.ppm-total {
font-weight: 800;
margin-bottom: 10px;
padding: 8px 10px;
border-radius: 10px;
background: rgba(255,255,255,0.05);
border: 1px solid rgba(255,255,255,0.08);
}

.ppm-rows { display: flex; flex-direction: column; gap: 8px; }

.ppm-row {
display: flex;
justify-content: space-between;
gap: 10px;
padding: 8px 10px;
border-radius: 10px;
background: rgba(255,255,255,0.04);
border: 1px solid rgba(255,255,255,0.06);
}

.ppm-row-left { opacity: 0.95; }
.ppm-row-right { font-weight: 800; }

.ppm-empty { opacity: 0.75; padding: 10px; }

/* =========================
 Player Points Modal (PPM)
========================= */
.ppm.hidden { display: none; }

.ppm {
position: fixed;
inset: 0;
z-index: 10030; /* above scout modal (10020) */
}

.ppm-overlay {
position: absolute;
inset: 0;
background: rgba(0,0,0,.55);
backdrop-filter: blur(6px);
}

.ppm-card {
position: relative;
width: min(720px, calc(100% - 28px));
margin: 7vh auto 0;
background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
border: 1px solid rgba(255,255,255,.12);
border-radius: 18px;
box-shadow: 0 22px 60px rgba(0,0,0,.55);
overflow: hidden;
}

.ppm-topbar {
display:flex;
align-items:flex-start;
justify-content:space-between;
gap: 14px;
padding: 16px 16px 12px;
border-bottom: 1px solid rgba(255,255,255,.10);
}

.ppm-identity { display:flex; gap: 12px; min-width: 0; }

.ppm-avatar{
width: 54px; height: 54px;
border-radius: 14px;
border: 1px solid rgba(255,255,255,.12);
background: rgba(0,0,0,.25);
overflow: hidden;
display: grid;
place-items: center;
flex: 0 0 auto;
}
.ppm-avatar img{
width: 100%;
height: 100%;
object-fit: cover;
display: block;
}
.ppm-avatar-fallback{
width: 100%;
height: 100%;
display: grid;
place-items: center;
font-size: 22px;
opacity: .9;
}

.ppm-titlewrap { min-width: 0; }
.ppm-title{
font-size: 18px;
font-weight: 900;
letter-spacing: .2px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.ppm-sub{
margin-top: 3px;
opacity: .75;
font-size: 13px;
}

.ppm-chips{
margin-top: 10px;
display:flex;
flex-wrap: wrap;
gap: 8px;
}
.ppm-chip{
display:inline-flex;
align-items:center;
gap:6px;
padding: 6px 10px;
border-radius: 999px;
font-size: 12px;
border: 1px solid rgba(255,255,255,.12);
background: rgba(255,255,255,.05);
opacity: .9;
}
.ppm-chip-accent{
border-color: rgba(0,255,157,.30);
background: rgba(0,255,157,.10);
color: #00ff9d;
font-weight: 800;
}
.ppm-chip.hidden { display:none; }

.ppm-close{
border: 1px solid rgba(255,255,255,.14);
background: rgba(255,255,255,.06);
color: #fff;
border-radius: 12px;
width: 38px; height: 38px;
font-size: 16px;
cursor: pointer;
}
.ppm-close:hover{ filter: brightness(1.06); }

.ppm-body{ padding: 14px 16px 16px; }

.ppm-summary{
display:grid;
grid-template-columns: 1.2fr .8fr;
gap: 12px;
margin-bottom: 14px;
}

.ppm-totalbox{
border: 1px solid rgba(255,255,255,.12);
background: rgba(0,0,0,.18);
border-radius: 16px;
padding: 12px 14px;
}
.ppm-total-label{ opacity: .75; font-size: 12px; }
.ppm-total{ font-size: 26px; font-weight: 900; margin-top: 6px; }

.ppm-miniboxes{
display:grid;
grid-template-columns: 1fr 1fr;
gap: 12px;
}
.ppm-mini{
border: 1px solid rgba(255,255,255,.12);
background: rgba(0,0,0,.14);
border-radius: 16px;
padding: 12px 12px;
}
.ppm-mini-label{ opacity: .75; font-size: 12px; }
.ppm-mini-value{ font-size: 18px; font-weight: 900; margin-top: 6px; }

.ppm-section-title{
font-weight: 900;
letter-spacing: .2px;
margin: 8px 0 10px;
font-size: 13px;
opacity: .9;
}

.ppm-rows{
border: 1px solid rgba(255,255,255,.10);
background: rgba(0,0,0,.12);
border-radius: 16px;
overflow: hidden;
}

.ppm-row{
display:flex;
align-items:center;
justify-content:space-between;
gap: 12px;
padding: 10px 12px;
border-top: 1px solid rgba(255,255,255,.08);
}
.ppm-row:first-child{ border-top: none; }

.ppm-row-left{ opacity: .92; }
.ppm-row-right{
font-weight: 900;
min-width: 56px;
text-align: right;
}

.ppm-empty{
padding: 14px 12px;
opacity: .75;
}

/* Mobile tweak */
@media (max-width: 520px){
.ppm-summary{ grid-template-columns: 1fr; }
}

.ppm-icon { margin-right: 8px; }
.ppm-label { font-weight: 750; }
.ppm-meta { opacity: .7; font-size: 12px; margin-left: 6px; }

/* ── Fitness status badge — mirrors FPL's colour coding ──────────────────── */
.scout-hero-badge.scout-status.is-ok {
  background: rgba(0,255,157,0.10); color: #00ff9d; border-color: rgba(0,255,157,0.28);
}
.scout-hero-badge.scout-status.is-warn {
  background: rgba(245,197,24,0.14); color: #f5c518; border-color: rgba(245,197,24,0.42);
}
.scout-hero-badge.scout-status.is-doubt {
  background: rgba(255,153,51,0.14); color: #ff9933; border-color: rgba(255,153,51,0.42);
}
.scout-hero-badge.scout-status.is-risk {
  background: rgba(255,122,69,0.14); color: #ff7a45; border-color: rgba(255,122,69,0.42);
}
.scout-hero-badge.scout-status.is-out {
  background: rgba(255,77,79,0.14); color: #ff6b6d; border-color: rgba(255,77,79,0.42);
}
.scout-hero-badge.scout-status.is-none {
  background: rgba(125,135,156,0.14); color: #9aa4b8; border-color: rgba(125,135,156,0.42);
}

.scout-hero-news {
  margin-top: 10px;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.45;
  color: #93a1ba;
}

@media (max-width: 760px) {
  .scout-hero-news { margin-top: 7px; font-size: 11.5px; }
}