/* ════════════════════════════════════════════════════════════════
   AN Intelligence Grid · Spectacle Edition v5.0
   The Big Bang — every pixel engineered for visual impact
   ════════════════════════════════════════════════════════════════ */

/* ── TOKENS ─────────────────────────────────────────────────── */
:root {
    --ac:        #3dffa0;
    --ac2:       #ff9f43;
    --bg:        #080808;
    --s0:        #0d0d0d;
    --s1:        #141414;
    --s2:        #1c1c1c;
    --s3:        #262626;
    --s4:        #333;
    --tp:        #f2f2f2;
    --ts:        #999;
    --tm:        #555;
    --ff-d:      'Fraunces', Georgia, serif;
    --ff-b:      'DM Sans', -apple-system, sans-serif;
    --ff-m:      'DM Mono', monospace;
    --ease:      cubic-bezier(.16,1,.3,1);
    --spring:    cubic-bezier(.34,1.56,.64,1);
    --t1: 120ms; --t2: 260ms; --t3: 480ms;
}

/* ── EDITORIAL THEME ─────────────────────────────────────────── */
#anig-root[data-theme="editorial"] {
    --bg: #faf9f5; --s0: #fff; --s1: #f5f0e8; --s2: #ece6da; --s3: #e0d9cc; --s4: #cec7b9;
    --tp: #141414; --ts: #444; --tm: #999;
}
/* ── GLASS THEME ─────────────────────────────────────────────── */
#anig-root[data-theme="glass"] {
    --bg: #040810; --s0: rgba(255,255,255,.04); --s1: rgba(255,255,255,.07);
    --s2: rgba(255,255,255,.11); --s3: rgba(255,255,255,.17); --s4: rgba(255,255,255,.24);
    --tp: rgba(255,255,255,.96); --ts: rgba(255,255,255,.6); --tm: rgba(255,255,255,.3);
}

/* ════════════════════════════════════════════════════════════════
   NOISE TEXTURE — depth layer
   ════════════════════════════════════════════════════════════════ */
#anig-root::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: .025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 256px;
}

/* ════════════════════════════════════════════════════════════════
   ANIMATED GRADIENT MESH — the ambient atmosphere
   ════════════════════════════════════════════════════════════════ */
@keyframes mesh-a { 0%,100%{transform:translate(0,0) scale(1)} 33%{transform:translate(60px,-40px) scale(1.1)} 66%{transform:translate(-40px,30px) scale(.95)} }
@keyframes mesh-b { 0%,100%{transform:translate(0,0) scale(1)} 33%{transform:translate(-80px,50px) scale(1.05)} 66%{transform:translate(50px,-30px) scale(1.08)} }
@keyframes mesh-c { 0%,100%{transform:translate(0,0) scale(1)} 50%{transform:translate(40px,60px) scale(1.12)} }

.anig-mesh {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}
.anig-mesh-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: .12;
    will-change: transform;
}
.anig-mesh-orb-1 {
    width: 700px; height: 700px;
    background: radial-gradient(circle, var(--ac), transparent 70%);
    top: -200px; left: -150px;
    animation: mesh-a 18s ease-in-out infinite;
}
.anig-mesh-orb-2 {
    width: 600px; height: 600px;
    background: radial-gradient(circle, var(--ac2), transparent 70%);
    bottom: -100px; right: -100px;
    animation: mesh-b 22s ease-in-out infinite;
}
.anig-mesh-orb-3 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, #7c3aed, transparent 70%);
    top: 40%; left: 40%;
    animation: mesh-c 28s ease-in-out infinite;
    opacity: .06;
}

/* ════════════════════════════════════════════════════════════════
   PARTICLE CANVAS
   ════════════════════════════════════════════════════════════════ */
#anig-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: .5;
}

/* ════════════════════════════════════════════════════════════════
   ROOT
   ════════════════════════════════════════════════════════════════ */
#anig-root {
    font-family: var(--ff-b);
    background: var(--bg);
    color: var(--tp);
    padding: 0 0 140px;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    min-height: 100vh;
}

/* ════════════════════════════════════════════════════════════════
   HEADER — the marquee entrance
   ════════════════════════════════════════════════════════════════ */
