.current-tournament {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 1rem;
  padding: 0 16px;
  color: #333;
}

.race-tabs {
  display: flex;
  margin-bottom: 1rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  padding: 0 16px 6px;
  background: #fff;
  border-bottom: 1px solid #ddd;
}

.race-tabs::-webkit-scrollbar {
  display: none;
}

.race-tab {
  flex: 0 0 auto;
  scroll-snap-align: start;
  padding: 10px 12px;
  font-weight: 700;
  background: transparent;
  color: #2c2c2c;
  cursor: pointer;
  text-align: center;
  font-size: 14px;
  white-space: nowrap;
  line-height: 1.2;
  transition: all 0.2s ease-in-out;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  border-left: 1px solid #ddd;
}

.race-tab:first-child {
  border-left: none;
}

.race-tab span {
  font-size: 12px;
  color: #555;
  margin-top: 4px;
}

.race-tab.active {
  background: linear-gradient(to right, #7b5cff, #9179ff);
  color: #fff;
  border-radius: 6px 6px 0 0;
  padding-top: 12px;
  padding-bottom: 12px;
}



.race-tab.disabled {
  color: #aaa;
  pointer-events: none;
  opacity: 0.6;
}

.race-content {
  display: none;
  padding: 0 0;
}

.race-content.active {
  display: block;
}

.race-entry {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid #eee;
  gap: 10px;
  flex-wrap: wrap;
}

.horse-info {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  flex: 1 1 auto;
  flex-wrap: nowrap;
  position: relative; /* enables absolute positioning inside */
}

.horse-number {
  font-weight: bold;
  font-size: 16px;
  width: 22px;
  text-align: right;
  color: #111;
}

.silk-box img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 4px;
  border: 1px solid #ccc;
}

.horse-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.horse-name {
  font-weight: 700;
  font-size: 16px;
  color: #111;
}

.horse-meta,
.horse-details {
  font-size: 13px;
  color: #555;
}

.odds-box-inline {
  display: inline-block;
  padding: 4px 10px;
  line-height: 1.2;
  font-size: 14px;
  border-radius: 8px;
  background: #ece8ff;
  color: #6c2ad2;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 0 0 1px #e0d7ff inset;

  position: absolute;
  right: 0;
  top: 0;
}

.result-entry {
  background-color: rgba(124, 252, 0, 0.1); /* 20% opacity */
  border-left: 4px solid #28a745;
}


@media (max-width: 600px) {
  .race-entry {
    align-items: flex-start;
  }

  .horse-info {
    flex-wrap: wrap;
    align-items: flex-start;
    position: relative;
  }

  .horse-number {
    width: auto;
    text-align: left;
  }

  .silk-box img {
    width: 36px;
    height: 36px;
  }

  .horse-name {
    font-size: 12px;
  }

  .horse-meta,
  .horse-details {
    font-size: 11px;
  }

  .odds-box-inline {
    position: relative;
    margin-left: 0;
    margin-top: 6px;
    align-self: flex-start;
  }

  .race-tab {
    font-size: 13px;
    padding: 10px 12px;
  }

  .race-tab span {
    font-size: 11px;
  }
	
	  .race-buttons {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-top: 1.5rem;
  }

  .race-button img {
    width: 48px;
    height: 48px;
  }

  .race-button p {
    font-size: 12px;
  }

  .race-button a {
    flex-direction: row;
    gap: 10px;
    align-items: center;
  }
}