/* Reset và base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #1b1b1b;
    color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    padding: 20px 0;
}

.logo-section {
    text-align: left;
    margin-bottom: 20px;
}

.logo h1 {
    font-size: 2.5rem;
    color: #ff6b6b;
    margin-bottom: 5px;
    border-bottom: 1px solid #333;
}

.logo a {
    text-decoration: none;
    color: inherit;
}

.logo a:hover h1 {
    color: #ee5a24;
}

.logo p {
    color: #ccc;
    font-size: 0.9rem;
    max-width: 400px;
}

.search-section {
    margin-top: 15px;
    width: 100%;
}

.search-wrapper {
    display: flex;
    gap: 0;
    width: 100%;
    max-width: none;
}

.search-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #444;
    border-radius: 10px 0 0 10px;
    background: rgba(255,255,255,0.1);
    color: white;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
    border-right: none;
}

.search-input:focus {
    border-color: #ff6b6b;
    background: rgba(255,255,255,0.15);
}

.search-input::placeholder {
    color: #aaa;
}

.search-btn {
    padding: 12px 20px;
    background: #ff6b6b;
    border: 2px solid #ff6b6b;
    border-radius: 0px 10px 10px 0px;
    color: white;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100px;
}

.search-btn:hover {
    background: #ee5a24;
    border-color: #ee5a24;
}

/* Genres Navigation */
.genres-nav {
    margin-bottom: 20px;
}

.genres-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    list-style: none;
}

.genre-link {
    display: block;
    padding: 5px 10px;
    background: rgba(255,255,255,0.1);
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.genre-link:hover,
.genre-link.active {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(255,107,107,0.3);
}

/* Studios Navigation */
.studios-nav {
    margin-bottom: 15px;
}

.studios-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
}

.studio-btn {
    display: block;
    padding: 10px 20px;
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.studio-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
    border-color: rgba(255,255,255,0.3);
}

/* VPN Notice */
.vpn-notice {
    margin-bottom: 15px;
    padding: 12px 16px;
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 8px;
    text-align: center;
}

.vpn-notice p {
    margin: 0;
    color: #fff;
    font-size: 14px;
    line-height: 1.5;
}

.vpn-link {
    color: #ff4757;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s ease;
}

.vpn-link:hover {
    color: #ff3742;
    text-decoration: underline;
}

.download-link {
    color: #ffc107;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s ease;
}

.download-link:hover {
    color: #ffb300;
    text-decoration: underline;
}

.vlxx-text {
    color: #ff4757;
    font-weight: bold;
}

/* Main Content */
.main-content {
    padding-bottom: 40px;
    border-top: 1px solid #333;
    padding-top: 20px;
}

/* Content Header */
.content-header {
    margin-bottom: 30px;
}

.content-header h2 {
    color: #ff6b6b;
    font-size: 28px;
    font-weight: 600;
    margin: 0;
    text-align: left;
}

/* Movies Grid */
.movies-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
}


.movie-poster {
    display: block;
    position: relative;
    aspect-ratio: var(--img-aspect-ratio);
    object-fit: cover;
    width: 100%;
    height: auto;
    overflow: hidden;
    border-radius: 10px;
    text-decoration: none;
}

.movie-poster img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ribbon-badge {
    font-size: 10px;
    position: absolute;
    top: 0;
    border-left: 3px solid #ea4335;
    border-radius: 7px 0 0 0;
    background: none repeat scroll 0 0 rgba(17, 17, 17, 0.6);
    padding: 2px 4px;
    margin-top: 3px;
    margin-left: 5px;
    color: #fff;
}

.movie-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 14px;
    color: #fff;
    text-decoration: none;
    margin: 5px 5px 20px 5px;
    line-height: 1.4;
    transition: color 0.3s ease;
    text-align: center;
}

.movie-title:hover {
    color: #ff6b6b;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
}

.pagination-btn {
    padding: 10px 15px;
    background: rgba(255,255,255,0.1);
    border: 1px solid #444;
    color: #fff;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    line-height: 1;
	text-decoration: none;
}

.pagination-btn:hover:not(:disabled) {
    background: rgba(255,107,107,0.2);
    border-color: #ff6b6b;
}

.pagination-btn.active {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    border-color: #ff6b6b;
}

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

.pagination-numbers {
    display: flex;
    gap: 5px;
    align-items: center;
}

.pagination-dots {
    color: #aaa;
    padding: 0 10px;
}

/* Footer */
.footer {
    padding: 20px 0 20px;
    border-top: 1px solid #333;
}

