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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: url('../images/Background logo.png') center center/cover no-repeat fixed;
    background-color: #1e3c72;
    color: #fff;
    min-height: 100vh;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: -1;
}

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

/* Header */
.header {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    font-size: 2rem;
    color: #ff6b6b;
}

.logo-img {
    height: 40px;
    width: auto;
    border-radius: 8px;
    object-fit: contain;
}

.logo h1 {
    font-size: 1.5rem;
    background: linear-gradient(45deg, #ff6b6b, #feca57);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255, 107, 107, 0.2);
    color: #ff6b6b;
}

.search {
    display: flex;
    gap: 0.5rem;
}

.search input {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    width: 250px;
}

.search input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search button {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 25px;
    background: #ff6b6b;
    color: #fff;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search button:hover {
    background: #ff5252;
}

/* Main Content */
.main {
    margin-top: 80px;
    padding: 2rem 0;
}

.hero {
    text-align: center;
    padding: 4rem 0;
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #fff, #feca57);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-button {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border: none;
    border-radius: 50px;
    background: linear-gradient(45deg, #ff6b6b, #feca57);
    color: #fff;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 107, 107, 0.3);
}

/* Content Section */
.content-section {
    padding: 2rem 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.section-header h3 {
    font-size: 2rem;
    color: #fff;
}

.filters {
    display: flex;
    gap: 1rem;
}

.filters select {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    cursor: pointer;
}

.filters select option {
    background: #2a5298;
}

/* Movie Grid */
.movie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.movie-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    position: relative;
}

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

.quick-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 107, 107, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 10;
    cursor: pointer;
}

.movie-card:hover .quick-play-btn {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.quick-play-btn:hover {
    background: rgba(255, 107, 107, 1);
    transform: translate(-50%, -50%) scale(1.2);
}

.movie-poster {
    width: 100%;
    height: 300px;
    object-fit: cover;
    background: linear-gradient(45deg, #2a5298, #1e3c72);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 3rem;
    position: relative;
}

.quality-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(156, 39, 176, 0.9);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
}

.movie-info {
    padding: 1rem;
}

.movie-title {
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    font-size: 0.8rem;
    opacity: 0.8;
}

.movie-year {
    background: rgba(255, 107, 107, 0.2);
    padding: 0.2rem 0.5rem;
    border-radius: 15px;
    color: #ff6b6b;
}

.movie-rating {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    color: #feca57;
}

.movie-episode {
    background: rgba(33, 150, 243, 0.2);
    padding: 0.2rem 0.5rem;
    border-radius: 15px;
    color: #2196f3;
}

.movie-subdub {
    background: rgba(76, 175, 80, 0.2);
    padding: 0.2rem 0.5rem;
    border-radius: 15px;
    color: #4caf50;
    font-size: 0.7rem;
}

.movie-duration {
    background: rgba(255, 152, 0, 0.2);
    padding: 0.2rem 0.5rem;
    border-radius: 15px;
    color: #ff9800;
}

.movie-genres {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-top: 0.5rem;
}

.genre-tag {
    background: rgba(156, 39, 176, 0.2);
    padding: 0.1rem 0.4rem;
    border-radius: 10px;
    font-size: 0.6rem;
    color: #9c27b0;
    text-transform: capitalize;
}

/* Loading */
.loading {
    text-align: center;
    padding: 2rem;
}

.loading i {
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
    background: linear-gradient(135deg, #2a5298, #1e3c72);
    margin: 5% auto;
    padding: 2rem;
    border-radius: 15px;
    width: 80%;
    max-width: 800px;
    position: relative;
}

.close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 2rem;
    cursor: pointer;
    color: #fff;
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.8);
    padding: 2rem 0;
    text-align: center;
    margin-top: 4rem;
}

/* Responsive */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav {
        gap: 1rem;
    }
    
    .search input {
        width: 200px;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .movie-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .section-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
}