﻿/* ===== Live RTP — Template2 dark/gold (layout like template1) ===== */
@import url("pola.css");

body.page-rtp .page {
  padding-bottom: 40px;
}

.rtp-panel {
  position: relative;
  margin: 12px 0 28px;
  padding: 18px 14px 22px;
  border-radius: 18px;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(255, 220, 160, .16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .1),
    0 10px 24px rgba(0, 0, 0, .28);
}
.rtp-panel::before {
  content: "";
  position: absolute;
  inset: -12%;
  z-index: 0;
  background: url("../assets/bg.jpeg") center top / cover no-repeat;
  filter: blur(2px) saturate(1.35) brightness(1.08);
  pointer-events: none;
}
.rtp-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(16, 6, 36, .72);
  pointer-events: none;
}
.rtp-panel > * {
  position: relative;
  z-index: 1;
}

.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: rgba(28, 14, 62, .92);
  border: 1px solid rgba(186, 160, 255, .32);
  padding: 10px 18px;
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
}
.rtp-head h1 i { color: #ffd24a; }

.rtp-back {
  flex: 0 0 auto;
  background: rgba(28, 14, 62, .92);
  color: #ffe566;
  font-weight: 800;
  font-size: 13px;
  white-space: nowrap;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(245, 197, 24, .35);
  text-decoration: none;
}
.rtp-back:hover { color: #fff; filter: brightness(1.08); }

.rtp-providers {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.rtp-prov-btn {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(186, 160, 255, .35);
  border-radius: 999px;
  background: rgba(28, 14, 62, .9);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.rtp-prov-btn:hover { filter: brightness(1.1); }

.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: 1px solid rgba(186, 160, 255, .3);
  background: rgba(28, 14, 62, .88);
  color: #fff;
  font-weight: 800;
  font-size: 12px;
  white-space: nowrap;
  cursor: pointer;
}
.rtp-prov img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  background: #fff;
  border-radius: 4px;
  padding: 2px;
}
.rtp-prov.is-active {
  background: linear-gradient(180deg, #ffe566 0%, #f5c518 100%);
  color: #3a1a00;
  border-color: #e89a12;
  box-shadow: 0 3px 0 #b8860b;
}

.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: 1px solid rgba(186, 160, 255, .3);
  background: rgba(28, 14, 62, .88);
  color: #fff;
  font-weight: 800;
  font-size: 12px;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.rtp-filter i { color: #ff9a3c; }
.rtp-filter.is-active {
  background: linear-gradient(180deg, #5b2fd4, #3a1a8a);
  color: #fff;
  border-color: rgba(245, 197, 24, .45);
  box-shadow: 0 3px 0 #2a1060;
}
.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: 1px solid rgba(245, 197, 24, .35);
  background: rgba(0, 0, 0, .28);
  border-radius: 999px;
  padding: 10px 42px 10px 16px;
  font-family: "Nunito", sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: #fff;
  outline: none;
  box-sizing: border-box;
}
.rtp-search input::placeholder { color: rgba(244, 239, 255, .45); }
.rtp-search input:focus { border-color: #f5c518; }
.rtp-search i {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #f5c518;
  pointer-events: none;
}

.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: rgba(22, 10, 48, .88);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 14px;
  padding: 8px 8px 12px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .25);
  transition: transform .15s ease, box-shadow .15s ease, border-color .2s ease;
}
.rtp-card:hover {
  transform: translateY(-3px);
  border-color: #f5c518;
  box-shadow: 0 12px 24px rgba(0, 0, 0, .35);
}
.rtp-card.is-hidden { display: none; }

.rtp-card .game-media {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  margin: 0;
  border: 2px solid #fff;
  box-shadow: 0 6px 14px rgba(0, 0, 0, .28);
  background: #1a0a36;
  transition: border-color .2s ease, box-shadow .2s ease;
  aspect-ratio: 1 / 1;
}
.rtp-card:hover .game-media {
  border-color: #f5c518;
  box-shadow: 0 8px 18px rgba(245, 197, 24, .28);
}
.rtp-card .game-media > img,
.rtp-thumb {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: inherit;
  border: 0;
  background: #1a0a36;
  display: block;
  box-sizing: border-box;
  transition: transform .25s ease;
}
.rtp-card:hover .game-media > img {
  transform: scale(1.04);
}
.rtp-card .game-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(8, 4, 24, .5);
  opacity: 0;
  transition: opacity .2s ease;
  pointer-events: none;
}
.rtp-card:hover .game-media::after {
  opacity: 1;
}
.rtp-card .play-now {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -40%);
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  font-family: "Fredoka", "Nunito", sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .4px;
  color: #3a2200;
  background: linear-gradient(180deg, #ffd24a 0%, #f5c518 100%);
  border-radius: 999px;
  padding: 8px 16px;
  box-shadow: 0 3px 0 #b8860b, 0 6px 14px rgba(0, 0, 0, .35);
  transition: opacity .2s ease, transform .2s ease;
}
.rtp-card:hover .play-now {
  opacity: 1;
  transform: translate(-50%, -50%);
}
.rtp-name {
  margin: 0;
  text-align: center;
  color: #fff;
  font-family: "Fredoka", sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}
.rtp-provider {
  margin: 0;
  text-align: center;
  color: rgba(210, 195, 245, .75);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .4px;
  text-transform: uppercase;
}

.rtp-bar {
  width: 100%;
  height: 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .25);
}
.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, .35);
}
.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: #ffe566;
  font-weight: 800;
  background: rgba(0, 0, 0, .25);
  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)); }
}

/* mobile: no background images */
@media (max-width: 768px) {
  .category-panel::before,
  .promo-panel::before,
  .rtp-panel::before {
    content: none !important;
    display: none !important;
    background: none !important;
  }
}