/* ═══════════════════════════════════════════════
   FanCentro Feed – Stylesheet v4.1
   ═══════════════════════════════════════════════ */

/* ── Tabs ── */
.fc-tabs {
    display: flex; gap: 4px;
    margin-bottom: 16px;
    background: #F24E7F;
    border-radius: 28px;
    padding: 4px;
    width: fit-content;
}
.fc-tab {
    background: none; border: none;
    color: rgba(255,255,255,.75);
    font-size: 14px; font-weight: 600;
    padding: 8px 22px;
    border-radius: 24px;
    cursor: pointer;
    outline: none;
    transition: background .2s, color .2s;
}
.fc-tab:hover:not(.fc-tab--active) { background: rgba(255,255,255,.2); color: #fff; }
.fc-tab--active,
.fc-tab--active:hover,
.fc-tab--active:focus,
.fc-tab--active:active {
    background: #fff !important;
    color: #F24E7F !important;
}
.fc-tab:focus { outline: none; }
.fc-tab:active { background: rgba(255,255,255,.3); }

/* ── Grid ── */
.fc-feed-wrap { max-width: 1140px; margin: 0 auto; width: 100%; }
.fc-feed-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}
@media (max-width: 767px) {
    .fc-feed-grid { grid-template-columns: repeat(2, 1fr); gap: 4px; }
}
.fc-tab-panel--hidden { display: none !important; }
.fc-feed-item {
    aspect-ratio: 4/5;
    overflow: hidden;
    cursor: pointer;
    background: #111;
    position: relative;
    border-radius: 6px;
    content-visibility: auto;
    contain-intrinsic-size: auto 266px;
}
.fc-grid-dots {
    position: absolute; bottom: 8px; left: 50%;
    transform: translateX(-50%);
    display: flex; gap: 4px; z-index: 2;
    pointer-events: none;
}
.fc-grid-dot {
    width: 5px; height: 5px; border-radius: 50%;
    background: rgba(255,255,255,.45);
}
.fc-grid-dot--active { background: #fff; }
.fc-feed-item img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
    transition: transform .25s ease;
}
.fc-feed-item:hover img { transform: scale(1.04); }
.fc-feed-empty { text-align: center; padding: 20px; color: #888; }

/* ── Meer laden ── */
.fc-feed-loadmore {
    display: flex; justify-content: center;
    margin-top: 20px;
}
.fc-load-more-btn {
    background: #F57199; color: #fff;
    border: none;
    border-radius: 24px;
    font-size: 14px; font-weight: 600;
    padding: 10px 32px;
    cursor: pointer;
    transition: background .2s;
}
.fc-load-more-btn:hover { background: #F24E7F; }
.fc-loadmore-count { display: none; }

/* ── Overlay ── */
.fc-scroller-overlay {
    position: fixed; inset: 0; z-index: 99999;
    background: rgba(0,0,0,.5);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    display: flex; align-items: center; justify-content: center;
    outline: none;
}
.fc-scroller-overlay[hidden] { display: none !important; }
.fc-scroller-inner { display: flex; align-items: stretch; gap: 8px; }

/* ── Controls ── */
.fc-scroller-close {
    background: none; border: none; color: #fff;
    font-size: 28px; line-height: 1;
    width: 28px; height: 28px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; padding: 0;
    outline: none; box-shadow: none;
    -webkit-tap-highlight-color: transparent;
}
.fc-scroller-close:hover,
.fc-scroller-close:focus { background: rgba(255,255,255,.08); border-radius: 50%; outline: none; box-shadow: none; }
.fc-scroller-controls {
    display: flex; flex-direction: column;
    justify-content: space-between; align-self: stretch;
    padding: 6px 0; flex-shrink: 0;
}
.fc-scroller-arrows { display: flex; flex-direction: column; gap: 6px; }
.fc-scroller-arrow {
    background: none; border: none; color: #fff; cursor: pointer;
    padding: 0; width: 28px; height: 28px;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
    outline: none; box-shadow: none;
    -webkit-tap-highlight-color: transparent;
}
.fc-scroller-arrow:hover,
.fc-scroller-arrow:focus { background: rgba(255,255,255,.08); border-radius: 50%; outline: none; box-shadow: none; }

/* ── Container & track ── */
.fc-scroller-container {
    height: clamp(500px, 85vh, 960px);
    aspect-ratio: 390/680;
    max-width: 90vw;
    background: #000; overflow: hidden; position: relative;
    flex-shrink: 0; border-radius: 14px;
    box-shadow: 0 24px 64px rgba(0,0,0,.6);
}
.fc-scroller-track {
    width: 100%; height: 100%;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.fc-scroller-track::-webkit-scrollbar { display: none; }

/* ── Slides ── */
.fc-slide {
    height: 100%;
    scroll-snap-align: start; scroll-snap-stop: always;
    position: relative; background: #000; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
}
.fc-slide-img-wrap { position: absolute; inset: 0; }
.fc-slide-img-wrap img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: contain;
    display: block; user-select: none; -webkit-user-drag: none;
}
.fc-slide-overlay {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 70px 18px 14px;
    background: linear-gradient(to top, rgba(0,0,0,.9) 0%, rgba(0,0,0,.55) 55%, transparent 100%);
    pointer-events: none;
}
@supports (padding: env(safe-area-inset-bottom)) {
    .fc-slide-overlay { padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
}
.fc-slide-profile {
    display: flex; align-items: center; gap: 11px;
    text-decoration: none; pointer-events: all;
    margin-bottom: 10px; cursor: pointer;
    min-height: 0; width: 100%; flex-wrap: nowrap;
}
.fc-slide-avatar {
    width: 44px !important; height: 44px !important; min-width: 44px; min-height: 44px;
    border-radius: 50% !important; clip-path: circle(50%) !important;
    object-fit: cover; border: 2px solid rgba(255,255,255,.55); flex-shrink: 0;
    overflow: hidden; display: block; aspect-ratio: 1/1;
}
.fc-slide-avatar-placeholder {
    width: 44px; height: 44px; border-radius: 50%;
    background: rgba(255,255,255,.2); flex-shrink: 0;
}
.fc-slide-meta {
    display: flex; flex-direction: column; gap: 1px;
    align-self: center; justify-content: center;
    flex-shrink: 1; min-height: 0; overflow: hidden;
}
.fc-slide-creator { font-size: 16px; font-weight: 700; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.fc-slide-time { font-size: 12px; color: rgba(255,255,255,.72); text-shadow: 0 1px 3px rgba(0,0,0,.5); }
.fc-slide-title {
    font-size: 14px; line-height: 1.45; color: rgba(255,255,255,.92);
    text-shadow: 0 1px 4px rgba(0,0,0,.6); margin: 0;
    display: -webkit-box; -webkit-line-clamp: 3;
    -webkit-box-orient: vertical; overflow: hidden; pointer-events: none;
}

/* ── Carousel arrows (desktop) ── */
.fc-carousel-arrow {
    position: absolute; top: 50%; z-index: 10;
    transform: translateY(-50%);
    background: none; border: none; color: #fff;
    width: 28px; height: 28px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; padding: 0;
    outline: none; box-shadow: none;
    -webkit-tap-highlight-color: transparent;
}
.fc-carousel-arrow:hover  { background: rgba(255,255,255,.08); border-radius: 50%; outline: none; box-shadow: none; }
.fc-carousel-arrow:focus  { background: none; outline: none; box-shadow: none; }
.fc-carousel-prev { left: 10px; }
.fc-carousel-next { right: 10px; }
@media (max-width: 767px) {
    .fc-carousel-arrow { display: none; }
}

/* ── Carousel (modellen) ── */
.fc-carousel { position: absolute; inset: 0; }
.fc-carousel-item {
    position: absolute; inset: 0;
    opacity: 0;
    transition: opacity .3s ease;
}
.fc-carousel-item--active { opacity: 1; }
.fc-carousel-item img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: contain;
    display: block; user-select: none; -webkit-user-drag: none;
}
.fc-carousel-dots {
    position: absolute; bottom: 120px; left: 50%;
    transform: translateX(-50%);
    display: flex; gap: 7px; z-index: 10;
}
.fc-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: rgba(255,255,255,.4);
    cursor: pointer;
    transition: background .2s, transform .2s;
}
.fc-dot--active { background: #fff; transform: scale(1.25); }

/* ── Swipe hint ── */
.fc-swipe-hint {
    position: absolute; inset: 0; z-index: 20;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 14px; pointer-events: none;
    background: rgba(0,0,0,.35);
    animation: fc-hint-anim 2.5s ease forwards;
}
.fc-swipe-hint[hidden] { display: none !important; }
.fc-swipe-hint svg { filter: drop-shadow(0 2px 6px rgba(0,0,0,.5)); }
.fc-swipe-hint span {
    color: #fff; font-size: 15px; font-weight: 600;
    text-shadow: 0 1px 6px rgba(0,0,0,.8); letter-spacing: .3px;
}
@keyframes fc-hint-anim {
    0%   { opacity: 0; }
    15%  { opacity: 1; }
    70%  { opacity: 1; }
    100% { opacity: 0; }
}

/* ── Bekijken knop ── */
.fc-slide-btn {
    margin-left: auto; flex-shrink: 0;
    background: rgba(255,255,255,.18);
    border: 1px solid rgba(255,255,255,.35);
    color: #fff; font-size: 12px; font-weight: 600;
    padding: 5px 12px; border-radius: 20px;
    white-space: nowrap;
    backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}

/* ── Lightbox ── */
#fc-lightbox {
    position: fixed; inset: 0; z-index: 199999;
    background: rgba(0,0,0,.96);
    display: flex; align-items: center; justify-content: center;
    cursor: zoom-out;
}
#fc-lightbox[hidden] { display: none !important; }
#fc-lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; user-select: none; }

/* ── Mobiel ── */
@media (max-width: 767px) {
    .fc-scroller-inner { gap: 0; width: 100%; height: 100vh; height: 100dvh; position: relative; }
    .fc-scroller-container { width: 100vw; max-width: 100vw; height: 100vh; height: 100dvh; border-radius: 0; box-shadow: none; }
    .fc-slide { height: 100vh; height: 100dvh; }
    .fc-scroller-controls { position: absolute; top: 14px; right: 14px; padding: 0; height: auto; justify-content: flex-start; z-index: 1; }
    .fc-scroller-arrows { display: none; }
    .fc-scroller-close { text-shadow: 0 1px 6px rgba(0,0,0,.8); font-size: 28px; }
    .fc-slide-overlay { padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
    .fc-carousel-dots { bottom: 160px; }
}

/* ── CookieYes knop verbergen als feed open is ── */
html.fc-feed-open .cky-btn-revisit-wrapper,
html.fc-feed-open #cky-btn-revisit,
html.fc-feed-open .cky-btn-revisit,
html.fc-feed-open .cky-revisit-bottom-left,
html.fc-feed-open .cky-revisit-bottom-right,
html.fc-feed-open [class*="cky-btn-revisit"],
html.fc-feed-open [id*="cky-btn-revisit"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}