/* ========================================================================= */
/* == CSS CHO TRANG CHI TIẾT PHIM (SINGLE-MOVIE.PHP) == */
/* ========================================================================= */

/* --- THIẾT LẬP NỀN TẢNG --- */
.single-movie-page {
    background-color: #0c0c0c; /* Nền đen tuyền cho toàn bộ trang */
    color: #e0e0e0; /* Màu chữ xám nhạt, dễ đọc */
}


/* --- PHẦN 1: HERO SECTION --- */
.movie-hero-section {
    position: relative;
    padding: 150px 0 80px 0; /* Padding trên nhiều để chừa chỗ cho header */
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
}

.button.movie-interaction-btn {
    margin: 0px;
    background: transparent;
}

/* Lớp phủ làm tối và mờ nền */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    /* Hiệu ứng gradient đen mờ dần từ trên xuống và đậm lại ở dưới */
    background: linear-gradient(to bottom, rgba(12,12,12,0.9) 0%, rgba(12,12,12,0.6) 50%, rgba(12,12,12,1) 100%);
}

/* Đẩy nội dung lên trên lớp phủ */
.movie-hero-section .container {
    position: relative;
    z-index: 2;
}

/* Cột thumbnail bên trái */
.movie-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* Cột nội dung bên phải */
.movie-hero-content {
    padding-left: 30px;
}

.movie-hero-content .movie-title {
    font-size: 3.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
    text-shadow: 0 3px 10px rgba(0,0,0,0.5);
}

.movie-hero-content .movie-origin-name {
    font-size: 1.2rem;
    font-weight: 400;
    opacity: 0.7;
    margin-bottom: 1.5rem;
    display: block;
}

.movie-hero-content .movie-meta-info {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}
.movie-meta-info .meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0.9;
}
.meta-item.quality {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 600;
}
.meta-item.rating {
    color: #44E47A;
    font-weight: bold;
}

.movie-hero-content .movie-tax-tags {
    margin-bottom: 1rem;
    font-size: 0.9rem;
}
.movie-tax-tags strong {
    opacity: 0.7;
    margin-right: 10px;
}
.movie-tax-tags a {
    color: #e0e0e0;
    text-decoration: none;
    background-color: rgba(255, 255, 255, 0.08);
    padding: 4px 10px;
    border-radius: 4px;
    margin-right: 8px;
    transition: background-color 0.3s ease;
}
.movie-tax-tags a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.movie-hero-content .movie-excerpt {
    line-height: 1.7;
    opacity: 0.8;
    margin-bottom: 2rem;
}

.movie-hero-content .button-group {
    display: flex;
    gap: 15px;
    align-items: center;
}
.white.is-outline {
    margin: 0px;
}
.button.open-trailer-button {
    display: block;
    align-items: center;
    gap: 8px;
}


/* --- PHẦN 2: NỘI DUNG CHÍNH --- */
.movie-main-content {
    padding: 60px 0;
    background-color: #0c0c0c;
}
.movie-main-content .col h3 {
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #222;
}
.movie-main-content .col p {
    line-height: 1.8;
    margin-bottom: 1.5rem;
}


/* --- KHỐI TƯƠNG TÁC --- */
.movie-interactions { display: flex; align-items: center; gap: 15px; margin-top: 20px; }
/* STAR RATING STYLE */
.star-rating {
    display: inline-flex;
    flex-direction: row; /* Xếp xuôi chiều 1->5 */
    gap: 5px;
    font-size: 24px;
    cursor: pointer;
    margin-right: 20px;
}

.star-rating .star {
    color: #ccc; /* Màu xám mặc định */
    transition: color 0.2s;
}

/* Màu vàng khi Hover hoặc Selected */
.star-rating .star.hovered,
.star-rating .star.selected {
    color: #FFD700; /* Vàng Gold */
}

