/*
Theme Name: Pornhat Clone Tube
Theme URI: https://example.com/
Description: Simple tube-style WordPress theme inspired by Pornhat.
Author: ChatGPT
Version: 1.1
*/

/* GLOBAL */

*{box-sizing:border-box;}
body{
    background:#f4f4f4;
    margin:0;
    font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
    color:#222;
    font-size:14px;
}
a{color:#f70000;text-decoration:none;}
a:hover{text-decoration:underline;}

.container{
    width:96%;
    max-width:1180px;
    margin:0 auto;
}
/* Container lebar khusus halaman list video */
.container.home-wrap {
    width:98%;
    max-width:1500px;
}



/* TOPBAR (LOGO + MENU) */

.topbar{
    background:#111;
    color:#fff;
    padding:10px 0;
}
.topbar-inner{
    display:flex;
    align-items:center;
    justify-content:space-between;
}
.logo{
    font-size:26px;
    font-weight:800;
    letter-spacing:.5px;
}
.logo .brand-main{color:#f70000;}
.logo .brand-sub{color:#fff;}

.main-menu a{
    margin-left:18px;
    color:#ddd;
    font-size:13px;
    text-transform:uppercase;
    font-weight:600;
}
.main-menu a:hover{
    color:#fff;
}

/* SEARCH BAR */

.search-bar{
    background:#1a1a1a;
    border-top:1px solid #000;
    border-bottom:1px solid #000;
    padding:8px 0;
}
.search-inner{
    display:flex;
    align-items:center;
}
.search-inner form{
    display:flex;
    flex:1;
    gap:8px;
}
.search-inner input[type="text"]{
    flex:1;
    padding:7px 10px;
    border-radius:3px;
    border:1px solid #333;
    background:#050505;
    color:#eee;
    font-size:13px;
}
.search-inner button{
    padding:7px 14px;
    border:none;
    border-radius:3px;
    background:#f70000;
    color:#000;
    font-weight:700;
    cursor:pointer;
    text-transform:uppercase;
    font-size:12px;
}
.search-inner button:hover{
    filter:brightness(1.1);
}

/* HOME WRAP */

.home-wrap{
    padding:18px 0 30px;
}
.page-headline{
    display:flex;
    align-items:baseline;
    justify-content:space-between;
    margin:8px 0 4px;
}
.page-headline h1{
    font-size:20px;
    margin:0;
}
.sort-links{
    font-size:12px;
    color:#666;
}
.sort-links span{margin-right:6px;}
.sort-links a{
    margin-left:8px;
    color:#666;
}
.sort-links a.active,
.sort-links a:hover{
    color:#f70000;
}

/* VIDEO GRID LISTING */

.video-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(240px,1fr));
    gap:18px;
}

.video-card{
    background:#fff;
    border-radius:4px;
    overflow:hidden;
    text-decoration:none;
    color:#000;
    box-shadow:0 1px 2px rgba(0,0,0,.18);
    transition:transform .12s ease, box-shadow .12s ease;
    font-size:13px;
}
.video-card:hover{
    transform:translateY(-2px);
    box-shadow:0 3px 8px rgba(0,0,0,.25);
}

.thumb-wrap{
    position:relative;
    background:#000;
    overflow:hidden;
}
.thumb-wrap img{
    display:block;
    width:100%;
    height:100%;
    object-fit:cover;
    aspect-ratio: 16/9; /* bikin semua thumb proporsi sama */
}

.duration-badge{
    position:absolute;
    right:6px;
    bottom:6px;
    padding:2px 5px;
    border-radius:2px;
    background:rgba(0,0,0,.8);
    color:#fff;
    font-size:11px;
}
.hd-badge{
    position:absolute;
    left:6px;
    bottom:6px;
    padding:2px 5px;
    border-radius:2px;
    background:#222222;
    color:#fff;
    font-size:10px;
    font-weight:700;
}

.video-info{
    padding:7px 8px 9px;
}
.video-title{
    font-weight:600;
    margin-bottom:4px;
    line-height:1.2;
}
.video-stats{
    font-size:11px;
    color:#777;
}

/* SINGLE PAGE */

.single-wrap{
    padding:18px 0 35px;
}
.breadcrumb{
    font-size:12px;
    color:#777;
    margin-bottom:6px;
}
.breadcrumb a{color:#999;}
.breadcrumb a:hover{color:#f70000;}

.single-title{
    font-size:20px;
    margin:4px 0 10px;
}

.single-meta{
    font-size:12px;
    color:#777;
    margin-bottom:8px;
}

.player-shell{
    background:#000;
    padding:8px;
    border-radius:4px;
    margin-bottom:10px;
}
.player-wrap{
    position:relative;
    padding-top:56.25%;
}
.player-wrap iframe,
.player-wrap video{
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    border:0;
}

/* TAGS */

.tags-list{
    margin:6px 0 10px;
}
.tags-list a{
    display:inline-block;
    margin:2px 4px 2px 0;
    padding:3px 7px;
    border-radius:3px;
    background:#e5e5e5;
    color:#444;
    font-size:11px;
}
.tags-list a:hover{
    background:#f70000;
    color:#000;
}

/* RELATED SECTION */

.related-head{
    margin-top:18px;
    font-size:17px;
    font-weight:700;
}

/* FOOTER */

.footer{
    background:#111;
    color:#777;
    text-align:center;
    padding:18px 0;
    font-size:12px;
    margin-top:25px;
}
.footer a{color:#aaa;}
.footer a:hover{color:#fff;}

/* RESPONSIVE */

@media (max-width:768px){
    .topbar-inner{
        flex-direction:column;
        align-items:flex-start;
        gap:6px;
    }
    .main-menu{
        display:flex;
        flex-wrap:wrap;
        gap:10px;
        margin-top:4px;
    }
    .search-inner form{
        flex-direction:column;
    }
    .search-inner button{
        width:100%;
    }
    .video-grid{
        grid-template-columns:repeat(auto-fill,minmax(150px,1fr));
    }
}
/* ==== FIX & RAPihin FOOTER MOTHERLESS STYLE ==== */

/* background + warna utama footer */
.ml-footer{
    background:#141414;
    background:linear-gradient(180deg,#1c1c1c,#0f0f0f);
    color:#ccc;
    margin-top:40px;
    padding-top:25px;
    font-size:14px;
}

/* kolom-kolom atas */
.ml-footer-columns{
    display:flex;
    flex-wrap:wrap;
    gap:40px;
    padding:0 0 25px;
}

.ml-col{
    flex:1 1 200px;
}

/* judul kolom */
.ml-col h4{
    font-size:16px;
    color:#fff;
    margin:0 0 10px;
}

/* link di footer: 1 baris per item, warna abu */
.ml-footer .ml-col a{
    display:block;
    color:#aaa;
    font-size:14px;
    margin:3px 0;
    text-decoration:none;
}
.ml-footer .ml-col a:hover{
    color:#f70000;
}

/* tombol Join */
.ml-footer .ml-btn{
    display:block;
    text-align:center;
    padding:10px 0;
    margin:6px 0;
    background:#f70000;
    color:#fff !important;
    font-weight:700;
    border-radius:6px;
}
.ml-footer .ml-btn.secondary{
    background:#333;
    color:#fff !important;
}

/* garis pemisah */
.ml-divider{
    width:100%;
    height:1px;
    background:#2a2a2a;
    margin:12px 0;
}

/* tagline tengah */
.ml-tagline{
    text-align:center;
    font-size:16px;
    font-weight:700;
    color:#ccc;
    padding:8px 0;
}

/* copyright + switch + icon */
.ml-copyright{
    padding:18px 0 24px;
    text-align:center;
    font-size:13px;
    color:#888;
}

/* tombol Mobile / Desktop */
.ml-switch{
    margin:10px 0 6px;
}
.ml-switch-btn{
    background:#333;
    border:1px solid #555;
    padding:7px 16px;
    border-radius:6px;
    margin:0 4px;
    cursor:pointer;
    color:#ccc;
}
.ml-switch-btn.active{
    background:#f70000;
    border:none;
    color:#000;
}

/* icon legal */
.ml-icons img{
    width:70px;
    opacity:.7;
    margin:4px;
}

/* tombol back to top */
.ml-backtotop{
    position:fixed;
    right:20px;
    bottom:20px;
    background:#222;
    color:#f70000;
    width:38px;
    height:38px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:6px;
    cursor:pointer;
    font-size:20px;
    border:1px solid #444;
    z-index:999;
}
.ml-backtotop:hover{
    background:#f70000;
    color:#fff;
}

/* responsive */
@media (max-width:768px){
    .ml-footer-columns{
        flex-direction:column;
    }
}
/* ===== Tube Pagination 1–10 ===== */

.tube-pagination {
    margin: 25px 0 10px;
    text-align: center;
}

.tube-pagination .page-btn {
    display: inline-block;
    min-width: 34px;
    padding: 8px 12px;
    margin: 0 3px;
    background: #222;
    color: #fff;
    border-radius: 4px;
    font-size: 14px;
    text-decoration: none;
    transition: background .15s ease, color .15s ease, transform .1s ease;
}

.tube-pagination .page-btn:hover {
    background: #333;
    transform: translateY(-1px);
}

.tube-pagination .page-btn.current {
    background: #f70000;
    color: #000;
    font-weight: 700;
}

.tube-pagination .page-btn.prev,
.tube-pagination .page-btn.next {
    padding: 8px 16px;
}
/* ===========================
   TITLE MAX 2 LINES WITH ...
   =========================== */

.video-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;     /* Maximum 2 baris */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.25;
    height: 2.5em;             /* 2 baris */
    margin-bottom: 6px;
    font-weight: 600;
}
/* Container lebar khusus archive */
.container.archive-wrap {
    width:98%;
    max-width:1500px;
}
/* =========================
   STATIC PAGE LAYOUT
   ========================= */

.page-wrap{
    padding:24px 0 40px;
    max-width:1200px;
    margin:0 auto;
}


.page-header{
    margin-bottom:12px;
}

.page-title{
    font-size:22px;
    font-weight:700;
    margin:0 0 6px;
}

.page-content{
    background:#fff;
    border-radius:6px;
    padding:18px 20px;
    box-shadow:0 1px 3px rgba(0,0,0,.08);
    font-size:14px;
    line-height:1.6;
}

.page-content p{
    margin-bottom:12px;
}
/* =========================
        404 PAGE
   ========================= */

.page-404 {
    text-align: center;
    padding: 40px 0 60px;
}

.page-404-title {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 12px;
    color: #333;
}

.page-404-text {
    font-size: 15px;
    color: #666;
    margin-bottom: 25px;
}

.page-404-btn {
    display: inline-block;
    padding: 10px 18px;
    background: #f70000;
    color: #000;
    font-weight: 700;
    border-radius: 6px;
    text-decoration: none;
    margin-bottom: 30px;
}
.page-404-btn:hover {
    filter: brightness(1.1);
}

.page-404-search form {
    max-width: 350px;
    margin: 0 auto;
    display: flex;
    gap: 8px;
}

.page-404-search input {
    flex: 1;
    padding: 9px 12px;
    border-radius: 4px;
    border: 1px solid #ddd;
    font-size: 14px;
}

.page-404-search button {
    padding: 9px 14px;
    border: none;
    border-radius: 4px;
    background: #f70000;
    color: #000;
    font-weight: 700;
    cursor: pointer;
}
.page-404-search button:hover {
    filter: brightness(1.1);
}
/* ============================
      PREMIUM COMMENT STYLE
   ============================ */

.premium-comments {
    margin: 30px 0 40px;
}

/* Header comments */
.comments-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 12px;
}

.comments-main-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    padding-bottom: 4px;
    border-bottom: 2px solid #f70000;
    display: inline-block;
}

.comments-count {
    font-size: 13px;
    color: #777;
}

/* List */
.comment-list {
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
}

.comment-list > li.comment {
    margin-bottom: 12px;
    background: #222222;
    border-radius: 6px;
    padding: 10px 12px;
    box-shadow: 0 1px 2px rgba(0,0,0,.15);
}

/* nested reply */
.comment-list .children {
    list-style: none;
    margin: 10px 0 0 20px;
    padding-left: 10px;
    border-left: 2px solid #eee;
}

/* Avatar + meta */
.comment-body {
    font-size: 14px;
    color: #fff;
}

.comment-author {
    display: flex;
    align-items: center;
    margin-bottom: 4px;
}

.comment-author img {
    border-radius: 50%;
    margin-right: 8px;
}

.comment-author .fn {
    font-weight: 600;
    margin-right: 4px;
}

.comment-author .says {
    display: none;
}

.comment-meta {
    font-size: 11px;
    color: #888;
    margin-bottom: 6px;
}

/* Text */
.comment-content p {
    margin: 0 0 6px;
}

/* Reply link */
.reply {
    margin-top: 4px;
}

.reply a {
    font-size: 12px;
    color: #f70000;
}
.reply a:hover {
    text-decoration: underline;
}

/* Pagination komentar */
.comment-pagination {
    text-align: center;
    margin: 15px 0 5px;
}

.comment-pagination a,
.comment-pagination span {
    display: inline-block;
    padding: 5px 10px;
    margin: 0 2px;
    border-radius: 4px;
    background: #222;
    color: #fff;
    font-size: 12px;
}

.comment-pagination .current {
    background: #f70000;
    color: #000;
}

/* Form */
.comment-form-wrap {
    margin-top: 20px;
    background: #ffffff;
    padding: 15px 18px 18px;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,.12);
}

.comment-form-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 10px;
}

.comment-form-author,
.comment-form-email,
.comment-form-comment {
    margin-bottom: 10px;
}

.comment-form-wrap input[type="text"],
.comment-form-wrap input[type="email"],
.comment-form-wrap textarea {
    width: 100%;
    padding: 9px 11px;
    border-radius: 4px;
    border: 1px solid #ddd;
    font-size: 14px;
    font-family: inherit;
}

.comment-form-wrap textarea {
    min-height: 110px;
    resize: vertical;
}

.submit-comment-btn {
    background: #f70000 !important;
    color: #000 !important;
    border: none !important;
    border-radius: 4px !important;
    padding: 9px 16px !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    cursor: pointer;
}

.submit-comment-btn:hover {
    filter: brightness(1.08);
}

/* Hide extra WP text if needed */
.comment-notes,
.logged-in-as {
    font-size: 12px;
    color: #777;
}

/* Optional: no comments text */
.no-comments-yet {
    font-size: 13px;
    color: #777;
    margin-bottom: 10px;
}
/* ===========================
   FOOTER 2x2 GRID (MOBILE)
   =========================== */

@media (max-width: 600px) {

    .ml-footer-columns {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px 25px !important; /* row-gap | column-gap */
    }

    .ml-col {
        width: 100% !important;
    }

    .ml-col h4 {
        font-size: 15px;
        margin-bottom: 8px;
        font-weight: bold;
    }

    .ml-col a {
        display: block;
        font-size: 14px;
        margin: 2px 0;
        line-height: 1.35;
    }

    /* Back to top button adjust */
    .ml-backtotop {
        right: 12px !important;
        bottom: 12px !important;
        width: 34px !important;
        height: 34px !important;
    }
}
.main-menu-list {
    list-style:none;
    margin:0;
    padding:0;
    display:flex;
    gap:18px;
}

.main-menu-list li a {
    color:#ddd;
    font-size:14px;
    text-transform:uppercase;
    font-weight:600;
    text-decoration:none;
}

.main-menu-list li a:hover {
    color:#fff;
}
/* =========================
   MAIN TOP MENU + SUBMENU
   ========================= */

.main-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 28px;
    align-items: center;
}

