/* ==========================================================================
   PREMIER LEAGUE LIVE ODDS & FIXTURE SCHEDULE STYLES
   Colors: Dark green (#05401d, #0b2c16), Gold (#f59e0b, #fdfb02), Neon (#10b981)
   ========================================================================== */

.epl-sch-wrap {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #e2e8f0;
  max-width: 1140px;
  margin: 0 auto;
  padding: 10px 0;
}

.epl-hero {
  text-align: center;
  margin-bottom: 25px;
  background: linear-gradient(135deg, #05401d 0%, #0c6a32 100%);
  padding: 26px 20px;
  border-radius: 16px;
  border: 1px solid rgba(245, 158, 11, 0.25);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  position: relative;
}

.epl-title {
  font-weight: 900;
  font-size: 2rem;
  color: #ffffff;
  margin: 0 0 8px 0;
  text-transform: uppercase;
  background: linear-gradient(90deg, #10b981, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.5px;
}

.epl-sub {
  color: #a7f3d0;
  font-size: 1rem;
  margin: 0;
}

/* API Status Header Bar */
.odds-api-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #042411;
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 12px;
  padding: 12px 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.api-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  color: #34d399;
}

.api-pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulseGreen 1.8s infinite;
}

@keyframes pulseGreen {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.api-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.api-refresh-btn {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #f59e0b;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.25s ease;
}

.api-refresh-btn:hover {
  background: #f59e0b;
  color: #042411;
}

.api-refresh-btn.spinning i {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  100% { transform: rotate(360deg); }
}

.api-updated-text {
  font-size: 0.85rem;
  color: #94a3b8;
}

/* League & Filter Controls */
.epl-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-pill {
  padding: 6px 14px;
  border-radius: 20px;
  background: #0b2c16;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-pill:hover, .filter-pill.active {
  background: var(--secondary);
  color: #042411;
  border-color: var(--secondary);
}

.epl-search-input {
  padding: 8px 16px;
  border-radius: 8px;
  background: #0b2c16;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.92rem;
  outline: none;
  min-width: 220px;
}

/* Odds Schedule Box & Table */
.epl-round-box {
  margin-bottom: 25px;
  background: #0b2c16;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.epl-round-head {
  background: linear-gradient(90deg, #042411, #0c3e1e);
  padding: 14px 20px;
  font-size: 1.15rem;
  font-weight: 800;
  border-bottom: 2px solid #f59e0b;
  color: #fff;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.epl-table-wrapper {
  overflow-x: auto;
  width: 100%;
}

.epl-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.epl-table thead th {
  background: #041f0e;
  padding: 10px 14px;
  font-size: 0.82rem;
  font-weight: 800;
  color: #a7f3d0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.epl-table tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.2s ease;
}

.epl-table tbody tr:hover {
  background: rgba(245, 158, 11, 0.04);
}

.epl-table td {
  padding: 12px 14px;
  vertical-align: middle;
  font-size: 0.92rem;
}

/* Match Columns */
.td-time-col {
  width: 16%;
  text-align: center;
}

.match-date-badge {
  color: #10b981;
  font-weight: 700;
  font-size: 0.85rem;
  display: block;
}

.match-time-badge {
  color: #e2e8f0;
  font-weight: 800;
  font-size: 0.95rem;
  margin: 2px 0;
}

.match-status-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: #94a3b8;
}

.match-status-tag.live {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.4);
  animation: blink 1.5s infinite;
}

@keyframes blink {
  50% { opacity: 0.6; }
}

/* Teams & VS column */
.td-matchup-col {
  width: 38%;
}

.matchup-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.team-box {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.team-box.home {
  justify-content: flex-end;
  text-align: right;
}

.team-box.away {
  justify-content: flex-start;
  text-align: left;
}

.team-name {
  font-weight: 700;
  color: #f8fafc;
  font-size: 0.98rem;
}

.team-logo-img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
  flex-shrink: 0;
}

.score-or-vs {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
}

