.gostat-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(160deg, #171936 0%, #0d1128 100%);
  color: #fff;
  font-family: "Titillium Web", sans-serif;
  display: flex;
}

.card-main {
  position: relative;
  flex: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.card-main .home-bg-overlay {
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-position: center 35%;
  background-size: 60% 60%;
  opacity: 0.08;
  filter: saturate(85%) contrast(90%) blur(0.2px);
  pointer-events: none;
}

.card-main::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9, 11, 24, 0.55), rgba(7, 9, 20, 0.75));
  pointer-events: none;
}

.team-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 6px 0 8px;
  height: 450px;
}

.team-logo-item {
  min-width: 110px;
}

.team-logo {
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.35));
}

.match-title {
  position: absolute;
  top: 3px;
  left: 0px;
  z-index: 5;
  padding: 6px 10px;
  color: #ffffff;
  font-weight: 800;
  letter-spacing: 0.5px;
  font-size: x-small;
}

.match-title span {
  text-transform: uppercase;
}


.stats {
  height: 100%;
  background: linear-gradient(180deg, rgba(9, 11, 24, 0.75), rgba(9, 11, 24, 0.55));
  padding: 12px 10px;
  backdrop-filter: blur(2px) saturate(110%);
}

.stat-label {
  color: #b3b3c7;
}

.stat-value {
  font-weight: 700;
  color: #ffffff;
}

.trend-value {
  font-weight: 700;
  color: #ffffff;
  margin-right: 6px;
}

.trend-label-secondary {
  color: #b3b3c7;
  font-size: 0.85rem;
}

.trend-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.10);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 6px;
}

.trend-fill-mask {
  height: 100%;
}

.stats .trend-fill {
  width: 100%;
  height: 100%;
  background: var(--muted);
  box-shadow: 0 0 12px rgba(125, 174, 211, 0.25);
}

.gw-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  z-index: 5;
  padding: 6px 10px;
  color: #ffffff;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.gw-text {
  font-family: "Titillium Web", sans-serif;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.stats-header .gw-badge {
  position: static;
  top: auto;
  right: auto;
  padding: 0;
}

.stats-header .gw-text {
  display: inline-flex;
  align-items: center;
}

.stats-header .gw-text svg {
  margin: 0 1px;
}

.card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #2a2a2a;
  padding: 15px 20px;
  border-radius: 10px;
  width: 400px;
  margin: 30px auto;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.info {
  flex: 1;
  margin-left: 15px;
  text-align: start;
}

.info h3 {
  margin: 0;
  font-size: 16px;
}

.info p {
  margin: 3px 0 0;
  font-size: 13px;
  color: #bbb;
}

.club-logo {
  width: 35px;
  height: 35px;
  border-radius: 5px;
  object-fit: contain;
  padding: 3px;
}

.signals-list-simple {
  margin-top: 8px;
}

.signal-row {
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  display: grid !important;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: 8px;
}

.signal-logos .club-logo.small {
  width: 28px;
  height: 28px;
  padding: 2px;
}

.signal-logos .dual-logos {
  display: inline-flex;
  align-items: center;
}

.signal-logos .dual-logos .second {
  margin-left: -15px;
}

.signal-text {
  color: #ffffff;
  font-size: 0.95rem;
  justify-self: center;
  text-align: center;
}

.signal-text .signal-team {
  font-weight: 700;
}

.signal-icon {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
}

.signal-icon.icon-up {
  color: #22c55e;
}

.signal-icon.icon-down {
  color: #ef4444;
}

.league-logo {
  width: 120px;
  height: 48px;
  display: inline-block;
  background-color: #ffffff;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
}

.card-slider {
  position: relative;
  width: 100%;
}

.content-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
}
.content-wrapper > .mx-auto,
.content-wrapper > .col-lg-8 {
  margin-left: auto;
  margin-right: auto;
}

.content-wrapper > .col-lg-8 {
  width: 100%;
  max-width: 960px;
}

.card-slider .slider-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 0 24px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  display: flex;
}