.anig-header {
    position: relative;
    z-index: 10;
    padding: 56px 40px 40px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.anig-wordmark {
    font-family: var(--ff-d);
    font-size: clamp(32px, 5.5vw, 72px);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -.04em;
    color: var(--tp);
    text-decoration: none;
    display: block;
    position: relative;
}
.anig-wordmark em {
    font-style: normal;
    color: transparent;
    -webkit-text-stroke: 1.5px var(--ac);
}
.anig-wordmark-sub {
    font-family: var(--ff-m);
    font-size: 10px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--tm);
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.anig-wordmark-sub::before {
    content: '';
    display: block;
    width: 20px;
    height: 1px;
    background: var(--ac);
    opacity: .6;
}

/* Header actions */
.anig-header-actions { display: flex; align-items: center; gap: 10px; }
.anig-header-search-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--s2);
    border: 1px solid var(--s3);
    border-radius: 40px;
    padding: 9px 18px;
    cursor: pointer;
    transition: background var(--t1), border-color var(--t1);
    color: var(--tm);
    font-family: var(--ff-b);
    font-size: 13px;
}
.anig-header-search-trigger:hover { background: var(--s3); border-color: var(--s4); color: var(--ts); }
.anig-header-search-trigger kbd {
    background: var(--s3);
    border: 1px solid var(--s4);
    border-radius: 4px;
    padding: 1px 6px;
    font-family: var(--ff-m);
    font-size: 10px;
    color: var(--tm);
}
.anig-icon-btn {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: var(--s2);
    border: 1px solid var(--s3);
    color: var(--ts);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--t1), color var(--t1), border-color var(--t1), transform var(--t1) var(--spring);
    flex-shrink: 0;
}
.anig-icon-btn:hover { background: var(--ac); border-color: var(--ac); color: #000; transform: scale(1.08); }
.anig-icon-btn.has-items { border-color: var(--ac); color: var(--ac); }

/* ════════════════════════════════════════════════════════════════
   STATS ROW — big numbers
   ════════════════════════════════════════════════════════════════ */
.anig-stats {
    display: flex;
    gap: 0;
    padding: 0 40px 40px;
    position: relative;
    z-index: 2;
    flex-wrap: wrap;
}
.anig-stat {
    padding-right: 32px;
    margin-right: 32px;
    border-right: 1px solid var(--s3);
}
.anig-stat:last-child { border-right: none; }
.anig-stat-n {
    font-family: var(--ff-d);
    font-size: clamp(28px, 3.5vw, 48px);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -.04em;
    background: linear-gradient(135deg, var(--ac), var(--ac2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.anig-stat-l {
    font-family: var(--ff-m);
    font-size: 10px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--tm);
    margin-top: 4px;
}

/* ════════════════════════════════════════════════════════════════
   CATEGORY TABS
   ════════════════════════════════════════════════════════════════ */
.anig-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 0 40px 32px;
    position: relative;
    z-index: 2;
    -ms-overflow-style: none;
}
.anig-tabs::-webkit-scrollbar { display: none; }
.anig-tab {
    flex-shrink: 0;
    font-family: var(--ff-b);
    font-size: 13px;
    font-weight: 500;
    padding: 7px 18px;
    border-radius: 40px;
    background: var(--s2);
    border: 1px solid var(--s3);
    color: var(--ts);
    cursor: pointer;
    transition: background var(--t1), color var(--t1), border-color var(--t1), transform var(--t1) var(--spring);
    white-space: nowrap;
    appearance: none;
    line-height: 1.4;
}
.anig-tab:hover { background: var(--s3); color: var(--tp); transform: translateY(-1px); }
.anig-tab.is-on {
    background: var(--ac);
    border-color: var(--ac);
    color: #000;
    font-weight: 600;
    box-shadow: 0 0 20px color-mix(in srgb, var(--ac) 35%, transparent);
}
.anig-tab-n { opacity: .5; font-size: .8em; margin-left: 3px; }

/* ════════════════════════════════════════════════════════════════
   TRENDING STRIP
   ════════════════════════════════════════════════════════════════ */
.anig-trending {
    padding: 0 40px 44px;
    position: relative;
    z-index: 2;
}
.anig-trending-hd {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}
.anig-trending-flame { color: var(--ac2); display: flex; }
.anig-trending-label {
    font-family: var(--ff-b);
    font-size: 13px;
    font-weight: 600;
    color: var(--tp);
    letter-spacing: -.01em;
}
.anig-trending-window {
    font-family: var(--ff-m);
    font-size: 10px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--tm);
    margin-left: auto;
}
.anig-trending-track {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scrollbar-width: none;
    cursor: grab;
    user-select: none;
    -ms-overflow-style: none;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
}
.anig-trending-track::-webkit-scrollbar { display: none; }
.anig-trending-track.grabbing { cursor: grabbing; }
.anig-tcard {
    flex-shrink: 0;
    display: flex;
    gap: 10px;
    align-items: center;
    background: var(--s1);
    border: 1px solid var(--s2);
    border-radius: 12px;
    padding: 10px 14px 10px 10px;
    text-decoration: none;
    color: inherit;
    min-width: 220px;
    max-width: 260px;
    position: relative;
    overflow: hidden;
    transition: background var(--t1), transform var(--t2) var(--ease), border-color var(--t1);
}
.anig-tcard::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 0% 50%, color-mix(in srgb, var(--cc) 12%, transparent), transparent 70%);
    opacity: 0;
    transition: opacity var(--t2);
}
.anig-tcard:hover { background: var(--s2); border-color: var(--s3); transform: translateY(-3px) scale(1.01); }
.anig-tcard:hover::before { opacity: 1; }
.anig-tcard-img {
    flex-shrink: 0;
    width: 54px; height: 54px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    background: var(--s2);
}
.anig-tcard-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s var(--ease); }
.anig-tcard:hover .anig-tcard-img img { transform: scale(1.08); }
.anig-tcard-n {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    font-family: var(--ff-d);
    font-size: 24px;
    font-weight: 900;
    color: #fff;
    text-align: center;
    background: linear-gradient(to top, rgba(0,0,0,.75), transparent);
    line-height: 1.6;
    padding-bottom: 2px;
}
.anig-tcard-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.anig-tcard-cat { font-family: var(--ff-m); font-size: 9px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--cc, var(--ac)); }
.anig-tcard-title { font-family: var(--ff-d); font-size: 12px; font-weight: 600; line-height: 1.3; color: var(--tp); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.anig-tcard-views { font-family: var(--ff-m); font-size: 9px; color: var(--tm); }
.anig-tcard-glow {
    position: absolute;
    bottom: -20px; left: -20px;
    width: 80px; height: 80px;
    border-radius: 50%;
    background: var(--cc, var(--ac));
    filter: blur(30px);
    opacity: 0;
    transition: opacity var(--t2);
    pointer-events: none;
}
.anig-tcard:hover .anig-tcard-glow { opacity: .18; }

/* ════════════════════════════════════════════════════════════════
   HERO ROW
   ════════════════════════════════════════════════════════════════ */
.anig-heroes {
    display: grid;
    gap: 20px;
    padding: 0 40px 16px;
    position: relative;
    z-index: 2;
}
.anig-heroes-1 { grid-template-columns: 1fr; }
.anig-heroes-2 { grid-template-columns: 1.5fr 1fr; }
.anig-heroes-3 { grid-template-columns: 1.4fr 1fr 1fr; }

/* ════════════════════════════════════════════════════════════════
   SECTION LABEL
   ════════════════════════════════════════════════════════════════ */
.anig-section-label {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px 40px 28px;
    position: relative;
    z-index: 2;
}
.anig-section-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--s3), transparent);
}
.anig-section-txt {
    font-family: var(--ff-m);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: .20em;
    text-transform: uppercase;
    color: var(--tm);
    white-space: nowrap;
    transition: color var(--t2);
}

/* ════════════════════════════════════════════════════════════════
   GRID
   ════════════════════════════════════════════════════════════════ */
.anig-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    padding: 0 40px;
    position: relative;
    z-index: 2;
}
@media (min-width: 900px)  { .anig-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1200px) { .anig-grid { grid-template-columns: repeat(5, 1fr); } }
@media (min-width: 1600px) { .anig-grid { grid-template-columns: repeat(6, 1fr); } }

/* ════════════════════════════════════════════════════════════════
   CARD BASE
   ════════════════════════════════════════════════════════════════ */
