/* ==================== RESET & BASE STYLES ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: #141414;
    color: #ffffff;
    overflow-x: hidden;
}

/* ==================== NAVIGATION BAR ==================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 50px;
    background: linear-gradient(180deg, rgba(0,0,0,0.7) 10%, rgba(0,0,0,0) 100%);
    z-index: 1000;
    transition: background-color 0.3s ease;
}

.navbar:hover {
    background-color: #141414;
}

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

.nav-left {
    display: flex;
    align-items: center;
    gap: 30px;
}

.logo {
    font-size: 32px;
    font-weight: 800;
    color: #e50914;
    letter-spacing: 2px;
    cursor: pointer;
    text-shadow: 2px 2px 4px rgba(229, 9, 20, 0.5);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav-menu a {
    color: #e5e5e5;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #ffffff;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 25px;
}

.icon {
    width: 24px;
    height: 24px;
    stroke-width: 2;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.icon:hover {
    transform: scale(1.1);
}

.profile img {
    width: 36px;
    height: 36px;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.profile img:hover {
    transform: scale(1.05);
}

/* ==================== HERO SECTION ==================== */
.hero {
    position: relative;
    height: 80vh;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)),
                url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"%3E%3Cdefs%3E%3ClinearGradient id="grad1" x1="0%25" y1="0%25" x2="100%25" y2="100%25"%3E%3Cstop offset="0%25" style="stop-color:%23e50914;stop-opacity:1" /%3E%3Cstop offset="100%25" style="stop-color:%23831010;stop-opacity:1" /%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width="1200" height="600" fill="url(%23grad1)"/%3E%3Ctext x="50%25" y="30%25" font-size="120" text-anchor="middle" fill="rgba(255,255,255,0.1)" font-family="Arial Black"%3ESTRANGER%3C/text%3E%3Ctext x="50%25" y="50%25" font-size="120" text-anchor="middle" fill="rgba(255,255,255,0.1)" font-family="Arial Black"%3ETHINGS%3C/text%3E%3C/svg%3E');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding: 0 50px;
}

.hero-content {
    max-width: 550px;
    z-index: 2;
    animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: 64px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

.hero-description {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #e5e5e5;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-icon {
    width: 20px;
    height: 20px;
}

.btn-play {
    background-color: #ffffff;
    color: #000000;
}

.btn-play:hover {
    background-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.05);
}

.btn-info {
    background-color: rgba(109, 109, 110, 0.7);
    color: #ffffff;
}

.btn-info:hover {
    background-color: rgba(109, 109, 110, 0.5);
    transform: scale(1.05);
}

.hero-fade {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 120px;
    background: linear-gradient(180deg, rgba(20,20,20,0) 0%, rgba(20,20,20,1) 100%);
}

/* ==================== CONTENT ROWS ==================== */
.content-container {
    padding: 0 50px 50px;
    margin-top: -150px;
    position: relative;
    z-index: 3;
}

.row {
    margin-bottom: 40px;
}

.row-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #e5e5e5;
}

.row-posters {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 10px 0;
    scrollbar-width: none; /* Firefox */
}

.row-posters::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.poster {
    min-width: 200px;
    height: 300px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.poster:hover {
    transform: scale(1.08);
    z-index: 10;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.8);
}

/* Trending Badge Styles */
.trending-badge {
    display: flex;
    align-items: flex-end;
}

.trending-badge .rank {
    position: absolute;
    left: -15px;
    bottom: -10px;
    font-size: 180px;
    font-weight: 900;
    color: #141414;
    -webkit-text-stroke: 3px #e5e5e5;
    z-index: 1;
    line-height: 1;
}

.trending-badge .poster-content {
    width: 100%;
    height: 100%;
    z-index: 2;
    border-radius: 6px;
}

