/* =========== 검색 필터 박스 =========== */
.search-filter-form {
    padding: 1rem 0;
    margin-bottom: 1.5rem;
}

/* =========== 연·월 셀렉터 =========== */
.year-month-selector {
    display: flex;
    justify-content: center;
    gap: .6rem;
}

.year-month-selector select {
    padding: .4rem .7rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1.2rem;
    background: #fff;
}

/* =========== mid 카테고리 룰렛 =========== */
.mid-category-scroll {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: .5rem;
    padding: .6rem .8rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.mid-category-scroll::-webkit-scrollbar {
    display: none;
}

/* === mid 카테고리 트랙 폭 제한 ================ */
#midWrap {
    max-width: 500px;
    /* 데스크톱: 4~5개만 보임 */
    width: 100%;
    margin: 0 auto;
    /* 가운데 정렬 */
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

#midWrap {
    cursor: grab;
}

#midWrap.dragging {
    cursor: grabbing;
    user-select: none;
}

/* === pill 디자인 (맨 처음 디자인) ================ */
#midWrap .filter-pill {
    flex: 0 0 auto;
    padding: .6em 1.3em;
    /* 처음 디자인 크기 */
    border: none;
    border-radius: 999px;
    background: #f0f0f0;
    font-size: 1.1rem;
    white-space: nowrap;
    cursor: pointer;
    scroll-snap-align: center;
    transition: .2s;
}

#midWrap .filter-pill:hover {
    background: #e0e0e0;
}

#midWrap .filter-pill.active {
    background: #333;
    color: #fff;
}

/* =========== 정렬 버튼 =========== */
.search-order-row {
    display: flex;
    justify-content: center;
    gap: 2vw;
    margin-bottom: 1.2rem;
    overflow-x: auto;
    white-space: nowrap;
}

.order-pill {
    padding: .6em 1.3em;
    border-radius: 999px;
    background: #f0f0f0;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    transition: .2s;
    white-space: nowrap;
}

.order-pill.active {
    background: #333;
    color: #fff;
}

/* 메인 페이지 필터 버튼 */


.time-tabs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 2rem auto 1.5rem;
    max-width: 27.5rem;
}

.time-tab {
    padding: 0.6rem 1.2rem;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    background: #f4f4f4;
    border: 1px solid #ddd;
    border-radius: 2rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, transform 0.2s;
}

.time-tab:hover {
    background: #e0e0e0;
    transform: scale(1.05);
}

.time-tab.active {
    background: #111;
    color: #fff;
    transform: scale(1.07);
    border-color: #111;
}

.category-filter {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin: 1rem 0 2rem;
    flex-wrap: wrap;
}

.filter-button {
    background: #f4f4f4;
    border: 1px solid #ddd;
    padding: 0.6rem 1.3rem;
    border-radius: 2rem;
    font-size: 1rem;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s, color 0.2s;
}

.filter-button:hover {
    background-color: #eaeaea;
    transform: scale(1.05);
    color: #000;
}

.filter-button.active {
    background-color: #111;
    color: #fff;
    transform: scale(1.08);
}

.feed-container {
    max-width: 42.5rem;
    /* 680px */
    margin: 0 auto;
    padding: 1.5rem 1rem;
}