/* Popup Styles */
.synopsis-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.synopsis-popup-content {
    background: white;
    border-radius: 16px;
    max-width: 600px;
    width: 100%;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    animation: popupSlideIn 0.3s ease;
    position: relative;
}

.synopsis-popup-header {
    padding: 20px 25px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #6c63ff, #4834d4);
    color: white;
    border-radius: 16px 16px 0 0;
}

.synopsis-popup-header h3 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 600;
}

.synopsis-popup-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: white;
    transition: all 0.3s ease;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.synopsis-popup-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.synopsis-popup-body {
    padding: 25px;
    max-height: calc(85vh - 150px);
    overflow-y: auto;
    line-height: 1.7;
    color: #333;
    font-size: 1.1rem;
    text-align: justify;
}

.synopsis-popup-body::-webkit-scrollbar {
    width: 8px;
}

.synopsis-popup-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.synopsis-popup-body::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.synopsis-popup-body::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.synopsis-popup-footer {
    padding: 15px 25px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    background: #f8f9fa;
}

.synopsis-popup .btn {
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.synopsis-popup .btn-primary {
    background: linear-gradient(135deg, #6c63ff, #4834d4);
    color: white;
    box-shadow: 0 4px 12px rgba(108, 99, 255, 0.3);
}

.synopsis-popup .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(108, 99, 255, 0.4);
}

.synopsis-popup .btn-secondary {
    background: #f8f9fa;
    color: #666;
    border: 1px solid #ddd;
}

.synopsis-popup .btn-secondary:hover {
    background: #e9ecef;
}

@keyframes popupSlideIn {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .synopsis-popup-content {
        max-width: 95%;
        margin: 10px;
    }
    
    .synopsis-popup-header h3 {
        font-size: 1.2rem;
    }
    
    .synopsis-popup-body {
        padding: 20px;
        font-size: 1rem;
    }
    
    .synopsis-popup .btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}