.interests-section {
    padding: 1rem 0 0;
    margin-top: 0;
    background: transparent;
    overflow: hidden;
    position: relative;
    z-index: 20;
}

/* Ambient Glow - REMOVED TO PREVENT COLOR BREAK */
.interests-section::before {
    display: none;
}

.interests-wrapper {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    align-items: flex-start;
}

.interests-wrapper::-webkit-scrollbar {
    display: none;
}

/* Category-specific cinematic aura themes */
.interest-card.cat-series { --card-rgb: 139, 92, 246; --card-color: #8b5cf6; }
.interest-card.cat-new    { --card-rgb: 239, 68, 68;  --card-color: #ef4444; }
.interest-card.cat-action { --card-rgb: 249, 115, 22; --card-color: #f97316; }
.interest-card.cat-romance{ --card-rgb: 236, 72, 153; --card-color: #ec4899; }
.interest-card.cat-comedy { --card-rgb: 234, 179, 8;  --card-color: #eab308; }
.interest-card.cat-anime  { --card-rgb: 16, 185, 129; --card-color: #10b981; }

.interest-card {
    flex: 0 0 240px;
    height: 140px;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: #0f121d !important;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

@media (max-width: 767px) {
    .interests-section {
        position: relative !important;
        bottom: auto !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 40 !important;
        width: 100% !important;
    }
    .interest-card {
        flex: 0 0 190px !important;
        height: 90px !important;
        border-radius: 12px !important;
    }
}

@media (min-width: 768px) {
    .interests-section {
        position: absolute !important;
        bottom: 0px !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 40 !important;
        width: 100% !important;
        padding-bottom: 0 !important;
        margin-bottom: 0 !important;
        background: transparent !important;
    }
}

.interests-inner-wrap {
    width: 100% !important;
    max-width: 1540px !important;
    margin: 0 auto !important;
    padding-left: 24px !important;
    padding-right: 24px !important;
    box-sizing: border-box !important;
}

@media (max-width: 1023px) {
    .interests-inner-wrap {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
}

@media (max-width: 480px) {
    .interests-inner-wrap {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .interest-card {
        flex: 0 0 210px;
        height: 130px;
    }
}

@media (min-width: 1024px) {
    .interests-wrapper {
        display: grid !important;
        grid-template-columns: repeat(6, 1fr) !important;
        gap: clamp(12px, 1.1vw, 16px) !important;
        overflow-x: visible !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .interest-card {
        flex: none !important;
        min-width: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
        height: 140px !important;
        border-radius: 14px !important;
        box-sizing: border-box !important;
    }
}

.interest-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.65), 0 0 24px rgba(var(--card-rgb, 139, 92, 246), 0.35);
    border-color: rgba(255, 255, 255, 0.28);
}

/* Background Image positioned on the right side - crystal clear and sharp */
.interest-bg-img {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 78% !important;
    background-size: cover !important;
    background-position: center 20% !important;
    transition: transform 0.65s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.35s ease !important;
    z-index: 1 !important;
    opacity: 1 !important;
    filter: brightness(1.02) contrast(1.05) !important;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.7) 18%, black 40%) !important;
    mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.7) 18%, black 40%) !important;
}

.interest-card:hover .interest-bg-img {
    transform: scale(1.07) !important;
    filter: brightness(1.08) contrast(1.08) !important;
}

/* ── Lớp Ánh Xạ Màu CHỈ Ở GÓC BÊN TRÁI (0% - 45%) - KHÔNG LAN SANG PHẢI ── */
.interest-card::before {
    content: '' !important;
    display: block !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    width: 52% !important;
    z-index: 2 !important;
    pointer-events: none !important;
    background: 
        radial-gradient(circle at 10% 25%, rgba(var(--card-rgb, 139, 92, 246), 0.95) 0%, rgba(var(--card-rgb, 139, 92, 246), 0.65) 45%, transparent 80%),
        linear-gradient(90deg, rgba(var(--card-rgb, 139, 92, 246), 0.90) 0%, rgba(var(--card-rgb, 139, 92, 246), 0.55) 40%, rgba(var(--card-rgb, 139, 92, 246), 0.15) 75%, transparent 100%),
        linear-gradient(0deg, rgba(8, 10, 16, 0.85) 0%, rgba(8, 10, 16, 0.2) 50%, transparent 100%) !important;
    -webkit-mask-image: linear-gradient(to right, black 55%, transparent 100%) !important;
    mask-image: linear-gradient(to right, black 55%, transparent 100%) !important;
    transition: opacity 0.35s ease, filter 0.35s ease !important;
    opacity: 0.95 !important;
}

.interest-card:hover::before {
    opacity: 1 !important;
    filter: saturate(1.2) brightness(1.08) !important;
}

/* Tắt lớp kính phủ toàn màn để ảnh bên phải không bị mờ */
.interest-card::after {
    display: none !important;
}

/* ── KHI TẮT MÀU ÁNH XẠ (NO AURA / ẢNH NỀN THUẦN 100% - KHÔNG CÒN LỚP ĐEN HAY MÀU NÀO) ── */
.interest-card.no-aura::before {
    display: none !important;
    content: none !important;
    background: none !important;
    opacity: 0 !important;
}
.interest-card.no-aura:hover::before {
    display: none !important;
    content: none !important;
    opacity: 0 !important;
}
.interest-card.no-aura .interest-bg-img {
    width: 100% !important;
    -webkit-mask-image: none !important;
    mask-image: none !important;
    opacity: 1 !important;
    filter: none !important;
}
.interest-card.no-aura:hover .interest-bg-img {
    transform: scale(1.06) !important;
    filter: brightness(1.05) !important;
}
.interest-card.no-aura:hover {
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.75) !important;
}



/* Content */
.interest-content {
    position: relative;
    z-index: 10;
    height: 100%;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    max-width: 75%;
}

.interest-title {
    font-size: 14.5px;
    font-weight: 600;
    color: var(--card-text-color, white);
    margin-bottom: 0.15rem;
    text-shadow: 0 1px 4px rgba(0,0,0,0.85);
    letter-spacing: -0.01em;
}

@media (max-width: 767px) {
    .interest-content {
        padding: 0.75rem !important; /* Giảm padding */
    }
    .interest-title {
        font-size: 13.5px !important;
        font-weight: 600 !important;
        margin-bottom: 0.1rem !important;
    }
}

.interest-action {
    font-size: 10px;
    font-weight: 600;
    color: var(--card-text-color, rgba(255, 255, 255, 0.85));
    display: flex;
    align-items: center;
    gap: 0.2rem;
    letter-spacing: 0.4px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.85);
}

.interest-action .material-icons-round {
    font-size: 0.75rem;
}

@media (max-width: 767px) {
    .interest-action {
        font-size: 0.6rem !important;
    }
    .interest-action .material-icons-round {
        font-size: 0.7rem !important;
    }
}

/* Modern Unwrapped Icon without circular background */
.interest-icon-circle {
    position: absolute;
    top: 1rem;
    left: 1rem;
    width: auto;
    height: auto;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: none !important;
    border-radius: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: none !important;
    padding: 0;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.75));
    transition: transform 0.25s ease;
}

