@font-face {
            font-family: "Space Grotesk";
            font-style: normal;
            font-weight: 400 700;
            font-display: fallback;
            src: url('https://babesky.com/wp-content/themes/babesky-theme/assets/fonts/SpaceGrotesk-VariableFont_wght.woff2') format('woff2');
            font-stretch: normal;
        }
        :root {
            --bg-primary: #0a0a0a;
            --bg-secondary: #12121a;
            --bg-card: #1a1a24;
            --bg-card-hover: #222230;
            --text-primary: #f0f0f5;
            --text-secondary: #a0a0b0;
            --text-muted: #606070;
            --accent: #a78bfa;
            --accent-pink: #ff6b9d;
            --accent-hover: #c4b5fd;
            --accent-glow: rgba(167, 139, 250, 0.3);
            --border: rgba(255, 255, 255, 0.08);
            --wp--preset--color--background: #000000;
            --wp--preset--color--surface: #0a0a0a;
            --wp--preset--color--surface-hover: #111111;
            --wp--preset--color--border: rgba(255, 255, 255, 0.08);
            --wp--preset--color--border-hover: rgba(255, 255, 255, 0.15);
            --wp--preset--color--text: #FFFAF5;
            --wp--preset--color--text-soft: #E0D8D0;
            --wp--preset--color--text-dim: #6B6560;
            --wp--preset--color--primary: #9146FF;
            --wp--preset--color--primary-soft: #7B2FE0;
            --wp--preset--color--primary-subtle: rgba(145, 70, 255, 0.1);
            --wp--preset--color--secondary: #FF6AC2;
            --wp--preset--spacing--10: 4px;
            --wp--preset--spacing--20: 8px;
            --wp--preset--spacing--30: 12px;
            --wp--preset--spacing--40: 16px;
            --wp--preset--spacing--50: 24px;
            --wp--preset--spacing--60: 32px;
            --wp--preset--spacing--70: 48px;
            --wp--preset--spacing--80: 64px;
            --wp--preset--font-family--heading: 'Space Grotesk', sans-serif;
            --wp--preset--font-family--body: 'DM Sans', sans-serif;
            --babesky-transition-fast: all 0.2s ease;
        }

        /* Scoped under .feeds-directory so theme header/footer are unaffected */
        .feeds-directory * { margin: 0; padding: 0; box-sizing: border-box; }

        .feeds-directory {
            font-family: var(--wp--preset--font-family--body, 'DM Sans', sans-serif);
            background: var(--bg-primary);
            background-image:
                radial-gradient(at 0% 0%, rgba(102, 126, 234, 0.15) 0px, transparent 50%),
                radial-gradient(at 100% 100%, rgba(118, 75, 162, 0.15) 0px, transparent 50%);
            color: var(--text-primary);
            line-height: 1.6;
            min-height: 100vh;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }

        .feeds-directory .container { max-width: 1400px; margin: 0 auto; padding: 0 24px; }

        .feeds-directory .hero { padding: 48px 0 32px; text-align: center; }
        .feeds-directory .hero h1 { 
            font-size: 48px; 
            font-weight: 700; 
            margin-bottom: 20px; 
            background: linear-gradient(to right, rgb(196, 181, 253), rgb(251, 113, 133), rgb(196, 181, 253));
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            line-height: 1.2;
        }
        .feeds-directory .hero h1::after {
            content: '';
            display: block;
            width: 96px;
            height: 4px;
            background: linear-gradient(to right, transparent, rgb(168, 85, 247), transparent);
            margin: 16px auto 0;
        }
        .feeds-directory .hero h2 { 
            font-size: 24px; 
            font-weight: 500; 
            color: rgba(255, 255, 255, 0.8); 
            margin-bottom: 16px; 
            margin-top: 0; 
        }
        .feeds-directory .hero p { font-size: 16px; color: var(--text-secondary); max-width: 500px; margin: 0 auto 24px; }
        
        .feeds-directory .verify-btn {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 10px 20px;
            background: linear-gradient(to right, rgb(147, 51, 234), rgb(219, 39, 119));
            color: white;
            font-weight: 600;
            font-size: 16px;
            border-radius: 8px;
            transition: all 0.2s ease;
            box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
            text-decoration: none;
            margin-top: 16px;
        }
        
        .feeds-directory .verify-btn:hover {
            background: linear-gradient(to right, rgb(126, 34, 206), rgb(236, 72, 153));
            box-shadow: 0 10px 15px -3px rgba(147, 51, 234, 0.25), 0 4px 6px -2px rgba(147, 51, 234, 0.1);
        }

        .feeds-directory .stats-bar {
            display: flex;
            justify-content: center;
            gap: 32px;
            padding: 16px 24px;
            background: rgba(0, 0, 0, 0.3);
            backdrop-filter: blur(10px);
            border-radius: 12px;
            margin-bottom: 32px;
            border: 1px solid var(--border);
        }

        .feeds-directory .stat { text-align: center; }
        .feeds-directory .stat-value { font-size: 24px; font-weight: 700; color: var(--accent); }
        .feeds-directory .stat-label { font-size: 13px; color: var(--text-muted); }

        .feeds-directory .controls {
            display: flex;
            gap: 16px;
            margin-bottom: 24px;
            flex-wrap: wrap;
            background: rgba(0, 0, 0, 0.3);
            backdrop-filter: blur(10px);
            border-radius: 12px;
            padding: 16px;
            border: 1px solid var(--border);
        }

        .feeds-directory .search-box { flex: 1; min-width: 280px; position: relative; }

        .feeds-directory .search-box input {
            width: 100%;
            padding: 12px 16px 12px 44px;
            background: rgba(0, 0, 0, 0.4);
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 10px;
            color: var(--text-primary);
            font-size: 14px;
            outline: none;
            transition: all 0.2s;
        }

        .feeds-directory .search-box input:focus {
            border-color: var(--accent);
            box-shadow: 0 0 0 3px var(--accent-glow);
        }

        .feeds-directory .search-box input::placeholder { color: rgba(255, 255, 255, 0.4); }

        .feeds-directory .search-box svg {
            position: absolute;
            left: 14px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--text-muted);
        }

        .feeds-directory .filter-btn {
            padding: 12px 16px;
            background: rgba(0, 0, 0, 0.4);
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 10px;
            color: var(--text-primary);
            font-size: 14px;
            cursor: pointer;
            transition: all 0.2s;
            appearance: none;
        }

        .feeds-directory .filter-btn:hover {
            background: rgba(0, 0, 0, 0.6);
            border-color: rgba(255, 255, 255, 0.3);
        }

        .feeds-directory select.filter-btn {
            padding-right: 36px;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23a0a0b0' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: right 12px center;
        }

        .feeds-directory select option { background-color: #1a1a1a; color: #ffffff; }

        .feeds-directory .category-section { margin-bottom: 24px; }

        .feeds-directory .category-pills {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            padding: 16px;
            background: rgba(0, 0, 0, 0.3);
            backdrop-filter: blur(10px);
            border-radius: 12px;
            border: 1px solid var(--border);
        }

        .feeds-directory .category-pill {
            padding: 6px 14px;
            background: rgba(167, 139, 250, 0.1);
            border: 1px solid rgba(167, 139, 250, 0.2);
            border-radius: 20px;
            color: var(--text-secondary);
            font-size: 13px;
            cursor: pointer;
            transition: all 0.2s;
            white-space: nowrap;
        }

        .feeds-directory .category-pill:hover {
            background: rgba(167, 139, 250, 0.2);
            border-color: rgba(167, 139, 250, 0.4);
            color: var(--text-primary);
        }

        .feeds-directory .category-pill.active {
            background: var(--accent);
            border-color: var(--accent);
            color: white;
        }

        .feeds-directory .category-pill .count { font-size: 11px; opacity: 0.7; margin-left: 4px; }

        .feeds-directory .clear-filter {
            padding: 6px 14px;
            background: rgba(255, 107, 157, 0.1);
            border: 1px solid rgba(255, 107, 157, 0.3);
            border-radius: 20px;
            color: var(--accent-pink);
            font-size: 13px;
            cursor: pointer;
            transition: all 0.2s;
        }

        .feeds-directory .clear-filter:hover { background: rgba(255, 107, 157, 0.2); }

        .feeds-directory .feeds-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 24px;
            margin-bottom: 60px;
        }

        .feeds-directory .card-flip-container {
            perspective: 1000px;
            height: 300px;
            cursor: pointer;
        }

        .feeds-directory .card-flip-inner {
            position: relative;
            width: 100%;
            height: 100%;
            transition: transform 0.5s ease;
            transform-style: preserve-3d;
        }

        .feeds-directory .card-flip-container.flipped .card-flip-inner {
            transform: rotateY(180deg);
        }

        .feeds-directory .card-front, .card-back {
            position: absolute;
            width: 100%;
            height: 100%;
            -webkit-backface-visibility: hidden;
            backface-visibility: hidden;
            border-radius: 16px;
            overflow: hidden;
        }

        .feeds-directory .card-front {
            z-index: 2;
            background: var(--bg-card);
            border: 1px solid var(--border);
            padding: 22px;
            display: flex;
            flex-direction: column;
            transition: all 0.3s;
        }

        .feeds-directory .card-flip-container:not(.flipped):hover .card-front {
            border-color: rgba(167, 139, 250, 0.3);
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
        }

        .feeds-directory .card-back {
            transform: rotateY(180deg);
            background: linear-gradient(135deg, rgba(30, 27, 45, 0.98) 0%, rgba(20, 18, 35, 0.98) 100%);
            border: 1px solid rgba(167, 139, 250, 0.3);
            display: flex;
            flex-direction: column;
            min-height: 0;
        }

        .feeds-directory .card-back-header {
            padding: 12px 18px;
            border-bottom: 1px solid rgba(255,255,255,0.1);
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-shrink: 0;
        }

        .feeds-directory .card-back-header h4 { font-size: 16px; font-weight: 600; color: var(--text-primary); }
        .feeds-directory .card-back-header h4 a {
            color: var(--text-primary);
            text-decoration: none;
            transition: color 0.2s;
        }
        .feeds-directory .card-back-header h4 a:hover {
            color: var(--accent);
        }

        .feeds-directory .card-back-close {
            color: var(--accent);
            font-size: 13px;
            padding: 4px 12px;
            border-radius: 6px;
            background: rgba(167, 139, 250, 0.1);
            transition: background 0.2s;
        }

        .feeds-directory .card-back-close:hover { background: rgba(167, 139, 250, 0.2); }

        .feeds-directory .card-back-content {
            flex: 1;
            overflow-y: auto;
            padding: 18px 18px;
            scrollbar-width: thin;
            scrollbar-color: rgba(167, 139, 250, 0.3) transparent;
            -webkit-overflow-scrolling: touch;
            min-height: 0;
        }

        .feeds-directory .card-back-content::-webkit-scrollbar { width: 4px; }
        .feeds-directory .card-back-content::-webkit-scrollbar-thumb { background: rgba(167, 139, 250, 0.3); border-radius: 2px; }

        .feeds-directory .card-back-description {
            font-size: 11.5px;
            line-height: 1.65;
            color: var(--text-secondary);
            white-space: pre-wrap;
        }

        .feeds-directory .card-back-description a { color: var(--accent); text-decoration: none; }
        .feeds-directory .card-back-description a:hover { text-decoration: underline; }

        .feeds-directory .graze-stats {
            padding: 10px 12px;
            margin-top: auto;
            margin-bottom: 0;
            border-top: 1px solid var(--border);
            background: rgba(167, 139, 250, 0.03);
        }

        .feeds-directory .graze-stats-header {
            display: flex;
            align-items: center;
            gap: 6px;
            margin-bottom: 10px;
            font-size: 10px;
            font-weight: 600;
            color: var(--text-secondary);
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .feeds-directory .graze-stats-header svg {
            width: 14px;
            height: 14px;
            color: var(--accent);
        }

        .feeds-directory .graze-link {
            margin-left: auto;
            font-size: 11px;
            color: var(--accent);
            text-decoration: none;
            opacity: 0.7;
            transition: opacity 0.2s;
        }

        .feeds-directory .graze-link:hover {
            opacity: 1;
            text-decoration: underline;
        }

        .feeds-directory .graze-stats-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 8px;
        }

        .feeds-directory .graze-stat-item {
            display: flex;
            align-items: center;
            gap: 6px;
            padding: 6px 6px;
            background: rgba(167, 139, 250, 0.08);
            border-radius: 5px;
            border: 1px solid rgba(167, 139, 250, 0.15);
            transition: all 0.2s;
            min-width: 0;
            cursor: pointer;
        }
        
        .feeds-directory .graze-stats-grid a:hover .graze-stat-item {
            background: rgba(167, 139, 250, 0.15);
            border-color: rgba(167, 139, 250, 0.3);
            transform: translateY(-1px);
        }

        .feeds-directory .graze-stat-item:hover {
            background: rgba(0, 0, 0, 0.4);
            border-color: rgba(167, 139, 250, 0.2);
            transform: translateY(-1px);
        }

        .feeds-directory .graze-stat-icon {
            font-size: 16px;
            line-height: 1;
            flex-shrink: 0;
        }

        .feeds-directory .graze-stat-content {
            flex: 1;
            min-width: 0;
        }

        .feeds-directory .graze-stat-value {
            font-size: 13px;
            font-weight: 700;
            color: var(--accent);
            line-height: 1.2;
            margin-bottom: 2px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .feeds-directory .graze-stat-label {
            font-size: 9px;
            color: var(--text-muted);
            text-transform: uppercase;
            letter-spacing: 0.2px;
            line-height: 1.3;
            word-break: break-word;
        }

        .feeds-directory .card-back-footer {
            padding: 12px 18px;
            border-top: 1px solid rgba(255,255,255,0.1);
            flex-shrink: 0;
        }

        .feeds-directory .card-back-footer a {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 8px 16px;
            background: var(--accent);
            color: white;
            border-radius: 8px;
            font-size: 13px;
            font-weight: 500;
            text-decoration: none;
            transition: background 0.2s;
        }

        .feeds-directory .card-back-footer a:hover { background: var(--accent-hover); }

        .feeds-directory .feed-header { display: flex; gap: 14px; margin-bottom: 14px; }

        .feeds-directory .feed-avatar {
            width: 56px;
            height: 56px;
            border-radius: 14px;
            background: linear-gradient(135deg, var(--accent) 0%, var(--accent-pink) 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 24px;
            flex-shrink: 0;
            overflow: hidden;
        }

        .feeds-directory .feed-avatar img { width: 100%; height: 100%; object-fit: cover; }

        .feeds-directory .feed-info { flex: 1; min-width: 0; }
        
        .feeds-directory .feed-title-row {
            display: flex;
            align-items: center;
            gap: 8px;
            min-width: 0;
            margin-bottom: 4px;
        }

        .feeds-directory .feed-name {
            font-size: 18px;
            font-weight: 600;
            margin-bottom: 0;
            flex: 1;
            min-width: 0;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            line-height: 1.3;
        }

        .feeds-directory .just-added-badge {
            flex-shrink: 0;
            padding: 2px 8px;
            border-radius: 999px;
            border: 1px solid rgba(77, 230, 164, 0.45);
            background: rgba(77, 230, 164, 0.12);
            color: #7df3b9;
            font-size: 10px;
            font-weight: 700;
            letter-spacing: 0.35px;
            text-transform: uppercase;
            line-height: 1.35;
        }
        
        .feeds-directory .feed-name a {
            color: var(--text-primary);
            text-decoration: none;
            transition: color 0.2s;
        }
        
        .feeds-directory .feed-name a:hover {
            color: var(--accent);
        }

        .feeds-directory .feed-creator { font-size: 13px; color: var(--text-muted); line-height: 1.4; }
        .feeds-directory .feed-creator a { color: var(--text-secondary); text-decoration: none; }
        .feeds-directory .feed-creator a:hover { color: var(--accent); }

        .feeds-directory .feed-description {
            font-size: 13px;
            color: var(--text-secondary);
            flex: 1;
            line-height: 1.5;
            margin-bottom: 12px;
            word-wrap: break-word;
            overflow-wrap: break-word;
        }

        .feeds-directory .feed-description a { color: var(--accent); text-decoration: none; }

        .feeds-directory .feed-categories { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }

        .feeds-directory .feed-category-tag {
            padding: 3px 10px;
            background: rgba(167, 139, 250, 0.15);
            border-radius: 6px;
            font-size: 11px;
            color: var(--accent);
            cursor: pointer;
            font-weight: 500;
        }

        .feeds-directory .feed-category-tag:hover { background: rgba(167, 139, 250, 0.25); }

        .feeds-directory .feed-meta {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding-top: 14px;
            border-top: 1px solid var(--border);
            margin-top: auto;
        }

        .feeds-directory .feed-stat { display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--accent-pink); font-weight: 500; }
        .feeds-directory .feed-stat svg { width: 17px; height: 17px; }

        .feeds-directory .view-btn {
            padding: 8px 16px;
            background: transparent;
            border: 1px solid var(--accent);
            border-radius: 8px;
            color: var(--accent);
            font-size: 12.5px;
            font-weight: 500;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            transition: all 0.2s;
        }

        .feeds-directory .view-btn:hover { background: var(--accent); color: white; }

        .feeds-directory .loading { text-align: center; padding: 60px 20px; }

        .feeds-directory .loading-spinner {
            width: 40px;
            height: 40px;
            border: 3px solid var(--bg-card);
            border-top-color: var(--accent);
            border-radius: 50%;
            animation: spin 1s linear infinite;
            margin: 0 auto 16px;
        }

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

        .feeds-directory .no-results { text-align: center; padding: 60px 20px; color: var(--text-muted); }

        .feeds-directory footer {
            background: rgba(0, 0, 0, 0.4);
            backdrop-filter: blur(10px);
            border-top: 1px solid var(--border);
            padding: 32px 0;
            text-align: center;
        }

        .feeds-directory .footer-links { display: flex; justify-content: center; gap: 24px; margin-bottom: 12px; }
        .feeds-directory .footer-links a { color: var(--text-muted); text-decoration: none; font-size: 14px; }
        .feeds-directory .footer-links a:hover { color: var(--accent); }

        .feeds-directory .footer-text { color: var(--text-muted); font-size: 13px; }
        .feeds-directory .footer-text a { color: rgba(167, 139, 250, 0.7); text-decoration: none; }
        .feeds-directory .footer-text a:hover { color: var(--accent); }

        .feeds-directory .main-layout {
            display: flex;
            gap: 24px;
            margin-top: 24px;
        }

        .feeds-directory .sidebar {
            width: 260px;
            flex-shrink: 0;
            background: rgba(0, 0, 0, 0.4);
            backdrop-filter: blur(12px);
            border-radius: 16px;
            border: 1px solid var(--border);
            padding: 20px;
            position: sticky;
            top: 20px;
            max-height: calc(100vh - 40px);
            overflow-y: auto;
            overflow-x: hidden;
            scrollbar-width: thin;
            scrollbar-color: rgba(167, 139, 250, 0.3) transparent;
        }

        .feeds-directory .sidebar::-webkit-scrollbar {
            width: 6px;
        }

        .feeds-directory .sidebar::-webkit-scrollbar-track {
            background: transparent;
            border-radius: 10px;
        }

        .feeds-directory .sidebar::-webkit-scrollbar-thumb {
            background: rgba(167, 139, 250, 0.3);
            border-radius: 10px;
            transition: background 0.2s;
        }

        .feeds-directory .sidebar::-webkit-scrollbar-thumb:hover {
            background: rgba(167, 139, 250, 0.5);
        }

        .feeds-directory .sidebar-header {
            margin-bottom: 16px;
            padding-bottom: 16px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        }

        .feeds-directory .sidebar-header h3 {
            font-size: 18px;
            font-weight: 700;
            color: var(--text-primary);
            margin: 0 0 12px 0;
            letter-spacing: -0.3px;
            background: linear-gradient(135deg, var(--accent) 0%, var(--accent-pink) 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }
        
        .feeds-directory .sidebar-search {
            position: relative;
            margin-bottom: 12px;
        }
        
        .feeds-directory .sidebar-search input {
            width: 100%;
            padding: 8px 12px 8px 32px;
            background: rgba(0, 0, 0, 0.3);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 8px;
            color: var(--text-primary);
            font-size: 13px;
            transition: all 0.2s;
        }
        
        .feeds-directory .sidebar-search input:focus {
            outline: none;
            border-color: var(--accent);
            background: rgba(0, 0, 0, 0.4);
        }
        
        .feeds-directory .sidebar-search input::placeholder {
            color: var(--text-muted);
        }
        
        .feeds-directory .sidebar-search-icon {
            position: absolute;
            left: 10px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--text-muted);
            font-size: 14px;
            pointer-events: none;
        }

        .feeds-directory .sidebar-categories {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }
        
        .feeds-directory .sidebar-category-hidden {
            display: none !important;
        }

        .feeds-directory .sidebar-category {
            padding: 12px 14px;
            background: rgba(0, 0, 0, 0.3);
            border: 1px solid transparent;
            border-radius: 10px;
            color: var(--text-secondary);
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
            text-align: left;
            display: flex;
            justify-content: space-between;
            align-items: center;
            position: relative;
            overflow: hidden;
        }

        .feeds-directory .sidebar-category::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            height: 100%;
            width: 3px;
            background: var(--accent);
            transform: scaleY(0);
            transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
            border-radius: 0 2px 2px 0;
        }

        .feeds-directory .sidebar-category:hover {
            background: rgba(167, 139, 250, 0.08);
            border-color: rgba(167, 139, 250, 0.2);
            color: var(--text-primary);
            transform: translateX(2px);
        }

        .feeds-directory .sidebar-category:hover::before {
            transform: scaleY(1);
        }

        .feeds-directory .sidebar-category.active {
            background: linear-gradient(135deg, rgba(167, 139, 250, 0.15) 0%, rgba(255, 107, 157, 0.1) 100%);
            border-color: rgba(167, 139, 250, 0.4);
            color: var(--accent);
            font-weight: 600;
            box-shadow: 0 2px 8px rgba(167, 139, 250, 0.15);
        }

        .feeds-directory .sidebar-category.active::before {
            transform: scaleY(1);
        }

        .feeds-directory .sidebar-category .count {
            font-size: 12px;
            font-weight: 600;
            opacity: 0.6;
            margin-left: 8px;
            padding: 2px 8px;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 12px;
            min-width: 28px;
            text-align: center;
            transition: all 0.25s;
        }

        .feeds-directory .sidebar-category:hover .count {
            opacity: 0.8;
            background: rgba(255, 255, 255, 0.08);
        }

        .feeds-directory .sidebar-category.active .count {
            opacity: 1;
            background: rgba(167, 139, 250, 0.2);
            color: var(--accent);
        }

        .feeds-directory .main-content {
            flex: 1;
            min-width: 0;
        }

        /* Tablet: collapsible sidebar + vertical scroll list (no wrapping grid) */
        @media (max-width: 1024px) {
            .feeds-directory .main-layout {
                flex-direction: column;
            }
            
            .feeds-directory .sidebar {
                width: 100%;
                position: static;
                max-height: none;
                margin-bottom: 16px;
            }
            
            .feeds-directory .sidebar-header {
                cursor: pointer;
                user-select: none;
                display: flex;
                justify-content: space-between;
                align-items: center;
            }
            
            .feeds-directory .sidebar-header::after {
                content: '▼';
                font-size: 12px;
                transition: transform 0.3s;
                color: var(--text-secondary);
            }
            
            .feeds-directory .sidebar.collapsed .sidebar-header::after {
                transform: rotate(-90deg);
            }
            
            .feeds-directory .sidebar.collapsed .sidebar-categories {
                display: none;
            }
            
            .feeds-directory .sidebar-categories {
                flex-direction: column;
                flex-wrap: nowrap;
                max-height: 280px;
                overflow-y: auto;
                margin-top: 4px;
            }
            
            .feeds-directory .sidebar-category {
                min-width: 100%;
                flex: none;
            }
            
            /* Tablet: show category dropdown as quick filter above sidebar */
            .feeds-directory .category-select-mobile {
                display: block;
                width: 100%;
                padding: 12px 16px;
                background: rgba(0, 0, 0, 0.4);
                backdrop-filter: blur(12px);
                border: 1px solid var(--border);
                border-radius: 12px;
                color: var(--text-primary);
                font-size: 14px;
                margin-bottom: 12px;
                cursor: pointer;
            }
            
            .feeds-directory .category-select-mobile:focus {
                outline: none;
                border-color: var(--accent);
            }
        }

        @media (max-width: 768px) {
            .feeds-directory .hero h1 { font-size: 28px; }
            .feeds-directory .stats-bar { flex-wrap: wrap; gap: 16px; }
            .feeds-directory .feeds-grid { grid-template-columns: 1fr; }
            .feeds-directory .controls { flex-direction: column; }
            .feeds-directory .search-box { min-width: 100%; }
            
            /* Mobile: Ensure card back content is scrollable */
            .feeds-directory .card-back {
                display: flex;
                flex-direction: column;
                height: 100%;
                min-height: 0;
            }
            
            .feeds-directory .card-back-content {
                overflow-y: auto;
                -webkit-overflow-scrolling: touch;
                min-height: 0;
                flex: 1 1 auto;
            }
            
            /* Mobile: Make sidebar collapsible */
            .feeds-directory .sidebar {
                width: 100%;
                position: static;
                max-height: none;
                margin-bottom: 16px;
            }
            
            .feeds-directory .sidebar-header {
                cursor: pointer;
                user-select: none;
                display: flex;
                justify-content: space-between;
                align-items: center;
            }
            
            .feeds-directory .sidebar-header::after {
                content: '▼';
                font-size: 12px;
                transition: transform 0.3s;
                color: var(--text-secondary);
            }
            
            .feeds-directory .sidebar.collapsed .sidebar-header::after {
                transform: rotate(-90deg);
            }
            
            .feeds-directory .sidebar.collapsed .sidebar-categories {
                display: none;
            }
            
            .feeds-directory .sidebar-categories {
                flex-direction: column;
                flex-wrap: nowrap;
                max-height: 300px;
                overflow-y: auto;
            }
            
            .feeds-directory .sidebar-category {
                min-width: 100%;
                flex: none;
            }
            
            /* Alternative: Use select dropdown on very small screens */
            .feeds-directory .category-select-mobile {
                display: none;
            }
        }
        
        @media (max-width: 480px) {
            /* On very small screens, use a select dropdown instead */
            .feeds-directory .sidebar {
                display: none;
            }
            
            .feeds-directory .category-select-mobile {
                display: block;
                width: 100%;
                padding: 12px 16px;
                background: rgba(0, 0, 0, 0.4);
                backdrop-filter: blur(12px);
                border: 1px solid var(--border);
                border-radius: 12px;
                color: var(--text-primary);
                font-size: 14px;
                margin-bottom: 16px;
                cursor: pointer;
            }
            
            .feeds-directory .category-select-mobile:focus {
                outline: none;
                border-color: var(--accent);
            }
        }
        
        /* Hide mobile select on desktop by default */
        .feeds-directory .category-select-mobile {
            display: none;
        }