.anig-card {
    background: var(--s1);
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition:
        transform var(--t2) var(--ease),
        box-shadow var(--t2) var(--ease),
        background var(--t1);
    will-change: transform;
    isolation: isolate;
}
/* Inner border ring */
.anig-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 14px;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
    pointer-events: none;
    z-index: 10;
    transition: box-shadow var(--t2);
}
.anig-card:hover::after {
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.16);
}
/* Hover lift */
.anig-card:hover {
    transform: translateY(-8px) scale(1.016);
    box-shadow:
        0 30px 80px rgba(0,0,0,.7),
        0 10px 24px rgba(0,0,0,.5);
}
/* Glass theme overrides */
#anig-root[data-theme="glass"] .anig-card {
    backdrop-filter: blur(18px) saturate(1.6);
    -webkit-backdrop-filter: blur(18px) saturate(1.6);
    border: 1px solid rgba(255,255,255,.08);
}
#anig-root[data-theme="glass"] .anig-card:hover {
    border-color: rgba(255,255,255,.2);
}
/* Editorial theme overrides */
#anig-root[data-theme="editorial"] .anig-card {
    border: 1px solid rgba(0,0,0,.07);
    box-shadow: 0 2px 10px rgba(0,0,0,.04);
}

/* ── IMAGE BLOCK ─────────────────────────────────────────────── */
.anig-card-imgwrap {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
    border-radius: 14px 14px 0 0;
    background: var(--s2);
    display: block;
    text-decoration: none;
}
.anig-hero .anig-card-imgwrap { aspect-ratio: 16/9; border-radius: 14px 14px 0 0; }

.anig-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--t3) var(--ease);
    position: relative;
    z-index: 1;
}
.anig-card:hover .anig-card-img { transform: scale(1.10); }

/* Gradient scrim */
.anig-card-scrim {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(
        to bottom,
        transparent 30%,
        rgba(0,0,0,.25) 65%,
        rgba(0,0,0,.60) 100%
    );
    transition: opacity var(--t2);
}
.anig-card:hover .anig-card-scrim { opacity: .8; }

/* Shimmer sweep on hover */
.anig-card-shimmer {
    position: absolute;
    inset: 0;
    z-index: 3;
    background: linear-gradient(
        105deg,
        transparent 40%,
        rgba(255,255,255,.06) 50%,
        transparent 60%
    );
    background-size: 200% 100%;
    background-position: 200% 0;
    transition: background-position .6s var(--ease);
    pointer-events: none;
}
.anig-card:hover .anig-card-shimmer {
    background-position: -200% 0;
}

/* Arrow button — Spotify DNA, spring physics */
.anig-card-arrow {
    position: absolute;
    right: 14px;
    bottom: 14px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--ac);
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(12px) scale(.7) rotate(-45deg);
    transition:
        opacity  var(--t1) var(--ease),
        transform var(--t2) var(--spring);
    box-shadow:
        0 6px 24px rgba(0,0,0,.5),
        0 0 20px color-mix(in srgb, var(--ac) 40%, transparent);
    z-index: 5;
    pointer-events: none;
}
.anig-card:hover .anig-card-arrow {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(0deg);
}

/* View count badge */
.anig-views-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,.7);
    backdrop-filter: blur(8px);
    color: rgba(255,255,255,.9);
    font-family: var(--ff-m);
    font-size: 10px;
    padding: 3px 9px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 5;
    letter-spacing: .04em;
}

/* Hero badge */
.anig-hero-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--ac2);
    color: #000;
    font-family: var(--ff-m);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 5;
    box-shadow: 0 2px 12px rgba(0,0,0,.4);
}

/* ── CARD BODY ───────────────────────────────────────────────── */
.anig-card-body { padding: 14px 16px 18px; }

.anig-cat-pill {
    display: inline-flex;
    align-items: center;
    font-family: var(--ff-m);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: .10em;
    text-transform: uppercase;
    color: var(--cc, var(--ac));
    text-decoration: none;
    margin-bottom: 8px;
    padding: 3px 0;
    position: relative;
    transition: color var(--t1);
}
.anig-cat-pill::before {
    content: '';
    display: inline-block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--cc, var(--ac));
    margin-right: 6px;
    box-shadow: 0 0 6px var(--cc, var(--ac));
}
.anig-cat-pill:hover { color: var(--tp); }

.anig-card-title {
    font-family: var(--ff-d);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 10px;
    color: var(--tp);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    letter-spacing: -.01em;
}
.anig-card-title a { color: inherit; text-decoration: none; transition: color var(--t1); }
.anig-card-title a:hover { color: var(--ac); }

.anig-hero-title { font-size: 22px; font-weight: 900; -webkit-line-clamp: 3; letter-spacing: -.025em; line-height: 1.18; margin-bottom: 12px; }
.anig-card-exc { font-size: 14px; line-height: 1.65; color: var(--ts); margin: 0 0 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.anig-card-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--ff-b);
    font-size: 11px;
    color: var(--tm);
}
.anig-sep { opacity: .4; }
.anig-rt { display: flex; align-items: center; gap: 3px; }
.anig-bm-btn {
    background: none;
    border: none;
    color: var(--tm);
    cursor: pointer;
    padding: 3px;
    margin-left: auto;
    display: flex;
    align-items: center;
    line-height: 1;
    transition: color var(--t1), transform var(--t1) var(--spring);
}
.anig-bm-btn:hover { color: var(--ac); transform: scale(1.2); }
.anig-bm-btn.saved { color: var(--ac); }
.anig-bm-btn.saved svg { fill: var(--ac); }

/* ── AMBIENT GLOW RING ───────────────────────────────────────── */
.anig-glow-ring {
    position: absolute;
    inset: -1px;
    border-radius: 15px;
    background: transparent;
    box-shadow: 0 0 0 0 var(--cc, var(--ac));
    opacity: 0;
    pointer-events: none;
    z-index: 0;
    transition: opacity var(--t2), box-shadow var(--t2);
}
.anig-card:hover .anig-glow-ring {
    opacity: 1;
    box-shadow: 0 0 40px -8px color-mix(in srgb, var(--cc, var(--ac)) 55%, transparent);
}

