:root {
  /* ===== Màu thương hiệu ===== */
  --primary-color: #002333;
  --secondary-color: #e9ecee;
  --accent-color: #17a2b8;

  /* ===== Màu nền & chữ ===== */
  --background-color: #ffffff;
  --item-background-dark-version: #214e63;
  --text-color: #212529;
  --muted-text-color: #6c757d;
  --text-link-dark-color: #93d1ed;

  /* ===== Màu trạng thái ===== */
  --success-color: #28a745;
  --error-color: #dc3545;
  --warning-color: #ffc107;
  --info-color: #17a2b8;

  /* ===== Font ===== */
  --font-family-base: 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  --font-size-base: 16px;
  --font-size-sm: 14px;
  --font-size-lg: 20px;

  /* ===== Spacing & Radius ===== */
  --border-radius: 0.5rem;
  --padding-base: 1rem;
  --margin-base: 1rem;

  /* ===== Shadow ===== */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.15);
}
body{
    padding: 0;
    margin: 0;
    background: var(--primary-color, #002333);
    font-family: var(--font-family-base);
    font-size: var(--font-size-base);
}
body.light-version{
    background: var(--secondary-color);
}
footer .container {
    max-width: 95%;
    margin: auto;
}
.navbar {
  background-color: var(--nav-bg);
  width: 100%;
  max-height: 800px;
  min-height: 100px;
}

/* Top nav row */
.navbar .container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: linear-gradient(to bottom, black, transparent);
  transition: background 0.5s ease;
}
.nav-container { width: 100%; max-width: 1200px; margin: auto; display: flex; justify-content: space-between; align-items: center; padding: 1rem 0px; }

a.navbar-brand { max-width: 250px; padding: 5px; margin: 0px 1rem; }
.nav-container .collapse { display: flex; align-items: center; gap: 1em; }
.secondary{
    color: var(--secondary-color);
}
.title.secondary {
    font-size: 22px;
}
/* Brand Logo */
.navbar-brand img {
  max-height: 40px;
}

/* Toggle button (mobile) */
.navbar-toggler {
  border: none;
  background: transparent;
  font-size: 1.25rem;
  display: none;
  margin-right: 1rem;
}

/* Nav collapse (menu) */
.navbar-nav {
  display: flex;
  gap: 1rem;
  padding-left: 0;
  margin: 0;
  list-style: none;
  position: relative;
}

/* Nav item & link */
.nav-item {
  position: relative;
}

.nav-link {
  color: white;
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  display: block;
  transition: color;
}

.nav-link:hover,
.nav-link:focus {
  color: yellow;
  border-radius: var(--border-radius);
}

/* Dropdown Menu */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--primary-color);
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  min-width: 220px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  z-index: 1000;
  padding: 0.5rem 0;
  list-style: none;
  max-height: 300px;
  overflow: auto;
  scrollbar-width: 2px;
}

.dropdown-menu .nav-link {
  padding: 0.5rem 1rem;
  white-space: nowrap;
}

.dropdown-menu .nav-link:hover {
  background-color: var(--dropdown-hover);
}

/* Show dropdown on hover (desktop) */
.nav-item.dropdown:hover .dropdown-menu {
  display: block;
}
.lang {
    display: inline-block;
    margin: 0.5rem 1rem;
    display: flex;
    align-items: center;
}
.lang > div { display: flex; align-items: center; gap: 5px; }

.lang-select {
    padding: 0.4rem 0.6rem;
    font-size: 1rem;
    background-color: transparent;
    color: white;
    cursor: pointer;
    appearance: none;
    padding-right: 2rem;
    border: none;
    outline: none;
}
.lang-select > * {
    color: black;
}
a.button { padding: 5px 7px; border: 1px solid var(--secondary-color); display: flex; align-items: center; text-decoration: none; cursor: pointer; background: linear-gradient(to right, var(--secondary-color), yellow);  border-radius: 5px; gap: 3px; transition: transform 0.5s ease}
a.button.secondary {background: linear-gradient(to right, yellow, var(--secondary-color)); }
a.button:hover {transform: translateY(-5px); }

