/* TMDb Slider Container */
.tmdb-slider-container {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 20px;
    position: relative;
}

/* Slider */
.tmdb-slider {
    margin: 0 -10px;
}

.tmdb-slider .slick-slide {
    padding: 0 10px;
}

/* Card Styles */
.tmdb-card {
    cursor: pointer;
    transition: transform 0.3s ease;
    outline: none;
}

.tmdb-card:hover {
    transform: translateY(-10px);
}

.tmdb-card-inner {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    background: #fff;
    transition: box-shadow 0.3s ease;
}

.tmdb-card:hover .tmdb-card-inner {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.tmdb-card-image {
    position: relative;
    padding-bottom: 150%;
    overflow: hidden;
    background: #f0f0f0;
}

.tmdb-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tmdb-no-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #999;
    font-size: 14px;
}

.tmdb-card-content {
    padding: 15px;
    background: #fff;
}

.tmdb-card-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: #333;
    line-height: 1.4;
    min-height: 44px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tmdb-card-rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rating-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: bold;
    font-size: 14px;
}

/* Slick Arrows */
.tmdb-slider-container .slick-prev,
.tmdb-slider-container .slick-next {
    width: 50px;
    height: 50px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    transition: background 0.3s ease;
}

.tmdb-slider-container .slick-prev:hover,
.tmdb-slider-container .slick-next:hover {
    background: rgba(0, 0, 0, 0.8);
}

.tmdb-slider-container .slick-prev {
    left: -25px;
}

.tmdb-slider-container .slick-next {
    right: -25px;
}

.tmdb-slider-container .slick-prev:before,
.tmdb-slider-container .slick-next:before {
    font-size: 24px;
    opacity: 1;
}

/* Modal Styles */
.tmdb-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    overflow-y: auto;
    padding: 40px 20px;
}

.tmdb-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.tmdb-modal-content {
    position: relative;
    max-width: 1000px;
    width: 100%;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.4s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tmdb-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.tmdb-modal-close:hover {
    background: rgba(0, 0, 0, 0.9);
}

.tmdb-modal-hero {
    position: relative;
    height: 400px;
    background-size: cover;
    background-position: center;
    background-color: #000;
}

.tmdb-modal-hero::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to top, #fff, transparent);
}

.tmdb-modal-body {
    padding: 30px 40px 40px;
}

.tmdb-modal-header {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    margin-top: -150px;
    position: relative;
}

.tmdb-modal-poster {
    flex-shrink: 0;
    width: 200px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.tmdb-modal-poster img {
    width: 100%;
    display: block;
}

.tmdb-modal-info {
    flex: 1;
    padding-top: 120px;
}

.tmdb-modal-title {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 15px 0;
    color: #333;
}

.tmdb-modal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
}

.tmdb-modal-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tmdb-modal-rating {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: bold;
    font-size: 16px;
}

.tmdb-modal-genres {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tmdb-genre-tag {
    padding: 6px 14px;
    background: #f0f0f0;
    border-radius: 20px;
    font-size: 13px;
    color: #555;
}

.tmdb-modal-overview {
    margin-bottom: 30px;
}

.tmdb-modal-overview h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 15px 0;
    color: #333;
}

.tmdb-modal-overview p {
    font-size: 15px;
    line-height: 1.7;
    color: #555;
    margin: 0;
}

.tmdb-modal-cast {
    margin-bottom: 30px;
}

.tmdb-modal-cast h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 15px 0;
    color: #333;
}

.tmdb-cast-list {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.tmdb-cast-item {
    flex-shrink: 0;
    text-align: center;
    width: 100px;
}

.tmdb-cast-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 8px;
    background: #f0f0f0;
}

.tmdb-cast-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tmdb-cast-name {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 3px;
}

.tmdb-cast-character {
    font-size: 12px;
    color: #777;
}

.tmdb-modal-trailer {
    margin-bottom: 30px;
}

.tmdb-modal-trailer h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 15px 0;
    color: #333;
}

.tmdb-trailer-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    background: #000;
}

.tmdb-trailer-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.tmdb-modal-cta {
    text-align: center;
}

.tmdb-cta-button {
    display: inline-block;
    padding: 16px 48px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.tmdb-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .tmdb-modal-hero {
        height: 250px;
    }
    
    .tmdb-modal-body {
        padding: 20px;
    }
    
    .tmdb-modal-header {
        flex-direction: column;
        align-items: center;
        margin-top: -100px;
    }
    
    .tmdb-modal-poster {
        width: 150px;
    }
    
    .tmdb-modal-info {
        padding-top: 0;
        text-align: center;
    }
    
    .tmdb-modal-title {
        font-size: 24px;
    }
    
    .tmdb-modal-meta {
        justify-content: center;
    }
    
    .tmdb-slider-container .slick-prev {
        left: 5px;
    }
    
    .tmdb-slider-container .slick-next {
        right: 5px;
    }
}