/* SARDEN11 homepage carousels V4.2 (FIX DESKTOP 3-COLUMN). */
.home-hot-games {
    max-width: 100%;
    margin: 10px auto 2px;
    padding: 12px 12px 10px;
    overflow: hidden;
    color: #fff3d5;
}
.home-hot-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}
.home-hot-title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.home-hot-title h3,
.home-hot-title-text h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 900;
    color: var(--sv-text-section, var(--sv-text, #FFF6E0)) !important;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}
.home-hot-title span:not(.home-hot-fire), .home-hot-title-text span { display: block; margin-top: 4px; color: var(--sv-text-label, var(--sv-muted, #cfb5a0)) !important; font-size: 10px; }
.home-hot-fire { font-size: 27px; line-height: 1; filter: drop-shadow(0 0 8px #ff6900a8); }
.home-hot-all {
    flex: 0 0 auto;
    padding: 9px 12px;
    color: var(--sv-text-menu, #ffcf76) !important;
    text-decoration: none !important;
    font-size: 10px;
    font-weight: 900;
    border: 1px solid rgba(255, 187, 77, .36);
    border-radius: 999px;
    background: linear-gradient(140deg, #4c210f, #1b1110);
}
.home-hot-all i { margin-left: 5px; }
.home-hot-shell {
    position: relative;
    isolation: isolate;
    border: 1px solid rgba(253, 166, 50, .65);
    border-radius: 19px;
    background: radial-gradient(ellipse at 50% 0%, #562311 0%, #160b0b 50%, #080708 100%);
    box-shadow: 0 14px 30px #0008, inset 0 1px 0 #ffe09829, 0 0 22px #ff80221b;
    padding: 9px 25px 8px;
    overflow: hidden;
}
.home-hot-viewport {
    position: relative;
    overflow: hidden;
    width: 100%;
    touch-action: pan-y;
    outline: none;
    cursor: grab;
}
.home-hot-viewport:active { cursor: grabbing; }
.home-hot-viewport:focus-visible { outline: 2px solid #f9c363; outline-offset: -3px; border-radius: 10px; }
.home-hot-track {
    display: flex;
    align-items: center;
    width: max-content;
    gap: 12px;
    padding: 8px 0;
    transform: translate3d(0,0,0);
    transition: transform 530ms cubic-bezier(.22,.7,.2,1);
    will-change: transform;
}
.home-hot-card {
    position: relative;
    display: flex;
    flex: 0 0 105px;
    width: 105px;
    height: 135px;
    box-sizing: border-box;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    padding: 3px 3px 5px;
    border: 1px solid rgba(191, 101, 32, .5);
    border-radius: 15px;
    background: linear-gradient(160deg, #7b3a13, #351410);
    box-shadow: 0 7px 15px #0008;
    color: #ffedc7 !important;
    text-decoration: none !important;
    transform: translateY(0);
    opacity: .84;
    transition: transform 420ms ease, opacity 420ms ease, border-color 420ms ease, box-shadow 420ms ease;
    -webkit-tap-highlight-color: transparent;
}
.home-hot-card.is-active {
    transform: translateY(-2px);
    opacity: 1;
    z-index: 2;
    border-color: #ffb84f;
    background: linear-gradient(165deg, #b96715, #7b2a0a);
    box-shadow: 0 0 13px #ff9f4280, 0 9px 15px #000a, inset 0 0 0 1px #ffe29a70;
}
.home-hot-cover { display: block; flex: 1 1 auto; min-height: 0; width: 100%; overflow: hidden; background: #21151a; border-radius: 10px; }
.home-hot-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.home-hot-card-title {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 9px;
    font-weight: 900;
    line-height: 1.15;
    text-align: center;
    text-shadow: 0 1px 3px #0009;
}
.home-hot-provider {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 7px;
    line-height: 1.1;
    color: #ffe4ac;
    text-align: center;
    opacity: .85;
}
.home-hot-arrow {
    position: absolute;
    top: 50%;
    z-index: 4;
    display: grid;
    place-items: center;
    width: 29px;
    height: 36px;
    border-radius: 11px;
    transform: translateY(-50%);
    border: 1px solid #ff9d36;
    background: linear-gradient(155deg, #d77c20, #8d320b);
    color: #fff4d9;
    box-shadow: 0 5px 13px #000a;
    cursor: pointer;
}
.home-hot-arrow:disabled { opacity: .25; cursor: default; }
.home-hot-prev { left: 5px; }
.home-hot-next { right: 5px; }
.home-hot-counter { min-height: 13px; margin-top: 3px; text-align: center; color: #dfaf75; font-size: 10px; font-weight: 800; letter-spacing: 1.5px; }

/* The existing togel cards, colors, typography and inner HTML stay untouched. */
.home-togel .home-togel-track.is-infinite {
    display: flex !important;
    grid-template-columns: none !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-behavior: auto !important;
    scroll-snap-type: none !important;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
}
.home-togel .home-togel-track.is-infinite::-webkit-scrollbar { display: none; }
.home-togel .home-togel-track.is-infinite .home-togel-card { scroll-snap-align: none !important; }

/* =========================================================
   FIX DESKTOP (LAYOUT 3-KOLOM)
   Mengunci ukuran kartu agar tidak jebol ke samping
   ========================================================= */
@media (min-width: 900px) {
    .home-hot-games { padding: 10px 0; margin-top: 10px; }
    .home-hot-shell { padding: 10px 37px; }
    
    /* Kunci ukuran kartu Hot Games */
    .home-hot-card {
        flex: 0 0 120px !important;
        width: 120px !important;
        height: 155px !important;
    }
    .home-hot-card-title { font-size: 11px; }
    .home-hot-provider { font-size: 9px; }
    
    /* Kunci ukuran kartu Togel */
    .home-togel .home-togel-track.is-infinite .home-togel-card { 
        flex: 0 0 calc((100% - 30px) / 3) !important; 
    }
}

@media (max-width: 600px) {
    .home-hot-games { padding: 10px 9px 7px; }
    .home-hot-head { margin-bottom: 10px; }
    .home-hot-title h3 { font-size: 15px; }
    .home-hot-title span:not(.home-hot-fire) { font-size: 9px; }
    .home-hot-fire { font-size: 23px; }
    .home-hot-all { padding: 7px 9px; font-size: 8px; }
    .home-hot-shell { padding: 8px 19px 7px; border-radius: 17px; }
    .home-hot-track { gap: 11px; padding: 8px 0; }
    .home-hot-card { flex-basis: 105px; border-radius: 12px; padding: 3px 3px 5px; }
    .home-hot-cover { border-radius: 8px; }
    .home-hot-card-title { font-size: 9px; }
    .home-hot-provider { font-size: 7px; }
    .home-hot-arrow { width: 24px; height: 33px; border-radius: 9px; font-size: 10px; }
    .home-hot-prev { left: 1px; }
    .home-hot-next { right: 1px; }
    .home-hot-counter { font-size: 9px; margin-top: 3px; }
}
@media (prefers-reduced-motion: reduce) {
    .home-hot-track, .home-hot-card { transition-duration: 0ms !important; }
}

/* ==== FORCE section titles independent of theme primary ==== */
.sv-section-title,
.home-hot-title h3,
.home-hot-title-text h3,
.home-hot-games h3,
.home-togel-title h3,
.provider-home-title {
    color: var(--sv-text-section, #FFFFFF) !important;
    -webkit-text-fill-color: var(--sv-text-section, #FFFFFF) !important;
    background: none !important;
    background-image: none !important;
    -webkit-background-clip: border-box !important;
    background-clip: border-box !important;
    text-shadow: none !important;
    filter: none !important;
}
