:root {
    --smaller-font: 0.7rem;
    --small-font: 0.87rem;
    --normal-font: 1rem;
    --medium-font: 1.1rem;
    --large-font: 1.7rem;
    --x-large-font: 2rem;

    /* TEMA HITAM – UNGU – EMAS (selaras SHIRO4D) */
    --bg-color: #050508;
    --text-first: #fdf5e6;
    --text-second: #120016;

    /* UNGU UTAMA + AKSEN */
    --first-color: #7b1fa2;   /* ungu utama */
    --second-color: #c158ff;  /* ungu terang */
    --third-color: #f6c455;   /* emas utama */
    --fourth-color: #2b0035;  /* ungu sangat gelap */
    --fifth-color: #ffb74d;   /* emas lembut */

    --g1: #f6c455;            /* emas */
    --g2: #7b1fa2;            /* ungu */
}

/* GLOBAL */
body {
    background: #000000;
    color: var(--text-first);
    font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    min-height: 100vh;
}

/* LOGO */
.logo img {
    width: 17rem;
    max-width: 80%;
    display: block;
    margin: 1.8rem auto 1rem auto;
    filter:
        drop-shadow(0 0 16px rgba(0, 0, 0, 0.9))
        drop-shadow(0 0 22px rgba(123, 31, 162, 0.9))
        drop-shadow(0 0 26px rgba(246, 196, 85, 0.8));
}

