/* ==============================================================================
   FILMY NORA - ADVANCED CINEMATIC STREAMING UI (NETFLIX-GRADE)
   Mature, High-Performance, Mobile & TV Screen Optimized
   ============================================================================== */

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

:root {
    /* Authentic Streaming Dark Palette */
    --netflix-black: #141414;
    --netflix-dark: #0f0f0f;
    --netflix-surface: #181818;
    --netflix-surface-hover: #242424;
    --netflix-red: #e50914;
    --netflix-red-hover: #f40612;
    --netflix-red-dark: #b81d24;
    
    /* Subtle Titanium & Slate Accents */
    --text-white: #ffffff;
    --text-gray: #e5e5e5;
    --text-muted: #a3a3a3;
    --text-subtle: #737373;
    
    --border-subtle: rgba(255, 255, 255, 0.1);
    --border-highlight: rgba(255, 255, 255, 0.2);
    
    /* Metrics */
    --max-width: 1440px;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-full: 9999px;
    
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 15px;
    scroll-behavior: smooth;
    background-color: var(--netflix-black);
}

body {
    font-family: var(--font-body);
    background-color: var(--netflix-black);
    color: var(--text-white);
    line-height: 1.45;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* TV & Keyboard D-pad Remote Focus States */
:focus-visible {
    outline: 3px solid var(--netflix-red) !important;
    outline-offset: 3px !important;
    transform: scale(1.03);
    z-index: 50;
    transition: transform 0.15s ease, outline 0.15s ease;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 4%;
}

/* ==============================================================================
   NETFLIX TOP NAVIGATION BAR
   ============================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 14px 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.85) 0%, rgba(20, 20, 20, 0.4) 70%, transparent 100%);
    transition: background 0.35s cubic-bezier(0.4, 0, 0.2, 1), padding 0.25s ease;
}

.site-header.scrolled {
    background: rgba(20, 20, 20, 0.96);
    padding: 10px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 32px;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.site-logo {
    height: 32px;
    width: auto;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.8));
}

.brand-title {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 900;
    letter-spacing: 1px;
    color: var(--netflix-red);
    text-transform: uppercase;
}

/* Desktop Header Navigation Links */
.header-nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
    list-style: none;
}

.nav-link-item a {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    transition: color 0.2s ease, opacity 0.2s ease;
    opacity: 0.85;
}

.nav-link-item a:hover,
.nav-link-item.active a {
    color: var(--text-white);
    opacity: 1;
    font-weight: 700;
}

/* Header Right Actions */
.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-search-btn-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}

.header-search-btn-trigger:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.45);
    transform: scale(1.08);
}

.header-search-btn-trigger svg {
    stroke: var(--text-white);
}

/* Animated Full-Coverage Top Header Search Bar */
.full-header-search-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #141414;
    z-index: 2000;
    display: flex;
    align-items: center;
    padding: 0 4%;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-100%);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.22s ease, visibility 0.28s;
}

.full-header-search-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.95);
}

.full-search-inner {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 12px;
    max-width: var(--max-width);
    margin: 0 auto;
}

.full-search-icon-btn {
    background: transparent;
    border: none;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.15s ease;
}

.full-search-icon-btn:hover {
    transform: scale(1.1);
}

.search-overlay-icon {
    flex-shrink: 0;
    stroke: var(--netflix-red);
}

.full-search-form {
    display: flex;
    align-items: center;
    flex: 1;
}

.full-search-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 1.15rem;
    font-family: var(--font-body);
    outline: none;
    padding: 8px 0;
    caret-color: var(--netflix-red);
}

.full-search-close-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.18s ease;
}

.full-search-close-btn:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: #ffffff;
    transform: scale(1.08);
}

/* ==============================================================================
   NETFLIX BILLBOARD HERO (FULL-BLEED CINEMATIC BANNER)
   ============================================================================== */
