.btn-follow {
 background-color: transparent;
 color: #fca311; /* Màu vàng cam */
 padding: 8px 16px;
 border-radius: 4px;
 text-decoration: none;
 font-size: 14px;
border: 1px solid #fca311;
cursor: pointer;
 transition: all 0.3s ease;
display: inline-flex;
 align-items: center;
gap: 5px;
 margin-left: 10px; /* Cách nút Xem phim một chút */
}

.btn-follow:hover {
 background-color: rgba(252, 163, 17, 0.1);
}

/* Trạng thái khi đã theo dõi */
.btn-follow.followed {
 background-color: #fca311;
 color: #000;
 font-weight: bold;
}
.movie-card {
position: relative !important; /* Khung chuẩn để chứa nhãn dán */
}
/* =========================================
   6. TÊN PHIM (Bản Fix chuẩn: Rớt 2 dòng mượt mà)
   ========================================= */
.movie-card h3 {
    padding: 10px 5px !important;
    margin: 0 !important;
    font-size: 13px !important; 
    text-align: center !important;
    color: #fff !important;
    
    /* Bắt buộc chữ phải rớt dòng */
    white-space: normal !important; 
    word-break: break-word !important; 
    line-height: 1.4 !important; 
    
    /* COMBO CẮT CHỮ 2 DÒNG (Chỉ dùng -webkit-box, tuyệt đối không dùng flex ở đây) */
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    
    /* Chiều cao cố định để thẻ phim luôn bằng nhau dù tên dài hay ngắn */
    min-height: 46px !important; 
}

/* =========================================
   FIX ĐỒNG BỘ CHỮ "TẬP..." TRANG THEO DÕI
   ========================================= */
.movie-card .episode-badge {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    background: rgba(0, 0, 0, 0.8) !important; /* Nền đen mờ 80% giống trang chủ */
    color: #00d2d3 !important; /* Chữ màu Cyan xịn xò */
    text-align: center !important;
    padding: 6px 0 !important;
    font-size: 12px !important;
    font-weight: bold !important;
    z-index: 5 !important;
    margin: 0 !important;
    pointer-events: none !important; /* Cho phép bấm xuyên qua chữ để vào link phim */
    border-top-left-radius: 8px !important; /* Bo góc cho khớp với thẻ phim nếu có */
    border-top-right-radius: 8px !important;
}

/* =========================================
   FIX BẢNG THÔNG TIN ĐIỆN THOẠI (CHUẨN HHNINJA)
   ========================================= */
@media screen and (max-width: 768px) {
    /* =========================================
       FIX BẢNG THÔNG TIN ĐIỆN THOẠI (BẢN CHUẨN - ẢNH 120PX)
       ========================================= */

    /* 1. Đảm bảo Ảnh bên trái không bị ép nhỏ */
    #khu-vuc-thong-tin > div:first-child > div:nth-child(1) {
        width: 120px !important; 
        min-width: 120px !important;
        flex-shrink: 0 !important; /* Lệnh an toàn: Cấm bóp méo ảnh */
    }

    /* 2. Ép khung chứa chữ chiếm phần diện tích còn lại */
    #khu-vuc-thong-tin > div:first-child > div:nth-child(2) {
        flex: 1 !important; /* Dùng flex giãn tự động thay vì calc() để mượt hơn */
        min-width: 0 !important; /* CHÌA KHÓA VÀNG: Ép chữ phải nằm gọn bên trong cột */
        display: flex !important; 
        flex-direction: column !important;
    }

    /* 3. Phép thuật CSS Grid: Biến mỗi dòng thành Lưới 2 cột siêu cứng */
    #khu-vuc-thong-tin p {
        display: grid !important;
        /* Dùng minmax(0, 1fr) thay cho 1fr để CẤM chữ dài đùn đẩy cột bên trái */
        grid-template-columns: 85px minmax(0, 1fr) !important; 
        gap: 10px !important; 
        align-items: start !important; /* Căn mép trên cùng để chữ rớt 2 dòng nhìn vẫn đẹp */
        margin: 0 0 10px 0 !important;
        padding-bottom: 10px !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important; 
    }

    /* 4. Cột 1: Nhãn (Tập, Thể Loại, Trạng Thái) */
    #khu-vuc-thong-tin p strong {
        font-size: 13px !important;
        color: #aaa !important; /* Chữ xám */
        font-weight: normal !important;
        margin: 0 !important;
        text-align: left !important;
    }

    /* 5. Cột 2: Nội dung (162/?, 3D - Tiên Hiệp...) */
    #khu-vuc-thong-tin p > span {
        font-size: 13px !important;
        color: #fff !important;
        font-weight: 500 !important;
        word-wrap: break-word !important; 
        line-height: 1.4 !important;
        display: block !important; 
    }

    /* 6. Chỉnh lại cụm nút Xem Phim cho nằm ngang hàng */
    #khu-vuc-thong-tin p > a,
    #khu-vuc-thong-tin .btn-action {
        display: inline-block !important;
        padding: 6px 12px !important;
        margin-right: 5px !important;
        margin-bottom: 5px !important;
        font-size: 12px !important;
        white-space: nowrap !important; /* Cấm rớt dòng bên trong cái nút */
    }
}