/* ==========================================================================
   CROSOFTFILM WEBCLIENT - MOVIE DETAIL STREAMING (MOBILE < 992px)
   Tối ưu hóa: Giữ lại hiệu ứng điện ảnh di động, tận dụng tối đa Bootstrap 5
   ========================================================================== */

/* 1. Hero Visual Banner (16:9) */
.ns-mobile-detail-hero {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 220px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ns-mobile-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(21, 19, 20, 0.4) 0%, rgba(21, 19, 20, 0.85) 75%, rgba(21, 19, 20, 1) 100%);
    pointer-events: none;
}

.ns-mobile-hero-badges {
    position: absolute;
    top: 12px;
    left: 14px;
    z-index: 2;
    display: flex;
    gap: 6px;
    align-items: center;
}

.ns-mobile-hero-play-btn {
    position: relative;
    z-index: 2;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    border-radius: 30px;
    padding: 8px 18px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    transition: transform 0.2s ease, background 0.2s ease;
}

.ns-mobile-hero-play-btn:active {
    transform: scale(0.95);
    background: rgba(234, 88, 12, 0.8);
    border-color: #ea580c;
}

.ns-mobile-hero-play-btn i {
    font-size: 18px;
    color: var(--accent-start, #fe4f30);
}

/* 2. Chips Thể Loại & Quốc Gia */
.ns-pill-mobile {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 11.5px;
    color: #e5e7eb;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

/* 3. Primary CTA Nút Xem Phim Chính */
.ns-mobile-primary-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #fe4f30 0%, #f5315e 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(254, 79, 48, 0.4);
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.ns-mobile-primary-btn:active {
    transform: scale(0.98);
    opacity: 0.9;
}

.ns-mobile-primary-btn.is-scheduled {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    box-shadow: 0 4px 15px rgba(217, 119, 6, 0.3);
}

/* 4. Action Bar Thao Tác Ngón Cái */
.ns-mobile-actions-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.ns-mobile-action-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 8px 4px;
    color: #e5e7eb;
    font-size: 11px;
    font-weight: 500;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.ns-mobile-action-btn:active {
    background: rgba(255, 255, 255, 0.12);
}

.ns-mobile-action-btn.is-active,
.ns-mobile-action-btn.is-favorite-active {
    color: #ec4899;
    border-color: rgba(236, 72, 153, 0.35);
    background: rgba(236, 72, 153, 0.08);
}

.ns-mobile-action-btn.is-rated {
    color: #fbbf24;
    border-color: rgba(251, 191, 36, 0.35);
    background: rgba(251, 191, 36, 0.08);
}

/* 5. Mobile Read More Overview (Tự do dãn nở, kẹp 3 dòng) */
.ns-mobile-overview-clamp {
    font-size: 13.5px;
    line-height: 1.65;
    color: var(--text-secondary, #d1d5db);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: all 0.25s ease;
}

.ns-mobile-overview-clamp.is-expanded {
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
}

/* 6. Mobile Episode Grid (Button chọn tập nhanh) */
.ns-mobile-ep-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

@media (max-width: 480px) {
    .ns-mobile-ep-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.ns-mobile-ep-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.15s ease;
}

.ns-mobile-ep-btn:active {
    transform: scale(0.95);
    background: rgba(255, 255, 255, 0.1);
}

.ns-mobile-ep-btn.is-vip {
    border-color: rgba(245, 158, 11, 0.4);
    background: rgba(245, 158, 11, 0.06);
}

.ns-mobile-ep-btn.is-vip .ns-mobile-ep-badge {
    position: absolute;
    top: 2px;
    right: 4px;
    font-size: 10px;
    color: #fbbf24;
}

.ns-mobile-ep-btn.is-locked .ns-mobile-ep-badge {
    position: absolute;
    top: 2px;
    right: 4px;
    font-size: 10px;
    color: #9ca3af;
}