/* ═══════════════════════════════════════════════════════════
   Filmnab Home — Full Redesign
   Shell · Hero · Categories · Sections · FAQ · Apps · Footer
   ═══════════════════════════════════════════════════════════ */

/* ─── Feed Shell ─────────────────────────────────────────── */

body.fn-app #PageIndex.fn-home-feed-shell {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
    background: #050608;
}

body.fn-app .fn-feed-hero {
    position: relative;
}

body.fn-app .fn-feed-explore {
    border-top: 1px solid rgba(255,255,255,0.05);
}

body.fn-app .fn-feed-reels {
    padding: 1.5rem 0 0.5rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

body.fn-app .fn-feed-section {
    padding: 1.75rem clamp(1rem, 3vw, 1.75rem) 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

body.fn-app .fn-feed-section--faq {
    background: rgba(168,85,247,0.03);
}

body.fn-app .fn-feed-section--apps {
    background: rgba(59,130,246,0.03);
    border-bottom: none;
}

body.fn-app .fn-feed-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 clamp(1rem, 3vw, 1.75rem) 1rem;
    gap: 0.75rem;
}

body.fn-app .fn-feed-reels .fn-feed-section-head {
    padding-bottom: 0.75rem;
}

body.fn-app .fn-feed-section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    font-weight: 800;
    color: #fff;
    margin: 0;
    padding-inline-start: 0.85rem;
    position: relative;
}

body.fn-app .fn-feed-section-title::before {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    top: 10%;
    height: 80%;
    width: 3px;
    border-radius: 2px;
    background: var(--fn-neon-gradient);
    box-shadow: 0 0 8px rgba(168,85,247,0.6);
}

body.fn-app .fn-feed-section-title svg {
    color: var(--fn-neon-purple);
}

body.fn-app .fn-feed-view-all {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--fn-neon-purple);
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s;
}

body.fn-app .fn-feed-view-all:hover {
    color: #c084fc;
}

/* legacy shell fallback */
body.fn-app #PageIndex.fn-home-shell {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
    background: transparent;
}

/* ─── Hero ──────────────────────────────────────────────── */

body.fn-app .fn-home-hero {
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    border-radius: 0 !important;
    overflow: visible !important;
}

body.fn-app .fn-home-hero::before { display: none !important; }

/* Hero height upgrade */
.fn-hero-swiper,
.fn-hero-slide {
    height: clamp(500px, 58vh, 680px) !important;
    max-height: 680px !important;
}

/* Stronger play button in hero */
.fn-hero-play {
    background: var(--fn-neon-gradient) !important;
    border: none !important;
    box-shadow: 0 8px 28px rgba(168,85,247,0.55) !important;
    padding: 0.8rem 2.2rem !important;
    font-size: 1rem !important;
    transition: transform 0.25s, box-shadow 0.25s !important;
}

.fn-hero-play:hover {
    transform: translateY(-3px) scale(1.03) !important;
    box-shadow: 0 14px 40px rgba(168,85,247,0.7) !important;
}

.fn-hero-add {
    width: 48px !important;
    height: 48px !important;
    border-radius: 50% !important;
    background: rgba(255,255,255,0.12) !important;
    border: 1.5px solid rgba(255,255,255,0.5) !important;
    backdrop-filter: blur(12px) !important;
    transition: background 0.2s, transform 0.2s !important;
}

.fn-hero-add:hover {
    background: rgba(255,255,255,0.22) !important;
    transform: scale(1.08) !important;
}

/* Hero pagination */
.fn-hero-pagination .swiper-pagination-bullet {
    width: 28px !important;
    height: 3px !important;
    background: rgba(255,255,255,0.25) !important;
}

.fn-hero-pagination .swiper-pagination-bullet-active {
    width: 52px !important;
    background: var(--fn-neon-purple) !important;
    box-shadow: 0 0 8px rgba(168,85,247,0.8) !important;
}

/* ─── Divider between sections ──────────────────────────── */

.fn-home-divider {
    display: block;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(168,85,247,0.3), transparent);
    margin: 0;
    border: none;
}

/* ─── Category Spotlight section ─────────────────────────── */

body.fn-app .fn-home-section.fn-home-categories {
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    overflow: visible !important;
}

body.fn-app .fn-home-section.fn-home-categories::before { display: none !important; }

