/* Container for centering content */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Movies Grid */
.movies-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* 5 movies per row */
    gap: 20px;
    margin: 2rem 0;
}

/* Movie Card */
.movie-card {
    background: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.movie-card:hover {
    transform: translateY(-5px);
}

.movie-poster {
    position: relative;
    width: 100%;
    padding-top: 150%; /* 2:3 aspect ratio */
}

.movie-poster img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.movie-info {
    padding: 15px;
}

.movie-info h3 {
    margin: 0 0 8px 0;
    font-size: 1rem;
    color: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.movie-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.year, .rating {
    font-size: 0.85rem;
    color: #999;
}

.genres {
    font-size: 0.8rem;
    color: #666;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 15px;
    background: #1a1a1a;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background: #e50914;
}

.pagination .active {
    background: #e50914;
    cursor: default;
}

.pagination .dots {
    color: #666;
    padding: 0 5px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .movies-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .movies-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .container {
        padding: 0 30px;
    }
}

@media (max-width: 768px) {
    .movies-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .container {
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .movies-grid {
        grid-template-columns: 1fr;
    }
    .container {
        padding: 0 15px;
    }
}

/* Table Styles - Enhanced */
.info-table, .cast-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 1rem 0;
    border: 2px solid #333;
    background-color: #222;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.info-table th, .info-table td,
.cast-table th, .cast-table td {
    padding: 15px 20px;
    text-align: left;
    border: 1px solid #333;
    transition: background-color 0.2s ease;
    line-height: 1.6;
}

.info-table th, .cast-table th {
    background-color: #1a1a1a;
    color: #e50914;
    width: 200px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.info-table td, .cast-table td {
    background-color: #222;
    color: #ddd;
}

/* Table Links and Tags */
.info-table a, .cast-table a {
    color: #3498db !important;
    text-decoration: none;
    transition: color 0.3s;
    display: inline-block;
    white-space: nowrap;
}

.info-table a:hover, .cast-table a:hover {
    color: #2980b9 !important;
    text-decoration: underline;
}

/* Comma handling for multiple tags */
.info-table td a:not(:last-child)::after,
.cast-table td a:not(:last-child)::after {
    content: ', ';
    color: #fff !important;
    text-decoration: none;
}

.info-table td a:hover::after,
.cast-table td a:hover::after {
    text-decoration: none;
}

/* Table Hover Effects */
.info-table tr:hover td,
.cast-table tr:hover td {
    background-color: #2a2a2a;
}

/* Table Border Radius */
.info-table tr:first-child th:first-child,
.cast-table tr:first-child th:first-child {
    border-top-left-radius: 8px;
}

.info-table tr:first-child th:last-child,
.cast-table tr:first-child th:last-child {
    border-top-right-radius: 8px;
}

.info-table tr:last-child td:first-child,
.cast-table tr:last-child td:first-child {
    border-bottom-left-radius: 8px;
}

.info-table tr:last-child td:last-child,
.cast-table tr:last-child td:last-child {
    border-bottom-right-radius: 8px;
}

/* Table Section Container */
.table-section {
    margin: 2.5rem 0;
    background-color: #1a1a1a;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

.table-section h2 {
    color: #e50914;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    border-bottom: 2px solid #333;
    padding-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Post Meta Styles */
.post-meta {
    background: rgba(26, 26, 26, 0.8);
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0 2rem 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    font-size: 0.9rem;
    color: #FFF;
}

.author-info, .post-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.post-meta .icon {
    color: #e50914;
}

.updated-time {
    color: #666;
    font-style: italic;
    margin-left: 0.5rem;
}

/* Responsive Styles for Tables */
@media (max-width: 768px) {
    .info-table th, .cast-table th {
        width: 130px;
        font-size: 0.85rem;
    }
    
    .info-table th, .info-table td,
    .cast-table th, .cast-table td {
        padding: 12px 15px;
    }
    
    .table-section {
        padding: 1.5rem;
        margin: 2rem 0;
    }

    .post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .info-table th, .cast-table th {
        width: 110px;
        font-size: 0.8rem;
    }
    
    .info-table td, .cast-table td {
        font-size: 0.9rem;
    }
    
    .info-table th, .info-table td,
    .cast-table th, .cast-table td {
        padding: 10px 12px;
    }
    
    .table-section {
        padding: 1rem;
        margin: 1.5rem 0;
    }
    
    .table-section h2 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
}


/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Movie Grid */
.movie-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* 5 movies per row */
    gap: 20px;
    margin: 2rem 0;
}

/* Movie Card */
.movie-card {
    background: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.movie-card:hover {
    transform: translateY(-5px);
}

.movie-poster {
    position: relative;
    width: 100%;
    padding-top: 150%; /* 2:3 aspect ratio */
}

.movie-poster img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.movie-info {
    padding: 15px;
}

.movie-info h3 {
    margin: 0 0 8px 0;
    font-size: 1rem;
    color: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.movie-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.year, .rating {
    font-size: 0.85rem;
    color: #999;
}

.genres {
    font-size: 0.8rem;
    color: #666;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .movie-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .movie-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .container {
        padding: 0 30px;
    }
}

@media (max-width: 768px) {
    .movie-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .container {
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .movie-grid {
        grid-template-columns: 1fr;
    }
    .container {
        padding: 0 15px;
    }
}

/* Add these styles to your existing <style> section */
.movie-section {
    background: #1a1a1a;
    border-radius: 8px;
    padding: 20px;
    margin: 2rem 0;
}

.movie-section p {
    color: #fff;
    line-height: 1.6;
    margin: 0;
    font-size: 1rem;
}

.rating-section {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.rating-box {
    background: #222;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    min-width: 120px;
    flex: 1;
}

.rating-box .value {
    font-size: 1.5rem;
    color: #e50914;
    font-weight: 600;
    margin-bottom: 5px;
}

.rating-box .label {
    color: #999;
    font-size: 0.9rem;
}

.review-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 1rem;
    color: #999;
    font-size: 0.9rem;
}

/* Add these media queries to your existing ones */
@media (max-width: 768px) {
    .movie-section {
        padding: 15px;
    }
    
    .rating-section {
        gap: 15px;
    }
    
    .rating-box {
        min-width: 100px;
        padding: 12px;
    }
    
    .rating-box .value {
        font-size: 1.25rem;
    }
    
    .movie-section p {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .movie-section {
        padding: 12px;
    }
    
    .rating-section {
        gap: 10px;
    }
    
    .rating-box {
        padding: 10px;
    }
    
    .movie-section p {
        font-size: 0.9rem;
    }
    
    .review-meta {
        flex-wrap: wrap;
        gap: 10px;
    }
}




/* Add these styles to your existing <style> section */
.movie-section {
    background: #1a1a1a;
    border-radius: 8px;
    padding: 20px;
    margin: 2rem 0;
}

.movie-section p {
    color: #fff;
    line-height: 1.6;
    margin: 0;
    font-size: 1rem;
}

.rating-section {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.rating-box {
    background: #222;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    min-width: 120px;
    flex: 1;
}

.rating-box .value {
    font-size: 1.5rem;
    color: #e50914;
    font-weight: 600;
    margin-bottom: 5px;
}

.rating-box .label {
    color: #999;
    font-size: 0.9rem;
}

.review-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 1rem;
    color: #999;
    font-size: 0.9rem;
}

/* Add these media queries to your existing ones */
@media (max-width: 768px) {
    .movie-section {
        padding: 15px;
    }
    
    .rating-section {
        gap: 15px;
    }
    
    .rating-box {
        min-width: 100px;
        padding: 12px;
    }
    
    .rating-box .value {
        font-size: 1.25rem;
    }
    
    .movie-section p {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .movie-section {
        padding: 12px;
    }
    
    .rating-section {
        gap: 10px;
    }
    
    .rating-box {
        padding: 10px;
    }
    
    .movie-section p {
        font-size: 0.9rem;
    }
    
    .review-meta {
        flex-wrap: wrap;
        gap: 10px;
    }
}

.view-stats {
    display: flex;
    gap: 15px;
    margin: 10px 0;
    color: #999;
    font-size: 14px;
}

.view-stats span {
    background: #1a1a1a;
    padding: 5px 10px;
    border-radius: 4px;
}


.view-stats {
    display: flex;
    gap: 20px;
    margin: 1rem 0;
    flex-wrap: wrap;
}

.view-box {
    background: #1a1a1a;
    padding: 10px 15px;
    border-radius: 8px;
    text-align: center;
    min-width: 100px;
}

.view-box .count {
    font-size: 1.2rem;
    color: #e50914;
    font-weight: 600;
}

.view-box .label {
    font-size: 0.9rem;
    color: #999;
    margin-top: 5px;
}

.view-icon {
    color: #e50914;
    margin-right: 5px;
}



