/* Hollywood Cinema Widget Styling */

.hollywood-widget {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.hollywood-widget.in-sidebar {
    background: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
}

.hollywood-widget.in-sidebar .widget-header,
.hollywood-widget.in-sidebar .widget-footer {
    display: none;
}

.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.widget-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.widget-header .fas.fa-film {
    color: #fbbf24;
}

.cinema-link {
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
    transition: color 0.3s ease;
}

.cinema-link:hover {
    color: #fbbf24;
}

.movies-list {
    max-height: 500px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(251, 191, 36, 0.3) transparent;
}

.movies-list::-webkit-scrollbar {
    width: 6px;
}

.movies-list::-webkit-scrollbar-track {
    background: transparent;
}

.movies-list::-webkit-scrollbar-thumb {
    background: rgba(251, 191, 36, 0.3);
    border-radius: 3px;
}

.movie-item {
    display: flex;
    gap: 12px;
    padding: 12px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.movie-item:hover {
    background: rgba(251, 191, 36, 0.05);
    transform: translateX(5px);
}

.movie-item:last-child {
    border-bottom: none;
}

.movie-poster {
    position: relative;
    flex-shrink: 0;
    width: 60px;
    height: 90px;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.movie-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.movie-item:hover .movie-poster img {
    transform: scale(1.05);
}

.rating-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(0, 0, 0, 0.8);
    color: #fbbf24;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
}

.movie-content {
    flex: 1;
    min-width: 0;
}

.movie-title {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 8px 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.runtime {
    display: flex;
    align-items: center;
    gap: 4px;
}

.showtimes {
    margin-top: 10px;
}

.showtimes-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 5px;
    display: block;
}

.times {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.showtime {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
}

.no-showtimes {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
}

.widget-footer {
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.03);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #000;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.view-all-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3);
    background: linear-gradient(135deg, #fcd34d 0%, #fbbf24 100%);
}

/* Movie Modal Styles */
.movie-modal {
    max-width: 600px;
}

.movie-details {
    display: flex;
    gap: 20px;
}

.modal-poster {
    width: 150px;
    height: 225px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.movie-info {
    flex: 1;
}

.movie-rating {
    display: inline-block;
    background: #fbbf24;
    color: #000;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 12px;
    margin-bottom: 10px;
}

.movie-runtime {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 15px;
    font-size: 14px;
}

.movie-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
    margin-bottom: 20px;
}

.modal-showtimes h4 {
    color: #fbbf24;
    margin-bottom: 10px;
    font-size: 16px;
}

.showtime-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.showtime-btn {
    background: rgba(251, 191, 36, 0.2);
    border: 1px solid #fbbf24;
    color: #fbbf24;
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.showtime-btn:hover {
    background: #fbbf24;
    color: #000;
}

.modal-actions {
    margin-top: 20px;
}

.error-message {
    padding: 40px 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
}

.error-message i {
    font-size: 24px;
    color: #fbbf24;
    margin-bottom: 15px;
}

.error-message p {
    margin: 0 0 15px 0;
    font-size: 14px;
}

.retry-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
}

.retry-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .movie-item {
        padding: 12px 15px;
        gap: 12px;
    }
    
    .movie-poster {
        width: 60px;
        height: 90px;
    }
    
    .movie-title {
        font-size: 13px;
    }
    
    .movie-details {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .modal-poster {
        width: 120px;
        height: 180px;
    }
}

/* Loading states */
.hollywood-widget.loading {
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    color: rgba(255, 255, 255, 0.7);
}

.spinner-ring {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid #fbbf24;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