/* ── BOTTOM LINE ─────────────────────────────────────────────── */
.anig-card-bottom-line {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--cc, var(--ac)), transparent);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform var(--t2) var(--ease);
    border-radius: 0 0 14px 14px;
    z-index: 5;
}
.anig-card:hover .anig-card-bottom-line { transform: scaleX(1); }

/* ════════════════════════════════════════════════════════════════
   SKELETON
   ════════════════════════════════════════════════════════════════ */
@keyframes anig-shim {
    0%   { background-position: -800px 0; }
    100% { background-position:  800px 0; }
}
.anig-sk {
    background: linear-gradient(90deg, var(--s2) 25%, var(--s3) 50%, var(--s2) 75%);
    background-size: 1600px 100%;
    animation: anig-shim 1.4s infinite linear;
    border-radius: 4px;
}
.anig-skel .anig-card-imgwrap { aspect-ratio: 3/4; border-radius: 14px 14px 0 0; }
.anig-sk-pill { height: 12px; width: 56px; margin-bottom: 9px; border-radius: 20px; }
.anig-sk-l  { height: 13px; margin-bottom: 5px; }
.anig-sk-la { width: 90%; }
.anig-sk-lb { width: 62%; }
.anig-sk-meta { height: 10px; width: 86px; margin-top: 8px; }
.anig-skel { pointer-events: none; animation: none !important; }

/* ════════════════════════════════════════════════════════════════
   ENTRANCE — spring physics per card
   ════════════════════════════════════════════════════════════════ */
@keyframes anig-in {
    0%   { opacity: 0; transform: translateY(30px) scale(.96); }
    60%  { opacity: 1; }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}
.anig-card:not(.anig-skel) { animation: anig-in .55s var(--ease) both; }

.anig-heroes .anig-card:nth-child(1) { animation-delay:   0ms; }
.anig-heroes .anig-card:nth-child(2) { animation-delay:  90ms; }
.anig-heroes .anig-card:nth-child(3) { animation-delay: 180ms; }
.anig-grid   .anig-card:nth-child(1) { animation-delay:  80ms; }
.anig-grid   .anig-card:nth-child(2) { animation-delay: 110ms; }
.anig-grid   .anig-card:nth-child(3) { animation-delay: 140ms; }
.anig-grid   .anig-card:nth-child(4) { animation-delay: 170ms; }
.anig-grid   .anig-card:nth-child(5) { animation-delay: 200ms; }
.anig-grid   .anig-card:nth-child(6) { animation-delay: 230ms; }
.anig-grid   .anig-card:nth-child(7) { animation-delay: 260ms; }
.anig-grid   .anig-card:nth-child(8) { animation-delay: 290ms; }
.anig-grid   .anig-card:nth-child(n+9) { animation-delay: 320ms; }

/* ════════════════════════════════════════════════════════════════
   SENTINEL + END
   ════════════════════════════════════════════════════════════════ */
#anig-sentinel {
    height: 80px;
    visibility: hidden;
    display: block;
    position: relative;
    z-index: 2;
}
.anig-end {
    text-align: center;
    padding: 60px 20px;
    position: relative;
    z-index: 2;
}
.anig-end-inner {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.anig-end-symbol {
    font-family: var(--ff-d);
    font-size: 48px;
    color: var(--ac);
    opacity: .3;
    line-height: 1;
    animation: anig-in .6s var(--ease) both;
}
.anig-end-text {
    font-family: var(--ff-m);
    font-size: 11px;
    letter-spacing: .20em;
    text-transform: uppercase;
    color: var(--ac);
    opacity: .6;
}

/* ════════════════════════════════════════════════════════════════
   READING PROGRESS BAR
   ════════════════════════════════════════════════════════════════ */
#anig-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--ac), var(--ac2));
    z-index: 99999;
    transition: width 80ms linear;
    pointer-events: none;
    box-shadow: 0 0 12px var(--ac);
}

/* ════════════════════════════════════════════════════════════════
   BACK TO TOP
   ════════════════════════════════════════════════════════════════ */
#anig-top {
    position: fixed;
    bottom: 28px;
    left: 28px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--s2);
    border: 1px solid var(--s3);
    color: var(--ts);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 8000;
    opacity: 0;
    pointer-events: none;
    transform: translateY(16px) rotate(-90deg);
    transition: opacity var(--t2), transform var(--t3) var(--spring), background var(--t1), color var(--t1);
    box-shadow: 0 4px 20px rgba(0,0,0,.4);
}
#anig-top.show { opacity: 1; pointer-events: all; transform: translateY(0) rotate(0deg); }
#anig-top:hover { background: var(--ac); border-color: var(--ac); color: #000; box-shadow: 0 6px 28px color-mix(in srgb, var(--ac) 40%, transparent); }

/* ════════════════════════════════════════════════════════════════
   FULL-SCREEN SEARCH OVERLAY
   ════════════════════════════════════════════════════════════════ */
#anig-search {
    position: fixed;
    inset: 0;
    z-index: 9000;
    background: rgba(6,6,6,.94);
    backdrop-filter: blur(24px) saturate(1.4);
    -webkit-backdrop-filter: blur(24px) saturate(1.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 80px;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--t2) var(--ease);
}
#anig-search.open { opacity: 1; pointer-events: all; }

