/* ===== Global ===== */body {  background: linear-gradient(135deg, #0d0d0d, #1a1a1a, #0f0f0f);  color: #f5f5f5;  font-family: 'Segoe UI', Tahoma, sans-serif;  margin: 0;  padding: 0;  line-height: 1.6;  top: 0 !important;}/* ===== Header ===== */.top-header {  background: #111;  border-bottom: 3px solid #ff0033;  box-shadow: 0 4px 15px rgba(0,0,0,0.6);  padding: 15px 30px;  min-height: 90px;  display: flex;  align-items: center;  justify-content: space-between;  flex-wrap: wrap;}.logo {  height: 80px;  margin-right: 17px;}@media (min-width: 768px) {  .logo { height: 90px; }}@media (min-width: 1200px) {  .logo { height: 110px; }}.brand-logo {  display: inline-flex;  flex-direction: column;  line-height: 1;}.brand-main {  font-size: 1.4rem;  letter-spacing: 1px;}.brand-xmovie {  color: #0d6efd; /* น้ำเงิน */}.brand-hub {  color: #dc3545; /* แดง */  font-weight: 800;}.brand-dotcom {  font-size: 0.7rem;  color: #ffffff;  opacity: 0.85;  margin-top: -2px;  align-self: flex-end; /* ชิดขวา */}/* ===============================   Mobile Logo Scaling================================ */@media (max-width: 768px) {  .brand-main {    font-size: 1.05rem;   /* จาก 1.4rem */    letter-spacing: 0.5px;  }  .brand-dotcom {    font-size: 0.6rem;    margin-top: -1px;  }}@media (max-width: 480px) {  .brand-main {    font-size: 0.95rem;  }  .brand-dotcom {    font-size: 0.55rem;  }}.promo-text {  font-size: 1rem;  font-weight: 500;  color: #eee;  text-align: center;  white-space: nowrap;  overflow: hidden;  text-overflow: ellipsis;}@media (max-width: 768px) {  .promo-text { display: none !important; }  .hero-section {    display: none;  }}/* ===== Language & Search ===== */.search-box input {  border: 1px solid #555;  padding: 0.5rem 1rem;  background: #1c1c1c;  color: #fff;  width: 240px;  border-radius: 8px;}.search-box input::placeholder { color: #aaa; }.btn-search {  background: linear-gradient(45deg, #28a745, #1f9e40);  color: #fff;  font-weight: bold;  padding: 0.5rem 1rem;  border-radius: 8px;  transition: 0.3s;}.btn-search:hover {  background: linear-gradient(45deg, #34d058, #2ebf50);  transform: scale(1.05);}.language-switcher .btn-outline-light {  border-color: #555;  color: #ddd;}.language-switcher .btn-outline-light:hover {  background: #ff0033;  border-color: #ff0033;  color: #fff;  box-shadow: 0 0 12px rgba(255,0,60,0.8);}/* ปุ่ม Support */.btn-danger {  background: linear-gradient(45deg, #ff0033, #ff3366);  border: none;  font-weight: 700;  border-radius: 8px;  box-shadow: 0 4px 12px rgba(255,0,60,0.6);  transition: all 0.3s ease;}.btn-danger:hover {  transform: scale(1.05);  box-shadow: 0 0 18px rgba(255,0,80,0.9);}/* Support Page Fix */.support-qr img {    width: 100%;    height: auto;    max-width: 260px;    display: block;    margin: 10px auto;}.support-box {    padding: 10px 0;}/* ===== Navbar ===== */.navbar {  border-top: 2px solid #ff0033;  background: rgba(17, 17, 17, 0.95) !important;  backdrop-filter: blur(6px);}.navbar-nav .nav-link {  font-size: 1.2rem;  font-weight: 600;  padding: 0.8rem 1.2rem;  color: #fff !important;  transition: 0.3s;}.navbar-nav .nav-link:hover,.navbar-nav .nav-link.active {  color: #ff0033 !important;  text-shadow: 0 0 8px rgba(255,0,64,0.9);  border-bottom: 2px solid #ff0033;}@media (min-width: 992px) {  .navbar-nav .nav-link {    font-size: 1.4rem !important;    padding: 1rem 1.5rem !important;  }}/* ปุ่ม ☰ */.tag-toggle-btn{  width:38px;height:34px;  border-radius:10px;  border:1px solid rgba(255,255,255,.35);  background:rgba(255,255,255,.06);  color:#fff;  display:flex;align-items:center;justify-content:center;  font-size:18px; line-height:1;}.tag-toggle-btn:hover{  background:rgba(220,53,69,.15);  border-color:#dc3545;}.menu-tag-panel{  position: fixed;              /* ✅ อยู่เหนือทุก section */  z-index: 2147483647;          /* ✅ บนสุด */  display:none;  width:560px;  max-width:70vw;}.menu-tag-panel.show{ display:block; }.menu-tag-inner{  border:2px solid rgba(220,53,69,.85);  border-radius:16px;  background: rgba(0,0,0,.35);  /* ✅ โปร่งใสเห็น content */  backdrop-filter: blur(10px);  -webkit-backdrop-filter: blur(10px);  box-shadow: 0 14px 40px rgba(0,0,0,.55);  padding:12px;}/* ✅ 2 คอลัมน์ (แนวตั้ง) คอลัมน์ละ 10 tag */.menu-tag-list{  display: grid;  grid-auto-flow: column;         /* เติมจากบนลงล่างก่อน แล้วค่อยไปคอลัมน์ถัดไป */  grid-template-rows: repeat(10, auto); /* ✅ 10 แถวพอดี */  grid-auto-columns: 1fr;         /* 2 คอลัมน์ */  gap: 8px 10px;                  /* row-gap / col-gap */  align-items: start;}/* ให้ pill เต็มความกว้างคอลัมน์ */.menu-tag-list .tag-item{  width: 100%;  justify-content: center;        /* หรือเอาออกถ้าอยากชิดซ้าย */  white-space: nowrap;  overflow: hidden;  text-overflow: ellipsis;  margin: 0;                      /* กันชนกับ style เก่า */}.tag-item{  height:34px;  display:flex;  align-items:center;  padding:0 12px;  border:1px solid rgba(255,255,255,.18);  border-radius:999px;  color:#ffc107;  text-decoration:none;  font-size:14px;  background: rgba(0,0,0,.22);}.tag-item:hover{  background: rgba(220,53,69,.18);  border-color: rgba(220,53,69,.75);  color:#fff;}@media (max-width: 991.98px){  #tagToggle, #tagPanel { display:none !important; }}/* ===== Sidebar ===== */.sidebar {  background: rgba(20,20,20,0.85);  border-radius: 12px;  padding: 1.5rem;  backdrop-filter: blur(6px);}.sidebar h6 {  font-size: 1.3rem;  font-weight: bold;  color: #ff0033;  margin-bottom: 1.5rem;  text-transform: uppercase;  text-shadow: 0 0 6px rgba(255,0,64,0.8);}.sidebar a {  display: flex;  align-items: center;  gap: 12px;  font-size: 1.1rem;  padding: 0.75rem 1rem;  margin-bottom: 0.5rem;  color: #ccc;  border-radius: 8px;  transition: 0.3s;}.sidebar a:hover {  background: linear-gradient(90deg, #ff0033, #ff6699);  color: #fff;  transform: translateX(8px);  box-shadow: 0 0 14px rgba(255,0,80,0.8);}/* ===== H1 ===== */.genre-title {    font-size: 1.7rem;   /* ลอง 1.4–1.8 ได้ตามใจ */    font-weight: 600;    line-height: 1.3;}.movie-title {    font-size: 1.7rem; /* ปรับขนาดได้ */    margin-bottom: 10px;}.popular-title {    font-size: 1.7rem;    font-weight: 600;    line-height: 1.3;}@media (max-width: 768px) {    .popular-title {        font-size: 1.4rem;    }}.seo-h1 {    position: absolute;    left: -9999px;    width: 1px;    height: 1px;    overflow: hidden;}/* ===== Movie Card ===== */.movie-grid {  display: grid;  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));  gap: 20px;}.movie-card {  background: #1a1a1a;  border-radius: 12px;  overflow: hidden;  transition: all 0.4s ease;  text-align: center;  position: relative;}.movie-card img.movie-poster {  width: 100%;  height: 260px;  object-fit: cover;  border-radius: 12px;}.movie-card:hover {  transform: scale(1.05);  box-shadow: 0 12px 30px rgba(255,0,60,0.4);}small.text-muted {  color: #fff !important;  font-weight: 600;  text-shadow: 0 0 6px rgba(0,0,0,0.7);}.movie-overlay {  position: absolute;  bottom: 0;  width: 100%;  padding: 1rem;  background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);  backdrop-filter: blur(4px);  opacity: 0;  transition: opacity 0.4s ease;}.movie-card:hover .movie-overlay { opacity: 1; }.movie-overlay h6 {  margin: 0;  font-size: 1rem;  font-weight: bold;  color: #fff;}.movie-overlay .play-btn {  display: inline-block;  margin-top: 0.6rem;  padding: 0.5rem 1.2rem;  background: linear-gradient(45deg, #ff0033, #ff3366);  color: #fff;  font-weight: bold;  border-radius: 30px;  text-decoration: none;  transition: 0.3s;}.movie-overlay .play-btn:hover {  background: #fff;  color: #000;  transform: scale(1.05);}/* ===== Pagination ===== */.custom-pagination .page-item .page-link {  background-color: #222;  color: #fff;  border: none;  margin: 0 2px;  padding: 10px 18px;  font-size: 0.9rem;  border-radius: 50px;  transition: 0.3s;}.custom-pagination .page-item .page-link:hover {  background-color: #555;}.custom-pagination .page-item.active .page-link {  background: linear-gradient(45deg, #ff0033, #ff6699);  font-weight: bold;  color: #fff;  box-shadow: 0 0 10px rgba(255,0,60,0.8);}.custom-pagination .page-item.disabled .page-link {  background-color: #222;  color: #777;  pointer-events: none;}/* ===== Mobile ===== */@media (max-width: 768px) {  .sidebar { display: none !important; }  .dropdown .btn { width: 100% !important; }  .search-box { width: 100% !important; }  .movie-card { width: 100% !important; }}.section-title {  margin-bottom: 30px;  font-size: 1.5rem;  font-weight: 700;  color: #fff;  display: flex;  align-items: center;  gap: 8px;  text-shadow: 0 0 6px rgba(255,0,64,0.7);}.dropdown-menu {  background: #1a1a1a;  border: 1px solid #ff0033;  border-radius: 8px;  box-shadow: 0 4px 12px rgba(0,0,0,0.6);}.dropdown-menu .dropdown-item {  color: #eee;  transition: 0.3s;}.dropdown-menu .dropdown-item:hover {  background: linear-gradient(90deg, #ff0033, #ff3366);  color: #fff;}.hero-section h1 {  font-size: 2.8rem;  font-weight: 900;  color: #fff;  margin-bottom: 15px;}.hero-section h1 span {  color: #ff0033; /* ขับคำว่า XMOVIEHUB ให้เด่น */}.hero-section p {  color: #ddd !important;  opacity: 1 !important;  font-size: 1.2rem;}h2 {    color: #ffffff !important;    opacity: 1 !important;    filter: none !important;}h4 {    color: #ffffff !important;    opacity: 1 !important;    filter: none !important;}/* ==== Pagination Responsive Fix ==== */.pagination-wrapper {  overflow-x: auto;  white-space: nowrap;  -webkit-overflow-scrolling: touch;  padding-bottom: 6px;}.pagination {  flex-wrap: nowrap !important;  display: inline-flex;}.pagination .page-link {  font-size: 0.9rem;  padding: 8px 14px;  border-radius: 30px;  min-width: 40px;  text-align: center;}/* ======================   VIDEO====================== */.video-full {    width:100%;    max-width:100%;    margin:0;    padding:0;}.video-wrapper {    position: relative;    width: 100%;    padding-bottom: 56.25%;    background:#000;}.video-wrapper iframe {    position:absolute;    top:0; left:0;    width:100%; height:100%;    border:0;}@media(max-width:768px){    .video-full {        width:100vw;        margin-left:50%;        transform:translateX(-50%);    }}/* ======================   SHARE (FINAL FIX)====================== */.share-box {  display: flex;  gap: 16px;  margin: 12px 0;  /* บังคับ font เดียวกันทุกปุ่ม */  font-family: inherit;  font-size: 12px;  font-weight: normal;  line-height: 1.2;}.share-item {  display: inline-flex;              /* สำคัญมาก */  flex-direction: column;  align-items: center;  justify-content: center;  gap: 6px;  color: #ccc;  text-decoration: none;  font-family: inherit;  font-size: inherit;  font-weight: inherit;  line-height: inherit;  letter-spacing: normal;  background: none;}/* reset button ให้เหมือน <a> 100% */button.share-item {  background: none !important;  border: 0 !important;  padding: 0 !important;  margin: 0 !important;  font-family: inherit !important;  font-size: inherit !important;  font-weight: inherit !important;  line-height: inherit !important;  letter-spacing: inherit !important;  color: inherit !important;  text-align: center;  cursor: pointer;  appearance: none;  -webkit-appearance: none;}/* บังคับ span ให้ baseline เท่ากัน */.share-item span {  display: block;  margin-top: 2px;  font-family: inherit;  font-size: inherit;  font-weight: inherit;  line-height: inherit;}/* ICON */.share-item i {  width: 44px;  height: 44px;  border-radius: 50%;  display: flex;  align-items: center;  justify-content: center;  color: #fff;  font-size: 18px;  transition: transform .2s, opacity .2s;}.share-item:hover i {  transform: translateY(-3px);  opacity: .85;}/* COLORS */.twitter i  { background: #1da1f2; }.reddit i   { background: #ff4500; }.telegram i { background: #0088cc; }.copy i     { background: #555; }/* ======================   TAGS====================== */.video-tags {    display:flex;    flex-wrap:wrap;    gap:10px;    margin-bottom:15px;}.tag-item {    display:inline-block;    background:#1c1c1c;    padding:6px 14px;    border-radius:20px;    font-size:14px;    color:#fff;    border:1px solid #333;    text-decoration:none;}/* ======================   RELATED====================== */.related-card img {    width: 100%;    height: 160px;    border-radius: 8px;    object-fit: cover;}.related-title {    font-size: 0.9rem;    font-weight: 600;    color: #ddd;    height: 40px;    overflow: hidden;}.related-views {    font-size: 0.8rem;    color: #bbb;}@media (max-width: 576px) {  .pagination .page-link {    font-size: 0.8rem;    padding: 6px 10px;  }}