/* ===== Page: Home ===== */
.page-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 20px;
  padding: 20px 0;
  align-items: start;
}

/* Sports menu bar */
.sports-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 10px 0;
  overflow-x: auto;
}
.sports-menu a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  background: var(--light-grey);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--dark);
  white-space: nowrap;
}
.sports-menu a img { width: 18px; height: 18px; }
.sports-menu a:hover, .sports-menu a.active { background: var(--green); color: #fff; }

/* Sport categories list */
.sport-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 6px 0;
}
.sport-categories a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  font-size: 13px;
  color: var(--dark);
  border: 1px solid var(--border);
  border-radius: 4px;
  white-space: nowrap;
}
.sport-categories a img { width: 18px; height: 18px; }
.sport-categories a:hover { border-color: var(--green); color: var(--green); }

/* Carousel */
.carousel {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 8px 0 16px;
  scroll-snap-type: x mandatory;
}
.carousel .carousel-item {
  flex: 0 0 auto;
  scroll-snap-align: start;
}
.carousel .carousel-item img {
  height: 150px;
  width: auto;
  border-radius: 8px;
}

.section-title {
  font-size: 24px;
  margin: 22px 0 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--green-dark);
  border-left: 5px solid var(--green);
  padding-left: 12px;
}

/* Featured games */
.featured-games {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}
.featured-games .game-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.featured-games .game-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,0,0,.1);
}
.featured-games .game-card img { width: 100%; }

/* Betting tabs & rows */
.bet-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 12px 0;
}
.bet-tabs a {
  padding: 6px 14px;
  background: var(--light-grey);
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--dark);
}
.bet-tabs a.active { background: var(--green); color: #fff; }

.matches-list {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.matches-row {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid var(--border);
  background: #fff;
}
.matches-row:last-child { border-bottom: none; }
.matches-row-left-panel {
  flex: 1;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.matches-category {
  font-weight: 700;
  font-size: 13px;
  color: var(--green-dark);
  text-transform: uppercase;
}
.match-details {
  font-size: 12px;
  color: var(--grey);
  margin-bottom: 4px;
}
.match-details .live-indicator { color: var(--green-lighter); font-weight: 600; }
.team-name {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14px;
}
.matches-row-right-panel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  min-width: 210px;
}
.matches-row-right-col {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 6px;
  font-weight: 600;
  font-size: 14px;
  color: var(--grey);
  border-left: 1px solid var(--border);
  min-height: 100%;
}
a.right-panel-button {
  color: var(--dark);
  cursor: pointer;
  transition: background .15s;
}
a.right-panel-button:hover { background: var(--green-bg); color: var(--green-dark); }

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 10px 0;
}
.section-head .view-all { color: var(--green); font-weight: 600; font-size: 13px; }

/* Bet slip panel */
.betslip-panel {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  position: sticky;
  top: 120px;
  overflow: hidden;
}
.betslip-tabs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 46px;
  border-bottom: 1px solid var(--border);
}
.betslip-tab-title {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  background: var(--green);
  height: 100%;
  cursor: pointer;
}
.betslip-tab-title.betslip-inactive {
  background: var(--green-bg);
  color: var(--black);
  font-weight: 400;
}
.betslip-tab-title img { width: 15px; }
.betslip-count {
  background: #ff3b3b;
  color: #fff;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}
.betslip-settings {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  color: var(--grey);
}
.betslip-settings img { width: 42px; vertical-align: middle; margin-right: 5px; }
.betslip-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 150px;
  border-bottom: 1px solid var(--border);
  gap: 6px;
}
.betslip-empty img { width: 60px; }
.betslip-empty .empty-text { font-size: 15px; color: var(--dark); }
.betslip-empty .find-link { color: var(--green-lighter); cursor: pointer; font-size: 14px; }
.betslip-form { padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.betslip-form-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}
.betslip-form-row .stake-box {
  background: var(--bg-alt);
  width: 176px;
  height: 46px;
  border-radius: 4px;
}
.betslip-form-row .value { font-weight: 700; }
.btn-login-full {
  display: block;
  width: 100%;
  padding: 12px;
  background: var(--yellow);
  color: var(--black);
  text-align: center;
  font-family: var(--font-head);
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
}

/* Read more content */
.readmore-content {
  padding: 10px 0 30px;
}
.readmore-content h1 {
  font-size: 30px;
  margin-bottom: 16px;
}
.readmore-content h2 {
  font-size: 22px;
  margin: 24px 0 10px;
  color: var(--green-dark);
}
.readmore-content p {
  margin-bottom: 12px;
  color: var(--dark);
  line-height: 1.7;
}

.page-main { min-width: 0; }

@media (max-width: 980px) {
  .page-wrap { grid-template-columns: minmax(0, 1fr); }
  .betslip-panel { position: static; }
  .carousel .carousel-item img { height: 120px; }
}
/* Betting tables */
.bet-section { margin-bottom: 30px; }
.table-responsive table {
  border-collapse: collapse;
  width: 100%;
  min-width: 560px;
}
.table-responsive thead th {
  background: var(--bg-alt);
  color: var(--grey);
  font-weight: 600;
  font-size: 13px;
  padding: 8px 10px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.table-responsive thead th:first-child { text-align: left; }
.table-responsive tbody td {
  padding: 10px;
  border-bottom: 1px solid var(--border);
  text-align: center;
  font-weight: 600;
  color: var(--dark);
}
.table-responsive tbody td:first-child {
  text-align: left;
  font-family: var(--font-head);
  font-weight: 700;
}
.table-responsive tbody td small {
  display: block;
  font-weight: 400;
  color: var(--grey);
  font-size: 12px;
  margin-top: 3px;
}
.table-responsive tbody td small .live-indicator {
  color: var(--green-lighter);
  font-weight: 600;
}
.table-responsive tbody tr:hover td { background: var(--light-grey); }