@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-color: var(--netflix-black);
    color: #ffffff;
    overflow-x: hidden;
}

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

/* TV FOCUS STYLES (D-Pad Navigation) */
:focus {
    outline: none;
}

a:focus-visible, 
button:focus-visible, 
.channel-btn:focus-visible,
.tv-focused {
    outline: 3.5px solid #0296cc !important;
    outline-offset: 3px !important;
    box-shadow: 0 0 16px rgba(2, 150, 204, 0.85) !important;
    transform: scale(1.03) !important;
    z-index: 1000 !important;
    transition: transform 0.15s ease, outline 0.15s ease !important;
}

nav .desktop-menu > li > a:focus-visible,
nav .dropbtn:focus-visible {
    background-color: #0296cc !important;
    color: #fff !important;
}

/* =========================================================
   NETPLEX NAVIGATION - PLAIN <nav>
========================================================= */
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.active,
nav .dropbtn:hover,
nav .dropdown.active > .dropbtn {
    background-color: #0296cc;
    color: #fff;
}

nav .desktop-menu > li > a:hover i,
nav .dropbtn:hover 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-visible {
    background: #0296cc;
    color: #fff;
    outline: none;
}

nav .dropdown-content li a:hover 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-visible,
    .mobile-more-menu a:active {
        background: #0296cc;
        color: #fff;
        outline: none;
    }

    .mobile-more-menu a:hover 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 */
/* ============================= */
/* 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;; /* adjust this value as needed */
    }
    .footer-links a {
        margin: 0 3px;
    }
}
/* FOOTER END */


/* =========================================================
   TV LIVE PAGE TITLE
========================================================= */
body > h1 {
    width: 100%;
    margin: 0;
    padding: 135px 20px 12px;
    text-align: center;
    color: #ffffff;
    font-size: clamp(30px, 4vw, 50px);
    font-weight: 800;
    letter-spacing: -1px;
}

body > h1::after {
    content: "";
    display: block;
    width: 55px;
    height: 4px;
    margin: 18px auto 0;
    background: #0296cc;
    border-radius: 10px;
}

/* =========================================================
   FULLSCREEN BUTTON
========================================================= */
#fullscreen-btn {
    display: block;
    margin: 20px auto 10px;
    padding: 11px 22px;
    background: #0296cc;
    border: 2px solid #0296cc;
    border-radius: 5px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition:
        background 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

#fullscreen-btn:hover {
    background: transparent;
    color: #0296cc;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(2, 150, 204, 0.15);
}

/* =========================================================
   CHANNEL SCROLL NOTE
========================================================= */
body > h {
    display: block;
    width: fit-content;
    margin: 0 auto 28px;
    padding: 7px 14px;
    color: #a9a9a9;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid #292929;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
}

/* =========================================================
   MAIN TV LIVE CONTAINER
========================================================= */
#tv-container {
    width: calc(100% - 40px);
    max-width: 1250px;
    margin: 0 auto 85px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* =========================================================
   VIDEO PLAYER
========================================================= */
#video-container {
    order: 1;
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #000000;
    border: 1px solid #292929;
    border-radius: 7px;
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.55);
}

#video-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    width: 100%;
    height: 3px;
    background: #0296cc;
    pointer-events: none;
}

#video {
    display: block;
    width: 100%;
    height: auto;
    max-width: none;
    aspect-ratio: 16 / 9;
    background: #000000;
    object-fit: contain;
}

/* =========================================================
   CHANNEL SECTION
========================================================= */
#channel-list {
    order: 2;
    width: 100%;
    max-width: none;
    max-height: none;
    padding: 0;
    overflow: visible;
    background: transparent;
    border: none;
    border-radius: 0;
}

/* =========================================================
   CHANNEL TITLE
========================================================= */
#channel-header {
    position: static;
    margin: 0 0 18px;
    padding: 0;
    background: transparent;
    border: none;
    text-align: left;
}

#channel-header h3 {
    margin: 0;
    padding: 0;
    color: #ffffff;
    font-size: 25px;
    font-weight: 800;
    line-height: 1.2;
}

#channel-header h3::before {
    content: "";
    display: inline-block;
    width: 5px;
    height: 25px;
    margin-right: 11px;
    vertical-align: -4px;
    background: #0296cc;
    border-radius: 5px;
}