.keywords-section {
    margin-bottom: 30px;
}

.keywords-section h3 {
    color: #ff6b6b;
    margin-bottom: 20px;
    font-size: 20px;
}

.keywords-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.keyword-tag {
    padding: 6px 12px;
    background: rgba(255,255,255,0.1);
    color: #ccc;
    text-decoration: none;
    border-radius: 4px;
    font-size: 13px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
	text-decoration: none;
}

.keyword-tag:hover {
    background: rgba(255,107,107,0.2);
    color: white;
    border-color: #ff6b6b;
}

.copyright {
    text-align: center;
    color: #888;
    font-size: 14px;
    border-top: 1px solid #333;
    padding-top: 20px;
}

.copyright p {
    margin-bottom: 5px;
}

/* Responsive Design */

/* Tablet - 3 cột (max-width: 768px) */
@media (max-width: 768px) {
    .movies-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .search-section {
        width: 100%;
    }
    
    .logo h1 {
        font-size: 2rem;
    }
    
    .genres-list {
        justify-content: left;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .main-content {
        padding: 30px 0;
    }
}

/* Mobile - 2 cột (max-width: 425px) */
@media (max-width: 425px) {
    .movies-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .logo h1 {
        font-size: 1.8rem;
    }
    
    .logo p {
        font-size: 0.85rem;
    }
    
    .search-input {
        padding: 10px 14px;
        font-size: 14px;
    }
    
    .search-btn {
        padding: 10px 16px;
        font-size: 16px;
    }
        
    
    .movie-title {
        font-size: 14px;
    }
    
    
    .pagination-btn {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .keyword-tag {
        padding: 5px 10px;
        font-size: 12px;
    }
    
    .container {
        padding: 0 10px;
    }
    
    .main-content {
        padding: 20px 0;
    }
    
    .footer {
        padding: 30px 0 15px;
    }
}

/* Extra small screens */
@media (max-width: 320px) {
    .movie-title {
        font-size: 13px;
    }
    
    .pagination {
        gap: 5px;
    }
    
    .pagination-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}

/* Video Page Styles */
.video-section {
    margin-bottom: 15px;
}

.movie-title-main {
    color: #fff;
    font-size: 20px;
    margin-bottom: 15px;
    text-align: left;
}

.video-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
}

.video-player {
    width: 100%;
    aspect-ratio: 5/2;
    background: #000;
}

/* Video Controls */
.video-controls {
    margin-bottom: 15px;
}

.control-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 10px;
}

.server-buttons {
    display: flex;
    gap: 4px;
}

.server-btn {
    padding: 8px 16px;
    background: rgba(255,255,255,0.1);
    border: 1px solid #444;
    color: #fff;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.server-btn:hover {
    background: rgba(255,107,107,0.2);
    border-color: #ff6b6b;
}

.server-btn.active {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    border-color: #ff6b6b;
}

.stats-buttons {
    display: flex;
    gap: 4px;
}

.stat-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: rgba(255,255,255,0.05);
    border: 1px solid #333;
    color: #fff;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.stat-btn:hover {
    background: rgba(255,255,255,0.1);
    border-color: #555;
}

.stat-btn .icon {
    font-size: 16px;
}

.stat-btn .count {
    font-weight: 500;
}

.movie-info-row {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.info-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(255,255,255,0.08);
    border: 1px solid #333;
    color: #fff;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.info-btn:hover {
    background: rgba(255,107,107,0.15);
    border-color: #ff6b6b;
}

.info-btn .label {
    color: #ccc;
}

.info-btn .value {
    font-weight: 500;
}

/* Movie Description */
.movie-description {
    margin-bottom: 15px;
}

.description-content p {
    color: #ddd;
    line-height: 1.7;
    font-size: 16px;
}

/* Cast Section */
.cast-section {
    margin-bottom: 15px;
}

.cast-toggle {
    display: inline-flex;
    font-size: 14px;
    padding: 5px;
    margin-top: 5px;
    white-space: nowrap;
    background: #2b2b2b;
    border-radius: 0 4px 4px 0;
    border-left: 3px solid #ff9900;
	text-decoration: none;
	color: #fff;
}

.cast-toggle:hover {
    background: rgba(255,107,107,0.2);
    color: white;
}

/* Movie Keywords */
.movie-keywords {
    margin-bottom: 10px;
}

.movie-keywords h3 {
    color: #ff6b6b;
    margin-bottom: 15px;
    font-size: 20px;
    font-weight: 600;
}

