/*
Theme Name: 47. Noir Classic
Description: Classic dark theme with container-sidebar layout and dynamic accent colors.
Version: 1.0.0
Author: Developer
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: noir_classic
*/

/* Import modern fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@300;400;500;600;700&display=swap');

/* CSS Variables for Modern Theme */
:root {
  --theme-color-rgb: 255, 87, 34;
  /* Default orange, will be overridden by PHP */
  --theme-color: rgb(var(--theme-color-rgb));
  --theme-color-light: rgba(var(--theme-color-rgb), 0.8);
  --theme-color-dark: rgba(var(--theme-color-rgb), 1);

  /* Modern Color Palette */
  --bg-primary: #0a0a0a;
  --bg-secondary: #1a1a1a;
  --bg-tertiary: #2a2a2a;
  --bg-card: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
  --bg-glass: rgba(255, 255, 255, 0.1);

  --text-primary: #e0e0e0;
  --text-secondary: #d0d0d0;
  --text-muted: #888;

  --border-color: rgba(255, 255, 255, 0.1);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.4);

  /* Animation Variables - Disabled for performance */
  --transition-fast: 0s;
  --transition-normal: 0s;
  --transition-slow: 0s;
}

@font-face {
  font-family: fontello;
  src: url(fonts/fontelloe878.eot);
  src: url(fonts/fontelloe878.eot#iefix) format("embedded-opentype"),
    url(fonts/fontelloe878.woff) format("woff"),
    url(fonts/fontelloe878.ttf) format("truetype"),
    url(fonts/fontelloe878.svg#fontello) format("svg");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Modern CSS Reset */
* {
  margin: 0;
  padding: 0;
  text-decoration: none;
  outline: none;
  box-sizing: border-box;
}

*::before,
*::after {
  box-sizing: border-box;
}

fieldset,
img {
  border: 0;
  outline: none;
}

ul,
li {
  list-style: none;
  margin: 0;
  padding: 0;
}

input,
button,
textarea,
select,
optgroup,
option {
  font-family: inherit;
  font-size: inherit;
  font-style: inherit;
  font-weight: inherit;
}

/* Modern Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  outline: none;
  border: 0;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  line-height: 1.3;
  margin-bottom: 0.5em;
}

h1 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.25rem, 3vw, 2rem);
  font-weight: 600;
}

h3 {
  font-size: clamp(1.125rem, 2.5vw, 1.75rem);
  font-weight: 600;
}

h4 {
  font-size: clamp(1rem, 2vw, 1.5rem);
  font-weight: 500;
}

.clr {
  clear: both;
}

.clear {
  clear: both;
}

.xv-msg {
  background: linear-gradient(135deg, #ff9800, #f57c00);
  color: #fff;
  padding: 12px 16px;
  display: none;
  margin-top: 16px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(255, 152, 0, 0.3);
  border-left: 4px solid #f57c00;
}

.xv-msg a {
  color: #fff;
  text-decoration: underline;
  font-weight: 500;
}

/* Modern Body Styling */
body {
  font-size: 16px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
  color: #e0e0e0;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Modern Link Styling - Disabled transition */
a {
  color: var(--theme-color);
  transition: none;
  /* Disabled transition */
  text-decoration: none;
}

a:hover {
  color: var(--theme-color-light);
  text-decoration: none;
}

p {
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 1em;
  color: #d0d0d0;
}

.mw,
.wrapper {
  margin: 0 auto;
  transition: none;
  /* Disabled transition */
}

/* Modern Section Title */
.h1-title {
  padding-left: 12px;
  margin: 0;
  font-size: 16px;
  color: #f0f0f0;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  position: relative;
  border-left: 3px solid var(--theme-color);
  margin-top: 18px;
  margin-bottom: 12px;
  background: linear-gradient(90deg, rgba(var(--theme-color-rgb), 0.1) 0%, transparent 100%);
  padding: 10px 12px;
  border-radius: 0 6px 6px 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.h1-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--theme-color), var(--theme-color-dark));
  border-radius: 0 2px 2px 0;
}

.header .mw {
  padding: 12px 16px;
}

/* Modern Header Layout */
.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  position: relative;
}

/* Desktop specific layout */
@media screen and (min-width: 1025px) {
  .header-content {
    justify-content: space-between !important;
  }

  .logo {
    flex-shrink: 0;
    position: relative;
  }

  .search-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    max-width: 400px;
    position: relative;
  }
}

.header {
  position: relative;
  overflow: visible;
  z-index: 100;
}

/* Modern Background System */
.m-a-header,
.container,
.copyright,
.footer,
.header {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
  position: relative;
}

