/* =========================================
   CSS TỔNG HỢP CHO YUECHAN (style.css)
   ========================================= */

/* --- 1. RESET & GIAO DIỆN CƠ BẢN --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* Sử dụng font hệ thống mượt mà giống iOS */
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    /* Nền tối có chi tiết để thấy rõ hiệu ứng kính mờ của menu ở dưới */
    background: #0d1117 url('https://images.unsplash.com/photo-1618005182384-a83a8bd57fbe?q=80&w=2564&auto=format&fit=crop') no-repeat center center fixed;
    background-size: cover;
    color: #ffffff;
    min-height: 100vh;
    padding-bottom: 120px; /* Tránh thanh menu che mất nội dung ở cuối trang */
}

/* --- 2. HEADER & CONTAINER --- */
header {
    background-color: rgba(25, 25, 25, 0.9);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #333;
    position: sticky; /* Giữ header ở trên cùng khi cuộn */
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.container {
    padding: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* --- 3. LƯỚI PHIM & THẺ PHIM (CARD) --- */
.movie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
    padding: 20px 0;
}

.movie-card {
    background-color: #1e1e1e;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    text-decoration: none;
    color: white;
    transition: transform 0.2s, border-color 0.2s;
    border: 1px solid #333;
    display: block;
}

.movie-card:hover {
    transform: translateY(-5px);
    border-color: #00d2d3; /* Đổi màu viền khi di chuột */
}

/* Nhãn hiển thị số tập ở góc trái poster */
.movie-card .episode-badge {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    color: #00d2d3;
    text-align: center;
    padding: 5px;
    font-size: 13px;
    font-weight: bold;
    z-index: 2;
}

.movie-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
  /* Tiêu đề phim tối đa 2 dòng */
.movie-card h3 {
    font-size: 15px;
    padding: 10px;
    text-align: center;
    color: #fca311;
    /* CSS ép chữ cắt đuôi (...) nếu vượt quá 2 dòng */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 45px;
    margin: 0;
}

/* --- 4. PHÂN TRANG (PAGINATION) --- */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.page-btn {
    background-color: #222;
    color: #fff;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    border: 1px solid #444;
    transition: all 0.3s ease;
}

.page-btn:hover {
    background-color: #444;
}

.page-btn.active {
    background-color: #00d2d3;
    color: #000;
    font-weight: bold;
    border-color: #00d2d3;
    pointer-events: none; /* Khóa nút đang được chọn */
}  display: block;
}



/* --- 5. LỊCH CHIẾU PHIM (SCHEDULE TABS) --- */
.schedule-section {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px dashed #444;
}

.schedule-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    overflow-x: auto; /* Cho phép cuộn ngang trên điện thoại */
    padding-bottom: 10px;
}

.schedule-tabs::-webkit-scrollbar {
    display: none; /* Giấu thanh cuộn cho đẹp mắt */
}

.tab-btn {
    padding: 10px 20px;
    background-color: #1e1e1e;
    color: #ccc;
    border: 1px solid #333;
    border-radius: 20px; /* Bo góc kiểu viên thuốc */
    cursor: pointer;
    white-space: nowrap;
    font-size: 14px;
    transition: all 0.3s;
}

.tab-btn:hover {
    background-color: #333;
}

.tab-btn.active {
    background-color: #00d2d3;
    color: #000;
    font-weight: bold;
    border-color: #00d2d3;
    box-shadow: 0 0 10px rgba(0, 210, 211, 0.3);
}

