/* --- CONTAINER & TAB NAV (DARK) --- */
.jac-wrapper {
    width: 100%;
    margin-top: 30px;
    display: flow-root;
    position: relative;
    font-family: sans-serif;
}

/* Thanh Tab */
.jac-nav {
    list-style: none !important;
    padding: 0;
    margin: 0 0 20px 0;
    display: flex;
    /* Đổi viền dưới thành màu tối */
    border-bottom: 2px solid #333333; 
    box-sizing: border-box;
}

.jac-nav-item {
    padding: 12px 24px;
    cursor: pointer;
    font-weight: 600;
    /* Màu chữ Tab khi chưa chọn (Xám sáng) */
    color: #9ca3af; 
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.3s ease;
    user-select: none;
	margin-left: 0 !important;
    list-style-type: none !important;
}

.jac-nav-item:hover {
    color: #ffffff; /* Hover thành màu trắng */
    background: rgba(255, 255, 255, 0.05); /* Nền sáng nhẹ */
}

.jac-nav-item.active {
    color: #60a5fa; /* Màu xanh sáng (Blue 400) */
    border-bottom: 2px solid #60a5fa;
    background: transparent;
}

/* --- CONTENT PANES --- */
.jac-content-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.jac-tab-pane {
    display: none;
    width: 100%;
}

.jac-tab-pane.active {
    display: block;
    animation: jacFadeIn 0.4s ease-in-out;
}

@keyframes jacFadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- GRID & CARD (DARK) --- */
.jac-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.jac-card {
    /* Nền thẻ màu xám tối */
    background: #1f1f1f; 
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, background 0.2s;
    
    /* Viền nhẹ để tách biệt với nền web */
    border: 1px solid #333; 
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.jac-card:hover {
    transform: translateY(-4px);
    background: #2d2d2d; /* Sáng hơn một chút khi hover */
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.5);
    border-color: #444;
}

/* --- ELEMENT CHI TIẾT --- */
.jac-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.jac-badge.main {
    background-color: #2563eb; /* Xanh đậm hơn chút cho dịu mắt */
}

.jac-badge.supporting {
    background-color: #059669; /* Xanh lá đậm hơn */
}

.jac-image-wrap {
    width: 100%;
    aspect-ratio: 1 / 1.1;
    overflow: hidden;
    background: #333; /* Placeholder màu tối */
}

.jac-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.jac-card:hover .jac-image-wrap img {
    transform: scale(1.05);
}

.jac-info {
    padding: 12px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* TÊN NHÂN VẬT - QUAN TRỌNG: Đổi sang màu trắng */
.jac-name {
    margin: 0 0 6px 0;
    font-size: 14px;
    font-weight: 700;
    color: #f3f4f6; /* Màu trắng xám (Grey 100) */
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Vai trò nhân vật */
.jac-role-row {
    margin-top: auto;
    font-size: 11px;
    color: #9ca3af; /* Màu xám trung tính (Grey 400) */
    display: flex;
    align-items: center;
    gap: 5px;
}

.jac-icon {
    color: #fbbf24; /* Vàng (giữ nguyên để nổi bật) */
}

/* --- LOADER (DARK) --- */
.jac-loader {
    text-align: center;
    padding: 40px;
    color: #9ca3af; /* Chữ loading màu xám */
}

.jac-spinner {
    width: 40px;
    height: 40px;
    /* Viền spinner màu tối */
    border: 4px solid #333; 
    border-top: 4px solid #60a5fa;
    border-radius: 50%;
    animation: jacSpin 1s linear infinite;
    margin: 0 auto 15px auto;
}

@keyframes jacSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.jac-error {
    color: #f87171; /* Đỏ nhạt cho dễ đọc trên nền tối */
    padding: 20px;
    text-align: center;
    background: rgba(239, 68, 68, 0.1); /* Nền đỏ trong suốt */
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 8px;
}

.Hmenu{
	background: #000;
    padding-top: 50px;
}