/* Movie Page Styles */

.movie-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    min-height: 100vh;
}

/* Filter Controls */
.filter-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    padding: 0 1rem;
}

.filter-btn {
    padding: 0.75rem 2rem;
    background: transparent;
    border: 2px solid #333;
    border-radius: 2rem;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    color: #333;
}

.filter-btn:hover {
    background: #333;
    color: #fff;
    transform: translateY(-2px);
}

.filter-btn.active {
    background: #333;
    color: #fff;
}

/* Movie Grid */
.movie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.movie-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.movie-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.movie-item.hidden {
    display: none;
}

/* Movie Thumbnail */
.movie-thumbnail {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
    background: #000;
}

.movie-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

/* Thumbnail Placeholder */
.thumbnail-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.thumbnail-placeholder span {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 600;
    text-align: center;
    padding: 1rem;
}

/* Different colors for different categories */
.placeholder-pv {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.placeholder-mv {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.placeholder-short {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.placeholder-workshop {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

/* Play Button Overlay */
.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #333;
    transition: all 0.3s ease;
    padding-left: 5px;
}

.movie-item:hover .play-button {
    background: #fff;
    transform: translate(-50%, -50%) scale(1.1);
}

/* Movie Info */
.movie-info {
    padding: 1.5rem;
}

.movie-info h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    color: #333;
    font-weight: 600;
}

.movie-category {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Video Modal */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
}

.video-modal-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid #fff;
    color: #fff;
    font-size: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.video-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.video-modal-content {
    width: 100%;
    max-width: 1200px;
    position: relative;
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

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

.video-modal-caption {
    color: #fff;
    text-align: center;
    margin-top: 1.5rem;
    font-size: 1.25rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .movie-container {
        padding: 1rem;
    }

    .filter-controls {
        gap: 0.5rem;
        margin-bottom: 2rem;
    }

    .filter-btn {
        padding: 0.5rem 1.25rem;
        font-size: 0.9rem;
    }

    .movie-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .video-modal {
        padding: 1rem;
    }

    .video-modal-close {
        top: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

    .play-button {
        width: 60px;
        height: 60px;
        font-size: 20px;
    }

    .video-modal-caption {
        font-size: 1rem;
        margin-top: 1rem;
    }
}

@media (max-width: 480px) {
    .movie-info h3 {
        font-size: 1.1rem;
    }

    .movie-category {
        font-size: 0.8rem;
    }

    .play-button {
        width: 50px;
        height: 50px;
        font-size: 18px;
    }
}