/* item utama bar */
.main-menu-list > li {
    position: relative;
}

.main-menu-list > li > a {
    color: #ddd;
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 600;
    text-decoration: none;
}

.main-menu-list > li > a:hover {
    color: #f70000;
}

/* -------------------------
   SUBMENU (CATEGORIES DROPDOWN)
   ------------------------- */

/* DROPDOWN CATEGORIES SIMPLE (1 KOLOM) */

.main-menu-list > li {
    position: relative;
}

/* kotak dropdown */
.main-menu-list .sub-menu {
    position: absolute;
    top: 100%;          /* nempel tepat di bawah menu */
    left: 0;
    margin-top: 0;      /* JANGAN ada gap, biar gak hilang pas mouse turun */
    padding: 10px 18px 12px;
    min-width: 230px;
    background: #333;
    border-top: 3px solid #ffb000;   /* garis kuning di atas, kayak contoh */
    list-style: none;
    display: none;
    z-index: 999;
}

/* muncul saat hover */
.main-menu-list > li:hover > .sub-menu {
    display: block;
}

/* item di dalam dropdown */
.main-menu-list .sub-menu li {
    margin: 0 0 4px;
}

/* link kategori */
.main-menu-list .sub-menu a {
    display: block;
    color: #fff;
    font-size: 14px;    /* sedikit besar biar enak klik */
    line-height: 1.5;
    text-decoration: none;
}
.main-menu-list .sub-menu a:hover {
    color: #ffb000;
}
/* ============================
   LINK ICON + WARNA HITAM
   tetapi TIDAK untuk footer
   =========================== */

