﻿/* ==============================================================================
   FILMY NORA - LUXURY STREAMING APP UI (PIXEL-PERFECT MOBILE & DESKTOP)
   ============================================================================== */

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

:root {
    --bg-darkest: #07090e;
    --bg-main: #090c14;
    --bg-card: rgba(16, 22, 38, 0.9);
    --bg-card-hover: rgba(24, 32, 55, 0.98);

    --brand-red: #e50914;
    --brand-red-glow: rgba(229, 9, 20, 0.6);
    --brand-gold: #ffb703;
    --brand-cyan: #00f2fe;

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --text-white: #ffffff;
    --text-muted: #94a3b8;

    --border-glass: rgba(255, 255, 255, 0.08);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-pill: 9999px;

    --ease-spring: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-darkest);
    color: #e2e8f0;
    font-family: var(--font-body);
    font-size: 14px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    padding-bottom: 74px;
}

/* ==============================================================================
   STICKY HEADER & SEARCH DRAWER
   ============================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(7, 9, 14, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
    padding: 10px 16px;
}

.header-inner {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.brand-logo-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.brand-logo-img {
    height: 32px;
    width: auto;
    filter: drop-shadow(0 0 12px var(--brand-red-glow));
}

.brand-logo-text {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: -0.03em;
}

.brand-logo-text span {
    color: var(--brand-red);
    text-shadow: 0 0 10px var(--brand-red-glow);
}

.header-right-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.btn-header-search-toggle:hover {
    background: var(--brand-red);
    border-color: var(--brand-red);
}

.btn-telegram-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #0088cc;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff !important;
    text-decoration: none;
    box-shadow: 0 0 14px rgba(0, 136, 204, 0.5);
    flex-shrink: 0;
}

.btn-telegram-nav svg {
    width: 18px;
    height: 18px;
    fill: #ffffff !important;
}

.search-drawer-bar {
    max-width: 1300px;
    margin: 8px auto 0;
    display: flex;
    gap: 8px;
    align-items: center;
}

.search-drawer-input {
    flex: 1;
    height: 40px;
    background: rgba(16, 22, 38, 0.95);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-pill);
    padding: 0 16px;
    color: #ffffff;
    font-size: 0.88rem;
    outline: none;
}

.search-drawer-input:focus {
    border-color: var(--brand-red);
    box-shadow: 0 0 14px var(--brand-red-glow);
}

.search-drawer-btn {
    background: var(--brand-red);
    color: #fff;
    border: none;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 800;
    padding: 0 16px;
    height: 40px;
    border-radius: var(--radius-pill);
    cursor: pointer;
}

/* ==============================================================================
   CATEGORY GLIDE SLIDER
   ============================================================================== */
.category-glide-bar {
    background: #090c14;
    border-bottom: 1px solid var(--border-glass);
    padding: 8px 16px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    display: flex;
    gap: 8px;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}

.category-glide-bar::-webkit-scrollbar {
    display: none;
}

.cat-glide-chip {
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-pill);
    color: #cbd5e1;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--ease-spring);
}

.cat-glide-chip.active {
    background: var(--brand-red);
    border-color: var(--brand-red);
    color: #ffffff;
    font-weight: 800;
    box-shadow: 0 0 12px var(--brand-red-glow);
}

/* ==============================================================================
   COMPACT SPOTLIGHT HERO CARD
   ============================================================================== */
.stream-container {
    max-width: 1300px;
    margin: 14px auto 0;
    padding: 0 14px;
    width: 100%;
}

.hero-billboard {
    margin-bottom: 20px;
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border-glass);
    background: #0d1220;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

.hero-backdrop-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4) saturate(1.2);
}

.hero-gradient-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, #07090e 0%, rgba(7, 9, 14, 0.6) 50%, rgba(7, 9, 14, 0.3) 100%);
}

.hero-content-wrap {
    position: relative;
    z-index: 10;
    padding: 20px 16px 18px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(229, 9, 20, 0.25);
    border: 1px solid var(--brand-red);
    color: #ff6b76;
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: var(--radius-pill);
    margin-bottom: 6px;
    text-transform: uppercase;
}

