[data-theme="dark"] #detail-overlay,
[data-theme="dark"] #detail-content {
    background-color: var(--color-surface) !important;
}

.youtube-card-fullscreen-fix {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 100;
    contain: layout;
}

.youtube-card-fullscreen-fix iframe {
    position: relative;
    z-index: 101;
    pointer-events: auto;
    width: 100%;
    height: 100%;
}

body.youtube-card-fullscreen-active {
    overflow: hidden !important;
}

body.youtube-card-fullscreen-active .gallery-item {
    pointer-events: none !important;
}

body.youtube-card-fullscreen-active .gallery-item .js-video-container {
    pointer-events: auto !important;
}

body.youtube-fullscreen-active .gallery-item,
body.youtube-card-fullscreen-active .gallery-item {
    contain: layout style;
}

body.youtube-fullscreen-active .js-video-container,
body.youtube-card-fullscreen-active .js-video-container {
    contain: layout;
}

#detail-overlay {
    position: fixed;
    inset: 0;
    z-index: 60;
    background-color: var(--color-bg, #f8fafc);
    width: 100%;
    height: 100%;
    overflow: hidden;
    transition: opacity 0.35s ease;
    will-change: opacity;
}

#detail-backdrop {
    display: none !important;
}

#detail-content {
    width: 100%;
    height: 100%;
    background-color: var(--color-bg, #f8fafc);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
    will-change: transform, opacity;
    transform: translateZ(0);
}

#toast-container {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    z-index: 1000;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#toast-container.show {
    transform: translateX(-50%) translateY(0);
}

.toast-message {
    background: rgba(30, 41, 59, 0.9);
    backdrop-filter: blur(8px);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#detail-overlay .open-top-bottom {
    display: flex;
    flex-direction: column;
    width: 100%;
}

#detail-overlay .open-top {
    display: flex;
    flex-direction: column-reverse;
    align-items: flex-end;
    gap: 5px;
    justify-content: center;
    width: 45%;
    margin-left: 10px;
}


#detail-overlay .price-current-desktop {
    font-size: 1rem;
    font-weight: bold;
}

#detail-overlay .price-original-desktop {
    font-size: 0.65rem;
    font-weight: 600;
    text-decoration: line-through;
    color: #6b6b6b;
}

#detail-overlay .open-bottom .price-current,
#detail-overlay .open-bottom .price-original {
    font-size: 1rem;
}

#detail-overlay .open-bottom {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    gap: 10px;
}

@media (max-width: 639px) {
#modal-scroll-container {
        padding-bottom: 0 !important;
    }
}

@media (max-width: 639px) {
#modal-version-tabs {
        display: none !important;
    }
}

@media (min-width: 1024px) {
.detail-preview-grid {
        grid-template-columns: 4fr 6fr !important;
        gap: 3rem !important;
    }

.detail-image-container {
        max-width: 420px !important;
        max-height: 100vh !important;
        width: 100% !important;
        height: auto !important;
        margin-left: auto !important;
        margin-right: auto !important;
        aspect-ratio: 4 / 5 !important;
    }
}
/* 1. Sembunyikan teks saat ikon berubah menjadi fa-image */
#modal-video-toggle i.fa-image ~ .toggle-text {
    display: none !important;
}

/* 2. Kembalikan ukuran tombol menjadi bulat kecil (w-10) saat mode gambar */
#modal-video-toggle:has(i.fa-image) {
    width: 2.5rem !important; /* 2.5rem setara dengan class w-10 di Tailwind */
    padding-left: 0 !important;
    padding-right: 0 !important;
    justify-content: center !important;
}