.lang-select:focus {
    outline: none;
    border-color: none;
    box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
}
.icon-globe {
  width: 1.2em;
  height: 1.2em;
  vertical-align: middle;
  color: var(--primary-color, #333);
  margin-right: 0.4em;
}
.account{ display: flex; gap: 5px; align-items: center; }
li.user-account{
    position: relative;
}

.dropdown-account {
    display: none;
    list-style: none;
    position: absolute;
    bottom: 0;
    left: 0;
    transform: translate(0%, 100%);
    padding: 10px;
    width: 100%;
    background-color: var(--primary-color);
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
}
.dropdown-account > *,
.dropdown-account > * a
{
    color: var(--secondary-color);
    text-decoration: none;
}
li.user-account:hover .dropdown-account{
    display: block;
}
.container.slide {
    position: relative;
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
    height: 800px;
    border-radius: 10px;
    z-index: 2;
}
.container.slide::after{
    content: '';
    position: absolute;
    width: 100%;
    height: 300px;
    bottom: 0px;
    left: 0px;
    background: linear-gradient(to top, var(--primary-color), transparent);
    z-index: 95;
}
/* Slide mặc định: ẩn, không chiếm không gian, có hiệu ứng mượt */
.index-items {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease-in-out, visibility 0.6s ease-in-out;
    z-index: 0;
}
.container.scroll {background: var(--primary-color);}
/* Slide đang hiển thị: hiện rõ */
.index-items.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}
.index-items.leaving {
    transform: translateX(-100%);
    opacity: 0;
}
.wrapper-bg {
    width: 100%;
    height: 100%;
    background-size: 100%;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 15%;
    padding: 30px;
    box-sizing: border-box;
}
.wrapper-bg::before{
    content: '';
    width: 40%;
    height: 100%;
    background: linear-gradient(to right, black, transparent);
    position: absolute;
    z-index: 2;
    left: 0;
    top: 0;
}
.wrapper-bg > * {
    position: relative;
    z-index: 3;
}
.left-info {
    flex: 1;
    max-width: 35%;
    padding: 20px;
    border-radius: 8px;
    color: #fff;
}
.infor.post-title {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 15px;
    line-height: 1.2;
}
.infor.categories {
    margin-bottom: 10px;
}
.list-category {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.list-category li {
    background: rgb(28, 199, 73);
    padding: 2px 5px;
    border-radius: 2px;
    font-size: 14px;
}
.list-category li a{
    text-decoration: none;
    color: white;
}
.infor.year-episode-total {
    font-size: 16px;
    margin-bottom: 10px;
    opacity: 0.9;
}
.infor.post-content {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
    max-height: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
}
a.play-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: rgb(28, 199, 73);
    border-radius: 100%;
    text-decoration: none;
    transition: background-color 0.3s;
}

a.play-button svg {
    fill: white;
    width: 32px;
    height: 32px;
}

