/* Chỉ phần CMS không có trên haynhat: logo chữ, player, thông báo */
#logo, #logo .logoWrapper {
  overflow: visible !important;
  max-width: none;
  width: auto;
}
#logo a.vb-brand, #logo .logoWrapper a {
  color: #ffffff;
  font: 800 28px/1.2 Arial, Helvetica, sans-serif;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-block;
  white-space: nowrap;
  overflow: visible;
  padding: 0 6px 2px 0;
  letter-spacing: 0;
}
#logo a.vb-brand .logo-head { color: #ffffff; }
#logo a.vb-brand .logo-tld { color: #ea4335; display: inline; }

.vb-player { position: relative; width: 100%; aspect-ratio: 16/9; background: #000; }
.vb-player iframe, .vb-player video,
.video-player iframe, .video-player video {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}
.video-player { position: relative; width: 100%; background: #000; }
.vb-tvc { position: absolute; inset: 0; background: #000; }
.vb-tvc-video { width: 100%; height: 100%; object-fit: contain; }
.vb-tvc-label { position: absolute; top: 10px; left: 10px; z-index: 4; font-size: 11px; color: #fff; background: rgba(225,29,72,.92); padding: 4px 10px; }
.vb-tvc-bar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; display: flex; justify-content: flex-end; padding: 10px; }
.vb-tvc-skip { border: 0; padding: 7px 14px; cursor: pointer; }
.vb-hidden, .vb-filter-bar, .vb-back-link, .vb-page-sub, .vb-shelf, .vb-top-shelves { display: none !important; }
.site-notice {
  clear: both;
  background: #2b2b2b; color: #dadada; font: 400 14px/1.5 Arial, Helvetica, sans-serif;
  padding: 5px; margin: 8px 5px; border-radius: 4px;
}
.site-notice .hl-num, .site-notice .hl-dl { color: #e8a317; text-decoration: none; }
.site-notice .hl-brand { color: #ea4335; }
@media (min-width: 768px) { .site-notice { display: none; } }

/* Lưới đều hàng — hết lỗ trống do float */
#video-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
}
.video-item {
  float: none !important;
  width: auto !important;
  margin-bottom: 0 !important;
}
.video-image,
.video-name { float: none !important; }
.video-name { height: 42px; max-height: 42px; overflow: hidden; }
@media only screen and (max-width: 767px) {
  #video-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media only screen and (max-width: 600px) {
  #video-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media only screen and (max-width: 480px) {
  #video-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Tiêu đề trong lưới phải full hàng */
#video-list > h2,
#video-list > .breadcrumb,
#video-list > .page-title {
  grid-column: 1 / -1;
  float: none;
  width: auto;
}

/* Chỉ bỏ viền TRÊN wrapper, giữ trái/phải/dưới */
#wrapper {
  border-top: 0 !important;
}
header { height: auto !important; }
@media only screen and (max-width: 767px) {
  #logo { margin-top: 0; padding-top: 8px; }
}

/* Mọi ô list cùng chiều cao */
#video-list {
  align-items: stretch;
}
.video-item {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.video-item > a {
  display: block;
  position: relative;
}
.video-item .video-image {
  width: calc(100% - 6px);
  margin-left: 3px;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
  display: block;
  border-radius: 4px;
}
.video-item .video-name {
  height: 40px;
  min-height: 40px;
  max-height: 40px;
  overflow: hidden;
  line-height: 20px;
  font-size: 14px;
  text-align: center;
}
.video-item .video-name a {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Heading list giống haynhat — chỉ mục lục viết hoa, tiêu đề bài không hoa */
h1.breadcrumb,
h2.breadcrumb,
#page-title,
#page-title.breadcrumb,
#video-list > h2,
#video-list > .breadcrumb,
footer .breadcrumb,
.footer-wrap .breadcrumb {
  font-size: 16px !important;
  font-weight: 500 !important;
  text-transform: uppercase !important;
  margin: 5px !important;
  padding: 5px 1px !important;
  border-bottom: 2px solid #2b2b2b !important;
  line-height: 1.3;
}
/* Trang xem: tiêu đề bài giữ nguyên chữ (haynhat không uppercase) */
h2#page-title.video-post-title,
h2.breadcrumb.video-post-title,
#page-title.video-post-title {
  text-transform: none !important;
  font-weight: 500 !important;
  text-align: left;
  line-height: 1.35;
}
#video-list {
  gap: 0 !important;
  margin: 2px;
}
.video-item {
  margin-top: 8px;
  margin-bottom: 8px;
}
html, body { margin: 0; padding: 0; }
body.is-home .vb-container,
body.is-home #container {
  padding-top: 0 !important;
  margin-top: 0 !important;
}
body.is-home .vb-ad-header {
  margin-bottom: 0 !important;
  padding-bottom: 2px !important;
}
body.is-home #container > h2.breadcrumb {
  margin-top: 4px !important;
}
#wrapper {
  border-top: 0 !important;
  margin-top: 0 !important;
  padding-top: 0 !important;
}
header {
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}
#logo, #logo .logoWrapper {
  margin-top: 0 !important;
  padding-top: 6px !important;
  border-top: 0 !important;
}

