.page-section--scores {
  --scores-edge-fade: clamp(2rem, 6vh, 3.25rem);
}

.page-section--scores .page-section__bg {
  background-image: radial-gradient(
      ellipse 60% 45% at 80% 80%,
      rgba(212, 0, 0, 0.15) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse 95% 80% at 0% 0%,
      rgba(220, 25, 25, 0.28) 0%,
      transparent 55%
    );
}

.page-section__inner--scores {
  justify-content: flex-start;
  gap: 0;
  overflow: hidden;
  min-height: 0;
}

.scores-top {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  margin: 0 calc(-1 * max(var(--page-gutter), 16px));
  padding: 0 max(var(--page-gutter), 16px) clamp(0.35rem, 1vh, 0.55rem);
  background: transparent;
}

.scores-scroll {
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  scroll-behavior: smooth;
  margin-top: calc(-1 * var(--scores-edge-fade));
  padding-top: var(--scores-edge-fade);
  padding-bottom: 0.35rem;
  display: flex;
  flex-direction: column;
  gap: clamp(0.65rem, 1.8vh, 1rem);
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0,
    rgba(0, 0, 0, 0.2) calc(var(--scores-edge-fade) * 0.35),
    rgba(0, 0, 0, 0.55) calc(var(--scores-edge-fade) * 0.62),
    #000 var(--scores-edge-fade),
    #000 100%
  );
  mask-image: linear-gradient(
    to bottom,
    transparent 0,
    rgba(0, 0, 0, 0.2) calc(var(--scores-edge-fade) * 0.35),
    rgba(0, 0, 0, 0.55) calc(var(--scores-edge-fade) * 0.62),
    #000 var(--scores-edge-fade),
    #000 100%
  );
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.scores-scroll::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.scores-message {
  position: relative;
}

.scores-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(0.85rem, 2vw, 1.5rem);
  flex-wrap: nowrap;
  filter: drop-shadow(0 1px 6px rgba(0, 0, 0, 0.55))
    drop-shadow(0 0 1px rgba(0, 0, 0, 0.85));
}

.scores-title {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: flex;
  align-items: baseline;
  flex-wrap: nowrap;
  gap: 0.35em;
  flex-shrink: 0;
  white-space: nowrap;
  margin: 0;
  padding-bottom: 0.06em;
}

.scores-title__live {
  color: var(--color-red);
}

.scores-title__rest {
  color: var(--color-white);
}

.scores-toolbar {
  flex: 0 1 auto;
  min-width: 0;
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.scores-controls {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.45rem;
  width: auto;
  max-width: min(540px, 52vw);
}

.scores-date-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.scores-search {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
}

.scores-search__label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.scores-search__input {
  width: 100%;
  min-width: 0;
  padding: 0.5rem 1rem 0.5rem 2.15rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='rgba(255,255,255,0.45)' stroke-width='2' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3-3'/%3E%3C/svg%3E") no-repeat 0.75rem center;
  color: #fff;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  outline: none;
  transition:
    border-color 0.15s ease,
    background 0.15s ease;
}

.scores-search__input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.scores-search__input:hover {
  background-color: rgba(255, 255, 255, 0.14);
}

.scores-search__input:focus {
  border-color: rgba(212, 0, 0, 0.55);
  background-color: rgba(255, 255, 255, 0.14);
}

.scores-date-nav__arrow {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease;
}

.scores-date-nav__arrow:hover {
  background: rgba(255, 255, 255, 0.2);
}

.scores-date-nav__pill {
  min-width: 120px;
  padding: 0.55rem 1.35rem;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.scores-date-nav__pill:hover {
  background: rgba(255, 255, 255, 0.2);
}

.scores-message {
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  flex-shrink: 0;
}

.scores-message[hidden] {
  display: none;
}

.scores-grid {
  flex: 0 0 auto;
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: clamp(0.75rem, 1.8vw, 1.1rem);
  padding-right: 0.15rem;
}

.scores-grid__col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(0.75rem, 1.8vw, 1.1rem);
}

.scores-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: #141414;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.scores-card--pending {
  opacity: 0;
  transform: translate3d(0, 16px, 0);
}

.scores-card--shown {
  opacity: 1;
  transform: none;
}

.scores-card__head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 0.85rem;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
}

.scores-card__head img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex-shrink: 0;
}

.scores-card__body {
  display: flex;
  flex-direction: column;
}