.anig-search-wrap {
    width: 100%;
    max-width: 700px;
    padding: 0 24px;
    position: relative;
}
.anig-search-input {
    width: 100%;
    background: rgba(255,255,255,.09);
    border: 1.5px solid rgba(255,255,255,.14);
    border-radius: 14px;
    padding: 18px 56px 18px 56px;
    font-family: var(--ff-b);
    font-size: 20px;
    color: #fff;
    outline: none;
    transition: border-color var(--t1), background var(--t1);
    box-sizing: border-box;
    caret-color: var(--ac);
}
.anig-search-input:focus {
    border-color: var(--ac);
    background: rgba(255,255,255,.12);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--ac) 15%, transparent);
}
.anig-search-input::placeholder { color: rgba(255,255,255,.3); }
.anig-search-icon {
    position: absolute;
    left: 40px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255,255,255,.4);
    pointer-events: none;
}
.anig-search-esc {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 5px;
    padding: 2px 8px;
    font-family: var(--ff-m);
    font-size: 11px;
    color: rgba(255,255,255,.4);
    cursor: pointer;
    transition: background var(--t1), color var(--t1);
}
.anig-search-esc:hover { background: rgba(255,255,255,.15); color: #fff; }

.anig-search-results-wrap {
    width: 100%;
    max-width: 700px;
    padding: 12px 24px 0;
    max-height: 58vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.15) transparent;
}
.anig-sr {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 12px 14px;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.07);
    margin-bottom: 8px;
    transition: background var(--t1), border-color var(--t1), transform var(--t1) var(--spring);
}
.anig-sr:hover { background: rgba(255,255,255,.11); border-color: rgba(255,255,255,.16); transform: translateX(4px); }
.anig-sr-img { flex-shrink: 0; width: 60px; height: 44px; border-radius: 8px; overflow: hidden; background: rgba(255,255,255,.1); }
.anig-sr-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.anig-sr-body { flex: 1; min-width: 0; }
.anig-sr-cat { font-family: var(--ff-m); font-size: 9px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; display: block; margin-bottom: 4px; }
.anig-sr-title { font-family: var(--ff-d); font-size: 15px; font-weight: 700; color: #fff; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.anig-sr-title mark { background: color-mix(in srgb, var(--ac) 25%, transparent); color: var(--ac); border-radius: 2px; padding: 0 2px; font-style: normal; }
.anig-sr-meta { font-size: 11px; color: rgba(255,255,255,.4); margin-top: 3px; }
.anig-search-empty { text-align: center; color: rgba(255,255,255,.3); font-family: var(--ff-m); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; padding: 40px; }
.anig-search-hint { text-align: center; font-family: var(--ff-m); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.2); margin-top: 20px; }

/* ════════════════════════════════════════════════════════════════
   BOOKMARKS DRAWER
   ════════════════════════════════════════════════════════════════ */
