/* =========================================
   RESET
========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* =========================================
   BODY
========================================= */

body {
    background: #0b0b0b;
    color: white;
    font-family: 'Segoe UI', sans-serif;
    overflow-x: hidden;
}

/* =========================================
   NAVBAR NETFLIX STYLE
========================================= */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.2rem 2rem;
    background: linear-gradient( to bottom, rgba(0,0,0,0.9), rgba(0,0,0,0) );
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
}
.logo-img {
    height: 125px;
    width: auto;
    object-fit: contain;
    display: block;
}
.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-item {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color .2s ease;
}

    .nav-item:hover,
    .nav-item.active {
        color: white;
    }

/* =========================================
   MAIN CONTENT
========================================= */

.main-content {
    padding-bottom: 3rem;
}

/* =========================================
   HERO
========================================= */

.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: flex-end;
    padding: 0 4rem 6rem 4rem;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    margin-top: -90px;
}

    .hero::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient( to top, rgba(0,0,0,1) 0%, rgba(0,0,0,0.7) 20%, rgba(0,0,0,0.15) 55%, rgba(0,0,0,0.4) 100% );
    }

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin-bottom: 3rem;
}

.quick-access,
.featured-section,
.media-section {
    margin-top: 2rem;
}

.hero-content h2 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 4px 20px rgba(0,0,0,0.7);
}

.hero-content p {
    font-size: 1.3rem;
    color: rgba(255,255,255,0.9);
    line-height: 1.7;
    max-width: 600px;
}

/* =========================================
   SECTION
========================================= */

.media-section,
.featured-section,
.quick-access {
    padding-left: 2rem;
    padding-right: 2rem;
    margin-bottom: 3rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
}

/* =========================================
   FILTER BUTTONS
========================================= */

.filter-controls {
    display: flex;
    gap: 0.8rem;
}

.filter-btn {
    border: none;
    background: rgba(255,255,255,0.1);
    color: white;
    padding: 0.7rem 1.2rem;
    border-radius: 999px;
    cursor: pointer;
    transition: all .2s ease;
}

    .filter-btn:hover,
    .filter-btn.active {
        background: #e50914;
    }

/* =========================================
   QUICK ACCESS CARDS
========================================= */

.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.card {
    position: relative;
    min-height: 220px;
    overflow: hidden;
    border-radius: 18px;
    background: linear-gradient( 135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02) );
    border: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(20px);
    padding: 2rem;
    cursor: pointer;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

    .card:hover,
    .card:focus {
        transform: scale(1.04);
        border-color: rgba(229,9,20,0.5);
        box-shadow: 0 20px 40px rgba(0,0,0,0.5), 0 0 20px rgba(229,9,20,0.3);
    }

.card-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.card h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.card p {
    color: rgba(255,255,255,0.75);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.card-arrow {
    font-size: 2rem;
    align-self: flex-end;
    color: #e50914;
}

/* =========================================
   GRID NETFLIX TV STYLE
========================================= */

.media-grid,
.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.2rem;
}

/* =========================================
   MEDIA CARD
========================================= */

.media-item {
    position: relative;
    width: 100%;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 14px;
    background: #111;
    cursor: pointer;
    transition: transform .25s ease, box-shadow .25s ease;
}

    .media-item:hover,
    .media-item:focus {
        transform: scale(1.08);
        z-index: 50;
        box-shadow: 0 15px 40px rgba(0,0,0,0.7), 0 0 20px rgba(229,9,20,0.35);
    }

    .media-item:focus {
        outline: 4px solid white;
    }

/* =========================================
   IMAGE
========================================= */

.media-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.media-item:hover .media-cover {
    transform: scale(1.05);
}

/* =========================================
   OVERLAY
========================================= */

.media-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1rem;
    background: linear-gradient( to top, rgba(0,0,0,0.95), rgba(0,0,0,0.1) );
    opacity: 0;
    transition: opacity .25s ease;
}

.media-item:hover .media-overlay {
    opacity: 1;
}

/* =========================================
   TEXT
========================================= */

.media-title {
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 0.4rem;
}

.media-info {
    font-size: 0.85rem;
    color: #d0d0d0;
}

/* =========================================
   MODAL
========================================= */

.modal {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0,0,0,0.85);
    z-index: 5000;
}

.modal-content {
    width: 90%;
    max-width: 1100px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 20px;
    background: #181818;
    padding: 2rem;
    position: relative;
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: white;
}

/* =========================================
   DETAIL
========================================= */

.media-detail {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 2rem;
}

.detail-cover {
    width: 100%;
    border-radius: 14px;
    object-fit: cover;
}

.detail-info h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.detail-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.meta-item {
    background: rgba(255,255,255,0.08);
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.description {
    color: #d0d0d0;
    line-height: 1.7;
    margin-bottom: 2rem;
}

/* =========================================
   BUTTON
========================================= */

.play-btn {
    border: none;
    background: white;
    color: black;
    padding: 0.9rem 2rem;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: transform .2s ease;
}

    .play-btn:hover {
        transform: scale(1.05);
    }

/* =========================================
   EPISODES
========================================= */

.episodes-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.episode-item {
    background: rgba(255,255,255,0.05);
    padding: 1rem;
    border-radius: 10px;
    cursor: pointer;
    transition: background .2s ease;
}

    .episode-item:hover {
        background: rgba(255,255,255,0.1);
    }

/* =========================================
   FOOTER
========================================= */

.footer {
    padding: 2rem;
    text-align: center;
    color: rgba(255,255,255,0.5);
}

/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 900px) {

    .hero {
        min-height: 55vh;
        padding: 2rem;
    }

    .hero-content h2 {
        font-size: 2.3rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .card-container {
        grid-template-columns: 1fr;
    }

    .media-grid,
    .featured-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }

    .media-detail {
        grid-template-columns: 1fr;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .nav-menu {
        gap: 1rem;
    }
  
}