/* link di dalam konten halaman */
.page-content a,
.single-wrap a,
.pornlist-box a,
.pornlist a,
.related-videos a {
    color: #000 !important;          /* teks hitam */
    text-decoration: none;
}
/* ===== layout dasar header ===== */
.topbar {
    background: #111;
    padding: 8px 0;
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/* Logo image dari custom-logo */
.logo-wrap img.custom-logo {
    max-height: 40px;
    height: auto;
    width: auto;
}

/* Logo teks fallback */
.logo {
    font-size: 28px;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
}
.brand-main { color:#f70000; }
.brand-sub { color:#fff; }

.main-menu-list {
    display: flex;
    gap: 22px;
    align-items: center;
}

/* Search kecil di kanan */
.header-search {
    width: 230px;
    flex-shrink: 0;
}
.header-search form {
    display: flex;
    gap: 6px;
}
.header-search input[type="text"] {
    width: 100%;
    height: 32px;
    padding: 4px 8px;
    background: #000;
    border: 1px solid #333;
    color: #fff;
    font-size: 13px;
}
.header-search button {
    height: 32px;
    padding: 0 12px;
    background: #f70000;
    border: 0;
    color: #000;
    font-weight: bold;
    font-size: 13px;
    cursor: pointer;
}

/* ===== VARIASI POSISI LOGO ===== */

/* Posisi default: kiri sejajar menu + search */
.logo-pos-left .topbar-inner {
    flex-direction: row;
}

/* Posisi seperti EnjoyVideo: logo di tengah atas, menu + search di bawah */
.logo-pos-center .topbar-inner {
    flex-direction: column;
    align-items: center;
}

.logo-pos-center .logo-wrap {
    margin-bottom: 10px;
}

/* baris kedua: menu + search */
.logo-pos-center .main-menu {
    order: 2;
}

.logo-pos-center .header-search {
    order: 3;
    margin-top: 8px;
}

/* optional: rapikan menu saat logo center */
.logo-pos-center .main-menu-list {
    justify-content: center;
}
/* ====== HEADER DESKTOP ====== */

.topbar {
    background:#111;
    padding:8px 0;
    position:relative;
    z-index:50;
}

.topbar-inner {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
}

/* logo text */
.logo {
    font-size:28px;
    font-weight:900;
    display:flex;
    align-items:center;
    text-decoration:none;
}
.brand-main { color:#f70000; }
.brand-sub { color:#ffffff; }

/* nav + search wrapper */
.nav-wrapper {
    display:flex;
    align-items:center;
    gap:25px;
}

/* menu */
.main-menu-list {
    display:flex;
    gap:20px;
    align-items:center;
}

/* search desktop */
.header-search {
    width:230px;
    flex-shrink:0;
}
.header-search form {
    display:flex;
    gap:6px;
}
.header-search input[type="text"] {
    width:100%;
    height:32px;
    padding:4px 8px;
    background:#000;
    border:1px solid #333;
    color:#fff;
    font-size:13px;
}
.header-search button {
    height:32px;
    padding:0 12px;
    background:#f70000;
    border:0;
    color:#000;
    font-weight:bold;
    font-size:13px;
    cursor:pointer;
}

/* tombol mobile di desktop disembunyikan */
.topbar-mobile-actions {
    display:none;
}

/* kalau masih ada .search-bar lama, sembunyikan */
.search-bar,
.search-inner {
    display:none !important;
}

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

@media (max-width: 768px) {

  .topbar-inner {
      justify-content:space-between;
  }

  /* menu & search tidak tampil di bar atas */
  .nav-wrapper {
      display:none;
      position:absolute;
      top:100%;
      left:0;
      right:0;
      background:#111;
      flex-direction:column;
      padding:10px 15px 15px;
      border-top:1px solid #222;
  }

  /* ketika open */
  .topbar.nav-open .nav-wrapper {
      display:flex;
  }

  .main-menu-list {
      flex-direction:column;
      align-items:flex-start;
      gap:10px;
  }

  .header-search {
      width:100%;
      margin-top:10px;
  }

  /* tombol mobile muncul */
  .topbar-mobile-actions {
      display:flex;
      align-items:center;
      gap:12px;
      margin-left:auto;
  }

  /* icon search (lingkaran + gagang) */
  .mobile-search-btn {
      width:26px;
      height:26px;
      border-radius:50%;
      border:2px solid #fff;
      background:transparent;
      position:relative;
      padding:0;
      cursor:pointer;
  }
  .mobile-search-btn::after {
      content:"";
      position:absolute;
      width:10px;
      height:2px;
      background:#fff;
      right:-4px;
      bottom:3px;
      transform:rotate(45deg);
      border-radius:2px;
  }

  /* hamburger 3 garis */
  .mobile-menu-toggle {
      width:28px;
      height:22px;
      border:none;
      background:transparent;
      position:relative;
      cursor:pointer;
      padding:0;
  }
  .mobile-menu-toggle span,
  .mobile-menu-toggle span::before,
  .mobile-menu-toggle span::after {
      position:absolute;
      left:0;
      right:0;
      height:3px;
      background:#fff;
      border-radius:2px;
      content:"";
      transition:transform .2s ease, top .2s ease, opacity .2s ease;
  }
  .mobile-menu-toggle span {
      top:50%;
      transform:translateY(-50%);
  }
  .mobile-menu-toggle span::before {
      top:-7px;
  }
  .mobile-menu-toggle span::after {
      top:7px;
  }

  /* animasi jadi X ketika open */
  .topbar.nav-open .mobile-menu-toggle span {
      background:transparent;
  }
  .topbar.nav-open .mobile-menu-toggle span::before {
      top:0;
      transform:rotate(45deg);
  }
  .topbar.nav-open .mobile-menu-toggle span::after {
      top:0;
      transform:rotate(-45deg);
  }
}
/* === HEADER DESKTOP === */
.topbar {
    background:#111;
    padding:8px 0;
    position:relative;
    z-index:50;
}

.topbar-inner {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
}

/* Logo – kalau kamu sudah punya style sendiri, ini boleh di-skip */
.logo {
    display:flex;
    align-items:center;
    text-decoration:none;
}
.brand-main { color:#f70000; font-weight:900; font-size:24px; }
.brand-sub { color:#ffffff; font-weight:900; font-size:24px; }

/* wrapper menu + search */
.nav-wrapper {
    display:flex;
    align-items:center;
    gap:25px;
}

/* menu */
.main-menu-list {
    display:flex;
    gap:20px;
    align-items:center;
}

/* search desktop */
.header-search {
    width:230px;
    flex-shrink:0;
}
.header-search form {
    display:flex;
    gap:6px;
}
.header-search input[type="text"] {
    width:100%;
    height:32px;
    padding:4px 8px;
    background:#000;
    border:1px solid #333;
    color:#fff;
    font-size:13px;
}
.header-search button {
    height:32px;
    padding:0 12px;
    background:#f70000;
    border:0;
    color:#000;
    font-weight:bold;
    font-size:13px;
    cursor:pointer;
}

/* tombol mobile disembunyikan di desktop */
.topbar-mobile-actions {
    display:none;
}

/* kalau masih ada .search-bar lama, matikan */
.search-bar,
.search-inner {
    display:none !important;
}

/* === MOBILE (<=768px) === */
@media (max-width:768px) {

  .topbar-inner {
      justify-content:space-between;
  }

  /* nav + search disembunyikan, nanti muncul ketika di-toggle */
  .nav-wrapper {
      display:none;
      position:absolute;
      top:100%;
      left:0;
      right:0;
      background:#111;
      flex-direction:column;
      padding:10px 15px 15px;
      border-top:1px solid #222;
  }

  .topbar.nav-open .nav-wrapper {
      display:flex;
  }

  .main-menu-list {
      flex-direction:column;
      align-items:flex-start;
      gap:10px;
  }

  .header-search {
      width:100%;
      margin-top:10px;
  }

  /* tombol mobile muncul */
  .topbar-mobile-actions {
      display:flex;
      align-items:center;
      gap:12px;
      margin-left:auto;
  }

  /* icon search (lingkaran + gagang) */
  .mobile-search-btn {
      width:26px;
      height:26px;
      border-radius:50%;
      border:2px solid #fff;
      background:transparent;
      position:relative;
      padding:0;
      cursor:pointer;
  }
  .mobile-search-btn::after {
      content:"";
      position:absolute;
      width:10px;
      height:2px;
      background:#fff;
      right:-4px;
      bottom:3px;
      transform:rotate(45deg);
      border-radius:2px;
  }

  /* hamburger 3 garis */
  .mobile-menu-toggle {
      width:28px;
      height:22px;
      border:none;
      background:transparent;
      position:relative;
      cursor:pointer;
      padding:0;
  }
  .mobile-menu-toggle span,
  .mobile-menu-toggle span::before,
  .mobile-menu-toggle span::after {
      position:absolute;
      left:0;
      right:0;
      height:3px;
      background:#fff;
      border-radius:2px;
      content:"";
      transition:transform .2s ease, top .2s ease, opacity .2s ease;
  }
  .mobile-menu-toggle span {
      top:50%;
      transform:translateY(-50%);
  }
  .mobile-menu-toggle span::before {
      top:-7px;
  }
  .mobile-menu-toggle span::after {
      top:7px;
  }

  /* animasi jadi X */
  .topbar.nav-open .mobile-menu-toggle span {
      background:transparent;
  }
  .topbar.nav-open .mobile-menu-toggle span::before {
      top:0;
      transform:rotate(45deg);
  }
  .topbar.nav-open .mobile-menu-toggle span::after {
      top:0;
      transform:rotate(-45deg);
  }
}

