/* style.css - Movies Trend 4040 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #0a0a0a;
    font-family: 'Inter', sans-serif;
    color: #f0f0f0;
    scroll-behavior: smooth;
}

::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #1a1a1a;
}
::-webkit-scrollbar-thumb {
    background: #e50914;
    border-radius: 10px;
}

.header {
    background: #000000;
    padding: 0.8rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    border-bottom: 1px solid #222;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(2px);
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.netflix-m {
    background-color: #000000;
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    box-shadow: 0 0 0 1px rgba(229, 9, 20, 0.4), 0 4px 12px rgba(0,0,0,0.5);
    transition: transform 0.2s ease;
}
.netflix-m span {
    font-size: 3rem;
    font-weight: 800;
    color: #e50914;
    letter-spacing: -2px;
    font-family: 'Inter', sans-serif;
    transform: scale(1.05);
    text-shadow: 0 0 6px rgba(229,9,20,0.5);
}
.netflix-m:hover {
    transform: scale(1.02);
}

.site-title {
    font-size: 1.7rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #ffffff 30%, #e0e0e0 80%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}
.site-title span {
    font-weight: 800;
    color: #e50914;
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
}

.tagline {
    font-size: 0.85rem;
    background: rgba(229,9,20,0.2);
    padding: 6px 14px;
    border-radius: 40px;
    border-left: 3px solid #e50914;
    font-weight: 500;
}

.hero {
    background: linear-gradient(77deg, rgba(0,0,0,0.95) 0%, rgba(20,10,15,0.8) 100%), url('https://images.unsplash.com/photo-1518199266791-5375a83190d2?q=80&w=2070&auto=format');
    background-size: cover;
    background-position: center 30%;
    padding: 4rem 2rem;
    text-align: center;
    border-bottom: 1px solid #2a2a2a;
}
.hero h2 {
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -1px;
}
.hero h2 i {
    color: #e50914;
}
.hero p {
    max-width: 700px;
    margin: 1rem auto 0;
    font-size: 1.2rem;
    color: #ddd;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    margin: 2rem 2rem 1.5rem 2rem;
    border-left: 5px solid #e50914;
    padding-left: 1rem;
}
.section-header h3 {
    font-size: 1.8rem;
    font-weight: 700;
}
.badge-count {
    background: #1f1f1f;
    padding: 5px 14px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #e50914;
}

.movies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 2rem;
    padding: 0 2rem 3rem 2rem;
}

.movie-card {
    background: #141414;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.2, 0, 0, 1);
    box-shadow: 0 8px 20px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid #2c2c2c;
}
.movie-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 30px -10px rgba(229,9,20,0.3);
    border-color: #e50914;
}

.movie-img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    background: #1a1a1a;
    transition: transform 0.4s ease;
}
.movie-card:hover .movie-img {
    transform: scale(1.02);
}

.movie-info {
    padding: 1rem 1rem 1.2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.movie-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.movie-year {
    font-size: 0.8rem;
    color: #aaa;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 6px;
}
.movie-year i {
    font-size: 0.7rem;
    color: #e50914;
}

.btn-download {
    background: #e50914;
    border: none;
    color: white;
    font-weight: 700;
    padding: 10px 0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s ease;
    margin-top: auto;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
.btn-download i {
    font-size: 1rem;
}
.btn-download:hover {
    background: #b20710;
    transform: scale(0.98);
    box-shadow: 0 4px 12px rgba(229,9,20,0.4);
}
.btn-download:active {
    transform: scale(0.96);
}

.footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid #222;
    font-size: 0.8rem;
    color: #888;
    background: #030303;
}

@media (max-width: 750px) {
    .header {
        flex-direction: column;
        align-items: flex-start;
    }
    .hero h2 {
        font-size: 1.9rem;
    }
    .movies-grid {
        gap: 1rem;
        padding: 0 1rem 2rem 1rem;
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
    .section-header {
        margin: 1.5rem 1rem 1rem 1rem;
    }
    .movie-info {
        padding: 0.7rem;
    }
    .btn-download {
        padding: 8px 0;
        font-size: 0.8rem;
    }
    .movie-title {
        font-size: 0.9rem;
    }
    .netflix-m {
        width: 45px;
        height: 45px;
    }
    .netflix-m span {
        font-size: 2.5rem;
    }
    .site-title {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .movies-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 0.9rem;
    }
    .btn-download {
        font-size: 0.7rem;
        padding: 6px 0;
    }
}

.loader-message {
    text-align: center;
    padding: 2rem;
    color: #aaa;
}