:root {
    --primary: #e50914;
    --primary-dark: #b20710;
    --secondary: #1a1a2e;
    --dark: #121212;
    --darker: #0a0a0a;
    --light: #ffffff;
    --gray: #8a8a8a;
    --light-gray: #2d2d2d;
    --medium-gray: #1e1e1e;
    --border-radius: 8px;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--darker);
    color: var(--light);
    line-height: 1.6;
}

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

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

/* Header Styles */
header {
    background-color: var(--secondary);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center; /* စာသားနဲ့ ပုံကို အလယ်ဗဟို ညှိပေးတယ် */
    gap: 10px; /* ပုံနဲ့ စာသားကြား အကွာအဝေး */
    font-family: 'Roboto Slab', serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
}

.logo i {
    color: var(--primary-dark); /* Netflix အရောင်လို အနီရောင်လေး ပေးကြည့်ပါ */
    /* font-size: 1.2rem; */
}

.logo span {
    color: var(--light);
}

.nav-logo-img {
    width: 35px;  /* လိုအပ်သလို အကြီးအသေး ချိန်ပါ */
    height: 35px;
    object-fit: contain;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    font-weight: 500;
    font-size: 16px;
    padding: 8px 0;
    transition: var(--transition);
    border-bottom: 2px solid transparent;
}

nav ul li a:hover, nav ul li a.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--light);
    font-size: 24px;
    cursor: pointer;
}

/* Main Content Pages */
.page {
    display: none;
    padding: 40px 0;
}

.page.active {
    display: block;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('https://images.unsplash.com/photo-1536440136628-849c177e76a1?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1525&q=80');
    background-size: cover;
    background-position: center;
    padding: 80px 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
    color: var(--gray);
}

.search-box {
    max-width: 600px;
    margin: 30px auto;
    display: flex;
}

.search-box input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    background-color: var(--medium-gray);
    color: var(--light);
    font-size: 16px;
}

.search-box button {
    background-color: var(--primary);
    color: var(--light);
    border: none;
    padding: 0 25px;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: var(--transition);
}

.search-box button:hover {
    background-color: var(--primary-dark);
}

/* Section Titles */
.section-title {
    font-size: 28px;
    margin: 40px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
}

/* Popup နောက်ခံ */
.ad-modal {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    display: none; /* JS ကနေ flex ပြောင်းပေးမယ် */
    justify-content: center;
    align-items: center;
    z-index: 10000; /* အပေါ်ဆုံးမှာ ရှိနေဖို့ */
}

/* Popup Content */
.ad-modal-content {
    position: relative;
    background: white;
    padding: 20px;
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
}

.ad-modal-content img {
    width: 100%;
    height: auto;
}

.close-popup {
    position: absolute;
    top: 10px; right: 15px;
    font-size: 25px;
    cursor: pointer;
    color: black;
}

/* Ads style */
.ad-container-top {
    display: flex;
    gap: 15px;
    margin: 10px auto;
    max-width: 1200px;
    padding: 0 15px;
}

.ad-banner {
    flex: 1; /* နှစ်ခုကို အညီအမျှ ခွဲယူမယ် */
    border-radius: 8px;
    overflow: hidden;
    height: 120px; /* ကြော်ငြာ Size အလိုက် ချိန်ညှိပါ */
}

.ad-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* ပုံမပြဲအောင် ထိန်းပေးတယ် */
}

/* Mobile မှာ တစ်ခုစီ အပေါ်အောက် ပြောင်းမယ် */
@media (max-width: 768px) {
    .ad-container-top {
        flex-direction: column;
    }
}

.ad-pulse {
    box-shadow: 0 0 0 0 rgba(229, 9, 20, 0.7);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    70% { box-shadow: 0 0 0 10px rgba(229, 9, 20, 0); }
    100% { box-shadow: 0 0 0 0 rgba(229, 9, 20, 0); }
}

.ad-float {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.ad-shining {
    position: relative;
    overflow: hidden;
}
.ad-shining::after {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.3), transparent);
    transform: rotate(30deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Movies Grid */
.movies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.movie-card {
    background-color: var(--medium-gray);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--box-shadow);
    cursor: pointer;
}

.movie-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.movie-poster {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.movie-info {
    padding: 20px;
}

.movie-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.movie-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--gray);
}

.rating {
    color: #ffc107;
}

.review-excerpt {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.5;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    line-clamp: 3;
    overflow: hidden;
}

.read-more {
    color: var(--primary);
    font-weight: 500;
    font-size: 14px;
    display: inline-block;
}

.view-more-container {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 40px;
}

.view-more-btn {
    background-color: #e50914; /* Netflix Red style */
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}

.view-more-btn:hover {
    background-color: #b20710;
    transform: scale(1.05);
}

/* Full Review Page Styles */
.review-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.review-poster {
    width: 300px;
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-right: 40px;
    box-shadow: var(--box-shadow);
}