.hero-movie-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 900;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 6px;
    letter-spacing: -0.02em;
}

.hero-meta-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: #cbd5e1;
    margin-bottom: 14px;
}

.hero-rating-tag {
    color: var(--brand-gold);
    font-weight: 800;
}

.hero-quality-tag {
    background: rgba(229, 9, 20, 0.2);
    border: 1px solid rgba(229, 9, 20, 0.4);
    color: #ff4d5a;
    font-weight: 800;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
}

.hero-btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
}

.btn-hero-play {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--brand-red);
    color: #ffffff !important;
    font-family: var(--font-heading);
    font-size: 0.86rem;
    font-weight: 800;
    padding: 9px 18px;
    border-radius: var(--radius-pill);
    text-decoration: none;
    box-shadow: 0 4px 14px var(--brand-red-glow);
    flex: 1;
    min-width: 140px;
}

.btn-hero-info {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: rgba(0, 136, 204, 0.2);
    border: 1px solid rgba(56, 189, 248, 0.4);
    color: #38bdf8 !important;
    font-family: var(--font-heading);
    font-size: 0.84rem;
    font-weight: 800;
    padding: 9px 16px;
    border-radius: var(--radius-pill);
    text-decoration: none;
    flex: 1;
    min-width: 120px;
}

/* ==============================================================================
   2-COLUMN MOBILE MOVIE GRID
   ============================================================================== */
.rail-heading-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.rail-title-text {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 800;
    color: #ffffff;
}

.explore-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 28px;
}

@media (min-width: 600px) {
    .explore-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 16px;
    }
    .hero-content-wrap {
        padding: 30px 24px;
    }
    .hero-movie-title {
        font-size: 2rem;
    }
    .hero-btn-group {
        width: auto;
    }
}

.stream-card {
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.6);
    transition: var(--ease-spring);
}

.stream-card:hover {
    transform: translateY(-4px);
    border-color: var(--brand-red);
}

.stream-poster-wrap {
    width: 100%;
    aspect-ratio: 2/3;
    position: relative;
    overflow: hidden;
    background: #0d1222;
}

.stream-poster-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.stream-quality-tag {
    position: absolute;
    top: 6px;
    left: 6px;
    background: rgba(0, 0, 0, 0.85);
    border: 1px solid rgba(255, 183, 3, 0.4);
    color: var(--brand-gold);
    font-family: var(--font-mono);
    font-size: 0.6rem;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 3px;
}

.stream-card-body {
    padding: 8px 6px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stream-card-title {
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

/* ==============================================================================
   PAGINATION
   ============================================================================== */
.pagination-wrapper {
    margin: 20px 0;
    display: flex;
    justify-content: center;
}

.pagination {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    padding: 6px 10px;
    border-radius: var(--radius-pill);
}

.page-btn {
    min-width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
}

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

/* ==============================================================================
   MOBILE FLOATING NAVIGATION DOCK
   ============================================================================== */
.mobile-nav-dock {
    position: fixed;
    bottom: 10px;
    left: 12px;
    right: 12px;
    height: 54px;
    background: rgba(10, 14, 25, 0.95);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-pill);
    z-index: 2000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 6px;
}

.dock-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    color: var(--text-muted);
    font-size: 0.64rem;
    font-weight: 700;
    text-decoration: none;
}

.dock-item.active, .dock-item:hover {
    color: var(--brand-red);
}

.dock-item svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}
/* ==============================================================================
   HARDCORE MAINTENANCE & COMING SOON SHIELD
   ============================================================================== */
.fn-maintenance-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(4, 6, 12, 0.78);
    overflow-y: auto;
}

.fn-maintenance-backdrop-blur {
    position: absolute;
    inset: 0;
    backdrop-filter: blur(28px) saturate(1.4);
    -webkit-backdrop-filter: blur(28px) saturate(1.4);
    z-index: 1;
}