/* ==================== POSTER GRADIENTS ==================== */
/* Trending Posters */
.trending-1 { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.trending-2 { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.trending-3 { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.trending-4 { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); }
.trending-5 { background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); }
.trending-6 { background: linear-gradient(135deg, #30cfd0 0%, #330867 100%); }

/* Popular Posters */
.popular-1 { background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%); }
.popular-2 { background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%); }
.popular-3 { background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%); }
.popular-4 { background: linear-gradient(135deg, #ff6e7f 0%, #bfe9ff 100%); }
.popular-5 { background: linear-gradient(135deg, #e0c3fc 0%, #8ec5fc 100%); }
.popular-6 { background: linear-gradient(135deg, #f77062 0%, #fe5196 100%); }

/* Action Posters */
.action-1 { background: linear-gradient(135deg, #eb3349 0%, #f45c43 100%); }
.action-2 { background: linear-gradient(135deg, #dd5e89 0%, #f7bb97 100%); }
.action-3 { background: linear-gradient(135deg, #c94b4b 0%, #4b134f 100%); }
.action-4 { background: linear-gradient(135deg, #ee0979 0%, #ff6a00 100%); }
.action-5 { background: linear-gradient(135deg, #ff512f 0%, #dd2476 100%); }
.action-6 { background: linear-gradient(135deg, #aa076b 0%, #61045f 100%); }

/* Sci-Fi Posters */
.scifi-1 { background: linear-gradient(135deg, #2193b0 0%, #6dd5ed 100%); }
.scifi-2 { background: linear-gradient(135deg, #cc2b5e 0%, #753a88 100%); }
.scifi-3 { background: linear-gradient(135deg, #42275a 0%, #734b6d 100%); }
.scifi-4 { background: linear-gradient(135deg, #000428 0%, #004e92 100%); }
.scifi-5 { background: linear-gradient(135deg, #159957 0%, #155799 100%); }
.scifi-6 { background: linear-gradient(135deg, #283048 0%, #859398 100%); }

/* Drama Posters */
.drama-1 { background: linear-gradient(135deg, #3a1c71 0%, #d76d77 50%, #ffaf7b 100%); }
.drama-2 { background: linear-gradient(135deg, #134e5e 0%, #71b280 100%); }
.drama-3 { background: linear-gradient(135deg, #2c3e50 0%, #bdc3c7 100%); }
.drama-4 { background: linear-gradient(135deg, #000000 0%, #434343 100%); }
.drama-5 { background: linear-gradient(135deg, #4b79a1 0%, #283e51 100%); }
.drama-6 { background: linear-gradient(135deg, #833ab4 0%, #fd1d1d 50%, #fcb045 100%); }

/* Comedy Posters */
.comedy-1 { background: linear-gradient(135deg, #f2994a 0%, #f2c94c 100%); }
.comedy-2 { background: linear-gradient(135deg, #fc4a1a 0%, #f7b733 100%); }
.comedy-3 { background: linear-gradient(135deg, #fdbb2d 0%, #22c1c3 100%); }
.comedy-4 { background: linear-gradient(135deg, #f7971e 0%, #ffd200 100%); }
.comedy-5 { background: linear-gradient(135deg, #56ab2f 0%, #a8e063 100%); }
.comedy-6 { background: linear-gradient(135deg, #ffe000 0%, #799f0c 100%); }

/* Add content overlay patterns */
.poster::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.8) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.poster:hover::before {
    opacity: 1;
}

/* ==================== FOOTER ==================== */
.footer {
    padding: 50px 50px 30px;
    background-color: #000000;
    margin-top: 50px;
}

.footer-content {
    max-width: 980px;
    margin: 0 auto;
}

.social-links {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.social-icon {
    width: 28px;
    height: 28px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.social-icon:hover {
    transform: scale(1.2);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-column a {
    color: #808080;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s ease;
}

.footer-column a:hover {
    color: #ffffff;
}

.service-code {
    padding: 8px 12px;
    background-color: transparent;
    border: 1px solid #808080;
    color: #808080;
    font-size: 13px;
    cursor: pointer;
    margin-bottom: 20px;
    transition: all 0.2s ease;
}

.service-code:hover {
    border-color: #ffffff;
    color: #ffffff;
}

.copyright {
    color: #808080;
    font-size: 12px;
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 768px) {
    .navbar {
        padding: 15px 20px;
    }

    .logo {
        font-size: 24px;
    }

    .nav-menu {
        display: none;
    }

    .hero {
        height: 60vh;
        padding: 0 20px;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-description {
        font-size: 14px;
    }

    .content-container {
        padding: 0 20px 30px;
    }

    .poster {
        min-width: 150px;
        height: 225px;
    }

    .trending-badge .rank {
        font-size: 120px;
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==================== SCROLLBAR STYLING ==================== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #141414;
}

::-webkit-scrollbar-thumb {
    background: #555555;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #777777;
}

/* ==================== ANIMATIONS ==================== */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.poster::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    background-size: 1000px 100%;
    animation: shimmer 3s infinite;
    opacity: 0;
}

.poster:hover::after {
    opacity: 1;
}