.fn-category-spotlight {
    border-radius: 0 !important;
    border: none !important;
    border-top: 1px solid rgba(168,85,247,0.12) !important;
    border-bottom: 1px solid rgba(255,255,255,0.05) !important;
    background:
        linear-gradient(180deg, rgba(8,8,20,0.98) 0%, rgba(5,5,14,0.99) 100%),
        radial-gradient(70% 60% at 50% 0%, rgba(168,85,247,0.14), transparent 70%) !important;
    padding: 1.5rem clamp(1rem, 4vw, 2rem) 2rem !important;
}

.fn-cat-spotlight-mobile-headline {
    font-size: clamp(1.4rem, 5vw, 1.75rem) !important;
    font-weight: 900 !important;
    border-inline-start: 3px solid var(--fn-neon-purple) !important;
}

/* Category cards — richer hover */
.fn-cat-spotlight-card:hover .fn-cat-spotlight-card-inner {
    background: linear-gradient(145deg, #a855f7, #7c3aed, #c084fc) !important;
    box-shadow:
        0 0 0 2px rgba(168,85,247,0.6),
        0 16px 48px rgba(0,0,0,0.5),
        0 0 30px rgba(168,85,247,0.25) !important;
}

/* ─── Content Sections (offer, topwatch) ─────────────────── */

body.fn-app .fn-home-section {
    margin: 0 !important;
    border-radius: 0 !important;
    padding: 2rem clamp(1rem, 4vw, 2rem) 2.5rem !important;
    border: none !important;
    border-bottom: 1px solid rgba(255,255,255,0.04) !important;
    box-shadow: none !important;
    background: transparent !important;
    position: relative;
}

body.fn-app .fn-home-section::before { display: none !important; }

/* Section header bar */
.fn-home-section-heading {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem !important;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

.fn-home-headline {
    position: relative;
    font-size: clamp(1.15rem, 3vw, 1.45rem) !important;
    font-weight: 800 !important;
    color: #fff !important;
    margin: 0 !important;
    padding-inline-start: 0.9rem;
    letter-spacing: -0.01em;
}

.fn-home-headline::before {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    top: 10%;
    height: 80%;
    width: 3px;
    border-radius: 2px;
    background: var(--fn-neon-gradient);
    box-shadow: 0 0 8px rgba(168,85,247,0.6);
}

.fn-home-subtitle {
    color: rgba(255,255,255,0.6) !important;
    font-size: 0.875rem !important;
    margin: 0 !important;
    line-height: 1.6 !important;
}

/* Offer section */
body.fn-app .fn-home-offer {
    background:
        radial-gradient(80% 60% at 90% 50%, rgba(168,85,247,0.07), transparent 70%),
        radial-gradient(60% 60% at 0% 50%, rgba(124,58,237,0.06), transparent 70%) !important;
}

/* TopWatch / Series section */
body.fn-app .fn-home-topwatch {
    background:
        radial-gradient(70% 60% at 10% 50%, rgba(45,212,191,0.05), transparent 65%),
        radial-gradient(70% 60% at 90% 50%, rgba(168,85,247,0.05), transparent 65%) !important;
}

/* Swiper in section — tighten */
body.fn-app .fn-home-offer .fn-home-poster-row,
body.fn-app .fn-home-topwatch .fn-home-poster-row {
    margin-top: 0 !important;
}

/* Poster card hover */
.fn-home-poster-link {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.25s, box-shadow 0.25s;
}

.fn-home-poster-link:hover {
    transform: translateY(-6px) scale(1.02);
}

.fn-home-poster-link:hover .fn-poster-frame {
    box-shadow: 0 14px 40px rgba(0,0,0,0.6), 0 0 0 2px rgba(168,85,247,0.5);
}

.fn-poster-frame {
    border-radius: 12px !important;
    overflow: hidden;
    transition: box-shadow 0.25s;
}

.fn-home-poster-title {
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    color: rgba(255,255,255,0.85) !important;
    margin-top: 0.5rem !important;
    text-align: center !important;
    line-height: 1.35 !important;
    padding: 0 2px;
}

/* ─── FAQ section ─────────────────────────────────────────── */

body.fn-app .fn-home-faq {
    background:
        radial-gradient(60% 60% at 50% 100%, rgba(168,85,247,0.06), transparent 70%) !important;
}

.fn-faq-section {
    width: 100%;
}

.fn-faq-section > .d-flex:first-child {
    align-items: center;
    margin-bottom: 1.5rem !important;
}

.fn-faq-section .line-sm {
    display: inline-block;
    width: 3px;
    height: 1.6em;
    border-radius: 2px;
    background: var(--fn-neon-gradient);
    box-shadow: 0 0 8px rgba(168,85,247,0.55);
    margin-inline-end: 0.65rem;
    flex-shrink: 0;
}

.fn-faq-section .h2 {
    font-size: clamp(1.15rem, 3vw, 1.4rem) !important;
    font-weight: 800 !important;
    color: #fff !important;
    margin: 0 !important;
}

/* Vertical pill tabs — dark redesign */
.fn-faq-section .nav-pills {
    gap: 0.35rem;
    min-width: 180px;
    max-width: 200px;
}

.fn-faq-section .fw-light.fs-5 {
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    color: rgba(255,255,255,0.4) !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
}

.fn-faq-section .nav-pills .nav-link {
    background: rgba(255,255,255,0.04) !important;
    border: 1px solid rgba(255,255,255,0.07) !important;
    color: rgba(255,255,255,0.7) !important;
    border-radius: 10px !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    padding: 0.5rem 0.9rem !important;
    text-align: start !important;
    transition: all 0.2s !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fn-faq-section .nav-pills .nav-link:hover:not(.active) {
    background: rgba(168,85,247,0.1) !important;
    border-color: rgba(168,85,247,0.3) !important;
    color: #fff !important;
}

.fn-faq-section .nav-pills .nav-link.active {
    background: rgba(168,85,247,0.15) !important;
    border-color: rgba(168,85,247,0.55) !important;
    color: var(--fn-neon-purple) !important;
    font-weight: 700 !important;
    box-shadow: 0 0 0 1px rgba(168,85,247,0.2) !important;
}

/* FAQ tab content */
.fn-faq-section .tab-content {
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
}

.fn-faq-section .tab-body {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.fn-faq-section .tab-body h3 {
    font-size: clamp(0.9rem, 2.5vw, 1rem) !important;
    font-weight: 700 !important;
    color: #fff !important;
    margin: 0 0 0.25rem !important;
    padding: 0.85rem 1rem !important;
    background: rgba(168,85,247,0.08) !important;
    border: 1px solid rgba(168,85,247,0.18) !important;
    border-radius: 10px 10px 0 0 !important;
}

.fn-faq-section .tab-body p {
    color: rgba(255,255,255,0.72) !important;
    font-size: 0.9rem !important;
    line-height: 1.75 !important;
    margin: 0 !important;
    padding: 0.85rem 1rem !important;
    background: rgba(255,255,255,0.03) !important;
    border: 1px solid rgba(255,255,255,0.07) !important;
    border-top: none !important;
    border-radius: 0 0 10px 10px !important;
    margin-bottom: 0.35rem;
}

/* ─── Apps section ─────────────────────────────────────────── */

body.fn-app .fn-home-apps {
    background:
        linear-gradient(135deg, rgba(59,130,246,0.06), rgba(168,85,247,0.08)) !important;
    border-bottom: none !important;
}

/* ─── New fn-apps-block (single template, responsive) ──────── */

.fn-apps-block {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.fn-apps-info {
    flex: 1 1 260px;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    min-width: 200px;
}

.fn-apps-heading {
    font-size: clamp(1.2rem, 3.5vw, 1.6rem);
    font-weight: 800;
    color: #fff;
    margin: 0;
    line-height: 1.3;
}

.fn-apps-desc {
    color: rgba(255,255,255,0.68);
    font-size: 0.9rem;
    line-height: 1.75;
    margin: 0;
}

.fn-apps-cta {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    background: var(--fn-neon-gradient);
    border: none;
    color: #fff;
    font-weight: 700;
    padding: 0.6rem 1.6rem;
    border-radius: 999px;
    box-shadow: 0 6px 20px rgba(168,85,247,0.4);
    font-size: 0.9rem;
    text-decoration: none;
    transition: transform 0.22s, box-shadow 0.22s;
    margin-top: 0.25rem;
}

.fn-apps-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(168,85,247,0.55);
    color: #fff;
}

.fn-apps-cards {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    flex: 0 0 auto;
}

.fn-apps-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 16px;
    padding: 1.1rem 1rem 0.75rem;
    min-width: 100px;
    text-decoration: none;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: border-color 0.22s, transform 0.22s, box-shadow 0.22s;
}

.fn-apps-card:hover {
    border-color: rgba(168,85,247,0.45);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.4), 0 0 16px rgba(168,85,247,0.15);
}

.fn-apps-card-icon img {
    display: block;
    width: 64px;
    height: auto;
}

.fn-apps-card-count {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.fn-apps-count-num {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--fn-neon-purple);
}

@media (max-width: 767.98px) {
    .fn-apps-block {
        flex-direction: column;
        gap: 1.5rem;
        align-items: flex-start;
    }

    .fn-apps-cards {
        width: 100%;
        justify-content: space-between;
    }

    .fn-apps-card {
        flex: 1 1 80px;
        min-width: 80px;
        padding: 0.9rem 0.65rem 0.65rem;
    }

    .fn-apps-card-icon img {
        width: 48px;
    }
}

/* ─── Section view-all link ───────────────────────────────── */

.fn-home-view-all {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--fn-neon-purple);
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    margin-inline-start: auto;
    white-space: nowrap;
    transition: color 0.2s;
}

.fn-home-view-all:hover {
    color: #c084fc;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ─── Swiper navigation arrows ───────────────────────────── */

body.fn-app .fn-home-offer .swiper-button-next,
body.fn-app .fn-home-offer .swiper-button-prev,
body.fn-app .fn-home-topwatch .swiper-button-next,
body.fn-app .fn-home-topwatch .swiper-button-prev {
    width: 38px !important;
    height: 38px !important;
    background: rgba(168,85,247,0.15) !important;
    border: 1px solid rgba(168,85,247,0.35) !important;
    border-radius: 50% !important;
    backdrop-filter: blur(8px) !important;
    transition: background 0.2s, box-shadow 0.2s !important;
}

body.fn-app .fn-home-offer .swiper-button-next:hover,
body.fn-app .fn-home-offer .swiper-button-prev:hover,
body.fn-app .fn-home-topwatch .swiper-button-next:hover,
body.fn-app .fn-home-topwatch .swiper-button-prev:hover {
    background: rgba(168,85,247,0.3) !important;
    box-shadow: 0 0 14px rgba(168,85,247,0.4) !important;
}

body.fn-app .fn-home-offer .swiper-button-next::after,
body.fn-app .fn-home-offer .swiper-button-prev::after,
body.fn-app .fn-home-topwatch .swiper-button-next::after,
body.fn-app .fn-home-topwatch .swiper-button-prev::after {
    font-size: 14px !important;
    color: #fff !important;
}

/* ─── Mobile ──────────────────────────────────────────────── */

@media (max-width: 991.98px) {

    .fn-hero-swiper,
    .fn-hero-slide {
        height: clamp(460px, 65svh, 600px) !important;
        max-height: 600px !important;
    }

    body.fn-app .fn-home-section {
        padding: 1.5rem clamp(0.85rem, 4vw, 1.25rem) 2rem !important;
    }

    body.fn-app .fn-home-apps .application-back {
        padding: 1.25rem !important;
    }

    .fn-faq-section .nav-pills {
        min-width: 140px;
        max-width: 150px;
    }

    .fn-faq-section .nav-pills .nav-link {
        font-size: 0.8rem !important;
        padding: 0.45rem 0.7rem !important;
    }
}

@media (max-width: 767.98px) {

    .fn-faq-section > .d-flex.align-items-start {
        flex-direction: column !important;
        gap: 1rem;
    }

    .fn-faq-section .nav-pills {
        flex-direction: row !important;
        min-width: 0;
        max-width: 100%;
        width: 100%;
        overflow-x: auto;
        scrollbar-width: none;
        padding-bottom: 0.25rem;
    }

    .fn-faq-section .nav-pills::-webkit-scrollbar { display: none; }

    .fn-faq-section .nav-pills .nav-link {
        flex-shrink: 0 !important;
        border-radius: 999px !important;
        white-space: nowrap;
    }

    .fn-faq-section .fw-light.fs-5 { display: none !important; }

    body.fn-app .fn-home-apps .application-back.desktop {
        display: none !important;
    }

    body.fn-app .fn-home-apps .application-back.mobile-block {
        display: flex !important;
        flex-direction: column;
    }

    body.fn-app .fn-home-apps .app-part-back {
        flex-direction: row !important;
        align-items: center;
        padding: 0.75rem 1rem !important;
        gap: 0.5rem;
    }
}

@media (max-width: 575.98px) {

    .fn-hero-play {
        padding: 0.7rem 1.5rem !important;
        font-size: 0.9rem !important;
    }

    body.fn-app .fn-home-section {
        padding: 1.25rem 0.85rem 1.75rem !important;
    }

    .fn-home-section-heading {
        margin-bottom: 0.9rem !important;
    }

    .fn-home-headline {
        font-size: 1.05rem !important;
    }
}
