@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;
}

/* =========================================
   ANDROID TV / REMOTE ACCESSIBILITY STYLES
========================================= */
: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;
}

.card:focus,
.card a:focus {
    transform: scale(1.05);
    outline: none !important;
}

.card:focus img,
.card a:focus img {
    outline: 3px solid #0296cc !important;
    box-shadow: 0 0 15px rgba(2, 150, 204, 0.8);
    border-radius: 10px;
}

/* Custom TV Dropdown Triggers */
.tv-select-btn {
    width: 100%;
    padding: 10px 14px;
    background-color: #1e1e1e;
    color: white;
    border: 2px solid #333;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.tv-select-btn .label {
    font-size: 11px;
    color: #0296cc;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.tv-select-btn .value {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.tv-select-btn:hover {
    border-color: #0296cc;
}

/* TV Fullscreen Picker Modal */
/* Change cursor to pointer over the dark backdrop */
.tv-picker-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 200000;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer; /* Indicates clicking outside will dismiss */
}

/* Reset cursor inside the actual dialog box */
.tv-picker-content {
    background: #181818;
    border: 2px solid #333;
    border-radius: 12px;
    width: 90%;
    max-width: 480px;
    max-height: 75vh;
    display: flex;
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.9);
    cursor: default; /* Prevents pointer cursor inside dialog */
}

.tv-picker-content h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
    color: #0296cc;
    text-align: center;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

.tv-picker-options {
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-right: 5px;
}

.tv-picker-item {
    background: #252525;
    border: 2px solid transparent;
    color: #fff;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tv-picker-item.active {
    border-color: #0296cc;
    color: #0296cc;
}

/* Navigation */
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 .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,
nav .dropdown-content li a:focus-visible {
    background: #0296cc;
    color: #fff;
    outline: none;
}

@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;
    }

    .mobile-nav-item i {
        display: block;
        font-size: 20px;
        color: #aaa;
    }

    .mobile-nav-item span { display: block; white-space: nowrap; }
    .mobile-nav-item.active,
    .mobile-nav-item.active i { color: #0296cc; }

    .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;
    }

    .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;
    }

    .mobile-more-menu a i { width: 22px; color: #0296cc; }
    body { padding-bottom: calc(75px + env(safe-area-inset-bottom)); }

    /* =========================================================
       3 COLUMNS ON MOBILE VIEW
    ========================================================= */
    .grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 8px !important;
        padding: 5px 0 !important;
    }

    .play-button {
        width: 38px !important;
        height: 38px !important;
    }

    .play-button i {
        font-size: 14px !important;
        margin-left: 2px !important;
    }

    .year-badge {
        font-size: 10px !important;
        padding: 2px 5px !important;
        left: 5px !important;
        bottom: 5px !important;
    }  
  
}

/* Container & Grid */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    margin-top: 60px;
    text-align: center;
}

h1 {
    font-family: "Montserrat", sans-serif;
    font-weight: 900;
    margin-bottom: 20px;
}

.get-random-btn {
    padding: 12px 24px;
    font-size: 15px;
    font-weight: bold;
    border: none;
    background-color: #0296cc;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.get-random-btn:hover {
    background-color: #0275a6;
}

.dropdown-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 25px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.dropdowned {
    flex: 1;
    min-width: 200px;
    max-width: 260px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
    justify-items: center;
    padding: 10px 0;
}

.card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--netflix-dark);
    border: 2.5px solid transparent; /* Keeps sizing stable */
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

/* Glowing Cyan/Blue border with neon drop shadow */
.card:hover,
.card:focus-within {
    transform: scale(1.08);
    z-index: 10;
    border-color: #00d2ff;
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.65), 
                0 0 35px rgba(2, 150, 204, 0.35),
                0 10px 25px rgba(0, 0, 0, 0.8);
}

/* Subtle image scale on hover */
.card img {
    width: 100%;
    height: auto;
    aspect-ratio: 2/3;
    object-fit: cover;
    display: block;
    border-radius: 8px;
    transition: transform 0.3s ease-in-out, filter 0.3s ease;
}

.card:hover img,
.card:focus img {
    filter: brightness(1.08);
}

.card a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.card img {
    width: 100%;
    height: auto;
    aspect-ratio: 2/3;
    object-fit: cover;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    transition: transform 0.2s ease;
}

.year-badge {
    position: absolute;
    left: 8px;
    bottom: 8px;
    padding: 4px 8px;
    font: 700 12px/1 'Montserrat', sans-serif;
    color: #fff;
    background: rgba(2, 150, 204, 0.95);
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    pointer-events: none;
}

/* ==============================
   PLAY BUTTON & GALAXY GLOW
============================== */
.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, #551A8B, #000);
    color: white;
    font-size: 28px;
    width: 60px;
    height: 60px;
    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;
    pointer-events: none;
    z-index: 5;
}

.play-button i {
    font-size: 24px;
    margin-left: 3px;
}

@keyframes galaxyGlow {
    0% { box-shadow: 0 0 15px violet; }
    50% { box-shadow: 0 0 30px blue; }
    100% { box-shadow: 0 0 15px violet; }
}

.card:hover .play-button,
.card:focus .play-button {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.15);
    animation: galaxyGlow 1.5s infinite alternate;
}

#loadMoreBtn {
    background: #0296cc;
    border: none;
    color: white;
    font-size: 16px;
    font-weight: bold;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease, background 0.2s ease;
}

#loadMoreBtn:hover {
    transform: scale(1.05);
    background: #0275a6;
}

/* 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 */


/* 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;
}