a.play-button:hover {
    background-color: darkgreen;
}
.thumb-movie {
    flex: 0 0 400px;
}
.movi-thumb {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}
.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 24px;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s;
    user-select: none;
    z-index: 99;
}
.prev:hover, .next:hover {
    background: rgba(0, 0, 0, 0.8);
}
.prev {
    left: 15px;
}
.next {
    right: 15px;
}
.nav-category.nav-tab {
    margin: 20px 0;
}
.nav-category.nav-tab .title {
    font-size: 24px;
    margin-bottom: 10px;
}
.series-section .title, .single-section .title {
    font-size: 24px;
    margin-bottom: 10px;
}
.tabs {
    display: flex;
    /* flex-wrap: wrap; */
    gap: 10px;
    list-style: none;
    padding: 0;
    overflow: auto;
    align-items: center;
    white-space: nowrap;
}
.tab {
    padding: 10px 20px;
    background: #f1f1f1;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}
.tab.active {
    background: #007bff;
    color: #fff;
}
.tab:hover {
    background: #0056b3;
    color: #fff;
}
.menu-toggler {
    display: none;
    padding: 10px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}


.items .episode_total p {
    margin: 0 10px 10px;
    color: #666;
}
.items .sub-info {
    display: none;
    flex-direction: column;
}
.items .sub-info .top img {
    width: 100%;
    height: auto;
}
.items .sub-info .bottom {
    padding: 10px;
}
.items .sub-info .bottom h3 {
    font-size: 16px;
    margin-bottom: 5px;
}
.items .sub-info .bottom label {
    display: block;
    margin-bottom: 5px;
    color: #666;
}
.items .sub-info .bottom .description {
    font-size: 14px;
    margin-bottom: 10px;
}
.items .sub-info .bottom a {
    display: inline-block;
    padding: 8px 15px;
    background: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
}
.items .sub-info .bottom a:hover {
    background: #0056b3;
}
.showmore {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    width: auto;
    width: 7%;
    text-align: center;
}
.showmore:hover {
    background: #0056b3;
}

/* Responsive */



.container.mt-4 {
    width: 95%;
    margin: auto;
    height: auto;
}
.col-md-2.row-1 .tabs{
    padding: 0;
    list-style: none;
    margin: 0;
    display: flex;
    justify-content: flex-start;
    gap: 1em;
    max-width: 100%;
}

.col-md-2.row-1 .tabs li.tab{
    padding: 5px 7px;
    border: 1px solid #e5e5e5;
    border-radius: 3px;
    background: #114b66;
    transition: all 0.5s ease;
    color: var(--secondary-color);
    cursor: pointer;
}
.col-md-2.row-1 .tabs li.tab.active{
    color: yellow;
}
.col-md-2.row-1 .tabs li.tab:hover{
    background: var(--primary-color);
    transform: scale(1.01);
}
.row{
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.list-item {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: flex-start;
  height: auto;
}

.items {
  box-sizing: border-box;
  position: relative;
  border-radius: 6px;
  transition: all 0.3s;
  height: 340px;
  flex: 0 0 calc(16.6% - 13px);
}

.items figure {
  margin: 0;
  position: relative;
  height: 100%;
}

.items figure::before{
    content: '';
    position: absolute;
    width: 100%;
    height: 150px;
    background: linear-gradient(to top, var(--primary-color), transparent);
    bottom: 0;
    left: 0;
    z-index: 3;
}
.items .item img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 6px 6px 0 0;
}
.items .item{
    position: relative;
    height: 100%;
}
.items .item > div {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.items .post_title {
  padding: 8px;
  font-weight: bold;
  font-size: 15px;
  text-align: center;
}
.items .post_title h3,
.items .episode_total p,
.items .post_title h3 a
{ padding: 0; margin: 0; color: var(--secondary-color); text-decoration: none}
.items .post_title h3 a:hover {color: yellow; }
.items .episode_total {
  text-align: center;
  font-size: 13px;
  margin-bottom: 10px;
}
.search{
    position: relative;
    border: 1px solid #e5e5e5;
    border-radius: 25px;
    overflow: hidden;
}
input.input.search{
    padding: 5px 10px;
    width: 78%;
    border: none;
    outline: none;
    background: transparent;
    color: var(--secondary-color);
}
.search svg{
    position: absolute;
    right: 0px;
    top: 50%;
    transform: translate(-5px, -50%);
}


.menu-toggler{
    display: none;
    padding: 5px 7px;
    border: 1px solid #e5e5e5;
    border-radius: 3px;
    background: #114b66;
    transition: all 0.5s ease;
    color: var(--secondary-color);
    cursor: pointer;
}


.nav-tab{
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 3.25rem;
}
.nav-tab h2 {
    margin: 0px;
    font-weight: 800;
    color: var(--secondary-color);
}
.nav-tab > div {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
    align-items: center;
}

h2.title {
    color: var(--secondary-color);
}

.single-section {
    margin: 20px 0;
}

.single-section .carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.single-section .carousel-inner {
    display: flex;
    flex-wrap: nowrap;
    gap: 15px;
    transition: transform 0.5s ease;
}


/* Các nội dung bên trong item */
.single-section .items figure {
    margin: 0;
}

.single-section .items img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

.single-section .post_title h3 {
    font-size: 16px;
    margin: 8px 0 4px;
    color: #fff;
}

.single-section .episode_total p {
    font-size: 14px;
    color: #ccc;
}


.single-section .highlight {
    border: 2px solid #fff;
}

/* Nút điều hướng */
.single-section .prev,
.single-section .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 24px;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.3s;
}

.single-section .prev:hover,
.single-section .next:hover {
    background: rgba(0, 0, 0, 0.8);
}

.single-section .prev {
    left: 10px;
}

.single-section .next {
    right: 10px;
}
.items .sub-info {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    
    width: 0;
    padding: 5px;
    height: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: #093549;
    z-index: 11;
    border-radius: 5px;
    overflow: hidden;
    transition: opacity 1s ease;
    opacity: 0;
    border: 1px solid #e5e5e5;
    box-shadow: inset 2px 2px 5px 1px #c5c5c5,
    2px 2px 5px 2px #e5e5e5;
}
.items:hover .sub-info {
    display: none;
    opacity: 1;
    width: 130%;
    min-height: 100%;
    height: auto;
}
.items .sub-info .bottom {
    padding: 0px 8px;
    color: var(--secondary-color);
}
.items .sub-info .bottom h4,
.items .sub-info .bottom p {
    margin: 0;
    padding: 3px 0px;
}
.items .sub-info .bottom a{
    text-decoration: none;
    color: var(--secondary-color);
    transition: color 0.5s ease;
}
.items .sub-info .bottom a:hover{
    color: yellow;
}
.items .sub-info img{
    width: 100%;
    height: 170px;
    transition: transform 0.5s ease;
}
.items .sub-info img:hover{
    transform: scale(1.02);
}
.movie-info{
    display: flex;
    justify-content: space-between;
    gap: 1em;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.movie-info::after{
    content: '';
    position: absolute;
    width: 105%;
    height: 110%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2;
    filter: blur(10px);
}
.movie-info > * {
    z-index: 10;
}
.movie-info .left-movie{
    width: 45%;
    height: 100%;
    padding: 10px;
    background: linear-gradient(to right, var(--primary-color) 70%, rgba(255, 255, 255, 0) 100%);
}
.movie-info .right-movie{
    flex: 1;
    padding: 2rem;
    position: relative;
}
.movie-info .right-movie > p {color: var(--error-color);}
video.md-movie-play{
    border-radius: 10px;
    box-shadow: inset 3px 3px 7px 3px rgba(0, 0, 0, 0.6);
}
.left-movie > * {
    color: var(--secondary-color);
}
.left-movie > * a {
    text-decoration: none;
    color: #93d1ed;
    transition: color 0.5s ease;
}
.left-movie > * a:hover{
    color: yellow;
}
.action-movie{
    margin-top: 10px;
}
a.btn.btn-primary{
    padding: 5px 9px;
    background: rgb(28, 199, 73);
    border-radius: 5px;
    transition: all 0.5s ease;
    color: white;
}
a.btn.btn-primary:hover{
    transform: translateY(-5px);
    background: var(--secondary-color);
    color: var(--error-color);
}
.left-movie div p { margin: 0; padding: 0; }
.left-movie div { margin-bottom: 10px; }
.focus-infor-desc .desc-text {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: all 0.3s ease;
}

.focus-infor-desc.expanded .desc-text {
    -webkit-line-clamp: unset;
    max-height: none;
}
h1.card-title {
    font-family: 'SF Pro', Roboto, Noto Sans, sans-serif !important;
    font-weight: 800;
}
.focus-infor-desc .toggle-desc {
    margin-top: 5px;
    background: transparent;
    border: none;
    color: #007BFF;
    cursor: pointer;
    font-size: 14px;
    padding: 0;
}
.md-3.row-eps
{
    padding: 5px;
    background: #101821;
    border: 1px solid #1d2731;
    margin-top: 1rem;
}
.focus-infor-desc .desc-text {
    color: var(--secondary-color);
}
.focus-infor-desc h3,
p.mt-2
{
    margin: 0;
    margin-bottom: 10px;
    position: relative;
    padding: 5px 0px;
    font-size: 15px;
    padding: 10px 0;
    color: #a5cbef;
    background: -webkit-gradient(linear, left top, right top, from(#ff8a00), to(#da1b60));
    background: linear-gradient(to right, #ff8a00, #ff2070);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
    font-weight: 700;
}
.focus-infor-desc h3::before{
    content: '';
    width: 20%;
    height: 1px;
    position: absolute;
    left: 0;
    bottom: 0;
    background: linear-gradient(to right, var(--secondary-color), yellow);
}

.eps-wrapper {
    overflow: hidden;
    position: relative;
    transition: max-height 0.3s ease-in-out;
}

.eps-wrapper.collapsed {
    max-height: 6.5em; /* khoảng 3 dòng (tùy theo kích thước li) */
}

.toggle-eps-btn {
    margin-top: 8px;
    padding: 4px 8px;
    background: #444;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
}




.watch-container {
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 1em;
}
.watch-left{
    width: 70%;
    height: auto;
}


.video-container {
    position: relative;
    padding-bottom: 56.25%; /* Tỷ lệ 16:9 */
    height: 0;
    overflow: hidden;
    margin-bottom: 20px;
}
.video-container video,
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.watch-container .watch-movie-info {
    background: var(--item-background-dark-version);
    padding: 10px;
    border-radius: 10px;
}
.watch-container .watch-movie-info > * {
    color: var(--secondary-color);
}
.watch-container .watch-movie-info > * a {
    color: var(--text-link-dark-color);
    text-decoration: none;
    transition: all 0.5s ease;
}
.watch-container .watch-movie-info > * a:hover{
    color: yellow;
}


.toggle-desc-btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
}
.toggle-desc-btn:hover {
    background: #0056b3;
}
.row-eps {
    margin-top: 20px;
}
.row-eps ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.row-eps ul li {
    margin-bottom: 10px;
}
.row-eps ul li a {
    color: #007bff;
    text-decoration: none;
    padding: 8px 12px;
    /*border: 1px solid #007bff;*/
    border-radius: 5px;
}
.row-eps ul li a:hover {
    background: #007bff;
    color: white;
}
.breadcrumb {
    background: none;
    padding: 0;
    margin-bottom: 20px;
    display: flex;
    gap: 5px;
    list-style: none;
    color: var(--secondary-color);
}
.breadcrumb a {
    text-decoration: none;
    color: var(--text-link-dark-color);
    transition: all 0.5s ease;
}
.breadcrumb-item + .breadcrumb-item::before {
    content: "›"; /* hoặc →, ⇾, ⮞ */
    margin: 0 6px;
    color: #ccc;
    font-size: 14px;
}
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* Tỷ lệ 16:9 */
    height: 0;
    overflow: hidden;
    margin-bottom: 20px;
}
.video-container video,
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.action-tab {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}
.action-tab a, .action-tab span {
    padding: 5px 10px;
    border-radius: 15px;
    text-decoration: none;
    color: var(--secondary-color);
    background: var(--item-background-dark-version);
}
.action-tab a:hover, .action-tab span:hover {
    background: #007bff;
    color: white;
}
.action-tab a.disabled {
    pointer-events: none;
    opacity: 0.5;
}
.action-tab a.liked, .action-tab a.disliked {
    background: #007bff;
    color: white;
}

.row-eps {
    margin-top: 20px;
}
.row-eps .server {
    margin-bottom: 20px;
}
.row-eps .server h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--secondary-color);
}
.row-eps ul, .md-3.row-eps ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.row-eps ul li, .md-3.row-eps ul li {
    margin-bottom: 10px;
}
.row-eps ul li a, .md-3.row-eps ul li a {
    color: var(--secondary-color);
    text-decoration: none;
    padding: 5px 12px;
    border-radius: 5px;
    background: var(--item-background-dark-version);
}
.row-eps ul li a:hover, .md-3.row-eps ul li a {
    background: #007bff;
    color: white;
}
.row-eps ul li a.active {
    background: #007bff;
    color: white;
}

.watch-movie-info{
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}
.watch-movie-info::before{
    content: '';
    position: absolute;
    width: 100%;
    height: 40px;
    background: linear-gradient(to top, black, transparent);
    height: 70px;
    z-index: 3;
    bottom: 0;
    left: 0;
}
#item-infor-movie {
    height: 100px;
    overflow: hidden;
    position: relative;
    transition: height 0.4s ease;
}

