/* =========================================================
 * FootyTix league pages - shared schedule / standings UI
 * Premier League + La Liga
 * ======================================================= */

.league-matchday-row td {
  background-color: #1464b3 !important;
  color: #fff !important;
  padding: 8px !important;
  font-size: 80%;
}

.league-team-cell {
  padding: 7px 4px !important;
}

.league-team-crest {
  display: inline-block;
  object-fit: contain;
  vertical-align: middle;
}

.league-team-label {
  display: inline-block;
  margin-top: 3px;
  font-size: 70%;
}

.league-team-link,
.league-team-name {
  line-height: 1.25;
}

.league-team-link {
  color: #1683d8 !important;
  text-decoration: underline !important;
  text-decoration-thickness: 1px !important;
  text-underline-offset: 2px;
  font-weight: 700;
}

.league-team-link:hover,
.league-team-link:focus-visible {
  color: #0b5fa5 !important;
  text-decoration-thickness: 2px !important;
}

.league-team-link__icon {
  display: inline-block;
  margin-left: 3px;
  font-size: .78em;
  opacity: .9;
}

.league-match-row {
  cursor: pointer;
  transition: background-color .15s ease;
}

.league-match-row:hover > td,
.league-match-row:focus-visible > td {
  background-color: #f5f8fc;
}

.league-match-row:focus-visible {
  outline: 2px solid #1464b3;
  outline-offset: -2px;
}

.league-date-cell {
  position: relative;
  min-width: 84px;
}

.league-date-text {
  display: inline-block;
  font-size: 65%;
  color: #454545;
  line-height: 1.35;
}

.league-featured-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 5px;
  padding: 4px 7px;
  border: 1px solid #ffd8b6;
  border-radius: 999px;
  background: #fff4e8;
  color: #a94b00 !important;
  font-size: 55%;
  line-height: 1.2;
  text-decoration: none !important;
  white-space: nowrap;
}

.league-featured-badge:hover,
.league-featured-badge:focus-visible {
  background: #ffe9d5;
  border-color: #f3a45f;
  color: #7f3700 !important;
}

.league-detail-hint {
  display: block;
  margin-top: 4px;
  color: #6d7785;
  font-size: 52%;
  font-weight: 600;
}

.league-match-row[aria-expanded="true"] .league-detail-hint {
  color: #1464b3;
}

.league-match-detail-row[hidden] {
  display: none;
}

.league-match-detail-row td {
  padding: 0 !important;
  background: #f7f9fc;
}

.league-match-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 10px;
}

.league-match-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 8px 9px;
  border: 1px solid #d7dce3;
  border-radius: 8px;
  background: #fff;
  color: #1D3557 !important;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  text-decoration: none !important;
}

.league-match-action:hover,
.league-match-action:focus-visible {
  border-color: #1683d8;
  color: #0b5fa5 !important;
  background: #f7fbff;
}

.league-match-action__icon {
  flex: 0 0 auto;
  width: 15px;
  text-align: center;
  color: #1683d8;
  font-size: 13px;
}

.league-match-action--footybox {
  border-color: #aacdf0;
  background: #f3f8ff;
}

.league-score {
  font-size: 80%;
  color: #454545;
}

.league-score--winner {
  color: #ff0000;
}

.league-score-separator {
  font-size: 80%;
  color: #454545;
}

/* Shared related links below schedule / standings */
.league-page-footer {
  margin-top: 1em;
}

.league-page-links {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 0 0 1.2em;
}

.league-page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid #cfd8e4;
  border-radius: 8px;
  background: #fff;
  color: #1D3557 !important;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  text-decoration: none !important;
}

.league-page-link .fas {
  flex: 0 0 auto;
  color: #1683d8;
}

.league-page-link:hover,
.league-page-link:focus-visible {
  border-color: #1683d8;
  background: #f7fbff;
  color: #0b5fa5 !important;
}

/* FootyBox CTA */
.footybox-schedule-cta {
  margin: 1.8em 0 .8em;
}

.footybox-schedule-cta__link {
  display: block;
  overflow: hidden;
  border: 2px solid #1683d8;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(20, 100, 179, .14);
  color: #17365d !important;
  text-decoration: none !important;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.footybox-schedule-cta__link:hover,
.footybox-schedule-cta__link:focus-visible {
  transform: translateY(-2px);
  border-color: #0b67b2;
  box-shadow: 0 8px 24px rgba(20, 100, 179, .2);
}

.footybox-schedule-cta__image {
  display: block;
  overflow: hidden;
  background: #eef6ff;
}

.footybox-schedule-cta__image img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 !important;
}

.footybox-schedule-cta__body {
  display: block;
  padding: 15px 17px 17px;
}

.footybox-schedule-cta__eyebrow {
  display: block;
  margin-bottom: 4px;
  color: #1683d8;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
}

.footybox-schedule-cta__title {
  display: block;
  margin-bottom: 6px;
  color: #17365d;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.4;
}

.footybox-schedule-cta__description {
  display: block;
  color: #556579;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.65;
}

.footybox-schedule-cta__button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #1464b3;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.footybox-schedule-cta__button-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.footybox-schedule-cta__button-label .fa-search {
  flex: 0 0 auto;
  font-size: 12px;
}

/* Standings */
.league-standing-club {
  display: flex;
  align-items: center;
  gap: 7px;
  text-align: left;
}

.league-standing-club img {
  flex: 0 0 auto;
  object-fit: contain;
}

.league-standing-club__name {
  min-width: 0;
}


@media screen and (max-width: 767px) {
  .league-match-actions {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .league-match-action {
    justify-content: flex-start;
    min-height: 34px;
    padding: 7px 10px;
    font-size: 11px;
  }

  .footybox-schedule-cta__body {
    padding: 13px 14px 15px;
  }

  .footybox-schedule-cta__title {
    font-size: 14px;
  }

  .footybox-schedule-cta__description {
    font-size: 11px;
  }

  .footybox-schedule-cta__button {
    font-size: 11px;
  }

}
