/* =========================================================
   StreamFliz - Dedicated Landing Page CSS
   ========================================================= */

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

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

body.landing-body {
    background: #000000 !important;
    color: #f5f5f7;
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
}

.landing-wrap {
    width: 100%;
    min-height: 100vh;
    background: #000000;
    position: relative;
}

/* =========================================================
   HERO SCREEN
   ========================================================= */
.landing-hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px 40px;
    overflow: visible !important;
    z-index: 30;
}

.hero-collage-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.hero-collage-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: blur(40px) brightness(0.22);
    transform: scale(1.15);
}

.collage-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(229, 9, 20, 0.12) 0%, rgba(0, 0, 0, 0.85) 60%, #000000 100%);
}

.landing-logo {
    max-height: 48px;
    width: auto;
    object-fit: contain;
    margin-bottom: 24px;
    filter: drop-shadow(0 4px 16px rgba(0,0,0,0.8));
    transition: transform 0.25s ease;
}

.landing-logo:hover {
    transform: scale(1.04);
}

.landing-h1 {
    font-size: clamp(30px, 5.2vw, 56px);
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.5px;
    line-height: 1.18;
    margin-bottom: 12px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.7);
}

.landing-subtag {
    font-size: clamp(13px, 1.8vw, 15.5px);
    color: #9e9ea8;
    max-width: 680px;
    margin: 0 auto 32px;
    line-height: 1.6;
}

/* =========================================================
   SEARCH BAR
   ========================================================= */
.search-wrapper-box {
    max-width: 620px;
    width: 100%;
    margin: 0 auto 16px;
    position: relative;
    z-index: 1000;
}

.search-container-glass {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 9999px;
    padding: 6px 8px 6px 18px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: all 0.25s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}

.search-container-glass:focus-within {
    background: rgba(15, 15, 20, 0.95);
    border-color: #e50914;
    box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.25), 0 0 30px rgba(229, 9, 20, 0.35);
}

.search-icon-left {
    color: rgba(255, 255, 255, 0.45);
    font-size: 15px;
    margin-right: 12px;
    flex-shrink: 0;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.search-icon-left:hover {
    color: #e50914;
}

.search-input-field {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-size: 14px;
    font-family: inherit;
    font-weight: 500;
}

.search-input-field::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.search-btn-filter {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.9);
    padding: 7px 16px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    text-decoration: none !important;
}

.search-btn-filter:hover {
    background: #e50914;
    border-color: #e50914;
    color: #ffffff;
    transform: scale(1.03);
}

/* Suggestions Dropdown - Modern Advanced Cyberpunk Stacking */
.search-result-pop {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: rgba(13, 15, 22, 0.97) !important;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 16px;
    box-shadow: 0 24px 65px rgba(0, 0, 0, 0.96), 0 0 35px rgba(229, 9, 20, 0.25);
    max-height: 420px;
    overflow-y: auto;
    overflow-x: hidden;
    text-align: left;
    scrollbar-width: thin;
    scrollbar-color: rgba(229, 9, 20, 0.5) rgba(255, 255, 255, 0.03);
    z-index: 999999 !important;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: 6px;
}

.search-result-pop::-webkit-scrollbar {
    width: 6px;
}

.search-result-pop::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
}

.search-result-pop::-webkit-scrollbar-thumb {
    background: rgba(229, 9, 20, 0.45);
    border-radius: 8px;
}

.search-result-pop::-webkit-scrollbar-thumb:hover {
    background: #e50914;
}

.search-pop-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px 8px;
    font-size: 11px;
    font-weight: 700;
    color: #e50914;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 4px;
}

.search-result-pop .nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 12px;
    border-radius: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: #ffffff;
    text-decoration: none;
    transition: all 0.18s ease;
    outline: none;
    cursor: pointer;
}

.search-result-pop .nav-item:last-child {
    border-bottom: none;
}

.search-result-pop .nav-item:hover,
.search-result-pop .nav-item.active-item,
.search-result-pop .nav-item:focus {
    background: rgba(229, 9, 20, 0.15);
    border-color: rgba(229, 9, 20, 0.3);
    transform: translateX(3px);
}

