/* Featured Collection — Infinite Slider */
.fc-section { position: relative; }

.fc-bg-glow {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 40% at 20% 50%, rgba(255,0,51,.04) 0%, transparent 70%),
        radial-gradient(ellipse 60% 40% at 80% 50%, rgba(255,0,51,.03) 0%, transparent 70%);
    pointer-events: none;
}

.fc-scanline-mask {
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0,0,0,.08) 2px,
        rgba(0,0,0,.08) 4px
    );
    pointer-events: none;
    z-index: 1;
}

.fc-track-wrapper {
    position: relative;
    overflow-x: clip;
    overflow-y: hidden;
    width: 100%;
    contain: layout style;
}

/* RTL site — keep marquee math LTR so the -50% loop has no visible jump */
.fc-track-wrapper:not(.fc-track-wrapper--static) {
    direction: ltr;
}

.fc-track-wrapper.is-paused .fc-track {
    -webkit-animation-play-state: paused !important;
    animation-play-state: paused !important;
}

.fc-edge-fade {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 120px;
    z-index: 10;
    pointer-events: none;
}
.fc-edge-fade--left {
    left: 0;
    background: linear-gradient(to right, #030303 0%, transparent 100%);
}
.fc-edge-fade--right {
    right: 0;
    background: linear-gradient(to left, #030303 0%, transparent 100%);
}

.fc-track {
    display: flex;
    flex-flow: row nowrap;
    gap: 0;
    width: max-content;
    direction: ltr;
    will-change: transform;
    animation: fc-scroll var(--fc-duration, 40s) linear infinite;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
}

.fc-marquee__group {
    display: flex;
    flex-flow: row nowrap;
    flex-shrink: 0;
    gap: 24px;
    padding-inline: 24px;
    align-items: stretch;
}

@keyframes fc-scroll {
    0%   { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}

/* 1 item — centered, no motion */
.fc-track-wrapper--static {
    overflow: visible;
}

.fc-track-wrapper--static .fc-edge-fade {
    display: none;
}

.fc-track--static {
    animation: none;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
    padding: 0 24px;
}

.fc-track--static .fc-marquee__group {
    display: contents;
    padding: 0;
    gap: 0;
}

.fc-card--duo {
    width: min(480px, calc((100vw - 72px) / 2));
    min-width: min(480px, calc((100vw - 72px) / 2));
    max-width: 480px;
}

.fc-card {
    position: relative;
    flex-shrink: 0;
    width: calc((100vw - 5 * 24px) / 4);
    min-width: 280px;
    max-width: 420px;
    background: #050505;
    border: 1px solid #1a1a1a;
    overflow: hidden;
    cursor: pointer;
    transition: border-color .35s ease, box-shadow .35s ease;
}

.fc-card:hover {
    border-color: rgba(255,0,51,.45);
    box-shadow: 0 0 30px rgba(255,0,51,.12), 0 0 60px rgba(255,0,51,.06);
}

.fc-card__img-wrap {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    overflow: hidden;
    background: #0a0a0a;
}

.fc-card__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s cubic-bezier(.25,.46,.45,.94), filter .6s ease;
    filter: brightness(.85) saturate(.9);
}
.fc-card:hover .fc-card__img {
    transform: scale(1.06);
    filter: brightness(.95) saturate(1.05);
}

.fc-card__img-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0a0a0a;
}

.fc-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 30%, rgba(3,3,3,.7) 100%);
    transition: opacity .4s ease;
    z-index: 2;
}
.fc-card:hover .fc-card__overlay {
    background: linear-gradient(to bottom, rgba(255,0,51,.06) 0%, rgba(3,3,3,.8) 100%);
}

.fc-card__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 4;
    font-family: var(--font-body, 'Cairo', sans-serif);
    font-size: 10px;
    letter-spacing: .15em;
    padding: 3px 8px;
    background: rgba(3,3,3,.8);
    border: 1px solid rgba(255,0,51,.55);
    color: #ff0033;
    backdrop-filter: blur(4px);
}

.fc-card__corner-glow {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle at bottom right, rgba(255,0,51,.25) 0%, transparent 70%);
    z-index: 3;
    opacity: 0;
    transition: opacity .4s ease;
}
.fc-card:hover .fc-card__corner-glow { opacity: 1; }

.fc-card__body {
    position: relative;
    z-index: 5;
    padding: 20px;
    background: #050505;
    border-top: 1px solid #111;
}

.fc-card__title {
    font-family: var(--font-body, 'Cairo', sans-serif);
    font-size: 15px;
    font-weight: 700;
    color: #e5e5e5;
    line-height: 1.3;
    margin-bottom: 6px;
    transition: color .3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.fc-card:hover .fc-card__title { color: #ff0033; }

.fc-card__desc {
    font-size: 12px;
    color: #737373;
    line-height: 1.55;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.fc-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-body, 'Cairo', sans-serif);
    font-size: 10px;
    letter-spacing: .2em;
    color: #ff0033;
    text-decoration: none;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity .3s ease, transform .3s ease, gap .3s ease;
}
.fc-card:hover .fc-card__cta {
    opacity: 1;
    transform: translateY(0);
}
.fc-card__cta-arrow { transition: transform .3s ease; }
.fc-card:hover .fc-card__cta-arrow { transform: translateX(4px); }

.fc-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255,0,51,.4) 30%, rgba(255,255,255,.1) 50%, rgba(255,0,51,.4) 70%, transparent);
    opacity: 0;
    z-index: 10;
    transition: opacity .4s ease;
}
.fc-card:hover::before { opacity: 1; }

@media (max-width: 1024px) {
    .fc-card { width: calc((100vw - 3 * 24px) / 2); }
    .fc-edge-fade { width: 60px; }
}

@media (max-width: 767px) {
    /*
     * Mobile auto-motion uses CSS transform animation (reliable on iOS).
     * Programmatic scrollLeft is blocked without a user gesture on Safari.
     */
    .fc-track-wrapper:not(.fc-track-wrapper--static) {
        overflow: hidden;
        -webkit-overflow-scrolling: touch;
        contain: none;
    }

    .fc-track-wrapper:not(.fc-track-wrapper--static) .fc-track:not(.fc-track--static) {
        -webkit-animation-play-state: running;
        animation-play-state: running;
    }

    .fc-marquee__group {
        gap: 16px;
        padding-inline: 16px;
    }

    .fc-track-wrapper:not(.fc-track-wrapper--static) .fc-edge-fade {
        width: 40px;
    }

    .fc-track-wrapper:not(.fc-track-wrapper--static).is-paused .fc-track {
        -webkit-animation-play-state: paused !important;
        animation-play-state: paused !important;
    }
}

@media (max-width: 640px) {
    .fc-card { width: min(320px, calc(100vw - 56px)); min-width: min(320px, calc(100vw - 56px)); max-width: none; }
    .fc-card--duo { width: min(320px, calc(100vw - 56px)); min-width: min(320px, calc(100vw - 56px)); max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
    .fc-track { animation: none; }
}