.billboard-hero {
    position: relative;
    width: 100%;
    height: 72vh;
    min-height: 480px;
    max-height: 750px;
    background-color: var(--netflix-black);
    overflow: hidden;
    margin-bottom: -60px;
    z-index: 10;
}

.billboard-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    filter: brightness(0.85);
    transform: scale(1.02);
    transition: opacity 0.8s ease, transform 1.2s ease;
}

/* Multi-stop cinematic gradient overlays */
.billboard-vignette {
    position: absolute;
    inset: 0;
    background: linear-gradient(77deg, rgba(20, 20, 20, 0.95) 0%, rgba(20, 20, 20, 0.75) 35%, transparent 75%),
                linear-gradient(180deg, rgba(20, 20, 20, 0.4) 0%, transparent 40%, rgba(20, 20, 20, 0.9) 85%, var(--netflix-black) 100%);
    z-index: 2;
}

.billboard-content {
    position: relative;
    z-index: 3;
    padding: 0 4%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 680px;
    padding-bottom: 70px;
}

.billboard-rank-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.billboard-top10-mark {
    background: var(--netflix-red);
    color: #ffffff;
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 0.72rem;
    padding: 2px 7px;
    border-radius: 2px;
    letter-spacing: 0.5px;
}

.billboard-top10-text {
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ffffff;
    text-shadow: 0 2px 6px rgba(0,0,0,0.8);
}

.billboard-title {
    font-family: var(--font-heading);
    font-size: 3.2rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 14px;
    letter-spacing: -0.5px;
    color: #ffffff;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.9);
}

.billboard-meta-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 0.88rem;
    font-weight: 700;
}

.billboard-match {
    color: #46d369;
    font-weight: 800;
}

.billboard-year {
    color: var(--text-gray);
}

.billboard-age-pill {
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 1px 6px;
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: 2px;
    color: #ffffff;
}

.billboard-res-pill {
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 1px 6px;
    font-size: 0.72rem;
    border-radius: 2px;
    font-family: var(--font-mono);
    color: #ffffff;
}

.billboard-meta-sep {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.75rem;
    user-select: none;
}

.billboard-synopsis {
    font-size: 0.96rem;
    line-height: 1.55;
    color: #e5e5e5;
    margin-bottom: 24px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.billboard-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.billboard-dots-container {
    position: absolute;
    bottom: 80px;
    right: 4%;
    z-index: 15;
    display: flex;
    align-items: center;
    gap: 8px;
}

.billboard-dot {
    width: 24px;
    height: 4px;
    background: rgba(255, 255, 255, 0.35);
    border: none;
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.billboard-dot:hover {
    background: rgba(255, 255, 255, 0.75);
}

.billboard-dot.active {
    width: 42px;
    background: #ffffff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.85);
}

.btn-netflix-play {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #ffffff;
    color: #000000;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1rem;
    padding: 11px 26px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: background 0.15s ease, transform 0.15s ease;
    cursor: pointer;
    border: none;
}

.btn-netflix-play:hover {
    background: rgba(255, 255, 255, 0.82);
    transform: scale(1.03);
}

.btn-netflix-info {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(109, 109, 110, 0.7);
    color: #ffffff;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    padding: 11px 24px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: background 0.15s ease, transform 0.15s ease;
    cursor: pointer;
    border: none;
    backdrop-filter: blur(8px);
}

.btn-netflix-info:hover {
    background: rgba(109, 109, 110, 0.45);
    transform: scale(1.03);
}

/* ==============================================================================
   SMART HOME QUICK-FILTER & RAIL JUMP BAR
   ============================================================================== */
.home-quick-filter-bar {
    position: sticky;
    top: 60px;
    z-index: 100;
    background: rgba(20, 20, 20, 0.90);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 12px 4%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.quick-filter-track {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    max-width: var(--max-width);
    margin: 0 auto;
}

.quick-filter-track::-webkit-scrollbar {
    display: none;
}

.quick-filter-pill {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-gray);
    border: 1px solid rgba(255, 255, 255, 0.14);
    padding: 7px 16px;
    border-radius: var(--radius-full);
    font-family: var(--font-heading);
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.quick-filter-pill:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.35);
}

.quick-filter-pill.active {
    background: var(--netflix-red);
    color: #ffffff;
    border-color: var(--netflix-red);
    box-shadow: 0 0 14px rgba(229, 9, 20, 0.5);
}

/* ==============================================================================
   NETFLIX HORIZONTAL CONTENT ROWS / RAILS
   ============================================================================== */
.netflix-rows-container {
    position: relative;
    z-index: 20;
    padding: 0 4% 60px;
    display: flex;
    flex-direction: column;
    gap: 38px;
}

.netflix-row-wrap {
    position: relative;
    width: 100%;
}

.netflix-row-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.netflix-row-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.2px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.netflix-row-explore {
    font-size: 0.82rem;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.15s ease;
}

.netflix-row-explore:hover {
    color: #ffffff;
}

/* Slider Track and Viewport */
.netflix-slider-viewport {
    position: relative;
    width: 100%;
    overflow: visible;
}

.netflix-slider-track {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding: 14px 2px 20px;
}

.netflix-slider-track::-webkit-scrollbar {
    display: none;
}

/* Left & Right Slider Arrow Chevrons */
.slider-arrow-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: calc(100% - 34px);
    background: rgba(20, 20, 20, 0.75);
    border: none;
    color: #ffffff;
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 30;
    opacity: 0;
    transition: opacity 0.2s ease, background 0.2s ease;
    backdrop-filter: blur(4px);
}