.scores-match {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.6rem 0.65rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.6875rem;
  font-weight: 700;
}

.scores-match:has(a.scores-match__odds) {
  padding-bottom: 2.2rem;
}

a.scores-match__odds {
  position: absolute;
  top: calc(100% + 0.32rem);
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 0.4rem;
  width: max-content;
  max-width: 92vw;
  padding: 0.22rem 0.7rem;
  border: none;
  border-radius: 10px;
  background: #262626;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  line-height: 1.15;
  z-index: 1;
  margin-top: 5px;
}

a.scores-match__odds:hover,
a.scores-match__odds:focus-visible {
  background: #333333;
  outline: none;
}

a.scores-match__odds:active {
  transform: translateX(-50%) translateY(1px);
}

.scores-match__odds-label {
  color: #ffe08a;
  font-family: "Myanmar Text", "Padauk", "Noto Sans Myanmar", "Montserrat", sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  font-synthesis: none;
  letter-spacing: 0;
  white-space: nowrap;
}

.scores-match__odds-mark {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  object-fit: contain;
  display: block;
}

.scores-match__odds-values {
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
}

.scores-match:first-child {
  border-top: none;
}

.scores-match__live-col {
  position: absolute;
  left: 0.4rem;
  top: 0.6rem;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  pointer-events: none;
}

.scores-match__live-col:empty {
  display: none;
}

.scores-match__live-pill {
  font-size: 0.5625rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #4ade80;
  background: rgba(74, 222, 128, 0.14);
  border-radius: 999px;
  padding: 0.15rem 0.4rem;
  white-space: nowrap;
}

.scores-match__live-pill--final {
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.12);
}

.scores-match__main {
  flex: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  column-gap: 0.3rem;
}

.scores-match__home {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
  min-width: 0;
  padding-left: 1.7rem;
}

.scores-match__away {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.35rem;
  min-width: 0;
}

.scores-match__logo {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
}

.scores-match__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.9);
}

.scores-match__mid {
  position: relative;
  text-align: center;
  min-width: 68px;
  padding: 0 0.15rem;
}

.scores-match__score {
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #fff;
  white-space: nowrap;
}

.scores-match__time {
  font-size: 0.6875rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.78);
  white-space: nowrap;
}

.scores-footnote {
  flex-shrink: 0;
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  margin: 0 auto;
  padding: 0.35rem 0.75rem;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.15s ease;
}

.scores-footnote[hidden] {
  display: none;
}

.scores-footnote:hover {
  color: #fff;
}

.scores-footnote:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.scores-footnote__icon {
  font-size: 1rem;
  line-height: 1;
  opacity: 0.8;
  transition: transform 0.2s ease;
}

.scores-footnote__icon--up {
  transform: rotate(180deg);
}

@media (max-width: 900px) {
  .scores-title {
    font-size: clamp(1.35rem, 6.2vw, 1.85rem);
    white-space: normal;
  }

  .scores-header {
    align-items: flex-start;
  }

  .scores-toolbar {
    width: 100%;
    margin-left: 0;
  }

  .scores-controls {
    max-width: none;
    width: 100%;
  }

  .scores-search {
    flex: 1 1 auto;
    min-width: 0;
  }
}

@media (max-width: 768px) {
  .scores-grid {
    flex-direction: column;
  }

  .scores-header {
    flex-wrap: wrap;
    gap: 0.65rem;
  }

  .scores-toolbar {
    width: 100%;
  }

  .scores-controls {
    max-width: none;
  }

  .scores-date-nav__pill {
    min-width: 96px;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .scores-search__input {
    font-size: 0.75rem;
    padding-left: 2rem;
  }
}

@media (max-width: 520px) {
  .scores-controls {
    flex-wrap: nowrap;
    gap: 0.4rem;
  }

  .scores-date-nav {
    gap: 0.28rem;
    flex-shrink: 0;
  }

  .scores-date-nav__arrow {
    width: 32px;
    height: 32px;
  }

  .scores-date-nav__pill {
    min-width: 0;
    padding: 0.45rem 0.7rem;
    font-size: 0.75rem;
    white-space: nowrap;
  }

  .scores-search {
    flex: 1 1 auto;
    min-width: 0;
  }

  .scores-search__input {
    min-width: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scores-card--pending {
    opacity: 1;
    transform: none;
  }
}
