  /* Modern Color Scheme */
  :root {
    --primary: #0a0a12;
    --secondary: #141422;
    --accent: #4a8bfc;
    --text: #ffffff;
    --text-secondary: #b8b8c8;
    --glass: rgba(255, 255, 255, 0.08);
    --hero-overlay: linear-gradient(180deg, rgba(10, 10, 18, 0.95) 0%, rgba(20, 20, 34, 0.9) 70%, rgba(20, 20, 34, 0) 100%);
    --section-gap: 80px;
    --desktop-articles: 8;
    --mobile-articles: 4;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    background-color: var(--primary);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

.hero-background {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100vh;
background-size: cover;
background-position: center;
z-index: -2;
box-shadow: inset 0 0 200px rgba(0, 0, 0, 0.9);
transition: opacity 0.5s ease, filter 0.5s ease;
}

.hero-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--hero-overlay);
    z-index: -1;
    transition: opacity 0.5s ease;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Navigation - Clean Modern */
header {
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 20px 0;
    position: relative;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.5px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav ul li a {
    font-weight: 500;
    font-size: 16px;
    color: var(--text-secondary);
    transition: color 0.3s ease;
    position: relative;
}

nav ul li a:hover {
    color: var(--text);
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
}

/* Main Content */
main {
    flex: 1;
    padding: 60px 0;
}

/* Movie Hero Section - Clean Layout */
.movie-hero {
    display: flex;
    gap: 60px;
    margin-bottom: var(--section-gap);
    align-items: flex-start;
}

.movie-poster {
    flex: 0 0 400px;
    position: relative;
    z-index: 2;
}

.movie-poster img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.movie-poster-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.movie-poster-badge i {
    color: #ffd700;
}

.movie-poster-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background: rgba(0, 0, 0, 0.6);
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.movie-poster-footer .tag {
    background: rgba(0, 255, 208, 0.2);
    color: var(--accent);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid var(--accent);
    color: #04ff00;
}

.movie-info {
    flex: 1;
    padding-top: 20px;
}

.movie-title-container {
    margin-bottom: 15px;
}

.movie-title {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.1;
    color: var(--text);
    letter-spacing: -1px;
    margin-bottom: 5px;
}

.original-title {
    font-size: 18px;
    color: var(--text-secondary);
    font-style: italic;
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 25px;
    color: var(--text-secondary);
    align-items: center;
}

.movie-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
}

.movie-meta i {
    color: var(--accent);
}

.age-rating {
    background: rgba(74, 139, 252, 0.2);
    color: var(--accent);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid var(--accent);
}

.movie-overview {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 30px;
    color: var(--text-secondary);
    max-width: 800px;
}

/* Improved Details Section - Single Card */
.details-section {
    background: var(--glass);
    border-radius: 16px;
    padding: 40px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: var(--section-gap);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.detail-item {
    margin-bottom: 20px;
}

.detail-label {
    font-size: 14px;
    color: var(--accent);
    margin-bottom: 10px;
    display: block;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.detail-value {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* Sections */
.section {
    margin-bottom: var(--section-gap);
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
    letter-spacing: -0.5px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 70px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
}

/* Cast Grid - Modern Cards with Better Name Handling */
.cast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
}

.cast-card {
    background: var(--glass);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.cast-card:hover {
    transform: translateY(-5px);
    border-color: rgba(74, 139, 252, 0.3);
}

.cast-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.cast-info {
    padding: 18px;
}

.cast-name {
font-weight: 600;
margin-bottom: 5px;
font-size: 16px;
display: -webkit-box;
-webkit-line-clamp: 2;
line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
min-height: 2.4em; /* Ensures space for two lines */
}
.cast-character {
font-size: 14px;
color: var(--text-secondary);
display: -webkit-box;
-webkit-line-clamp: 3; /* Show up to 3 lines */
line-clamp: 3; /* Show up to 3 lines */
-webkit-box-orient: vertical;
overflow: hidden;
min-height: 3.6em; /* Ensure space for three lines */
line-height: 1.2;
}

/* Mobile specific adjustment */
@media (max-width: 768px) {
.cast-character {
-webkit-line-clamp: 4; /* Show up to 4 lines on mobile */
line-clamp: 4; /* Show up to 4 lines on mobile */
min-height: 4.8em; /* More space for mobile */
font-size: 13px;
}
}

/* Screenshots Grid - Simple Lightbox */
.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.screenshot-container {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 16/9;
    cursor: pointer;
}

.screenshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.screenshot-container:hover .screenshot {
    transform: scale(1.03);
}

.screenshot-number {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
}

/* Trailer Card Section */
.trailer-card {
    background: var(--glass);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    margin-bottom: var(--section-gap);
}

.trailer-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    background: #000;
}

.trailer-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.trailer-info {
    padding: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.trailer-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.trailer-info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.trailer-info-icon {
    color: var(--accent);
    font-size: 20px;
    margin-top: 3px;
}

.trailer-info-content h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--text);
}

.trailer-info-content p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Improved Comments Section - Fixed Visibility */
.comments-section {
    background: var(--glass);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: var(--section-gap);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.comments-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.comments-title {
    font-size: 24px;
    font-weight: 600;
}

.comments-count {
    background: var(--accent);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

/* Cusdis Custom Styling - Improved Visibility */
#cusdis_thread {
    --primary: #4a8bfc;
    --background: rgba(255, 255, 255, 0.05);
    --background-hover: rgba(255, 255, 255, 0.1);
    --background-secondary: rgba(255, 255, 255, 0.08);
    --text-primary: #ffffff;
    --text-secondary: #b8b8c8;
    --text-tertiary: #888;
    --border: rgba(255, 255, 255, 0.1);
}

#cusdis_thread iframe {
    min-height: 400px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.3);
    color: white !important;
}

