/* Videos-specific styles */


.videos-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 60px;
    padding: 40px;
    padding-left: 10%;
    padding-right: 10%;
}

.video-card {
    display: flex;
    flex-direction: column;
    font-family: 'Optima', sans-serif;
}

.video-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 200px;
    padding-bottom: 10px;
}

.video-thumbnail {
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #000;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.poster-placeholder {
    color: #fff;
    font-size: 1.5rem;
    text-align: center;
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: #fff;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.video-thumbnail:hover .play-overlay {
    opacity: 1;
}

.video-info {
    display: flex;
    flex-direction: column;
}

.video-description {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
    color: #fff;
    font-size: 1.2rem;
    margin-left: 30px;
}

.video-description:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.video-description h1{
    font-size: 25px;
}

.play-button {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #fff;
    font-size: 1.2rem;
    font-weight: bold;
}

.play-button:hover {
    background-color: #fff;
    color: #000;
}

.video-stills {
    display: flex;
    flex-direction: column;
}

.still-item {
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
    color: #ccc;
    font-size: 1.1rem;
    max-height: 120px;
}

.still-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.still-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Additional styles for coming soon videos */

.coming-soon-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 107, 53, 0.9);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    backdrop-filter: blur(5px);
}

.coming-soon-thumbnail {
    position: relative;
    opacity: 0.7;
    filter: grayscale(30%);
}

.coming-soon-thumbnail:hover {
    opacity: 0.9;
    filter: grayscale(10%);
}

.coming-soon-thumbnail::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 45%, rgba(255, 107, 53, 0.1) 50%, transparent 55%);
    pointer-events: none;
}

.coming-soon-button {
    background: linear-gradient(135deg, rgba(69, 126, 24, 0.25), rgba(20, 108, 145, 0.24)) !important;
    color: white !important;
    cursor: not-allowed;
    opacity: 0.8;
}

.coming-soon-button:hover {
    background: linear-gradient(135deg, rgba(41, 154, 32, 0.73), rgba(18, 109, 138, 0.76)) !important;
    opacity: 1;
    transform: scale(1.02);
}

.coming-soon-button span {
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    position: relative;
    margin: 2% auto;
    max-width: 90vw;
    max-height: 96vh;
    background-color: #fff;
    border-radius: 10px;
    overflow: auto;
    animation: slideIn 0.3s ease;
    display: flex;
    flex-direction: column;
}

.modal-video-container {
    width: 100%;
    background-color: #000;
}

.modal-video-container video {
    width: 100%;
    height: auto;
    display: block;
}

.modal-info {
    padding: 30px;
    flex-shrink: 0;
}

.modal-title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.modal-description {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
}

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

.modal-year,
.modal-duration,
.modal-genre {
    color: #666;
    font-size: 1rem;
    margin: 0;
}

.still-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    background-color: #f5f5f5;
    display: block;
}

.close {
    position: absolute;
    top: 15px;
    right: 25px;
    color: #aaa;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    background-color: rgba(255, 255, 255, 0.8);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close:hover {
    color: #000;
    background-color: rgba(255, 255, 255, 1);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@media (max-width: 1024px) {
    .videos-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .video-main {
        min-height: 150px;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 20px;
    }

    .title {
        font-size: 2rem;
    }

    .container {
        padding: 20px;
    }

    .video-main {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .video-thumbnail {
        min-height: 150px;
    }

    .modal-content {
        margin: 1% auto;
        max-width: 98vw;
        max-height: 98vh;
    }

    .modal-info {
        padding: 20px;
    }

    .modal-title {
        font-size: 1.5rem;
    }

    .close {
        top: 10px;
        right: 15px;
        font-size: 30px;
        width: 35px;
        height: 35px;
    }
}