/* Stream */

#video-player {
    width: 100%;
    aspect-ratio: 16/9;
}
.server-buttons {
    margin: 0.75rem 0;
    text-align: center;
}
.server-button {
    margin: 0 5px;
    padding: 0.5rem 1rem;
    background: #333;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
}
.server-button:hover {
    background: #555;
}
.movie-info__watch-button {
    width: 100%;
    
    a {
        text-align: center;
        color: white;
        width: 100%;
        background-color: #4CAF50;
        color: white;
        padding: 10px 20px;
        border-radius: 8px;
        cursor: pointer;
        text-align: center;
        border: 1px solid #4CAF50;
        display: block;
    }
    a:hover {
        text-decoration: none;
        color: #4CAF50;
        background-color: white;
    }
}

/* Profile Information */


.person-profile {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 0 auto;
}

.person-header {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 24px;
}

.person-avatar {
    width: 200px;
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.person-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.person-names {
    flex-grow: 1;
    padding-top: 8px;
}

.person-display-name {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 8px 0;
}

.person-stage-name {
    font-size: 1.25rem;
    font-weight: 500;
    color: #666;
    margin: 0;
}

.person-bio {
    margin-bottom: 24px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.person-bio h3 {
    font-size: 1.25rem;
    color: #1a1a1a;
    margin: 0 0 12px 0;
}

.bio-content {
    color: #444;
    line-height: 1.6;
}

.person-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #444;
}

.info-item i {
    width: 20px;
    color: #3498db;
}

.person-social {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.person-social h3 {
    font-size: 1.25rem;
    color: #1a1a1a;
    margin: 0 0 12px 0;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: #fff;
    border-radius: 6px;
    color: #444;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.social-link:hover {
    background: #3498db;
    color: #fff;
    transform: translateY(-2px);
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
    .person-profile {
        background: #1a1a1a;
    }

    .person-display-name {
        color: #fff;
    }

    .person-stage-name {
        color: #bbb;
    }

    .person-bio,
    .person-info,
    .person-social {
        background: #2d2d2d;
    }

    .person-bio h3,
    .person-social h3 {
        color: #fff;
    }

    .bio-content,
    .info-item {
        color: #bbb;
    }

    .social-link {
        background: #3d3d3d;
        color: #bbb;
    }

    .social-link:hover {
        background: #3498db;
        color: #fff;
    }
}




/* Movie Archive */

.movies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.movie-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.movie-item:hover {
    transform: translateY(-5px);
}

.movie-poster {
    position: relative;
    aspect-ratio: 2/3;
    overflow: hidden;
}

.movie-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.quality-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.movie-meta {
    padding: 12px;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 4px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
}

.pagination .current {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
}

.movie-title {
    margin: 0 0 5px 0;
    font-size: 1rem;
    line-height: 1.4;
}

.movie-title a {
    color: #333;
    text-decoration: none;
}

.movie-original-title {
    font-size: 0.875rem;
    color: #666;
}

.pagination {
    margin-top: 30px; 
}
/* Container pagination */
.navigation.pagination {
    text-align: center;
    margin: 30px 0;
}

/* Ẩn heading nhưng vẫn giữ cho screen reader */
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Style cho các nút phân trang */
.nav-links {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Style chung cho các nút */
.page-numbers {
    min-width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
    border-radius: 6px;
    font-weight: 500;
    text-decoration: none;
    color: #555;
    transition: all 0.3s ease;
}

/* Hover effect */
.page-numbers:hover:not(.current) {
    background: #f0f0f0;
    color: #333;
}

/* Trang hiện tại */
.page-numbers.current {
    background: #2563eb;
    /* Màu xanh đẹp */
    color: white;
    font-weight: 600;
}

/* Nút Next/Prev */
.next.page-numbers,
.prev.page-numbers {
    padding: 0 20px;
    font-size: 14px;
}



/* Episodes List */

.episodes-box {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
}

.episodes-header {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.episodes-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.total-episodes {
    color: #666;
    font-size: 14px;
}

.episodes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 8px;
    padding: 15px;
    max-height: 600px;
    overflow-y: auto;
}

.episode-item {
    display: block;
    background: #ffffff;
    padding: 8px 5px;
    border-radius: 4px;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid #e0e0e0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.episode-item:hover {
    background: #f8f9fa;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-color: #d0d0d0;
}

.episode-item.active {
    background: #1a73e8;
    border-color: #1a73e8;
}

.episode-item.active .episode-number {
    color: white;
}

.episode-number {
    color: #333;
    font-weight: 600;
    font-size: 13px;
}

/* Scrollbar style */
.episodes-grid::-webkit-scrollbar {
    width: 6px;
}

.episodes-grid::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.episodes-grid::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.episodes-grid::-webkit-scrollbar-thumb:hover {
    background: #999;
}


/* Movie infomation */

.movie-info {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 24px;
    margin: 20px 0;
}

.movie-info__header {
    margin-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 15px;
}

.movie-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 8px 0;
}

.movie-original-title {
    font-size: 18px;
    color: #666;
    font-weight: 400;
    margin: 0;
}

.movie-info__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.meta-label {
    font-weight: 600;
    color: #666;
}

.meta-value {
    color: #333;
}

.status-badge {
    background: #4CAF50;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 14px;
}

.movie-info__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 15px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #555;
}

.stat-item i {
    color: #1a73e8;
}

.movie-info__rating {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.rating-box {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rating-stars {
    color: #ffc107;
}

.rating-numbers {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rating-score {
    font-weight: 700;
    color: #1a1a1a;
}

.rating-votes {
    color: #666;
    font-size: 14px;
}

.views-count {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
}

.movie-info__cast {
    margin-bottom: 20px;
}

.cast-section {
    margin-bottom: 15px;
}

.cast-section h3 {
    font-size: 18px;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.cast-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cast-item {
    background: #f0f2f5;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 14px;
    color: #333;
}

.movie-info__tags {
    margin-bottom: 20px;
}

.tag-section {
    margin-bottom: 15px;
}

.tag-section h3 {
    font-size: 18px;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.tag-list {
    color: #1a73e8;
}

.tag-list a {
    color: inherit;
    text-decoration: none;
}

.tag-list a:hover {
    text-decoration: underline;
}

.movie-info__showtimes {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
}

.movie-info__showtimes h3 {
    font-size: 18px;
    color: #1a1a1a;
    margin-bottom: 10px;
}



/* Category List */

.my-taxonomy-list ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.my-taxonomy-list ul li {
    display: inline-block;
    margin: 0 0.5rem 0.5rem 0;
    margin-left: 0 !important;
}

.my-taxonomy-list ul li a {
    display: inline-block;
    background: #f2f2f2;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    font-weight: 500;
}

.my-taxonomy-list ul li a:hover {
    background: #ddd;
    color: #000;
}


/* Banner Movie */

/* Banner container */
.movie-banner {
    position: relative;
    width: 100%;
    overflow: hidden;
    text-align: center;
    background-color: #000;
    height: unset;
    aspect-ratio: 16/9;
}

/* Background image */
.movie-banner .movie-thumbnail {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.8;
    aspect-ratio: 16/9;
}

/* Link around the title */
.movie-banner .movie-title-link {
    text-decoration: none;
}

/* Title style */
.movie-banner .movie-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 2em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

/* Not found message */
.movie-banner .movie-not-found {
    color: white;
    text-align: center;
    font-size: 1.2em;
    margin-top: 20px;
}