.m-a-header .mw,
.container .mw,
.copyright .mw,
.footer .mw,
.header .mw {
  background: linear-gradient(135deg, #111111 0%, #1e1e1e 100%);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Bỏ backdrop-filter trên header .mw để không tạo stacking context
   (giữ dropdown autocomplete z-index hoạt động đúng) */
.header .mw {
  backdrop-filter: none;
}

/* Modern Ad Containers */
.a-footer-1,
.a-footer-2 {
  display: inline-block;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.m-a-header {
  text-align: center;
  margin-bottom: 20px;
}

.m-a-header .mw {
  min-height: 130px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.m-a-underplayer {
  padding: 20px;
  min-height: 100px;
  overflow: hidden;
  text-align: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
  margin: 16px 0;
}

.a-sidebar-1 {
  min-height: 250px;
  overflow: hidden;
  margin-bottom: 20px;
  text-align: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
  padding: 16px;
}

.a-sidebar-2 {
  overflow: hidden;
  margin-bottom: 20px;
  text-align: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
  padding: 16px;
}

.a-footer-1 {
  overflow: hidden;
  min-height: 250px;
  margin-bottom: 20px;
  text-align: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
  padding: 16px;
}

.a-footer-2 {
  overflow: hidden;
  margin-bottom: 20px;
  text-align: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
  padding: 16px;
}

/* Modern Container System */
.container .mw {
  padding: 20px 8px;
  /* Thêm padding horizontal để cards không chạm edge */
  margin: 16px 0;
}

.container .right {
  float: right;
  width: 320px;
  padding: 0 0 0 20px;
}

.container .left {
  float: left;
  width: calc(100% - 340px);
  overflow: hidden;
  padding-right: 20px;
}

.padding {
  padding: 0 8px;
}

/* Modern Text Logo */
.logo {
  flex-shrink: 0;
}

.logo a {
  text-decoration: none;
  display: block;
}

.logo-text {
  font-size: clamp(1.4rem, 5vw, 2.2rem);
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: var(--theme-color);
  transition: all 0.3s ease;
  text-transform: uppercase;
  white-space: nowrap;
}

.logo-dot {
  color: #fff;
  font-weight: 400;
}

.logo:hover .logo-text {
  transform: none;
  /* Disabled transform */
  text-shadow: 0 0 20px rgba(var(--theme-color-rgb), 0.5);
}

.error {
  padding: 16px;
  background: linear-gradient(135deg, #ff4444, #cc0000);
  color: #fff;
  border-radius: 8px;
  margin: 16px 0;
  box-shadow: 0 4px 12px rgba(255, 68, 68, 0.3);
}

/* Mobile Header Styles */
@media screen and (max-width: 1024px) {
  .header .mw {
    padding: 8px 12px;
    position: relative;
  }

  .header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    /* Căn giữa tất cả elements */
    gap: 0;
    min-height: 56px;
    position: relative;
  }

  .span-menu {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    /* Căn giữa theo chiều dọc */
    z-index: 1002;
  }

  .logo {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: none;
    /* Disabled transition */
  }

  .logo.hidden {
    opacity: 0;
    visibility: hidden;
  }

  .search-container {
    position: absolute !important;
    right: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    /* Căn giữa theo chiều dọc */
    z-index: 1001 !important;
  }

  /* Hide desktop search form on mobile */
  .search-container .form-search {
    display: none !important;
  }


}

/* Extra small mobile devices */
@media screen and (max-width: 480px) {
  .header .mw {
    padding: 6px 8px;
  }

  .header-content {
    min-height: 52px;
  }

  .span-menu,
  .span-search {
    height: 40px;
    width: 40px;
    font-size: 14px;
  }

  .logo-text {
    font-size: 1.1rem;
    letter-spacing: 0.4px;
  }


}



/* Modern Search Container */
.search-container {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  justify-content: flex-end;
  max-width: 400px;
  position: relative;
}

.form-search {
  width: 100%;
  max-width: 320px;
  padding: 0;
  background: linear-gradient(135deg, #2a2a2a, #3a3a3a);
  border-radius: 25px;
  position: relative;
  height: 44px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  transition: none;
  /* Disabled transition */
  backdrop-filter: none;
  display: block;
  opacity: 1;
  pointer-events: auto;
  overflow: visible;
}

.form-search:hover {
  border-color: var(--theme-color);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.form-search:focus-within {
  border-color: var(--theme-color);
  box-shadow: 0 0 0 3px rgba(var(--theme-color-rgb), 0.2);
}

.form-search .frm {
  width: 100%;
  height: 44px;
  background: transparent;
  border-radius: 25px;
  display: flex;
  align-items: center;
  position: relative;
}

.form-search .frm .s {
  background: transparent;
  flex: 1;
  outline: none;
  margin: 0;
  padding: 0 20px;
  border: 0;
  height: 44px;
  color: #e0e0e0;
  font-size: 15px;
  font-weight: 400;
  transition: none;
  /* Disabled transition */
}

.form-search .frm .s::placeholder {
  color: #888;
  font-weight: 400;
}

.form-search .frm .s:focus::placeholder {
  color: #666;
}

.form-search .frm .s:focus {
  color: #fff;
}

.form-search .frm .btn-search {
  width: 35px;
  height: 35px;
  cursor: pointer;
  border: 0;
  margin: -5px 1px 0 0;
  padding: 0;
  outline: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--theme-color), var(--theme-color-dark));
  border-radius: 50%;
  transition: none;
  /* Disabled transition */
  box-shadow: 0 2px 8px rgba(var(--theme-color-rgb), 0.3);
  color: #fff;
  font-size: 16px;
  flex-shrink: 0;
}

.form-search .frm .btn-search i {
  color: #fff;
  font-size: 16px;
}

.form-search .frm .btn-search:hover {
  transform: none;
  /* Disabled transform */
  box-shadow: 0 4px 12px rgba(var(--theme-color-rgb), 0.4);
}

@media screen and (max-width: 1024px) {
  .form-search-1 {
    width: 200px;
    margin: 0 auto;
    float: none;
    text-align: center;
  }
}

/* Main Search Mobile */
.main-search {
  display: none;
  background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0;
  margin: 0;
  width: 100%;
  position: relative;
  z-index: 999;
}

.main-search-2 {
  display: none;
}

.main-search-2.responsive {
  display: block;
  position: relative;
  z-index: 99;
}

.form-search-2 {
  width: calc(100% - 32px);
  margin: 16px;
  padding: 0;
  background: linear-gradient(135deg, #2a2a2a, #3a3a3a);
  border-radius: 25px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  backdrop-filter: none;
  overflow: visible;
  position: relative;
}

.form-search-2 .frm {
  width: 100%;
  height: 50px;
  background: transparent;
  border-radius: 25px;
  display: flex;
  align-items: center;
  position: relative;
}

.form-search-2 .frm .s {
  background: transparent;
  flex: 1;
  outline: none;
  margin: 0;
  padding: 0 20px;
  border: 0;
  height: 50px;
  color: #e0e0e0;
  font-size: 16px;
  font-weight: 400;
  transition: none;
}

.form-search-2 .frm .s::placeholder {
  color: #888;
  font-weight: 400;
}

.form-search-2 .frm .s:focus::placeholder {
  color: #666;
}

.form-search-2 .frm .s:focus {
  color: #fff;
}

.form-search-2 .frm .btn-search {
  width: 40px;
  height: 40px;
  cursor: pointer;
  border: 0;
  margin: 5px;
  padding: 0;
  outline: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--theme-color), var(--theme-color-dark));
  border-radius: 50%;
  transition: none;
  box-shadow: 0 2px 8px rgba(var(--theme-color-rgb), 0.3);
  color: #fff;
  font-size: 16px;
  flex-shrink: 0;
}

.form-search-2 .frm .btn-search i {
  color: #fff;
  font-size: 16px;
}

@media screen and (max-width: 1024px) {
  .main-search {
    display: block;
  }
}

.anchor-bar {
  color: #a5a5a5;
}

.header {
  position: relative;
}

.span-menu,
.span-search {
  background: linear-gradient(135deg, #2a2a2a, #3a3a3a);
  border-radius: 10px;
  font-size: 16px;
  display: none;
  height: 44px;
  width: 44px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: none;
  /* Disabled transition */
  color: #e0e0e0;
  flex-shrink: 0;
}

.span-search.responsive {
  color: #ff4757;
  position: relative !important;
  top: auto !important;
  left: auto !important;
  transform: none !important;
}

.span-menu.responsive {
  color: #ff4757;
  position: absolute !important;
  left: 12px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 44px !important;
  height: 44px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.span-search i,
.span-menu i {
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1 !important;
  display: block !important;
}

.span-search {
  color: var(--theme-color);
}

.span-menu:hover,
.span-search:hover {
  background: linear-gradient(135deg, var(--theme-color), var(--theme-color-dark));
  color: #fff;
  transform: translateY(-50%);
  /* Keep centering, remove scale */
}

@media screen and (max-width: 1024px) {
  .span-menu {
    display: flex;
  }

  .span-search {
    display: flex;
  }

  .main-menu-2 {
    display: none;
  }

  .main-menu-2.responsive {
    display: block;
  }

  .main-search-2 {
    display: none;
  }

  .main-search-2.responsive {
    display: block;
  }
}

/* Modern Pagination */
.pagination {
  margin: 32px auto;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pagi,
.current,
.inactive {
  padding: 12px 16px;
  margin: 0;
  border: 2px solid rgba(255, 255, 255, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #2a2a2a, #3a3a3a);
  color: #e0e0e0;
  font-weight: 500;
  transition: all var(--transition-normal);
  text-decoration: none;
  min-width: 44px;
  height: 44px;
  font-family: 'Inter', sans-serif;
  box-shadow: var(--shadow-sm);
}

.pagination .current {
  background: linear-gradient(135deg, var(--theme-color), var(--theme-color-dark));
  color: #fff;
  border-color: var(--theme-color);
  box-shadow: 0 4px 16px rgba(var(--theme-color-rgb), 0.3);
  transform: scale(1.05);
}

.pagination .inactive {
  color: #888;
  background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
  cursor: pointer;
}

.pagination a:hover:not(.current):not(.inactive) {
  background: linear-gradient(135deg, var(--theme-color), var(--theme-color-dark));
  color: #fff;
  border-color: var(--theme-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(var(--theme-color-rgb), 0.3);
}

/* Fix for i-pages container */
.i-pages {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  gap: 8px;
  flex-wrap: wrap;
}

/* Load More Button - Non-flex version of pagination */
.load-more-pagination {
  margin: 32px auto;
  text-align: center;
  width: 100%;
}

.load-more-pagination .load-more-btn {
  padding: 12px 16px;
  margin: 0 auto;
  border: 2px solid rgba(255, 255, 255, 0.1);
  display: inline-block;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--theme-color), var(--theme-color-dark));
  color: #fff;
  font-weight: 500;
  transition: all var(--transition-normal);
  text-decoration: none;
  min-width: 44px;
  height: 44px;
  font-family: 'Inter', sans-serif;
  box-shadow: 0 4px 16px rgba(var(--theme-color-rgb), 0.3);
  border-color: var(--theme-color);
  cursor: pointer;
  line-height: 20px;
}

.load-more-pagination .load-more-btn:hover {
  background: linear-gradient(135deg, var(--theme-color-dark), var(--theme-color));
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(var(--theme-color-rgb), 0.4);
}

.footer {
  color: #ccc;
}

.footer .mw {
  text-align: center;
  padding: 10px 0 0;
}

.fpad {
  padding: 5px 10px;
}

.footer-html {
  padding: 10px;
}

.footer a,
.footer li i {
  color: var(--theme-color);
}

.footer a:hover {
  text-decoration: none;
}

.footer-col {
  text-align: left;
  padding: 0;
}

.footer-col i {
  margin-right: 5px;
}

.footer-col li {
  padding: 5px 0;
}

.footer .col-title {
  border-bottom: 1px solid #3b3b3b;
  padding: 10px 0;
  margin: 7px 10px;
  text-transform: uppercase;
  color: var(--theme-color);
}

.col-title {
  padding: 0 10px;
}

.col-ct {
  padding: 0 10px;
}

.col-25 {
  float: left;
  width: 25%;
}

.col-33 {
  float: left;
  width: 33.33%;
}

.col-50 {
  float: left;
  width: 50%;
}

.footer-col.col-100 ul {
  text-align: center;
  display: block;
}

.footer-col.col-100 li {
  float: none;
  display: inline-block;
  padding: 10px 20px;
}

.col-25 li,
.col-33 li,
.col-50 li {
  float: left;
  width: 50%;
}

.col-25 li a,
.col-33 li a,
.col-50 li a,
.col-100 li a {
  color: #ccc;
}

.col-25 li a:hover,
.col-33 li a:hover,
.col-50 li a:hover,
.col-100 li a:hover {
  color: var(--theme-color);
}

.copyright a:hover {
  text-decoration: none;
}

.copyright .mw {
  text-align: center;
  margin: 0 auto;
  padding: 15px 0;
  color: #ccc;
}

.copyright .mw a {
  color: var(--theme-color);
}

.widget .post {
  width: 100%;
  float: none;
  clear: both;
}

.widget .post .thumb {
  float: left;
  width: 140px;
  height: auto !important;
  margin-right: 10px;
}

.widget .thumb img {
  height: auto;
  width: 145px;
}

.widget .below-bottom {
  text-align: left;
}

.widget-title {
  margin: 15px 5px 10px;
  color: var(--theme-color);
}

.widget-ct {
  padding: 0 10px;
}

.widget .post .m {
  padding: 10px 0;
}

.a-sidebar {
  text-align: center;
}

.widget i {
  margin-right: 5px;
}

.widget-menu a:hover,
.widget-tags a:hover {
  text-decoration: none;
}

.widget-tags a {
  margin: 5px 20px 0 0;
}

.widget-tags i {
  font-size: 0.8em;
  margin-right: 1px;
}

.widget-menu li {
  padding: 5px 0;
}

.widget-menu li a {
  color: #ccc;
}

.widget-menu li a:hover {
  color: var(--theme-color);
}

.widget-tags a {
  color: #ccc;
}

.widget-tags a:hover {
  color: var(--theme-color);
}

/* Modern Post Card Design */
.post {
  float: left;
  width: calc(25% - 16px);
  /* 4 phim 1 hàng với spacing */
  margin: 0 8px 24px 8px;
  /* Thêm margin left/right để tạo khoảng cách */
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 8px;
}

/* SEO-Optimized Hover Effects - Disabled for performance */
@media (min-width: 1024px) and (hover: hover) {
  .post:hover {
    transform: none;
    /* Disabled transform */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    /* Keep static shadow */
    border-color: rgba(var(--theme-color-rgb), 0.5);
  }
}

/* Tắt hover effects trên touch devices */
@media (hover: none) {
  .post:hover {
    transform: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  }
}

.post-height {
  height: 30px;
  /* Fixed height để đảm bảo layout nhất quán */
  padding: 8px;
  overflow: hidden;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.post-height a {
  color: #e0e0e0;
  font-size: 13px;
  line-height: 1.3;
  margin: 0;
  padding: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  /* Giới hạn chỉ 2 dòng */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
  transition: all 0.3s ease;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  word-break: break-word;
  /* Ngắt từ khi cần thiết */
  hyphens: auto;
  /* Tự động thêm dấu gạch nối */
}

.post-height a:hover {
  color: var(--theme-color);
  transform: scale(1.05);
}

.relate .post {
  float: left;
  width: 25%;
}

/* Modern Thumbnail Design */
.thumb {
  position: relative;
  display: block;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.post .thumb img {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  aspect-ratio: var(--fv-thumb-aspect-ratio, 16/9);
  /* Sử dụng CSS variable với fallback */
  object-fit: cover;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 12px;
}

/* Actor thumbnails - Portrait orientation */
.post .thumb-actor img {
  object-position: center top;
  position: relative;
  aspect-ratio: var(--actor-aspect-ratio, 1 / 1.5);
  /* Có thể override cho actor */
  background-color: rgb(0, 0, 0);
  object-fit: cover !important;
  height: unset !important;
}

/* Studio thumbnails - Square orientation */
.post .thumb-studio img {
  object-position: center top;
  position: relative;
  aspect-ratio: var(--studio-aspect-ratio, 1 / 1);
  /* Có thể override cho studio */
  background-color: rgb(0, 0, 0);
  object-fit: cover !important;
  height: unset !important;
}

.widget .post-height {
  text-align: left;
  height: auto;
}

.post .left-top {
  left: 8px;
  top: 8px;
  position: absolute;
}

.post .right-top {
  right: 8px;
  top: 8px;
  position: absolute;
}

.post .left-bottom {
  left: 8px;
  bottom: 8px;
  position: absolute;
}

.post .right-bottom {
  right: 8px;
  bottom: 8px;
  position: absolute;
}

.post .below-bottom {
  text-align: center;
  opacity: 0.9;
  background: 0 0;
  color: #686868;
}

.widget .post .below-bottom {
  text-align: left;
}

.post .left-bottom {
  background: 0 0;
  color: #fff;
}

.post .right-bottom {
  background: 0 0;
  color: #fff;
}

.post .left-top {
  background: 0 0;
  color: #fff;
  top: 5px;
  left: 0;
}

.post .right-top {
  background: 0 0;
  color: #fff;
}

.below-bottom .xv-vietsub {
  display: inline-block !important;
  position: relative;
  top: 2px;
}

.post i {
  margin-right: 5px;
}

.xv-views {
  padding: 0 5px;
  color: #999;
  background: 0 0;
}

.xv-heart {
  padding: 0 5px;
  color: #fff;
  background: #d65e53;
}

.xv-vietsub {
  padding: 0 5px;
  display: block;
  color: #fff;
  background: var(--theme-color);
}

.block-info,
.block-srv {
  margin: 5px 0;
}

.block-info {
  float: right;
}

.block-srv {
  float: left;
}

.box-server {
  margin: 0 !important;
  float: none !important;
  width: none !important;
}

.wrap-video {
  margin: 0;
  padding: 0;
  width: 100%;
  position: relative;
  height: 0;
  width: 100%;
  padding-bottom: 56.25%;
  text-align: center;
}

.wrap-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.vertical-align {
  margin: 0;
  position: absolute;
  top: 50%;
  -ms-transform: translateY(-50%);
  transform: translateY(-50%);
  display: block;
}

.msg-player {
  text-align: center;
  padding: 10px;
}

/* Modern Buttons and Interactive Elements - Disabled animations */
.btn-ajax {
  cursor: pointer;
  transition: none;
  /* Disabled transition */
}

.btn-ajax:hover {
  transform: none;
  /* Disabled transform */
}

.breadcrumbs {
  margin-bottom: 20px;
  padding: 12px 16px;
  background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
  border-radius: 8px;
  border-left: 4px solid var(--theme-color);
}

.breadcrumbs a {
  color: #e0e0e0;
  transition: all var(--transition-normal);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--theme-color);
  text-decoration: none;
}

.srv {
  cursor: pointer;
}

/* Server buttons specific styling */
.block-srv .srv {
  padding: 4px 8px;
  margin: 0 3px 6px 0;
  font-size: 11px;
  min-height: 28px;
  border-radius: 14px;
  font-weight: 600;
}

/* Info buttons specific styling */
.block-info .srv,
.block-info .btn-views,
.block-info .btn-like {
  padding: 5px 9px;
  margin: 0 3px 6px 0;
  font-size: 11px;
  min-height: 30px;
}

/* Modern Button System */
.btn-views,
.btn-like,
.btn-dislike,
.btn-heart,
.btn-code,
.btn-id,
.srv {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 4px 6px 0;
  padding: 6px 10px;
  background: linear-gradient(135deg, #2a2a2a, #3a3a3a);
  color: #e0e0e0;
  font-size: 12px;
  font-weight: 500;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all var(--transition-normal);
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  font-family: 'Inter', sans-serif;
  min-height: 32px;
}

.btn-views:hover,
.btn-like:hover,
.btn-dislike:hover,
.btn-heart:hover,
.btn-code:hover,
.btn-id:hover,
.srv:hover {
  background: linear-gradient(135deg, var(--theme-color), var(--theme-color-dark));
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(var(--theme-color-rgb), 0.3);
  border-color: var(--theme-color);
}

.default-srv {
  color: #fff;
  background: linear-gradient(135deg, var(--theme-color), var(--theme-color-dark));
  border-color: var(--theme-color);
  box-shadow: 0 4px 12px rgba(var(--theme-color-rgb), 0.3);
}

.h1-tt {
  margin-bottom: 16px;
  margin-top: 16px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  padding: 16px;
  border-left: 4px solid var(--theme-color);
  background: linear-gradient(90deg, rgba(var(--theme-color-rgb), 0.1) 0%, transparent 100%);
  border-radius: 0 8px 8px 0;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
}

.btn-like,
.btn-dislike {
  cursor: pointer;
}

.btn-like.active {
  background: linear-gradient(135deg, #4caf50, #388e3c);
  color: #fff;
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.btn-dislike.active {
  background: linear-gradient(135deg, #f44336, #d32f2f);
  color: #fff;
  box-shadow: 0 4px 12px rgba(244, 67, 54, 0.3);
}

.active {
  color: rgb(30, 188, 88);
}

.dept-ct img {
  max-width: 50% !important;
  height: auto !important;
}

.sv-photo .dept-ct img {
  max-width: 100% !important;
  height: auto !important;
}

.dept-ct p {
  margin-bottom: 5px;
}

.dept-ct a:hover {
  text-decoration: underline;
}

.btn-rm {
  cursor: pointer;
  margin: 5px 0 4px;
}

.relate-title {
  padding: 10px 5px !important;
  display: block;
  color: var(--theme-color);
}

.s-tags,
.s-cates {
  margin: 5px 0;
}

.s-tags i,
.s-cates i {
  margin-right: 5px;
}

.s-tags span,
.s-cates span {
  font-weight: 500;
}

.s-tags a:hover,
.s-cates a:hover {
  text-decoration: none;
}

.s-tags a,
.s-cates a {
  color: #a5a5a5;
  background: #2b2b2b;
  padding: 3px 5px;
  display: inline-block;
  margin: 3px 0;
  margin-right: 3px;
  border-radius: 3px;
}

.s-tags a:hover,
.s-cates a:hover {
  color: #ccc;
  background: var(--theme-color);
}

.s-tags span {
  color: #fff;
  background: var(--theme-color);
  padding: 3px 5px;
  display: inline-block;
  margin: 3px 0;
  margin-right: 3px;
}

@media (min-width: 1281px) {
  .mw {
    width: 980px;
  }

  .wrapper {
    margin: 0 auto;
    width: 980px;
  }
}

@media (min-width: 1025px) and (max-width: 1280px) {
  .wrapper {
    margin: 0 auto;
    width: 980px;
  }

  .mw {
    width: 980px;
  }
}

/* Modern Responsive Design */

/* Desktop/PC (1024px+) - 4 phim 1 hàng */
@media (min-width: 1024px) {

  .post,
  .relate .post {
    width: calc(25% - 16px);
    /* 4 columns với spacing */
    margin: 0 8px 24px 8px;
  }
}

/* Tablet Landscape (768px - 1023px) */
@media (max-width: 1023px) {
  .mw {
    width: 100%;
    padding: 0 16px;
  }

  .container .left,
  .container .right {
    width: 100%;
    float: none;
    padding: 0;
  }

  .container .right {
    margin-top: 24px;
  }

  .logo {
    margin: 0 !important;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .form-search {
    width: 100%;
    max-width: 400px;
    margin: 16px auto;
    float: none;
  }
}

/* Tablet (768px - 1023px) - 3 phim 1 hàng */
@media (min-width: 768px) and (max-width: 1023px) {

  .post,
  .relate .post {
    width: calc(33.33% - 12px);
    /* 3 columns với spacing */
    margin: 0 6px 20px 6px;
  }

  .post .thumb img {
    width: 100%;
    margin: 0;
    border-radius: 12px;
  }

  .col-25,
  .col-33,
  .col-50 {
    float: left;
    width: 50%;
  }
}

/* Mobile (dưới 768px) - 2 phim 1 hàng */
@media (max-width: 767px) {

  .post,
  .relate .post {
    width: calc(50% - 8px);
    /* 2 columns với spacing */
    margin: 0 4px 16px 4px;
  }

  .post {
    padding: 6px;
  }

  .post-height {
    padding: 6px;
  }

  .post-height a {
    font-size: 12px;
    line-height: 1.2;
    -webkit-line-clamp: 2;
    /* Vẫn giữ 2 dòng */
  }

  /* Responsive pagination for mobile */
  .pagination {
    margin: 20px auto;
    padding: 0 8px;
  }

  .pagination .current,
  .pagination .pagi,
  .pagination .inactive {
    padding: 10px 14px;
    font-size: 14px;
    min-width: 40px;
    height: 40px;
  }

  .i-pages {
    padding: 0 8px;
  }

  /* Responsive load more button for mobile */
  .load-more-pagination {
    margin: 20px auto;
    padding: 0 8px;
  }

  .load-more-pagination .load-more-btn {
    padding: 10px 14px;
    font-size: 14px;
    min-width: 40px;
    height: 40px;
  }

  /* Responsive buttons for mobile */
  .block-srv .srv {
    padding: 3px 6px;
    font-size: 10px;
    min-height: 26px;
    margin: 0 2px 4px 0;
  }

  .block-info .srv,
  .block-info .btn-views,
  .block-info .btn-like {
    padding: 4px 7px;
    font-size: 10px;
    min-height: 28px;
    margin: 0 2px 4px 0;
  }
}

/* Mobile nhỏ (dưới 480px) - vẫn giữ 2 phim 1 hàng */
@media (max-width: 479px) {
  .dept-ct img {
    max-width: 100% !important;
    height: auto !important;
  }

  .post,
  .relate .post {
    width: calc(50% - 6px);
    /* 2 columns với spacing nhỏ hơn */
    margin: 0 3px 16px 3px;
  }

  .post .thumb img {
    width: 100%;
    margin: 0;
    border-radius: 12px;
  }

  .col-25,
  .col-33,
  .col-50 {
    float: none;
    width: 100%;
  }

  .footer-col.col-100 ul {
    text-align: center;
    display: block;
  }

  .footer-col.col-100 li {
    float: none;
    display: block;
    padding: 8px 16px;
  }

  .div-margin-search {
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Responsive pagination for very small mobile */
  .pagination {
    margin: 16px auto;
    padding: 0 4px;
  }

  .pagination .current,
  .pagination .pagi,
  .pagination .inactive {
    padding: 8px 12px;
    font-size: 13px;
    min-width: 36px;
    height: 36px;
  }

  .i-pages {
    padding: 0 4px;
  }

  /* Responsive load more button for very small mobile */
  .load-more-pagination {
    margin: 16px auto;
    padding: 0 4px;
  }

  .load-more-pagination .load-more-btn {
    padding: 8px 12px;
    font-size: 13px;
    min-width: 36px;
    height: 36px;
  }

  /* Responsive buttons for very small mobile */
  .block-srv .srv {
    padding: 2px 5px;
    font-size: 9px;
    min-height: 24px;
    margin: 0 1px 3px 0;
  }

  .block-info .srv,
  .block-info .btn-views,
  .block-info .btn-like {
    padding: 3px 6px;
    font-size: 9px;
    min-height: 26px;
    margin: 0 1px 3px 0;
  }

  .form-search {
    width: calc(100% - 16px);
    margin: 8px;
  }

  /* Responsive h1-title for very small mobile */
  .h1-title {
    font-size: 13px;
    padding: 6px 8px;
    padding-left: 8px;
    margin-top: 12px;
    margin-bottom: 8px;
    border-left-width: 2px;
    letter-spacing: 0.3px;
  }

  .post-height {
    padding: 4px;
  }

  .post-height a {
    font-size: 11px;
    line-height: 1.2;
    -webkit-line-clamp: 2;
    /* Vẫn giữ 2 dòng trên mobile */
  }

  /* Disable animations on mobile for better performance */
  .post {
    animation: none !important;
  }

  .post:hover {
    transform: none !important;
  }
}

.msg-qc {
  text-align: center;
  padding: 5px;
  margin: 5px;
  background: #f44336;
  color: #fff;
}

.a-gif {
  text-align: center;
}

.a-footer {
  margin-top: 10px;
}

.pto {
  cursor: pointer;
  display: block;
  text-align: center;
}

i.xv-arrow-alt-circle-right {
  background-image: url(img/arrow1.svg);
  width: 15px;
  background-size: 14px;
  height: 15px;
  position: relative;
  background-repeat: no-repeat;
  display: inline-block;
  top: 4px;
}

i.xv-arrow-circle-right {
  background-image: url(img/arrow2.svg);
  width: 15px;
  background-size: 14px;
  height: 15px;
  position: relative;
  background-repeat: no-repeat;
  display: inline-block;
  top: 4px;
}

i.xv-arrow-right {
  background-image: url(img/arrow3.svg);
  width: 15px;
  background-size: 12px;
  height: 15px;
  position: relative;
  background-repeat: no-repeat;
  display: inline-block;
  top: 2px;
}

i.xv-home {
  background-image: url(img/home.svg);
  width: 15px;
  background-size: 15px;
  height: 15px;
  position: relative;
  background-repeat: no-repeat;
  display: inline-block;
  top: 4px;
}

i.xv-heart {
  background-image: url(img/heart.svg);
  width: 6px;
  background-size: 14px;
  height: 15px;
  position: relative;
  background-repeat: no-repeat;
  display: inline-block;
  top: 4px;
}

td .xv-heart {
  width: 14px;
}

i.xv-closed-captioning {
  background-image: url(img/closed-captioning.svg);
  width: 25px;
  background-size: 25px;
  height: 25px;
  position: relative;
  background-repeat: no-repeat;
  display: inline-block;
}

i.xv-vs1 {
  background-image: url(img/v1.svg);
  width: 50px;
  background-size: 50px;
  height: 15px;
  position: relative;
  background-repeat: no-repeat;
  display: block;
  margin: 0;
  top: 2px;
}

i.xv-vs2 {
  background-image: url(img/v2.svg);
  width: 50px;
  background-size: 50px;
  height: 15px;
  position: relative;
  background-repeat: no-repeat;
  display: block;
  margin: 0;
  top: 2px;
}

i.xv-vs3 {
  background-image: url(img/v3.svg);
  width: 50px;
  background-size: 50px;
  height: 15px;
  position: relative;
  background-repeat: no-repeat;
  display: block;
  margin: 0;
  top: 2px;
}

i.xv-vs4 {
  background-image: url(img/v4.svg);
  width: 50px;
  background-size: 50px;
  height: 15px;
  position: relative;
  background-repeat: no-repeat;
  display: block;
  margin: 0;
  top: 2px;
}

i.xv-vs5 {
  background-image: url(img/v5.svg);
  width: 50px;
  background-size: 50px;
  height: 15px;
  position: relative;
  background-repeat: no-repeat;
  display: block;
  margin: 0;
  top: 2px;
}

i.xv-eye {
  background-image: url(img/eye.svg);
  width: 18px;
  background-size: 15px;
  height: 15px;
  position: relative;
  background-repeat: no-repeat;
  display: inline-block;
  top: 4px;
}

i.xv-like {
  background-image: url(img/like.svg);
  width: 18px;
  background-size: 15px;
  height: 15px;
  position: relative;
  background-repeat: no-repeat;
  display: inline-block;
  top: 1px;
}

i.xv-unlike {
  background-image: url(img/unlike.svg);
  width: 18px;
  background-size: 15px;
  height: 15px;
  position: relative;
  background-repeat: no-repeat;
  display: inline-block;
  top: 5px;
}

/* Modern Navigation Design */
@media only screen and (min-width: 769px) {
  #primary-nav {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    font-size: 15px;
    font-weight: 500;
    border-top: none;
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    margin-bottom: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    overflow: visible;
    position: relative;
  }

  #primary-nav .menu {
    list-style: none;
    line-height: 1;
    overflow: visible;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    position: relative;
  }

  #primary-nav .menu li a {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #2a2a2a, #3a3a3a);
    margin: 0;
    padding: 10px 16px;
    color: #e0e0e0;
    border-radius: 25px;
    text-align: center;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  }

  #primary-nav .menu li a:hover,
  .menu li:hover a:active {
    text-decoration: none;
    color: #fff;
    background: linear-gradient(135deg, var(--theme-color), var(--theme-color-dark));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(var(--theme-color-rgb), 0.3);
    border-color: var(--theme-color);
  }

  /* Giữ active item khi hover */
  #primary-nav .menu li a[style*="color"]:hover {
    color: #fff !important;
  }

  #primary-nav .menu li a i {
    margin-right: 8px;
    font-size: 14px;
  }
}

@media only screen and (min-width: 0px) and (max-width: 768px) {
  #primary-nav {
    position: relative;
    font-size: 14px;
    font-weight: 400;
    margin: 0 8px 16px;
    overflow: visible;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
  }

  #primary-nav .menu {
    min-height: 40px;
    border: 0;
    background: transparent;
    box-shadow: none;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  #primary-nav .menu a {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #2a2a2a, #3a3a3a);
    margin: 0;
    padding: 8px 12px;
    color: #e0e0e0;
    border-radius: 20px;
    text-align: center;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none;
    font-size: 13px;
  }

  #primary-nav .menu a:hover {
    color: #fff;
    background: linear-gradient(135deg, var(--theme-color), var(--theme-color-dark));
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(var(--theme-color-rgb), 0.3);
  }

  /* Giữ active item khi hover */
  #primary-nav .menu a[style*="color"]:hover {
    color: #fff !important;
  }

  #primary-nav .menu a i {
    margin-right: 6px;
    font-size: 12px;
  }
}

/* ===== NEW LANGUAGE DROPDOWN SYSTEM ===== */

/* Language Button */
.lang-trigger {
  position: relative;
  cursor: pointer;
  user-select: none;
}

.lang-trigger:hover {
  background: linear-gradient(135deg, var(--theme-color), var(--theme-color-dark)) !important;
}

.lang-trigger.active .lang-arrow {
  transform: rotate(180deg);
}

.lang-arrow {
  transition: transform 0.2s ease;
  margin-left: 8px;
}

/* Language Dropdown Portal */
.lang-dropdown-portal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 100000;
  background: transparent;
  backdrop-filter: none;
}

.lang-dropdown-portal.active {
  pointer-events: auto;
}

/* Portal transitions */
.lang-dropdown-portal {
  transition: background 0.2s ease, backdrop-filter 0.2s ease;
}

/* Dropdown Container */
.lang-dropdown {
  position: absolute;
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  padding: 12px;
  min-width: 280px;
  max-height: 400px;
  overflow-y: auto;
  opacity: 0;
  transform: translateY(-10px) scale(0.95);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.lang-dropdown.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Dropdown Items */
.lang-item {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-radius: 12px;
  color: #e0e0e0;
  text-decoration: none;
  transition: all 0.2s ease;
  margin-bottom: 4px;
  font-size: 14px;
  font-weight: 500;
}

.lang-item:last-child {
  margin-bottom: 0;
}

.lang-item:hover {
  background: linear-gradient(135deg, var(--theme-color), var(--theme-color-dark));
  color: #fff;
  transform: translateX(4px);
  text-decoration: none;
}

.lang-item.current {
  background: rgba(var(--theme-color-rgb), 0.2);
  border-left: 3px solid var(--theme-color);
  padding-left: 13px;
}

.lang-item.current::after {
  content: "✓";
  margin-left: auto;
  color: var(--theme-color);
  font-weight: bold;
}

.lang-flag {
  width: 20px;
  height: 15px;
  margin-right: 12px;
  border-radius: 2px;
  object-fit: cover;
}

/* Mobile Styles */
@media (max-width: 768px) {
  .lang-dropdown-portal.active {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
  }

  .lang-dropdown {
    position: fixed;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) scale(0.95);
    width: 90%;
    max-width: 400px;
    max-height: 70vh;
  }

  .lang-dropdown.show {
    transform: translate(-50%, -50%) scale(1);
  }

  .lang-item {
    padding: 16px 20px;
    font-size: 16px;
  }
}

/* Custom Scrollbar */
.lang-dropdown::-webkit-scrollbar {
  width: 6px;
}

.lang-dropdown::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.lang-dropdown::-webkit-scrollbar-thumb {
  background: var(--theme-color);
  border-radius: 3px;
}

.lang-dropdown::-webkit-scrollbar-thumb:hover {
  background: var(--theme-color-light);
}







.dropdown::-webkit-scrollbar {
  width: 6px;
}

.dropdown::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.dropdown::-webkit-scrollbar-thumb {
  background: var(--theme-color);
  border-radius: 3px;
}

.dropdown::-webkit-scrollbar-thumb:hover {
  background: var(--theme-color-light);
}

.dropdown li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dropdown li a {
  display: flex !important;
  align-items: center;
  padding: 12px 16px !important;
  margin: 4px 0 !important;
  color: #e0e0e0 !important;
  text-decoration: none !important;
  border-radius: 12px !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  background: transparent !important;
  border: 1px solid transparent !important;
  font-weight: 500 !important;
  font-size: 14px !important;
  gap: 12px;
}

.dropdown li a:hover {
  background: linear-gradient(135deg, var(--theme-color), var(--theme-color-dark)) !important;
  color: #fff !important;
  transform: translateX(4px) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  box-shadow: 0 4px 16px rgba(var(--theme-color-rgb), 0.3) !important;
}

.dropdown li a img {
  width: 20px !important;
  height: 15px !important;
  object-fit: cover;
  border-radius: 4px;
  margin-right: 0 !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Current Language Indicator */
.dropdown li a.current-lang {
  background: linear-gradient(135deg, var(--theme-color), var(--theme-color-dark)) !important;
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  position: relative;
}

.dropdown li a.current-lang::after {
  content: "✓";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: bold;
  font-size: 16px;
}

/* Language Groups */
.lang-group {
  margin-bottom: 16px;
}

.lang-group:last-child {
  margin-bottom: 0;
}

.lang-group-title {
  font-size: 11px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  padding: 8px 16px 4px;
  margin: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 8px;
}

/* Popular Languages Highlight */
.dropdown li a.popular-lang {
  border-left: 3px solid var(--theme-color);
  padding-left: 13px !important;
}

/* Language Search (if implemented) */
.lang-search {
  position: relative;
  margin-bottom: 12px;
}

.lang-search input {
  width: 100%;
  padding: 10px 16px 10px 40px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  color: #e0e0e0;
  font-size: 14px;
  outline: none;
  transition: all 0.3s ease;
}

.lang-search input:focus {
  border-color: var(--theme-color);
  box-shadow: 0 0 0 3px rgba(var(--theme-color-rgb), 0.2);
}

.lang-search i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #888;
  font-size: 14px;
}

/* Language Button Container */
.menu li {
  position: relative !important;
}

/* Language Button Styling */
#btn-lang {
  position: relative;
  cursor: pointer !important;
}

#btn-lang:hover {
  background: linear-gradient(135deg, var(--theme-color), var(--theme-color-dark)) !important;
}

