/* =========================================
   1. GENERAL STYLES & LAYOUT (DEFAULT LIGHT)
   ========================================= */
body { 
    font-family: 'Inter', sans-serif; 
    background-color: #d1d5db; 
    color: #333333; 
    overflow-x: hidden; 
}

.embed-container { 
    position: relative; 
    padding-bottom: 56.25%; 
    height: 0; 
    overflow: hidden; 
    max-width: 100%; 
    border-radius: 6px; 
}
.embed-container iframe, .embed-container object, .embed-container embed, .embed-container video { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100% !important; 
    height: 100% !important; 
    border: none !important; 
}

/* MEMUNCULKAN KEMBALI SCROLLBAR DI SEBELAH KANAN */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #c5c5c5; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #a8a8a8; }

/* =========================================
   2. PAGINATION STYLING
   ========================================= */
.am-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin: 2rem 0; padding: 0 15px; }
.am-pagination a, .am-pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 2.5rem; height: 2.5rem; padding: 0 0.5rem; border-radius: 0.5rem; font-size: 0.875rem; font-weight: 600; border: 1px solid #d1d5db; background-color: #ffffff; color: #4b5563; text-decoration: none; transition: 0.2s; }
.am-pagination a:hover { background-color: #f3f4f6; color: #c47c00; border-color: #c47c00; }
.am-pagination .current { background-color: #1f2937; color: #ffffff; border-color: #1f2937; }

/* =========================================
   3. STICKY BANNER & BACK TO TOP
   ========================================= */
#am-sticky-container { position: fixed; bottom: 10px; right: 10px; z-index: 99999; width: 300px; box-shadow: 0 -2px 10px rgba(0,0,0,0.2); background: #ffffff; border-radius: 8px 0px 8px 8px; padding: 4px; display: block; border: 1px solid #e5e7eb; }
.am-sticky-ad-box { width: 300px; height: 250px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
#am-close-btn { position: absolute; top: -24px; right: -1px; background: #ffffff; color: #374151; border: 1px solid #e5e7eb; border-bottom: none; padding: 2px 10px; font-size: 11px; font-weight: bold; cursor: pointer; border-radius: 5px 5px 0 0; line-height: 1.5; text-transform: uppercase; letter-spacing: 0.5px; transition: all 0.2s ease; }
#am-close-btn:hover { background: #ef4444; color: #ffffff; border-color: #ef4444; }
@media (max-width: 340px) { #am-sticky-container { right: 5px; bottom: 5px; transform: scale(0.9); transform-origin: bottom right; } }

.back-to-top { position: fixed; right: 20px; bottom: 80px; width: 40px; height: 40px; border-radius: 50%; background: #c47c00; color: #000; border: none; font-size: 20px; font-weight: bold; cursor: pointer; opacity: 0; visibility: hidden; transition: 0.3s; z-index: 99; box-shadow: 0 4px 6px rgba(0,0,0,0.1); display: flex; align-items: center; justify-content: center; }
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { transform: translateY(-3px); background: #02d4cc; }

/* =========================================
   4. ZOOM THUMBNAIL
   ========================================= */
a.aspect-\[16\/9\] img {
    transform: scale(1.06) !important;
    transform-origin: center center !important;
    transition: transform 0.4s ease !important;
}
a.aspect-\[16\/9\].group:hover img {
    transform: scale(1.12) !important;
}

/* =========================================
   5. GRID KONSISTEN (2 Kolom Mobile / 3 Kolom Desktop)
   ========================================= */
.am-grid, 
#links-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0 !important;
}

@media (min-width: 768px) {
    .am-grid, 
    #links-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

/* =========================================
   6. TRADE SHOWCASE / OUR PARTNERS (DEFAULT LIGHT)
   ========================================= */
.am-partners-section {
    background-color: #e5e5e5;
    padding: 30px 20px;
    margin-top: 40px;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    clear: both;
}

.am-partners-section .url-list-wrap {
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

.am-partners-section .url-list-wrap .url-list-header,
.am-partners-section .url-list-wrap .ul-header,
.am-partners-section .url-list-wrap h2,
.am-partners-section .url-list-wrap h3 {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #333333 !important;
    margin-bottom: 16px !important;
    text-transform: uppercase;
}

.am-partners-section .url-list-wrap > ul,
.am-partners-section .url-list-wrap > div {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
}

@media (min-width: 768px) {
    .am-partners-section .url-list-wrap > ul,
    .am-partners-section .url-list-wrap > div {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (min-width: 1024px) {
    .am-partners-section .url-list-wrap > ul,
    .am-partners-section .url-list-wrap > div {
        grid-template-columns: repeat(5, 1fr) !important;
    }
}

.am-partners-section .url-list-wrap li {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.am-partners-section .url-list-wrap li a,
.am-partners-section .url-list-wrap a {
    background: #ffffff !important;
    border-radius: 6px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08) !important;
    border: 1px solid #f3f4f6 !important;
    display: flex !important;
    align-items: center !important;
    padding: 10px 14px !important;
    height: 56px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    text-decoration: none !important;
    color: #333333 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
}

.am-partners-section .url-list-wrap li a:hover,
.am-partners-section .url-list-wrap a:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08) !important;
    border-color: #c47c00 !important;
    color: #c47c00 !important; 
}

.am-partners-section .url-list-wrap a span,
.am-partners-section .url-list-wrap a div,
.am-partners-section .url-list-wrap a p {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: block !important;
    flex: 1 !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.am-partners-section .url-list-wrap img {
    display: block !important;
    flex-shrink: 0 !important;
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    border-radius: 6px !important;
    object-fit: cover !important;
    margin: 0 12px 0 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

/* =========================================
   7. FOOTER STYLING
   ========================================= */
.am-footer {
  background: #ffffff !important;
  border-top: 1px solid #d1d5db !important;
  border-radius: 0 0 6px 6px;
  margin: 30px auto 40px auto !important;
  padding: 20px 0 !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.am-footer .footer-container {
  max-width: 900px !important;
  margin: 0 auto !important;
  padding: 0 20px !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  flex-wrap: wrap;
  gap: 15px;
}

.am-footer .footer-left {
  font-size: 13px !important;
  color: #4b5563 !important;
}

.am-footer .footer-right {
  display: flex !important;
  align-items: center !important;
  gap: 20px !important;
}

.am-footer-menu {
  display: flex !important;
  gap: 16px !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.am-footer-menu li a {
  color: #4b5563 !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  text-decoration: none !important;
  transition: color 0.2s;
}

.am-footer-menu li a:hover {
  color: #c47c00 !important;
}

@media (max-width: 768px) {
  .am-footer .footer-container {
    flex-direction: column !important;
    text-align: center !important;
  }
  .am-footer .footer-right {
    flex-direction: column !important;
    gap: 12px !important;
  }
}

/* =========================================
   8. DARK MODE
   ========================================= */
html.dark-mode body {
    background-color: #121212 !important;
    color: #f3f4f6 !important;
}

html.dark-mode header, 
html.dark-mode footer, 
html.dark-mode .am-footer,
html.dark-mode .bg-white, 
html.dark-mode .video-card,
html.dark-mode div[class*="bg-"],
html.dark-mode section,
html.dark-mode article {
    background-color: #18181b !important; 
    color: #f3f4f6 !important;
    border-color: #27272a !important;     
}

html.dark-mode h1, 
html.dark-mode h2, 
html.dark-mode h3, 
html.dark-mode h4, 
html.dark-mode p, 
html.dark-mode span, 
html.dark-mode a,
html.dark-mode li {
    color: #f3f4f6 !important;
}

html.dark-mode input, 
html.dark-mode select, 
html.dark-mode textarea {
    background-color: #27272a !important;
    color: #ffffff !important;
    border-color: #3f3f46 !important;
}

html.dark-mode .am-partners-section {
    background-color: #121212 !important;
}

html.dark-mode .am-partners-section .url-list-wrap .url-list-header,
html.dark-mode .am-partners-section .url-list-wrap h2,
html.dark-mode .am-partners-section .url-list-wrap h3 {
    color: #f3f4f6 !important;
}

html.dark-mode .am-partners-section .url-list-wrap li a,
html.dark-mode .am-partners-section .url-list-wrap a {
    background: #1e1e24 !important;              
    color: #ffffff !important;                  
    border: 1px solid #2d2d35 !important;    
    box-shadow: none !important;
}

html.dark-mode .am-partners-section .url-list-wrap li a:hover,
html.dark-mode .am-partners-section .url-list-wrap a:hover {
    background: #27272a !important;
    border-color: #c47c00 !important;          
    color: #c47c00 !important;                 
}

.am-partners-header {
    display: none !important;
}

html.dark-mode .am-pagination a, 
html.dark-mode .am-pagination span {
    background-color: #1e1e24 !important; 
    color: #f3f4f6 !important;            
    border-color: #2d2d35 !important;    
}

html.dark-mode .am-pagination a:hover {
    background-color: #27272a !important; 
    color: #c47c00 !important;            
    border-color: #c47c00 !important;
}

html.dark-mode .am-pagination .current {
    background-color: #c47c00 !important; 
    color: #000000 !important;            
    border-color: #c47c00 !important;
}

html.dark-mode span.text-green-600,
html.dark-mode .text-green-600 {
    color: #c47c00 !important; 
}

html.dark-mode span.bg-green-50,
html.dark-mode .bg-green-50 {
    background-color: #064e3b !important; 
    border-color: #047857 !important;     
}

html.dark-mode span.text-green-700,
html.dark-mode .text-green-700 {
    color: #c47c00 !important;            
}

html.dark-mode .prose, 
html.dark-mode .prose p {
    color: #d1d5db !important; 
}

/* =========================================
   9. DESKRIPSI AUTO BUKA-TUTUP (MURNI CSS / TANPA JS)
   ========================================= */
.prose {
    position: relative;
    max-height: 90px;
    overflow: hidden;
    transition: max-height 0.4s ease;
    cursor: pointer;
    padding-bottom: 10px;
}

.prose:hover, 
.prose:active {
    max-height: 2000px;
}

.prose::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 45px;
    background: linear-gradient(to bottom, transparent, #ffffff);
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.prose:hover::after,
.prose:active::after {
    opacity: 0;
}

html.dark-mode .prose::after {
    background: linear-gradient(to bottom, transparent, #18181b);
}

/* =========================================
   10. RESPONSIF SHOWCASE (14 item mobile)
   ========================================= */
@media (max-width: 768px) {
    .url-list-wrap li:nth-child(n+15),
    .url-list-wrap a:nth-child(n+15),
    .url-list-wrap div:nth-child(n+15) {
        display: none !important;
    }
}

/* =========================================
   11. CLEAN ICONLESS SHOWCASE STYLING
   ========================================= */
.ulsabell-wrap {
    margin: 30px auto;
    width: 100%;
}

.ulsabell-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.ulsabell-icon,
.ulsabell-icon-img,
.ulsabell-fav {
    display: none !important;
}

.ulsabell-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: inherit;
}

.ulsabell-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
}

.ulsabell-col {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
}

.ulsabell-li {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    display: block !important;
}

.ulsabell-link {
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 6px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 10px 12px !important;
    height: 48px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    text-decoration: none !important;
    color: #333333 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ulsabell-link:hover {
    border-color: #c47c00 !important;
    color: #c47c00 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

@media (min-width: 768px) {
    .ulsabell-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    }
}

html.dark-mode .ulsabell-link {
    background: #1e1e24 !important;
    border-color: #2d2d35 !important;
    color: #ffffff !important;
    box-shadow: none !important;
}
html.dark-mode .ulsabell-link:hover {
    background: #27272a !important;
    border-color: #c47c00 !important;
    color: #c47c00 !important;
}

/* =========================================
   12. TAGS AUTO-HIDE (BATASI 3 TAG, HOVER BUKA)
   ========================================= */
div:has(> a.text-\[10px\]) {
    cursor: pointer;
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

div:has(> a.text-\[10px\]) > a.text-\[10px\]:nth-child(n+4) {
    display: none !important;
}

div:has(> a.text-\[10px\]):::after,
div:has(> a.text-\[10px\]):after {
    content: "+ Tag Lainnya";
    font-size: 10px;
    font-weight: 600;
    color: #6b7280;
    border: 1px dashed #d1d5db;
    border-radius: 4px;
    padding: 2px 8px;
    display: inline-flex;
    align-items: center;
}

div:has(> a.text-\[10px\]):hover > a.text-\[10px\]:nth-child(n+4) {
    display: inline-flex !important;
}

div:has(> a.text-\[10px\]):hover::after {
    display: none !important;
}

html.dark-mode div:has(> a.text-\[10px\]):after {
    color: #9ca3af;
    border-color: #374151;
}

/* =========================================
   13. JUDUL UTAMA 1 BARIS + AUTO-HIDE (HOVER BUKA)
   ========================================= */
h1.text-xl, 
.single-video-title, 
.post-title {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    cursor: pointer !important;
}

h1.text-xl:hover, 
.single-video-title:hover, 
.post-title:hover {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
}

/* =========================================
   14. JUDUL THUMBNAIL / GRID VIDEO: 1 BARIS & BUKA SAAT HOVER
   ========================================= */
.am-grid a.truncate,
#links-grid a.truncate,
.grid a.truncate,
.grid .p-3 a.font-bold {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: block !important;
    width: 100% !important;
    transition: color 0.2s ease;
}

.am-grid a.truncate:hover,
#links-grid a.truncate:hover,
.grid a.truncate:hover,
.grid .p-3 a.font-bold:hover {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    word-break: break-word !important;
    color: #c47c00 !important;
}
/* =========================================
   UBAH HOVER TAG MENJADI #c47c00
   ========================================= */
.flex-wrap.gap-2 a[href*="/tag/"]:hover, 
.flex-wrap.gap-2 a[href*="/studio/"]:hover, 
a[rel="tag"]:hover, 
.text-\[10px\]:hover, 
a.text-\[10px\]:hover,
a[class*="hover:bg-green-"]:hover {
    background-color: #c47c00 !important;
    border-color: #c47c00 !important;
    color: #ffffff !important;
}
/* =========================================
   PERBESAR UKURAN LOGO HEADER
   ========================================= */
header img, 
.custom-logo, 
.site-logo img,
.site-logo-img {
    height: 75px !important; /* Naikkan angka ini jika masih kurang besar (misal: 50px atau 55px) */
    width: auto !important;
    max-width: none !important;
    max-height: none !important;
}
/* Paksa warna hover tag menjadi hitam */
.flex.flex-wrap.gap-2.mt-4.pt-4 a:hover {
    background-color: #000000 !important;
    color: #ffffff !important;
    border-color: #000000 !important;
}

html.dark-mode .flex.flex-wrap.gap-2.mt-4.pt-4 a:hover {
    background-color: #ffffff !important;
    color: #000000 !important;
    border-color: #ffffff !important;
}