/* Movie Modal Specific Styles */

html:has(dialog[open]) {
	overflow: hidden;
	scrollbar-gutter: stable;
}

.modal-poster {
    position: relative;
}

.modal-poster img {
    width: 300px;
    height: 450px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    object-fit: cover;
    object-position: bottom center;
}

.btn-trailer {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(231, 76, 60, 0.9);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    backdrop-filter: blur(2px);
}

.btn-trailer:hover {
    background: rgba(192, 57, 43, 0.9);
}

.btn-trailer::before {
    content: "▶";
    margin-right: 0.5rem;
}

.modal-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin: 0 0 1rem;
    color: #333;
    line-height: 1.2;
}

.movie-details {
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.movie-details p {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    color: #666;
}

.movie-details strong {
    color: #333;
}

.movie-tags {
    margin-bottom: 1.5rem;
}

.movie-tag {
    display: inline-block;
    background: #e3f2fd;
    color: #1976d2;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    border: 1px solid #bbdefb;
}

.movie-tag.family-friendly {
    background: #e8f5e8;
    color: #2e7d32;
    border-color: #c8e6c9;
}

.movie-tag.animation {
    background: #fff3e0;
    color: #f57c00;
    border-color: #ffcc02;
}

.movie-tag.thriller {
    background: #fce4ec;
    color: #c2185b;
    border-color: #f8bbd9;
}

.movie-tag.comedy {
    background: #fff8e1;
    color: #f9a825;
    border-color: #fff176;
}

.movie-tag.biographical {
    background: #f3e5f5;
    color: #7b1fa2;
    border-color: #ce93d8;
}

.movie-tag.classic {
    background: #efebe9;
    color: #5d4037;
    border-color: #bcaaa4;
}

.movie-tag.music {
    background: #e0f2f1;
    color: #00695c;
    border-color: #80cbc4;
}

.movie-plot {
    margin-bottom: 2rem;
}

.movie-plot p {
    font-size: 1rem;
    line-height: 1.7;
    color: #555;
    margin: 0;
}

.screening-info {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.screening-info h2 {
    font-size: 1.2rem;
    margin: 0 0 1rem;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.screening-details {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1.5rem;
    align-items: center;
}

.screening-time {
    text-align: center;
}

.screening-time .day {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    text-transform: capitalize;
}

.screening-time .time {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--celeste);
    margin-top: 0.25rem;
}

.screening-venue {
    text-align: center;
}

.screening-venue .venue {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
}

.screening-venue .location {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.25rem;
}

.screening-price {
    text-align: center;
    background: var(--celeste);
    color: white;
    padding: 0.75rem 1.5rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.screening-price .ticket-icon {
    fill: white;
    flex-shrink: 0;
}

.screening-price.clickable {
    cursor: pointer;
    transition: all 0.3s ease;
}

.screening-price.clickable:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.movie-links {
    text-align: center;
}

.btn-imdb {
    background: #f5c518;
    color: #000;
    font-weight: bold;
    padding: 0.75rem 2rem;
    text-decoration: none;
    border-radius: 6px;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.btn-imdb:hover {
    background: #e6b800;
}

/* Responsive Modal Styles */
@media (max-width: 768px) {
    .movie-modal {
        width: 95vw;
        max-width: none;
    }
    
    .modal-title {
        font-size: 1.8rem;
    }
    
    .screening-details {
        grid-template-columns: 1fr;
        gap: 1rem;
        text-align: center;
    }
    
    .screening-venue {
        text-align: center;
    }
    
    .btn-trailer {
        position: static;
        transform: none;
        margin-top: 1rem;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .modal-body {
        padding: 1rem;
    }
    
    .modal-title {
        font-size: 1.5rem;
    }
    
    .movie-details {
        font-size: 0.9rem;
    }
    
    .movie-plot p {
        font-size: 0.9rem;
    }
} 