.netflix-slider-viewport:hover .slider-arrow-btn {
    opacity: 1;
}

.slider-arrow-btn:hover {
    background: rgba(20, 20, 20, 0.95);
    color: var(--netflix-red);
}

.slider-arrow-btn.prev {
    left: 0;
    border-top-right-radius: var(--radius-sm);
    border-bottom-right-radius: var(--radius-sm);
}

.slider-arrow-btn.next {
    right: 0;
    border-top-left-radius: var(--radius-sm);
    border-bottom-left-radius: var(--radius-sm);
}

/* Standard Netflix Poster Card */
.nf-card {
    flex: 0 0 190px;
    width: 190px;
    position: relative;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: transform 0.28s cubic-bezier(0.33, 1, 0.68, 1), box-shadow 0.28s ease, z-index 0.28s ease;
    text-decoration: none;
    color: inherit;
    outline: none;
    z-index: 1;
}

.nf-card:hover {
    transform: scale(1.09) translateY(-6px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.9);
    z-index: 25;
}

.nf-card-poster-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 2 / 3;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background-color: var(--netflix-surface);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.nf-card-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.nf-card-meta {
    padding: 8px 4px 4px;
}

.nf-card-title {
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.25;
    margin-bottom: 4px;
}

.nf-card-submeta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.74rem;
    color: var(--text-muted);
}

.nf-rating-pill {
    color: #46d369;
    font-weight: 800;
}

.nf-badge-res {
    border: 1px solid rgba(255, 255, 255, 0.28);
    padding: 0 4px;
    border-radius: 2px;
    font-size: 0.68rem;
    font-family: var(--font-mono);
    color: #ffffff;
}

/* Card Hover Overlay Actions */
.nf-card-hover-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.85) 100%);
    opacity: 0;
    display: flex;
    align-items: flex-end;
    padding: 10px;
    transition: opacity 0.22s ease;
    border-radius: var(--radius-sm);
    pointer-events: none;
}

.nf-card:hover .nf-card-hover-overlay,
.nf-card:focus-within .nf-card-hover-overlay,
.nf-top10-item:hover .nf-card-hover-overlay,
.nf-top10-item:focus-within .nf-card-hover-overlay {
    opacity: 1;
    pointer-events: auto;
}

