/* CSS cho trang Movies và Series */

/* Link màu cho menu */
.menu-list-item a {
    text-decoration: none;
    color: inherit;
}

/* Header trang */
.movie-page-header {
    padding: 20px 0;
    margin-bottom: 20px;
}

.movie-page-header h1 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #4dbf00;
}

/* Lọc phim */
.filter-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 10px;
}

.filter-group {
    display: flex;
    align-items: center;
    margin-right: 15px;
}

.filter-group label {
    margin-right: 8px;
    color: #ddd;
    font-size: 14px;
}

.filter-select {
    background-color: #333;
    color: white;
    border: 1px solid #444;
    padding: 8px 12px;
    border-radius: 5px;
    min-width: 120px;
    font-size: 14px;
}

.filter-select:focus {
    outline: none;
    border-color: #4dbf00;
}

.filter-button {
    background-color: #4dbf00;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
}

.filter-button:hover {
    background-color: #3da000;
}

/* Grid phim */
.movie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* Card phim */
.movie-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.movie-poster {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
}

.movie-info {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.movie-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
    color: white;
}

.movie-year {
    font-size: 14px;
    color: #aaa;
    margin-bottom: 8px;
}

.movie-rating {
    display: flex;
    align-items: center;
    margin-top: auto;
}

.movie-rating i {
    color: #f5c518;
    margin-right: 5px;
}

.movie-rating span {
    color: white;
}

.movie-genres {
    margin: 8px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.movie-genre {
    background-color: rgba(77, 191, 0, 0.2);
    color: #4dbf00;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 4px;
}

/* Phân trang */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    margin-bottom: 50px;
}

.pagination-button {
    background-color: #333;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.pagination-button:hover:not(:disabled) {
    background-color: #4dbf00;
}

.pagination-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.current-page {
    margin: 0 15px;
    color: #ddd;
}

/* Loading indicator */
.loading {
    text-align: center;
    padding: 40px;
    grid-column: 1 / -1;
}

.loading i {
    font-size: 30px;
    color: #4dbf00;
    margin-bottom: 10px;
    animation: spin 1s linear infinite;
}

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

/* Movie detail */
.movie-detail-container {
    position: relative;
}

.backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 400px;
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    z-index: 0;
}

.movie-detail {
    position: relative;
    z-index: 1;
    padding: 30px;
    display: flex;
    gap: 30px;
}

.movie-poster-large {
    width: 300px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.movie-detail-info {
    flex: 1;
}

.movie-detail-title {
    font-size: 32px;
    margin-bottom: 10px;
    color: #fff;
}

.movie-detail-tagline {
    font-size: 18px;
    margin-bottom: 20px;
    color: #4dbf00;
    font-style: italic;
}

.movie-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.movie-meta-item {
    display: flex;
    align-items: center;
    color: #ddd;
    font-size: 14px;
}

.movie-meta-item i {
    margin-right: 5px;
    color: #4dbf00;
}

.movie-detail-overview {
    margin-bottom: 30px;
    line-height: 1.6;
    color: #ddd;
}

.movie-cast {
    margin-top: 40px;
}

.movie-cast h3 {
    margin-bottom: 20px;
    color: #4dbf00;
}

.cast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
}

.cast-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s;
}

.cast-card:hover {
    transform: translateY(-5px);
}

.cast-photo {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
}

.cast-info {
    padding: 10px;
}

.cast-name {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 2px;
    color: #fff;
}

.cast-character {
    font-size: 12px;
    color: #aaa;
}

/* Responsive */
@media (max-width: 1200px) {
    .movie-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}

@media (max-width: 992px) {
    .movie-detail {
        flex-direction: column;
    }
    
    .movie-poster-large {
        width: 100%;
        max-width: 300px;
        margin: 0 auto 20px;
    }
}

@media (max-width: 768px) {
    .movie-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .filter-container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .filter-group {
        width: 100%;
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .filter-select {
        flex: 1;
    }
    
    .cast-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
}

@media (max-width: 576px) {
    .movie-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .movie-page-header h1 {
        font-size: 24px;
    }
} 