/* =========================================================
   NETFLIX-STYLE CHANNEL GRID
========================================================= */
#channel-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
    gap: 12px;
    width: 100%;
    max-height: 430px;
    padding: 20px 5px 5px 20px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: #444 transparent;
    scroll-behavior: smooth;
}

#channel-buttons::-webkit-scrollbar {
    width: 7px;
}

#channel-buttons::-webkit-scrollbar-track {
    background: transparent;
}

#channel-buttons::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 10px;
}

#channel-buttons::-webkit-scrollbar-thumb:hover {
    background: #0296cc;
}

/* =========================================================
   CHANNEL CARDS
========================================================= */
.channel-btn {
    position: relative;
    width: 100%;
    min-height: 40px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
    background: #181818;
    border: 1px solid #0296cc;
    border-radius: 6px;
    color: #d9d9d9;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    text-align: left;
    cursor: pointer;
    transition:
        background 0.22s ease,
        border-color 0.22s ease,
        color 0.22s ease,
        transform 0.22s ease,
        box-shadow 0.22s ease;
}

.channel-btn::before {
    content: "";
    flex: 0 0 7px;
    width: 7px;
    height: 7px;
    margin-right: 11px;
    background: #555;
    border-radius: 50%;
    transition: background 0.22s ease, box-shadow 0.22s ease;
}

.channel-btn:hover {
    background: #0296cc;
    border-color: #414141;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.28);
}

.channel-btn:hover::before {
    background: #0296cc;
    box-shadow: 0 0 10px rgba(2, 150, 204, 0.65);
}

.channel-btn.active {
    background: linear-gradient(90deg, rgba(2, 150, 204, 0.22), rgba(2, 150, 204, 0.06)) !important;
    border-color: #0296cc !important;
    color: #ffffff !important;
    font-weight: 700;
    box-shadow: inset 3px 0 0 #0296cc, 0 6px 20px rgba(2, 150, 204, 0.08);
}

.channel-btn.active::before {
    background: #0296cc;
    box-shadow: 0 0 10px rgba(2, 150, 204, 0.65);
}

/* =========================================================
   MEDIA QUERIES
========================================================= */
@media (max-width: 900px) {
    body > h1 {
        padding-top: 110px;
        font-size: 38px;
    }

    #tv-container {
        width: calc(100% - 30px);
        margin-bottom: 75px;
    }

    #channel-buttons {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        max-height: 410px;
    }

    .channel-btn {
        min-height: 40px;
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    body > h1 {
        padding: 30px 15px 10px;
        font-size: 29px;
    }

    body > h1::after {
        width: 45px;
        height: 3px;
        margin-top: 14px;
    }

    #fullscreen-btn {
        margin: 18px auto 10px;
        padding: 10px 17px;
        font-size: 13px;
    }

    body > h {
        margin-bottom: 20px;
        padding: 6px 11px;
        font-size: 11px;
    }

    #tv-container {
        width: 100%;
        margin: 0 auto 60px;
        gap: 27px;
    }

    #video-container {
        width: 100%;
        border-right: none;
        border-left: none;
        border-radius: 0;
        box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55);
    }

    #video {
        width: 100%;
        aspect-ratio: 16 / 9;
    }

    #channel-list {
        padding: 0 12px;
    }

    #channel-header {
        margin-bottom: 15px;
    }

    #channel-header h3 {
        font-size: 21px;
    }

    #channel-header h3::before {
        width: 4px;
        height: 21px;
        margin-right: 9px;
    }

    #channel-buttons {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        max-height: 400px;
        padding-right: 3px;
    }

    .channel-btn {
        min-height: 40px;
        padding: 11px;
        font-size: 12px;
        border-radius: 5px;
    }

    .channel-btn::before {
        flex-basis: 6px;
        width: 6px;
        height: 6px;
        margin-right: 8px;
    }

    .channel-btn:hover {
        transform: none;
        box-shadow: none;
    }
}

@media (max-width: 400px) {
    body > h1 {
        padding-top: 25px;
        font-size: 26px;
    }

    #channel-list {
        padding: 0 10px;
    }

    #channel-buttons {
        gap: 8px;
    }

    .channel-btn {
        min-height: 40px;
        padding: 9px;
        font-size: 11px;
    }
}


/* 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;
}
