.trailer-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.video-wrapper {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.video-wrapper::before {
    content: '';
    display: block;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
}

.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.trailer-card {
    background: #1e1e1e;
    border: 1px solid #333;
    border-radius: 12px;
    transition: all 0.3s ease;
    height: 100%;
}

.trailer-card:hover {
    transform: translateY(-5px);
    border-color: red;
    box-shadow: 0 10px 20px rgba(13, 110, 253, 0.1);
}

.card-body {
    padding: 1.5rem;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 60%, rgba(0,0,0,0.8));
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 1rem;
}

.video-wrapper:hover .video-overlay {
    opacity: 1;
}

.fullscreen-btn {
    background: rgba(220, 53, 69, 0.8);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.fullscreen-btn:hover {
    background: rgb(220, 53, 69);
    transform: scale(1.1);
}

.auto-play-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: #ddd;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.trailer-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #fff;
}

.detail-link {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.detail-link:hover {
    color: #80bdff !important;
    transform: translateX(5px);
}

/* Fullscreen Modal Custom Styles */
#fullscreenModal .modal-content {
    background: #000;
    border: none;
    border-radius: 0;
}

#fullscreenModal .modal-header {
    border-bottom: 1px solid #333;
    padding: 1rem 1.5rem;
}

#fullscreenModal .modal-body {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

#fullscreenVideo {
    width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

.modal-controls {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.control-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #444;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .video-overlay {
        opacity: 1;
    }
    
    .modal-dialog {
        margin: 0;
        max-width: 100%;
    }
    
    #fullscreenVideo {
        max-height: 60vh;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #222;
}

::-webkit-scrollbar-thumb {
    background: red;
    border-radius: 4px;
}