#item-infor-movie.expand {
    height: auto;
    background: none;
}
.toggle-infor-movie {
    position: relative;
    z-index: 4;
    background: transparent;
    outline: none;
    color: var(--secondary-color);
    border: none;
    cursor: pointer;
}
.related-posts.row .list-item .items,
.related-posts.row .list-item .items .item,
.related-posts.row img{
    height: 100%;
}
.related-posts{
    flex: 1;
    display: block !important;
}
.related-posts .list-item {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    height: auto;
}


/* css tiêu đề như youtube watch.php */
.related-posts .list-item .items {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.related-posts .list-item .items figure {
    margin: 0;
    width: 120px;
    flex-shrink: 0;
}

.related-posts .list-item a { text-decoration: none; }

.related-posts .list-item .items figure::before{
    content: '';
    position: absolute;
    background: transparent;
}
.related-posts .list-item .items .item img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-posts .list-item .items .item img:hover {
    transform: scale(1.05);
}

.right-item {
    flex: 1;
}
footer .container {text-align: center; color: var(--secondary-color); }

.related-posts .list-item .items .post_title,
.related-posts .list-item .items .episode_total,
.related-posts .list-item .items .viewer
{
    text-align: left;
    color: var(--secondary-color);
    padding: 0;
    margin: 0;
    margin-bottom: 3px;
}
.related-posts .list-item .items .viewer p { padding: 0; margin: 0; font-size: 13px;}
.post_title h3 {
    font-size: 16px;
    font-weight: 600;
    color: #222;
    margin: 0 0 4px;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Giới hạn 2 dòng */
    -webkit-box-orient: vertical;
}

.episode_total p {
    font-size: 13px;
    color: #666;
    margin: 0;
}
div.load-more {
    text-align: center;
    padding: 5px;
    margin-top: 1em;
}

div.load-more button { padding: 5px 7px; background: linear-gradient(to right, var(--secondary-color), yellow); border-radius: 5px; border: 1px solid var(--secondary-color); outline: none; cursor: pointer; transition: transform 0.5s ease;}
div.load-more button:hover {transform: translateY(-5px);}
.gradien-play-mobile { opacity: 0; transition: opacity 1s ease; width: 100%; height: 100%; position: absolute; top: 0; left: 0; display: flex; align-items: center; justify-content: center; overflow: hidden}
.gradien-play-mobile::before{
    content: '';
    position: absolute;
    width: 120%;
    height: 120%;
    background: var(--primary-color);
    opacity: 0.7;
    filter: blur(10px);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

figure:hover .gradien-play-mobile {
        opacity: 1;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 2;
        cursor: pointer;
    }
    .gradien-play-mobile a {
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        z-index: 3;
    }
    .svg-play-icon {
        transition: transform 0.3s ease;
    }
    .svg-play-icon:hover {
        transform: scale(1.1);
    }
.comments-section { padding: 10px; background: var(--item-background-dark-version); border-radius: 5px; display: flex; flex-direction: column; gap: 5px;}
.comments-section h3 {margin: 0; color: var(--secondary-color); }
.mb-4 .form-group:nth-of-type(1) {
    display: flex;
    gap: 10px;
    margin-bottom: 1em;
}
#comment_content { width: 100%; min-height: 150px; padding: 5px 0px; border-radius: 4px; border: 1px solid #e5e5e5; resize: none; outline: none}

.btn.btn-primary.mt-2 { 
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 0px 10px;
    border: 2px solid #4896d5;
    background: #2271b1;
    border-color: #2271b1;
    color: #fff;
    text-decoration: none;
    text-shadow: none;
    display: inline-block;
    text-decoration: none;
    font-size: 13px;
    line-height: 2.15384615;
    min-height: 30px;
    margin: 0;
    padding: 0 10px;
    cursor: pointer;
    border-width: 1px;
    border-style: solid;
    -webkit-appearance: none;
    border-radius: 3px;
    white-space: nowrap;
    box-sizing: border-box;
    transition: background 0.5s ease;
}
.form-group #user_name {padding: 0 8px; line-height: 2; min-height: 30px; border-radius: 3px; outline: none;}
label[for=user_name] { color: var(--secondary-color); }
#comments-list { max-height: 500px; overflow: auto; color: var(--secondary-color); }
.row-eps .server { margin-bottom: 15px; }
.row-eps .server h3 { margin: 0; display: inline-block; }
.row-eps .toggle-server-btn { 
    margin-left: 10px; 
    padding: 5px 10px; 
    background: #0073aa; 
    color: #fff; 
    border: none; 
    border-radius: 4px; 
    cursor: pointer; 
}
.row-eps .episode-list { 
    margin-top: 10px; 
    padding-left: 20px; 
}
.row-eps .episode-list.collapsed { 
    display: none; 
}
.row-eps .episode-list li { 
    display: inline-block; 
    margin-right: 10px; 
}
.row-eps .episode-list a.active { 
    font-weight: bold; 
    color: #0073aa; 
}



@media (min-width: 1400px) {}

/* 🧠 Desktop thường */
@media (min-width: 1200px) {}

/* 🧠 Tablet ngang */
@media (max-width: 768px) {
    .navbar-toggler{
        display: block;
        color: var(--secondary-color);
    }
    .nav-container .navbar-collapse {
        display: block;
        width: 70%;
        height: 100vh;
        position: fixed;
        background: var(--primary-color);
        top: 0;
        left: -100%;
        z-index: 999;
        box-shadow: 2px 2px 5px 2px rgba(0, 0, 0, 0.8);
        transition: left 1s ease;
    }
    .navbar-collapse.show { left: 0; padding: 0px 5px}
    .watch-container{
        display: flex;
        flex-direction: column;
        
    }
    .lang {
        width: 100%;
        display: flex;
        flex-direction: column;
        margin: 10px 0 0;
    }
    .lang div {
        width: 100%;
        display: flex;
        justify-content: flex-start;
        align-items: center;
        border-bottom: 1px solid var(--secondary-color);
        border-radius: 10px;
        padding: 0;
        margin-bottom: 1em;
    }
    .dropdown-account {
        display: none;
        list-style: none;
        position: absolute;
        bottom: 0;
        left: 0;
        transform: translate(-20%, 100%);
        padding: 10px;
        width: 100%;
        background-color: var(--primary-color);
        border: 1px solid #ddd;
        border-radius: var(--border-radius);
    }
    .nav-top { width: 100%; padding: 5px 0px; }
    .navbar-nav {
        display: flex;
        flex-direction: column;
        gap: 0px;
        flex: 1;
        height: auto;
    }
    .thumb-movie { display: none; }
    .container.slide {
        max-height: 250px;
    }
    .left-info {max-width: 100%; display: flex; gap: 10px; align-items: center}
    .infor.post-content,
    .infor.categories,
    .list-category,
    .infor.year-episode-total
    { display: none; }
    
    .focus-info-poster { display: block !important; overflow: hidden; }
    .focus-info-poster img {border-radius: 5px; }
    a.play-button { width: 30px; height: 30px; }
    .infor.post-title {font-size: 20px; margin: 0px}
    .watch-left {
        width: 100%;
    }
    .wrapper-bg::before{ background: transparent; }
    .container.slide::after { height: 70px; }
    .related-posts .list-item .items {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }
    .related-posts .list-item .items figure {
        width: 100%;
    }
    
    .row .list-item .items,
    .series-section .list-item .items,
    .single-section .carousel .carousel-inner .items,
    .list-item .items
    {
       flex: 0 0 calc(33% - 10px);
       height: 300px;
    }
    .showmore {width: 30%; }
    
    .movie-info {
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
    }
    .movie-info .left-movie { width: 100%; }
    .movie-info .right-movie { display: none; }
    .action-tab { display: inline; }
    .action-tab a,
    .action-tab span
    {margin-right: 4px; font-size: 13px}
    .breadcrumb {
        overflow-x: auto;
        scrollbar-width: none; /* Firefox */
    }

    .breadcrumb::-webkit-scrollbar {
        display: none; /* Chrome, Safari */
    }

    .breadcrumb-item {
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;
        max-width: 150px;
    }

    .breadcrumb-item:last-child {
        font-weight: bold;
        color: #fff;
        max-width: unset; /* không ẩn mục cuối */
    }
    .items .sub-info {display: none; }
    figure:hover .gradien-play-mobile {
        opacity: 1;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 2;
        cursor: pointer;
    }
    .gradien-play-mobile a {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .svg-play-icon {
        transition: transform 0.3s ease;
    }
    .svg-play-icon:hover {
        transform: scale(1.1);
    }
}

/* 📱 Tablet dọc & mobile lớn */
@media (min-width: 480px) and (max-width: 767px) {}

/* 📱 Mobile */
@media (max-width: 480px) {
    .navbar-toggler{
        display: block;
        color: var(--secondary-color);
    }
    .nav-container .navbar-collapse {
        display: block;
        width: 70%;
        height: 100vh;
        position: fixed;
        background: var(--primary-color);
        top: 0;
        left: -100%;
        z-index: 999;
        box-shadow: 2px 2px 5px 2px rgba(0, 0, 0, 0.8);
        transition: left 1s ease;
    }
    .navbar-collapse.show { left: 0; padding: 0px 5px}
    .watch-container{
        display: flex;
        flex-direction: column;
        
    }
    .lang {
        width: 100%;
        display: flex;
        flex-direction: column;
        margin: 10px 0 0;
    }
    .lang div {
        width: 100%;
        display: flex;
        justify-content: flex-start;
        align-items: center;
        border-bottom: 1px solid var(--secondary-color);
        border-radius: 10px;
        padding: 0;
        margin-bottom: 1em;
    }
    .dropdown-account {
        display: none;
        list-style: none;
        position: absolute;
        bottom: 0;
        left: 0;
        transform: translate(-20%, 100%);
        padding: 10px;
        width: 100%;
        background-color: var(--primary-color);
        border: 1px solid #ddd;
        border-radius: var(--border-radius);
    }
    .nav-top { width: 100%; padding: 5px 0px; }
    .navbar-nav {
        display: flex;
        flex-direction: column;
        gap: 0px;
        flex: 1;
        height: auto;
    }
    .thumb-movie { display: none; }
    .container.slide {
        max-height: 250px;
    }
    .left-info {max-width: 100%; display: flex; gap: 10px; align-items: center}
    .infor.post-content,
    .infor.categories,
    .list-category,
    .infor.year-episode-total
    { display: none; }
    
    .focus-info-poster { display: block !important; overflow: hidden; }
    .focus-info-poster img {border-radius: 5px; }
    a.play-button { width: 30px; height: 30px; }
    .infor.post-title {font-size: 20px; margin: 0px}
    .watch-left {
        width: 100%;
    }
    .wrapper-bg::before{ background: transparent; }
    .container.slide::after { height: 70px; }
    .related-posts .list-item .items {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }
    .related-posts .list-item .items figure {
        width: 100%;
    }
    
    .row .list-item .items,
    .series-section .list-item .items,
    .single-section .carousel .carousel-inner .items,
    .list-item .items
    {
       flex: 0 0 calc(50% - 10px);
       height: 300px;
    }
    .showmore {width: 30%; }
    
    .movie-info {
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
    }
    .movie-info .left-movie { width: 100%; }
    .movie-info .right-movie { display: none; }
    .action-tab { display: inline; }
    .action-tab a,
    .action-tab span
    {margin-right: 4px; font-size: 13px}
    .breadcrumb {
        overflow-x: auto;
        scrollbar-width: none; /* Firefox */
    }

    .breadcrumb::-webkit-scrollbar {
        display: none; /* Chrome, Safari */
    }

    .breadcrumb-item {
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;
        max-width: 150px;
    }

    .breadcrumb-item:last-child {
        font-weight: bold;
        color: #fff;
        max-width: unset; /* không ẩn mục cuối */
    }
    .items .sub-info {display: none; }
    figure:hover .gradien-play-mobile {
        opacity: 1;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 2;
        cursor: pointer;
    }
    .gradien-play-mobile a {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .svg-play-icon {
        transition: transform 0.3s ease;
    }
    .svg-play-icon:hover {
        transform: scale(1.1);
    }
}