/* CARD RTP */
.rtp-card {
    background: radial-gradient(circle at top, #23192f 0%, #08080b 80%);
    padding: 0.9rem;
    text-align: center;
    width: 24rem;
    max-width: 100%;
    border-radius: 14px;
    margin-bottom: 0.9rem;
    position: relative;
    border: 1px solid rgba(246, 196, 85, 0.7);
    box-shadow:
        0 0 18px rgba(0, 0, 0, 0.95),
        inset 0 0 10px rgba(0, 0, 0, 0.85);
    color: var(--text-first);
}

/* WRAPPER GAMBAR RTP */
.place-img-rtp {
    width: 100%;
    padding: 0.65rem;
    position: relative; /* penting utk ribbon HOT */
    overflow: hidden;
    display: flex;
    justify-content: center;
    border-radius: 12px;
    background: radial-gradient(circle at center, #3b294f 0%, #050508 70%);
    box-shadow:
        inset 0 0 12px rgba(0, 0, 0, 0.9),
        0 0 12px rgba(0, 0, 0, 0.95);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.place-img-rtp:hover {
    cursor: pointer;
    transform: translateY(-3px);
    filter: brightness(1.05);
    box-shadow:
        0 0 22px rgba(0, 0, 0, 1),
        0 0 20px rgba(123, 31, 162, 0.9),
        0 0 24px rgba(246, 196, 85, 0.7);
}

.rtp-card-img {
    max-width: 100%;
    width: 29rem;
    display: block;
    margin: 0 auto;
    border-radius: 12px;
    box-shadow:
        0 0 18px rgba(0, 0, 0, 0.9),
        0 0 14px rgba(0, 0, 0, 0.8);
}

/* =========================================
   RIBBON HOT DI POJOK KIRI ATAS GAMBAR
   (FULL CSS, TANPA UBAH HTML)
   ========================================= */

.place-img-rtp::before {
    content: "HOT";
    position: absolute;
    top: 0;
    left: 0;
    padding: 0.25rem 0.8rem;
    background: #e53935;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-radius: 0 0 4px 0;
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.6),
        0 0 6px rgba(0, 0, 0, 0.8);
    z-index: 20;
}

.place-img-rtp::after {
    content: "";
    position: absolute;
    top: 1.1rem;           /* tinggi ekor */
    left: 0;
    border-style: solid;
    border-width: 0.35rem 0.7rem 0 0.7rem;
    border-color: #b71c1c transparent transparent transparent;
    z-index: 19;
}

/* ICON PROVIDER (logo provider kecil di pojok kanan) */
.icon-providers {
    position: absolute;
    top: 0.55rem;
    right: 0.55rem;
    width: 2.1rem;
    display: block;
}

.icon-providers img {
    width: 1.9rem;
    filter: drop-shadow(0 0 8px rgba(0, 0, 0, 0.95));
}

/* BUTTON PLAY */
.btn-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    border-radius: 999px;
    padding: 0.55rem 1.1rem;
    width: 14rem;
    max-width: 75%;
    border: 1px solid rgba(0, 0, 0, 0.7);
    background: linear-gradient(135deg, #fff3c2 0%, #f6c455 45%, #7b1fa2 100%);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: #2b0000;
    box-shadow:
        0 0 18px rgba(0, 0, 0, 0.95),
        0 0 22px rgba(246, 196, 85, 0.95),
        0 0 26px rgba(123, 31, 162, 0.8);
    text-shadow: 0 0 2px rgba(255, 248, 220, 0.6);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-play:hover {
    background: linear-gradient(135deg, #fff9d9 0%, #ffe089 40%, #c158ff 100%);
    transform: translate(-50%, -50%) scale(1.05);
    box-shadow:
        0 0 22px rgba(0, 0, 0, 1),
        0 0 26px rgba(255, 215, 0, 0.95),
        0 0 28px rgba(193, 88, 255, 0.95);
}

/* SLIDER / SWIPER */
.slider,
.swiper {
    width: 50rem;
    max-width: 100%;
}

.slider {
    padding: 1rem;
}

.slider-img {
    width: 40rem;
    max-width: 100%;
    display: block;
    margin: 0 auto;
    border-radius: 14px;
    box-shadow:
        0 0 24px rgba(0, 0, 0, 0.95),
        0 0 20px rgba(123, 31, 162, 0.8),
        0 0 18px rgba(246, 196, 85, 0.7);
}

.slider-wrapper {
    background: #000000;
    border-bottom: 1px solid rgba(246, 196, 85, 0.5);
}

/* RUNNING TEXT */
.running-text {
    background: linear-gradient(
        90deg,
        #4a0072 0%,
        #7b1fa2 35%,
        #c158ff 65%,
        #f6c455 100%
    );
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.95rem;
    color: #fffbe8;
    padding: 0.25rem 0.7rem;
    letter-spacing: 0.09em;
    text-shadow: 0 0 4px rgba(0, 0, 0, 0.95);
}

/* BAR ICON PROVIDER */
.icon-prov {
    background: radial-gradient(circle at top, #2b0035 0%, #000000 75%);
    display: flex;
    justify-content: center;
    position: relative;
    overflow: auto !important;
    box-shadow:
        0 0 14px rgba(0, 0, 0, 0.95),
        inset 0 0 14px rgba(0, 0, 0, 0.9);
}

.item-prov {
    padding: 0 0.55rem;
}

.img-prov {
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 0 9px rgba(0, 0, 0, 0.95));
}

.icon-card-bg {
    cursor: pointer;
    padding: 0.1rem !important;
    transition: transform 0.15s ease, text-shadow 0.15s ease;
}

.icon-card-bg p {
    font-size: 0.72rem;
    font-weight: 700;
    color: #fff3cc;
    text-align: center;
    white-space: nowrap;
    text-transform: uppercase;
    text-shadow: 0 0 4px rgba(0, 0, 0, 0.95);
}

.icon-card-bg:hover p {
    transform: translateY(-1px);
    text-shadow:
        0 0 4px rgba(246, 196, 85, 0.9),
        0 0 8px rgba(193, 88, 255, 0.9);
}

/* TOMBOL CREDIT / LOGIN / DAFTAR */
.btn-credit {
    background: linear-gradient(180deg, #fff3c2 0%, #f6c455 40%, #7b1fa2 100%);
    padding: 0.75rem;
    color: #2b0000;
    border: none;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-right: 1px solid rgba(0, 0, 0, 0.7);
    text-shadow: 0 0 3px rgba(255, 248, 225, 0.7);
    box-shadow:
        0 0 11px rgba(0, 0, 0, 0.95),
        0 0 16px rgba(246, 196, 85, 0.85),
        0 0 18px rgba(123, 31, 162, 0.8);
}

.btn-credit:hover {
    background: linear-gradient(180deg, #fff9d9 0%, #ffe089 40%, #c158ff 100%);
}

/* NAV BOTTOM (MOBILE) */
.nav-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    display: flex;
    z-index: 11;
    width: 100%;
    border-top: 3px solid var(--third-color);
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.95);
}

.item-nav-bottom {
    background: linear-gradient(180deg, #fff3c2 0%, #f6c455 40%, #7b1fa2 100%);
    color: #2b0000;
    font-weight: 800;
    text-align: center;
    font-size: 0.78rem;
    padding: 0.35rem 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-right: 1px solid rgba(0, 0, 0, 0.7);
    text-shadow: 0 0 2px rgba(255, 248, 220, 0.6);
    transition: transform 0.15s ease, background 0.15s ease;
}

.item-nav-bottom:last-child {
    border-right: none;
}

.item-nav-bottom:hover {
    background: linear-gradient(180deg, #fff9d9 0%, #ffe089 40%, #c158ff 100%);
    cursor: pointer;
    transform: translateY(-1px);
}

.item-nav-bottom p {
    margin: 0;
}

/* BUTTON SCROLL-UP */
.btn-up {
    display: none;
    position: fixed;
    bottom: 4.1rem;
    right: 0.5rem;
    z-index: 99;
    font-size: 0.9rem;
}

/* POLA WRAPPER */
.pola-wrapper {
    background: radial-gradient(circle at top, #3a003f 0%, #020203 80%);
    padding: 1.6rem 0.9rem 0.9rem 0.9rem;
    width: 14rem;
    max-width: 100%;
    border-radius: 10px;
    position: relative;
    border: 1px solid rgba(246, 196, 85, 0.7);
    box-shadow:
        0 0 14px rgba(0, 0, 0, 0.9),
        inset 0 0 11px rgba(0, 0, 0, 0.85);
    color: var(--text-first);
}

/* Icon provider di dalam pola-wrapper dirapatkan & diperkecil */
.pola-wrapper .icon-providers {
    top: 0.35rem;
    right: 0.35rem;
    width: 1.8rem;
}

/* JUDUL POLA SLOT */
.pola-wrapper h4 {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 8px;
    font-size: 0.86rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.25;
    padding-right: 2.8rem;
    flex-wrap: wrap;
    margin-bottom: 0.2rem;
}

.pola-wrapper h4 img {
    width: 30px;
    height: auto;
    display: block;
    margin-left: auto;
    flex-shrink: 0;
}

.pola-wrapper h5 {
    font-size: 0.7rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.pola-wrapper h4 i,
.pola-wrapper h5 i {
    color: var(--third-color);
}

/* JAM WRAPPER */
.jam-wrapper {
    background: radial-gradient(circle at center, #4a003f 0%, #000000 90%);
    border-radius: 50%;
    padding: 0.6rem;
    box-shadow:
        0 0 10px rgba(0, 0, 0, 0.95),
        0 0 12px rgba(193, 88, 255, 0.5);
}

/* TABEL POLA */
.table-pola {
    max-width: 100%;
    width: 9.5rem;
}

.table-pola tr td {
    text-align: center;
    font-size: 0.7rem;
    color: var(--text-first);
}

/* BAR PERSEN RTP */
.percent {
    height: 19px;
    margin-top: 10px !important;
    display: flex;
    overflow: hidden;
    font-size: 0.75rem;
    background-color: #2a0b26;
    position: relative;
    z-index: 1;
    border-radius: 6px;
    width: 100%;
    margin: 0 auto;
    box-shadow:
        inset 0 0 9px rgba(0, 0, 0, 0.9),
        0 0 10px rgba(0, 0, 0, 0.9);
}

.percent p {
    z-index: 15;
    position: absolute;
    text-align: center;
    width: 100%;
    font-size: 13px;
    font-weight: 800;
    transform: translateY(2px);
    color: #fffbe8;
    text-shadow: 0 0 3px rgba(0, 0, 0, 1);
}

.percent-bar {
    background-image: linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.18) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.18) 50%,
        rgba(255, 255, 255, 0.18) 75%,
        transparent 75%,
        transparent
    );
    background-size: 1rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    transition: width 0.6s ease;
    animation: progress-bar-stripes 1s linear infinite;
    z-index: 10;
}

/* WARNA STATUS RTP */
.good {
    background-color: #f6c455;
}

.great {
    background-color: #2ecc71;
}

.bad {
    background-color: #e53935;
}

/* CONTENT WRAPPER */
.content-home {
    padding: 1rem;
    margin-bottom: 4rem;
    background: radial-gradient(circle at top, #2b0035 0%, #000000 60%);
    color: #fff9e6;
    border-radius: 16px 16px 0 0;
    box-shadow:
        0 0 20px rgba(0, 0, 0, 0.95),
        0 0 16px rgba(246, 196, 85, 0.6),
        0 0 20px rgba(123, 31, 162, 0.7);
}

/* CONTAINER WIDTH DESKTOP */
@media (min-width: 1200px) {
    .container,
    .container-lg,
    .container-md,
    .container-sm,
    .container-xl {
        max-width: 1100px !important;
    }
}
