.hp-standings.hp-service-detail {
  overflow: visible;
  background: transparent;
  border: 0;
}

.hp-standings-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(340px, .75fr);
  gap: clamp(1.25rem, 3cqi, 2.5rem);
  min-height: 250px;
  overflow: hidden;
  align-items: end;
  padding: clamp(1.5rem, 4cqi, 3rem);
  background:
    radial-gradient(circle at 88% 18%, color-mix(in srgb, var(--hp-accent) 78%, transparent) 0, transparent 28%),
    linear-gradient(125deg, color-mix(in srgb, var(--hp-dark-background, #17191d) 94%, #000), var(--hp-dark-background, #17191d) 62%, color-mix(in srgb, var(--hp-accent) 54%, #111) 145%);
  color: #fff;
  isolation: isolate;
}

.hp-standings-hero::after {
  position: absolute;
  z-index: -1;
  inset-block-start: -2.6rem;
  inset-inline-end: clamp(1rem, 7cqi, 5rem);
  color: rgba(255, 255, 255, .065);
  content: "🏆";
  font-size: clamp(9rem, 24cqi, 17rem);
  line-height: 1;
  transform: rotate(8deg);
}

.hp-standings-hero__copy > span {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: color-mix(in srgb, #fff 72%, var(--hp-accent));
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.hp-standings-hero__copy h1 {
  max-width: 18ch;
  margin: .6rem 0 0;
  color: #fff;
  font-size: clamp(1.7rem, 4.5cqi, 3rem);
  line-height: 1.04;
}

.hp-standings-hero__copy p {
  max-width: 58ch;
  margin: .7rem 0 0;
  color: rgba(255, 255, 255, .68);
  font-size: .78rem;
  line-height: 1.55;
}

.hp-standings-hero__stats {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .45rem;
}

.hp-standings-hero__stats article {
  min-width: 0;
  padding: .8rem;
  background: rgba(255, 255, 255, .09);
  backdrop-filter: blur(5px);
}

.hp-standings-hero__stats small,
.hp-standings-hero__stats span {
  display: block;
  color: rgba(255, 255, 255, .58);
  font-size: .57rem;
}

.hp-standings-hero__stats strong {
  display: -webkit-box;
  overflow: hidden;
  margin: .25rem 0 .18rem;
  color: #fff;
  font-size: .82rem;
  line-height: 1.2;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.hp-standings-hero__stats article:first-child strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hp-standings-page-nav {
  display: flex;
  gap: .4rem;
  margin: 2rem clamp(.8rem, 2.5cqi, 1.5rem) 1rem;
  position: relative;
  z-index: 2;
}

.hp-standings-page-nav a {
  display: inline-flex;
  align-items: center;
  gap: .38rem;
  padding: .55rem .8rem;
  border-radius: .4rem;
  background: var(--hp-accent);
  box-shadow: 0 5px 15px rgba(0, 0, 0, .13);
  color: #fff;
  font-size: .7rem;
  font-weight: 750;
  text-decoration: none;
}

.hp-standings-page-nav a:hover {
  color: #fff;
  filter: brightness(.88);
  text-decoration: none;
}

.hp-standings-league-picker {
  position: relative;
  z-index: 12;
  margin: 0 0 1.15rem;
}

.hp-standings-league-search {
  position: relative;
  width: 100%;
  max-width: none;
}

.hp-standings-league-search > label {
  display: flex;
  align-items: center;
  gap: .35rem;
  margin-block-end: .35rem;
  color: var(--bs-secondary-color);
  font-size: .7rem;
  font-weight: 700;
}

.hp-standings-league-search > label i,
.hp-standings-league-options-head i {
  color: var(--hp-accent);
}

.hp-standings-league-search .input-group {
  overflow: hidden;
  border: 1px solid var(--bs-border-color);
  border-radius: .55rem;
  background: var(--bs-body-bg);
  transition: border-color .16s ease;
}

.hp-standings-league-search .input-group:focus-within {
  border-color: var(--hp-accent);
}

.hp-standings-league-search :is(.form-control, .btn) {
  min-height: 40px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.hp-standings-league-search .form-control {
  min-width: 0;
  background: transparent;
  color: var(--bs-body-color);
  font-size: .76rem;
}

.hp-standings-league-search .form-control:focus {
  background: transparent;
  color: var(--bs-body-color);
  box-shadow: none;
}

.hp-standings-league-search .btn {
  display: flex;
  align-items: center;
  gap: .3rem;
  padding-inline: .85rem;
  background: var(--hp-accent);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
}

.hp-standings-league-search .btn:hover {
  background: color-mix(in srgb, var(--hp-accent) 86%, #000);
  color: #fff;
}

.hp-standings-league-options {
  position: absolute;
  z-index: 1120;
  inset-block-start: calc(100% + .45rem);
  inset-inline-start: 0;
  width: 100%;
  padding: .65rem;
  border: 1px solid var(--bs-border-color);
  border-radius: .65rem;
  background: var(--bs-body-bg);
  color: var(--bs-body-color);
  box-shadow: 0 16px 42px rgba(0, 0, 0, .2);
}

.hp-standings-league-options[hidden] {
  display: none;
}

.hp-standings-league-options-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .1rem .15rem .55rem;
  font-size: .7rem;
  font-weight: 750;
}

.hp-standings-league-options-head small {
  color: var(--bs-secondary-color);
  font-size: .62rem;
}

.hp-standings-league-options-grid {
  display: grid;
  gap: .65rem;
  max-height: 320px;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
}

.hp-standings-league-group[hidden] {
  display: none;
}

.hp-standings-league-group h3 {
  margin: 0 0 .28rem;
  padding-inline: .5rem;
  color: var(--bs-secondary-color);
  font-size: .6rem;
  font-weight: 800;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.hp-standings-league-group-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .15rem;
}

.hp-standings-league-options-grid::-webkit-scrollbar {
  display: none;
}

.hp-standings-league-group-grid > a {
  display: grid;
  grid-template-columns: 1.2rem minmax(0, 1fr) 1.1rem;
  align-items: center;
  gap: .4rem;
  min-width: 0;
  padding: .48rem .5rem;
  border-radius: .38rem;
  color: inherit;
  text-decoration: none;
}

.hp-standings-league-group-grid > a > i {
  color: var(--bs-secondary-color);
}

.hp-standings-league-group-grid > a > i:last-child {
  justify-self: end;
  color: var(--hp-accent);
}

.hp-standings-league-group-grid > a > span {
  display: grid;
  min-width: 0;
}

.hp-standings-league-options-grid strong,
.hp-standings-league-options-grid small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hp-standings-league-options-grid strong {
  font-size: .72rem;
}

.hp-standings-league-options-grid small {
  color: var(--bs-secondary-color);
  font-size: .58rem;
}

.hp-standings-league-group-grid > a:is(:hover, :focus-visible, [aria-current="page"]) {
  background: color-mix(in srgb, var(--hp-accent) 9%, transparent);
  color: var(--hp-accent);
}

.hp-standings--content-wide.hp-service-detail .hp-standings-body {
  padding: 0;
}

.hp-standings-section-head {
  display: grid;
  grid-template-columns: 2.4rem minmax(0, 1fr);
  gap: .65rem;
  align-items: center;
  margin: 0 0 .6rem;
  scroll-margin-top: 1rem;
}

.hp-standings-section-head > span {
  display: grid;
  width: 2.4rem;
  height: 2.4rem;
  place-items: center;
  border-radius: 50%;
  background: var(--hp-accent);
  color: #fff;
  font-size: 1rem;
}

.hp-standings-section-head h2 {
  margin: 0;
  color: var(--bs-body-color);
  font-size: 1rem;
  line-height: 1.15;
}

.hp-standings-section-head p {
  margin: .14rem 0 0;
  color: var(--bs-secondary-color);
  font-size: .66rem;
}

.hp-standings--content-wide.hp-service-detail .hp-standing-table {
  height: auto;
  max-height: none;
  overflow-x: auto;
  overflow-y: hidden;
  border: 0;
  border-radius: 0;
  background: var(--bs-body-bg);
  scrollbar-color: var(--bs-border-color) transparent;
  scrollbar-width: thin;
}

.hp-standings--content-wide.hp-service-detail table {
  min-width: 610px;
}

.hp-standings--content-wide.hp-service-detail thead {
  background: color-mix(in srgb, var(--hp-accent) 9%, var(--bs-body-bg));
}

.hp-standings--content-wide.hp-service-detail th {
  padding-block: .72rem;
  border-color: var(--bs-border-color);
  color: var(--bs-secondary-color);
  font-size: .6rem;
  letter-spacing: .05em;
}

.hp-standings--content-wide.hp-service-detail td {
  padding-block: .62rem;
  border-color: var(--bs-border-color);
}

.hp-standings--content-wide.hp-service-detail tbody tr {
  transition: background-color .16s ease;
}

.hp-standings--content-wide.hp-service-detail tbody tr:hover {
  background: color-mix(in srgb, var(--hp-accent) 6%, var(--bs-body-bg));
}

.hp-standings--content-wide.hp-service-detail tbody tr:first-child {
  background: transparent;
}

.hp-standing-position {
  display: inline-grid;
  width: 1.65rem;
  height: 1.65rem;
  place-items: center;
  border-radius: 50%;
  background: var(--bs-tertiary-bg);
  color: var(--bs-body-color);
  font-size: .68rem;
  font-weight: 800;
}

.hp-standings--content-wide .is-leading .hp-standing-position {
  background: color-mix(in srgb, #1e9b55 15%, var(--bs-body-bg));
  color: #168247;
}

.hp-standings--content-wide .is-relegation .hp-standing-position {
  background: color-mix(in srgb, #d93a43 14%, var(--bs-body-bg));
  color: #c52c35;
}

.hp-team-fallback {
  display: inline-grid;
  width: 1.65rem;
  height: 1.65rem;
  flex: 0 0 1.65rem;
  place-items: center;
  border-radius: 50%;
  background: var(--bs-tertiary-bg);
  color: var(--bs-secondary-color);
  font-size: .65rem;
  font-weight: 850;
}

.hp-standings--content-wide.hp-service-detail .hp-standing-team {
  gap: .5rem;
  color: var(--bs-body-color);
  font-size: .76rem;
  font-weight: 750;
  text-decoration: none;
}

.hp-standings-section-head--matches {
  margin-top: 1.35rem;
}

.hp-standings--content-wide.hp-service-detail .hp-fixture-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .55rem;
  margin-top: 0;
  background: transparent;
}

.hp-standings--content-wide.hp-service-detail .hp-fixture-list article {
  padding: .75rem;
  border: 1px solid var(--bs-border-color);
  border-radius: .5rem;
  background: var(--bs-body-bg);
}

.hp-standings--content-wide.hp-service-detail .hp-fixture-list time {
  margin-bottom: .25rem;
  color: var(--hp-accent);
  font-weight: 700;
}

.hp-standings--content-wide.hp-service-detail .hp-fixture-list article > strong {
  display: inline-grid;
  min-width: 2.7rem;
  min-height: 1.8rem;
  place-items: center;
  border-radius: .35rem;
  background: var(--hp-dark-background, #17191d);
  color: #fff;
  font-size: .72rem;
}

.hp-standings.hp-service-detail .hp-cloud-meta {
  display: flex;
  align-items: center;
  gap: .3rem;
  margin-top: 1rem;
  padding: .65rem 0;
  border-top: 1px solid var(--bs-border-color);
  background: transparent;
}

@media (max-width: 767.98px) {
  .hp-standings-hero {
    grid-template-columns: 1fr;
    min-height: 280px;
    align-items: end;
    padding: 1.25rem 1rem 2rem;
  }

  .hp-standings-hero__copy h1 {
    font-size: 1.75rem;
  }

  .hp-standings-hero__stats {
    gap: .3rem;
  }

  .hp-standings-hero__stats article {
    padding: .55rem;
  }

  .hp-standings-hero__stats strong {
    font-size: .7rem;
  }

  .hp-standings-page-nav {
    overflow-x: auto;
    margin-inline: .65rem;
    scrollbar-width: none;
  }

  .hp-standings-page-nav::-webkit-scrollbar {
    display: none;
  }

  .hp-standings-page-nav a {
    flex: 0 0 auto;
  }

  .hp-standings-league-picker {
    margin-block-end: 1rem;
  }

  .hp-standings-league-search {
    max-width: none;
  }

  .hp-standings-league-options {
    width: 100%;
  }

  .hp-standings-league-group-grid {
    grid-template-columns: 1fr;
  }

  .hp-standings--content-wide.hp-service-detail .hp-fixture-list {
    grid-template-columns: 1fr;
  }
}

/* Telefonda puan sütunları yatay kaydırmaya kaçmasın: takım adı sarar, tablo kutuya sığar. */
@media (max-width: 575.98px) {
  .hp-standings--content-wide.hp-service-detail table {
    min-width: 0;
  }

  .hp-standings--content-wide.hp-service-detail :is(th, td) {
    padding-inline: .22rem;
    text-align: center;
  }

  .hp-standings--content-wide.hp-service-detail :is(th, td):nth-child(2) {
    width: 100%;
    text-align: start;
  }

  .hp-standings--content-wide.hp-service-detail .hp-standing-team {
    font-size: .7rem;
  }

  .hp-standings--content-wide.hp-service-detail .hp-standing-team img {
    width: 18px;
    height: 18px;
  }

  .hp-standings--content-wide.hp-service-detail .hp-standing-position {
    width: 1.4rem;
    height: 1.4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hp-standings--content-wide.hp-service-detail tbody tr {
    transition: none;
  }
}