.search-result-pop .film-poster {
    width: 44px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #141721;
}

.search-result-pop .film-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.search-result-pop .nav-item:hover .film-poster img,
.search-result-pop .nav-item.active-item .film-poster img {
    transform: scale(1.06);
}

.search-result-pop .srp-detail {
    flex: 1;
    min-width: 0;
}

.search-result-pop .film-name {
    font-size: 13.5px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.15s ease;
}

.search-result-pop .nav-item:hover .film-name,
.search-result-pop .nav-item.active-item .film-name {
    color: #ff3b47;
}

.search-result-pop .film-infor {
    font-size: 11.5px;
    color: #8f8f9e;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.search-result-pop .badge-type {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 4px;
    background: rgba(229, 9, 20, 0.18);
    color: #ff525d;
    font-weight: 700;
    font-size: 10.5px;
    letter-spacing: 0.3px;
    border: 1px solid rgba(229, 9, 20, 0.3);
}

.search-result-pop .badge-rating {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: #ffc107;
    font-weight: 600;
    font-size: 11px;
}

.search-result-pop .view-all-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: rgba(229, 9, 20, 0.12);
    border: 1px solid rgba(229, 9, 20, 0.25);
    color: #ff5555 !important;
    font-weight: 700;
    font-size: 12px;
    padding: 11px;
    border-radius: 10px;
    margin-top: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.search-result-pop .view-all-link:hover,
.search-result-pop .view-all-link.active-item {
    background: #e50914;
    color: #ffffff !important;
    border-color: #e50914;
    transform: translateY(-1px);
}

.loading-relative {
    padding: 24px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-dots {
    display: inline-flex;
    gap: 6px;
    align-items: center;
}

.loading-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e50914;
    animation: dotPulse 0.8s infinite alternate;
}

.loading-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.loading-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes dotPulse {
    from { opacity: 0.3; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1.2); }
}

/* Suggestion line */
.search-suggestions-line {
    font-size: 12px;
    color: #7a7a88;
    margin-bottom: 28px;
    line-height: 1.8;
}

.search-suggestions-line a {
    color: #b5b5c5;
    text-decoration: none;
    margin: 0 3px;
    transition: color 0.2s ease;
}

.search-suggestions-line a:hover {
    color: #e50914;
}

/* CTA Buttons */
.hero-cta-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.btn-watch-now {
    display: inline-flex;
    align-items: center;
    padding: 12px 30px;
    border-radius: 9999px;
    background: linear-gradient(135deg, #e50914 0%, #b80000 100%);
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none !important;
    box-shadow: 0 4px 20px rgba(229, 9, 20, 0.45);
    transition: all 0.25s ease;
}

.btn-watch-now:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(229, 9, 20, 0.7);
    color: #ffffff;
}

.btn-view-schedule {
    display: inline-flex;
    align-items: center;
    padding: 12px 28px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none !important;
    transition: all 0.25s ease;
}

.btn-view-schedule:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    color: #ffffff;
}

/* =========================================================
   CONTENT SECTIONS & 2-COLUMN GRID
   ========================================================= */
.landing-section {
    max-width: 1220px;
    margin: 0 auto;
    padding: 90px 24px;
    position: relative;
    z-index: 2;
}

.two-col-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

@media (max-width: 900px) {
    .two-col-grid {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }
}

.section-eyebrow {
    font-size: 11.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #e50914;
    margin-bottom: 12px;
}

.section-h2 {
    font-size: clamp(24px, 3.4vw, 36px);
    font-weight: 800;
    line-height: 1.28;
    color: #ffffff;
    margin-bottom: 18px;
}

.highlight {
    color: #e50914;
    position: relative;
}

.section-p {
    font-size: 13.5px;
    color: #8c8c9e;
    line-height: 1.75;
    margin-bottom: 16px;
}

/* =========================================================
   SECTION 1: STAGGERED POSTER STACK
   ========================================================= */
