.homepage-football-team {
  padding: 0;
  overflow: hidden;
  border-radius: 8px;
}

.football-team-shell {
  color: inherit;
  background: transparent;
}

.football-team-header {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 18px;
  border-bottom: 1px solid rgba(120, 130, 140, 0.2);
}

.football-team-header h3 {
  margin: 2px 0;
  color: inherit;
  font-size: 22px;
  line-height: 1.15;
}

.football-team-eyebrow,
.football-team-league {
  display: block;
  color: inherit;
  font-size: 12px;
  opacity: 0.68;
}

.football-team-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.football-team-logo-placeholder {
  width: 48px;
  height: 48px;
  display: inline-block;
  border-radius: 8px;
  background: rgba(120, 130, 140, 0.16);
}

.football-team-team-button {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.football-team-team-button:focus-visible,
.football-team-fixture:focus-visible {
  outline: 3px solid #1684c7;
  outline-offset: 3px;
}

.football-team-change {
  min-height: 44px;
  color: #1684c7;
}

.football-team-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 16px;
}

.football-team-section h4 {
  margin: 0 0 10px;
  color: inherit;
  font-size: 15px;
}

.football-team-live-section {
  grid-column: 1 / -1;
}

.football-team-fixtures {
  display: grid;
  gap: 10px;
}

.football-team-fixture {
  position: relative;
  padding: 12px;
  border: 1px solid rgba(120, 130, 140, 0.2);
  border-radius: 8px;
  background: rgba(120, 130, 140, 0.1);
  backdrop-filter: blur(12px);
  cursor: pointer;
  transition: border-color 160ms ease, transform 160ms ease;
}

.football-team-fixture:hover {
  border-color: rgba(22, 132, 199, 0.72);
  transform: translateY(-1px);
}

.football-team-live {
  border-color: rgba(54, 225, 148, 0.6);
  box-shadow: inset 3px 0 0 #36e194, 0 8px 26px rgba(14, 93, 71, 0.2);
}

.football-team-kickoff {
  margin-bottom: 8px;
  color: inherit;
  font-size: 11px;
  opacity: 0.68;
  text-transform: capitalize;
}

