    html body [data-role="mobile-search-bar"].active {
        display: flex !important;
    }


    @media (max-width: 768px) {

        /* ✅ 모바일 전용 표시/숨김 (검색바 제외) */
        .mobile-only:not([data-role="mobile-search-bar"]) {
            display: block;
        }

        .pc-only {
            display: none !important;
        }

        /* ✅ 상단 고정바 */
        .site-header {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            background: white;
            border-bottom: 1px solid #ddd;
            z-index: 3000;
        }

        /* ✅ header-inner */
        .header-inner {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 1rem;
            height: 5rem;
        }

        .header-left,
        .header-right.mobile-only {
            width: 2.5rem;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .header-inner .header-logo.mobile-only {
            flex: 1;
            display: flex;
            justify-content: center;
            align-items: center;
            text-align: center;
        }

        .header-inner .header-logo.mobile-only a {
            font-size: 2.2em;
            font-weight: 700;
            color: #222;
            text-decoration: none;
            transition: transform 0.2s ease;
            display: inline-block;
            margin-left: 2.5rem;
        }

        /* ✅ 돋보기 버튼 */
        #mobile-search-open {
            background: none;
            border: none;
            font-size: 1.7rem;
            color: #666;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 0.5rem;
        }

        #mobile-search-open:hover {
            color: #000;
        }

        /* ✅ 모바일 검색바 */
        [data-role="mobile-search-bar"] {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 5rem;
            z-index: 4000;
        }

        [data-role="mobile-search-bar"].active {
            display: flex !important;
            width: 100% !important;
            height: 5rem !important;
            align-items: center;
            justify-content: center;
            padding: 0 3rem;
        }

        /* ✅ 검색폼 wrapper */
        .search-bar .search-form-wrapper {
            position: relative;
            width: 100%;
            max-width: 23rem;
            background: #f1f1f1;
            border-radius: 2rem;
            padding: 0.4rem 0.8rem;
            display: flex;
            align-items: center;
        }

        .search-bar input {
            flex: 1;
            font-size: 1.05rem;
            padding: 0.4rem 0.8rem;
            border: none;
            background: none;
            outline: none;
            border-radius: 2rem;
        }

        .search-bar .search-icon {
            background: none;
            border: none;
            font-size: 1.7rem;
            color: #000;
            cursor: pointer;
            padding: 0;
            line-height: 1;
            margin-left: 0.5rem;
        }

        .search-bar .search-icon:hover {
            color: #000;
        }

        /* ▼ 뒤로가기 버튼 – “왼쪽 밖에서 스르륵” 슬라이드 인 애니메이션 */
        /* ▼ 뒤로가기 버튼 */
        #back-btn-wrapper {
            position: fixed;
            top: 0;
            left: 0;
            height: 5rem;
            display: flex;
            align-items: center;
            justify-content: center;
            padding-left: 2rem;
            z-index: 4100;
            transform: translateX(-100%);
            opacity: 0;
            pointer-events: none;
            transition: none;
            font-size: 1.8rem;
            color: #222;
        }

        #back-btn-wrapper.back-visible {
            transform: translateX(0);
            opacity: 1;
            pointer-events: auto;
            transition: transform .25s ease, opacity .25s ease;
        }

        #back-btn {
            all: unset;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            line-height: 1;
        }

        .hidden {
            display: none !important;
        }

        /* ✅ 모바일 footer */
        .site-footer.mobile-only {
            position: fixed;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 5rem;
            display: flex;
            justify-content: space-around;
            align-items: center;
            background: white;
            border-top: 1px solid #ddd;
            z-index: 1000;
        }

        .site-footer.mobile-only a {
            flex: 1;
            text-align: center;
            font-size: 2rem;
            color: #000;
        }

        /* ✅ main padding */
        main {
            padding-top: 3rem;
            padding-bottom: 3.5rem;
        }

        .time-tabs {
            margin-top: 6.5rem !important;
            margin-bottom: -4.5rem !important;
        }

        #category-filter {
            margin-top: 6.5rem !important;
        }
    }