/* Movie Details Plugin Styles */

.movie-details-structured {
    margin: 20px 0;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 8px;
}

.movie-details-structured h3 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.4em;
    font-weight: 600;
}

.movie-details-structured hr {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, #007cba, #00a0d2);
    margin: 10px 0 20px 0;
}

/* Cast Row Layout (for 4 or fewer items) */
.cast-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 20px 0;
    justify-content: flex-start;
}

/* Cast Slider Container */
.cast-slider-container {
    position: relative;
    margin: 20px 0;
    overflow: hidden;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Cast Slider */
.cast-slider {
    display: flex;
    transition: transform 0.3s ease-in-out;
    gap: 20px;
    padding: 20px;
}

/* Individual Cast Item */
.cast-item {
    flex: 0 0 200px;
    text-align: center;
    background: #fff;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.cast-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: #007cba;
}

/* Cast Link */
.cast-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.cast-link:hover {
    text-decoration: none;
}

/* Cast Image Wrapper */
.cast-image-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 15px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #e0e0e0;
    transition: border-color 0.3s ease;
}

.cast-item:hover .cast-image-wrapper {
    border-color: #007cba;
}

/* Cast Image */
.cast-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.cast-item:hover .cast-image {
    transform: scale(1.1);
}

/* Cast Name */
.cast-name {
    display: block;
    font-weight: 600;
    color: #333;
    font-size: 14px;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.cast-item:hover .cast-name {
    color: #007cba;
}

/* Slider Navigation Buttons */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 124, 186, 0.9);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    background: #007cba;
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

/* Slider Dots */
.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 15px 0;
    background: rgba(255,255,255,0.9);
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: background 0.3s ease;
}

.slider-dot.active {
    background: #007cba;
}

.slider-dot:hover {
    background: #00a0d2;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cast-row {
        justify-content: center;
    }
    
    .cast-item {
        flex: 0 0 150px;
        padding: 10px;
    }
    
    .cast-image-wrapper {
        width: 100px;
        height: 100px;
    }
    
    .cast-name {
        font-size: 12px;
    }
    
    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .prev-btn {
        left: 5px;
    }
    
    .next-btn {
        right: 5px;
    }
}

@media (max-width: 480px) {
    .cast-slider {
        padding: 15px 10px;
        gap: 15px;
    }
    
    .cast-item {
        flex: 0 0 130px;
        padding: 8px;
    }
    
    .cast-image-wrapper {
        width: 80px;
        height: 80px;
        margin-bottom: 10px;
    }
    
    .cast-name {
        font-size: 11px;
    }
}