#cusdis_thread * {
    color: white !important;
}

/* Related Movies - Clean Cards */
.related-movies {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
}

.related-movie {
    background: var(--glass);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.related-movie:hover {
    transform: translateY(-5px);
    border-color: rgba(74, 139, 252, 0.3);
}

.related-movie-img {
    width: 100%;
    height: 330px;
    object-fit: cover;
}

.related-movie-info {
    padding: 18px;
}

.related-movie-title {
    font-weight: 600;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 17px;
}

.related-movie-meta {
    display: flex;
    justify-content: space-between;
    color: var(--text-secondary);
    font-size: 14px;
}

/* Footer - Clean Modern */
footer {
    background: var(--secondary);
    padding: 60px 0 30px;
    position: relative;
    margin-top: auto;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-logo {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 25px;
    color: var(--text);
}

.footer-links {
    display: flex;
    gap: 25px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: var(--text-secondary);
    transition: color 0.3s ease;
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--text);
}

.social-links {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.social-links a {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--glass);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links a:hover {
    background: var(--accent);
}

.copyright {
    color: var(--text-secondary);
    font-size: 14px;
    max-width: 600px;
    line-height: 1.6;
}

/* Enhanced Lightbox with Navigation */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 30px;
    cursor: pointer;
    z-index: 10;
    background: rgba(0, 0, 0, 0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 40px;
    cursor: pointer;
    z-index: 10;
    background: rgba(0, 0, 0, 0.5);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.lightbox-nav:hover {
    background: rgba(0, 0, 0, 0.8);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 18px;
    background: rgba(0, 0, 0, 0.5);
    padding: 5px 15px;
    border-radius: 20px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .movie-hero {
        gap: 40px;
    }
    
    .movie-poster {
        flex: 0 0 380px;
    }
    
    .movie-title {
        font-size: 46px;
    }
}

@media (max-width: 992px) {
    .container {
        padding: 0 30px;
    }
    
    .movie-hero {
        flex-direction: column;
        gap: 40px;
    }
    
    .movie-poster {
        flex: 1;
        max-width: 420px;
        margin: 0 auto;
    }
    
    .movie-info {
        padding-top: 0;
    }
    
    .movie-title {
        font-size: 42px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .cast-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
    
    .related-movies {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
    
    .related-movie-img {
        height: 280px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 25px;
    }
    
    nav ul {
        gap: 20px;
    }
    
    .movie-title {
        font-size: 36px;
    }
    
    .original-title {
        font-size: 16px;
    }
    
    .movie-meta {
        gap: 15px;
    }
    
    .movie-overview {
        font-size: 17px;
    }
    
    .detail-grid {
        grid-template-columns: 1fr;
    }
    
    .cast-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    
    .cast-img {
        height: 180px;
    }
    
    .screenshots-grid {
        grid-template-columns: 1fr;
    }
    
    .related-movies {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .related-movie-img {
        height: 240px;
    }
    
    .footer-links {
        gap: 20px;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 20px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    nav ul {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .movie-title {
        font-size: 32px;
    }
    
    .movie-meta span {
        font-size: 14px;
    }
    
    .movie-overview {
        font-size: 16px;
    }
    
    .cast-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
    
    .cast-img {
        height: 150px;
    }
    
    .cast-name {
        font-size: 14px;
    }
    
    .cast-character {
        font-size: 13px;
    }
    
    .related-movies {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    }
    
    .related-movie-img {
        height: 200px;
    }
    
    .footer-links {
        gap: 15px;
    }
    
    .social-links a {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    
    /* Mobile lightbox adjustments */
    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
    
    .lightbox-close {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
}
/* Force white text in comments */
#cusdis_thread,
#cusdis_thread *:not(i) {
color: white !important;
}

/* Fix comment input text */
#cusdis_thread input,
#cusdis_thread textarea {
color: rgb(239, 233, 233) !important; /* Input fields should remain black for visibility */
}

/* Fix comment buttons */
#cusdis_thread .dark {
background-color: rgba(255, 255, 255, 0.1) !important;
}




/* Add these to your existing CSS */
html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

.container {
    width: 100%;
    padding: 0 15px; /* Reduced padding for mobile */
}

@media (max-width: 576px) {
    .container {
        padding: 0 10px; /* Even smaller padding on very small screens */
    }
    .movie-hero, 
    .cast-grid, 
    .screenshots-grid, 
    .related-movies {
        width: 100%;
        overflow: hidden;
    }
}




/* Add this to your existing CSS */
.movie-info,
.details-section,
.movie-overview,
.cast-info,
.trailer-info-content,
.comments-section {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .movie-title {
        font-size: 28px;
        line-height: 1.3;
    }
    
   
    
    .detail-grid {
        grid-template-columns: 1fr;
    }
    
    .movie-overview,
    .detail-value {
        font-size: 15px;
        line-height: 1.6;
    }
}



/* Add this to your CSS */
.movie-title-container {
    width: 100%;
    overflow: hidden;
}

.movie-title {
    word-break: break-word;
    overflow-wrap: anywhere;
    hyphens: auto;
    max-width: 100%;
}

.movie-overview,
.original-title {
    word-break: break-word;
    overflow-wrap: anywhere;
    max-width: 100%;
}

@media (max-width: 576px) {
    .movie-title {
        font-size: 24px;
        line-height: 1.2;
    }
    
    .movie-overview {
        font-size: 14px;
    }
    
    .original-title {
        font-size: 14px;
    }
    
    .container {
        padding: 0 12px;
    }
}