.review-poster img {
    width: 100%;
    height: auto;
    display: block;
}

.review-main-info {
    flex: 1;
    min-width: 300px;
}

.review-title {
    font-size: 36px;
    margin-bottom: 15px;
    color: var(--light);
}

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

.review-meta-item {
    display: flex;
    align-items: center;
    background-color: var(--light-gray);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
}

.review-meta-item i {
    margin-right: 8px;
    color: var(--primary);
}

.review-rating {
    font-size: 24px;
    margin-bottom: 20px;
    color: #ffc107;
}

.review-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--light);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

.btn-secondary {
    background-color: var(--light-gray);
    color: var(--light);
}

.btn-secondary:hover {
    background-color: #3a3a3a;
}

.btn-success {
    background-color: #28a745;
    color: var(--light);
}

.btn-success:hover {
    background-color: #218838;
}

/* Review Content */
.review-content {
    background-color: var(--medium-gray);
    border-radius: var(--border-radius);
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: var(--box-shadow);
}

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

.review-section h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--primary);
    border-bottom: 1px solid var(--light-gray);
    padding-bottom: 8px;
}

.review-section p {
    line-height: 1.7;
    color: var(--gray);
    margin-bottom: 15px;
}

/* Cast & Crew */
.cast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.cast-member {
    text-align: center;
}

.cast-photo {
    width: 100%;
    height: 180px;
    border-radius: var(--border-radius);
    object-fit: cover;
    margin-bottom: 10px;
    background-color: var(--light-gray);
}

.cast-name {
    font-weight: 600;
    margin-bottom: 5px;
}

.cast-role {
    font-size: 14px;
    color: var(--gray);
}

/* Similar Movies */
.similar-movies {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.similar-movie {
    background-color: var(--light-gray);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
}

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

.similar-movie img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.similar-movie-info {
    padding: 15px;
}

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

.similar-movie-rating {
    color: #ffc107;
    font-size: 14px;
}

/* Back Button */
.back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 30px;
    cursor: pointer;
    transition: var(--transition);
    padding: 10px 0;
}

.back-button:hover {
    gap: 12px;
}

/* Reviews List Page */
.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.review-list-item {
    background-color: var(--medium-gray);
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    cursor: pointer;
}

.review-list-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.review-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.review-list-movie {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary);
}

.review-list-rating {
    color: #ffc107;
    font-size: 18px;
}

.review-list-content {
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 15px;
}

.review-list-footer {
    display: flex;
    justify-content: space-between;
    color: var(--gray);
    font-size: 14px;
}

/* About Page */
.about-content {
    background-color: var(--medium-gray);
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--box-shadow);
}

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

.about-section h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--primary);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.team-member {
    text-align: center;
}

.team-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 15px;
    border: 3px solid var(--primary);
}

/* Footer */
footer {
    background-color: var(--secondary);
    padding: 50px 0 20px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    font-family: 'Roboto Slab', serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 15px;
}

.footer-description {
    color: var(--gray);
    line-height: 1.6;
}

.footer-heading {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--light);
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: var(--gray);
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--light-gray);
    color: var(--gray);
    font-size: 14px;
}

/* Genre Filter */
.genre-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 25px 0;
}

.genre-btn {
    padding: 8px 16px;
    background-color: var(--light-gray);
    border: none;
    border-radius: 20px;
    color: var(--light);
    cursor: pointer;
    transition: var(--transition);
}

.genre-btn.active, .genre-btn:hover {
    background-color: var(--primary);
}

/* Sort Options */
.sort-options {
    display: flex;
    justify-content: flex-end;
    margin: 25px 0;
}

.sort-select {
    background-color: var(--light-gray);
    color: var(--light);
    border: none;
    padding: 10px 15px;
    border-radius: var(--border-radius);
    font-family: 'Poppins', sans-serif;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .movies-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
    
    .review-header {
        flex-direction: column;
    }
    
    .review-poster {
        width: 100%;
        max-width: 400px;
        margin-right: 0;
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .header-content {
        position: relative;
    }
    
    nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--secondary);
        display: none;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
    }
    
    nav.active {
        display: block;
    }
    
    nav ul {
        flex-direction: column;
        padding: 20px;
    }
    
    nav ul li {
        margin: 10px 0;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .search-box {
        flex-direction: column;
    }
    
    .search-box input {
        border-radius: var(--border-radius);
        margin-bottom: 10px;
    }
    
    .search-box button {
        border-radius: var(--border-radius);
        padding: 15px;
    }
    
    .movies-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 15px;
    }
    
    .review-title {
        font-size: 28px;
    }
    
    .cast-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 60px 0;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .movies-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .movie-poster {
        height: 200px;
    }
    
    .review-actions {
        flex-direction: column;
    }
    
    .review-actions .btn {
        width: 100%;
    }
}