/* Tên phim (trang xem) KHÔNG viết hoa */
#page-title.video-post-title,
h2#page-title.video-post-title {
  text-transform: none !important;
  font-weight: 400 !important;
  font-size: 16px !important;
  margin: 5px !important;
  padding: 5px 1px !important;
  border-bottom: 2px solid #2b2b2b;
}
/* List / phim-sex-hay: PHIM SEX HAY viết hoa như demo */
h1#page-title,
h1.page-title.breadcrumb,
h1.hay-heading {
  text-transform: uppercase !important;
  font-weight: 500 !important;
  font-size: 16px !important;
  color: #dadada !important;
  margin: 5px !important;
  padding: 5px 1px !important;
  border-bottom: 2px solid #2b2b2b !important;
}

/* Heading mục (Phim liên quan, Top tìm kiếm, list) mới viết hoa */
#video-list > h2.breadcrumb,
footer h2.breadcrumb,
h2.breadcrumb:not(#page-title) {
  text-transform: uppercase !important;
  margin: 5px 5px 2px !important;
  padding: 5px 1px 4px !important;
}
.search-history {
  text-transform: none !important;
}
#video-list > h2.breadcrumb {
  margin-bottom: 0 !important;
  padding-bottom: 4px !important;
}

/* Top tìm kiếm: chữ như người dùng gõ, sát gạch ngang */
.search-history {
  text-transform: none !important;
  margin: 0 5px 8px !important;
}
.search-history a {
  text-transform: none !important;
}
footer h2.breadcrumb,
#footer h2.breadcrumb {
  margin: 5px 5px 0 !important;
  padding: 5px 1px 4px !important;
}

#wrapper {
  border-top: 0 !important;
  border-left: 1px solid #2b2b2b !important;
  border-right: 1px solid #2b2b2b !important;
  border-bottom: 1px solid #2b2b2b !important;
}
#video-list > .clear,
#video-list > .vb-empty {
  grid-column: 1 / -1;
  height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
}
#btn-load-more-wrap {
  grid-column: 1 / -1;
  width: 100%;
}
/* Pagination search / list — cùng style pagenavi */
.vb-pagination { text-align: center; margin: 12px 0 20px; }
.vb-pagination .vb-page-btn,
.vb-pagination a,
.vb-pagination span {
  display: inline-block;
  margin: 5px 5px 0 0;
  border: 1px solid #dadada;
  padding: 5px 15px;
  border-radius: 4px;
  color: #dadada;
  text-decoration: none;
}
.vb-pagination .vb-page-current,
.vb-pagination .vb-page-btn.vb-page-current {
  background: #ea4335;
  color: #fff;
  border-color: #ea4335;
}
.pagenavi {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 4px;
  text-align: center;
  clear: both;
  margin: 20px 0 16px;
  padding-top: 8px;
  line-height: 1;
}
#video-list {
  margin-bottom: 4px;
}
.pagenavi a {
  display: inline-block;
  margin: 0 !important;
  padding: 4px 10px !important;
  border: 1px solid #dadada;
  border-radius: 4px;
  box-sizing: border-box;
  line-height: 1.3;
}
.pagenavi span,
.pagenavi .pagenavi-dots {
  display: inline-block;
  margin: 0 !important;
  padding: 4px 2px !important;
  border: 0 !important;
  background: none !important;
  line-height: 1.3;
}

