/* styles.css */
body {
    font-family: Arial, sans-serif;
    margin: 0px;
    padding:0px;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.hide{
    display: none;
}
header {
    top:0px;
    left:0px;
    background-color: #333;
    color: #ddd;
    text-align: center;
    position: fixed;
    z-index: 1000;
    width: 100%;
}
nav{
    color: #ddd;
    text-align: center;
}
nav ul {
    list-style: none;
    padding: 0;
}

nav ul li {
    display: inline;
    margin: 0 15px;
}

nav ul li a {
    color: #ddd;
    text-decoration: none;
}
h2
{
    padding-left: 10px;
    padding-top: 70px;
}
section{
    display: block;
    width: 100%;
}
.pagination {
    margin: 20px 0;
    text-align: center;
}
.pagination a, .pagination strong {
    margin: 0 5px;
    padding: 10px 15px;
    text-decoration: none;
    color: #007bff;
    border: 1px solid #ddd;
}
.pagination strong {
    background-color: #007bff;
    color: #ddd;
    border-color: #007bff;
}
.pagination a:hover {
    background-color: #f1f1f1;
}
.movie-list {
    text-align: left;
    min-height: 870px;
}
.movie-view{
    text-align: center;
    min-height: 100vh;
}
.movie-view>.play{
    height:70vh; 
    width:1024px; 
    margin:auto;
    margin-bottom: 10px;
}
.movie-view>.episode{
    width:1024px; 
    margin:auto;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}
.movie-header a {
    display: block;
    padding: 5px;
    color: #ddd;
    text-decoration: none;
  }
.movie-view .video{
    align-content: center;
    border:0;
    height: 100%;
    width:100%;
}
.movie-view #my-dailymotion-player{
    padding-bottom: 0 !important;
    height: 100%;
}
.rumblePlayer-Rumble-cls
{
    height: 100% !important;
}
.movie-item {
    width:230px;
    height:350px;
    display: inline-block;
    margin: 10px;
    background-color: #333;
    color:#ddd;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
    padding: 1px;
    position: relative;
}
.movie-item h3{
    width: 190px;
    padding-left: 2px;
    font-size: smaller;
    word-wrap: break-word;
    overflow-wrap: break-word;
    overflow: hidden; /* Ẩn phần văn bản vượt quá */
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Số dòng hiển thị */
    -webkit-box-orient: vertical;
    text-overflow: ellipsis; /* Thêm dấu "..." */
    white-space: normal;
    float: left;
}
.movie-item.hover {
    transform: scale(1.03); /* Zoom in */
    cursor: pointer; /* Đổi icon con chuột */
}

.movie-item img {
    width: 100%;
    height: 300px;
    display: block;
    margin: 0 auto;
    border-radius: 5px;
}
.movie-item span.movie-episode{
    color:rgb(226, 185, 18);
    background-color: red;
    display: inline;
    width: 30px;
    float: right;
    border-radius: 0px;
    text-align: center;
    margin-top: 5px;
}
footer {
    background-color: #333;
    color: #ddd;
    text-align: center;
    width:100%;
}
.sublink>a{
    
    display: inline-block;
    margin: 5px;
    text-align: left;
    color: deepskyblue;
}
.episode>a{
    padding: 2px 4px;
    margin: 5px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    color: #ddd;
    background-color: #007bff;
    border: none;
    border-radius: 5px;
    transition: background-color 0.1s ease, transform 0.1s ease;
}

/* Hiệu ứng khi hover */
.episode>a:hover,.movie-header>a:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

/* Hiệu ứng khi active (khi nhấp chuột) */
.episode>a.active {
    border: #007bff;
    background-color: #151515;
}
.blankvideo{
    background-color: black;
    width: 1024px;
    height: 70vh;
    color: white;
    text-align: center;
    display: flex;
    justify-content: center; /* Căn giữa theo chiều ngang */
    align-items: center; /* Căn giữa theo chiều dọc */
}
body {
    background-color: #151515; /* Màu nền của trang web */
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ddd;
  }
  

.movie-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.movie-link {
    flex-grow: 1;
    text-align: left;
    padding-right: 10px; /* Add some padding to the right to avoid overlap with the button */
}
.button-group {
    margin-bottom: 20px;
    margin-top:70px;
}

.button-group button {
    background-color: white; /* Màu nền */
    border: none;
    color: black; /* Màu chữ */
    padding: 10px 20px;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 12px;
}
.button-group button.active {
    background-color: #007bff; /* Màu nền cho nút active */
    border: none;
    color: white; /* Màu chữ */
}

.tabs-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 20px;
  }
  
  .tabs-title {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 10px;
    text-align: left;
    width: 100%;
    color: #ddd;
  }
  
  .tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    background-color: #1a1a1a;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    width: 100%;
  }
  
  .tabs a {
    text-decoration: none;
    padding: 10px 15px;
    margin: 5px;
    border: 1px solid #333;
    border-radius: 3px;
    background-color: #151515;
    color: #ddd;
    transition: all 0.3s ease;
  }
  
  .tabs a:hover {
    background-color: #007bff;
    color: #ddd;
  }
  
  .tabs a.active {
    background-color: #007bff;
    color: #ddd;
    font-weight: bold;
    border: 1px solid #0056b3;
  }
  @keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
  }
  @keyframes fire {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
  }
  .hot-item {
    animation: pulse 2s infinite, fire 3s ease infinite;
    background: linear-gradient(45deg, #ff2400, #e81d1d, #e8b71d, #e3e81d,
    #1de840, #1ddde8, #2b1de8, #dd00f3, #dd00f3);
    background-size: 800% 800%;
    position: relative;
    overflow: hidden;
    display: inline-block;
    text-decoration: none;
  }
  .hot-item::after {
    content: "HOT";
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff0000;
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 5px;
    border-radius: 10px;
    transform: rotate(15deg);
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
  }
/* Responsive: Đảm bảo nút đẹp trên thiết bị di động */
@media (max-width: 600px) {
    .episode>a {
        padding: 2px 4px;
        font-size: 14px;
    }
}
@media (max-width: 1024px) {
    .movie-view>.play{
        width:100%; 
        height: 50vh;
        margin-bottom: 10px;
    }
    .movie-view>.episode{
        width:100%; 
    }
    .blankvideo{
        width:100%; 
        height: 50vh;
    }
}
@media (max-width: 767px) {
    .pagination {
        margin: 10px 0; /* Thay đổi margin cho điện thoại */
    }

    .pagination a,
    .pagination strong {
        padding: 6px 9px; /* Thay đổi padding cho điện thoại */
    }
}