@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Fredoka:wght@400;500;600;700&display=swap');

#fsg-app {
    position: relative;
    min-height: 400px;
    font-family: 'Fredoka', sans-serif;
}

/* ═══ HEADER ═══ */
.fsg-header {
    text-align: center;
    padding: 0 0 48px;
}

.fsg-tag {
    font-size: 14px;
    font-weight: 600;
    color: #F5A623;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.fsg-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(44px, 5.5vw, 72px);
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #FFFFFF;
    line-height: 0.95;
    margin: 0 0 12px;
}
.fsg-title span { color: #F5A623; }

.fsg-subtitle {
    font-size: 17px;
    color: rgba(255,255,255,0.4);
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ═══ FILTERS ═══ */
.fsg-filters {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-bottom: 40px;
}

.fsg-filter {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 18px;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 12px 28px;
    border-radius: 50px;
    background: transparent;
    color: rgba(255,255,255,0.35);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}
.fsg-filter:hover { color: rgba(255,255,255,0.6); background: rgba(255,255,255,0.03); }
.fsg-filter:active { background: rgba(245,166,35,0.05); }
.fsg-filter:focus { outline: none; }
.fsg-filter.active { color: #F5A623; background: rgba(245,166,35,0.08); }

.fsg-filter-count {
    font-family: 'Fredoka', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: rgba(255,255,255,0.2);
    margin-left: 6px;
}
.fsg-filter.active .fsg-filter-count { color: rgba(245,166,35,0.5); }

/* ═══ GRID ═══ */
.fsg-grid {
    columns: 4;
    column-gap: 10px;
    margin-bottom: 40px;
}

.fsg-item {
    position: relative;
    break-inside: avoid;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    margin-bottom: 10px;
    transition: transform 0.3s ease;
}

.fsg-item:hover { transform: scale(1.02); }

.fsg-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s ease;
}

.fsg-item:hover img { transform: scale(1.06); }

/* Video */
.fsg-item-video { position: relative; }

.fsg-item-video::after {
    content: '▶';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
    pointer-events: none;
    transition: all 0.3s ease;
}

.fsg-item-video:hover::after {
    background: rgba(245,166,35,0.8);
    transform: translate(-50%, -50%) scale(1.1);
}

.fsg-item video {
    width: 100%;
    display: block;
}

/* ═══ LOAD MORE ═══ */
.fsg-loadmore {
    text-align: center;
    padding: 20px 0;
}

.fsg-loadmore-btn {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 20px;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 16px 48px;
    border-radius: 50px;
    background: transparent;
    color: rgba(255,255,255,0.5);
    border: 2px solid rgba(255,255,255,0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}
.fsg-loadmore-btn:hover { border-color: #F5A623; color: #F5A623; }
.fsg-loadmore-btn:active { background: rgba(245,166,35,0.05); }
.fsg-loadmore-btn:focus { outline: none; }

/* ═══ LOADING ═══ */
.fsg-loading {
    text-align: center;
    padding: 80px 0;
    color: rgba(255,255,255,0.15);
    font-size: 14px;
}

.fsg-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(255,255,255,0.06);
    border-top-color: #F5A623;
    border-radius: 50%;
    animation: fsgSpin 0.8s linear infinite;
    margin: 0 auto 12px;
}

@keyframes fsgSpin { to { transform: rotate(360deg); } }

/* ═══ LIGHTBOX ═══ */
.fsg-lb {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0,0,0,0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.fsg-lb.open { opacity: 1; pointer-events: all; }

.fsg-lb-content {
    max-width: 90vw;
    max-height: 90vh;
    position: relative;
}

.fsg-lb-content img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    transform: scale(0.92);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.fsg-lb.open .fsg-lb-content img { transform: scale(1); }

.fsg-lb-content video {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 8px;
}

.fsg-lb-close {
    position: fixed;
    top: 24px;
    right: 32px;
    font-family: 'Fredoka', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255,255,255,0.4);
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.3s;
    letter-spacing: 1px;
    z-index: 10;
}
.fsg-lb-close:hover { color: #F5A623; }

.fsg-lb-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    color: #fff;
    font-size: 22px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}
.fsg-lb-nav:hover { background: rgba(245,166,35,0.4); }
.fsg-lb-nav:focus { outline: none; }
.fsg-lb-prev { left: 24px; }
.fsg-lb-next { right: 24px; }

.fsg-lb-counter {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 13px;
    color: rgba(255,255,255,0.3);
    font-family: 'Fredoka', sans-serif;
    z-index: 10;
}

/* ═══ EMPTY ═══ */
.fsg-empty {
    text-align: center;
    padding: 80px 0;
    color: rgba(255,255,255,0.2);
    font-size: 15px;
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 1200px) { .fsg-grid { columns: 3; } }
@media (max-width: 768px) {
    .fsg-grid { columns: 2; gap: 6px; }
    .fsg-item { margin-bottom: 6px; }
}
@media (max-width: 480px) {
    .fsg-filters { gap: 4px; }
    .fsg-filter { padding: 10px 18px; font-size: 16px; }
}
