@import url("pola.css");

/* ===== Live RTP — Sky Island bright theme ===== */
body.page-rtp {
  background: #5ebef0;
}

body.page-rtp .page-bg {
  background: url("https://cdn.edge-files.cloud/dfc283/assets/bg.jpg") center top / cover no-repeat fixed;
}

body.page-rtp .page {
  padding-bottom: 40px;
}

.rtp-panel {
  margin: 10px 0 28px;
  padding: 18px 14px 22px;
  border-radius: 22px;
  background: rgba(180, 230, 255, .55);
  border: 2px solid rgba(255, 255, 255, .55);
  box-shadow: 0 10px 28px rgba(6, 58, 115, .18);
}

.rtp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.rtp-head h1 {
  margin: 0;
  font-family: "Fredoka", sans-serif;
  font-size: clamp(15px, 1.8vw, 18px);
  color: #fff;
  letter-spacing: .4px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(180deg, #0d6bb8, #085291);
  padding: 10px 18px;
  border-radius: 999px;
  box-shadow: 0 3px 0 #05457c;
}

.rtp-head h1 i {
  color: #ffd24a;
}

.rtp-back {
  flex: 0 0 auto;
  background: #fff;
  color: #0b5eab;
  font-weight: 800;
  font-size: 13px;
  white-space: nowrap;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1.5px solid rgba(11, 94, 171, .35);
  box-shadow: 0 2px 6px rgba(6, 58, 115, .12);
  text-decoration: none;
}

.rtp-back:hover {
  color: #063a73;
  filter: brightness(1.03);
}

/* Provider strip */
.rtp-providers {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.rtp-prov-btn {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #0b5eab;
  box-shadow: 0 2px 6px rgba(6, 58, 115, .14);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.rtp-prov-btn:hover {
  filter: brightness(1.05);
}

.rtp-prov-track {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  flex: 1 1 auto;
  min-width: 0;
  padding: 2px;
  -webkit-overflow-scrolling: touch;
}

.rtp-prov-track::-webkit-scrollbar {
  display: none;
}

.rtp-prov {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1.5px solid rgba(11, 94, 171, .28);
  background: #fff;
  color: #063a73;
  font-weight: 800;
  font-size: 12px;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(6, 58, 115, .1);
}

.rtp-prov img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.rtp-prov.is-active {
  background: linear-gradient(180deg, #ffd24a 0%, #ff9f1a 100%);
  color: #5a2e00;
  border-color: #e89a12;
  box-shadow: 0 3px 0 #c57f00;
}

/* Filters + search */
.rtp-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.rtp-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rtp-filter {
  border: 1.5px solid rgba(11, 94, 171, .28);
  background: #fff;
  color: #0b5eab;
  font-weight: 800;
  font-size: 12px;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 6px rgba(6, 58, 115, .1);
}

.rtp-filter i {
  color: #ff7a1a;
}

.rtp-filter.is-active {
  background: linear-gradient(180deg, #0d6bb8, #085291);
  color: #fff;
  border-color: #05457c;
  box-shadow: 0 3px 0 #05457c;
}

.rtp-filter.is-active i {
  color: #ffd24a;
}

.rtp-search {
  position: relative;
  flex: 1 1 220px;
  max-width: 320px;
  margin-left: auto;
}

.rtp-search input {
  width: 100%;
  border: 1.5px solid rgba(11, 94, 171, .28);
  background: #fff;
  border-radius: 999px;
  padding: 10px 42px 10px 16px;
  font-family: "Nunito", sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: #063a73;
  outline: none;
  box-shadow: 0 2px 6px rgba(6, 58, 115, .1);
}

.rtp-search input::placeholder {
  color: #7a99b8;
}

.rtp-search input:focus {
  border-color: #0b5eab;
}

.rtp-search i {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #0b5eab;
  pointer-events: none;
}

/* Game grid */
.rtp-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.rtp-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  background: linear-gradient(180deg, #ffffff 0%, #eef8ff 100%);
  border: 2px solid rgba(255, 255, 255, .75);
  border-radius: 16px;
  padding: 8px 8px 12px;
  box-shadow: 0 8px 18px rgba(6, 58, 115, .12);
  transition: transform .15s ease, box-shadow .15s ease, border-color .2s ease;
}

.rtp-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(6, 58, 115, .18);
  border-color: #ff9f1a;
}

.rtp-card.is-hidden {
  display: none;
}

.rtp-card .game-media {
  margin-bottom: 0;
  border-radius: 12px;
  aspect-ratio: 1 / 1;
}

.rtp-card .rtp-thumb {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  border-radius: inherit;
  background: #cfefff;
  display: block;
}

.rtp-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
  background: #cfefff;
  display: block;
}

.rtp-name {
  margin: 0;
  text-align: center;
  color: #063a73;
  font-family: "Fredoka", sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}

.rtp-provider {
  margin: 0;
  text-align: center;
  color: #0b5eab;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .4px;
  text-transform: uppercase;
}

.rtp-bar {
  width: 100%;
  height: 18px;
  border-radius: 999px;
  background: rgba(11, 94, 171, .12);
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 1px 2px rgba(6, 58, 115, .12);
}

.rtp-bar-fill {
  height: 100%;
  border-radius: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  transition: width .4s ease;
}

.rtp-bar-fill span {
  font-size: 10px;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 1px 1px rgba(0, 0, 0, .25);
}

.rtp-bar-fill.is-mid {
  background: linear-gradient(90deg, #ffb020, #ff8a00);
}

.rtp-bar-fill.is-high {
  background: linear-gradient(90deg, #39c75a, #1f9d3f);
}

.rtp-bar-fill.is-low {
  background: linear-gradient(90deg, #ff6b6b, #e11d48);
}

.rtp-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 28px 12px;
  color: #0b5eab;
  font-weight: 800;
  background: rgba(255, 255, 255, .55);
  border-radius: 14px;
  display: none;
}

.rtp-empty.is-visible {
  display: block;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1100px) {
  .rtp-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .rtp-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .rtp-search {
    max-width: none;
    margin-left: 0;
    flex: 1 1 100%;
  }
}

@media (max-width: 480px) {
  .rtp-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