#btn-lang i.fa-angle-right {
  transition: transform 0.3s ease;
  margin-left: auto;
}

#btn-lang.active i.fa-angle-right {
  transform: rotate(90deg);
}

/* Dropdown Animation - Disabled */
@keyframes dropdownFadeIn {
  0% {
    opacity: 1;
    transform: none;
  }

  100% {
    opacity: 1;
    transform: none;
  }
}

/* Mobile Language Dropdown */
@media (max-width: 768px) {
  .dropdown {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    right: auto !important;
    transform: translate(-50%, -50%) translateZ(0) !important;
    width: 90% !important;
    max-width: 400px !important;
    max-height: 70vh !important;
    border-radius: 20px !important;
    padding: 16px !important;
    animation: mobileDropdownFadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    z-index: 2147483647 !important;
    isolation: isolate !important;
    contain: layout style paint !important;
  }

  .dropdown li a {
    padding: 16px 20px !important;
    font-size: 16px !important;
    border-radius: 16px !important;
  }

  .dropdown li a img {
    width: 24px !important;
    height: 18px !important;
  }
}

@keyframes mobileDropdownFadeIn {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%);
  }

  100% {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

/* Overlay for mobile dropdown */
.dropdown-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  background: rgba(0, 0, 0, 0.5) !important;
  z-index: 2147483646 !important;
  display: none !important;
  backdrop-filter: blur(4px) !important;
  isolation: isolate !important;
}