#primary-nav .menu li a{
  align-items:center;
  gap:3px;
}
#primary-nav .menu li a span.icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:14px;
  height:14px;
  margin:0;
  flex:0 0 14px;
  line-height:0;
}
#primary-nav .menu li a span.icon img,
#primary-nav .menu li a .vb-menu-ico,
#primary-nav .menu li a svg{
  width:14px!important;
  height:14px!important;
  max-width:14px!important;
  max-height:14px!important;
  display:block;
  margin:0!important;
  padding:0!important;
  vertical-align:middle;
  background:transparent!important;
}
#primary-nav img.vb-menu-ico-mono{
  filter:brightness(0) invert(1);
}


/* section titles = haynhat */
h2.breadcrumb:not(#page-title),
#video-list > h2.breadcrumb,
#container > h2.breadcrumb {
  text-transform: uppercase !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  color: #dadada !important;
  border-bottom: 2px solid #2b2b2b !important;
  margin: 8px 5px 4px !important;
  padding: 6px 1px 5px !important;
  letter-spacing: .02em;
}

/* Box mô tả giống vlxx.phd / haynhat */
#container > h2#page-title.breadcrumb {
  margin: 10px 5px 5px !important;
  padding: 5px 1px !important;
}
.category-info {
  background: #2b2b2b !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
  padding: 2px 8px !important;
  margin: 0 5px 2px !important;
  border-radius: 4px !important;
  color: #dadada !important;
  text-transform: none !important;
}
.category-info a {
  color: var(--vb-accent, #ea4335) !important;
  text-decoration: none;
}
.category-info a:hover { text-decoration: underline; }
.category-info b,
.category-info strong {
  font-weight: 700;
  color: #fff;
}

/* menu-flicker-icon: giữ chỗ icon 14px, menu không nhảy hàng khi svg load */
#primary-nav .menu .icon,
#primary-nav .menu .icon svg,
#primary-nav .menu .icon img{
  width:14px;height:14px;flex:0 0 14px;display:inline-block;vertical-align:middle;object-fit:contain;
}
#primary-nav .menu > li{display:block;line-height:0}
#primary-nav a{transition:none}


/* Top tìm kiếm sát Liên kết */
footer .vb-theme-cloud,
#footer .vb-theme-cloud {
  margin: 0 !important;
  padding: 0 !important;
}
footer .vb-theme-cloud .search-history,
#footer .search-history {
  margin: 0 5px 2px !important;
  padding-bottom: 0 !important;
}
footer .vb-ad-footer,
#footer .vb-ad-footer {
  margin-top: 6px !important;
  padding-top: 0 !important;
}
footer .vb-ad-footer h2.breadcrumb,
#footer .vb-ad-footer h2.breadcrumb {
  margin-top: 4px !important;
}