/* Loading Animation */
.cast-image {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

.cast-image[src] {
    background: none;
    animation: none;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Error State for Missing Images */
.cast-image[alt]:after {
    content: "📷";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    opacity: 0.5;
}

/* Smooth transitions for slider movement */
.cast-slider.transitioning {
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/*this is for styling baby*/
/* Modern Movie Details Styles */
.movie-details-modern {
    max-width: 1200px;
    margin: 30px auto;
    /*padding: 20px;*/
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Section Containers */
.movie-section {
    background: #ffffff;
    border-radius: 16px;
    padding: 10px; /*earlier it was 30*/
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* Section Headers */
.section-header {
    margin-bottom: 20px;
}

.section-header h3 {
    color: #374151;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-icon {
    font-size: 1.3rem;
    opacity: 0.8;
}

.section-description {
    margin-bottom: 20px;
}

.section-description p {
    color: #6b7280;
    font-size: 1rem;
    margin: 0;
    line-height: 1.6;
}

/* Content Grids */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.platforms-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

/* Content Cards */
.content-card {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px 20px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.content-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #9ca3af, #6b7280);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.content-card:hover::before {
    transform: scaleX(1);
}

.content-card:hover {
    background: #ffffff;
    border-color: #9ca3af;
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
}

.card-content {
    font-weight: 600;
    color: #374151;
    font-size: 0.95rem;
    line-height: 1.4;
}

/* Specific Card Types */
.director-card::before {
    background: linear-gradient(90deg, #ef4444, #dc2626);
}

.writer-card::before {
    background: linear-gradient(90deg, #3b82f6, #2563eb);
}

.producer-card::before {
    background: linear-gradient(90deg, #10b981, #059669);
}

.platform-card::before {
    background: linear-gradient(90deg, #8b5cf6, #7c3aed);
}

/* Large Cards for Single Items */
.location-card-large,
.language-card-large,
.rating-card-large {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border: 2px solid #d1d5db;
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.location-card-large::before,
.language-card-large::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #6b7280, #4b5563);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.location-card-large:hover::before,
.language-card-large:hover::before {
    transform: scaleX(1);
}

.location-card-large:hover,
.language-card-large:hover {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-color: #9ca3af;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.location-content,
.language-content {
    font-size: 1.1rem;
    font-weight: 600;
    color: #374151;
    line-height: 1.5;
}

/* Box Office Container */
.box-office-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.box-office-card {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border: 2px solid #d1d5db;
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.box-office-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.budget-card::before {
    background: linear-gradient(90deg, #f59e0b, #d97706);
}

.earnings-card::before {
    background: linear-gradient(90deg, #10b981, #059669);
}

.box-office-card:hover::before {
    transform: scaleX(1);
}

.box-office-card:hover {
    background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
    border-color: #9ca3af;
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.12);
}

.box-office-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #6b7280;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.box-office-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: #374151;
}

/* Rating Card Special Styling */
.rating-card-large {
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    border: 2px solid #4b5563;
    color: #ffffff;
}

.rating-card-large:hover {
    background: linear-gradient(135deg, #374151 0%, #4b5563 100%);
    border-color: #6b7280;
}

.rating-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.rating-value {
    font-size: 1rem;
    font-weight: 800;
    color: #fbbf24;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.rating-label {
    font-size: 1.2rem;
    font-weight: 500;
    color: #d1d5db;
    margin-top: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .movie-details-modern {
        /*padding: 16px;*/
        margin: 20px auto;
    }
    
    .movie-section {
        padding: 20px;
        margin-bottom: 16px;
    }
    
    .section-header h3 {
        font-size: 1.3rem;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .platforms-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
    
    .box-office-container {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .rating-value {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .section-header h3 {
        font-size: 1.2rem;
    }
    
    .section-icon {
        font-size: 1.1rem;
    }
    
    .content-card {
        padding: 12px 16px;
    }
    
    .card-content {
        font-size: 0.9rem;
    }
}
/*this is for movie banner*/
.movie-hero-banner {
    position: relative;
    width: 100%;
    min-height: 70vh;
    color: #fff;
    overflow: hidden;
    padding: 2rem;
    box-sizing: border-box;
    border-radius: 12px;
    background-color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.movie-hero-background {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover;
    background-position: center center;
    filter: brightness(0.3);
    z-index: 1;
}

.movie-hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 40%, transparent 100%);
    z-index: 2;
}

.movie-hero-content {
    position: relative;
    z-index: 3;
    display: flex;
    max-width: 1100px;
    width: 100%;
    gap: 3rem;
    padding: 1rem;
}

/* Left sidebar with poster and meta */
.movie-sidebar {
    flex: 0 0 280px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    text-align: center;
}

.movie-poster {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.8);
}



.movie-meta {
    width: 100%;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    margin-bottom: 0.6rem;
    justify-content: center;
}

.meta-icon {
    font-size: 1.3rem;
}

/* Platform badges */
.streaming-platforms {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.platform-badge {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #fff;
    backdrop-filter: blur(4px);
}

/* Right side paragraph and button */
.movie-description {
    flex: 1;
    font-size: 1.15rem;
    line-height: 1.5;
    color: #eee;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
}

.trailer-button {
    align-self: flex-start;
    background: #e50914;
    color: #fff;
    border: none;
    padding: 0.8rem 1.6rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease;
    width: fit-content;
}

.trailer-button:hover {
    background: #c40812;
}

/* Modal styles remain the same as before... */
.trailer-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.trailer-modal-content {
    position: relative;
    width: 100%;
    max-width: 800px;
    background: #000;
    padding: 1rem;
    border-radius: 10px;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 16px;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
    z-index: 1;
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
}

.video-container iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .movie-hero-content {
        flex-direction: column;
        gap: 1.5rem;
    }
    .movie-sidebar {
        flex: none;
        width: 100%;
        align-items: flex-start;
        text-align: left;
    }
    .movie-poster {
        width: 120px;
    }
    .movie-description {
        font-size: 1rem;
    }
}