.football-team-matchup {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.football-team-side {
  display: flex;
  gap: 8px;
  align-items: center;
  min-width: 0;
  font-weight: 600;
}

.football-team-side span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.football-team-side-away {
  flex-direction: row-reverse;
  text-align: right;
}

.football-team-side .football-team-logo,
.football-team-side .football-team-logo-placeholder {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
}

.football-team-score {
  display: flex;
  gap: 5px;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  color: inherit;
  font-size: 20px;
  font-weight: 700;
}

.football-team-versus {
  color: inherit;
  font-size: 12px;
  opacity: 0.55;
  text-transform: uppercase;
}

.football-team-fixture-footer {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  margin-top: 9px;
  color: inherit;
  font-size: 10px;
  opacity: 0.72;
}

.football-team-status {
  flex: 0 0 auto;
  color: #23845f;
  font-weight: 700;
  opacity: 1;
}

.football-team-meta {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.football-team-picker {
  padding: 20px;
}

.football-team-picker-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}

.football-team-picker-copy span {
  color: inherit;
  opacity: 0.68;
}

.football-team-picker-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.football-team-picker-controls .form-control,
.football-team-save {
  min-height: 44px;
}

.football-team-picker-status {
  min-height: 20px;
  margin-top: 8px;
  color: #ffaaa5;
}

.football-team-empty,
.football-team-error {
  padding: 22px 14px;
  border: 1px dashed rgba(120, 130, 140, 0.28);
  border-radius: 8px;
  color: inherit;
  opacity: 0.72;
  text-align: center;
}

.football-team-error {
  color: #ffb0ab;
  background: rgba(78, 22, 28, 0.45);
}

.football-team-heading {
  padding: 18px 20px 0;
  color: inherit;
  font-size: 18px;
  font-weight: 700;
}

.football-team-dialog-overlay {
  position: fixed;
  z-index: 1080;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(23, 43, 66, 0.46);
  backdrop-filter: blur(3px);
}

.football-team-dialog-panel {
  position: relative;
  width: min(900px, 100%);
  max-height: min(760px, calc(100vh - 40px));
  overflow: auto;
  padding: 24px;
  border: 1px solid #b9cde4;
  border-radius: 12px;
  background: #f8fbff;
  color: #142b44;
  box-shadow: 0 24px 70px rgba(13, 30, 49, 0.3);
}

.football-team-dialog-panel h3 { margin: 0 42px 18px 0; color: #123b69; }
.football-team-dialog-close { position: absolute; top: 12px; right: 14px; min-width: 38px; min-height: 38px; border: 1px solid #c4d6e9; border-radius: 50%; font-size: 28px; line-height: 1; background: #edf5fd; color: #123b69; }
.football-team-dialog-close:hover, .football-team-dialog-close:focus-visible { background: #dcecff; color: #0c64b9; }
.football-team-dialog-match { display: grid; grid-template-columns: 42px minmax(0,1fr) auto minmax(0,1fr) 42px; gap: 10px; align-items: center; padding: 14px; margin-bottom: 12px; border: 1px solid #d2e0ed; border-radius: 8px; background: #edf4fb; color: #142b44; text-align: center; }
.football-team-dialog-match .football-team-logo { width: 38px; height: 38px; }
.football-team-detail-row { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid #d8e3ee; }
.football-team-detail-row span { color: #5c7189; font-weight: 600; }
.football-team-detail-row strong { color: #143b66; text-align: right; }
.football-team-standings-competition { margin-bottom: 24px; }
.football-team-standings-competition h4 { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; }
.football-team-standings-competition h4 .football-team-logo { width: 32px; height: 32px; }
.football-team-standing-table { overflow-x: auto; margin-bottom: 12px; }
.football-team-standing-table h5 { margin: 8px 0; font-size: 13px; opacity: .76; }
.football-team-standing-table table { width: 100%; min-width: 590px; border-collapse: collapse; }
.football-team-standing-table th, .football-team-standing-table td { padding: 9px 7px; border-bottom: 1px solid #d8e3ee; text-align: center; }
.football-team-standing-table th:nth-child(2), .football-team-standing-table td:nth-child(2) { text-align: left; }
.football-team-standing-table td:nth-child(2) { display: flex; align-items: center; gap: 8px; }
.football-team-standing-table td .football-team-logo { width: 24px; height: 24px; }
.football-team-standing-selected { background: #e2f0ff; box-shadow: inset 3px 0 0 #1684c7; }

.football-team-dialog-dark { background: rgba(3, 12, 24, 0.74); }
.football-team-dialog-dark .football-team-dialog-panel { border-color: rgba(120, 166, 220, 0.42); background: #142235; color: #edf6ff; box-shadow: 0 24px 70px rgba(0, 0, 0, 0.46); }
.football-team-dialog-dark .football-team-dialog-panel h3, .football-team-dialog-dark .football-team-detail-row strong { color: #edf6ff; }
.football-team-dialog-dark .football-team-dialog-close { border-color: transparent; background: rgba(120,130,140,.16); color: #edf6ff; }
.football-team-dialog-dark .football-team-dialog-close:hover, .football-team-dialog-dark .football-team-dialog-close:focus-visible { background: rgba(120,166,220,.3); color: #ffffff; }
.football-team-dialog-dark .football-team-dialog-match { border-color: transparent; background: rgba(120,130,140,.10); color: #edf6ff; }
.football-team-dialog-dark .football-team-detail-row, .football-team-dialog-dark .football-team-standing-table th, .football-team-dialog-dark .football-team-standing-table td { border-bottom-color: rgba(120,130,140,.18); }
.football-team-dialog-dark .football-team-detail-row span { color: #b8c8d9; }
.football-team-dialog-dark .football-team-standing-selected { background: rgba(22,132,199,.22); }

@media screen and (max-width: 767px) {
  .football-team-content {
    grid-template-columns: 1fr;
  }

  .football-team-live-section {
    grid-column: auto;
  }

  .football-team-header {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .football-team-change {
    grid-column: 1 / -1;
    justify-self: start;
    padding-left: 0;
  }

  .football-team-picker-controls {
    grid-template-columns: 1fr;
  }

  .football-team-dialog-overlay { padding: 10px; }
  .football-team-dialog-panel { max-height: calc(100vh - 20px); padding: 18px; }
  .football-team-dialog-match { grid-template-columns: 34px minmax(0,1fr) auto minmax(0,1fr) 34px; gap: 5px; font-size: 12px; }
  .football-team-dialog-match .football-team-logo { width: 30px; height: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  .homepage-football-team *,
  .homepage-football-team *::before,
  .homepage-football-team *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