#anig-drawer {
    position: fixed;
    top: 0;
    right: -420px;
    width: 400px;
    height: 100vh;
    background: var(--s0);
    border-left: 1px solid var(--s2);
    z-index: 8000;
    display: flex;
    flex-direction: column;
    transition: right var(--t3) var(--ease);
    box-shadow: -12px 0 60px rgba(0,0,0,.5);
}
#anig-drawer.open { right: 0; }
.anig-drawer-hd {
    display: flex;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--s2);
    flex-shrink: 0;
    gap: 10px;
}
.anig-drawer-title { font-family: var(--ff-d); font-size: 18px; font-weight: 700; color: var(--tp); flex: 1; }
.anig-drawer-cnt { font-family: var(--ff-m); font-size: 11px; color: var(--ac); }
.anig-drawer-close { background: none; border: none; color: var(--ts); cursor: pointer; font-size: 22px; line-height: 1; padding: 4px; transition: color var(--t1); }
.anig-drawer-close:hover { color: var(--tp); }
.anig-drawer-list { flex: 1; overflow-y: auto; padding: 12px; }
.anig-bm-item {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    margin-bottom: 6px;
    background: var(--s1);
    border: 1px solid var(--s2);
    transition: background var(--t1), transform var(--t1) var(--ease);
}
.anig-bm-item:hover { background: var(--s2); transform: translateX(3px); }
.anig-bm-thumb { flex-shrink: 0; width: 54px; height: 40px; border-radius: 6px; overflow: hidden; background: var(--s2); }
.anig-bm-thumb img { width: 100%; height: 100%; object-fit: cover; }
.anig-bm-info { flex: 1; min-width: 0; }
.anig-bm-title { font-family: var(--ff-d); font-size: 13px; font-weight: 600; color: var(--tp); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.anig-bm-date { font-family: var(--ff-m); font-size: 10px; color: var(--tm); margin-top: 3px; display: block; }
.anig-bm-del { flex-shrink: 0; background: none; border: none; color: var(--tm); cursor: pointer; font-size: 18px; line-height: 1; padding: 2px; transition: color var(--t1); }
.anig-bm-del:hover { color: #ff4757; }
.anig-drawer-ft { padding: 16px 24px; border-top: 1px solid var(--s2); flex-shrink: 0; }
.anig-drawer-clear { background: transparent; border: 1px solid var(--s3); border-radius: 8px; color: var(--tm); font-family: var(--ff-b); font-size: 13px; padding: 8px 16px; cursor: pointer; width: 100%; transition: background var(--t1), color var(--t1), border-color var(--t1); }
.anig-drawer-clear:hover { background: #ff4757; border-color: #ff4757; color: #fff; }
.anig-drawer-empty { text-align: center; color: var(--tm); padding: 48px 20px; font-size: 14px; line-height: 1.7; }
.anig-drawer-empty-icon { font-size: 36px; display: block; margin-bottom: 10px; opacity: .3; }

/* ════════════════════════════════════════════════════════════════
   TOAST NOTIFICATIONS
   ════════════════════════════════════════════════════════════════ */
#anig-toasts {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 9900;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}
.anig-toast {
    background: var(--s1);
    border: 1px solid var(--s3);
    border-left: 3px solid var(--ac);
    border-radius: 10px;
    padding: 12px 18px;
    font-family: var(--ff-b);
    font-size: 13px;
    color: var(--tp);
    min-width: 200px;
    max-width: 300px;
    box-shadow: 0 8px 32px rgba(0,0,0,.5);
    animation: anig-toast-in .28s var(--spring) both;
    pointer-events: all;
}
.anig-toast.err { border-left-color: #ff4757; }
@keyframes anig-toast-in  { from { opacity:0; transform:translateX(24px) scale(.95); } to { opacity:1; transform:none; } }
@keyframes anig-toast-out { to   { opacity:0; transform:translateX(24px) scale(.95); } }

/* ════════════════════════════════════════════════════════════════
   INLINE SEARCH SHORTCODE
   ════════════════════════════════════════════════════════════════ */
.anig-search-inline { position: relative; margin: 16px 0; }
.anig-search-field-inline {
    width: 100%;
    background: var(--s2);
    border: 1px solid var(--s3);
    color: var(--tp);
    border-radius: 40px;
    padding: 11px 22px;
    font-family: var(--ff-b);
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
    transition: border-color var(--t1), box-shadow var(--t1);
}
.anig-search-field-inline:focus {
    border-color: var(--ac);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--ac) 15%, transparent);
}
.anig-search-results-inline {
    position: absolute;
    top: calc(100% + 8px);
    left: 0; right: 0;
    background: var(--s1);
    border: 1px solid var(--s2);
    border-radius: 14px;
    z-index: 100;
    max-height: 380px;
    overflow-y: auto;
    box-shadow: 0 16px 48px rgba(0,0,0,.4);
}

/* ════════════════════════════════════════════════════════════════
   CURSOR FOLLOWER (magnetic effect target)
   ════════════════════════════════════════════════════════════════ */
#anig-cursor {
    position: fixed;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--ac);
    pointer-events: none;
    z-index: 99998;
    transform: translate(-50%, -50%);
    transition: transform .08s var(--ease), opacity .2s, width .2s var(--spring), height .2s var(--spring);
    opacity: 0;
    mix-blend-mode: difference;
}
#anig-cursor.active { opacity: 1; }
#anig-cursor.hovering { width: 36px; height: 36px; opacity: .6; }
body:has(#anig-root) { cursor: none; }
.anig-card *, a, button { cursor: none; }
@media (hover: none) {
    #anig-cursor { display: none; }
    body:has(#anig-root) { cursor: auto; }
    .anig-card *, a, button { cursor: auto; }
}

/* ════════════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .anig-heroes-3 { grid-template-columns: 1.3fr 1fr; }
    .anig-heroes-3 .anig-card:nth-child(3) { display: none; }
}
@media (max-width: 900px) {
    .anig-header, .anig-stats, .anig-tabs, .anig-trending,
    .anig-heroes, .anig-section-label, .anig-grid {
        padding-left: 20px;
        padding-right: 20px;
    }
    .anig-heroes-2, .anig-heroes-3 { grid-template-columns: 1fr; }
    .anig-heroes-2 .anig-card:nth-child(2),
    .anig-heroes-3 .anig-card:nth-child(n+2) { display: none; }
    .anig-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .anig-hero-title { font-size: 20px; }
    .anig-stats { gap: 0; }
    .anig-stat { padding-right: 20px; margin-right: 20px; }
    .anig-header { flex-direction: column; align-items: flex-start; }
    .anig-wordmark { font-size: clamp(32px, 8vw, 52px); }
    #anig-drawer { width: 100%; right: -100%; }
    body:has(#anig-root) { cursor: auto; }
    .anig-card *, a, button { cursor: auto; }
    #anig-cursor { display: none; }
}
@media (max-width: 600px) {
    .anig-grid { grid-template-columns: 1fr; }
    .anig-tcard { min-width: 185px; }
    #anig-toasts { left: 16px; right: 16px; bottom: 16px; }
    .anig-toast { max-width: 100%; }
}

/* ── REDUCE MOTION ───────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .anig-card, .anig-card-img, .anig-card-bottom-line,
    .anig-card-arrow, .anig-card-shimmer,
    .anig-mesh-orb { transition: none; animation: none; }
    .anig-sk { animation: none; background: var(--s2); }
}

/* ── PRINT ────────────────────────────────────────────────────── */
@media print {
    #anig-search, #anig-drawer, #anig-toasts,
    #anig-progress, #anig-top, .anig-mesh,
    #anig-canvas, #anig-cursor { display: none !important; }
    #anig-root::after { display: none; }
}
/* ════════════════════════════════════════════════════════════════
   AN Intelligence Grid v6 · ADDITIONS
   Categories Showcase · Bento Stats · No Cursor
   ════════════════════════════════════════════════════════════════ */

/* ── REMOVE MAGNETIC CURSOR (overrides v5) ───────────────────── */
#anig-cursor { display: none !important; }
body:has(#anig-root) { cursor: auto !important; }
.anig-card *, a, button { cursor: auto !important; }

/* ════════════════════════════════════════════════════════════════
   BRAND / HEADER
   ════════════════════════════════════════════════════════════════ */
.anig-brand { display: flex; flex-direction: column; }

/* ════════════════════════════════════════════════════════════════
   BENTO STATS — Reimagined
   ════════════════════════════════════════════════════════════════ */
.anig-hero-bento {
    padding: 0 40px 48px;
    position: relative;
    z-index: 2;
}
.anig-bento-grid {
    display: grid;
    grid-template-columns: 2fr 1.4fr 1fr 1.2fr;
    gap: 16px;
}
@media (max-width: 1100px) { .anig-bento-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .anig-bento-grid { grid-template-columns: 1fr; } }

.anig-bento-card {
    background: var(--s1);
    border: 1px solid var(--s2);
    border-radius: 20px;
    padding: 28px;
    position: relative;
    overflow: hidden;
    transition: border-color var(--t2), transform var(--t2) var(--ease), box-shadow var(--t2);
    animation: anig-in .6s var(--ease) both;
}
.anig-bento-card:nth-child(1) { animation-delay: 0ms; }
.anig-bento-card:nth-child(2) { animation-delay: 80ms; }
.anig-bento-card:nth-child(3) { animation-delay: 160ms; }
.anig-bento-card:nth-child(4) { animation-delay: 240ms; }
.anig-bento-card:hover { border-color: var(--s3); transform: translateY(-4px); box-shadow: 0 20px 60px rgba(0,0,0,.4); }

#anig-root[data-theme="glass"] .anig-bento-card {
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-color: rgba(255,255,255,.09);
}

.anig-bento-label {
    font-family: var(--ff-m);
    font-size: 10px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--tm);
    margin-bottom: 10px;
}
.anig-bento-number {
    font-family: var(--ff-d);
    font-size: clamp(36px, 4.5vw, 60px);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -.04em;
    background: linear-gradient(135deg, var(--ac), #00c9ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 6px;
}
.anig-bento-number--orange {
    background: linear-gradient(135deg, var(--ac2), #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.anig-bento-sub {
    font-family: var(--ff-b);
    font-size: 12px;
    color: var(--ts);
    opacity: .7;
}

/* Articles card sparkline */
.anig-bento-gfx {
    position: absolute;
    bottom: 0; right: 0;
    width: 55%; height: 60%;
    opacity: .5;
}
.anig-bento-gfx svg { width: 100%; height: 100%; }

/* Dot grid for categories card */
.anig-bento-dot-grid {
    position: absolute;
    top: 0; right: 0;
    width: 60%; height: 100%;
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 5px;
    padding: 20px 20px 20px 0;
    box-sizing: border-box;
    pointer-events: none;
}
.anig-dot {
    width: 4px; height: 4px;
    border-radius: 50%;
    background: var(--ac2);
    opacity: var(--s, 0.3);
    animation: dotPulse 3s ease-in-out var(--d, 0ms) infinite;
    align-self: center; justify-self: center;
}
@keyframes dotPulse {
    0%, 100% { opacity: var(--s); transform: scale(1); }
    50% { opacity: calc(var(--s) * 2.5); transform: scale(1.5); }
}

/* Infinity stat */
.anig-bento-infinity {
    font-family: var(--ff-d);
    font-size: 64px;
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(135deg, var(--ac), var(--ac2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 6px;
    animation: infinityPulse 4s ease-in-out infinite;
}
@keyframes infinityPulse {
    0%, 100% { transform: scale(1); filter: brightness(1); }
    50% { transform: scale(1.06); filter: brightness(1.2); }
}

/* Theme rings */
.anig-bento-theme-name {
    font-family: var(--ff-d);
    font-size: clamp(24px, 3vw, 38px);
    font-weight: 900;
    color: var(--tp);
    letter-spacing: -.03em;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.anig-bento-dot-live {
    display: inline-block;
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--ac);
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--ac) 40%, transparent);
    animation: livePulse 2s ease-in-out infinite;
    flex-shrink: 0;
}
@keyframes livePulse {
    0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ac) 50%, transparent); }
    70% { box-shadow: 0 0 0 10px transparent; }
    100% { box-shadow: 0 0 0 0 transparent; }
}
.anig-theme-rings {
    position: absolute;
    bottom: -40px; right: -40px;
    width: 120px; height: 120px;
    pointer-events: none;
}
.anig-theme-rings span {
    position: absolute;
    border-radius: 50%;
    border: 1px solid color-mix(in srgb, var(--ac) 20%, transparent);
}
.anig-theme-rings span:nth-child(1) { inset: 20px; animation: ringPulse 4s ease-in-out infinite; }
.anig-theme-rings span:nth-child(2) { inset: 5px;  animation: ringPulse 4s ease-in-out .8s infinite; }
.anig-theme-rings span:nth-child(3) { inset: -12px; animation: ringPulse 4s ease-in-out 1.6s infinite; }
@keyframes ringPulse {
    0%, 100% { opacity: .3; transform: scale(1); }
    50% { opacity: .8; transform: scale(1.04); }
}

