body.fn-app .fn-home-section.fn-home-categories {
    overflow: visible;
}

.fn-category-spotlight {
    position: relative;
    z-index: 5;
    padding: 0.85rem clamp(0.75rem, 2.5vw, 1.25rem) 1.25rem;
    max-width: 100%;
    overflow: visible;
    background:
        linear-gradient(140deg, rgba(26, 32, 68, 0.5), rgba(13, 17, 39, 0.8)),
        radial-gradient(60% 80% at 18% 0%, rgba(168, 85, 247, 0.18), transparent 52%),
        radial-gradient(60% 80% at 86% 12%, rgba(45, 212, 191, 0.14), transparent 52%);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

body.fn-app.has-hero-header .fn-category-spotlight {
    padding-top: 1.25rem;
}

.fn-cat-spotlight-section-label {
    margin-bottom: 0.65rem !important;
}

.fn-section-desc {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.95rem;
    line-height: 1.65;
    max-width: 52rem;
}

.fn-cat-spotlight-heading {
    display: flex;
    align-items: center;
    margin-bottom: 0.65rem;
    padding: 0 0.25rem;
}

.fn-cat-spotlight-title {
    font-size: 1.25rem;
    color: #fff;
    margin: 0;
}

.fn-cat-spotlight-tabs {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0.4rem 0.25rem;
    margin: 0;
    width: 100%;
    min-width: 0;
}

.fn-cat-spotlight-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
    overflow: visible;
    position: relative;
    z-index: 25;
}

.fn-cat-spotlight-tabs--single {
    padding: 0.4rem 0.55rem;
    margin: 0;
}

.fn-cat-spotlight-single {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 1rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    font-weight: 600;
}

.fn-cat-spotlight-tabs::-webkit-scrollbar {
    display: none;
}

.fn-cat-spotlight-tab {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.75);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 1.15rem;
    border-radius: 999px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.28s ease;
    white-space: nowrap;
    appearance: none;
    -webkit-appearance: none;
}

.fn-cat-spotlight-tab:hover:not(.is-active) {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(168, 85, 247, 0.35);
    box-shadow: var(--fn-neon-purple-glow-subtle);
}

.fn-cat-spotlight-tab.is-active {
    color: #fff !important;
    background: transparent !important;
    background-image: none !important;
    border: 1px solid var(--fn-neon-purple) !important;
    box-shadow: var(--fn-neon-purple-glow-btn) !important;
}

.fn-cat-spotlight-actions {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem 0.8rem;
}

.fn-cat-spotlight-view-all {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(168, 85, 247, 0.35);
    background: transparent;
    background-image: none;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    box-shadow: var(--fn-neon-purple-glow-btn);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.fn-cat-spotlight-view-all:hover {
    transform: translateY(-1px);
    box-shadow: var(--fn-neon-purple-glow-btn-strong);
}

.fn-cat-spotlight-hint {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.68);
}

.fn-cat-spotlight-showcase {
    --fn-cat-spot-gap: clamp(0.75rem, 2.5vw, 1.25rem);
    --fn-cat-spot-banner-h: clamp(10rem, calc((100dvh - 13rem) / 2 - var(--fn-cat-spot-gap)), 18rem);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    gap: var(--fn-cat-spot-gap);
    padding-inline: var(--fn-cat-spot-gap);
    padding-block: 0.25rem;
    box-sizing: border-box;
    transition: opacity 0.3s ease, transform 0.34s cubic-bezier(0.4, 0, 0.2, 1);
}

.fn-cat-spotlight-showcase.is-switching-out {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
    pointer-events: none;
}

.fn-cat-spotlight-showcase.is-switching-in {
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
}

.fn-cat-spotlight-card {
    width: 100%;
    min-width: 0;
    max-width: none;
    display: block;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    transform: scale(1);
    filter: none;
    opacity: 1;
    outline: none;
}

.fn-cat-spotlight-card:focus-visible {
    box-shadow: 0 0 0 2px rgba(168, 85, 247, 0.55);
    border-radius: 12px;
}

.fn-cat-spotlight-card:hover {
    transform: scale(1.02);
}

.fn-cat-spotlight-showcase.is-tab-switch .fn-cat-spotlight-card {
    animation: fn-cat-spot-card-in 0.42s cubic-bezier(0.34, 1.1, 0.64, 1) both;
}

.fn-cat-spotlight-showcase.is-tab-switch .fn-cat-spotlight-card:nth-child(2) {
    animation-delay: 0.06s;
}

.fn-cat-spotlight-showcase.is-tab-switch .fn-cat-spotlight-card:nth-child(3) {
    animation-delay: 0.12s;
}

.fn-cat-spotlight-showcase.is-tab-switch .fn-cat-spotlight-card:nth-child(4) {
    animation-delay: 0.18s;
}

.fn-cat-spotlight-showcase.is-tab-switch .fn-cat-spotlight-card:nth-child(5) {
    animation-delay: 0.24s;
}

.fn-cat-spotlight-showcase.is-tab-switch .fn-cat-spotlight-card:nth-child(6) {
    animation-delay: 0.30s;
}

