        /* =============================================
           FEED PAGE — feed.css
           ============================================= */

        .feed-page-wrapper {
            min-height: 100vh;
            background-color: var(--bg-deep);
            padding: calc(var(--header-height) + var(--space-lg)) var(--space-md) var(--space-2xl);
        }

        .feed-inner {
            max-width: 1300px;
            margin-inline: auto;
        }

        /* ---- SEARCH & FILTER BAR ---- */

        .feed-search-zone {
            display: flex;
            align-items: center;
            gap: var(--space-md);
            margin-bottom: var(--space-xl);
            flex-wrap: wrap;
        }

        .feed-search-input-wrapper {
            flex: 1;
            min-width: 260px;
            position: relative;
        }

        .feed-search-input-wrapper svg {
            position: absolute;
            left: 1rem;
            top: 50%;
            transform: translateY(-50%);
            color: var(--gold-deep);
            pointer-events: none;
            width: 18px;
            height: 18px;
        }

        .feed-search-input {
            width: 100%;
            padding: 0.85rem 1rem 0.85rem 2.75rem;
            background: var(--bg-elevated);
            border: 1px solid var(--gold-faint);
            border-radius: var(--radius-md);
            color: var(--ivory);
            font-family: var(--font-sans);
            font-size: 0.95rem;
            outline: none;
            transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
        }

        .feed-search-input::placeholder { color: var(--ivory-muted); }

        .feed-search-input:focus {
            border-color: var(--gold);
            box-shadow: 0 0 10px rgba(212, 182, 112, 0.15);
        }

        .feed-filter-pills {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
        }

        .filter-pill {
            padding: 0.5rem 1rem;
            border-radius: 50px;
            border: 1px solid var(--gold-faint);
            background: var(--bg-elevated);
            color: var(--ivory-muted);
            font-family: var(--font-sans);
            font-size: 0.8rem;
            cursor: pointer;
            transition: all var(--transition-fast);
            letter-spacing: 0.03em;
        }

        .filter-pill:hover {
            border-color: var(--gold);
            color: var(--gold-warm);
        }

        .filter-pill.active {
            background: rgba(212, 182, 112, 0.12);
            border-color: var(--gold-warm);
            color: var(--gold-warm);
            font-weight: 500;
        }

        /* ---- CATEGORY SECTION ---- */

        .category-section {
            margin-bottom: var(--space-2xl);
        }

        .category-header {
            display: flex;
            align-items: center;
            gap: var(--space-sm);
            margin-bottom: var(--space-md);
            padding-bottom: var(--space-sm);
            border-bottom: 1px solid rgba(212, 182, 112, 0.1);
        }

        .category-title {
            font-family: var(--font-serif);
            font-size: 1.15rem;
            color: var(--gold-warm);
            letter-spacing: var(--tracking-wide);
        }

        .category-arrow-btn {
            display: flex;
            align-items: center;
            gap: 6px;
            background: none;
            border: none;
            cursor: pointer;
            padding: 4px 10px;
            border-radius: var(--radius-sm);
            border: 1px solid var(--gold-faint);
            color: var(--ivory-muted);
            font-family: var(--font-sans);
            font-size: 0.75rem;
            letter-spacing: 0.05em;
            transition: all var(--transition-fast);
        }

        .category-arrow-btn:hover {
            border-color: var(--gold);
            color: var(--gold-warm);
        }

        .category-arrow-btn svg {
            width: 14px;
            height: 14px;
            transition: transform var(--transition-base);
        }

        .category-arrow-btn.expanded svg {
            transform: rotate(90deg);
        }

        .category-count {
            margin-left: auto;
            font-family: var(--font-sans);
            font-size: 0.75rem;
            color: var(--ivory-muted);
            letter-spacing: 0.05em;
        }

        /* ---- HORIZONTAL SCROLL TRACK ---- */

        .cards-track-wrapper {
            position: relative;
        }

        .cards-track {
            display: flex;
            gap: var(--space-md);
            overflow-x: auto;
            scroll-behavior: smooth;
            scroll-snap-type: x mandatory;
            -webkit-overflow-scrolling: touch;
            padding-bottom: var(--space-sm);
            cursor: grab;
        }

        .cards-track:active { cursor: grabbing; }

        .cards-track::-webkit-scrollbar {
            height: 3px;
        }

        .cards-track::-webkit-scrollbar-track {
            background: var(--bg-darker);
            border-radius: 2px;
        }

        .cards-track::-webkit-scrollbar-thumb {
            background: var(--gold-faint);
            border-radius: 2px;
        }

        .cards-track::-webkit-scrollbar-thumb:hover {
            background: var(--gold-soft);
        }

        .scroll-arrow {
            position: absolute;
            top: 50%;
            transform: translateY(-60%);
            z-index: 10;
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background: var(--bg-elevated);
            border: 1px solid var(--gold-faint);
            color: var(--gold);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all var(--transition-fast);
            opacity: 0.9;
        }

        .scroll-arrow:hover {
            background: var(--bg-velvet);
            border-color: var(--gold-warm);
            opacity: 1;
        }

        .scroll-arrow svg { width: 16px; height: 16px; }
        .scroll-arrow.left { left: -18px; }
        .scroll-arrow.right { right: -18px; }

        /* ---- POST CARD ---- */

        .post-card {
            flex: 0 0 calc((100% - 5 * var(--space-md)) / 6);
            min-width: 190px;
            max-width: 230px;
            background: var(--bg-elevated);
            border: 1px solid rgba(212, 182, 112, 0.07);
            border-radius: var(--radius-md);
            overflow: hidden;
            scroll-snap-align: start;
            transition: border-color var(--transition-fast), transform var(--transition-fast);
            cursor: pointer;
        }

        .post-card:hover {
            border-color: rgba(212, 182, 112, 0.25);
            transform: translateY(-3px);
        }

        /* Thumbnail for image/video */
        .card-thumbnail {
            width: 100%;
            aspect-ratio: 4 / 3;
            background: var(--bg-darker);
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            overflow: hidden;
        }

        .thumb-label {
            font-family: var(--font-sans);
            font-size: 0.7rem;
            color: var(--ivory-muted);
            letter-spacing: 0.08em;
            text-transform: uppercase;
            text-align: center;
            padding: var(--space-md);
            line-height: 1.6;
        }

        .thumb-type-badge {
            position: absolute;
            top: 8px;
            left: 8px;
            background: rgba(4, 18, 11, 0.75);
            border: 1px solid var(--gold-faint);
            color: var(--gold);
            font-family: var(--font-sans);
            font-size: 0.65rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            padding: 3px 7px;
            border-radius: 3px;
        }

        .thumb-play-icon {
            position: absolute;
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background: rgba(212, 182, 112, 0.15);
            border: 1px solid var(--gold-soft);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--gold-warm);
            font-size: 0.9rem;
        }

        /* Text post preview */
        .card-text-preview {
            padding: var(--space-sm) var(--space-sm) var(--space-xs);
        }

        .card-post-title {
            font-family: var(--font-serif);
            font-size: 0.85rem;
            color: var(--ivory);
            line-height: 1.4;
            margin-bottom: 6px;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .card-post-excerpt {
            font-family: var(--font-sans);
            font-size: 0.75rem;
            color: var(--ivory-muted);
            line-height: 1.5;
            display: -webkit-box;
            -webkit-line-clamp: 3;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        /* Card footer — author info + behavior bar */
        .card-author-strip {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 8px var(--space-sm) 10px;
            border-top: 1px solid rgba(255,255,255,0.04);
            margin-top: auto;
        }

        .author-avatar {
            width: 26px;
            height: 26px;
            border-radius: 50%;
            background: var(--bg-darker);
            border: 1px solid var(--gold-faint);
            display: flex;
            align-items: center;
            justify-content: center;
            font-family: var(--font-serif);
            font-size: 0.65rem;
            color: var(--gold);
            flex-shrink: 0;
        }

        .author-name-bar {
            flex: 1;
            overflow: hidden;
        }

        .author-handle {
            font-family: var(--font-sans);
            font-size: 0.7rem;
            color: var(--ivory-muted);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            margin-bottom: 4px;
        }

        /* Behavior gradient bar */
        .behavior-bar-track {
            height: 3px;
            background: var(--bg-darker);
            border-radius: 2px;
            overflow: hidden;
            width: 100%;
        }

        .behavior-bar-fill {
            height: 100%;
            border-radius: 2px;
            transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
        }

        /* Behavior badges */
        .author-badges {
            display: flex;
            gap: 3px;
            flex-shrink: 0;
        }

        .badge-pin {
            width: 20px;
            height: 20px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.55rem;
            position: relative;
            cursor: default;
            title: attr(data-tooltip);
        }

        .badge-blue-year {
            background: radial-gradient(circle at 40% 35%, #5BAEF5, #1A6BBF);
            border: 1px solid rgba(91, 174, 245, 0.5);
            box-shadow: 0 0 5px rgba(91, 174, 245, 0.3);
        }

        .badge-tree {
            font-size: 0.6rem;
        }

        /* ---- EXPANDED CATEGORY VIEW ---- */

        .category-expanded-view {
            display: none;
            margin-top: var(--space-md);
            padding: var(--space-lg);
            background: var(--bg-darker);
            border: 1px solid rgba(212, 182, 112, 0.07);
            border-radius: var(--radius-md);
            animation: fadeSlideDown 0.35s cubic-bezier(0.16, 1, 0.3, 1);
        }

        .category-expanded-view.visible {
            display: block;
        }

        @keyframes fadeSlideDown {
            from { opacity: 0; transform: translateY(-10px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .expanded-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
            gap: var(--space-md);
        }

        .expanded-card-empty {
            aspect-ratio: 3/4;
            background: var(--bg-elevated);
            border: 1px dashed rgba(212, 182, 112, 0.1);
            border-radius: var(--radius-md);
            display: flex;
            align-items: center;
            justify-content: center;
            color: rgba(212, 182, 112, 0.2);
            font-family: var(--font-sans);
            font-size: 0.7rem;
            letter-spacing: 0.05em;
        }

        .expanded-close-btn {
            display: block;
            margin: var(--space-md) auto 0;
            padding: 0.4rem 1.2rem;
            background: none;
            border: 1px solid var(--gold-faint);
            border-radius: var(--radius-sm);
            color: var(--ivory-muted);
            font-family: var(--font-sans);
            font-size: 0.75rem;
            cursor: pointer;
            transition: all var(--transition-fast);
        }

        .expanded-close-btn:hover {
            border-color: var(--gold);
            color: var(--gold-warm);
        }

        /* ---- RESPONSIVE ---- */
        @media (max-width: 960px) {
            .post-card {
                min-width: 160px;
                max-width: 200px;
            }
            .scroll-arrow { display: none; }
        }

        @media (max-width: 640px) {
            .feed-search-zone { flex-direction: column; align-items: stretch; }
            .feed-filter-pills { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
        }