.vs-box {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  font-weight: 900;
  font-size: 0.85rem;
  padding: 3px 8px;
  border-radius: 10px;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.score-box {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
  font-weight: 900;
  font-size: 1rem;
  padding: 3px 10px;
  border-radius: 8px;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.stadium-text {
  font-size: 0.75rem;
  color: #94a3b8;
  margin-top: 3px;
  text-align: center;
}

/* 1X2 Odds column */
.td-odds-1x2 {
  width: 22%;
  text-align: center;
}

.odds-grid-1x2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}

.odd-btn {
  background: #041f0e;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 6px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.odd-btn:hover {
  background: #f59e0b;
  border-color: #f59e0b;
}

.odd-btn:hover .odd-label,
.odd-btn:hover .odd-val {
  color: #042411;
}

.odd-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: #94a3b8;
}

.odd-val {
  font-size: 0.88rem;
  font-weight: 800;
  color: #fbbf24;
}

/* Over/Under Odds column */
.td-odds-ou {
  width: 14%;
  text-align: center;
}

.ou-box {
  background: #041f0e;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ou-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
}

.ou-label {
  color: #a7f3d0;
  font-weight: 700;
}

.ou-val {
  color: #fbbf24;
  font-weight: 800;
}

/* Action column */
.td-action-col {
  width: 10%;
  text-align: center;
}

.btn-bet-now {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #042411;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 8px 12px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-bet-now:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.5);
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}

/* ==========================================================================
   ENHANCED 38 ROUNDS SCHEDULE TABLE STYLING
   ========================================================================== */
.epl-table-v2 {
  width: 100%;
  border-collapse: collapse;
}

.epl-table-v2 tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background-color 0.18s ease;
}

.epl-table-v2 tbody tr:hover {
  background: rgba(16, 185, 129, 0.08);
}

.epl-table-v2 td {
  padding: 12px 16px;
  vertical-align: middle;
}

.epl-td-datetime {
  width: 15%;
  white-space: nowrap;
}

.epl-date-text {
  font-weight: 700;
  font-size: 0.88rem;
  color: #10b981;
  display: block;
}

.epl-time-text {
  font-weight: 800;
  font-size: 0.95rem;
  color: #f8fafc;
  display: inline-block;
  margin-top: 2px;
}

.epl-td-match {
  width: 50%;
}

.epl-match-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.epl-team {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.epl-team.home {
  justify-content: flex-end;
  text-align: right;
}

.epl-team.away {
  justify-content: flex-start;
  text-align: left;
}

.epl-team-name {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.2px;
}

.epl-team.winner .epl-team-name {
  color: #fbbf24;
}

.epl-team-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
  flex-shrink: 0;
}

.epl-score-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 68px;
  padding: 4px 12px;
  border-radius: 8px;
  font-weight: 900;
  font-size: 1.05rem;
  letter-spacing: 1px;
}

.epl-score-badge.finished {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(185, 28, 28, 0.3));
  border: 1px solid rgba(239, 68, 68, 0.5);
  color: #f87171;
}

.epl-score-badge.upcoming {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fbbf24;
  font-size: 0.85rem;
}

.epl-score-badge.live {
  background: rgba(16, 185, 129, 0.25);
  border: 1px solid #10b981;
  color: #34d399;
  animation: pulseGreen 1.5s infinite;
}

.epl-td-stadium {
  width: 23%;
  font-size: 0.82rem;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.epl-td-action {
  width: 12%;
  text-align: right;
  white-space: nowrap;
}

.btn-epl-bet {
  display: inline-block;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #042411;
  font-weight: 800;
  font-size: 0.82rem;
  padding: 6px 14px;
  border-radius: 6px;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.25);
}

.btn-epl-bet:hover {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.45);
}

.btn-epl-soikeo {
  display: inline-block;
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.4);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 5px 12px;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-epl-soikeo:hover {
  background: #10b981;
  color: #042411;
  border-color: #10b981;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.35);
}

@media (max-width: 900px) {
  .epl-title { font-size: 1.4rem; }
  .epl-table-v2 { min-width: 680px; }
  .epl-team-name { font-size: 0.92rem; }
  .epl-team-logo { width: 22px; height: 22px; }
}
