/* =============== ROOT VARS (UPDATED: added new vars) =============== */
:root {
  --text-color: #fff; /* UPDATED */
  --accent-color: #00e676;
  --button-bg: #00e676;
  --button-text: #000;
  --outline-color: rgba(255, 255, 255, 0.2);
  --progress-bg: rgba(255, 255, 255, 0.2);
  --provider-item-active-bg: #00e676; /* NEW */
  --provider-item-active-text: #000; /* NEW */
  --provider-item-text: #ffffff; /* NEW */
  --provider-bar-bg: rgba(0, 0, 0, 0.25); /* NEW */
  --game-card-bg: rgba(20, 20, 30, 0.75); /* NEW */
  --btn-icon-bg: #00e676; /* NEW */
  --title-color: #ffffff;
  --countdown-color: #ffffff;
  --meta-card-bg: rgba(255,255,255,0.04);
  --meta-title-color: #ffffff;
  --meta-title-border: rgba(255,255,255,0.25);
    --provider-item-bg: rgba(255, 255, 255, 0.08);
  --btn-icon-color:#fff;
} 

/* =============== GLOBAL (UPDATED: uses global text color) =============== */
html,
body {
  margin: 0;
  padding: 0;
  background: transparent !important;
  font-family: Arial, sans-serif;
  color: var(--text-color); /* UPDATED */
  overflow-x: hidden;
} 

/* =============== WRAPPER =============== */
.rtp-wrapper {
  width: 100%;
  padding: 10px;
  box-sizing: border-box;
} 

/* =============== PROVIDER LIST =============== */
.provider-bar {
  padding: 12px;
  background: var(--provider-bar-bg); /* UPDATED */
  border-radius: 10px;
  margin-top: 12px;
  backdrop-filter: blur(6px);
}
.provider-label {
  margin-bottom: 6px;
  font-size: 13px;
  opacity: 0.8;
  font-weight: bold;
}
.provider-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.provider-item {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  background: var( --provider-item-bg);
  color: var(--provider-item-text); /* UPDATED */
  transition: 0.2s;
}
.provider-item.active {
  background: var(--provider-item-active-bg); /* UPDATED */
  color:  var(--provider-item-active-text);
} 

/* =============== TITLE =============== */
.provider-title {
  margin: 12px 0 8px;
  font-size: 22px;
  font-weight: bold;
  text-align: center;
  color: var(--title-color); /* NEW */
} 

/* =============== META CARD (LIVE + PAGER) =============== */
.meta-card{
  margin:12px 0 16px;
  padding:12px;
  background: var(--meta-card-bg);
  border:1px solid rgba(255,255,255,0.08);
  border-radius:12px;
  display:flex;
  flex-direction: column;
  gap:10px;
}
.meta-title{
  width:100%;
  text-align:center;
  font-size:20px;
  font-weight:800;
  color:var(--meta-title-color, #FFFFFF);
  padding-bottom:8px;
  border-bottom:1px solid var(--meta-title-border, rgba(255,255,255,0.25));
}

.meta-bottom-row{
  display:grid;
  grid-template-columns:1fr auto;
  align-items:center;
  width:100%;
}

/* Left stack */
.live-stack {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
} 

/* LIVE pill */
.live-tag {
  display: inline-flex;
  align-items: center;
  background: #e74c3c;
  padding: 2px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: bold;
  color: #fff;
  width: fit-content;
}
.live-stack .live-tag {
  align-self: start;
}
.live-tag .dot {
  width: 7px;
  height: 7px;
  background: #fff;
  border-radius: 50%;
  margin-left: 6px;
  animation: breathing 1.3s infinite alternate;
}

.live-tag.live-tag--sm {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 999px;
  gap: 6px;
}

.live-tag.live-tag--sm .dot {
  width: 6px;
  height: 6px;
}

@keyframes breathing {
  from {
    opacity: 1;
    box-shadow: 0 0 6px 2px #fff;
  }
  to {
    opacity: 0.3;
    box-shadow: 0 0 2px 0 #fff;
  }
}

.time-label {
  font-size: 11px;
  color: #cfd7e3;
  opacity: 0.9;
  line-height: 1;
}

.time-value {
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  color: var(--countdown-color); /* NEW */
  line-height: 1.1;
} 

/* Right side pager */
.pager {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pager--right {
  justify-self: end;
}

.btn-icon {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  background: var(--btn-icon-bg); /* UPDATED */
  color: var(--btn-icon-color);
  cursor: pointer;
  transition: transform 0.08s ease, filter 0.2s ease;
}

.btn-icon:active {
  transform: translateY(1px);
}

.btn-icon:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.chev-left,
.chev-right {
  display: block;
  width: 10px;
  height: 10px;
  position: relative;
}

.chev-left::before,
.chev-right::before {
  content: "";
  position: absolute;
  inset: 0;
  border: solid var(--btn-icon-color);
  border-width: 0 3px 3px 0;
  padding: 3px;
}

.chev-left::before {
  transform: rotate(135deg);
  left: 1px;
}

.chev-right::before {
  transform: rotate(-45deg);
  right: 1px;
}

.page-info {
  font-size: 12px;
  font-weight: 700;
  color: #e9eef6;
  opacity: 0.95;
}

 /* =============== GAME GRID =============== */
.games-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
} 

/* =============== GAME CARD (UPDATED: background now uses theme variable) =============== */
.game-card {
  background: var(--game-card-bg);
  border-radius: 12px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
}

.game-image-wrapper {
  width: 100%;
  height: 90px;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}

.game-image {
  width: 100%;
  height: 100%;
  aspect-ratio: 1/1 !important;
  object-fit: contain !important;
  padding: 4px;
  image-rendering: -webkit-optimize-contrast;
  background-color: rgba(255, 255, 255, 0);
  display: block;
}

.game-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  margin-top: 8px;
}

.game-title {
  font-size: 12px;
  font-weight: 700;
  margin: 0;
  height: 33px;
  overflow: hidden;
  display: block;
  word-break: break-word;
}

.game-provider {
  font-size: 12px;
  opacity: 0.7;
  margin-top: 3px;
}

.rtp-row {
  display: flex;
  justify-content: space-between;
  margin: 8px 0 4px;
}

.rtp-label {
  font-size: 12px;
  opacity: 0.8;
}

.rtp-value {
  font-size: 13px;
  font-weight: bold;
  color: var(--accent-color);
}

.progress-container {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  border-radius: 6px;
}

.rtp-low {
  background: #ff4d4d;
}

.rtp-mid {
  background: #ffa726;
}

.rtp-high {
  background: #42a5f5;
}

.rtp-hot {
  background: #00e676;
}

@media (max-width: 480px) {
  .meta-card {
    grid-template-columns: 1fr auto;
  }
  .page-info {
    font-size: 11px;
  }
  .btn-icon {
    width: 26px;
    height: 26px;
    border-radius: 7px;
  }
}