.nf-hover-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.nf-btn-circle-play {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #ffffff;
    color: #000000;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.nf-btn-circle-play:hover {
    transform: scale(1.15);
    background: var(--netflix-red);
    color: #ffffff;
}

.nf-btn-circle-info {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(42, 42, 42, 0.85);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.15s ease, border-color 0.15s ease;
    margin-left: auto;
}

.nf-btn-circle-info:hover {
    transform: scale(1.15);
    border-color: #ffffff;
    background: rgba(60, 60, 60, 0.95);
}

/* ==============================================================================
   NETFLIX ICONIC TOP 10 NUMBERED ROW
   ============================================================================== */
.nf-top10-item {
    display: flex;
    align-items: flex-end;
    flex: 0 0 250px;
    width: 250px;
    position: relative;
    cursor: pointer;
    transition: transform 0.28s cubic-bezier(0.33, 1, 0.68, 1), z-index 0.28s ease;
    text-decoration: none;
    color: inherit;
    z-index: 1;
}

.nf-top10-item:hover {
    transform: scale(1.08) translateY(-6px);
    z-index: 25;
}

.nf-top10-num {
    font-family: var(--font-heading);
    font-size: 9.2rem;
    font-weight: 900;
    line-height: 0.82;
    color: #000000;
    -webkit-text-stroke: 4px #595959;
    letter-spacing: -14px;
    user-select: none;
    margin-right: -24px;
    position: relative;
    z-index: 1;
    filter: drop-shadow(4px 4px 6px rgba(0, 0, 0, 0.9));
}

.nf-top10-poster-wrap {
    position: relative;
    width: 155px;
    aspect-ratio: 2 / 3;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background-color: var(--netflix-surface);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.8);
    z-index: 2;
    flex-shrink: 0;
}

/* ==============================================================================
   CATALOGUE GRID & SEARCH MODE
   ============================================================================== */
.grid-catalog-section {
    padding: 100px 4% 60px;
    min-height: 80vh;
}

.grid-catalog-header {
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 16px;
}

.grid-catalog-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 12px;
}

.grid-catalog-count {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.movie-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    margin-bottom: 36px;
}

/* Pagination in Grid Mode */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin: 30px 0;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.page-btn {
    background: #262626;
    color: #ffffff;
    border: 1px solid transparent;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
}

.page-btn:hover:not(:disabled) {
    background: #333333;
}

.page-btn.active {
    background: var(--netflix-red);
    color: #ffffff;
}

.page-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.page-dots {
    color: var(--text-subtle);
    padding: 0 4px;
}

/* ==============================================================================
   MOBILE BOTTOM NAVIGATION DOCK (PHONES)
   ============================================================================== */
.mobile-bottom-dock {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 9999;
    align-items: center;
    justify-content: space-around;
    padding: 0 8px;
}

.dock-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.70rem;
    font-weight: 600;
    flex: 1;
    padding: 6px 0;
    transition: color 0.15s ease;
}

.dock-item svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    fill: none;
}

.dock-item.active,
.dock-item:hover {
    color: #ffffff;
}

.dock-item.active svg {
    stroke: var(--netflix-red);
}

/* ==============================================================================
   FOOTER (CLEAN STREAMING STYLE)
   ============================================================================== */
.site-footer {
    background-color: var(--netflix-black);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 48px 4% 80px;
    margin-top: auto;
}

.footer-inner {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.footer-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-brand-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--netflix-red);
    letter-spacing: 0.5px;
}

.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px 24px;
}

.footer-link-col a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.82rem;
    display: block;
    margin-bottom: 10px;
    transition: color 0.15s ease;
}

.footer-link-col a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer-legal-text {
    font-size: 0.76rem;
    color: var(--text-subtle);
    line-height: 1.6;
}

/* ==============================================================================
   RESPONSIVE BREAKPOINTS (MOBILE & TV)
   ============================================================================== */
