:root {
    --primary-color: #2c3e50;
    --secondary-color: #e74c3c;
    --text-color: #ecf0f1;
    --background-color: #1a1a1a;
    --card-bg: #2d2d2d;
    --hover-color: #3498db;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    background: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header Styles */
.header {
    background: #1a1a1a;
    padding: 15px 0;
    border-bottom: 3px solid #333;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}



.logo h1 {
    background: linear-gradient(45deg, #ffd700, #ffed4a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 3px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

/* Dropdown Navigation Styles */
.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 18px;
}
.main-nav .dropdown {
    position: relative;
}
.main-nav .dropdown-content {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    background: #fff;
    min-width: 180px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
    z-index: 10;
    border-radius: 8px;
    padding: 0;
    margin-top: 4px;
}

.main-nav .dropdown-content li:last-child {
    border-bottom: none;
}
.main-nav .dropdown-content a {
    color: #333;
    padding: 12px 18px;
    text-decoration: none;
    display: block;
    font-weight: 500;
    transition: background 0.2s;
}
.main-nav .dropdown-content a:hover {
    background: #ffe0b2;
    color: #ff9800;
}
.main-nav .dropdown:hover .dropdown-content {
    display: block;
}

/* Search Section */
.search-section {
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    padding: 25px 0;
    border-bottom: 1px solid #333;
}

.search-container {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.search-input {
    width: 100%;
    padding: 15px 25px;
    background: rgba(51,51,51,0.6);
    border: 2px solid rgba(255,255,255,0.1);
    color: #ffffff;
    border-radius: 25px;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: #ffd700;
    box-shadow: 0 0 20px rgba(255,215,0,0.3);
    outline: 2px solid rgba(255,215,0,0.5);
    outline-offset: 2px;
}

/* Focus states for better accessibility */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #ffd700;
    outline-offset: 2px;
    box-shadow: 0 0 10px rgba(255,215,0,0.3);
}

.search-input::placeholder {
    color: #aaa;
}

/* Category Section */
.category-section {
    background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
    padding: 25px 0;
    border-bottom: 2px solid #333;
}

.category-row,
.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 15px;
    justify-content: center;
}

.category-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.category-btn.green {
    background: #28a745;
    color: white;
}

.category-btn.orange {
    background: #fd7e14;
    color: white;
}

.category-btn.red {
    background: #dc3545;
    color: white;
}

.category-btn.blue {
    background: #007bff;
    color: white;
}

.filter-btn {
    padding: 8px 16px;
    background: linear-gradient(135deg, #6c757d, #495057);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-btn:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.filter-btn.active {
    background: #ffd700;
    color: #000;
}

/* Alert Banner */
.alert-banner {
    background: #e91e63;
    padding: 15px 0;
}

.alert-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.alert-content p {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
}

.alert-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0 15px;
    transition: transform 0.3s ease;
}

.alert-close:hover {
    transform: rotate(90deg);
}

/* Main Content */
.main-content {
    padding: 40px 0;
}

.movies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.movie-card {
    background: #2d2d2d;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease;
    cursor: pointer;
    border: 1px solid #333;
}

.movie-card:hover {
    transform: translateY(-5px);
    border-color: #ffd700;
}

.movie-poster {
    width: 100%;
    height: 320px;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: brightness(0.9);
}

.movie-card:hover .movie-poster {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.movie-card:hover .movie-title {
    background: linear-gradient(90deg, #ffffff, #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.movie-card:hover .release-date {
    background: linear-gradient(135deg, rgba(255,215,0,0.2), rgba(255,215,0,0.1));
    border-color: rgba(255,215,0,0.4);
    box-shadow: 0 2px 12px rgba(255,215,0,0.2);
}

.movie-card:hover .movie-poster {
    transform: scale(1.05);
}

.movie-info {
    padding: 15px;
    position: relative;
    background: #2d2d2d;
}

.release-date {
    background: #333;
    color: #ffd700;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    display: inline-block;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.movie-title {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #ffffff;
    line-height: 1.4;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    position: relative;
}

.movie-details {
    font-size: 13.5px;
    color: rgba(255,255,255,0.75);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 15px;
    font-weight: 400;
    letter-spacing: 0.3px;
}

.movie-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 12px;
    color: rgba(255,255,255,0.6);
}

.movie-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.movie-quality {
    background: rgba(52,152,219,0.2);
    color: #3498db;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    border: 1px solid rgba(52,152,219,0.3);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 20px 0;
}

.page-btn {
    padding: 12px 16px;
    background: linear-gradient(135deg, #333, #555);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 45px;
}

.page-btn:hover,
.page-btn.active {
    background: #007bff;
    transform: translateY(-2px);
}

.page-btn.dots {
    cursor: default;
    background: transparent;
    color: #666;
}

.page-btn.dots:hover {
    transform: none;
    box-shadow: none;
    background: transparent;
}

/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: rgba(255,215,0,0.2);
    border: 2px solid rgba(255,215,0,0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffd700;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    background: rgba(255,215,0,0.3);
    transform: translateY(-5px);
}

/* Footer */
.footer {
    background: #1a1a1a;
    padding: 40px 0;
    margin-top: 60px;
    border-top: 3px solid #333;
}

.footer .container {
    text-align: center;
}

.copyright {
    margin-bottom: 20px;
    color: #bbb;
    font-size: 14px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.footer-links a:hover {
    color: #ffd700;
}

/* Download Modal */
.download-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: #2a2a2a;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    border: 2px solid #ffd700;
    position: relative;
}

.download-links {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 20px 0;
    flex-wrap: wrap;
}

.download-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    color: #ffd700;
    font-size: 24px;
    cursor: pointer;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 15px;
    }

    .main-nav ul {
        flex-wrap: wrap;
        gap: 12px;
        justify-content: center;
    }

    .nav-link {
        padding: 8px 16px;
        font-size: 14px;
        background: #333;
        border-radius: 20px;
        color: #fff;
        text-decoration: none;
    }

    .nav-link.active {
        background: #ffd700;
        color: #000;
    }

    .movies-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 12px;
        padding: 10px;
    }

    .logo h1 {
        font-size: 20px;
        text-align: center;
    }

    .search-container {
        padding: 10px;
    }

    .search-input {
        padding: 12px 20px;
        font-size: 14px;
    }

    .movie-poster {
        height: 180px;
    }

    .movie-info {
        padding: 12px;
    }

    .movie-title {
        font-size: 14px;
        margin-bottom: 8px;
    }

    .movie-details {
        font-size: 12px;
        line-height: 1.4;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        margin-bottom: 8px;
    }

    .movie-meta {
        gap: 8px;
        margin-top: 8px;
        padding-top: 8px;
    }

    .movie-quality {
        padding: 2px 6px;
        font-size: 10px;
    }

    .nav-link {
        padding: 6px 12px;
        font-size: 13px;
    }

    .search-input {
        padding: 10px 16px;
        font-size: 13px;
    }

    .release-date {
        font-size: 10px;
        padding: 3px 8px;
        margin-bottom: 8px;
    }
}