.staggered-poster-stack {
    position: relative;
    width: 100%;
    max-width: 440px;
    height: 380px;
    margin: 0 auto;
}

.sps-card {
    position: absolute;
    width: 200px;
    height: 290px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: transform 0.3s ease;
}

.sps-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sps-card-top-right {
    top: 0;
    right: 20px;
    transform: rotate(8deg);
    z-index: 1;
}

.sps-card-bottom-left {
    bottom: 0;
    left: 20px;
    transform: rotate(-10deg);
    z-index: 2;
}

.sps-card-center {
    top: 40px;
    left: 110px;
    transform: rotate(0deg) scale(1.05);
    z-index: 3;
    border-color: rgba(229, 9, 20, 0.5);
    box-shadow: 0 20px 50px rgba(229, 9, 20, 0.3);
}

.staggered-poster-stack:hover .sps-card-top-right {
    transform: rotate(12deg) translate(10px, -10px);
}
.staggered-poster-stack:hover .sps-card-bottom-left {
    transform: rotate(-14deg) translate(-10px, 10px);
}
.staggered-poster-stack:hover .sps-card-center {
    transform: scale(1.1);
}

.sps-dot-1 {
    position: absolute;
    top: -20px;
    left: 40px;
    width: 80px;
    height: 80px;
    background: rgba(229, 9, 20, 0.25);
    filter: blur(35px);
    border-radius: 50%;
}
.sps-dot-2 {
    position: absolute;
    bottom: -20px;
    right: 40px;
    width: 100px;
    height: 100px;
    background: rgba(229, 9, 20, 0.2);
    filter: blur(40px);
    border-radius: 50%;
}

/* =========================================================
   SECTION 2: WHY STREAMFLIZ POSTER SHOWCASE
   ========================================================= */
.why-poster-showcase {
    position: relative;
    width: 100%;
    max-width: 440px;
    height: 380px;
    margin: 0 auto;
}

.why-glow-blob {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 240px;
    height: 240px;
    background: rgba(229, 9, 20, 0.3);
    filter: blur(60px);
    border-radius: 50%;
    z-index: 0;
}

.why-card-center,
.why-card-left,
.why-card-right {
    position: absolute;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.why-card-center img,
.why-card-left img,
.why-card-right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.why-card-center {
    width: 210px;
    height: 300px;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    border-color: rgba(229, 9, 20, 0.6);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9), 0 0 25px rgba(229, 9, 20, 0.3);
}

.why-card-left {
    width: 170px;
    height: 250px;
    top: 60px;
    left: 10px;
    transform: rotate(-8deg);
    opacity: 0.75;
    z-index: 1;
}

.why-card-right {
    width: 170px;
    height: 250px;
    top: 60px;
    right: 10px;
    transform: rotate(8deg);
    opacity: 0.75;
    z-index: 1;
}

.why-floating-stat-badge {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    background: rgba(18, 18, 25, 0.92);
    border: 1px solid rgba(229, 9, 20, 0.45);
    padding: 8px 18px;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(229, 9, 20, 0.3);
    backdrop-filter: blur(12px);
}

.stat-star-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #e50914;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}

.stat-sub {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    color: #e50914;
    letter-spacing: 0.5px;
}

.stat-main {
    font-size: 12.5px;
    font-weight: 700;
    color: #ffffff;
}

/* Why Features Grid */
.why-features-grid {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 24px;
}

.why-feature-row {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.why-feature-icon-box {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(229, 9, 20, 0.14);
    border: 1px solid rgba(229, 9, 20, 0.35);
    color: #e50914;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.why-feature-text h3 {
    font-size: 14.5px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
}

.why-feature-text p {
    font-size: 12.5px;
    color: #8c8c9e;
    line-height: 1.6;
    margin: 0;
}

/* =========================================================
   SECTION 3: INFINITE LIBRARY SLANTED WALL
   ========================================================= */
.library-slanted-box {
    position: relative;
    width: 100%;
    max-width: 520px;
    height: 420px;
    overflow: hidden;
    border-radius: 20px;
    margin: 0 auto;
    background: #08080c;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.lib-gradient-v {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, #000 0%, transparent 20%, transparent 80%, #000 100%);
    z-index: 5;
    pointer-events: none;
}

.lib-gradient-h {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #000 0%, transparent 20%, transparent 80%, #000 100%);
    z-index: 5;
    pointer-events: none;
}

.lib-poster-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    transform: rotate(-12deg) scale(1.25) translateY(-30px);
    width: 130%;
    margin-left: -15%;
}