.keywords-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.movie-keywords .keyword {
    padding: 6px 12px;
    background: rgba(255,107,107,0.15);
    color: #fff;
    border-radius: 20px;
    font-size: 13px;
    border: 1px solid rgba(255,107,107,0.3);
    transition: all 0.3s ease;
}

.movie-keywords .keyword:hover {
    background: rgba(255,107,107,0.25);
    border-color: #ff6b6b;
}

/* Related Movies */
.related-movies {
    margin-bottom: 40px;
}

.related-movies h3 {
    color: #ff6b6b;
    margin-bottom: 25px;
    font-size: 24px;
    font-weight: 600;
}

/* Video Page Responsive */
@media (max-width: 768px) {
    
    
    .cast-list {
        justify-content: center;
    }
    
    
    .video-player {
        min-height: 250px;
    }
}

@media (max-width: 425px) {

    .stats-buttons {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .stat-btn {
        padding: 6px 10px;
        font-size: 13px;
    }
    
    .info-btn {
        justify-content: center;
    }
    
    
    
    .movie-description h2 {
        font-size: 20px;
    }
    
    .video-player {
        min-height: 200px;
    }
}

/* Filter Tabs Styles */
.filter-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 15px 0 20px 0;
}

.tab-btn {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid #444;
    border-radius: 25px;
    color: #ccc;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    white-space: nowrap;
}

.tab-btn:hover {
    background: rgba(255, 107, 107, 0.2);
    border-color: #ff6b6b;
    color: #fff;
    transform: translateY(-2px);
}

.tab-btn.active {
    background: #ff6b6b;
    border-color: #ff6b6b;
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.tab-btn.active:hover {
    background: #ee5a24;
    border-color: #ee5a24;
    transform: translateY(-2px);
}

/* Loading Spinner Styles */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(27, 27, 27, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    color: #ccc;
    font-size: 16px;
    z-index: 9999;
}

.loading .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 107, 107, 0.3);
    border-top: 4px solid #ff6b6b;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading .dots {
    display: flex;
    gap: 5px;
}

.loading .dots span {
    width: 8px;
    height: 8px;
    background: #ff6b6b;
    border-radius: 50%;
    animation: bounce 1.4s ease-in-out infinite both;
}

.loading .dots span:nth-child(1) { animation-delay: -0.32s; }
.loading .dots span:nth-child(2) { animation-delay: -0.16s; }
.loading .dots span:nth-child(3) { animation-delay: 0s; }

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

@keyframes bounce {
    0%, 80%, 100% { 
        transform: scale(0);
        opacity: 0.5;
    } 
    40% { 
        transform: scale(1);
        opacity: 1;
    }
}

/* Load More Button Styles */
.load-more-container {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    padding: 20px 0;
}

.load-more-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    position: relative;
    overflow: hidden;
}

.load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
    background: linear-gradient(135deg, #ee5a24, #ff6b6b);
}

.load-more-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(255, 107, 107, 0.3);
}

.load-more-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.2);
}

.load-more-btn .btn-icon {
    display: inline-flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.load-more-btn:hover .btn-icon {
    transform: rotate(90deg);
}

.load-more-btn .btn-text {
    font-weight: 600;
}

/* Button Loading Spinner */
.btn-loading {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Responsive Load More Button */
@media (max-width: 768px) {
    .load-more-container {
        margin-top: 20px;
        padding: 15px 0;
    }
    
    .load-more-btn {
        padding: 10px 20px;
        font-size: 13px;
    }
}

@media (max-width: 425px) {
    .load-more-btn {
        padding: 8px 16px;
        font-size: 12px;
        gap: 6px;
    }
    
    .load-more-btn svg {
        width: 14px;
        height: 14px;
    }
}

/* Error State Styles */
.error-message {
    text-align: center;
    padding: 50px;
    color: #dc3545;
}

.error-message i {
    font-size: 24px;
    margin-bottom: 15px;
    display: block;
}

.retry-btn {
    padding: 10px 20px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-top: 15px;
}

.retry-btn:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.retry-btn i {
    margin-right: 5px;
}

/* Responsive Filter Tabs */
@media (max-width: 768px) {
    .filter-tabs {
        justify-content: center;
        gap: 8px;
    }
    
    .tab-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
}

@media (max-width: 425px) {
    .filter-tabs {
        gap: 6px;
    }
    
    .tab-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .loading {
        padding: 30px;
        font-size: 14px;
    }
    
    .loading i {
        font-size: 18px;
    }
}
