/* SARDEN11 homepage carousels — Hot Games theme-aware (selaras provider panel) */
.home-hot-games {
    max-width: 100%;
    margin: 10px auto 2px;
    padding: 12px 12px 10px;
    overflow: hidden;
    color: var(--sv-text, #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 color-mix(in srgb, var(--sv-primary, #ff6900) 65%, transparent));
}
.home-hot-all {
    flex: 0 0 auto;
    padding: 8px 14px;
    color: var(--sv-surface, #0a0a0c) !important;
    text-decoration: none !important;
    font-size: 11px;
    font-weight: 800;
    border: 1px solid color-mix(in srgb, var(--sv-primary, #ffd45a) 50%, transparent);
    border-radius: 999px;
    background: var(--sv-gradient-main, linear-gradient(135deg, var(--sv-primary, #f5d76e) 0%, var(--sv-secondary, #c9a227) 100%));
    box-shadow: 0 2px 10px color-mix(in srgb, var(--sv-glow, var(--sv-primary, #e8b923)) 30%, transparent);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.home-hot-all:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
    box-shadow: 0 4px 14px color-mix(in srgb, var(--sv-glow, var(--sv-primary, #e8b923)) 45%, transparent);
    color: var(--sv-surface, #0a0a0c) !important;
}
.home-hot-all i { margin-left: 5px; }

/* Shell: semi-transparan + border tema (selaras provider-panel-inner) */
.home-hot-shell {
    position: relative;
    isolation: isolate;
    border: 1px solid color-mix(in srgb, var(--sv-primary, #ffd45a) 28%, transparent);
    border-radius: 16px;
    background: color-mix(in srgb, var(--sv-panel, #0a0a0c) 55%, transparent);
    box-shadow:
        0 8px 28px rgba(0, 0, 0, 0.35),
        0 0 0 1px color-mix(in srgb, var(--sv-glow, var(--sv-primary, #ffd45a)) 12%, transparent);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 10px 28px 10px;
    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 var(--sv-primary, #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;
}

/* Kartu: background transparan, border mengikuti tema */
.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 color-mix(in srgb, var(--sv-primary, #ffd45a) 32%, transparent);
    border-radius: 12px;
    background: transparent !important;
    box-shadow:
        0 4px 14px rgba(0, 0, 0, 0.25),
        inset 0 0 0 1px color-mix(in srgb, var(--sv-glow, var(--sv-primary, #ffd45a)) 8%, transparent);
    color: var(--sv-text, #ffedc7) !important;
    text-decoration: none !important;
    transform: translateY(0);
    opacity: 0.88;
    transition: transform 0.35s ease, opacity 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
    -webkit-tap-highlight-color: transparent;
}
.home-hot-card.is-active {
    transform: translateY(-3px);
    opacity: 1;
    z-index: 2;
    border-color: color-mix(in srgb, var(--sv-primary, #ffd45a) 75%, transparent);
    background: transparent !important;
    box-shadow:
        0 10px 24px rgba(0, 0, 0, 0.4),
        0 0 18px color-mix(in srgb, var(--sv-glow, var(--sv-primary, #ffd45a)) 30%, transparent),
        inset 0 0 0 1px color-mix(in srgb, var(--sv-primary, #ffd45a) 28%, transparent);
}
.home-hot-cover {
    display: block;
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    overflow: hidden;
    background: transparent !important;
    border-radius: 10px;
}
.home-hot-cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 9px;
}
.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;
    color: var(--sv-text, #ffedc7);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
}
.home-hot-provider {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 7px;
    line-height: 1.1;
    color: color-mix(in srgb, var(--sv-text, #ffe4ac) 85%, transparent);
    text-align: center;
    opacity: 0.9;
}
.home-hot-arrow {
    position: absolute;
    top: 50%;
    z-index: 4;
    display: grid;
    place-items: center;
    width: 32px;
    height: 36px;
    border-radius: 50%;
    transform: translateY(-50%);
    border: 1px solid color-mix(in srgb, var(--sv-primary, #ffd45a) 45%, transparent);
    background: color-mix(in srgb, var(--sv-surface, #0a0a0c) 70%, transparent);
    color: var(--sv-primary, #fff4d9);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
}
.home-hot-arrow:hover:not(:disabled) {
    background: color-mix(in srgb, var(--sv-primary, #ffd45a) 18%, transparent);
    border-color: var(--sv-primary, #ffd45a);
    color: var(--sv-primary, #ffd45a);
}
.home-hot-arrow:disabled { opacity: 0.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: color-mix(in srgb, var(--sv-primary, #dfaf75) 90%, transparent);
    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;
}
