/* -------------------------
   Layout
------------------------- */

#fs-collection {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    font-family: inherit;
}

/* -------------------------
   Filter Bar
------------------------- */

#fs-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 32px;
}

.fs-filter {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.fs-filter label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #888;
}

.fs-filter select {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 6px 10px;
    font-size: 0.9rem;
    background: #fff;
    cursor: pointer;
    min-width: 160px;
}

/* -------------------------
   Period Toggle (Decades / WC Cycles)
------------------------- */

#fs-filter-period {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.fs-filter__toggle {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 6px 14px;
    font-size: 0.85rem;
    background: #fff;
    cursor: pointer;
    color: #555;
    transition: all 0.15s;
}

.fs-filter__toggle.active {
    background: #1a1a1a;
    color: #fff;
    border-color: #1a1a1a;
}

#fs-period-options {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    width: 100%;
}

.fs-period-btn {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 4px 10px;
    font-size: 0.8rem;
    background: #fff;
    cursor: pointer;
    color: #555;
    transition: all 0.15s;
}

.fs-period-btn:hover {
    border-color: #999;
    color: #1a1a1a;
}

.fs-period-btn.active {
    background: #1a1a1a;
    color: #fff;
    border-color: #1a1a1a;
}

#fs-filter-reset {
    align-self: flex-end;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 6px 14px;
    font-size: 0.85rem;
    background: #fff;
    cursor: pointer;
    color: #555;
    transition: all 0.15s;
}

#fs-filter-reset:hover {
    border-color: #999;
    color: #1a1a1a;
}

/* -------------------------
   Year Groups
------------------------- */

.fs-year-group {
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.fs-year-group--visible {
    opacity: 1;
    transform: translateY(0);
}

.fs-year-group__heading {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 12px 0;
    color: #1a1a1a;
}

/* -------------------------
   Horizontal Scroll Track
------------------------- */

.fs-year-group__track {
    display: flex;
    flex-direction: row;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: thin;
    scrollbar-color: #ddd transparent;
    -webkit-overflow-scrolling: touch;
}

.fs-year-group__track::-webkit-scrollbar {
    height: 4px;
}

.fs-year-group__track::-webkit-scrollbar-track {
    background: transparent;
}

.fs-year-group__track::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 2px;
}

/* -------------------------
   Thumbnails
------------------------- */

.fs-item {
    display: block;
    flex-shrink: 0;
    text-decoration: none;
}

.fs-thumb {
    display: block;
    width: 200px;
    height: 200px;
    object-fit: contain;
    background: #f5f5f5;
    border-radius: 2px;
    transition: opacity 0.2s;
}

.fs-thumb--placeholder {
    background: #ebebeb;
}

.fs-item:hover .fs-thumb {
    opacity: 0.8;
}

/* -------------------------
   View All Link
------------------------- */

.fs-year-group__view-all {
    display: inline-block;
    margin-top: 10px;
    font-size: 0.8rem;
    color: #888;
    text-decoration: none;
    letter-spacing: 0.04em;
}

.fs-year-group__view-all:hover {
    color: #1a1a1a;
}

/* -------------------------
   States
------------------------- */

.fs-loading {
    padding: 40px;
    text-align: center;
    color: #888;
}

.fs-no-results {
    padding: 40px;
    text-align: center;
    color: #888;
}

/* -------------------------
   Mobile
------------------------- */

@media ( max-width: 600px ) {
    #fs-filters {
        gap: 12px;
    }

    .fs-thumb {
        width: 85px;
        height: 85px;
    }

    .fs-year-group__heading {
        font-size: 1.1rem;
    }
}