.dropdown-overlay.active {
  display: block !important;
  animation: none;
  /* Disabled animation */
}

@keyframes overlayFadeIn {
  0% {
    opacity: 1;
  }

  100% {
    opacity: 1;
  }
}

span.view-onl {
  position: absolute;
  bottom: 0;
  right: 0;
  color: #fafbee;
  line-height: 14px;
  font-size: 12px;
  font-weight: 600;
  opacity: 0.8;
  -moz-border-radius: 10px 0px 10px 0;
  -webkit-border-radius: 10px 0px 10px 0;
  background: none repeat scroll 0 0 rgba(17, 17, 17);
  padding: 4px 8px;
  border-radius: 10px 0px 10px 0;
}

span.name-actor {
  position: absolute;
  bottom: 4px;
  right: 10px;
  left: 10px;
  color: #fafbee;
  line-height: 14px;
  font-size: 14px;
  font-weight: 600;
  opacity: 0.8;
  -moz-border-radius: 0px 0px 10px 10px;
  -webkit-border-radius: 0px 0px 10px 10px;
  background: none repeat scroll 0 0 rgba(17, 17, 17, .6);
  padding: 8px 8px 8px 8px;
  border-radius: 0px 0px 10px 10px;
  text-align: center;
}

/* Modern Hover Effects - Disabled */
.post:hover .thumb:before {
  opacity: 1;
  transform: none;
  /* Disabled transform */
}