/* ════════════════════════════════════════════════════════════════
   CATEGORIES SECTION — The Centrepiece
   ════════════════════════════════════════════════════════════════ */
.anig-cats-section {
    position: relative;
    z-index: 2;
    padding: 0 40px 60px;
    margin-bottom: 16px;
}

/* Header */
.anig-cats-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 32px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}
.anig-cats-header-left { flex: 1; min-width: 240px; }
.anig-cats-header-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

.anig-cats-eyebrow {
    font-family: var(--ff-m);
    font-size: 10px;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--ac);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.anig-cats-eyebrow-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--ac);
    box-shadow: 0 0 8px var(--ac);
    animation: livePulse 2s ease-in-out infinite;
}

.anig-cats-title {
    font-family: var(--ff-d);
    font-size: clamp(40px, 6vw, 80px);
    font-weight: 900;
    line-height: .95;
    letter-spacing: -.04em;
    margin: 0 0 16px;
    color: var(--tp);
}
.anig-cats-title span {
    background: linear-gradient(135deg, var(--ac), var(--ac2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.anig-cats-desc {
    font-family: var(--ff-b);
    font-size: 15px;
    color: var(--ts);
    line-height: 1.6;
    margin: 0;
    max-width: 480px;
}

/* Search in cats header */
.anig-cats-search-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.anig-cats-search-wrap svg {
    position: absolute;
    left: 14px;
    color: var(--tm);
    pointer-events: none;
    flex-shrink: 0;
}
.anig-cats-search {
    background: var(--s2);
    border: 1px solid var(--s3);
    border-radius: 40px;
    padding: 10px 20px 10px 40px;
    font-family: var(--ff-b);
    font-size: 13px;
    color: var(--tp);
    outline: none;
    width: 220px;
    transition: border-color var(--t1), box-shadow var(--t1), width var(--t2) var(--ease);
}
.anig-cats-search:focus {
    border-color: var(--ac);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--ac) 15%, transparent);
    width: 280px;
}
.anig-cats-search::placeholder { color: var(--tm); }

/* View toggle */
.anig-cats-view-toggle {
    display: flex;
    gap: 4px;
    background: var(--s2);
    border: 1px solid var(--s3);
    border-radius: 10px;
    padding: 4px;
}
.anig-view-btn {
    background: transparent;
    border: none;
    color: var(--tm);
    cursor: pointer;
    padding: 7px 10px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--t1), color var(--t1);
}
.anig-view-btn.is-active {
    background: var(--s3);
    color: var(--tp);
}
.anig-view-btn:hover { color: var(--tp); }

/* ── FEATURED CATEGORY CARDS ─────────────────────────────────── */
.anig-cats-featured { margin-bottom: 40px; }
.anig-cats-featured-label {
    font-family: var(--ff-m);
    font-size: 10px;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--tm);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.anig-cats-featured-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}
@media (max-width: 1200px) { .anig-cats-featured-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px)  { .anig-cats-featured-grid { grid-template-columns: repeat(2, 1fr); } }

.anig-feat-cat {
    background: var(--s1);
    border: 1px solid var(--s2);
    border-radius: 16px;
    padding: 20px 18px;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: border-color var(--t2), transform var(--t2) var(--ease), box-shadow var(--t2);
    cursor: pointer;
}
.anig-feat-cat:hover {
    border-color: var(--cc);
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0,0,0,.4), 0 0 30px color-mix(in srgb, var(--cc) 15%, transparent);
}
.anig-feat-cat-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}
.anig-feat-cat-icon { font-size: 22px; line-height: 1; }
.anig-feat-cat-count {
    font-family: var(--ff-m);
    font-size: 11px;
    color: var(--cc);
    background: color-mix(in srgb, var(--cc) 12%, transparent);
    padding: 3px 8px;
    border-radius: 20px;
    letter-spacing: .04em;
}
.anig-feat-cat-name {
    font-family: var(--ff-d);
    font-size: 14px;
    font-weight: 700;
    color: var(--tp);
    line-height: 1.25;
    letter-spacing: -.01em;
}
.anig-feat-cat-bar {
    height: 2px;
    background: var(--s3);
    border-radius: 1px;
    overflow: hidden;
    margin-top: 4px;
}
.anig-feat-cat-bar-fill {
    height: 100%;
    background: var(--cc);
    border-radius: 1px;
    min-width: 8%;
    transition: width 1s var(--ease);
}
.anig-feat-cat-pct {
    font-family: var(--ff-m);
    font-size: 9px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--tm);
}
.anig-feat-cat-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 80%, color-mix(in srgb, var(--cc) 10%, transparent), transparent 60%);
    opacity: 0;
    transition: opacity var(--t2);
    pointer-events: none;
}
.anig-feat-cat:hover .anig-feat-cat-glow { opacity: 1; }