.lib-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lib-card {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7);
    transition: transform 0.3s ease;
}

.lib-card-featured {
    border-color: #e50914 !important;
    box-shadow: 0 0 20px rgba(229, 9, 20, 0.5) !important;
    transform: scale(1.05);
}

/* =========================================================
   FAQ ACCORDION SECTION
   ========================================================= */
.faq-section {
    max-width: 860px;
    margin: 0 auto;
}

.faq-section h2 {
    font-size: clamp(22px, 3.2vw, 32px);
    font-weight: 800;
    color: #ffffff;
    text-align: center;
    margin-bottom: 36px;
}

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.25s ease;
}

.faq-item.active {
    background: rgba(229, 9, 20, 0.05);
    border-color: rgba(229, 9, 20, 0.35);
}

.faq-question {
    padding: 18px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14.5px;
    font-weight: 600;
    color: #ffffff;
    cursor: pointer;
    user-select: none;
}

.faq-icon {
    font-size: 12px;
    color: #e50914;
    transition: transform 0.25s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 22px 18px;
    font-size: 13px;
    color: #9e9ea8;
    line-height: 1.7;
    display: none;
}

/* =========================================================
   FOOTER
   ========================================================= */
.landing-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding: 40px 20px;
    text-align: center;
    background: #000000;
    font-size: 12.5px;
    color: #727282;
}

.landing-footer a {
    color: #a4a4b8;
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.2s ease;
}

.landing-footer a:hover {
    color: #e50914;
}

/* Animations */
.animate-slide-up {
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.animate-fade-in {
    animation: fadeIn 0.5s ease both;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* =========================================================
   RESPONSIVE MOBILE STYLES (< 768px and < 480px)
   ========================================================= */
@media (max-width: 768px) {
    .landing-hero {
        padding: 60px 16px 30px;
        min-height: auto;
    }

    .landing-h1 {
        font-size: 32px;
        line-height: 1.22;
    }

    .landing-subtag {
        font-size: 13.5px;
        margin-bottom: 24px;
        padding: 0 4px;
    }

    .search-wrapper-box {
        width: 100%;
        max-width: 100%;
    }

    .search-container-glass {
        padding: 5px 6px 5px 14px;
    }

    .search-input-field {
        font-size: 14.5px;
    }

    .search-result-pop {
        max-height: 52vh;
        border-radius: 14px;
    }

    .search-result-pop .film-poster {
        width: 38px;
        height: 52px;
    }

    .search-result-pop .film-name {
        font-size: 13px;
    }

    .hero-cta-buttons {
        gap: 10px;
    }

    .btn-watch-now,
    .btn-view-schedule {
        width: 100%;
        max-width: 280px;
        justify-content: center;
        padding: 11px 20px;
        font-size: 13.5px;
    }

    .landing-section {
        padding: 60px 16px;
    }

    .staggered-poster-stack,
    .why-poster-showcase {
        max-width: 320px;
        height: 320px;
    }

    .sps-card {
        width: 160px;
        height: 230px;
    }

    .why-card-center {
        width: 170px;
        height: 240px;
    }

    .why-card-left,
    .why-card-right {
        width: 140px;
        height: 200px;
    }

    .library-slanted-box {
        max-width: 100%;
        height: 340px;
    }
}

@media (max-width: 480px) {
    .landing-h1 {
        font-size: 26px;
    }

    .search-suggestions-line {
        font-size: 11px;
        line-height: 1.6;
        margin-bottom: 20px;
    }

    .search-btn-filter {
        padding: 6px 12px;
        font-size: 11px;
    }
}