.cat-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:8px 0 16px}
@media(min-width:640px){.cat-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(min-width:1024px){.cat-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}}
.cat-item{display:flex!important;align-items:center;justify-content:center;padding:10px 12px;background:rgba(255,255,255,.06);border-radius:4px;font-weight:600;text-align:center;min-height:44px}
.cat-item:hover{background:#97332b;color:#fff}


/* =====================================================================
 * LENLUTSEX — lớp header theo demo lenlutsex.net (vốn là vlxx/video3x
 * sửa lại header). Giá trị chép từ CSS thật của demo (style.css
 * ?v=20261030lg6, khối "Mobile nav" + "logo-text" cuối file):
 *  - Logo chữ 2 tông ở mọi bề rộng: đầu trắng 800, đuôi #ff3b42,
 *    font "Segoe UI"/Roboto, 28px desktop / 21px mobile.
 *  - Chỉ ≤767px: header fixed 56px (burger trái, logo giữa, nút tìm
 *    kiếm phải), menu thành drawer trái lưới 2 cột, ô tìm kiếm ẩn —
 *    bấm nút kính lúp mới trượt xuống dưới header, cuộn trang thì
 *    header mờ (backdrop blur).
 * Markup source18 khác demo ở 2 điểm nên CSS thích ứng tương ứng:
 * thẻ logo là a.vb-brand (cơ chế logo chung) thay cho a.logo-text, và
 * icon menu là span.icon chứa SVG (không có class icon-* như WP) nên
 * quy tắc "chỉ giữ icon Trang chủ" áp theo li đầu tiên của menu.
 * ===================================================================== */

/* Nút mobile: chỉ hiện ≤767px */
.mnav-btn, .mnav-head, .mnav-backdrop { display: none; }

/* Logo chữ 2 tông kiểu demo */
#logo { opacity: 1 !important; }
#logo a.vb-brand {
  display: inline-flex; align-items: center; height: 40px; line-height: 1;
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 28px; text-decoration: none; white-space: nowrap;
}
#logo a.vb-brand .logo-head, #logo a.vb-brand .logo-tld { font-size: 28px; letter-spacing: .5px; font-weight: 800; }
#logo a.vb-brand .logo-head { color: #fff; }
#logo a.vb-brand .logo-tld { color: #ff3b42; }
@media only screen and (min-width: 768px) { #logo { margin-left: 9px; } }
@media only screen and (max-width: 767px) {
  #logo a.vb-brand { height: 32px; max-width: 100%; vertical-align: middle; font-size: 21px; }
  #logo a.vb-brand .logo-head, #logo a.vb-brand .logo-tld { font-size: 21px; overflow: hidden; text-overflow: ellipsis; }
}

@media only screen and (max-width: 767px) {
  /* specificity cao hơn khối reset html,body{padding:0} nội tuyến của layout */
  body.vb-skin-lenlutsex { padding-top: 56px; }
  #header > header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 10000; height: 56px !important;
    display: flex; align-items: center; justify-content: space-between;
    background: #1b1b1b; border-bottom: 1px solid #2b2b2b;
    transition: background .25s, border-color .25s;
  }
  #logo { flex: 1; min-width: 0; margin: 0; padding: 0; text-align: center; opacity: 1; }
  #logo a { display: inline-block; line-height: 0; }
  #logo img { height: 30px; width: auto; max-width: 100%; }
  .mnav-btn {
    display: inline-flex; align-items: center; justify-content: center;
    flex: 0 0 40px; width: 40px; height: 40px; margin: 0 8px; padding: 0;
    background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08);
    border-radius: 10px; color: #fff; cursor: pointer; -webkit-tap-highlight-color: transparent;
  }
  .mnav-btn:active { background: rgba(255,255,255,.12); }
  .mnav-btn svg { width: 20px; height: 20px; fill: currentColor; }
  .mnav-burger { flex-direction: column; gap: 4px; }
  .mnav-burger span { display: block; width: 18px; height: 2px; border-radius: 2px; background: #fff; }
  body.msearch-on .mnav-search { background: rgba(234,67,53,.25); border-color: rgba(234,67,53,.5); }

  /* drawer */
  #primary-nav {
    display: flex; flex-direction: column;
    position: fixed; top: 0; left: 0; bottom: 0; z-index: 2147483001;
    width: 280px; max-width: 82vw; margin: 0; padding: 0;
    overflow-y: auto; -webkit-overflow-scrolling: touch;
    background: #111; border: 0 !important; border-right: 1px solid #2b2b2b !important;
    box-shadow: 8px 0 30px rgba(0,0,0,.6);
    transform: translateX(-105%); transition: transform .25s cubic-bezier(.4,0,.2,1);
    visibility: hidden;
  }
  body.mnav-on #primary-nav { transform: none; visibility: visible; }
  .mnav-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 12px 12px 18px; border-bottom: 1px solid #2b2b2b;
    font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: rgba(255,255,255,.55);
  }
  .mnav-head .mnav-btn { margin: 0; flex-basis: 36px; width: 36px; height: 36px; }
  #primary-nav .menu { overflow: visible; padding: 6px 0 20px; }
  #primary-nav .menu li { display: block; }
  #primary-nav .menu li a {
    float: none; display: flex; align-items: center; gap: 6px;
    margin: 0; padding: 13px 18px; border-radius: 0;
    background: transparent; font-size: 15px; line-height: 18px; color: rgba(255,255,255,.85);
    border-left: 3px solid transparent;
  }
  #primary-nav .menu li a[style] { border-left-color: #ea4335; color: #fff !important; background: rgba(234,67,53,.18) !important; }
  #primary-nav .menu li:hover a { background: rgba(255,255,255,.05); }

  .mnav-backdrop {
    display: block; position: fixed; inset: 0; z-index: 2147483000;
    background: rgba(0,0,0,.6); opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
  }
  body.mnav-on .mnav-backdrop { opacity: 1; visibility: visible; }
  body.mnav-on { overflow: hidden; }

  /* ô tìm kiếm: ẩn, bấm nút kính lúp mới hiện, dính ngay dưới header */
  #search-box { display: none; }
  body.msearch-on #search-box {
    display: block; position: fixed; top: 56px; left: 0; right: 0; z-index: 9999;
    margin: 0; padding: 8px 10px; border-top: 0; background: #1b1b1b;
    box-shadow: 0 8px 20px rgba(0,0,0,.6);
  }

  /* cuộn xuống thì header mờ, nhìn xuyên nội dung */
  body.mscrolled #header > header, body.mscrolled.msearch-on #search-box {
    background: rgba(20,20,20,.85);
    -webkit-backdrop-filter: blur(12px) saturate(140%); backdrop-filter: blur(12px) saturate(140%);
    border-bottom-color: rgba(255,255,255,.06);
  }
}
@media only screen and (max-width: 767px) {
  /* menu drawer dạng lưới 2 cột kiểu nút bấm */
  #primary-nav { width: 300px; max-width: 86vw; }
  #primary-nav .menu {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    padding: 12px 12px 24px; margin: 0;
  }
  #primary-nav .menu li { display: block; min-width: 0; margin: 0; border: 0; }
  #primary-nav .menu li a {
    display: flex; align-items: center; justify-content: flex-start; gap: 6px; position: relative;
    height: 46px; box-sizing: border-box; padding: 0 8px 0 14px; margin: 0;
    border: 1px solid rgba(255,255,255,.09); border-left-width: 1px; border-radius: 10px;
    background: rgba(255,255,255,.06); color: rgba(255,255,255,.88);
    font-size: 13px; line-height: 15px; font-weight: 500; text-align: left;
    white-space: normal; overflow: hidden; word-break: keep-all;
    -webkit-tap-highlight-color: transparent; transition: background .15s, border-color .15s;
  }
  #primary-nav .menu li:hover a, #primary-nav .menu li a:active { background: rgba(255,255,255,.12); color: #fff; }
  /* mobile chỉ giữ icon Trang chủ (mục đầu tiên), bỏ hết icon khác — thích ứng markup source18 */
  #primary-nav .menu li a .icon { display: none; }
  #primary-nav .menu > li:first-child a .icon { display: inline-flex; flex: 0 0 16px; width: 16px; height: 16px; align-items: center; justify-content: center; margin: 0; }
  #primary-nav .menu li a .icon svg, #primary-nav .menu li a .icon img { width: 16px; height: 16px; }
  #primary-nav .menu li a[style] {
    border-color: rgba(234,67,53,.7) !important; background: rgba(234,67,53,.22) !important; color: #fff !important;
  }
}
