ul.server-list {
    margin-top: 2px;
}

.ad-container {
    display: inline-block;
    text-align: center;
}
.ad-container a{
    margin-top: 5px;
    display: block;
}

.backup-server a.btn-episode {
    cursor: pointer;
    padding: 7px;
}

#jwplayer {
    height: 100% !important;
}

.server-group .list-episode {
    max-height: 300px;
    overflow: auto;
}

.list-episode .episode {
    display: inline-block;
    text-align: center;
    padding: 3px;
    margin: 0 !important;
}

.list-episode .episode a {
    white-space: nowrap;
    text-overflow: ellipsis;
    -ms-text-overflow: ellipsis;
    overflow: hidden;
}

.btn3d {
    padding: 0 !important;
    width: 100%;
}

.Wdgt .block-movie {
    padding: 10px;
    background: rgb(19, 19, 19);
}
.Wdgt .block-movie a {
    margin-bottom: 5px;
    display: block;
    position: relative;
}
.Wdgt .block-movie a:hover > span {
    background: rgba(0, 0, 0, 0.8) none repeat scroll 0% 0%;
}
.Wdgt .block-movie a:hover {
    opacity: 0.8;
}

.Wdgt .block-movie a img {
    width: 100%;
    height: 157px;
}
.Wdgt .block-movie span {
    background: rgba(0, 0, 0, 0.5) none repeat scroll 0% 0%;
    display: block;
    bottom: 0px;
    position: absolute;
    width: 100%;
    color: #FFF;
    padding: 5px;
}
.Wdgt .block-movie span h3 {
    display: block;
    /*overflow: hidden;*/
    /*text-overflow: ellipsis;*/
    /*white-space: nowrap;*/
    width: 100%;
    color: #f5c864;
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    margin: 5px 0px;
}
.Wdgt .block-movie span h4 {
    color: #FFF;
    font-size: 12px;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
    text-decoration: none;
    margin: 0px;
}
/* SEE-MORE STYLE 1: Custom Nút Xem Thêm */
a.see-more {
  background: linear-gradient(to right, rgba(21,29,37,0), #194161);
  display: inline-block;
  text-align: center;
  margin: 5px 0;
  padding: 6px 18px;
  border-radius: 20px;
  transition: all 0.4s ease;
  color: #ffffff;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-decoration: none;
  float: right;
  width: auto;
  min-width: 100px;
  position: relative;
  overflow: hidden;
}

/* Border animation */
a.see-more::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid #ffffff;
  border-radius: 20px;
  transform: scaleX(0);
  transition: transform 0.4s ease;
  transform-origin: left;
}

a.see-more:hover::after {
  transform: scaleX(1);
}
/* Container overlay mẫu netflix work-open*/
.movie-card {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
}
.movie-card img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform .3s ease;
}
.movie-card:hover img {
    transform: scale(1.05);
}

/* Overlay chi tiết */
.mv-overlay-card {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.85), rgba(0,0,0,.3));
    color: #fff;
    opacity: 0;
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: opacity .25s ease;
}
.movie-card:hover .mv-overlay-card {
    opacity: 1;
}

/* Tiêu đề */
.mv-overlay-card h3 {
    margin: 0 0 4px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
}

/* Meta (rating + năm) */
.mv-overlay-card .meta {
    font-size: 12px;
    color: #facc15; /* vàng nổi bật */
    margin: 0 0 6px;
}

/* Mô tả ngắn */
.mv-overlay-card .desc {
    font-size: 12px;
    line-height: 1.4;
    color: #e5e7eb;
    margin: 0;
}
/* Container overlay mẫu netflix work-end*/
/* Poster làm mốc cho badge - WorkCustom Phần CSS Cho Ngôn Ngữ Của Phim - work-open*/
.Image,
.Image.movie-card{
  position:relative;
  overflow:hidden;
}

/* Badge ngôn ngữ */
.badge-lang{
  position:absolute;
  bottom:8px;
  right:8px;
  background: rgba(0,0,0,.75);    /* nền tối dễ đọc */
  color: #ffd700;                 /* chữ vàng giống "Tập phim" */
  font-weight:600;
  padding:4px 10px;
  border-radius:999px;            /* pill gọn đẹp */
  line-height:1.1;
  z-index:3;
  pointer-events:none;

  /* luôn 1 dòng */
  white-space:nowrap;
  max-width:calc(100% - 16px);
  overflow:clip;

  /* PC: chữ nhỏ hơn */
  font-size: clamp(6px, 0.85vw, 9px);

  letter-spacing:.1px;
  box-shadow:0 2px 6px rgba(0,0,0,.25);
  transition:opacity .25s, transform .25s;
}

/* Hover poster: badge lặn nhẹ (nếu không muốn thì xoá block này) */
.TPostMv:hover .badge-lang{
  opacity:0;
  transform:translateY(4px);
}

/* === Chỉ fix mobile: nhỏ hơn PC === */
@media (max-width: 768px){
  .badge-lang{
    font-size: 10px;  /* nhỏ hơn cho mobile */
  }
}

@media (max-width: 480px){
  .badge-lang{
    font-size: 11px;  /* mobile rất nhỏ thì nhích lên chút để dễ đọc */
  }
}
/* Poster làm mốc cho badge - WorkCustom Phần CSS Cho Ngôn Ngữ Của Phim - work-end*/
/* Episode search – underline, non-sticky - WorkCustom Tim Tap Nhanh - work-open*/
.ep-search {
  position: relative;
  z-index: 6;
  padding-top: 2px;
  background: transparent;
}

