/* Movie Modal Styles - Cinema Seat Selection */
.movie-modal-header {
    margin: -2rem -2rem 2rem -2rem;
    border-radius: 20px 20px 0 0;
    overflow: hidden;
}

.movie-modal-poster-container {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.movie-modal-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.movie-modal-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.9) 100%);
}

.movie-rating-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    border: 2px solid #ffd700;
}

.play-trailer-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(231, 76, 60, 0.95);
    color: white;
    border: none;
    padding: 18px 35px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 40px rgba(231, 76, 60, 0.5);
    transition: all 0.3s ease;
}

.play-trailer-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 15px 50px rgba(231, 76, 60, 0.7);
}

.play-trailer-btn i {
    font-size: 1.5rem;
}

.movie-modal-body {
    position: relative;
}

.movie-modal-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #1a1a1a 0%, #e74c3c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.movie-modal-rating {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.movie-duration {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #7f8c8d;
    font-weight: 600;
}

.movie-genres-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 2rem;
}

.genre-tag {
    padding: 8px 18px;
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.1), rgba(192, 57, 43, 0.05));
    border: 1px solid rgba(231, 76, 60, 0.3);
    border-radius: 20px;
    color: #e74c3c;
    font-weight: 600;
    font-size: 0.9rem;
}

.movie-modal-description {
    margin-bottom: 2rem;
}

.movie-modal-description h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.movie-modal-description h3 i {
    color: #e74c3c;
}

.movie-modal-description p {
    color: #5a6c7d;
    line-height: 1.8;
    font-size: 1.05rem;
}

.movie-crew-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-bottom: 3rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.05), rgba(192, 57, 43, 0.03));
    border-radius: 15px;
    border-left: 4px solid #e74c3c;
}

.crew-item {
    display: flex;
    gap: 10px;
}

.crew-label {
    font-weight: 700;
    color: #2c3e50;
    min-width: 80px;
}

.crew-value {
    color: #5a6c7d;
}

.movie-booking-section {
    margin-top: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.05), rgba(41, 128, 185, 0.03));
    border-radius: 20px;
    border: 2px solid rgba(52, 152, 219, 0.2);
}

.movie-booking-section > h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cinema-selection,
.showtime-selection,
.format-selection {
    margin-bottom: 2rem;
}

.cinema-selection label,
.showtime-selection label,
.format-selection label,
.seat-selection-section h3 {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.cinema-select {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid rgba(52, 152, 219, 0.3);
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cinema-select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.showtime-grid,
.format-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
}

.showtime-btn,
.format-btn {
    padding: 15px 20px;
    border: 2px solid rgba(52, 152, 219, 0.3);
    border-radius: 12px;
    background: white;
    color: #2c3e50;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.showtime-btn:hover,
.format-btn:hover {
    border-color: #3498db;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.2);
}

.showtime-btn.selected,
.format-btn.selected {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border-color: #3498db;
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.4);
}

.format-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.format-name {
    font-size: 1rem;
    font-weight: 700;
}

.format-price {
    font-size: 0.9rem;
    color: #7f8c8d;
}

.format-btn.selected .format-price {
    color: rgba(255, 255, 255, 0.9);
}

.seat-selection-section {
    margin-top: 3rem;
    padding: 2rem;
    background: white;
    border-radius: 15px;
}

.cinema-screen {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    padding: 15px;
    border-radius: 15px 15px 50% 50% / 15px 15px 20px 20px;
    margin-bottom: 3rem;
    box-shadow: 0 10px 30px rgba(44, 62, 80, 0.3);
}

.screen-label {
    text-align: center;
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 3px;
}

.seats-legend {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #5a6c7d;
    font-weight: 600;
}

.legend-seat {
    width: 30px;
    height: 30px;
    border-radius: 8px 8px 0 0;
    border: 2px solid;
}

.legend-seat.available {
    background: #ecf0f1;
    border-color: #bdc3c7;
}

.legend-seat.selected {
    background: #27ae60;
    border-color: #229954;
}

.legend-seat.occupied {
    background: #95a5a6;
    border-color: #7f8c8d;
}

.seats-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 800px;
    margin: 0 auto;
}

.seat-row {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.row-label {
    width: 30px;
    text-align: center;
    font-weight: 700;
    color: #2c3e50;
    font-size: 1rem;
}

.seat {
    width: 45px;
    height: 45px;
    border-radius: 10px 10px 0 0;
    border: 2px solid;
    background: #ecf0f1;
    border-color: #bdc3c7;
    color: #7f8c8d;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.seat:hover:not(.occupied) {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.seat.selected {
    background: linear-gradient(135deg, #27ae60, #229954);
    border-color: #229954;
    color: white;
    transform: scale(1.05);
}

.seat.occupied {
    background: #95a5a6;
    border-color: #7f8c8d;
    color: white;
    cursor: not-allowed;
    opacity: 0.5;
}

.booking-summary {
    margin-top: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.1), rgba(39, 174, 96, 0.05));
    border-radius: 15px;
    border: 2px solid rgba(46, 204, 113, 0.3);
}

.booking-summary h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    color: #5a6c7d;
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-row.total-row {
    margin-top: 1rem;
    padding-top: 1.5rem;
    border-top: 2px solid rgba(46, 204, 113, 0.3);
    font-size: 1.2rem;
    font-weight: 700;
    color: #27ae60;
}

.movie-modal-actions {
    margin-top: 2rem;
}

.book-movie-tickets-btn {
    width: 100%;
    padding: 20px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border: none;
    border-radius: 15px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(231, 76, 60, 0.4);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.book-movie-tickets-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(231, 76, 60, 0.5);
}

.book-movie-tickets-btn:active {
    transform: translateY(-1px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .movie-modal-poster-container {
        height: 350px;
    }

    .movie-modal-title {
        font-size: 1.8rem;
    }

    .showtime-grid,
    .format-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .seat {
        width: 35px;
        height: 35px;
        font-size: 0.65rem;
    }

    .row-label {
        width: 25px;
        font-size: 0.9rem;
    }

    .booking-summary {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .seat-selection-section {
        padding: 1rem 0.5rem;
    }

    .seats-grid {
        gap: 6px;
        padding: 0 5px;
        overflow-x: auto;
        max-width: 100%;
    }

    .seat-row {
        gap: 3px;
        min-width: max-content;
    }

    .seat {
        width: 24px;
        height: 24px;
        font-size: 0.55rem;
        border-radius: 5px 5px 0 0;
        flex-shrink: 0;
    }

    .row-label {
        width: 18px;
        font-size: 0.75rem;
        flex-shrink: 0;
    }

    .cinema-screen {
        margin-bottom: 2rem;
        padding: 12px;
    }

    .screen-label {
        font-size: 0.95rem;
        letter-spacing: 2px;
    }

    .seats-legend {
        gap: 15px;
        margin-bottom: 1.5rem;
    }

    .legend-item {
        font-size: 0.8rem;
    }

    .legend-seat {
        width: 24px;
        height: 24px;
    }
}