@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&display=swap');

    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
        font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
        -webkit-font-smoothing: antialiased;
    }

    :root {
        --netflix-red: #0296cc;
        --netflix-black: #141414;
        --netflix-dark: #181818;
        --netflix-card: #2f2f2f;
        --accent-blue: #0296cc;
        --text-light: #e5e5e5;
    }

    body {
        background: radial-gradient(circle at 50% 0%, rgba(2, 150, 204, 0.08), transparent 100%), #121212;
        color: #ffffff;
        overflow-x: hidden;
    }

    html, body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        position: relative;
    }

    :focus { outline: none; }

    [tabindex="0"]:focus,
    a:focus,
    button:focus {
        outline: 3px solid #0296cc !important;
        outline-offset: 4px;
        box-shadow: 0 0 15px rgba(2, 150, 204, 0.8) !important;
    }

    /* NAVIGATION BAR */
    nav {
        width: 100%;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 10000;
        padding: 10px 20px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        background: rgba(0, 0, 0, 0);
        transition: background-color .3s ease, backdrop-filter .3s ease;
    }

    nav.nav-solid {
        background: rgba(0, 0, 0, .98);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }

    nav #logo {
        max-height: 25px;
        width: auto;
        display: block;
        flex-shrink: 0;
    }

    nav .desktop-menu {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    nav .desktop-menu > li {
        position: relative;
        margin-left: 5px;
        list-style: none;
    }

    nav .desktop-menu > li > a,
    nav .dropbtn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        padding: 10px;
        color: #fff;
        background: transparent;
        border: none;
        border-radius: 5px;
        text-decoration: none;
        font-family: inherit;
        font-size: 15px;
        font-weight: bold;
        cursor: pointer;
        transition: background-color .25s ease, color .25s ease;
        text-transform: uppercase;
    }

    nav .desktop-menu i { color: #0296cc; }

    nav .desktop-menu > li > a:hover,
    nav .desktop-menu > li > a:focus,
    nav .desktop-menu > li > a.active,
    nav .dropbtn:hover,
    nav .dropbtn:focus,
    nav .dropdown.active > .dropbtn {
        background-color: #0296cc;
        color: #fff;
    }

    nav .desktop-menu > li > a:hover i,
    nav .desktop-menu > li > a:focus i,
    nav .dropbtn:hover i,
    nav .dropbtn:focus i,
    nav .dropdown.active > .dropbtn i { color: #fff; }

    nav .dropdown { position: relative; }

    nav .dropdown-content {
        display: none;
        position: absolute;
        top: calc(100% + 5px);
        right: 0;
        min-width: 200px;
        margin: 0;
        padding: 8px;
        list-style: none;
        background: #1e1e1e;
        border: 1px solid #333;
        border-radius: 8px;
        box-shadow: 0 8px 25px rgba(0, 0, 0, .6);
        z-index: 10001;
        font-weight: bold;
    }

    nav .dropdown-content li {
        width: 100%;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    nav .dropdown-content li a {
        width: 100%;
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 11px 13px;
        color: #fff;
        background: transparent;
        border-radius: 6px;
        text-decoration: none;
        font-size: 14px;
        transition: background-color .2s ease, color .2s ease;
        text-transform: uppercase;
    }

    nav .dropdown-content li a i {
        width: 18px;
        color: #0296cc;
        text-align: center;
    }

    nav .dropdown-content li a:hover,
    nav .dropdown-content li a:focus,
    nav .dropdown-content li a:focus-visible {
        background: #0296cc;
        color: #fff;
    }

    nav .dropdown-content li a:hover i,
    nav .dropdown-content li a:focus i,
    nav .dropdown-content li a:focus-visible i { color: #fff; }

    @media (min-width: 769px) {
        nav .dropdown:hover .dropdown-content,
        nav .dropdown:focus-within .dropdown-content,
        nav .dropdown.active .dropdown-content { display: block; }
    }

    .mobile-bottom-nav,
    .mobile-more-menu { display: none; }

    @media (max-width: 768px) {
        nav {
            position: static;
            height: 0;
            padding: 0;
            background: transparent !important;
            display: block;
            pointer-events: none;
        }

        nav.nav-solid {
            background: transparent !important;
            backdrop-filter: none;
            -webkit-backdrop-filter: none;
        }

        nav #logo,
        nav .desktop-menu { display: none !important; }

        .mobile-bottom-nav {
            position: fixed;
            left: 0;
            right: 0;
            bottom: 0;
            width: 100%;
            min-height: 65px;
            display: flex;
            align-items: center;
            justify-content: space-around;
            background: rgba(15, 15, 15, .98);
            border-top: 1px solid #333;
            box-shadow: 0 -4px 15px rgba(0, 0, 0, .55);
            z-index: 99999;
            padding: 4px 6px env(safe-area-inset-bottom);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            pointer-events: auto;
        }

        .mobile-nav-item {
            flex: 1;
            min-width: 0;
            min-height: 58px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 4px;
            padding: 0;
            margin: 0;
            background: transparent;
            border: none;
            color: #aaa;
            text-decoration: none;
            font-family: inherit;
            font-size: 11px;
            font-weight: 500;
            line-height: 1;
            cursor: pointer;
            border-radius: 8px;
            -webkit-tap-highlight-color: transparent;
            transition: color .2s ease, background-color .2s ease, transform .2s ease;
        }

        .mobile-nav-item i {
            display: block;
            font-size: 20px;
            color: #aaa;
            line-height: 1;
            transition: color .2s ease, transform .2s ease;
        }

        .mobile-nav-item span { display: block; white-space: nowrap; }
        .mobile-nav-item.active,
        .mobile-nav-item.active i { color: #0296cc; }
        .mobile-nav-item.active { background: rgba(2, 150, 204, .12); }
        .mobile-nav-item:active { transform: scale(.94); }

        .mobile-more-menu {
            position: fixed;
            right: 10px;
            bottom: calc(75px + env(safe-area-inset-bottom));
            width: 220px;
            max-width: calc(100vw - 20px);
            padding: 8px;
            display: flex;
            flex-direction: column;
            gap: 3px;
            background: rgba(25, 25, 25, .98);
            border: 1px solid #333;
            border-radius: 12px;
            box-shadow: 0 8px 30px rgba(0, 0, 0, .7);
            z-index: 100000;
            opacity: 0;
            visibility: hidden;
            transform: translateY(10px);
            pointer-events: none;
            transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
        }

        .mobile-more-menu.show {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
            pointer-events: auto;
        }

        .mobile-more-menu a {
            width: 100%;
            min-height: 44px;
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 10px 12px;
            color: #fff;
            background: transparent;
            border-radius: 8px;
            text-decoration: none;
            font-size: 14px;
            transition: background-color .2s ease, color .2s ease;
        }

        .mobile-more-menu a i {
            width: 22px;
            flex-shrink: 0;
            text-align: center;
            color: #0296cc;
            font-size: 16px;
        }

        .mobile-more-menu a:hover,
        .mobile-more-menu a:focus,
        .mobile-more-menu a:focus-visible,
        .mobile-more-menu a:active {
            background: #0296cc;
            color: #fff;
            outline: none;
        }

        .mobile-more-menu a:hover i,
        .mobile-more-menu a:focus i,
        .mobile-more-menu a:focus-visible i,
        .mobile-more-menu a:active i { color: #fff; }

        body { padding-bottom: calc(75px + env(safe-area-inset-bottom)); }

        .site-footer {
            padding-bottom: calc(85px + env(safe-area-inset-bottom));
            margin-bottom: 0 !important;
        }
    }

    @media (min-width: 769px) {
        .mobile-bottom-nav,
        .mobile-more-menu { display: none !important; }
    }

    /* FOOTER START */
    .site-footer {
        background-color: #1e1e1e;
        color: #bfbfbf;
        text-align: center;
        padding: 12px 16px;
        border-top: 1px solid #333;
        font-size: 13px;
        line-height: 1.4;
    }

    .site-footer p {
        margin: 4px 0 0;
    }

    .footer-links {
        margin-bottom: 4px;
    }

    .footer-links a {
        color: #0296cc;
        text-decoration: none;
        margin: 0 6px;
        font-weight: 600;
    }

    .footer-links a:hover,
    .footer-links a:focus {
        text-decoration: underline;
    }

    .footer-meta {
        color: #fff;
        font-size: 13px;
    }

    .disclaimer-note {
        font-size: 11px;
        opacity: 0.75;
    }

    @media (max-width: 600px) {
        .site-footer {
            padding: 10px 12px;
            margin-bottom: 40px !important;
        }
        .footer-links a {
            margin: 0 3px;
        }
    }
    /* FOOTER END */

    /* BANNER SECTION */
    .banner {
        position: relative;
        width: 100%;
        height: 500px;
        background-size: cover;
        background-position: center;
        display: flex;
        align-items: center;
        padding: 20px;
    }
    
    .banner h1 { font-size: 50px; margin-bottom: 10px; }
    .banner p { font-size: 12px; margin-bottom: 20px; }

    #banner-description { 
        font-size: 15px;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: normal;
        max-height: 4.5em; 
    }

    .banner-content {
        max-width: 40%;
        background: rgba(0, 0, 0, 0.3);
        padding: 25px;
        border-radius: 10px;
    }

    .banner::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 100px;
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, #121212 100%);
    }

    @media (max-width: 768px) {
        .banner { height: 300px; padding: 10px; }
        .banner-content { max-width: 85%; font-size: 14px; padding: 5px; }
        .banner h1 { font-size: 22px; margin-bottom: 5px; }
        .banner p { font-size: 8px; }
        #banner-description { font-size: 10px; }
    }

    /* SECTION & GRID LAYOUT */
    .section { margin: 0px; }
    
    h2.section-heading {
        display: flex;
        align-items: center;
        gap: 10px;
        color: white;
        margin-top: 20px;
        margin-left: 20px;
    }

    h2.section-heading::before {
        content: '';
        width: 4px;
        height: 22px;
        background-color: var(--netflix-red);
        border-radius: 2px;
    }

    /* 8 items per row on desktop */
    .movies-grid {
        display: grid;
        grid-template-columns: repeat(8, 1fr);
        gap: 10px;
        padding: 10px 20px;
        justify-items: center;
    }

    /* MEDIA ITEM CARDS */
    .media-item {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        cursor: pointer;
        border-radius: 8px;
        transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s ease-in-out;
        transform-origin: center center;
    }

    .poster-card {
        position: relative;
        width: 100%;
        border-radius: 8px;
        overflow: hidden;
    }

    .media-item:hover,
    .media-item:focus {
        transform: scale(1.05);
        z-index: 100;
    }

    .poster-card img {
        width: 100%;
        height: auto;
        aspect-ratio: 2 / 3;
        object-fit: cover;
        border-radius: 8px;
        display: block;
    }

    .poster-title {
        width: 100%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 12px;
        font-weight: bold;
        color: #00d4ff;
        text-align: center;
        margin-top: 6px;
        margin-bottom: 8px;
        pointer-events: none;
    }

    .rating {
        position: absolute;
        top: 0px;
        left: 0px;
        background-color: rgba(0, 0, 0, 0.6);
        color: gold;
        padding: 3px 6px;
        font-size: 11px;
        font-weight: bold;
        border-radius: 5px;
        display: flex;
        align-items: center;
        z-index: 2;
    }

    .star { font-size: 0.75rem; margin-right: 3px; }

    .play-button {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background: radial-gradient(circle, #551A8B, #000);
        color: white;
        font-size: 20px;
        width: 44px;
        height: 44px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
        box-shadow: 0 0 15px violet;
    }

    @keyframes galaxyGlow {
        0% { box-shadow: 0 0 15px violet; }
        50% { box-shadow: 0 0 30px blue; }
        100% { box-shadow: 0 0 15px violet; }
    }

    .media-item:hover .play-button,
    .media-item:focus .play-button {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.15);
        animation: galaxyGlow 1.5s infinite alternate;
    }

    .year-container {
        position: absolute;
        bottom: 6px;
        left: 6px;
        z-index: 2;
        background-color: #0275a6;
        color: #fff;
        font-size: 10px;
        font-weight: bold;
        padding: 2px 5px;
        border-radius: 4px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.4);
        pointer-events: none;
    }

    @media (max-width: 768px) {
        .movies-grid {
            grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
            gap: 12px;
            padding: 12px;
        }
        .poster-card img { width: 100%; max-width: 175px; }
        .poster-title { width: 100%; max-width: 175px; font-size: 14px; }
        .rating { font-size: 14px; padding: 5px 8px; }
        .year-container { font-size: 12px; }
    }

    .play-button-banner {
        background-color: #0275a6;
        border: none;
        color: white;
        padding: 10px 20px;
        font-size: 1rem;
        border-radius: 5px;
        cursor: pointer;
        transition: background-color 0.3s;
        z-index: 999;
        position: relative;
    }

    .play-button-banner:hover,
    .play-button-banner:focus { background-color: #f40612; }

    /* PAGINATION BAR */
    .pagination-bar {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 8px;
        margin: 35px 0 60px;
        flex-wrap: wrap;
    }

    .page-numbers {
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .page-btn, 
    .num-btn {
        background-color: #222;
        color: #fff;
        border: 1px solid #333;
        min-width: 40px;
        height: 40px;
        padding: 0 10px;
        font-size: 14px;
        font-weight: bold;
        border-radius: 6px;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s ease;
    }

    .page-btn:hover:not(:disabled),
    .num-btn:hover:not(.active) {
        background-color: #0296cc;
        border-color: #0296cc;
        color: #fff;
    }

    .num-btn.active {
        background-color: #0296cc;
        border-color: #0296cc;
        color: #fff;
        cursor: default;
    }

    .page-btn:disabled {
        background-color: #181818;
        border-color: #262626;
        color: #555;
        cursor: not-allowed;
    }

    .page-dots {
        color: #777;
        padding: 0 6px;
        font-weight: bold;
        user-select: none;
    }

    /* ONLINE WIDGET */
    #online-widget {
        position: fixed;
        bottom: 20px;
        left: 20px;
        background: #111;
        color: #0ff;
        border-radius: 10px;
        box-shadow: 0 0 15px rgba(0,255,255,0.3);
        font-family: 'Segoe UI', Tahoma, sans-serif;
        font-size: 14px;
        z-index: 9999;
        user-select: none;
        cursor: pointer;
        overflow: hidden;
        width: 200px;
        max-height: 400px;
        transition: all 0.3s ease-in-out;
    }

    #online-widget-header {
        padding: 12px 18px;
        border-bottom: 1px solid #0ff2;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    #online-widget-content {
        padding: 10px 18px;
        display: none;
        overflow-y: auto;
        max-height: 300px;
    }

    #online-widget.expanded #online-widget-content {
        display: block;
    }

    #online-widget-toggle {
        font-weight: bold;
        color: #fff;
        margin-left: 10px;
        transition: transform 0.3s ease;
    }

    #online-widget.expanded #online-widget-toggle {
        transform: rotate(180deg);
    }

    .region-stat {
        font-size: 13px;
        margin-top: 4px;
        line-height: 1.6;
    }

    .region-stat img {
        width: 16px;
        height: 12px;
        object-fit: cover;
        vertical-align: middle;
        margin-right: 4px;
    }

    @media (max-width: 600px) {
        #online-widget {
            left: 20px;
            bottom: 20px;
            width: 90%;
            max-width: 135px;
            font-size: 14px;
        }

        #online-widget-content {
            max-height: 250px;
        }

        .region-stat {
            font-size: 12px;
        }

        #online-widget-header {
            padding: 10px 14px;
        }

        #online-widget-content {
            padding: 8px 14px;
        }
    }

    /* Prevent AdSense Container Overflow */
    .ad-container {
        width: 100%;
        max-width: 100vw;
        overflow: hidden;
        display: flex;
        justify-content: center;
    }

    ins.adsbygoogle {
        max-width: 100% !important;
    }

    ins.adsbygoogle iframe {
        max-width: 100% !important;
    }