/* Hiệu ứng Disable khi đã vote xong */
.star-rating.disabled {
    pointer-events: none;
    opacity: 0.8;
}
.star-rating.disabled { pointer-events: none; }
.movie-interaction-btn { background: rgba(255,255,255,0.1); border-color: transparent; }

/* --- HỆ THỐNG TAB --- */
.movie-tabs { list-style: none; display: flex; gap: 10px; margin: 30px 0; padding: 0; border-bottom: 2px solid #222; overflow: auto}
.tab-item { padding: 5px 10px; cursor: pointer; color: #aaa; transition: all 0.3s; border-bottom: 3px solid transparent; text-wrap: nowrap;}
.tab-item:hover { color: #fff; }
.tab-item.active { color: #fff; border-bottom-color: #e50914; /* Màu đỏ Netflix */ }
.tab-panel { display: none; }
.tab-panel.active { 
    display: block; 
}
/* --- DANH SÁCH TẬP PHIM --- */
.server-list { display: flex; gap: 10px; margin-bottom: 20px; }
.episode-list { display: none; flex-wrap: wrap; gap: 10px; }
.episode-list.active { display: flex; }
.episode-item { background: #222; padding: 10px 15px; border-radius: 5px; color: #eee; text-decoration: none; transition: background 0.3s; }
.episode-item:hover { background: #333; }

/* --- KHU VỰC BÌNH LUẬN --- */
.movie-comments-section { padding: 60px 0; background: #141414; }
.must-log-in { background: #222; padding: 20px; border-radius: 5px; }

.button.server-btn {
    color:white;
    font-family:Helvetica, sans-serif;
    font-weight:bold;
  font-size:15px;
  text-align: center;
  text-decoration:none;
  background-color:#FFA12B;
  display:block;
  position:relative;
  padding:10px 20px;
  
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  text-shadow: 0px 1px 0px #000;
  filter: dropshadow(color=#000, offx=0px, offy=1px);
  
  -webkit-box-shadow:inset 0 1px 0 #FFE5C4, 0 10px 0 #915100;
  -moz-box-shadow:inset 0 1px 0 #FFE5C4, 0 10px 0 #915100;
  box-shadow:inset 0 1px 0 #FFE5C4, 0 10px 0 #915100;
  
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  border-radius: 5px;
}
.button.server-btn:active {
    top:10px;
    background-color:#F78900;
  
    -webkit-box-shadow:inset 0 1px 0 #FFE5C4, inset 0 -3px 0 #915100;
    -moz-box-shadow:inset 0 1px 0 #FFE5C4, inset 0 -3pxpx 0 #915100;
    box-shadow:inset 0 1px 0 #FFE5C4, inset 0 -3px 0 #915100;
}
.button.server-btn:after{
    content:"";
  height:100%;
  width:100%;
  padding:4px;
  position: absolute;
  bottom:-15px;
  left:-4px;
  z-index:-1;
  background-color:#2B1800;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  border-radius: 5px;
}

.related-movies-grid {
    display: flex;
    max-width: 100%;
    position: relative;
    overflow-x: hidden;
    flex-wrap: wrap;
    justify-content: space-between;
}
.row.container {
    max-width: 100% !important;
}
.movie-card-vertical-col {
    width: calc(16.6% - 10px) !important;
    padding: 0px 10px !important;
    margin-bottom: 10px !important;
}
.episode-list.active {
    max-height: 310px;
    overflow: scroll;
}
/* --- RESPONSIVE CHO MOBILE --- */
@media (max-width: 768px) {
    .movie-hero-section {
        padding: 100px 0 40px 0;
    }
    .movie-hero-content {
        padding-left: 0;
        margin-top: 30px;
    }
    .movie-hero-content .movie-title {
        font-size: 2.5rem;
    }
    .movie-main-content {
        padding: 40px 0;
    }
}
@media (max-width: 480px) {
    .movie-card-vertical-col {
        width: calc(50% - 10px);
    }
}