.interest-card:hover .interest-icon-circle {
    transform: scale(1.15) translateY(-1px);
}

.interest-icon-circle svg {
    width: 24px;
    height: 24px;
    color: inherit;
    stroke: currentColor;
    stroke-width: 2.2px;
    display: block;
}

.interest-icon-circle .material-icons-round {
    font-size: 1.25rem;
    color: white;
}

/* Category Specific Overrides (if needed) */
.cat-hot::before { opacity: 0.6; }

/* ✅ Lottie Icon Container — cùng kích thước với interest-icon-circle cũ */
.interest-lottie-circle {
    position: absolute;
    top: 1rem;
    left: 1rem;
    width: 2rem;          /* 32px — khớp với icon cũ */
    height: 2rem;         /* 32px — khớp với icon cũ */
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    z-index: 10;
    pointer-events: none;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    /* ✨ Màu đầy đủ + glow trắng nổi bật trên nền tối */
    filter: brightness(1.3) drop-shadow(0 0 4px rgba(255, 255, 255, 0.5));
}

.interest-lottie-circle > div {
    width: 65%;
    height: 65%;
}

@media (max-width: 767px) {
    .interest-lottie-circle {
        top: 0.6rem !important;
        left: 0.6rem !important;
        width: 1.6rem !important;
        height: 1.6rem !important;
    }
}

/* --- MOBILE UI OVERRIDES (FLEX WRAP + 2 COLUMNS + SPACING FIX) --- */
@media (max-width: 767px) {
    .interests-section {
        overflow: visible !important;
        margin-bottom: 110px !important; /* Force space for the 3rd row to prevent overlap */
    }
    .interests-wrapper {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: flex-start !important;
        gap: 0.6rem !important;
        overflow: visible !important;
        padding-bottom: 1rem !important;
    }
    .interest-card {
        flex: 0 0 calc(50% - 0.3rem) !important; /* 2 columns, perfectly spaced */
        width: auto !important;
        height: 95px !important;
        border-radius: 12px !important;
    }
    .interest-content {
        padding: 0.7rem !important;
        align-items: flex-start !important;
        text-align: left !important;
        justify-content: flex-end !important;
    }
    .interest-title {
        font-size: 1.05rem !important; 
        font-weight: 900 !important;
        margin-bottom: 0.2rem !important;
        line-height: 1.1 !important;
        text-shadow: 0 2px 6px rgba(0,0,0,1), 0 1px 2px rgba(0,0,0,1) !important;
    }
    .interest-action {
        font-size: 0.65rem !important;
        font-weight: 800 !important;
        letter-spacing: 0.5px !important;
    }
    .interest-lottie-circle {
        top: 0.7rem !important;
        left: 0.7rem !important;
        width: 1.8rem !important;
        height: 1.8rem !important;
    }
    .interest-bg-img {
        width: 100% !important; 
        -webkit-mask-image: linear-gradient(to right, transparent 0%, black 50%) !important;
        mask-image: linear-gradient(to right, transparent 0%, black 50%) !important;
    }
}

/* FINAL MOBILE LAYOUT FIX - OVERRIDE TAILWIND ABSOLUTE */
@media (max-width: 767px) {
    .interests-section, body .interests-section {
        position: relative !important;
        bottom: auto !important;
        margin-bottom: 0px !important; /* Proper margin to push BXH down */
        height: auto !important;
    }
    .interests-wrapper {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: space-between !important;
        gap: 0.6rem !important;
        padding-bottom: 10px !important; /* MASSIVE PADDING TO FIX OVERLAP */
    }
    .interest-card {
        flex: 0 0 calc(50% - 0.3rem) !important;
        margin-bottom: 0 !important;
    }
}

/* ── LIGHT MODE OVERRIDES FOR INTERESTS SECTION ── */
html.light-mode .interests-section h3 {
    color: #0f172a !important;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.85) !important;
}

html.light-mode .interest-card {
    box-shadow: 0 4px 14px rgba(78, 64, 45, 0.12) !important;
    border: none !important;
    outline: none !important;
}

html.light-mode .interest-card:hover {
    box-shadow: 0 8px 24px rgba(78, 64, 45, 0.22) !important;
    border: none !important;
    outline: none !important;
}