/* ── A–Z ALPHABET NAV ────────────────────────────────────────── */
.anig-cats-az-nav {
    display: flex;
    gap: 4px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}
.anig-az-letter {
    font-family: var(--ff-m);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .08em;
    color: var(--tm);
    text-decoration: none;
    padding: 5px 9px;
    border-radius: 7px;
    border: 1px solid transparent;
    transition: background var(--t1), color var(--t1), border-color var(--t1);
    line-height: 1;
}
.anig-az-letter:hover {
    background: var(--s2);
    color: var(--tp);
    border-color: var(--s3);
}
.anig-az-letter.has-results { color: var(--ts); }

/* ── CATEGORY BODY ───────────────────────────────────────────── */
.anig-cats-body { position: relative; }

.anig-cats-letter-group {
    margin-bottom: 32px;
    transition: opacity .3s;
}
.anig-cats-letter-group.hidden { display: none; }

.anig-cats-letter-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}
.anig-letter-char {
    font-family: var(--ff-d);
    font-size: 28px;
    font-weight: 900;
    color: var(--ac);
    line-height: 1;
    letter-spacing: -.04em;
    min-width: 24px;
}
.anig-letter-count {
    font-family: var(--ff-m);
    font-size: 9px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--tm);
    white-space: nowrap;
}
.anig-letter-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--s3), transparent);
}

/* Pills row */
.anig-cats-pills-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* PILL STYLE v2 */
.anig-cat-pill-v2 {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--s1);
    border: 1px solid var(--s2);
    border-radius: 40px;
    padding: 6px 14px 6px 10px;
    text-decoration: none;
    color: var(--ts);
    font-family: var(--ff-b);
    font-size: 12px;
    font-weight: 500;
    transition: background var(--t1), border-color var(--t1), color var(--t1), transform var(--t1) var(--spring), box-shadow var(--t1);
    white-space: nowrap;
    cursor: pointer;
}
.anig-cat-pill-v2:hover {
    background: color-mix(in srgb, var(--cc) 10%, var(--s1));
    border-color: color-mix(in srgb, var(--cc) 40%, transparent);
    color: var(--tp);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 4px 16px color-mix(in srgb, var(--cc) 20%, transparent);
}
.anig-pill-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--cc);
    flex-shrink: 0;
    box-shadow: 0 0 6px color-mix(in srgb, var(--cc) 50%, transparent);
    transition: box-shadow var(--t2);
}
.anig-cat-pill-v2:hover .anig-pill-dot {
    box-shadow: 0 0 10px var(--cc);
}
.anig-pill-name { color: inherit; }
.anig-pill-n {
    font-family: var(--ff-m);
    font-size: 10px;
    color: var(--tm);
    background: var(--s2);
    padding: 1px 6px;
    border-radius: 10px;
    letter-spacing: .04em;
    transition: background var(--t1), color var(--t1);
}
.anig-cat-pill-v2:hover .anig-pill-n {
    background: color-mix(in srgb, var(--cc) 20%, transparent);
    color: var(--cc);
}

/* GRID VIEW for pills */
.anig-cats-body[data-view="grid"] .anig-cats-pills-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
}
.anig-cats-body[data-view="grid"] .anig-cat-pill-v2 {
    border-radius: 12px;
    padding: 14px 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    white-space: normal;
    font-size: 13px;
}
.anig-cats-body[data-view="grid"] .anig-pill-n {
    font-size: 11px;
    background: transparent;
    padding: 0;
}

/* Empty state */
.anig-cats-empty {
    text-align: center;
    padding: 60px 20px;
}
.anig-cats-empty-icon { font-size: 40px; margin-bottom: 12px; opacity: .4; }
.anig-cats-empty-text {
    font-family: var(--ff-d);
    font-size: 20px;
    font-weight: 700;
    color: var(--ts);
    margin-bottom: 6px;
}
.anig-cats-empty-sub { font-family: var(--ff-b); font-size: 13px; color: var(--tm); }

/* Load more */
.anig-cats-loadmore {
    text-align: center;
    padding-top: 32px;
}
.anig-cats-loadmore-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 1.5px solid var(--s3);
    border-radius: 40px;
    padding: 12px 28px;
    font-family: var(--ff-b);
    font-size: 14px;
    font-weight: 600;
    color: var(--ts);
    text-decoration: none;
    transition: background var(--t1), border-color var(--t1), color var(--t1), transform var(--t2) var(--spring), box-shadow var(--t1);
}
.anig-cats-loadmore-btn:hover {
    background: var(--ac);
    border-color: var(--ac);
    color: #000;
    transform: translateY(-3px);
    box-shadow: 0 12px 36px color-mix(in srgb, var(--ac) 35%, transparent);
}
.anig-cats-loadmore-btn svg { transition: transform var(--t2) var(--spring); }
.anig-cats-loadmore-btn:hover svg { transform: translateX(4px); }

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 900px) {
    .anig-hero-bento { padding: 0 20px 36px; }
    .anig-cats-section { padding: 0 20px 40px; }
    .anig-cats-header { flex-direction: column; align-items: flex-start; gap: 20px; }
    .anig-cats-header-right { width: 100%; }
    .anig-cats-search { width: 100%; }
    .anig-cats-search:focus { width: 100%; }
    .anig-cats-search-wrap { flex: 1; }
    .anig-cats-featured-grid { grid-template-columns: repeat(2, 1fr); }
    .anig-bento-card { padding: 20px; }
}
@media (max-width: 600px) {
    .anig-cats-az-nav { gap: 3px; }
    .anig-az-letter { padding: 4px 7px; font-size: 10px; }
}