.post:hover .thumb img {
  transform: none;
  /* Disabled transform */
  filter: brightness(0.8);
}

.thumb:before,
.thumb:after {
  transition: none;
  /* Disabled transition */
  opacity: 0;
}

.thumb:before {
  content: "\e800";
  font-family: fontello;
  color: #fff;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: 0;
  margin: auto;
  width: 4rem;
  height: 4rem;
  line-height: 4rem;
  padding-left: 4px;
  border-radius: 50%;
  text-align: center;
  font-size: 1.5rem;
  z-index: 3;
  transform: scale(0) rotate(-180deg);
  background: linear-gradient(135deg, var(--theme-color), var(--theme-color-dark));
  box-shadow: 0 8px 32px rgba(var(--theme-color-rgb), 0.4);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.thumb:after {
  content: "";
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.9));
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  backdrop-filter: blur(2px);
}

.post:hover .post-height {
  color: var(--theme-color);
}

.post:hover .thumb:after {
  opacity: 1;
}

.post:hover .thumb:before {
  opacity: 1;
  transform: none;
  /* Disabled transform */
}

/* Modern Animations - All Disabled */
@keyframes ripple {
  0% {
    transform: none;
    opacity: 1;
  }

  100% {
    transform: none;
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 1;
    transform: none;
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fadeInScale {
  from {
    opacity: 1;
    transform: none;
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes slideInRight {
  from {
    opacity: 1;
    transform: none;
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes pulse {

  0%,
  100% {
    transform: none;
  }

  50% {
    transform: none;
  }
}

@keyframes shimmer {
  0% {
    background-position: 0 0;
  }

  100% {
    background-position: 0 0;
  }
}

/* SEO-Optimized Animations - All Disabled for performance */
@media (min-width: 1024px) and (prefers-reduced-motion: no-preference) {
  .post {
    animation: none !important;
    /* Disabled animation */
    animation-fill-mode: none;
  }

  /* Disabled animation delays */
  .post:nth-child(1) {
    animation-delay: 0s;
  }

  .post:nth-child(2) {
    animation-delay: 0s;
  }

  .post:nth-child(3) {
    animation-delay: 0s;
  }

  .post:nth-child(4) {
    animation-delay: 0s;
  }

  .h1-title {
    animation: none !important;
    /* Disabled animation */
  }

  #primary-nav {
    animation: none !important;
    /* Disabled animation */
  }
}

/* Tắt animations trên mobile và tablet để tối ưu performance */
@media (max-width: 1023px) {

  .post,
  .h1-title,
  #primary-nav {
    animation: none !important;
  }
}

/* Smooth Scrolling - Disabled */
html {
  scroll-behavior: auto;
  /* Disabled smooth scrolling */
}

/* Loading Shimmer Effect - Disabled */
.loading-shimmer {
  background: #2a2a2a;
  /* Static background */
  background-size: 100% 100%;
  animation: none;
  /* Disabled animation */
}

.post:hover .cripple {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: 0;
  margin: auto;
  width: 4rem;
  height: 4rem;
  line-height: 4rem;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.6);
  animation: none;
  /* Disabled animation */
  z-index: 2;
}

/* Modern Video Label Design */
.post .label {
  position: absolute;
  top: 6px;
  left: 6px;
  background: linear-gradient(135deg, var(--theme-color), var(--theme-color-dark));
  color: #fff;
  padding: 4px 8px;
  line-height: 1.2;
  font-size: 10px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  border-radius: 14px;
  box-shadow: 0 3px 8px rgba(var(--theme-color-rgb), 0.4);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  z-index: 3;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0.95;
}

.post .label:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(var(--theme-color-rgb), 0.6);
  opacity: 1;
}

/* Label Variants */
.post .label.label-premium {
  background: linear-gradient(135deg, #ffd700, #ffb300);
  color: #000;
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

.post .label.label-new {
  background: linear-gradient(135deg, #4caf50, #388e3c);
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
}

.post .label.label-hot {
  background: linear-gradient(135deg, #ff5722, #d84315);
  box-shadow: 0 4px 12px rgba(255, 87, 34, 0.4);
  animation: pulse-glow 2s ease-in-out infinite;
}

.post .label.label-vip {
  background: linear-gradient(135deg, #9c27b0, #7b1fa2);
  box-shadow: 0 4px 12px rgba(156, 39, 176, 0.4);
}

/* Pulse animation for hot label - Disabled */
@keyframes pulse-glow {

  0%,
  100% {
    box-shadow: 0 4px 12px rgba(255, 87, 34, 0.4);
  }

  50% {
    box-shadow: 0 4px 12px rgba(255, 87, 34, 0.4);
    /* Static shadow */
  }
}

/* Responsive Label Design */
@media screen and (max-width: 1000px) {

  .post .label,
  li.item-movie .label {
    position: absolute;
    top: 5px;
    left: 5px;
    padding: 3px 6px;
    font-size: 9px;
    border-radius: 12px;
    letter-spacing: 0.3px;
  }
}

@media screen and (max-width: 768px) {
  .post .label {
    top: 3px;
    left: 3px;
    padding: 2px 5px;
    font-size: 8px;
    border-radius: 10px;
    letter-spacing: 0.2px;
  }
}

/* Additional Label Styles */
.post .label.label-free {
  background: linear-gradient(135deg, #2196f3, #1976d2);
  box-shadow: 0 4px 12px rgba(33, 150, 243, 0.4);
}

.post .label.label-hd {
  background: linear-gradient(135deg, #ff9800, #f57c00);
  box-shadow: 0 4px 12px rgba(255, 152, 0, 0.4);
}

.post .label.label-4k {
  background: linear-gradient(135deg, #e91e63, #c2185b);
  box-shadow: 0 4px 12px rgba(233, 30, 99, 0.4);
}

.post .label.label-exclusive {
  background: linear-gradient(135deg, #607d8b, #455a64);
  box-shadow: 0 4px 12px rgba(96, 125, 139, 0.4);
}

/* Label with icon support */
.post .label.label-with-icon {
  display: flex;
  align-items: center;
  gap: 4px;
}

.post .label.label-with-icon i {
  font-size: 10px;
}

/* Multiple labels support */
.post .label-container {
  position: absolute;
  top: 6px;
  left: 6px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  z-index: 3;
}

.post .label-container .label {
  position: relative;
  top: auto;
  left: auto;
  margin: 0;
}

@media screen and (max-width: 768px) {
  .post .label-container {
    top: 3px;
    left: 3px;
    gap: 1px;
  }
}

/* Modern Notice Design */
.notice {
  position: relative;
  width: 100%;
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
  border-radius: 16px;
  border: 2px solid rgba(var(--theme-color-rgb), 0.3);
  text-align: center;
  margin: 20px 0;
  padding: 20px 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  color: #e0e0e0;
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  transition: all 0.3s ease;
}

.notice:hover {
  border-color: rgba(var(--theme-color-rgb), 0.6);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  transform: translateY(-2px);
}

/* Modern Arrow Design */
.notice:before {
  content: '';
  position: absolute;
  border-style: solid;
  border-width: 0 12px 16px;
  border-color: transparent transparent rgba(var(--theme-color-rgb), 0.3);
  display: block;
  width: 0;
  z-index: 0;
  top: -16px;
  left: 40px;
  filter: drop-shadow(0 -4px 8px rgba(0, 0, 0, 0.3));
}

.notice:after {
  content: '';
  position: absolute;
  border-style: solid;
  border-width: 0 10px 14px;
  border-color: transparent transparent #1a1a1a;
  display: block;
  width: 0;
  z-index: 1;
  top: -14px;
  left: 42px;
}

/* Notice Content Styling */
.notice p {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
}

.notice strong {
  color: var(--theme-color);
  font-weight: 600;
}

.notice a {
  color: var(--theme-color);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.notice a:hover {
  color: var(--theme-color-light);
  text-decoration: underline;
}

/* Notice Responsive Design */
@media (max-width: 768px) {
  .notice {
    margin: 16px 0;
    padding: 16px 20px;
    border-radius: 12px;
    font-size: 14px;
  }

  .notice:before {
    border-width: 0 10px 14px;
    top: -14px;
    left: 30px;
  }

  .notice:after {
    border-width: 0 8px 12px;
    top: -12px;
    left: 32px;
  }

  .notice p {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .notice {
    margin: 12px 0;
    padding: 12px 16px;
    border-radius: 10px;
  }

  .notice:before {
    border-width: 0 8px 12px;
    top: -12px;
    left: 24px;
  }

  .notice:after {
    border-width: 0 6px 10px;
    top: -10px;
    left: 26px;
  }

  .notice p {
    font-size: 13px;
    line-height: 1.5;
  }
}

/* Notice Variants */
.notice.notice-info {
  border-color: rgba(33, 150, 243, 0.3);
}

.notice.notice-info:before {
  border-color: transparent transparent rgba(33, 150, 243, 0.3);
}

.notice.notice-success {
  border-color: rgba(76, 175, 80, 0.3);
}

.notice.notice-success:before {
  border-color: transparent transparent rgba(76, 175, 80, 0.3);
}

.notice.notice-warning {
  border-color: rgba(255, 152, 0, 0.3);
}

.notice.notice-warning:before {
  border-color: transparent transparent rgba(255, 152, 0, 0.3);
}

.notice.notice-error {
  border-color: rgba(244, 67, 54, 0.3);
}

.notice.notice-error:before {
  border-color: transparent transparent rgba(244, 67, 54, 0.3);
}

/* Notice with Icon */
.notice.notice-with-icon {
  padding-left: 60px;
  text-align: left;
}

.notice.notice-with-icon:before {
  content: "ℹ️";
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  border: none;
  width: auto;
  height: auto;
  z-index: 2;
}

.notice.notice-with-icon.notice-success:before {
  content: "✅";
}

.notice.notice-with-icon.notice-warning:before {
  content: "⚠️";
}

.notice.notice-with-icon.notice-error:before {
  content: "❌";
}

.color-search {
  color: var(--theme-color);
  font-weight: 600;
}

.columleft_body {
  float: left;
  width: 300px
}

.columright_body {
  float: left;
  width: calc(100% - 350px);
}

@media only screen and (max-width:600px) {

  .columleft_body,
  .columright_body {
    float: none;
    width: 100%;
    margin-bottom: 20px
  }
}

.video-tags {
  display: inline-block;
  list-style-type: none;
  margin-bottom: 5px;
  font-weight: 400;
}

.actress-tag {
  list-style-type: none;
  margin: 0;
}

.actress-tag a,
.actress-tag span {
  color: #fff;
  display: inline-flex;
  font-size: 14px;
  padding: 0px 5px 0px 5px;
  margin-top: 5px;
  white-space: nowrap;
  background: #2b2b2b;
  border-left: 3px solid var(--theme-color);
  border-radius: 0 4px 4px 0;
}

.actress-tag a:hover,
.actress-tag span:hover {
  background-color: var(--theme-color);
  color: #fff;
}

/* Modern Utility Classes */
.glass-effect {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.gradient-text {
  background: linear-gradient(135deg, var(--theme-color), var(--theme-color-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hover-lift {
  transition: none;
  /* Disabled transition */
}

.hover-lift:hover {
  transform: none;
  /* Disabled transform */
}

.fade-in {
  animation: none;
  /* Disabled animation */
}

/* SEO & Performance Optimizations */
.post {
  contain: layout style paint;
  /* Tối ưu rendering */
}

/* Disabled will-change for better performance */
@media (min-width: 1024px) and (hover: hover) {
  .post:hover {
    will-change: auto;
    /* Disabled will-change */
  }

  .post:not(:hover) {
    will-change: auto;
  }
}

/* Tối ưu images với dynamic aspect ratio */
.post img,
.thumb img {
  content-visibility: auto;
  /* Lazy rendering */
  contain-intrinsic-size: var(--img-intrinsic-width, 300px) var(--img-intrinsic-height, 200px);
  /* Dynamic placeholder size */
}

/* Accessibility Improvements - Force disable all animations */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0s !important;
  }
}

/* Global animation disable for performance */
*,
*::before,
*::after {
  animation-duration: 0s !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0s !important;
}

/* Focus States for Better Accessibility */
.post:focus-within,
.btn-views:focus,
.btn-like:focus,
.btn-dislike:focus,
.srv:focus {
  outline: 2px solid var(--theme-color);
  outline-offset: 2px;
}

/* Dark Mode Enhancements */
@media (prefers-color-scheme: dark) {
  :root {
    --text-primary: #f0f0f0;
    --text-secondary: #e0e0e0;
    --bg-primary: #050505;
    --bg-secondary: #151515;
  }
}

/* Core Web Vitals Optimizations - Disabled GPU acceleration */
.post {
  transform: none;
  /* Disabled GPU layer for better performance */
}

.thumb {
  aspect-ratio: var(--fv-thumb-aspect-ratio, 16/9);
  /* Sử dụng dynamic aspect ratio */
}

/* Optimize for LCP - Priority hints for images */
.post:nth-child(-n+4) img {
  /* First 4 images - high priority for LCP */
  image-rendering: auto;
}

.post:nth-child(n+5) img {
  /* Remaining images - normal priority */
  image-rendering: auto;
}

/* Print Styles */
@media print {
  .post:hover {
    transform: none;
    box-shadow: none;
  }

  .thumb:before,
  .thumb:after {
    display: none;
  }

  .pagination,
  .btn-views,
  .btn-like,
  .btn-dislike,
  .srv {
    display: none;
  }

  /* Disable all animations in print */
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* =============================================
   No-Animations Performance Override
   ============================================= */

/* 
 * No Animations CSS - Disable all animations for better performance
 * This file overrides all animations and transitions to improve page performance
 */

/* Global animation and transition disable */
*,
*::before,
*::after {
  animation-duration: 0s !important;
  animation-delay: 0s !important;
  animation-iteration-count: 1 !important;
  animation-fill-mode: none !important;
  animation-play-state: paused !important;

  transition-duration: 0s !important;
  transition-delay: 0s !important;
  transition-property: none !important;

  will-change: auto !important;
}

/* Disable transforms only for hover and animation effects, not layout */
.post:hover,
.btn-ajax:hover,
.hover-lift:hover,
.post:hover .thumb img,
.thumb img:hover,
.post:hover .thumb:before,
.post:hover .thumb:after,
.span-menu:hover,
.span-search:hover,
.logo:hover .logo-text {
  transform: none !important;
}

/* Allow essential layout transforms - only for mobile */
@media screen and (max-width: 1024px) {
  .span-menu {
    transform: translateY(-50%) !important;
    /* Allow centering */
  }

  .search-container {
    transform: translateY(-50%) !important;
    /* Allow centering */
  }
}

/* Disable smooth scrolling */
html {
  scroll-behavior: auto !important;
}

/* These are already handled above in the global section */

/* Disable all pseudo-element animations */
.post::before,
.post::after,
.thumb::before,
.thumb::after {
  animation: none !important;
  transition: none !important;
}

/* Disable specific animation transforms but allow layout transforms */
.post:hover::before {
  left: -100% !important;
  /* Keep hidden instead of animating */
}

/* Disable dropdown animations */
.lang-dropdown,
.dropdown-overlay {
  animation: none !important;
  transition: none !important;
}

/* Disable loading animations */
.loading-shimmer,
.skeleton,
.spinner {
  animation: none !important;
  background: #2a2a2a !important;
}

/* Disable ripple effects */
.cripple {
  animation: none !important;
}

/* Force static states for all interactive elements */
.post,
.btn-views,
.btn-like,
.btn-dislike,
.srv {
  animation: none !important;
  transition: none !important;
}

/* Disable GPU acceleration */
.post,
.gpu-accelerated {
  transform: none !important;
  will-change: auto !important;
}

/* Override any remaining keyframe animations */
@keyframes fadeInUp,
@keyframes fadeInScale,
@keyframes slideInRight,
@keyframes ripple,
@keyframes pulse,
@keyframes shimmer,
@keyframes dropdownFadeIn,
@keyframes mobileDropdownFadeIn,
@keyframes overlayFadeIn,
@keyframes slideInFromLeft,
@keyframes bounceIn,
@keyframes spin,
@keyframes pulse-glow {
  0%,
  100% {
    opacity: 1;
    transform: none;
    box-shadow: inherit;
    background-position: 0 0;
  }
}

/* Ensure no elements use animations */
.fade-in,
.post:nth-child(1),
.post:nth-child(2),
.post:nth-child(3),
.post:nth-child(4),
.h1-title,
#primary-nav {
  animation: none !important;
  animation-delay: 0s !important;
}

/* Mobile specific overrides */
@media (max-width: 1023px) {
  * {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}

/* Print media overrides */
@media print {
  * {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}

/* Accessibility - respect user preferences but still disable */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}

/* Force disable for specific classes that might have animations */
.animated,
.animate__animated,
.aos-animate,
.wow {
  animation: none !important;
  transition: none !important;
  transform: none !important;
}

/* Disable any CSS variables that control animations */
:root {
  --transition-fast: 0s !important;
  --transition-normal: 0s !important;
  --transition-slow: 0s !important;
  --animation-duration: 0s !important;
}

/* Ensure desktop layout is not affected */
@media screen and (min-width: 1025px) {
  .header-content {
    justify-content: space-between !important;
    gap: 16px !important;
  }

  .logo {
    position: relative !important;
    flex-shrink: 0 !important;
    transform: none !important;
  }

  .search-container {
    position: relative !important;
    flex: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    transform: none !important;
    max-width: 400px !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    bottom: auto !important;
  }

  .form-search {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    max-width: 320px !important;
  }
}

/* Ensure logo centering on mobile */
@media screen and (max-width: 1024px) {
  .header-content {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    min-height: 56px !important;
    width: 100% !important;
  }

  .logo {
    flex: 1 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    position: relative !important;
    z-index: 1000 !important;
  }

  /* Ensure logo never moves when menu opens */
  .logo,
  .logo.hidden {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    position: relative !important;
  }

  .span-menu {
    position: absolute !important;
    left: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 1002 !important;
  }

  .search-container {
    position: absolute !important;
    right: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
  }
}

/* Additional overrides for specific elements */
.post,
.post *,
.btn-ajax,
.btn-ajax *,
.dropdown,
.dropdown *,
.lang-dropdown,
.lang-dropdown *,
.header,
.header *,
.main-menu,
.main-menu *,
.thumb,
.thumb *,
.logo,
.logo *,
.search-container,
.search-container *,
.form-search,
.form-search * {
  animation: none !important;
  transition: none !important;
  will-change: auto !important;
}

/* Allow essential transforms for layout only - mobile only */
@media screen and (max-width: 1024px) {

  .span-menu,
  .search-container {
    transform: translateY(-50%) !important;
  }
}

/* Keep buttons in their containers */
.span-menu:hover,
.span-search:hover {
  transform: none !important;
}

.span-menu.responsive,
.span-search.responsive {
  transform: translateY(-50%) !important;
  /* Keep centered position */
  position: absolute !important;
  /* Keep absolute positioning */
}

/* Ensure mobile search works properly */
@media screen and (max-width: 1024px) {

  .main-search-2,
  .form-search-2,
  .form-search-2 * {
    animation: none !important;
    transition: none !important;
  }

  /* Force search container to stay in place */
  .search-container {
    position: absolute !important;
    right: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
  }

  /* Force search button to stay in container */
  .span-search,
  .span-search.responsive,
  .span-search:hover {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
    margin: 0 !important;
  }

  /* Force menu button to stay in position */
  .span-menu,
  .span-menu.responsive,
  .span-menu:hover {
    position: absolute !important;
    left: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 1002 !important;
    width: 44px !important;
    height: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
  }

  /* Force menu button icons to be centered */
  .span-menu i,
  .span-menu.responsive i {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
    display: block !important;
  }

  /* Disable all transitions for menu button */
  .span-menu,
  .span-menu.responsive,
  .span-menu i,
  .span-menu.responsive i {
    transition: none !important;
    animation: none !important;
    will-change: auto !important;
  }

  /* Prevent layout shift when changing content */
  .span-menu {
    contain: layout style !important;
  }
}

/* Force disable for jQuery animations */
.ui-effects-wrapper,
.ui-effects-wrapper * {
  animation: none !important;
  transition: none !important;
}

/* Disable any remaining vendor prefixes for animations only */
*,
*::before,
*::after {
  -webkit-animation: none !important;
  -moz-animation: none !important;
  -o-animation: none !important;
  -ms-animation: none !important;

  -webkit-transition: none !important;
  -moz-transition: none !important;
  -o-transition: none !important;
  -ms-transition: none !important;
}

/* Disable vendor prefix transforms only for hover effects */
.post:hover,
.btn-ajax:hover,
.hover-lift:hover {
  -webkit-transform: none !important;
  -moz-transform: none !important;
  -o-transform: none !important;
  -ms-transform: none !important;
}

/* =============================================
   Inline Styles from header.php
   ============================================= */

*::-webkit-scrollbar {
  height: 4px;
  width: 4px;
}

*::-webkit-scrollbar-thumb {
  background: var(--theme-color);
  border-radius: 4px;
  height: 4px;
  width: 4px;
}

*::-webkit-scrollbar-track {
  background: #1b1b1b;
  height: 4px;
  width: 4px;
}

@media screen and (max-width: 480px) {
  .logo-text {
    font-size: 2.1rem;
    letter-spacing: 0.4px;
  }
}

/* =============================================
   Search Autocomplete (WP feature)
   ============================================= */
.search-autocomplete-wrapper {
  position: relative;
}

.autocomplete-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: none;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  z-index: 10000;
  display: none;
  max-height: 300px;
  overflow-y: auto;
}

.autocomplete-dropdown.active {
  display: block;
}

.autocomplete-dropdown .autocomplete-item {
  padding: 10px 16px;
  color: #e0e0e0;
  cursor: pointer;
  font-size: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.autocomplete-dropdown .autocomplete-item:last-child {
  border-bottom: none;
}

.autocomplete-dropdown .autocomplete-item:hover,
.autocomplete-dropdown .autocomplete-item.selected {
  background: rgba(var(--theme-color-rgb), 0.2);
  color: #fff;
}

.autocomplete-dropdown .autocomplete-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.autocomplete-dropdown .autocomplete-item span {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* =============================================
   Video Player Styles (WP)
   ============================================= */
.video-wrapper {
  position: relative;
  aspect-ratio: 16/9;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-wrapper .player-poster {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

/* =============================================
   Banner Ads (WP)
   ============================================= */
.fv-banner {
  text-align: center;
  margin: 16px 0;
}