@keyframes fn-cat-spot-card-in {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(12px);
    }
}

.fn-cat-spotlight-card-inner {
    position: relative;
    width: 100%;
    height: var(--fn-cat-spot-banner-h);
    border-radius: 12px;
    padding: 2px;
    box-sizing: border-box;
    background:
        linear-gradient(165deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 42%),
        #0c0c0c;
    transition: background 0.25s ease, box-shadow 0.25s ease;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.28);
}

.fn-cat-spotlight-card:hover .fn-cat-spotlight-card-inner {
    background: linear-gradient(135deg, #a855f7, #9333ea, #c084fc, #7c3aed);
    box-shadow:
        var(--fn-neon-purple-glow, 0 0 12px rgba(168, 85, 247, 0.55), 0 0 24px rgba(168, 85, 247, 0.25)),
        0 8px 28px rgba(0, 0, 0, 0.35);
}

.fn-cat-spotlight-banner-wrap {
    border-radius: 14px;
    overflow: hidden;
    background: var(--fn-bg-elevated, #0a0a0a);
}

.fn-cat-spotlight-card-inner > .fn-cat-spotlight-banner,
.fn-cat-spotlight-banner {
    position: absolute;
    inset: 2px;
    display: block;
    width: calc(100% - 4px);
    height: calc(100% - 4px);
    object-fit: cover;
    object-position: center top;
    border-radius: 10px;
}

.fn-cat-spotlight-card-title {
    position: absolute;
    left: 0.65rem;
    right: 0.65rem;
    bottom: 2.35rem;
    z-index: 2;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.35;
    text-align: center;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.85);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    overflow: hidden;
    pointer-events: none;
}

.fn-cat-spotlight-stats {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0.4rem;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 0 0.5rem;
    pointer-events: none;
}

.fn-cat-spotlight-stat {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: #fff;
    font-size: 0.82rem;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.85);
}

.fn-cat-spotlight-stat svg {
    flex-shrink: 0;
    opacity: 0.95;
}

/* گرادیان تیره پایین بنر */
.fn-cat-spotlight-card-inner::after {
    content: "";
    position: absolute;
    inset: 2px;
    border-radius: 10px;
    z-index: 1;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.82) 0%,
        rgba(0, 0, 0, 0.55) 18%,
        rgba(0, 0, 0, 0.28) 38%,
        rgba(0, 0, 0, 0.08) 58%,
        transparent 72%
    );
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    .fn-cat-spotlight-showcase,
    .fn-cat-spotlight-card {
        animation: none !important;
        transition: none !important;
    }
}

@media (max-width: 767px) {
    .fn-category-spotlight {
        padding-top: 0.65rem;
        padding-bottom: 1rem;
    }

    .fn-cat-spotlight-showcase {
        --fn-cat-spot-gap: clamp(0.5rem, 2vw, 0.85rem);
        --fn-cat-spot-banner-h: clamp(9rem, calc((100dvh - 11rem) / 2 - var(--fn-cat-spot-gap)), 16rem);
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .fn-cat-spotlight-card-title {
        font-size: 0.72rem;
        bottom: 2rem;
    }

    .fn-cat-spotlight-stat {
        font-size: 0.7rem;
        gap: 0.2rem;
    }

    .fn-cat-spotlight-stat svg {
        width: 14px;
        height: 14px;
    }

    .fn-cat-spotlight-cinema-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* ── Tab supplements (reels + cinema) ── */

.fn-cat-spotlight-supplement {
    margin-top: 0.85rem;
    padding-top: 0.15rem;
}

.fn-cat-spotlight-supplement[hidden] {
    display: none !important;
}

.fn-cat-spotlight-reels {
    padding: 0;
    max-width: 100%;
    overflow: hidden;
}

.fn-cat-spotlight-reels .fn-reels-swiper {
    padding-bottom: 0.35rem;
}

.fn-cat-spotlight-cinema {
    padding: 0.15rem var(--fn-cat-spot-gap, 0.75rem) 0;
}

.fn-cat-spotlight-cinema-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: clamp(0.55rem, 1.8vw, 0.85rem);
}

.fn-cat-spotlight-cinema-item {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    min-width: 0;
    text-decoration: none;
    color: inherit;
    transition: transform 0.22s ease;
}

.fn-cat-spotlight-cinema-item:hover {
    transform: translateY(-2px);
}

.fn-cat-spotlight-cinema-title {
    color: var(--fn-text-primary, #fff);
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.fn-cat-spotlight-cinema-meta {
    font-size: 0.68rem;
    line-height: 1.3;
}

.fn-cat-spotlight-cinema-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    margin-top: 0.85rem;
    padding: 0.75rem 0.85rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.fn-cat-spotlight-cinema-more {
    flex-shrink: 0;
    text-decoration: none;
    white-space: nowrap;
}

@media (max-width: 991.98px) {
    .fn-cat-spotlight-cinema-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .fn-cat-spotlight-cinema-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .fn-cat-spotlight-cinema-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .fn-cat-spotlight-cinema-more {
        text-align: center;
    }
}