@media (max-width: 1200px) {
    .movie-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 860px) {
    .header-nav-links {
        display: none;
    }

    .site-header {
        padding: 10px 0;
    }

    .mobile-bottom-dock {
        display: flex;
        padding-bottom: env(safe-area-inset-bottom, 0px);
        height: calc(60px + env(safe-area-inset-bottom, 0px));
    }

    /* Billboard Hero in Phone Mode (Fully Clear Poster, No Overlap, No Hotch-Potch) */
    .billboard-hero {
        height: 72vh;
        min-height: 480px;
        max-height: 600px;
        margin-bottom: -15px;
        padding-top: 55px;
    }

    .billboard-backdrop {
        object-fit: cover;
        object-position: center 10%;
        filter: brightness(0.92);
    }

    .billboard-vignette {
        background: linear-gradient(180deg, rgba(20, 20, 20, 0.25) 0%, transparent 25%, rgba(20, 20, 20, 0.7) 65%, #141414 100%);
    }

    .billboard-content {
        justify-content: flex-end;
        padding-bottom: 22px;
        max-width: 100%;
        padding-left: 5%;
        padding-right: 5%;
    }

    .billboard-rank-badge {
        margin-bottom: 6px;
    }

    .billboard-top10-mark {
        font-size: 0.65rem;
        padding: 1px 5px;
    }

    .billboard-top10-text {
        font-size: 0.74rem;
        letter-spacing: 0.5px;
    }

    .billboard-title {
        font-size: 1.75rem;
        line-height: 1.15;
        margin-bottom: 6px;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
    }

    .billboard-meta-row {
        gap: 6px;
        margin-bottom: 12px;
        font-size: 0.78rem;
        flex-wrap: nowrap;
        overflow-x: hidden;
    }

    .billboard-meta-sep {
        color: var(--text-subtle);
        font-size: 0.75rem;
    }

    .billboard-audio-pill {
        display: none !important;
    }

    /* ELIMINATE HOTCH-POTCH: Hide long synopsis on mobile so poster remains crystal clear */
    .billboard-synopsis {
        display: none !important;
    }

    .billboard-actions {
        display: flex;
        align-items: center;
        gap: 10px;
        width: 100%;
    }

    .btn-netflix-play {
        flex: 1.3;
        padding: 9px 14px;
        font-size: 0.85rem;
        gap: 6px;
        justify-content: center;
    }

    .btn-netflix-info {
        flex: 1;
        padding: 9px 12px;
        font-size: 0.85rem;
        gap: 6px;
        justify-content: center;
    }

    /* Position dots neatly on the top right so they never cover buttons */
    .billboard-dots-container {
        bottom: auto;
        top: 65px;
        right: 5%;
        gap: 6px;
    }

    .billboard-dot {
        width: 16px;
        height: 3px;
    }

    .billboard-dot.active {
        width: 28px;
    }

    .home-quick-filter-bar {
        top: 52px;
        padding: 10px 4%;
    }

    .nf-card {
        flex: 0 0 135px;
        width: 135px;
    }

    .nf-top10-item {
        flex: 0 0 200px;
        width: 200px;
    }

    .nf-top10-num {
        font-size: 6.8rem;
        margin-right: -16px;
    }

    .nf-top10-poster-wrap {
        width: 120px;
    }

    .movie-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .footer-links-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .nf-modal-mirrors-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .movie-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .billboard-title {
        font-size: 1.55rem;
    }

    .nf-card {
        flex: 0 0 125px;
        width: 125px;
    }

    .quick-filter-pill {
        padding: 5px 12px;
        font-size: 0.78rem;
    }
}

/* ==============================================================================
   NETFLIX QUICK PREVIEW MODAL
   ============================================================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    animation: fadeInModal 0.22s ease;
}

@keyframes fadeInModal {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomInModal {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
}

.info-modal-card {
    background: #181818;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 10px;
    max-width: 780px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.95);
    position: relative;
    scrollbar-width: thin;
    animation: zoomInModal 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.info-modal-card::-webkit-scrollbar {
    width: 6px;
}
.info-modal-card::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.modal-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    background: rgba(20, 20, 20, 0.85);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 30;
    transition: background 0.15s ease, transform 0.15s ease;
}

.modal-close-btn:hover {
    background: var(--netflix-red);
    transform: scale(1.1);
}

.nf-modal-hero {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.nf-modal-backdrop {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
}

.nf-modal-hero-vignette {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 35%, rgba(24, 24, 24, 0.85) 75%, #181818 100%),
                linear-gradient(77deg, rgba(24, 24, 24, 0.9) 0%, transparent 60%);
}

.nf-modal-hero-content {
    position: absolute;
    bottom: 20px;
    left: 24px;
    right: 24px;
    z-index: 5;
}

.nf-modal-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 900;
    color: #ffffff;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.9);
    line-height: 1.15;
}

.nf-modal-details-body {
    padding: 22px 26px 32px;
}

.nf-modal-meta-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-gray);
}

.nf-modal-synopsis {
    font-size: 0.94rem;
    line-height: 1.6;
    color: #d1d5db;
    margin-bottom: 16px;
}

.nf-modal-genres {
    font-size: 0.84rem;
    color: var(--text-gray);
    margin-bottom: 22px;
}

.nf-modal-mirrors-preview {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 16px 18px;
}

.nf-modal-mirrors-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.nf-mirror-chip {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-sm);
    padding: 10px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.nf-mirror-chip:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.nf-mirror-chip.highlight {
    border-color: rgba(229, 9, 20, 0.6);
    background: rgba(229, 9, 20, 0.12);
}

.nf-mirror-chip.premium {
    border-color: rgba(212, 175, 55, 0.6);
    background: rgba(212, 175, 55, 0.12);
}

.mirror-tag {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.86rem;
    color: #ffffff;
}

.mirror-size {
    font-family: var(--font-mono);
    font-size: 0.70rem;
    color: var(--text-muted);
}

/* ==============================================================================
   TV REMOTE & D-PAD SPATIAL NAVIGATION FOCUS STATES
   ============================================================================== */
body.tv-remote-active :focus-visible,
body.tv-remote-active .nf-card:focus,
body.tv-remote-active .nf-top10-item:focus,
body.tv-remote-active .btn-netflix-play:focus,
body.tv-remote-active .btn-netflix-info:focus,
body.tv-remote-active .quick-filter-pill:focus {
    outline: 3px solid #ffffff !important;
    outline-offset: 4px !important;
    box-shadow: 0 0 35px rgba(229, 9, 20, 0.95), 0 0 10px #ffffff !important;
    transform: scale(1.08) translateY(-4px) !important;
    z-index: 100 !important;
    transition: transform 0.18s ease, outline 0.18s ease, box-shadow 0.18s ease;
}

/* ==============================================================================
   4K & ULTRA-WIDE TV MONITORS
   ============================================================================== */
@media (min-width: 1920px) {
    html {
        font-size: 17px;
    }
    .container {
        max-width: 1800px;
    }
    .billboard-hero {
        height: 75vh;
        max-height: 850px;
    }
    .billboard-title {
        font-size: 4rem;
    }
    .nf-card {
        flex: 0 0 230px;
        width: 230px;
    }
    .nf-top10-item {
        flex: 0 0 290px;
        width: 290px;
    }
    .nf-top10-poster-wrap {
        width: 185px;
    }
    .movie-grid {
        grid-template-columns: repeat(7, 1fr);
    }
}

@media (min-width: 2560px) {
    html {
        font-size: 20px;
    }
    .container {
        max-width: 2300px;
    }
    .billboard-hero {
        height: 80vh;
        max-height: 1050px;
    }
    .nf-card {
        flex: 0 0 280px;
        width: 280px;
    }
    .movie-grid {
        grid-template-columns: repeat(8, 1fr);
    }
}