.fn-maintenance-glow-sphere {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: 2;
    pointer-events: none;
    opacity: 0.45;
}

.sphere-1 {
    width: 380px;
    height: 380px;
    background: #e50914;
    top: 10%;
    left: 15%;
    animation: floatGlow 8s ease-in-out infinite alternate;
}

.sphere-2 {
    width: 320px;
    height: 320px;
    background: #00f2fe;
    bottom: 10%;
    right: 15%;
    animation: floatGlow 10s ease-in-out infinite alternate-reverse;
}

@keyframes floatGlow {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, -40px) scale(1.15); }
}

.fn-maintenance-card {
    position: relative;
    z-index: 10;
    max-width: 580px;
    width: 100%;
    background: rgba(12, 16, 28, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 24px;
    padding: 36px 28px;
    text-align: center;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.95), 0 0 40px rgba(229, 9, 20, 0.25);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    animation: maintCardPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes maintCardPop {
    from { opacity: 0; transform: scale(0.92) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.fn-maint-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(229, 9, 20, 0.2);
    border: 1px solid #e50914;
    color: #ff525d;
    font-family: var(--font-heading, 'Outfit', sans-serif);
    font-size: 0.74rem;
    font-weight: 800;
    padding: 4px 14px;
    border-radius: 9999px;
    margin-bottom: 18px;
    letter-spacing: 0.5px;
}

.fn-maint-pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e50914;
    box-shadow: 0 0 10px #e50914;
    animation: pulseDot 1.4s infinite;
}

@keyframes pulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.4); }
}

.fn-maint-logo-wrap {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.fn-maint-logo {
    height: 38px;
    width: auto;
    filter: drop-shadow(0 0 16px rgba(229, 9, 20, 0.7));
}

.fn-maint-brand {
    font-family: var(--font-heading, 'Outfit', sans-serif);
    font-size: 1.5rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.fn-maint-brand span {
    color: #e50914;
}

.fn-maint-headline {
    font-family: var(--font-heading, 'Outfit', sans-serif);
    font-size: 1.45rem;
    font-weight: 900;
    color: #ffffff;
    line-height: 1.25;
    margin-bottom: 14px;
}

.fn-maint-highlight {
    background: linear-gradient(90deg, #ff4d5a 0%, #ffb703 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.fn-maint-desc {
    font-size: 0.88rem;
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 16px;
}

.fn-maint-quote-box {
    background: rgba(255, 255, 255, 0.05);
    border-left: 3px solid #ffb703;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 0.82rem;
    color: #e2e8f0;
    text-align: left;
    margin-bottom: 22px;
    line-height: 1.5;
}

.fn-maint-timer-box {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(6, 9, 18, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 20px;
    border-radius: 14px;
    margin-bottom: 24px;
}

.timer-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.timer-val {
    font-family: var(--font-heading, 'Outfit', sans-serif);
    font-size: 1.5rem;
    font-weight: 900;
    color: #ffffff;
    line-height: 1;
}

.timer-lbl {
    font-size: 0.62rem;
    font-weight: 800;
    color: #94a3b8;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

.timer-sep {
    font-size: 1.3rem;
    font-weight: 900;
    color: #e50914;
    margin-top: -6px;
}

.fn-maint-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.btn-maint-telegram {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #0088cc 0%, #0284c7 100%);
    color: #ffffff !important;
    font-family: var(--font-heading, 'Outfit', sans-serif);
    font-size: 0.92rem;
    font-weight: 800;
    padding: 12px 20px;
    border-radius: 9999px;
    text-decoration: none !important;
    box-shadow: 0 6px 20px rgba(0, 136, 204, 0.5);
    transition: all 0.25s ease;
}

.btn-maint-telegram:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 136, 204, 0.7);
}

.btn-maint-preview {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #cbd5e1;
    font-family: var(--font-heading, 'Outfit', sans-serif);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 9px;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-maint-preview:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
}

.fn-maint-footer {
    font-size: 0.72rem;
    color: #64748b;
    letter-spacing: 0.3px;
}