/* ============================================
   INTRO.CSS - TRANG GIỚI THIỆU PHIM
   ============================================ */

/* 1. HERO SECTION */
.intro-hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 60px;
    margin-bottom: 0;
}

/* Nút Back trên cùng */
.intro-back-btn {
    position: absolute;
    top: 70px;
    left: 20px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    color: #fff;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.intro-back-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

/* Background Image Box */
.intro-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center top;
    z-index: 0;
    filter: blur(0px);
    opacity: 0.6;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0.4) 80%, rgba(0,0,0,0) 100%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0.4) 80%, rgba(0,0,0,0) 100%);
}

.intro-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--bg-primary) 10%, rgba(20,20,20,0.8) 50%, rgba(20,20,20,0.6) 100%);
    z-index: 1;
}

/* Container chính */
.intro-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1400px;
    padding: 0 40px;
    display: flex;
    align-items: flex-start;
    gap: 60px;
    margin-top: 40px;
}

/* Poster bên trái */
.intro-poster-box {
    width: 300px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
    border: 1px solid rgba(255,255,255,0.1);
    transform: translateY(0);
    transition: transform 0.3s;
}
.intro-poster-box:hover {
    transform: translateY(-10px);
}
.intro-poster {
    width: 100%;
    display: block;
    aspect-ratio: 2/3;
    object-fit: cover;
}

/* Content bên phải */
.intro-content {
    flex: 1;
    color: #fff;
    padding-top: 20px;
}

.intro-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.1;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    background: linear-gradient(45deg, #fff, #ddd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Meta Info Row */
.intro-meta-row {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
    margin-bottom: 25px;
    color: #ccc;
    font-weight: 500;
    flex-wrap: wrap;
}
.intro-match {
    color: #46d369;
    font-weight: 700;
}
.intro-age {
    border: 1px solid rgba(255,255,255,0.4);
    padding: 2px 8px;
    font-size: 0.9rem;
}
.intro-quality {
    background: rgba(255,255,255,0.2);
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
}

/* Grid Info */
.intro-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 30px;
    margin-bottom: 25px;
    font-size: 1rem;
    max-width: 600px;
}
.info-item {
    display: flex;
    gap: 8px;
}
.info-item.full-width {
    grid-column: span 2;
}
.info-label {
    color: #777;
    flex-shrink: 0;
}
.info-value {
    color: #ddd;
}

/* Cast Chips - Avatar + Tên diễn viên */
.cast-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 4px 10px 4px 4px;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
}

.cast-chip:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.cast-chip img {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.cast-chip span {
    color: #ddd;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
}

/* Mô tả */
.intro-desc {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #eee;
    margin-bottom: 30px;
    max-width: 800px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

/* Tags */
.intro-tags {
    margin-bottom: 30px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.intro-tag {
    font-size: 0.9rem;
    color: #aaa;
    position: relative;
}
.intro-tag:not(:last-child)::after {
    content: "•";
    margin-left: 10px;
    color: #555;
}

/* Actions Buttons */
.intro-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.intro-actions .btn-lg {
    padding: 12px 30px;
    font-size: 1.2rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.intro-actions .btn-icon-text {
    padding: 12px 24px;
    background: rgba(109, 109, 110, 0.7);
    color: white;
    border: none;
}
.intro-actions .btn-icon-text:hover {
    background: rgba(109, 109, 110, 0.4);
}

/* Nút Play lớn hơn cho Mobile */
.btn-play-intro {
    min-width: 180px;
    justify-content: center;
}

/* ============================================
   2. COMMENTS SECTION
   ============================================ */
.intro-comments-section {
    position: relative;
    z-index: 2;
    padding: 40px;
    background: var(--bg-primary);
    min-height: 400px;
}

.intro-comments-section .section-title {
    margin-bottom: 30px;
    border-left: 4px solid var(--accent-primary);
    padding-left: 15px;
}

/* ============================================
   3. RESPONSIVE - MOBILE FIRST
   ============================================ */

/* Tablet nhỏ */
@media (max-width: 768px) {
    .intro-hero {
        min-height: 70vh;
        padding-top: 50px;
    }
    
    .intro-container {
        padding: 0 20px;
        gap: 25px;
        flex-direction: column;
        align-items: center;
        margin-top: 20px;
    }
    
    .intro-poster-box {
        width: 180px;
        order: -1;
    }
    
    .intro-content {
        text-align: center;
        width: 100%;
    }
    
    .intro-title {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }
    
    .intro-meta-row {
        justify-content: center;
        gap: 10px;
        font-size: 0.9rem;
    }
    
    .intro-info-grid {
        grid-template-columns: 1fr;
        gap: 8px 15px;
        max-width: 100%;
    }
    
    .info-item {
        justify-content: center;
    }
    
    .info-item.full-width {
        grid-column: span 1;
    }
    
    .intro-desc {
        font-size: 0.95rem;
        margin-bottom: 20px;
        text-align: center;
    }
    
    .intro-tags {
        justify-content: center;
    }
    
    .intro-actions {
        justify-content: center;
        width: 100%;
    }
    
    .intro-actions .btn-lg {
        flex: 1;
        max-width: 200px;
        justify-content: center;
        padding: 14px 20px;
        font-size: 1rem;
    }
    
    .btn-play-intro {
        max-width: 100% !important;
    }
    
    .intro-comments-section {
        padding: 20px 15px;
    }
    
    .intro-back-btn {
        top: 60px;
        left: 10px;
        padding: 8px 12px;
        font-size: 13px;
    }
}

/* Mobile nhỏ */
@media (max-width: 480px) {
    .intro-hero {
        min-height: 65vh;
        align-items: flex-end;
        padding-bottom: 30px;
    }
    
    .intro-bg-image {
        opacity: 0.5;
    }
    
    .intro-poster-box {
        width: 140px;
        margin-bottom: 10px;
    }
    
    .intro-title {
        font-size: 1.5rem;
    }
    
    .intro-meta-row {
        gap: 8px;
        font-size: 0.85rem;
    }
    
    .intro-desc {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .intro-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .intro-actions .btn-lg {
        width: 100%;
        max-width: 100%;
        padding: 16px 24px;
        font-size: 1.1rem;
    }
    
    .intro-actions .btn-icon-text {
        width: 100%;
        justify-content: center;
    }
    
    .intro-comments-section .section-title {
        font-size: 1.3rem;
    }
    
    .intro-back-btn {
        top: 55px;
        left: 5px;
        padding: 6px 10px;
    }
}

/* Large Tablet */
@media (min-width: 769px) and (max-width: 992px) {
    .intro-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .intro-poster-box {
        width: 220px;
    }
    
    .intro-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .intro-info-grid {
        align-self: center;
    }
    
    .intro-actions {
        justify-content: center;
    }
}

/* Desktop lớn */
@media (min-width: 1400px) {
    .intro-title {
        font-size: 4rem;
    }
    
    .intro-meta-row {
        font-size: 1.2rem;
    }
}