.card-slider .slider-viewport::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.card-slider .slider-track {
  display: flex;
  align-items: stretch;
  gap: 16px;
  padding: 24px 0 16px 0;
  width: max-content;
  margin: 0 auto;
}

.card-slider .slider-item {
  flex: 0 0 82%;
  min-width: 330px;
  max-width: 330px;
  scroll-snap-align: center;
}

.card-slider .slider-viewport:has(> .slider-track > .slider-item:only-child) {
  justify-content: center;
  padding-left: 0;
  padding-right: 0;
}

.card-slider .slider-track:has(> .slider-item:only-child) {
  margin: 0 auto;
  gap: 0;
}

.card-slider .slider-track:has(> .slider-item:only-child) .slider-item {
  flex: 0 0 330px;
  max-width: 330px;
}

@media (max-width: 420px) {
  .card-slider .slider-track:has(> .slider-item:only-child) .slider-item {
    flex-basis: min(92vw, 330px);
    max-width: min(92vw, 330px);
  }
}

.card-slider.single .slider-viewport {
  justify-content: center;
  padding-left: 0;
  padding-right: 0;
}

.card-slider.single .slider-track {
  margin: 0 auto;
  gap: 0;
  width: max-content;
}

.card-slider.single .slider-item {
  flex: 0 0 330px;
  max-width: 330px;
}

@media (max-width: 420px) {
  .card-slider.single .slider-item {
    flex-basis: min(92vw, 330px);
    max-width: min(92vw, 330px);
  }
}

.card-slider .slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  cursor: pointer;
}

.card-slider .slider-nav:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.2);
}

.card-slider .slider-nav:disabled {
  opacity: 0.35;
  cursor: default;
}

.card-slider .slider-nav.prev {
  left: -6px;
}

.card-slider .slider-nav.next {
  right: -6px;
}

@media (min-width: 992px) {
  .card-slider .slider-item {
    flex-basis: 68%;
  }

  .card-slider::before,
  .card-slider::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 56px;
    z-index: 9;
    pointer-events: none;
  }

  .card-slider::before {
    left: -1px;
    background: linear-gradient(to right, var(--page-bg, oklch(12.9% 0.042 264.695)) 0%, rgba(13, 17, 40, 0) 100%);
  }

  .card-slider::after {
    right: -1px;
    background: linear-gradient(to left, var(--page-bg, oklch(12.9% 0.042 264.695)) 0%, rgba(13, 17, 40, 0) 100%);
  }

}

@media (max-width: 420px) {
  .card-slider .slider-item {
    flex-basis: 90%;
  }
}

#content-wrapper.main {
  display: flex;
  min-height: calc(100vh - 80px);
}

#content-wrapper.main .col-lg-8.mx-auto {
  display: flex;
  flex-direction: column;
}

#content-wrapper.main .card-slider {
  margin-top: auto;
  margin-bottom: auto;
}

.stat-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 0.05em;
  margin-bottom: 0.2rem;
  display: block;
}

.gostat-card.history-card {
  height: auto;
  border-radius: 20px;
  border: 2px solid #9c4edb;
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(195, 0, 69, 0.06), rgba(195, 0, 69, 0) 35%),
    linear-gradient(180deg, #0d1128 0%, #090b1a 100%);
}

.card-main.history {
  justify-content: flex-start;
  padding: 10px 10px 8px;
  background: transparent;
  height: auto;
}

.card-main.history::before {
  content: none !important;
}

.history-header {
  text-align: center;
  color: #e9e7ff;
  font-weight: 800;
}

.history-header .title {
  font-size: 0.95rem;
  margin: 6px 0 4px 0;
}

.history-underline {
  width: 56px;
  height: 3px;
  background: #a35ff2;
  border-radius: 999px;
  margin: 4px auto 10px auto;
}

.gostat-card.history-card .match-row {
  padding: 6px 4px;
}

.gostat-card.history-card .match-separator {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.history-body {
  overflow: visible;
}