/*
Theme Name: AM Tube Trade
Theme URI: https://adver-media.com/
Author: Adver Media
Description: AM Tube Trade
Version: 1.0
Text Domain: am-tube-trade
*/

/* ========== CSS DARI HTML ASLI ========== */

:root{
  --bg:#050712;
  --card:#101322;
  --card-soft:#14182a;
  --accent:#3f82ff;
  --accent-soft:rgba(63,130,255,0.16);
  --text:#f4f5ff;
  --text-soft:#979cbc;
  --border:#262a40;
  --radius:12px;
}
*{
  box-sizing:border-box;
  margin:0;
  padding:0;
  font-family:system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
}
body{
  background:radial-gradient(circle at top,#191f3c 0,var(--bg) 40%,#02030a 100%);
  color:var(--text);
  min-height:100vh;
}
a{text-decoration:none;color:inherit;}
.wrap{
  max-width:900px;
  margin:0 auto;
  padding:24px 16px 40px;
}

/* =============== TOP HEADER (LIKE TOPPORNSITES) =============== */
.am-main-header{
  position:sticky;
  top:0;
  z-index:40;
  background:rgba(5,7,18,0.97);
  backdrop-filter:blur(12px);
  border-bottom:1px solid rgba(255,255,255,0.06);
}

.am-header-inner{
  max-width:900px;
  margin:0 auto;
  padding:10px 16px;
  display:flex;
  align-items:center;
  gap:16px;
}

/* brand kiri */
.am-brand-left{
  display:flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
  color:var(--text);
  flex-shrink:0;
}
.am-brand-icon{
  width:32px;
  height:32px;
  border-radius:10px;
  overflow:hidden;
  background:rgba(255,255,255,0.06);
  display:flex;
  align-items:center;
  justify-content:center;
}
.am-brand-icon img{
  width:100%;
  height:100%;
  display:block;
  object-fit:contain;
}
.am-brand-title{
  font-size:15px;
  font-weight:700;
}
.am-brand-sub{
  font-size:11px;
  color:var(--text-soft);
}

/* search tengah */
.am-header-search{
  flex:1;
  max-width:430px;
  position:relative;
}
.am-header-search input{
  width:100%;
  background:#050712;
  border-radius:999px;
  border:1px solid var(--border);
  padding:9px 14px 9px 32px;
  font-size:13px;
  color:var(--text);
  outline:none;
}
.am-header-search input::placeholder{
  color:#6b708f;
}
.am-search-icon{
  position:absolute;
  left:10px;
  top:50%;
  transform:translateY(-50%);
  font-size:13px;
  opacity:.7;
}

/* menu kanan */
.am-header-menu ul{
  list-style:none;
  display:flex;
  gap:18px;
  margin:0;
  padding:0;
}
.am-header-menu a{
  color:var(--text-soft);
  font-size:14px;
  font-weight:500;
  padding:6px 0;
  position:relative;
  text-decoration:none;
  transition:color .2s;
}
.am-header-menu a::after{
  content:'';
  position:absolute;
  left:0;
  right:0;
  bottom:-4px;
  height:2px;
  border-radius:999px;
  background:#1ddf78;
  opacity:0;
  transform:scaleX(0.3);
  transition:opacity .2s, transform .2s;
}
.am-header-menu a:hover,
.am-header-menu a.active{
  color:#ffffff;
}
.am-header-menu a:hover::after,
.am-header-menu a.active::after{
  opacity:1;
  transform:scaleX(1);
}

/* icon user */
.am-user-btn{
  width:30px;
  height:30px;
  border-radius:999px;
  border:none;
  background:transparent;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  padding:0;
  margin-left:6px;
}
.am-user-circle{
  width:26px;
  height:26px;
  border-radius:999px;
  background:linear-gradient(135deg,#3f82ff,#1d4ed8);
  position:relative;
}
.am-user-circle::before,
.am-user-circle::after{
  content:'';
  position:absolute;
  left:50%;
  transform:translateX(-50%);
  background:#f9fafb;
}
.am-user-circle::before{
  top:5px;
  width:11px;
  height:11px;
  border-radius:999px;
}
.am-user-circle::after{
  bottom:4px;
  width:14px;
  height:7px;
  border-radius:999px 999px 4px 4px;
}

/* burger mobile */
.am-header-toggle{
  display:none;
  font-size:22px;
  background:none;
  border:none;
  color:#fff;
  cursor:pointer;
  margin-left:8px;
}

/* ========== RESPONSIVE ========== */
@media (max-width:900px){
  .am-header-inner{
    gap:10px;
  }
  .am-header-search{
    max-width:none;
  }
}
@media (max-width:720px){
  .am-header-search{
    display:none; /* sembunyikan search di layar kecil */
  }
  .am-header-menu{
    display:none;
  }
  .am-header-toggle{
    display:block;
  }

  /* menu dropdown saat burger diklik */
  .am-main-header.open .am-header-menu{
    display:block;
    position:absolute;
    left:0;
    right:0;
    top:100%;
    background:rgba(5,7,18,0.98);
    border-bottom:1px solid rgba(255,255,255,0.08);
  }
  .am-main-header.open .am-header-menu ul{
    max-width:900px;
    margin:0 auto;
    padding:10px 16px 12px;
    flex-direction:column;
    gap:10px;
  }
}

/* LIST CARD */
.list-card{
  background:var(--card-soft);
  border-radius:var(--radius);
  border:1px solid var(--border);
  overflow:hidden;
}
.list-head{
  padding:10px 14px;
  border-bottom:1px solid var(--border);
  font-size:12px;
  color:var(--text-soft);
}
table{
  width:100%;
  border-collapse:collapse;
  font-size:13px;
}
tbody tr{
  border-top:1px solid rgba(255,255,255,0.04);
  background:rgba(9,12,26,0.96);
  transition:.12s;
}
tbody tr:nth-child(even){
  background:rgba(11,15,30,0.96);
}
tbody tr:hover{
  background:rgba(31,41,79,0.96);
}
td{
  padding:10px 14px;
  vertical-align:middle;
}

.site-row{
  display:flex;
  align-items:center;
  gap:10px;
}
.favicon-box{
  width:22px;
  height:22px;
  flex-shrink:0;
  border-radius:6px;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
}
.favicon-box img{
  max-width:100%;
  max-height:100%;
  object-fit:contain;
  display:block;
}

.domain{
  font-weight:500;
  font-size:15px;
}
.meta-line{
  font-size:11px;
  color:var(--text-soft);
  margin-top:2px;
}

.status-pill{
  display:inline-flex;
  align-items:center;
  padding:2px 8px;
  border-radius:999px;
  font-size:10px;
  font-weight:500;
  margin-right:6px;
  text-transform:uppercase;
}
.status-online{
  background:rgba(34,197,94,0.18);
  color:#4ade80;
}
.status-offline{
  background:rgba(239,68,68,0.18);
  color:#fca5a5;
}
.status-checking{
  background:rgba(148,163,184,0.18);
  color:#e5e7eb;
}

.trade-cell{
  text-align:right;
  white-space:nowrap;
}
.btn{
  padding:6px 12px;
  border-radius:999px;
  border:none;
  font-size:11px;
  font-weight:600;
  cursor:pointer;
  margin-left:4px;
}
.btn-trade{
  background:var(--accent-soft);
  color:var(--accent);
}
.btn-contact{
  background:rgba(0,255,200,0.18);
  color:#2dd4bf;
}
.btn:hover{
  filter:brightness(1.12);
}

/* SERVICE BOX */
.service-box{
  max-width:900px;
  margin:20px auto 60px;
  padding:22px 20px;
  background:linear-gradient(135deg, rgba(63,130,255,0.16), rgba(15,23,42,0.9));
  border:1px solid rgba(63,130,255,0.4);
  border-radius:12px;
  text-align:left;
}
.service-box h3{
  font-size:16px;
  font-weight:600;
  margin-bottom:8px;
  color:#fff;
}
.service-box p{
  font-size:13px;
  color:var(--text-soft);
  margin-bottom:6px;
}
.service-box .service-note{
  font-size:12px;
  opacity:0.8;
}
.service-cta{
  display:inline-block;
  margin-top:10px;
  padding:8px 16px;
  border-radius:999px;
  background:var(--accent);
  color:#020617;
  font-size:13px;
  font-weight:600;
}
.service-cta:hover{
  filter:brightness(1.08);
}

/* RULES */
.rules{
  max-width:900px;
  margin:30px auto 60px;
  padding:22px 20px;
  background:rgba(255,255,255,0.04);
  border:1px solid rgba(255,255,255,0.06);
  border-radius:12px;
}
.rules h3{
  font-size:16px;
  font-weight:600;
  margin-bottom:10px;
  color:var(--accent);
  text-transform:uppercase;
  letter-spacing:.5px;
  text-align:center;
}
.rules ul{
  list-style:none;
  display:flex;
  flex-direction:column;
  gap:6px;
  font-size:13px;
  color:var(--text-soft);
  padding-left:0;
}
.rules ul li{
  padding:6px 10px;
  background:rgba(0,0,0,0.20);
  border-radius:8px;
  border:1px solid rgba(255,255,255,0.05);
}

/* NEW badge */
.new-badge{
  display:inline-block;
  margin-left:6px;
  padding:2px 6px;
  font-size:10px;
  font-weight:700;
  color:#fff;
  background:linear-gradient(135deg,#3f82ff,#1d4ed8);
  border-radius:6px;
  text-transform:uppercase;
  letter-spacing:0.5px;
  animation:pulse 1.4s infinite ease-in-out;
}
@keyframes pulse {
  0%{opacity:.65}
  50%{opacity:1}
  100%{opacity:.65}
}

/* FOOTER */
.footer{
  margin-top:30px;
  padding:24px 10px 40px;
  text-align:center;
  background:rgba(255,255,255,0.03);
  border-top:1px solid rgba(255,255,255,0.06);
  border-radius:12px 12px 0 0;
}
.footer-inner{
  max-width:900px;
  margin:0 auto;
  font-size:13px;
  color:var(--text-soft);
}
.footer-links a{
  color:var(--accent);
  font-size:13px;
  font-weight:500;
}
.footer-links a:hover{
  text-decoration:underline;
}
.am-main-header{
  position:sticky;
  top:0;
  z-index:50;
  background:#050712;
  border-bottom:1px solid rgba(255,255,255,0.04);
  padding:10px 0;
}

.am-header-inner{
  max-width:1200px;
  margin:0 auto;
  padding:0 20px;
  display:flex;
  align-items:center;
  gap:18px;
}

/* LOGO */
.am-brand{
  display:flex;
  align-items:center;
  gap:8px;
  font-weight:700;
  font-size:19px;
  color:#3ee98a;
}
.am-logo-icon{
  font-size:22px;
}
.am-logo-text{
  color:#3ee98a;
}

/* SEARCH */
.am-search{
  flex:1;
  max-width:550px;
  position:relative;
}
.am-search input{
  width:100%;
  padding:12px 13px 12px 36px;
  background:#0b0f1b;
  border-radius:10px;
  border:1px solid #131827;
  font-size:13px;
  color:#fff;
  outline:none;
}
.am-search-icon{
  position:absolute;
  top:50%;
  left:12px;
  transform:translateY(-50%);
  opacity:.65;
}

/* MENU */
.am-nav ul{
  list-style:none;
  display:flex;
  gap:22px;
}
.am-nav a{
  font-size:14px;
  color:#b5bdd7;
  font-weight:500;
  padding:6px 0;
  position:relative;
}
.am-nav a.active,
.am-nav a:hover{
  color:#fff;
}
.am-nav a.active::after,
.am-nav a:hover::after{
  content:'';
  position:absolute;
  left:0; right:0; bottom:-4px;
  height:2px;
  background:#3ee98a;
  border-radius:3px;
}

/* USER ICON */
.am-user{
  width:34px;
  height:34px;
  border-radius:50%;
  background:#0f1527;
  border:1px solid #1d2337;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}
.am-user-avatar{
  width:18px;
  height:18px;
  border-radius:50%;
  background:#8ab1ff;
}
/* ===== HEADER FIX ==== */
.am-header-inner{
  max-width:1200px;
  margin:0 auto;
  padding:0 24px;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:34px;
}
.am-brand-left{
  transform:translateY(1px);
}
.am-user-btn{
  display:none !important;
}
/* ===== Footer Clean Fix ===== */
.am-footer{
  margin-top:60px;
  padding:22px 0 28px;
  border-top:1px solid rgba(255,255,255,0.06);
  background:transparent;
  width:100%;
}

.footer-container{
  max-width:900px;
  margin:0 auto;
  padding:0 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  font-size:13px;
  color:var(--text-soft);
}

.footer-left{
  opacity:0.9;
  white-space:nowrap;
}

.footer-right{
  display:flex;
  gap:22px;
  flex-wrap:nowrap;
}

.footer-right a{
  font-size:13px;
  color:#b5bdd7;
  text-decoration:none;
}
.footer-right a:hover{
  color:#fff;
}

@media (max-width:768px){
  .footer-container{
    flex-direction:column;
    gap:10px;
    text-align:center;
  }
  .footer-right{
    justify-content:center;
    flex-wrap:wrap;
    gap:14px;
  }
}

.back-to-top{
  position:fixed;
  right:18px;
  bottom:22px;
  width:42px;
  height:42px;
  border-radius:999px;
  background:#10b981;
  border:none;
  color:#020617;
  font-size:20px;
  font-weight:700;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  transition:.2s;
  z-index:99;
}
.back-to-top:hover{
  filter:brightness(1.15);
  transform:translateY(-2px);
}
/* ==== SINGLE POST STYLE ==== */

.single-card{
  background:var(--card-soft);
  border-radius:var(--radius);
  border:1px solid var(--border);
  padding:20px 18px 22px;
  margin:24px 0 40px;
}

.single-header{
  margin-bottom:10px;
}

.single-title{
  font-size:20px;
  font-weight:700;
  margin-bottom:6px;
}

.single-meta{
  display:flex;
  flex-wrap:wrap;
  gap:4px;
  font-size:12px;
  color:var(--text-soft);
}
.single-meta-item{
  display:inline-flex;
  align-items:center;
  gap:4px;
}
.single-meta-sep{
  opacity:0.7;
}

/* Thumbnail */
.single-thumb{
  margin:10px 0 14px;
  border-radius:12px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,0.06);
}
.single-thumb img{
  width:100%;
  height:auto;
  display:block;
}

/* Content */
.single-content{
  font-size:14px;
  color:var(--text-soft);
}
.single-content p{
  margin-bottom:10px;
}
.single-content h2,
.single-content h3{
  margin:16px 0 8px;
  color:var(--text);
}
.single-content a{
  color:var(--accent);
}
.single-content a:hover{
  text-decoration:underline;
}

/* Tags */
.single-tags{
  margin-top:14px;
  padding-top:10px;
  border-top:1px solid rgba(255,255,255,0.06);
  display:flex;
  align-items:flex-start;
  gap:8px;
  font-size:12px;
}
.single-tags-label{
  color:var(--text-soft);
  font-weight:500;
}
.single-tags-list{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}
.single-tags-list a{
  padding:3px 8px;
  border-radius:999px;
  border:1px solid rgba(148,163,184,0.5);
  color:var(--text-soft);
  text-decoration:none;
}
.single-tags-list a:hover{
  background:var(--accent);
  border-color:var(--accent);
  color:#020617;
}

/* Prev / Next nav */
.single-nav{
  margin-top:18px;
  padding-top:10px;
  border-top:1px solid rgba(255,255,255,0.06);
  display:flex;
  justify-content:space-between;
  gap:10px;
  font-size:13px;
}
.single-nav a{
  color:var(--accent);
  text-decoration:none;
}
.single-nav a:hover{
  text-decoration:underline;
}

/* Comments wrapper basic */
.single-comments{
  background:rgba(9,12,26,0.96);
  border-radius:var(--radius);
  border:1px solid var(--border);
  padding:16px 18px 20px;
  margin:-10px 0 40px;
  font-size:14px;
}

/* Responsive */
@media (max-width:600px){
  .single-card{
    padding:16px 12px 18px;
  }
  .single-title{
    font-size:18px;
  }
  .single-nav{
    flex-direction:column;
    text-align:left;
  }
}
.am-header-menu {
  display: flex;
  justify-content: center;
  align-items: center;
}

.am-menu-items,
.am-footer-items {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 20px;
}

.am-menu-items li a,
.am-footer-items li a {
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: 0.2s;
}

.am-menu-items li a:hover,
.am-footer-items li a:hover {
  opacity: 0.7;
}
/* Wrapper blog biar gak full lebar banget */
.am-blog-wrap {
  max-width: 980px;
  margin: 30px auto 50px;
}

/* List */
.am-blog-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Card */
.am-blog-item {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 18px;
  background: #0c1018;
  border-radius: 10px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,0.04);
}

/* Thumbnail */
.am-blog-thumb img {
  width: 100%;
  height: 100%;
  max-height: 150px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.am-blog-thumb-placeholder {
  width: 100%;
  height: 150px;
  border-radius: 8px;
  background: radial-gradient(circle at top left, #1f2937, #020617);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 26px;
  color: #9ca3af;
}

/* Body */
.am-blog-title {
  font-size: 20px;
  margin-bottom: 6px;
}

.am-blog-title a {
  color: #fff;
  text-decoration: none;
}

.am-blog-title a:hover {
  text-decoration: underline;
}

.am-blog-meta {
  font-size: 12px;
  color: #9ca3af;
  margin-bottom: 10px;
}

.am-blog-excerpt {
  font-size: 14px;
  color: #d1d5db;
  margin-bottom: 12px;
}

/* Tombol read more */
.am-blog-readmore {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  font-size: 13px;
  border-radius: 999px;
  border: 1px solid rgba(96,165,250,0.6);
  text-decoration: none;
  margin-top: 4px;
}

.am-blog-readmore:hover {
  background: rgba(96,165,250,0.12);
}

/* Pagination */
.am-blog-pagination {
  margin-top: 25px;
  text-align: center;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .am-blog-wrap {
    padding: 0 12px;
    margin-top: 20px;
  }

  .am-blog-item {
    grid-template-columns: 1fr;
  }

  .am-blog-thumb img,
  .am-blog-thumb-placeholder {
    max-height: 190px;
  }
}
.am-blog-wrap {
  max-width: 1050px;
  margin: 30px auto 70px;
  padding: 0 20px;
}

.am-blog-list {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.am-blog-card {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 26px;
  background: #0D121C;
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 18px;
}

.am-blog-thumb img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 10px;
}

.am-blog-content {
  display: flex;
  flex-direction: column;
}

.am-blog-meta {
  font-size: 13px;
  color: #92A0B3;
  margin-bottom: 6px;
}

.am-blog-title {
  font-size: 26px;
  margin-bottom: 10px;
  line-height: 1.25;
}

.am-blog-title a {
  color: #fff;
  text-decoration: none;
}

.am-blog-title a:hover {
  color: #4EA8FF;
}

.am-blog-excerpt {
  font-size: 15px;
  line-height: 1.6;
  color: #d6dae0;
  margin-bottom: 16px;
}

.am-blog-readmore {
  display: inline-flex;
  padding: 12px 18px;
  font-size: 14px;
  color: #fff;
  background: linear-gradient(90deg,#ff3d3d,#e60023);
  border-radius: 6px;
  margin-top: auto;
  font-weight: 600;
  text-decoration: none;
  align-self: flex-start;
}

.am-blog-readmore:hover {
  opacity: .85;
}

@media (max-width: 820px) {
  .am-blog-card {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .am-blog-thumb img {
    height: 200px;
  }

  .am-blog-title {
    font-size: 22px;
  }
}
/* --- BLOG LAYOUT FINAL FIX --- */
.am-blog-wrap {
  max-width: 1050px;
  margin: 30px auto 70px;
  padding: 0 20px;
}

.am-blog-list {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.am-blog-card {
  display: grid !important;
  grid-template-columns: 330px 1fr;
  gap: 26px;
  background: #0D121C;
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 18px;
}

.am-blog-thumb img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  border-radius: 8px;
}

.am-blog-meta {
  font-size: 13px;
  color: #8f9bad;
  margin-bottom: 6px;
}

.am-blog-title {
  font-size: 26px;
  margin-bottom: 10px;
  color: #fff;
  line-height: 1.25;
}

.am-blog-title a {
  color: #fff;
  text-decoration: none;
}

.am-blog-title a:hover {
  color: #4EA8FF;
}

.am-blog-excerpt {
  font-size: 15px;
  line-height: 1.6;
  color: #d7dde5;
  margin-bottom: 18px;
}

.am-blog-readmore {
  display: inline-block;
  padding: 12px 18px;
  background: linear-gradient(90deg,#ff3d3d,#e60023);
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  max-width: fit-content;
}

.am-blog-readmore:hover {
  opacity: .85;
}

/* MOBILE RESPONSIVE FIX */
@media (max-width: 820px) {
  .am-blog-card {
    grid-template-columns: 1fr !important;
    padding: 14px;
  }

  .am-blog-thumb img {
    height: 200px;
  }
/* ========== AM BLOG PRO v2 ========== */

.am-blog-pro-wrap {
  max-width: 1100px;
  margin: 32px auto 80px;
  padding: 0 20px;
}

.am-blog-pro-title {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 24px;
}

.am-blog-pro-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.am-blog-pro-card {
  display: grid !important;
  grid-template-columns: minmax(260px, 340px) 1fr;
  gap: 24px;
  background: #0D121C;
  border-radius: 16px;
  padding: 20px 22px;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 18px 40px rgba(0,0,0,0.55);
}

.am-blog-pro-thumb img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

.am-blog-pro-thumb-placeholder {
  width: 100%;
  height: 230px;
  border-radius: 12px;
  background: radial-gradient(circle at top left,#1f2937,#020617);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 30px;
  color: #9ca3af;
}

.am-blog-pro-content {
  display: flex;
  flex-direction: column;
}

/* badges + meta */
.am-blog-pro-meta-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #9ca3af;
  margin-bottom: 8px;
}

.am-badge-cat {
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .05em;
  background: rgba(96,165,250,0.18);
  color: #e5f0ff;
}

.am-badge-new {
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .06em;
  background: #f97316;
  color: #fff;
}

.am-blog-pro-date {
  margin-left: 4px;
}

.am-blog-pro-views {
  margin-left: auto;
  font-size: 11px;
  opacity: .85;
}

/* title & excerpt */
.am-blog-pro-heading {
  font-size: 24px;
  line-height: 1.3;
  margin-bottom: 10px;
}

.am-blog-pro-heading a {
  color: #fff;
  text-decoration: none;
}

.am-blog-pro-heading a:hover {
  color: #4EA8FF;
}

.am-blog-pro-excerpt {
  font-size: 15px;
  line-height: 1.7;
  color: #d6dce6;
  margin-bottom: 18px;
}

/* footer row */
.am-blog-pro-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-top: auto;
}

.am-blog-pro-readmore {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  border-radius: 999px;
  background: linear-gradient(90deg,#ff3d3d,#e60023);
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
}

.am-blog-pro-readmore:hover {
  opacity: .9;
}

.am-blog-pro-share {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #9ca3af;
}

.am-blog-pro-share a {
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.5);
  text-decoration: none;
}

.am-blog-pro-share a:hover {
  background: rgba(148,163,184,0.18);
}

/* pagination */
.am-blog-pro-pagination {
  margin-top: 28px;
  text-align: center;
}

/* ======= RESPONSIVE ======= */
@media (max-width: 900px) {
  .am-blog-pro-card {
    grid-template-columns: 1fr !important;
    padding: 16px;
  }

  .am-blog-pro-thumb img,
  .am-blog-pro-thumb-placeholder {
    height: 210px;
  }

  .am-blog-pro-heading {
    font-size: 21px;
  }

  .am-blog-pro-views {
    margin-left: 0;
    width: 100%;
  }
}

@media (max-width: 600px) {
  .am-blog-pro-wrap {
    padding: 0 12px;
  }

  .am-blog-pro-card {
    padding: 14px;
    gap: 16px;
  }

  .am-blog-pro-thumb img,
  .am-blog-pro-thumb-placeholder {
    height: 190px;
  }

  .am-blog-pro-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
/* === AM BLOG PRO FINAL === */
.am-blog-pro-wrap {
  max-width: 1100px;
  margin: 32px auto 80px;
  padding: 0 20px;
}

.am-blog-pro-list {
  display:flex;
  flex-direction:column;
  gap:30px;
}

.am-blog-pro-card {
  display:grid !important;
  grid-template-columns:minmax(260px, 340px) 1fr;
  gap:26px;
  background:#0D121C;
  border-radius:16px;
  padding:20px 22px;
  border:1px solid rgba(255,255,255,0.06);
  box-shadow:0 18px 40px rgba(0,0,0,0.55);
}

.am-blog-pro-thumb img {
  width:100%;
  height:230px;
  object-fit:cover;
  border-radius:12px;
}

/* TITLE + EXCERPT */
.am-blog-pro-heading {
  font-size:26px;
  color:#fff;
  margin:10px 0;
}
.am-blog-pro-heading a { color:#fff; text-decoration:none; }
.am-blog-pro-heading a:hover { color:#4EA8FF; }

.am-blog-pro-excerpt {
  font-size:15px;
  line-height:1.6;
  color:#d6dce6;
  margin-bottom:16px;
}

/* BUTTON */
.am-blog-pro-readmore {
  display:inline-block;
  padding:12px 18px;
  background:linear-gradient(90deg,#ff3d3d,#e60023);
  border-radius:8px;
  color:#fff;
  font-weight:600;
  text-decoration:none;
}
.am-blog-pro-readmore:hover{
  opacity:.85;
}

/* BADGE + VIEWS */
.am-blog-pro-meta-top {
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  font-size:12px;
  color:#9ca3af;
}

.am-badge-cat {
  padding:3px 8px;
  border-radius:999px;
  background:rgba(96,165,250,0.18);
  font-size:11px;
}

.am-badge-new {
  padding:3px 8px;
  border-radius:999px;
  background:#f97316;
  font-size:11px;
  color:#fff;
}

/* RESPONSIVE */
@media(max-width:900px){
  .am-blog-pro-card { grid-template-columns:1fr !important; }
}
/* ========== BLOG LAYOUT FIX UNTUK HALAMAN /blog ========== */

/* Bungkus blog di tengah */
.blog .am-main .am-container {
  max-width: 1100px;
  margin: 30px auto 80px;
  padding: 0 20px;
}

/* Card artikel di listing blog */
.blog .am-main .am-container > article,
.blog .am-main .am-container .post {
  display: grid;
  grid-template-columns: minmax(240px, 320px) 1fr;
  gap: 22px;
  background: #0D121C;
  border-radius: 16px;
  padding: 18px 20px;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 18px 40px rgba(0,0,0,0.55);
}

/* Thumbnail (gambar pertama di blog list) */
.blog .am-main .am-container > article img,
.blog .am-main .am-container .post img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

/* Judul & teks */
.blog .am-main .am-container h2,
.blog .am-main .am-container h2 a {
  font-size: 24px;
  line-height: 1.3;
  color: #fff;
  text-decoration: none;
}

.blog .am-main .am-container h2 a:hover {
  color: #4EA8FF;
}

.blog .am-main .am-container p {
  font-size: 15px;
  line-height: 1.7;
  color: #d6dce6;
}

/* Meta (tanggal, kategori, author) */
.blog .am-main .am-container .entry-meta,
.blog .am-main .am-container .post-meta,
.blog .am-main .am-container .post span {
  font-size: 12px;
  color: #9ca3af;
  margin-bottom: 8px;
}

/* Tombol "Read more" bawaan WP (more-link) jadi tombol merah */
.blog .more-link {
  display: inline-block;
  margin-top: 12px;
  padding: 10px 18px;
  background: linear-gradient(90deg,#ff3d3d,#e60023);
  color: #fff !important;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
}

.blog .more-link:hover {
  opacity: .88;
}

/* RESPONSIVE: di HP gambar di atas, teks di bawah */
@media (max-width: 900px) {
  .blog .am-main .am-container > article,
  .blog .am-main .am-container .post {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .blog .am-main .am-container > article img,
  .blog .am-main .am-container .post img {
    height: 200px;
  }

  .blog .am-main .am-container h2,
  .blog .am-main .am-container h2 a {
    font-size: 20px;
  }
}

  .am-blog-title {
    font-size: 22px;
  }
}
/* ===== BLOG CARD LAYOUT GENERIC UNTUK HALAMAN /blog ===== */

/* Bungkus konten blog di tengah */
.blog #primary,
.blog .site-main,
.blog main {
  max-width: 1100px;
  margin: 30px auto 80px;
  padding: 0 20px;
}

/* Card tiap artikel di listing blog */
.blog article.post {
  display: grid;
  grid-template-columns: minmax(240px, 320px) 1fr;
  gap: 22px;
  background: #0D121C;
  border-radius: 16px;
  padding: 18px 20px;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 18px 40px rgba(0,0,0,0.55);
  margin-bottom: 26px;
}

/* Gambar featured di listing */
.blog article.post img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

/* Judul artikel */
.blog article.post .entry-title,
.blog article.post h2.entry-title,
.blog article.post h2.entry-title a {
  font-size: 24px;
  line-height: 1.3;
  color: #fff;
  text-decoration: none;
}

.blog article.post h2.entry-title a:hover {
  color: #4EA8FF;
}

/* Meta (tanggal, kategori, author) */
.blog article.post .entry-meta,
.blog article.post .post-meta {
  font-size: 12px;
  color: #9ca3af;
  margin-bottom: 6px;
}

/* Excerpt / konten pendek */
.blog article.post .entry-summary,
.blog article.post .entry-content {
  font-size: 15px;
  line-height: 1.7;
  color: #d6dce6;
}

/* Tombol "read more" kalau ada link more-link */
.blog article.post .more-link {
  display: inline-block;
  margin-top: 12px;
  padding: 10px 18px;
  background: linear-gradient(90deg,#ff3d3d,#e60023);
  color: #fff !important;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
}

.blog article.post .more-link:hover {
  opacity: .88;
}

/* RESPONSIVE: di HP gambar di atas, teks di bawah */
@media (max-width: 900px) {
  .blog article.post {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .blog article.post img {
    height: 200px;
  }

  .blog article.post .entry-title,
  .blog article.post h2.entry-title,
  .blog article.post h2.entry-title a {
    font-size: 20px;
  }
}
/* ===== AM TUBE TRADE - BLOG CARD CLEAN ===== */

.blog-page {
  max-width: 1100px;
  margin: 32px auto 80px;
  padding: 0 20px;
}

.blog-page-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 24px;
}

.blog-card-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.blog-card {
  display: grid;
  grid-template-columns: minmax(260px, 340px) 1fr;
  gap: 24px;
  background: #0D121C;
  border-radius: 16px;
  padding: 20px 22px;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 18px 40px rgba(0,0,0,0.6);
}

.blog-card-thumb img,
.blog-card-thumb-placeholder {
  width: 100%;
  height: 230px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

.blog-card-thumb-placeholder {
  background: radial-gradient(circle at top left,#1f2937,#020617);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 28px;
  color: #9ca3af;
}

.blog-card-body {
  display: flex;
  flex-direction: column;
}

/* meta */
.blog-card-meta-top {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: #9ca3af;
  margin-bottom: 8px;
}

.blog-badge-cat {
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(96,165,250,0.18);
  color: #e5f0ff;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.blog-badge-new {
  padding: 3px 8px;
  border-radius: 999px;
  background: #f97316;
  color: #fff;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.blog-card-date {
  margin-left: 4px;
}

/* title & excerpt */
.blog-card-title {
  font-size: 24px;
  line-height: 1.3;
  margin: 10px 0;
}

.blog-card-title a {
  color: #fff;
  text-decoration: none;
}

.blog-card-title a:hover {
  color: #4EA8FF;
}

.blog-card-excerpt {
  font-size: 15px;
  line-height: 1.7;
  color: #d6dce6;
  margin-bottom: 18px;
}

/* button */
.blog-card-readmore {
  display: inline-block;
  padding: 11px 20px;
  border-radius: 999px;
  background: linear-gradient(90deg,#ff3d3d,#e60023);
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
}

.blog-card-readmore:hover {
  opacity: .9;
}

/* pagination */
.blog-card-pagination {
  margin-top: 30px;
  text-align: center;
}

/* responsive */
@media (max-width: 900px) {
  .blog-card {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .blog-card-thumb img,
  .blog-card-thumb-placeholder {
    height: 210px;
  }

  .blog-card-title {
    font-size: 21px;
  }
}

@media (max-width: 600px) {
  .blog-page {
    padding: 0 12px;
  }

  .blog-card {
    padding: 14px;
    gap: 16px;
  }

  .blog-card-thumb img,
  .blog-card-thumb-placeholder {
    height: 190px;
  }
}
/* ==== FOOTER STYLE (TOPPORNSITES STYLE) ==== */
.am-footer {
  padding: 24px 0 40px;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.am-footer .footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  padding: 12px 40px 0;
}

.am-footer .footer-left {
  font-size: 14px;
  color: var(--text-soft);
  white-space: nowrap;
}

.am-footer .footer-left span {
  color: #ff4d6d; /* icon hati */
}

.am-footer .footer-right {
  display: flex;
  align-items: center;
  gap: 24px;              /* jarak antar menu, bikin mirip contoh */
  font-size: 14px;
}

.am-footer .footer-right a {
  color: var(--text-soft);
  text-decoration: none;
  transition: 0.25s;
}

.am-footer .footer-right a:hover {
  color: var(--accent);
}

/* tombol back to top biarin tetap */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 32px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: none;
  background: #ea2f01;
  color: #02030a;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0,0,0,0.55);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .am-footer .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 16px 20px 0;
  }

  .am-footer .footer-right {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }
}
/* FOOTER MENU STYLE */
.am-footer-menu {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.am-footer-menu li a {
  color: var(--text-soft);
  font-size: 14px;
  text-decoration: none;
  transition: 0.25s;
}

.am-footer-menu li a:hover {
  color: var(--accent);
  opacity: 0.85;          /* efek sedikit redup */
  transform: translateY(-1px);  /* geser naik 1px kecil banget */
  transition: 0.15s ease;       /* durasi lebih cepat */
}


@media (max-width: 768px) {
  .am-footer-menu {
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
  }
}
/* Biar halaman review full rapi, tidak kepaksa container theme */
body.amnr-page .container,
body.amnr-page .wrap,
body.amnr-page .site-content{
  max-width:none !important;
  width:100% !important;
}
body.amnr-page{
  background:#070a12;
}
/* =========================
   AM Review Article Center + Responsive
   ========================= */

/* pusatkan area artikel */
.wrap .single-card{
  max-width: 920px;      /* lebar enak buat artikel */
  margin: 28px auto;
}

/* konten artikel lebih rapi */
.wrap .single-content{
  max-width: 760px;      /* teks jangan kepanjangan */
  margin: 0 auto;
  line-height: 1.75;
}

/* gambar/thumbnail responsif */
.wrap .single-thumb img,
.wrap .single-content img{
  max-width: 100% !important;
  height: auto !important;
  display: block;
  margin: 14px auto;
  border-radius: 12px;
}

/* embed / iframe responsif */
.wrap .single-content iframe,
.wrap .single-content video{
  max-width: 100% !important;
}

/* table responsif (kalau ada pros/cons tabel) */
.wrap .single-content table{
  width: 100%;
  display: block;
  overflow-x: auto;
  border-collapse: collapse;
}

/* mobile: lebih lega */
@media (max-width: 768px){
  .wrap .single-card{max-width: 100%; margin: 16px auto; padding: 0 12px;}
  .wrap .single-content{max-width: 100%;}
}
/* Rating gold stars di archive ad-network-review */
.am-gold-stars{
  font-size: 14px;
  letter-spacing: 1px;
  display: inline-block;
  vertical-align: middle;
  margin-right: 10px;
  color: #f5c542; /* emas */
  text-shadow: 0 1px 0 rgba(0,0,0,.35);
}

/* rapihin row dengan favicon */
.site-row{display:flex;gap:12px;align-items:center}
.favicon-box{width:34px;height:34px;display:flex;align-items:center;justify-content:center;border-radius:10px;background:rgba(255,255,255,.06)}
.favicon-box img{width:22px;height:22px;border-radius:6px}
/* =========================
   SUBMENU DROPDOWN FIX (AM)
   ========================= */

/* pastikan nav bisa nampilin dropdown */
.am-header-menu { position: relative; }
.am-header-menu .am-menu-items { overflow: visible; }

/* hanya UL level 1 yang flex */
.am-header-menu > ul,
.am-header-menu .am-menu-items {
  list-style: none;
  display: flex;
  gap: 24px;
  padding: 0;
  margin: 0;
}

/* LI harus relative supaya submenu absolute ngikut parent */
.am-header-menu .menu-item {
  position: relative;
}

/* SUBMENU default hidden + dropdown */
.am-header-menu .sub-menu{
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 210px;
  z-index: 99999;

  background: #0b0e1a;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  padding: 8px;

  /* reset flex bawaan ul */
  list-style: none;
  margin: 0;
  gap: 0;
}

/* tampil pas hover desktop */
@media (min-width:769px){
  .am-header-menu .menu-item-has-children:hover > .sub-menu{
    display: block;
  }
}

/* link submenu */
.am-header-menu .sub-menu a{
  display:block;
  padding:10px 12px;
  color:#b5bdd7;
  text-decoration:none;
  border-radius:10px;
}
.am-header-menu .sub-menu a:hover{
  background: rgba(62,233,138,.10);
  color:#fff;
}

/* ========= MOBILE =========
   submenu tampil saat klik (class .open dari JS) */
@media (max-width:768px){
  /* menu mobile tetap seperti punyamu */
  .am-main-header.open .am-header-menu > ul,
  .am-main-header.open .am-header-menu .am-menu-items{
    flex-direction: column;
    gap: 8px;
  }

  /* submenu di mobile jadi block (bukan absolute) */
  .am-header-menu .sub-menu{
    position: static;
    min-width: 0;
    margin: 6px 0 0;
    padding: 6px;
    border-radius: 10px;
  }

  /* default sembunyi, tampil jika parent .open */
  .am-header-menu .menu-item-has-children > .sub-menu{ display:none; }
  .am-header-menu .menu-item-has-children.open > .sub-menu{ display:block; }

  /* indent submenu */
  .am-header-menu .sub-menu a{ padding: 9px 12px; }
}
/* =========================
   MOBILE MENU CENTER + CLEAN
   ========================= */
@media (max-width:768px){

  /* panel menu */
  .am-main-header.open .am-header-menu{
    position:absolute;
    left:0;
    right:0;
    top:100%;
    background: rgba(5,7,18,0.98);
    border-bottom:1px solid rgba(255,255,255,0.08);
    padding: 14px 12px 18px;   /* ruang */
  }

  /* bungkus UL biar center */
  .am-main-header.open .am-header-menu > ul,
  .am-main-header.open .am-header-menu .am-menu-items{
    max-width: 420px;          /* bikin rapi di tengah */
    width: 100%;
    margin: 0 auto;
    padding: 0;
    display:flex;
    flex-direction:column;
    gap: 10px;
  }

  /* tiap item menu jadi bar */
  .am-main-header.open .am-header-menu li{
    width: 100%;
  }

  .am-main-header.open .am-header-menu a{
    display:flex;
    align-items:center;
    justify-content:flex-start;
    width:100%;
    padding: 12px 12px;
    border-radius: 12px;
    color:#fff;
    font-size:16px;
    font-weight:600;
    background: rgba(255,255,255,0.04);
  }

  .am-main-header.open .am-header-menu a:hover{
    background: rgba(62,233,138,0.10);
  }

  /* submenu: kotak di dalam */
  .am-header-menu .sub-menu{
    margin-top: 8px;
    padding: 8px;
    border-radius: 12px;
    background: rgba(0,0,0,0.25);
    border: 1px solid rgba(255,255,255,0.06);
  }

  .am-header-menu .sub-menu a{
    font-size:14px;
    font-weight:600;
    padding: 10px 12px;
    background: rgba(255,255,255,0.03);
  }

  /* supaya underline hover desktop gak ganggu mobile */
  .am-header-menu a::after{
    display:none !important;
  }
}
/* ===== FIX BURGER TIDAK BISA DIKLIK (OVERLAY) ===== */
.am-main-header{
  position: sticky !important;
  top: 0 !important;
  z-index: 999999 !important;
}

.am-header-inner{
  position: relative !important;
  z-index: 999999 !important;
}

.am-header-toggle{
  position: relative !important;
  z-index: 9999999 !important;
  pointer-events: auto !important;
}

/* cegah elemen page “niban” header */
body{
  position: relative;
}
/* =========================
   HEADER SUBMENU (DESKTOP + MOBILE)
   cocok untuk: .am-header-menu + .am-menu-items
   ========================= */

/* pastikan parentnya relative untuk dropdown */
.am-header-menu .menu-item { position: relative; }

/* SUBMENU default: hidden */
.am-header-menu .sub-menu{
  display:none;
  position:absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 220px;
  z-index: 99999;

  background:#0b0e1a;
  border:1px solid rgba(255,255,255,.10);
  border-radius:12px;
  padding:8px;

  list-style:none;
  margin:0;
}

/* item submenu */
.am-header-menu .sub-menu li a{
  display:block;
  padding:10px 12px;
  border-radius:10px;
  color:#b5bdd7;
}
.am-header-menu .sub-menu li a:hover{
  background: rgba(62,233,138,.10);
  color:#fff;
}

/* DESKTOP: dropdown muncul saat hover */
@media (min-width:769px){
  .am-header-menu .menu-item-has-children:hover > .sub-menu{
    display:block;
  }
}

/* MOBILE: dropdown jadi block dan toggle pakai class .open */
@media (max-width:768px){
  /* menu utama kamu sudah: header.open => menu tampil */
  /* bikin menu mobile rapi & di tengah */
  .am-main-header.open .am-header-menu ul.am-menu-items{
    width:100%;
    align-items:center;
    text-align:center;
  }
  .am-main-header.open .am-header-menu ul.am-menu-items > li > a{
    display:block;
    width:100%;
    padding:12px 14px;
    border-radius:12px;
    background: rgba(255,255,255,0.04);
  }

  /* SUBMENU di mobile: bukan absolute */
  .am-header-menu .sub-menu{
    position: static;
    min-width: 0;
    margin-top: 8px;
    width:100%;
    border-radius:12px;
    padding:8px;
    background: rgba(0,0,0,0.30);
  }

  /* default tutup, buka saat li.open */
  .am-header-menu .menu-item-has-children > .sub-menu{ display:none !important; }
  .am-header-menu .menu-item-has-children.open > .sub-menu{ display:block !important; }

  /* submenu item rapih */
  .am-header-menu .sub-menu li a{
    background: transparent;
    padding:11px 12px;
  }
}
/* ==============================
   AM TUBE – CENTERED COMPACT GRID
   (sesuai maksud kamu)
============================== */

/* area background */
.am-home{
  padding:26px 0 40px;
  background:
    radial-gradient(1000px 500px at 40% 15%, rgba(80,120,255,.18), transparent 60%),
    linear-gradient(180deg,#0b1230,#060816);
}

/* container sengaja DI-TENGAH */
.container.home-wrap{
  max-width:1320px;   /* INI KUNCI: bikin grid kelihatan kecil & rapat */
  margin:0 auto;
  padding:0 18px;
}

/* grid */
.am-grid{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:22px;
}

/* card */
.am-card{
  min-width:0;
}

/* thumbnail: TIDAK tinggi (biar kompak) */
.am-thumb{
  position:relative;
  aspect-ratio:16/9;
  background:#000;
  overflow:hidden;
}

.am-thumb-img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* badge HD */
.am-badge{
  position:absolute;
  top:10px;
  left:10px;
  background:#ea2f01;
  color:#00160e;
  font-size:13px;
  font-weight:700;
  padding:5px 12px;
  border-radius:12px;
}

/* title */
.am-title{
  margin:10px 0 0;
  font-size:14px;
  line-height:1.35;
  font-weight:600;
  color:#fff;

  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  min-height:38px;
}

.am-title a{
  color:inherit;
  text-decoration:none;
}
.am-title a:hover{
  text-decoration:underline;
}

/* ==============================
   RESPONSIVE
============================== */

@media (max-width:1100px){
  .am-grid{ grid-template-columns:repeat(3,1fr); }
  .container.home-wrap{ max-width:980px; }
}

@media (max-width:820px){
  .am-grid{ grid-template-columns:repeat(2,1fr); }
  .container.home-wrap{ max-width:720px; }
}

@media (max-width:420px){
  .am-grid{ grid-template-columns:1fr; }
}
/* =========================================
   AM TUBE – GRID KETENGAH + RAPAT (FORCE)
   Tempel PALING BAWAH style.css
========================================= */

/* area home */
.am-home{
  padding:26px 0 40px !important;
}

/* container home: bikin grid "ketengah" (tidak full lebar) */
.am-home .container.home-wrap{
  width:100% !important;
  max-width:1180px !important;   /* <- kunci: makin kecil makin "rapat & ketengah" */
  margin:0 auto !important;
  padding:0 18px !important;
}

/* GRID */
.am-home .am-grid{
  display:grid !important;
  grid-template-columns:repeat(4, minmax(0, 1fr)) !important;
  gap:22px !important;
  align-items:start !important;
}

/* CARD */
.am-home .am-card{
  min-width:0 !important;
}

/* THUMB (kompak) */
.am-home .am-thumb{
  display:block !important;
  position:relative !important;
  width:100% !important;
  aspect-ratio:16/9 !important;
  background:#000 !important;
  overflow:hidden !important;
  border:1px solid rgba(255,255,255,0.08) !important;
}

/* IMG */
.am-home .am-thumb-img{
  width:100% !important;
  height:100% !important;
  object-fit:cover !important;
  display:block !important;
}

/* BADGE */
.am-home .am-badge{
  position:absolute !important;
  top:10px !important;
  left:10px !important;
  background:#ea2f01 !important;
  color:#00160e !important;
  font-size:13px !important;
  font-weight:800 !important;
  padding:5px 12px !important;
  border-radius:12px !important;
  z-index:2 !important;
}

/* TITLE */
.am-home .am-title{
  margin:10px 0 0 !important;
  font-size:14px !important;
  line-height:1.35 !important;
  font-weight:700 !important;
  color:#fff !important;

  display:-webkit-box !important;
  -webkit-line-clamp:2 !important;
  -webkit-box-orient:vertical !important;
  overflow:hidden !important;
  min-height:38px !important;
}
.am-home .am-title a{
  color:inherit !important;
  text-decoration:none !important;
}
.am-home .am-title a:hover{
  text-decoration:underline !important;
}

/* RESPONSIVE */
@media (max-width:1100px){
  .am-home .container.home-wrap{ max-width:980px !important; }
  .am-home .am-grid{ grid-template-columns:repeat(3, minmax(0,1fr)) !important; }
}
@media (max-width:820px){
  .am-home .container.home-wrap{ max-width:720px !important; }
  .am-home .am-grid{ grid-template-columns:repeat(2, minmax(0,1fr)) !important; }
}
@media (max-width:420px){
  .am-home .am-grid{ grid-template-columns:1fr !important; }
}
/* =========================================================
   AM SINGLE VIDEO – CLEAN & CENTER (NO DOUBLE THUMB)
   ========================================================= */

.am-single-wrap{
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 16px 60px;
}

/* Card utama */
.am-single-card{
  max-width: 920px;
  margin: 18px auto 40px;
  padding: 18px 18px 22px;
  background: rgba(12,16,24,.92);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 14px;
}

/* Header */
.am-single-header{
  margin-bottom: 12px;
}

.am-single-title{
  font-size: 28px;
  line-height: 1.18;
  font-weight: 800;
  margin-bottom: 10px;
}

.am-single-meta{
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
  font-size: 12px;
  color: rgba(245,245,255,.70);
}

.am-single-meta .single-meta-sep{
  opacity: .55;
}

/* Thumbnail (hanya untuk artikel tanpa embed) */
.am-single-thumb{
  margin: 12px 0 16px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
}
.am-single-thumb img{
  width: 100%;
  height: auto;
  display: block;
}

/* Content area */
.am-single-content{
  color: rgba(245,245,255,.75);
  font-size: 14px;
  line-height: 1.85;
}

/* Pastikan semua elemen tidak melebihi card */
.am-single-content > *{
  max-width: 100%;
}

/* ===== PLAYER / EMBED RESPONSIVE ===== */

/* iframe/video embed jadi full lebar, 16:9 */
.am-single-content iframe,
.am-single-content video,
.am-single-content .wp-video{
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  aspect-ratio: 16/9;
  display: block;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.10);
  background: #000;
}

/* WordPress embed wrappers */
.am-single-content .wp-block-embed,
.am-single-content .wp-block-video,
.am-single-content .wp-block-embed__wrapper{
  width: 100% !important;
  max-width: 100% !important;
}

/* Kalau ada embed yang pakai inline style fixed width */
.am-single-content iframe[width],
.am-single-content iframe[height]{
  width: 100% !important;
  height: auto !important;
}

/* Gambar dalam content */
.am-single-content img{
  max-width: 100% !important;
  height: auto !important;
  display: block;
  margin: 14px auto;
  border-radius: 12px;
}

/* Table biar tidak nabrak */
.am-single-content table{
  width: 100%;
  display: block;
  overflow-x: auto;
  border-collapse: collapse;
}

/* Link */
.am-single-content a{
  color: var(--accent);
  text-decoration: underline;
}
.am-single-content a:hover{
  opacity: .85;
}

/* Tags */
.am-single-tags{
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.08);
  display:flex;
  gap: 10px;
  font-size: 12px;
}
.am-single-tags .single-tags-label{
  color: rgba(245,245,255,.55);
  font-weight: 600;
}
.am-single-tags .single-tags-list{
  display:flex;
  flex-wrap:wrap;
  gap: 8px;
}
.am-single-tags .single-tags-list a{
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,.45);
  color: rgba(245,245,255,.70);
  text-decoration: none;
}
.am-single-tags .single-tags-list a:hover{
  background: rgba(63,130,255,.18);
  border-color: rgba(63,130,255,.65);
  color: #fff;
}

/* Prev/Next */
.am-single-nav{
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.08);
  display:flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}
.am-single-nav a{
  color: #9fb8ff;
  text-decoration: none;
}
.am-single-nav a:hover{
  text-decoration: underline;
}

/* RESPONSIVE */
@media (max-width: 820px){
  .am-single-card{
    max-width: 100%;
    padding: 16px 14px 18px;
  }
  .am-single-title{
    font-size: 22px;
  }
}

@media (max-width: 600px){
  .am-single-wrap{
    padding: 18px 12px 50px;
  }
  .am-single-meta{
    gap: 8px;
  }
  .am-single-nav{
    flex-direction: column;
    align-items: flex-start;
  }
}
/* ======================================================
   SINGLE VIDEO – TUBE STYLE
====================================================== */

.am-single-wrap{
  max-width:1100px;
  margin:0 auto;
  padding:24px 16px 60px;
}

.am-single-card{
  max-width:900px;
  margin:0 auto 40px;
  padding:18px;
  background:rgba(12,16,24,.94);
  border:1px solid rgba(255,255,255,.08);
  border-radius:16px;
}

.am-single-title{
  font-size:28px;
  font-weight:800;
  margin-bottom:8px;
}

.am-single-meta{
  font-size:12px;
  opacity:.75;
  display:flex;
  gap:8px;
  margin-bottom:12px;
}

/* PLAYER */
.am-single-content iframe,
.am-single-content video,
.am-single-content .wp-video{
  width:100%!important;
  aspect-ratio:16/9;
  height:auto!important;
  border-radius:14px;
  background:#000;
  border:1px solid rgba(255,255,255,.1);
  display:block;
}

/* ======================================================
   RELATED VIDEOS GRID (16)
====================================================== */

.am-related{
  margin-top:10px;
}

.am-related-title{
  font-size:22px;
  font-weight:800;
  margin:0 0 14px;
}

.am-related-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:22px;
}

/* card same as homepage */
.am-card{
  min-width:0;
}

.am-thumb{
  position:relative;
  aspect-ratio:16/9;
  overflow:hidden;
  background:#000;
}

.am-thumb-img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.am-badge{
  position:absolute;
  top:10px;
  left:10px;
  background:#ea2f01;
  color:#00160e;
  font-size:12px;
  font-weight:700;
  padding:4px 10px;
  border-radius:999px;
}

.am-title{
  margin:8px 0 0;
  font-size:14px;
  font-weight:600;
  line-height:1.35;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

/* ======================================================
   RESPONSIVE
====================================================== */

@media (max-width:1100px){
  .am-related-grid{grid-template-columns:repeat(3,1fr);}
}

@media (max-width:820px){
  .am-related-grid{grid-template-columns:repeat(2,1fr);}
  .am-single-title{font-size:22px;}
}

@media (max-width:420px){
  .am-related-grid{grid-template-columns:1fr;}
}
/* === HILANGKAN BORDER PUTIH YANG ADA DI FILE THUMB (ZOOM) === */
.am-thumb{
  overflow:hidden !important;
  background:#000 !important;
}

.am-thumb-img{
  width:100% !important;
  height:100% !important;
  object-fit:cover !important;
  display:block !important;

  /* ini kuncinya */
  transform:scale(1.06) !important;       /* coba 1.06 dulu */
  transform-origin:center center !important;

  border:0 !important;
  outline:0 !important;
  box-shadow:none !important;
}
.am-pagination{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:12px;
  margin:28px auto 10px;
  flex-wrap:wrap;
}

.am-pagination a,
.am-pagination span{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:46px;
  height:46px;
  padding:0 16px;
  border-radius:12px;
  font-weight:700;
  font-size:18px;
  line-height:1;
  text-decoration:none;
  color:#ffffff;
  background:rgba(255,255,255,0.08);
  border:1px solid rgba(255,255,255,0.06);
  transition:filter .15s ease, transform .15s ease, background .15s ease;
}

.am-pagination a:hover{
  filter:brightness(1.12);
  transform:translateY(-1px);
}

.am-pagination .current{
  background:#10d5a4;
  border-color:rgba(16,213,164,0.35);
  color:#04110d;
}

.am-pagination .dots{
  min-width:46px;
  padding:0 12px;
  opacity:.75;
}

.am-pagination .next,
.am-pagination .prev{
  min-width:auto;
  padding:0 18px;
  font-size:18px;
}

@media (max-width:520px){
  .am-pagination{ gap:10px; }
  .am-pagination a,
  .am-pagination span{
    min-width:42px;
    height:42px;
    font-size:16px;
    border-radius:12px;
  }
}
/* =========================================================
   FORCE RELATED TITLES UNDER THUMB (ANTI OVERLAY) - SINGLE
   ========================================================= */

/* Target area single post + widget related apapun */
.single .am-card,
.single article,
.single .related-videos article,
.single .related-videos .am-card,
.single .related-posts article,
.single .related-posts .am-card,
.single .rpwe-block li,
.single .wp-block-latest-posts li{
  display:flex !important;
  flex-direction:column !important;
  align-items:stretch !important;
}

/* Pastikan thumbnail jadi blok dan bukan ketiban title */
.single .am-thumb,
.single .thumb,
.single .post-thumbnail,
.single .wp-post-image,
.single .related-videos a,
.single .related-posts a{
  position:relative !important;
}

/* Ini yang biasanya bikin title naik: absolute/transform/margin negatif */
.single h3,
.single .entry-title,
.single .am-title,
.single .video-title,
.single .thumb-title,
.single .rpwe-title,
.single .wp-block-latest-posts__post-title{
  position:static !important;
  inset:auto !important;
  top:auto !important;
  left:auto !important;
  right:auto !important;
  bottom:auto !important;

  transform:none !important;
  float:none !important;
  clear:both !important;

  margin:10px 0 0 !important;
  padding:0 !important;

  display:block !important;
  width:100% !important;
  height:auto !important;

  background:transparent !important;
  color:#fff !important;
  line-height:1.35 !important;
  font-weight:600 !important;
  font-size:14px !important;

  /* clamp 2 baris */
  overflow:hidden !important;
  display:-webkit-box !important;
  -webkit-line-clamp:2 !important;
  -webkit-box-orient:vertical !important;
}

/* Link title selalu block */
.single h3 a,
.single .entry-title a,
.single .am-title a,
.single .video-title a,
.single .thumb-title a,
.single .rpwe-title a,
.single .wp-block-latest-posts__post-title{
  display:block !important;
  color:inherit !important;
  text-decoration:none !important;
}
.single h3 a:hover,
.single .entry-title a:hover,
.single .am-title a:hover{
  text-decoration:underline !important;
}
/* =================================================
   ADD HD BADGE ON RELATED VIDEOS (LIKE INDEX)
   ================================================= */

/* target thumbnail related (sesuaikan luas tapi aman) */
.single .related-videos a,
.single .related-posts a,
.single .rpwe-block li a,
.single .wp-block-latest-posts li a,
.single .am-thumb {
  position:relative;
}

/* badge HD */
.single .related-videos a::before,
.single .related-posts a::before,
.single .rpwe-block li a::before,
.single .wp-block-latest-posts li a::before,
.single .am-thumb::before{
  content:"HD";
  position:absolute;
  top:10px;
  left:10px;
  z-index:5;

  background:#ea2f01;
  color:#00160e;
  font-size:12px;
  font-weight:700;
  padding:4px 10px;
  border-radius:999px;

  line-height:1;
  pointer-events:none;
  box-shadow:0 2px 8px rgba(0,0,0,.35);
}
/* ===== NAV RIGHT ACTIONS (Search) ===== */
.am-nav-actions{
  display:flex;
  align-items:center;
  gap:10px;
  flex-shrink:0;
}

/* Search pill - nyatu sama header */
.am-nav-search{
  display:flex;
  align-items:center;
  height:34px;                 /* sejajar dengan header */
  border-radius:12px;
  padding:0 6px 0 10px;
  background:rgba(255,255,255,0.04);
  border:1px solid rgba(255,255,255,0.08);
  transition:.18s;
}

.am-nav-search:focus-within{
  border-color:rgba(62,233,138,0.55);
  box-shadow:0 0 0 3px rgba(62,233,138,0.12);
  background:rgba(255,255,255,0.05);
}

.am-nav-search input{
  width:150px;
  height:100%;
  border:0;
  outline:none;
  background:transparent;
  color:#eaf0ff;
  font-size:13px;
  padding:0;
}

.am-nav-search input::placeholder{
  color:rgba(181,189,215,0.55); /* nyambung sama menu #b5bdd7 */
}

.am-nav-search button{
  width:30px;
  height:30px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:0;
  background:transparent;
  color:#ea2f01;
  cursor:pointer;
  border-radius:10px;
  transition:.18s;
}

.am-nav-search button{
  transition: background .2s ease, box-shadow .2s ease;
}

.am-nav-search button:hover{
  background: rgba(234,47,1,0.16);
  color: #ffffff;
  box-shadow: 0 0 0 2px rgba(234,47,1,0.25);
}


.am-nav-search .am-sicon{
  font-size:16px;
  line-height:1;
}

/* Responsive */
@media (max-width:900px){
  .am-nav-search input{ width:120px; }
}

/* Mobile: TAMPILKAN search */
@media (max-width:768px){
  .am-nav-actions{
    display:flex;
  }
  .am-nav-search{
    height:32px;
  }
  .am-nav-search input{
    width:110px; /* biar muat */
  }
}
/* ===============================
   AM PAGINATION – FINAL (NO JS)
================================ */
.am-pagination{
  display:flex;
  justify-content:center;
  padding:22px 12px;
}

.am-pagination{
  gap:10px;
  flex-wrap:nowrap;           /* jangan turun baris */
  white-space:nowrap;
  overflow-x:auto;            /* kalau kepanjangan, scroll horizontal */
  overflow-y:hidden;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:none;
}
.am-pagination::-webkit-scrollbar{ display:none; }

.am-pagination .am-page{
  flex:0 0 auto;
  min-width:40px;
  height:38px;
  padding:0 12px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:12px;
  font-size:16px;
  font-weight:600;
  text-decoration:none;
  color:#fff;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.06);
  transition:.15s;
}

.am-pagination a.am-page:hover{
  filter:brightness(1.15);
}

/* AKTIF pindah sesuai page */
.am-pagination .is-current{
  background:#ea2f01;
  color:#04120c;
  border:0;
}

.am-pagination .is-disabled{
  opacity:.35;
  pointer-events:none;
}

/* Mobile lebih kecil */
@media (max-width:768px){
  .am-pagination .am-page{
    min-width:34px;
    height:34px;
    padding:0 10px;
    font-size:14px;
    border-radius:10px;
  }
}
/* ===== FORCE ACTIVE PAGINATION COLOR ===== */

/* default page */
.am-pagination .page-numbers{
  background:rgba(255,255,255,.08);
  color:#ffffff;
  border:1px solid rgba(255,255,255,.06);
}

/* INI YANG KAMU MAU */
.am-pagination .page-numbers.current{
  background:#ea2f01 !important;
  color:#04120c !important;
  border:0 !important;
}
.am-pagination{
  display:flex;
  justify-content:center;
  gap:10px;
  flex-wrap:nowrap;
  white-space:nowrap;
  overflow-x:auto;
  padding:22px 12px;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:none;
}
.am-pagination::-webkit-scrollbar{display:none;}

.am-pagination .page-numbers{
  flex:0 0 auto;
  min-width:42px;
  height:40px;
  padding:0 12px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:12px;
  font-size:16px;
  font-weight:600;
  text-decoration:none;
  color:#fff;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.06);
}

.am-pagination .page-numbers.current{
  background:#ea2f01;
  color:#04120c;
  border:0;
}

.am-pagination .page-numbers.disabled{
  opacity:.35;
  pointer-events:none;
}

@media (max-width:768px){
  .am-pagination .page-numbers{
    min-width:34px;
    height:34px;
    padding:0 10px;
    font-size:14px;
    border-radius:10px;
  }
}
/* ===============================
   FORCE PAGINATION VISIBILITY
================================ */

/* default: DESKTOP */
.am-pager-desktop{
  display:flex !important;
}
.am-pager-mobile{
  display:none !important;
}

/* MOBILE */
@media (max-width:768px){
  .am-pager-desktop{
    display:none !important;
  }
  .am-pager-mobile{
    display:flex !important;
  }
}
/* ===== pagination base ===== */
.am-pagination{
  display:flex;
  justify-content:center;
  gap:10px;
  flex-wrap:nowrap;
  white-space:nowrap;
  overflow-x:auto;
  padding:22px 12px;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:none;
}
.am-pagination::-webkit-scrollbar{ display:none; }

.am-pagination .page-numbers{
  flex:0 0 auto;
  min-width:42px;
  height:40px;
  padding:0 12px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:12px;
  font-size:16px;
  font-weight:600;
  text-decoration:none;
  color:#fff;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.06);
}

.am-pagination .page-numbers.current{
  background:#ea2f01 !important;
  color:#04120c !important;
  border:0 !important;
}

.am-pagination .page-numbers.disabled{
  opacity:.35;
  pointer-events:none;
}

/* ===== MOBILE: tampilkan cuma 1-6 (+ prev/next tetap ada) ===== */
@media (max-width:768px){
  .am-pagination .page-numbers{
    min-width:34px;
    height:34px;
    padding:0 10px;
    font-size:14px;
    border-radius:10px;
  }

  /* sembunyikan angka ke-7,8,9,10 (hitungannya: prev + 10 angka + next) */
  .am-pagination .page-numbers:not(.prev):not(.next):nth-of-type(n+8){
    display:none !important;
  }
}
@media (max-width:768px){
  /* sembunyikan angka ke-7 dst (sisakan 6 angka) */
  .am-pagination .page-numbers:not(.prev):not(.next):nth-of-type(n+8){
    display:none !important;
  }
}
/* ===== Archive/Category Title Modern ===== */
.am-archive-header{
  margin:6px 0 14px;
}

.am-archive-title{
  font-size:22px !important;      /* kecil */
  font-weight:800;
  line-height:1.15;
  margin:0 !important;
  color:#fff;
  letter-spacing:-0.3px;
  display:flex;
  align-items:baseline;
  gap:10px;
}

/* bikin "Category:" jadi kecil & pudar */
.am-archive-title span,
.am-archive-title .archive-prefix{
  font-size:13px !important;
  font-weight:600;
  opacity:.55;
  letter-spacing:.5px;
  text-transform:uppercase;
}

/* Mobile lebih kecil */
@media (max-width:768px){
  .am-archive-title{
    font-size:18px !important;
  }
  .am-archive-title span,
  .am-archive-title .archive-prefix{
    font-size:12px !important;
  }
}
/* ===== Index/Home Title ===== */
.am-page-header{
  margin:6px 0 14px;
}

.am-page-title{
  font-size:22px;
  font-weight:800;
  line-height:1.15;
  margin:0;
  color:#fff;
  letter-spacing:-0.3px;
}

/* Mobile */
@media (max-width:768px){
  .am-page-title{
    font-size:18px;
  }
}
/* ===== FINAL HEADER ALIGN (TEMPel PALING BAWAH) ===== */
.am-header-inner{
  max-width:1180px !important;  /* samakan dengan .container.home-wrap */
  margin:0 auto !important;
  padding:0 18px 6px !important;
  display:flex !important;
  align-items:flex-end !important;
  justify-content:space-between !important;
  gap:16px !important;
}

.am-brand-left{
  position:relative !important;
  top:2px !important; /* geser turun dikit biar pas ke "L" */
}

@media (max-width:768px){
  .am-header-inner{
    padding:0 12px 4px !important;
    align-items:flex-end !important;
  }
}
/* =========================
   LOGO BESAR (TANPA TEKS)
   ========================= */

/* link brand */
.am-brand-left{
  display:flex;
  align-items:center;
  gap:0;                 /* gak perlu gap karena gak ada teks */
  text-decoration:none;
  flex-shrink:0;
}

/* container logo: tidak kotak lagi */
.am-brand-icon{
  width:auto;
  height:56px;           /* tinggi logo desktop */
  background:none;       /* hilangkan kotak gelap */
  border-radius:0;
  overflow:visible;      /* biar logo gak kepotong */
  display:flex;
  align-items:center;
  justify-content:flex-start;
  padding:0;
}

/* gambar logo */
.am-brand-icon img{
  height:56px;           /* sama dengan container */
  width:auto;
  max-width:240px;       /* cegah kepanjangan */
  object-fit:contain;
  display:block;
  image-rendering:auto;
}

/* SEMBUNYIKAN TEKS kalau masih ada di HTML */
.am-brand-title{
  display:none !important;
}

/* =========================
   RESPONSIVE
   ========================= */
@media (max-width:1024px){
  .am-brand-icon{ height:52px; }
  .am-brand-icon img{ height:52px; max-width:220px; }
}

@media (max-width:768px){
  .am-brand-icon{ height:46px; }
  .am-brand-icon img{ height:46px; max-width:190px; }
}

@media (max-width:420px){
  .am-brand-icon{ height:40px; }
  .am-brand-icon img{ height:40px; max-width:165px; }
}
/* =========================
   FIX LOGO JADI TUBE BESAR
   ========================= */

.am-brand-left{
  display:flex;
  align-items:center;
  gap:0;
}

/* MATIKAN TOTAL STYLE IKON */
.am-brand-icon{
  width:auto !important;
  height:auto !important;
  background:none !important;
  border-radius:0 !important;
  box-shadow:none !important;
  padding:0 !important;
  overflow:visible !important;
}

/* LOGO TUBE */
.am-brand-icon img{
  height:56px;
  width:auto;
  max-width:260px;
  object-fit:contain;
  display:block;
}

/* HILANGKAN TEKS TOTAL */
.am-brand-title{
  display:none !important;
}

/* RESPONSIVE */
@media (max-width:768px){
  .am-brand-icon img{
    height:46px;
    max-width:200px;
  }
}

@media (max-width:420px){
  .am-brand-icon img{
    height:40px;
    max-width:170px;
  }
}
/* KECILIN LOGO LAGI (FINAL HALUS) */
.am-brand-icon img{
  height:36px !important;     /* sebelumnya 42px */
  max-width:180px !important;
}

/* Tablet */
@media (max-width:768px){
  .am-brand-icon img{
    height:32px !important;
    max-width:160px !important;
  }
}

/* Mobile kecil */
@media (max-width:420px){
  .am-brand-icon img{
    height:30px !important;
    max-width:145px !important;
  }
}
/* NAIKIN NAV LAGI (HALUS) */
.am-header-menu{
  margin-top:-5px;   /* sebelumnya -3px */
}

/* rapikan tinggi item menu */
.am-header-menu a{
  line-height:1.1;
  padding:3px 0;
}
/* =========================
   SITE DESCRIPTION (Bawah Pagination)
   ========================= */

.am-site-desc{
  max-width:980px;
  margin:32px auto 48px;
  padding:0 18px;
  text-align:center;
}

.am-site-desc p{
  font-size:15px;
  line-height:1.9;
  color:#b9c0d9;
  margin:0;
}

.am-site-desc strong{
  color:#ea2f01; /* warna brand */
  font-weight:700;
}

/* efek halus biar gak flat */
.am-site-desc{
  position:relative;
}
.am-site-desc::before{
  content:"";
  display:block;
  width:60px;
  height:3px;
  margin:0 auto 16px;
  border-radius:99px;
  background:linear-gradient(90deg, transparent, #ea2f01, transparent);
}
  opacity:.9;
}

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width:768px){
  .am-site-desc{
    margin:26px auto 40px;
  }
  .am-site-desc p{
    font-size:14px;
    line-height:1.8;
  }
}

@media (max-width:420px){
  .am-site-desc{
    padding:0 14px;
  }
  .am-site-desc p{
    font-size:13.5px;
  }
}
/* =========================================================
   AM NAVBAR (Menu + Search sejajar, tidak melebar)
   Pakai wrapper: .am-navbar
========================================================= */

/* Wrapper navbar */
.am-navbar{
  display:flex;
  align-items:center;              /* kunci: sejajar vertical */
  justify-content:space-between;   /* kiri menu, kanan search */
  gap:18px;
  padding:12px 18px;
  background:transparent;          /* ikut warna header kamu */
  max-width:100%;
  overflow:hidden;                /* cegah item keluar */
}

/* Area menu */
.am-navbar .am-menu,
.am-navbar nav,
.am-navbar .menu{
  display:flex;
  align-items:center;
  min-width:0;
}

/* List menu */
.am-navbar ul{
  display:flex;
  align-items:center;
  gap:28px;                        /* jarak antar menu */
  margin:0;
  padding:0;
  list-style:none;
  min-width:0;
}

/* Item */
.am-navbar li{
  display:flex;
  align-items:center;
}

/* Link menu (biar teks benar2 center dengan search) */
.am-navbar a{
  display:flex;
  align-items:center;
  line-height:1;                   /* penting: hilangin baseline turun */
  padding:10px 0;                  /* bikin tinggi klik nyaman */
  text-decoration:none;
  white-space:nowrap;
}

/* ===== Search area ===== */
.am-navbar .am-search,
.am-navbar .search,
.am-navbar form{
  display:flex;
  align-items:center;
  margin-left:auto;                /* dorong ke kanan */
  min-width:260px;                 /* lebar default */
  max-width:360px;                 /* biar gak kebesaran */
}

/* Input */
.am-navbar input[type="search"],
.am-navbar input[type="text"]{
  width:100%;
  height:40px;                     /* ini yang bikin sejajar rapi */
  line-height:40px;
  padding:0 14px;
  border-radius:22px;
  outline:none;
  border:1px solid rgba(255,255,255,0.08);
  background:rgba(255,255,255,0.04);
  color:inherit;
}

/* Placeholder */
.am-navbar input::placeholder{
  opacity:.65;
}

/* Tombol/icon search jika ada */
.am-navbar button{
  height:40px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:0;
  background:transparent;
  cursor:pointer;
}

/* ===== Responsive ===== */
@media (max-width: 900px){
  .am-navbar{
    flex-wrap:wrap;
    gap:10px;
    padding:10px 12px;
  }
  .am-navbar ul{
    gap:16px;
    overflow-x:auto;               /* biar menu bisa geser jika panjang */
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none;
  }
  .am-navbar ul::-webkit-scrollbar{ display:none; }

  .am-navbar .am-search,
  .am-navbar .search,
  .am-navbar form{
    width:100%;
    min-width:0;
    max-width:100%;
    margin-left:0;
  }
}

/* ==================================================
   FIX: Submenu CATEGORIES bisa scroll di MOBILE
   Target tepat: #menu-item-6199 (CATEGORIES)
================================================== */
@media (max-width: 900px){

  /* pastikan container dropdown categories punya tinggi & scroll */
  .am-header-menu #menu-item-6199 > .sub-menu{
    max-height: 55vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;

    /* biar scrollnya halus dan gak ketiban layout lain */
    position: relative;
  }

  /* supaya item kategori gak bikin gesture ketahan */
  .am-header-menu #menu-item-6199 > .sub-menu a{
    touch-action: pan-y;
  }
}
/* =========================================================
   AM TUBE SINGLE VIDEO + 2 ADS (DESKTOP SIDE / MOBILE BOTTOM)
   Paste at the very bottom of style.css
========================================================= */

/* Container wrap biar lebar & center */
.wrap.am-single-wrap{
  width: min(1400px, 96%);
  margin: 0 auto;
}

/* =========================
   LAYOUT DESKTOP: 2 kolom
   kiri = video/content, kanan = ads
========================= */
.wrap.am-single-wrap .am-single-layout{
  display: flex !important;           /* paksa 2 kolom */
  gap: 20px;
  align-items: flex-start;
}

/* kiri */
.wrap.am-single-wrap .am-single-main{
  flex: 1 1 auto;
  min-width: 0;                       /* penting biar iframe gak maksa */
}

/* kanan */
.wrap.am-single-wrap .am-single-sidebar{
  flex: 0 0 340px;                    /* ruang untuk 300 + border/padding */
  width: 340px;
  position: sticky;
  top: 90px;                          /* sesuaikan tinggi header */
}

/* stack 2 banner */
.wrap.am-single-wrap .am-ad-stack{
  display: grid;
  gap: 14px;
}

/* box banner */
.wrap.am-single-wrap .am-ad-box{
  display: block;
  width: 300px;
  max-width: 100%;
  margin: 0 auto;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  text-decoration: none;
}

/* gambar banner */
.wrap.am-single-wrap .am-ad-box img{
  width: 100%;
  height: auto;
  display: block;
}

/* =========================
   PLAYER RESPONSIVE (iframe/video/jw)
========================= */

/* hilangkan gap margin bawaan WP content */
.wrap.am-single-wrap .am-single-content > *:first-child{ margin-top: 0 !important; }
.wrap.am-single-wrap .am-single-content > *:last-child{ margin-bottom: 0 !important; }

/* embed selalu full & 16:9 */
.wrap.am-single-wrap .am-single-content iframe,
.wrap.am-single-wrap .am-single-content video,
.wrap.am-single-wrap .am-single-content embed,
.wrap.am-single-wrap .am-single-content object{
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 16 / 9;
  display: block;
  border: 0 !important;
  border-radius: 12px;
  margin: 0 !important;
}

/* jika ada wrapper WP embed */
.wrap.am-single-wrap .am-single-content .wp-block-embed,
.wrap.am-single-wrap .am-single-content .wp-block-embed__wrapper{
  max-width: 100% !important;
  margin: 0 !important;
}

/* kalau ada jwplayer container */
.wrap.am-single-wrap .am-single-content .jwplayer{
  width: 100% !important;
  max-width: 100% !important;
  border-radius: 12px;
  overflow: hidden;
}

/* =========================
   MOBILE: sidebar pindah ke bawah video
========================= */
@media (max-width: 980px){
  .wrap.am-single-wrap .am-single-layout{
    display: block !important;        /* jadi 1 kolom */
  }

  .wrap.am-single-wrap .am-single-sidebar{
    position: static;
    width: auto;
    margin-top: 16px;                 /* 2 banner tepat di bawah video */
  }

  .wrap.am-single-wrap .am-ad-box{
    width: min(360px, 100%);          /* tetap enak di layar kecil */
  }
}

/* =========================
   RELATED GRID (optional tapi enak)
========================= */
.wrap.am-single-wrap .am-related-grid{
  display: grid;
  gap: 14px;
}

/* desktop 4 kolom */
@media (min-width: 981px){
  .wrap.am-single-wrap .am-related-grid{
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* tablet 3 kolom */
@media (max-width: 980px){
  .wrap.am-single-wrap .am-related-grid{
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* mobile 2 kolom */
@media (max-width: 640px){
  .wrap.am-single-wrap .am-related-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .wrap.am-single-wrap .am-card .am-thumb{
    aspect-ratio: 16 / 9;
  }
  .wrap.am-single-wrap .am-thumb-img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
}

/* fallback kalau thumbnail kosong */
.wrap.am-single-wrap .am-thumb-fallback{
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
}
/* =========================
   MOBILE: 2 BANNER SEJAJAR (2 kolom)
========================= */
@media (max-width: 980px){
  /* sidebar turun ke bawah video (kalau belum) */
  .wrap.am-single-wrap .am-single-layout{
    display:block !important;
  }
  .wrap.am-single-wrap .am-single-sidebar{
    position: static !important;
    width: auto !important;
    margin-top: 14px !important;
  }

  /* 2 banner jadi 2 kolom */
  .wrap.am-single-wrap .am-ad-stack{
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  /* biar muat layar: lebar ikut kolom, bukan 300px */
  .wrap.am-single-wrap .am-ad-box{
    width: 100% !important;
    margin: 0 !important;
    border-radius: 12px;
    overflow: hidden;
  }

  /* paksa ratio 300x250 biar gak gepeng */
  .wrap.am-single-wrap .am-ad-box img{
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 300 / 250;
    object-fit: cover;
    display:block;
  }
}
/* =====================================
   HOVER DESCRIPTION (AM TUBE STYLE)
===================================== */

.am-desc-hover{
  position: relative;
  margin-top: 12px;
  border-radius: 14px;
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.03),
    rgba(255,255,255,0.01)
  );
  border: 1px solid rgba(255,255,255,0.08);
  cursor: pointer;
  overflow: hidden;
  transition: all .25s ease;
}

/* konten deskripsi */
.am-desc-hover .am-single-desc{
  color: rgba(244,245,255,0.88);
  line-height: 1.6;
  padding: 14px 16px 28px;
  max-height: 110px;               /* TAMPILAN AWAL */
  overflow: hidden;
  transition: max-height .35s ease;
}

/* efek fade bawah */
.am-desc-hover::after{
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 48px;
  background: linear-gradient(
    to bottom,
    rgba(10,12,20,0),
    rgba(10,12,20,0.95)
  );
  pointer-events: none;
  transition: opacity .3s ease;
}

/* LABEL */
.am-desc-hover::before{
  content: "Hover to read more";
  position: absolute;
  right: 12px;
  bottom: 6px;
  font-size: 11px;
  letter-spacing: .3px;
  color: rgba(255,255,255,0.5);
  background: rgba(0,0,0,0.4);
  padding: 3px 8px;
  border-radius: 20px;
}

/* HOVER / FOCUS */
.am-desc-hover:hover,
.am-desc-hover:focus-within{
  background: rgba(255,255,255,0.04);
  box-shadow: 0 12px 40px rgba(0,0,0,0.45);
  transform: translateY(-2px);
}

.am-desc-hover:hover .am-single-desc,
.am-desc-hover:focus-within .am-single-desc{
  max-height: 1000px; /* expand */
}

.am-desc-hover:hover::after,
.am-desc-hover:focus-within::after{
  opacity: 0;
}

/* MOBILE TWEAK */
@media (max-width: 640px){
  .am-desc-hover::before{
    content: "Tap to expand";
  }
}
/* =========================================
   FORCE RESPONSIVE PLAYER (MOBILE SAFE)
========================================= */

/* Wrapper ratio */
.am-single-player .am-player-ratio{
  position: relative !important;
  width: 100% !important;
  max-width: 100% !important;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255,255,255,0.03);
  aspect-ratio: 16 / 9;
}

/* fallback kalau browser gak dukung aspect-ratio */
@supports not (aspect-ratio: 16 / 9){
  .am-single-player .am-player-ratio{
    height: 0 !important;
    padding-top: 56.25% !important; /* 16:9 */
  }
}

/* Apa pun elemen di dalam player -> penuhi wrapper */
.am-single-player .am-player-ratio iframe,
.am-single-player .am-player-ratio video,
.am-single-player .am-player-ratio embed,
.am-single-player .am-player-ratio object,
.am-single-player .am-player-ratio .jwplayer,
.am-single-player .am-player-ratio .jw-wrapper,
.am-single-player .am-player-ratio .jw-media,
.am-single-player .am-player-ratio .jwplayer video,
.am-single-player .am-player-ratio .wp-block-embed,
.am-single-player .am-player-ratio .wp-block-embed__wrapper,
.am-single-player .am-player-ratio > div{
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  margin: 0 !important;
  border: 0 !important;
  display: block !important;
}

/* Jaga-jaga ada inline style lebar fixed */
.am-single-card iframe,
.am-single-card video{
  max-width: 100% !important;
}

/* Mobile: pastikan container gak bikin overflow */
@media (max-width: 980px){
  .am-single-main,
  .am-single-card,
  .am-single-player{
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: hidden;
  }
}
