/* Base Resets */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: #111;
    color: #fff;
    overflow-x: hidden;
}

/* Navbar Style */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 6%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8), transparent);
    z-index: 1000;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    color: #e50914; /* Streaming Red */
    letter-spacing: 1px;
}

.nav-links a {
    color: #e5e5e5;
    text-decoration: none;
    margin-right: 25px;
    font-size: 15px;
    transition: color 0.3s ease;
}

.nav-links a:hover, .nav-links a.active {
    color: #fff;
    font-weight: 600;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-right i {
    font-size: 18px;
    cursor: pointer;
    color: #fff;
}

.profile-avatar {
    width: 35px;
    height: 35px;
    background-color: #333;
    border-radius: 4px;
    background-image: url('https://images.unsplash.com/photo-1535713875002-d1d0cf377fde?w=100&auto=format&fit=crop&q=60');
    background-size: cover;
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    height: 85vh;
    display: flex;
    align-items: center;
    padding: 0 6%;
    /* Placeholder background image */
    background: url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?w=1600&auto=format&fit=crop&q=80') no-repeat center center/cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.8) 30%, rgba(0,0,0,0.2) 60%, rgba(0,0,0,0.7)),
                linear-gradient(to top, #111, transparent 50%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.trending-badge {
    background-color: rgba(229, 9, 20, 0.2);
    color: #e50914;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 15px;
    border: 1px solid #e50914;
}

.hero-content h1 {
    font-size: 55px;
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: -1px;
}

.movie-meta {
    font-size: 14px;
    color: #cccccc;
    margin-bottom: 15px;
}

.rating {
    color: #f5c518;
    font-weight: bold;
}

.description {
    font-size: 16px;
    line-height: 1.5;
    color: #e5e5e5;
    margin-bottom: 25px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.btn {
    padding: 12px 26px;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.2s, background-color 0.2s;
}

.btn:hover {
    transform: scale(1.05);
}

.btn-play {
    background-color: #fff;
    color: #000;
}

.btn-play:hover {
    background-color: #e5e5e5;
}

.btn-info {
    background-color: rgba(109, 109, 110, 0.7);
    color: #fff;
}

.btn-info:hover {
    background-color: rgba(109, 109, 110, 0.4);
}

/* Content Container */
.content-container {
    padding: 40px 6%;
    position: relative;
    top: -40px; /* Pulls cards slightly over the hero fade */
    z-index: 5;
}

.movie-section {
    margin-bottom: 40px;
}

.section-title {
    font-size: 22px;
    margin-bottom: 15px;
    font-weight: 600;
}

/* Movie Grid / Cards */
.movie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.movie-card {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
    aspect-ratio: 16/9;
}

.movie-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.card-overlay h3 {
    font-size: 14px;
    margin-bottom: 4px;
}

.card-overlay p {
    font-size: 11px;
    color: #aaa;
}

.movie-card:hover {
    transform: scale(1.08);
    z-index: 10;
}

.movie-card:hover .card-overlay {
    opacity: 1;
}

/* Genre Cards */
.genre-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
}

.genre-card {
    height: 80px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    cursor: pointer;
    transition: filter 0.3s;
    background: #222;
}

.genre-card.action { background: linear-gradient(135deg, #ff416c, #ff4b2b); }
.genre-card.comedy { background: linear-gradient(135deg, #f1a80a, #f3d005); }
.genre-card.horror { background: linear-gradient(135deg, #29323c, #485563); }
.genre-card.romance { background: linear-gradient(135deg, #00c6ff, #0072ff); }

.genre-card:hover {
    filter: brightness(1.2);
}

/* Footer */
.footer {
    text-align: center;
    padding: 30px;
    color: #555;
    font-size: 14px;
    border-top: 1px solid #222;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .nav-links { display: none; } /* Basic toggle hidden for simplicity */
    .hero-content h1 { font-size: 35px; }
    .hero { height: 70vh; }
}