/* TMDB Carousel CSS - Enhanced Mobile Responsive */
.tmdb-carousel-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a0a0a 50%, #0f0f0f 100%);
    background-attachment: fixed;
    color: #ffffff;
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    min-height: 600px;
    position: relative;
}

.tmdb-carousel-wrapper::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 0, 21, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(251, 153, 16, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(255, 0, 21, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 60% 60%, rgba(251, 153, 16, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.tmdb-carousel-loading {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 600px;
    font-size: 1.5rem;
    color: #ff0015;
}

.tmdb-carousel-loading i {
    font-size: 3rem;
    margin-bottom: 20px;
    animation: tmdb-spin 1s linear infinite;
}

@keyframes tmdb-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.tmdb-carousel-container {
    position: relative;
    width: 100%;
    height: 85vh;
    min-height: 600px;
    overflow: hidden;
}

.tmdb-carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.tmdb-carousel-slide {
    position: relative;
    flex: 0 0 100%;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 5%;
}

.tmdb-slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -1;
    opacity: 0.7;
}

.tmdb-slide-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(10, 10, 10, 0.95) 0%, rgba(10, 10, 10, 0.7) 40%, rgba(10, 10, 10, 0.4) 100%);
}

.tmdb-slide-content {
    max-width: 90%; /* PC: 70% width */
    display: flex;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.tmdb-poster-container {
    width: 280px;
    height: 420px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    flex-shrink: 0;
}

.tmdb-poster-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tmdb-info-container {
    flex: 1;
}

.tmdb-movie-tag {
    display: inline-block;
    background: linear-gradient(90deg, #ff0015 0%, #fb9910 100%);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.tmdb-movie-title {
    font-size: 3.2rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #ffffff 0%, #ffcc00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 4px 30px rgba(255, 0, 21, 0.2);
}

.tmdb-movie-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

.tmdb-movie-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    color: #ffcc00;
}

.tmdb-movie-rating i {
    font-size: 14px;
}

.tmdb-movie-description {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.85);
    max-width: 90%;
}

.tmdb-action-buttons {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.tmdb-btn {
    padding: 14px 32px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    border: none;
    outline: none;
}

.tmdb-btn-watch {
    background: linear-gradient(90deg, #ff0015 0%, #fb9910 100%);
    color: white;
    box-shadow: 0 8px 20px rgba(255, 0, 21, 0.3);
    text-decoration: none;
}

.tmdb-btn-watch:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(255, 0, 21, 0.4);
    color: white;
}

.tmdb-btn-trailer {
    background: rgba(255, 255, 255, 0.12);
    color: white;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-decoration: none;
    display: none;
}

.tmdb-btn-trailer:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-3px);
    color: white;
}

/* Carousel Controls - BOTTOM RIGHT */
.tmdb-carousel-controls {
    position: absolute;
    bottom: 30px;
    right: 40px;
    z-index: 100;
    display: flex;
    gap: 12px;
}

.tmdb-carousel-prev,
.tmdb-carousel-next {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 0, 21, 0.85);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.tmdb-carousel-prev:hover,
.tmdb-carousel-next:hover {
    background: rgba(255, 0, 21, 1);
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(255, 0, 21, 0.5);
}

/* Carousel Indicators - BOTTOM CENTER */
.tmdb-carousel-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    display: flex;
    gap: 10px;
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 16px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tmdb-carousel-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s;
}

.tmdb-carousel-indicator.active {
    background: #ff0015;
    width: 24px;
    border-radius: 10px;
    box-shadow: 0 0 8px rgba(255, 0, 21, 0.7);
}

/* Movie Info Badges */
.tmdb-info-badges {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.tmdb-badge {
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

/* Glow effects */
.tmdb-glow-effect {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 0, 21, 0.15) 0%, transparent 70%);
    filter: blur(40px);
    z-index: -1;
    pointer-events: none;
}

.tmdb-glow-1 {
    top: 10%;
    right: 10%;
}

.tmdb-glow-2 {
    bottom: 20%;
    left: 5%;
    background: radial-gradient(circle, rgba(251, 153, 16, 0.1) 0%, transparent 70%);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .tmdb-slide-content {
        max-width: 75%;
        gap: 30px;
    }
    
    .tmdb-movie-title {
        font-size: 2.8rem;
    }
    
    .tmdb-poster-container {
        width: 240px;
        height: 360px;
    }
}

/* MOBILE STYLES - POSTER HIDDEN, 100% WIDTH */
@media (max-width: 768px) {
    .tmdb-carousel-wrapper {
        padding-bottom: 20px;
    }
    
    .tmdb-carousel-container {
        height: 75vh;
        min-height: 500px;
    }
    
    .tmdb-slide-content {
        max-width: 100%; /* Mobile: 100% width */
        flex-direction: column;
        text-align: center;
        gap: 25px;
        margin: 0 auto;
        padding: 0 20px;
    }
    
    /* HIDE POSTER ON MOBILE */
    .tmdb-poster-container {
        display: none;
    }
    
    .tmdb-movie-title {
        font-size: 2.4rem;
    }
    
    .tmdb-movie-description {
        max-width: 100%;
    }
    
    /* HIDE INDICATORS ON MOBILE */
    .tmdb-carousel-indicators {
        display: none;
    }
    
    /* Compact Mobile Controls */
    .tmdb-carousel-controls {
        bottom: 20px;
        right: 15px;
        gap: 8px;
    }
    
    .tmdb-carousel-prev,
    .tmdb-carousel-next {
        width: 40px;
        height: 40px;
        font-size: 16px;
        background: rgba(255, 0, 21, 0.9);
    }
    
    .tmdb-slide-bg::after {
        background: linear-gradient(to top, rgba(10, 10, 10, 0.95) 0%, rgba(10, 10, 10, 0.7) 50%, rgba(10, 10, 10, 0.4) 100%);
    }
    
    .tmdb-movie-meta {
        justify-content: center;
    }
    
    .tmdb-info-badges {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .tmdb-carousel-container {
        height: 70vh;
        min-height: 450px;
    }
    
    .tmdb-movie-title {
        font-size: 2rem;
    }
    
    .tmdb-action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .tmdb-btn {
        width: 220px;
        justify-content: center;
    }
    
    .tmdb-movie-meta {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }
    
    .tmdb-carousel-controls {
        right: 12px;
        bottom: 15px;
        gap: 6px;
    }
    
    .tmdb-carousel-prev,
    .tmdb-carousel-next {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
}

@media (max-width: 400px) {
    .tmdb-movie-title {
        font-size: 1.8rem;
    }
    
    .tmdb-btn {
        width: 200px;
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    .tmdb-carousel-prev,
    .tmdb-carousel-next {
        width: 34px;
        height: 34px;
        font-size: 13px;
    }
    
    .tmdb-carousel-controls {
        gap: 5px;
        right: 10px;
        bottom: 12px;
    }
}