#searchBox {
  all: unset;
  -webkit-appearance: none;
  box-sizing: border-box;
  display: block;
  width: 100%;

  padding: 12px 10px 12px 48px;
  background-color: transparent;

  /* icon & underline mặc định CAM */
  background-image: url("data:image/svg+xml;utf8,\
    <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff7f00' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'>\
      <circle cx='11' cy='11' r='8'/>\
      <line x1='21' y1='21' x2='16.65' y2='16.65'/>\
    </svg>");
  background-repeat: no-repeat;
  background-position: 14px 50%;
  background-size: 18px 18px;

  color: #e7ecf2;
  font-size: 16px;
  line-height: 1.3;

  border: none !important;
  box-shadow: inset 0 -2px 0 #ff7f00;   /* underline CAM mặc định */
  transition: box-shadow .18s ease, color .18s ease, transform .08s ease, background-image .18s ease;
}

#searchBox::placeholder {
  color: #8c96a3;
  opacity: .9;
}

/* Hover nhẹ */
#searchBox:hover {
  box-shadow: inset 0 -2px 0 #ffa64d; /* cam nhạt hơn */
}

/* Focus: underline và icon đổi sang XANH DƯƠNG */
#searchBox:focus {
  box-shadow: inset 0 -2px 0 #1e90ff, 0 4px 18px rgba(0,0,0,.25);
  transform: translateY(-1px);
  background-image: url("data:image/svg+xml;utf8,\
    <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e90ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'>\
      <circle cx='11' cy='11' r='8'/>\
      <line x1='21' y1='21' x2='16.65' y2='16.65'/>\
    </svg>");
}

/* Khi có nội dung: vẫn underline cam nhạt */
#searchBox:not(:placeholder-shown) {
  box-shadow: inset 0 -2px 0 #ffa64d;
}

/* Mobile tinh chỉnh */
@media (max-width:480px) {
  #searchBox {
    font-size: 15px;
    padding-left: 46px;
  }
}
/* Episode search – underline, non-sticky - WorkCustom Tim Tap Nhanh - work-end*/
/* ---- WCustom phần tìm kiếm tên phim gợi ý (dễ chỉnh sửa) ---- work-open */
/* Neo dropdown ngay dưới ô tìm kiếm, không che input */
.Search { position: relative; z-index: 100; }

#suggest-box{
  position: absolute;
  left: 0; right: 0; top: calc(100% + 8px);

  display: none; opacity: 0; transform: translateY(-4px);
  z-index: 10000;

  background: #121418;
  background-image: linear-gradient(180deg, rgba(255,255,255,.03), rgba(0,0,0,.08));
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 12px;
  box-shadow: 0 18px 48px rgba(0,0,0,.42);

  overflow: auto;
  max-height: 60vh;
  max-width: 100vw;

  transition: opacity .16s ease, transform .16s ease;
  will-change: transform, opacity;
  -webkit-overflow-scrolling: touch;
}
#suggest-box.open { display: block; opacity: 1; transform: translateY(0); }

/* Item */
#suggest-box .item{
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  color: #e9ecf3; text-decoration: none;
  transition: background .12s ease, color .12s ease;
  outline: none;
}
#suggest-box .item:hover,
#suggest-box .item.active{ background: #1b2027; }

/* Focus-visible (dùng bàn phím) */
#suggest-box .item:focus-visible{
  box-shadow: 0 0 0 2px rgba(122,183,255,.35) inset;
  border-radius: 10px;
}

/* Ảnh + tiêu đề */
#suggest-box img{
  width: 38px; height: 52px; object-fit: cover;
  border-radius: 8px; background: #2a2f38; flex: 0 0 auto;
}
#suggest-box .title{
  font-size: 14px; line-height: 1.25;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Highlight + trạng thái */
#suggest-box .hl{ color: #7ab7ff; font-weight: 600; }
#suggest-box .loading,
#suggest-box .empty{ padding: 12px 14px; color: #9aa2b1; font-size: 14px; }

/* Scrollbar đẹp */
#suggest-box::-webkit-scrollbar{ width: 10px; }
#suggest-box::-webkit-scrollbar-track{ background: transparent; }
#suggest-box::-webkit-scrollbar-thumb{
  background: rgba(255,255,255,.14);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
#suggest-box:hover::-webkit-scrollbar-thumb{ background: rgba(255,255,255,.24); }
#suggest-box{ scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.24) transparent; }

/* Mobile */
@media (max-width: 640px){
  #suggest-box{ top: calc(100% + 6px); border-radius: 10px; }
  #suggest-box .item{ padding: 12px 14px; gap: 12px; }
  #suggest-box img{ width: 40px; height: 56px; border-radius: 10px; }
  #suggest-box .title{ font-size: 15px; }
}

/* Giảm chuyển động cho người dùng chọn reduce motion */
@media (prefers-reduced-motion: reduce){
  #suggest-box{ transition: none; }
  #suggest-box .item{ transition: none; }
}
/* ---- WCustom phần tìm kiếm tên phim gợi ý (dễ chỉnh sửa) ---- work-end */