/*
Theme Name:        Anime News 1
Author:            Nexiamath.com
Author URI:        https://nexiamath.com
Description:       Anime News 1 is a polished, mobile-first WordPress theme for anime, manga, cosplay, pop-culture, and fandom publishers. It combines a bold branded masthead, vibrant editorial accents, responsive story grids, breaking-news modules, and reading-focused article layouts to deliver a fast, professional publishing experience across desktop and mobile.
Version:           1.0.4
Requires at least: 6.0
Tested up to:      6.7
Requires PHP:      8.0
License:           GPL v2 or later
License URI:       https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:       anime-news-1
Tags:              anime-theme, manga-theme, magazine-theme, news-theme, entertainment-theme, cosplay-blog, fandom-news, pop-culture, otaku-community, review-hub, streaming-updates, article-grid, editorial-homepage, responsive-design, mobile-first, dark-mode, collector-culture
*/

/* ═══════════════════════════════════════════════════════════
   TABLE OF CONTENTS
   1.  CSS Custom Properties
   2.  Reset & Base
   3.  Typography
   4.  Layout Container
   5.  Skip Link & Accessibility
   6.  Header – Mobile First
   7.  Breaking News Ticker
   8.  Category Nav Bar
   9.  Homepage – Hero Section
   10. Article Cards (Grid)
   11. Compact Cards (List)
   12. Section Heading
   13. Trending Strip (horizontal scroll)
   14. Single Article
   15. Author Bio Box
   16. Related Posts
   17. Share Buttons
   18. Table of Contents
   19. Sidebar & Widgets
   20. Ad Slots
   21. Comments
   22. Archive / Category / Tag Headers
   23. Search Results
   24. 404 Page
   25. Pagination
   26. Breadcrumbs
   27. Badges & Labels
   28. Footer
   29. Mobile Bottom Navigation
   30. Reading Progress Bar
   31. Back-to-Top Button
   32. Dark Mode (prefers-color-scheme: dark)
   33. Print
   34. Tablet  ≥ 768 px
   35. Desktop ≥ 1024 px
   36. Wide    ≥ 1280 px
══════════════════════════════════════════════════════════ */

/* ── 1. CSS Custom Properties ─────────────────────────────── */
:root {
    /* ─ Brand "Neon Sakura" ─ */
    --an1-primary:       #5a2ea6;
    --an1-primary-dark:  #2d175a;
    --an1-primary-tint:  #f3ecff;

    /* ─ Accent – Cyan Pulse ─ */
    --an1-accent:        #22d3ee;
    --an1-accent-dark:   #0ea5c6;
    --an1-accent-tint:   #e9fdff;

    /* ─ Breaking / Alert ─ */
    --an1-break:         #ff4d8d;
    --an1-break-tint:    #fff0f6;

    /* ─ Live / Positive ─ */
    --an1-live:          #7c3aed;

    /* ─ Surfaces ─ */
    --an1-bg:            #fff7fb;
    --an1-card:          #ffffff;
    --an1-header-bg:     rgba(255,255,255,.94);
    --an1-topbar-bg:     #2d175a;
    --an1-footer-bg:     #1c1238;

    /* ─ Text ─ */
    --an1-text:          #261b46;
    --an1-text-2:        #66588a;
    --an1-text-3:        #9e94bc;
    --an1-text-inv:      #ffffff;

    /* ─ Borders & Shadows ─ */
    --an1-border:        #e8daf7;
    --an1-border-2:      #f3eafc;
    --an1-shadow-sm:     0 2px 8px rgba(90,46,166,.08);
    --an1-shadow:        0 8px 22px rgba(90,46,166,.12);
    --an1-shadow-md:     0 18px 36px rgba(90,46,166,.18);

    /* ─ Typography ─ */
    --an1-font-body:     'Segoe UI', 'Helvetica Neue', 'Noto Sans', system-ui, -apple-system, Arial, sans-serif;
    --an1-font-head:     'Trebuchet MS', 'Arial Rounded MT Bold', 'Avenir Next', 'Segoe UI', sans-serif;
    --an1-font-ui:       'Avenir Next', 'Segoe UI', 'Helvetica Neue', system-ui, Arial, sans-serif;

    /* ─ Spacing & Layout ─ */
    --an1-radius:        12px;
    --an1-radius-md:     18px;
    --an1-radius-lg:     24px;
    --an1-gap:           16px;
    --an1-max-w:         1260px;
    --an1-sidebar-w:     308px;
    --an1-header-h:      56px;
    --an1-bottom-nav-h:  60px;      /* mobile bottom nav height            */

    /* ─ Transitions ─ */
    --an1-ease:          .2s ease;
    --an1-ease-out:      .25s cubic-bezier(.4,0,.2,1);
}

/* ── 2. Reset & Base ──────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    font-size: 16px;
}
body {
    font-family: var(--an1-font-body);
    font-size: 1rem;
    line-height: 1.8;
    color: var(--an1-text);
    background:
        radial-gradient(circle at 12% 10%, rgba(255,77,141,.12), transparent 20%),
        radial-gradient(circle at 90% 8%, rgba(34,211,238,.14), transparent 22%),
        radial-gradient(circle at 80% 84%, rgba(124,58,237,.10), transparent 26%),
        linear-gradient(180deg, #fff8fc 0%, #fff7fb 60%, #f9f6ff 100%);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-bottom: var(--an1-bottom-nav-h);
    overflow-x: hidden;
}
img, video, svg {
    max-width: 100%;
    height: auto;
    display: block;
}
a {
    color: var(--an1-primary);
    text-decoration: none;
    transition: color var(--an1-ease);
}
a:hover, a:focus-visible {
    color: var(--an1-primary-dark);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}
a:focus-visible {
    outline: 3px solid var(--an1-accent);
    outline-offset: 3px;
    border-radius: 2px;
}
ul, ol { padding-left: 1.4em; }
table { border-collapse: collapse; width: 100%; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

/* ── 3. Typography ────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--an1-font-head);
    font-weight: 700;
    line-height: 1.3;
    color: var(--an1-text);
    margin-top: 1em;
    margin-bottom: 0.5em;
}
h1 { font-size: clamp(1.75rem, 5vw, 2.5rem); margin-top: 0; }
h2 { font-size: clamp(1.35rem, 3.5vw, 1.9rem); }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.4rem); }
h4 { font-size: 1.1rem; }
h5, h6 { font-size: 1rem; }
p { margin-bottom: 1.5em; }
blockquote {
    border-left: 4px solid var(--an1-accent);
    padding: 14px 20px;
    margin: 1.6em 0;
    background: var(--an1-accent-tint);
    color: var(--an1-text-2);
    font-style: italic;
    font-size: 1.05em;
    border-radius: 0 var(--an1-radius) var(--an1-radius) 0;
}
code, pre {
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: .875em;
    background: var(--an1-primary-tint);
    border: 1px solid var(--an1-border);
    border-radius: var(--an1-radius);
}
pre { padding: 16px; overflow-x: auto; }
code { padding: 2px 5px; }
hr { border: none; border-top: 1px solid var(--an1-border); margin: 2em 0; }
figure { margin: 0; }
figcaption {
    font-size: .8rem;
    color: var(--an1-text-3);
    text-align: center;
    padding: 6px 0 0;
}

/* ── 4. Layout Container ──────────────────────────────────── */
.an1-container {
    width: 100%;
    max-width: var(--an1-max-w);
    margin-inline: auto;
    padding-inline: clamp(16px, 4vw, var(--an1-gap));
}
/* Two-column layout (main + sidebar) — stacked on mobile */
.an1-layout {
    display: flex;
    flex-direction: column;
    gap: clamp(16px, 3vw, var(--an1-gap));
    padding-block: clamp(16px, 3vw, var(--an1-gap));
}
.an1-main  { min-width: 0; width: 100%; }
.an1-sidebar { min-width: 0; width: 100%; }

/* ── 5. Skip Link & Accessibility ────────────────────────── */
.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    z-index: 9999;
}
.skip-link:focus {
    position: fixed;
    top: 0; left: 0;
    width: auto; height: auto;
    padding: 10px 16px;
    background: var(--an1-accent);
    color: #fff;
    font-weight: 700;
    font-size: .9rem;
    outline: 3px solid var(--an1-primary);
    z-index: 9999;
}
:focus-visible { outline: 2px solid var(--an1-accent); outline-offset: 3px; }

/* ── 6. Header – Mobile First ─────────────────────────────── */
#an1-header {
    background: var(--an1-header-bg);
    box-shadow: var(--an1-shadow-sm);
    position: sticky;
    top: 0;
    z-index: 900;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Top bar — hidden below 768px */
.an1-topbar {
    display: none;
    background: var(--an1-topbar-bg);
    color: #999;
    font-size: .75rem;
    padding: 5px 0;
}
.an1-topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
.an1-topbar a { color: #bbb; }
.an1-topbar a:hover { color: #fff; text-decoration: none; }
.an1-topbar-social { display: flex; gap: 10px; }

/* Main header row */
.an1-header-inner {
    height: var(--an1-header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

/* Logo / site title */
.an1-branding { display: flex; align-items: center; gap: 10px; }
.an1-branding a { text-decoration: none !important; display: flex; align-items: center; gap: 8px; }
.an1-site-title {
    font-family: var(--an1-font-head);
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--an1-primary);
    letter-spacing: -.02em;
    line-height: 1;
    white-space: nowrap;
}
.an1-site-title span { color: var(--an1-accent); }
.an1-site-desc { display: none; }

/* Header action buttons */
.an1-header-actions { display: flex; align-items: center; gap: 6px; }
.an1-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    border: none;
    background: transparent;
    color: var(--an1-text);
    border-radius: var(--an1-radius);
    transition: background .25s ease, color .25s ease;
    text-decoration: none !important;
    cursor: pointer;
}
.an1-icon-btn:hover, .an1-icon-btn:focus-visible {
    background: var(--an1-primary-tint);
    color: var(--an1-primary);
}
.an1-icon-btn svg { pointer-events: none; }

/* Desktop nav (hidden on mobile) */
#an1-primary-nav {
    display: none;
    overflow: hidden;
}

/* Mobile Drawer */
.an1-drawer-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.6);
    z-index: 800;
    opacity: 0;
    transition: opacity .3s ease;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}
.an1-drawer-overlay.open { display: block; opacity: 1; }
#an1-drawer {
    position: fixed;
    top: 0; left: -100%;
    width: min(340px, 88vw);
    height: 100%;
    background: var(--an1-card);
    z-index: 850;
    overflow-y: auto;
    transition: left .35s cubic-bezier(.4,0,.2,1);
    box-shadow: var(--an1-shadow-md);
    display: flex;
    flex-direction: column;
}
#an1-drawer.open { left: 0; }
.an1-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-bottom: 1px solid var(--an1-border);
    background: var(--an1-primary);
    color: #fff;
}
.an1-drawer-head .an1-site-title { color: #fff; }
.an1-drawer-head .an1-site-title span { color: var(--an1-accent); }
.an1-drawer-close {
    background: none;
    border: none;
    color: #fff;
    display: flex;
    align-items: center;
    padding: 6px;
    border-radius: var(--an1-radius);
}
.an1-drawer-close:hover { background: rgba(255,255,255,.15); }
.an1-drawer-search {
    padding: 14px 16px;
    border-bottom: 1px solid var(--an1-border);
}
.an1-drawer-search .an1-search-form { max-width: none; }
.an1-drawer-nav { flex: 1; overflow-y: auto; }
.an1-drawer-nav ul {
    list-style: none;
    padding: 8px 0;
    margin: 0;
}
.an1-drawer-nav ul li a,
.an1-drawer-nav ul li > span {
    display: block;
    padding: 14px 20px;
    color: var(--an1-text);
    font-size: .95rem;
    font-weight: 500;
    transition: background .2s ease, color .2s ease, padding-left .2s ease;
    text-decoration: none;
    border-bottom: 1px solid var(--an1-border-2);
}
.an1-drawer-nav ul li a:hover {
    background: var(--an1-primary-tint);
    color: var(--an1-primary);
    padding-left: 24px;
}
.an1-drawer-nav ul li.current-menu-item > a { color: var(--an1-accent); font-weight: 700; }
.an1-drawer-nav ul ul { padding-left: 16px; }

/* ── 7. Breaking News Ticker ──────────────────────────────── */
.an1-ticker {
    background: var(--an1-break);
    color: #fff;
    overflow: hidden;
    font-size: .82rem;
    font-weight: 600;
    line-height: 1;
    height: 36px;
    display: flex;
    align-items: center;
}
.an1-ticker-label {
    flex-shrink: 0;
    background: rgba(0,0,0,.25);
    padding: 0 14px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    font-size: .78rem;
    letter-spacing: .05em;
    text-transform: uppercase;
}
.an1-ticker-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #fff;
    animation: an1-blink 1.2s ease-in-out infinite;
}
@keyframes an1-blink {
    0%,100% { opacity: 1; } 50% { opacity: .3; }
}
.an1-ticker-track {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 100%;
    cursor: pointer;
}
.an1-ticker-inner {
    display: flex;
    gap: 48px;
    height: 100%;
    align-items: center;
    white-space: nowrap;
    animation: an1-ticker 30s linear infinite;
    will-change: transform;
}
.an1-ticker-inner:hover { animation-play-state: paused; }
.an1-ticker-inner a { color: #fff; text-decoration: none; }
.an1-ticker-inner a:hover { text-decoration: underline; }
@keyframes an1-ticker {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ── 8. Category Nav Bar ──────────────────────────────────── */
/*
 * Pill-button row. Scrolls horizontally when many categories.
 * Active pill = primary bg + white text. Hover = tint bg.
 */
.an1-cat-nav {
    background: var(--an1-bg);
    border-top: 2px solid var(--an1-border);
    border-bottom: 2px solid var(--an1-border);
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;           /* hide scrollbar – touch-scroll still works */
    position: relative;
    scroll-behavior: smooth;
}
.an1-cat-nav::-webkit-scrollbar { display: none; }
.an1-cat-nav-inner {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px var(--an1-gap);
    width: max-content;
    min-width: 100%;
}
/* Each category pill */
.an1-cat-nav a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    border-radius: 100px;
    font-size: .77rem;
    font-weight: 700;
    color: var(--an1-text-2);
    white-space: nowrap;
    background: transparent;
    border: 1.5px solid var(--an1-border);
    transition: color .18s ease, background .18s ease, border-color .18s ease;
    text-decoration: none !important;
    text-transform: uppercase;
    letter-spacing: .04em;
    cursor: pointer;
    min-height: 32px;
}
.an1-cat-nav a:hover {
    color: var(--an1-primary);
    background: var(--an1-primary-tint);
    border-color: var(--an1-primary);
}
.an1-cat-nav a.active,
.an1-cat-nav a[aria-current="page"] {
    color: #fff;
    background: var(--an1-primary);
    border-color: var(--an1-primary);
    font-weight: 700;
}
/* Fade edges when content overflows */
.an1-cat-nav::before,
.an1-cat-nav::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    width: 32px;
    pointer-events: none;
    z-index: 2;
}
.an1-cat-nav::before {
    left: 0;
    background: linear-gradient(to right, var(--an1-bg) 40%, transparent);
}
.an1-cat-nav::after {
    right: 0;
    background: linear-gradient(to left, var(--an1-bg) 40%, transparent);
}

/* ── 9. Homepage – Hero Section ───────────────────────────── */
.an1-hero {
    margin-bottom: var(--an1-gap);
}
/* Mobile: single stacked card */
.an1-hero-main {
    position: relative;
    background: var(--an1-text);
    overflow: hidden;
    border-radius: var(--an1-radius-md);
}
.an1-hero-main img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
    transition: transform .5s ease;
}
.an1-hero-main:hover img { transform: scale(1.04); }
.an1-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 30%, rgba(15,20,40,.85) 100%);
}
.an1-hero-caption {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 20px 16px 14px;
    color: #fff;
}
.an1-hero .an1-badge {
    display: inline-block;
    margin-bottom: 8px;
}
.an1-hero-title {
    font-family: var(--an1-font-head);
    font-size: clamp(1.2rem, 4.5vw, 1.75rem);
    font-weight: 900;
    color: #fff;
    line-height: 1.25;
    margin-bottom: 10px;
    text-shadow: 0 2px 8px rgba(0,0,0,.4);
}
.an1-hero-title a { color: inherit; text-decoration: none; }
.an1-hero-title a:hover { text-decoration: underline; }
.an1-hero-meta {
    font-size: .78rem;
    color: rgba(255,255,255,.8);
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}
/* Hero side stories — stacked on mobile, beside hero on desktop */
.an1-hero-side { display: flex; flex-direction: column; gap: 2px; margin-top: 2px; }
.an1-hero-side-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px;
    background: var(--an1-card);
    border-radius: var(--an1-radius);
    transition: background var(--an1-ease);
    text-decoration: none !important;
}
.an1-hero-side-item:hover { background: var(--an1-primary-tint); }
.an1-hero-side-img {
    flex-shrink: 0;
    width: 90px;
    height: 60px;
    border-radius: var(--an1-radius);
    overflow: hidden;
    background: var(--an1-border);
}
.an1-hero-side-img img {
    width: 100%; height: 100%;
    object-fit: cover;
}
.an1-hero-side-body { flex: 1; min-width: 0; }
.an1-hero-side-title {
    font-family: var(--an1-font-head);
    font-size: .88rem;
    font-weight: 700;
    color: var(--an1-text);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 4px;
}
.an1-hero-side-meta { font-size: .73rem; color: var(--an1-text-3); }

/* ── 10. Article Cards (Grid) ─────────────────────────────── */
.an1-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
    gap: clamp(14px, 3vw, var(--an1-gap));
}
.an1-card {
    background: var(--an1-card);
    border-radius: var(--an1-radius-md);
    box-shadow: var(--an1-shadow-sm);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow .3s ease, transform .3s ease;
    height: 100%;
}
.an1-card:hover {
    box-shadow: var(--an1-shadow);
    transform: translateY(-3px);
}
.an1-card__thumb {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: linear-gradient(135deg, var(--an1-border) 0%, var(--an1-border-2) 100%);
}
.an1-card__thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .4s cubic-bezier(.4,0,.2,1);
    display: block;
}
.an1-card:hover .an1-card__thumb img { transform: scale(1.06); }
.an1-card__thumb-placeholder {
    width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--an1-border) 0%, var(--an1-border-2) 100%);
    min-height: 180px;
    color: var(--an1-text-3);
    font-size: .85rem;
}
.an1-card__badge-wrap { position: absolute; top: 10px; left: 10px; }
.an1-card__body {
    padding: clamp(14px, 3vw, 18px);
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 8px;
}
.an1-card__title {
    font-family: var(--an1-font-head);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--an1-text);
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.an1-card__title a { color: inherit; text-decoration: none; }
.an1-card__title a:hover { color: var(--an1-primary); text-decoration: underline; }
.an1-card__excerpt {
    font-size: .9rem;
    color: var(--an1-text-2);
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 14px;
}
.an1-card__meta {
    margin-top: auto;
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: .75rem;
    color: var(--an1-text-3);
    flex-wrap: wrap;
}
.an1-card__meta a { color: var(--an1-text-3); }
.an1-card__meta a:hover { color: var(--an1-primary); }
.an1-card__meta-sep { color: var(--an1-border); }

/* ── 11. Compact Cards (List Style – mobile default for "Terbaru") ── */
.an1-list { display: flex; flex-direction: column; gap: 3px; }
.an1-list-card {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 14px;
    background: var(--an1-card);
    border-radius: var(--an1-radius);
    transition: background .25s ease, transform .25s ease;
    text-decoration: none !important;
}
.an1-list-card:hover {
    background: var(--an1-primary-tint);
    transform: translateX(4px);
}
.an1-list-card__img {
    flex-shrink: 0;
    width: 100px;
    height: 68px;
    border-radius: var(--an1-radius);
    overflow: hidden;
    background: linear-gradient(135deg, var(--an1-border) 0%, var(--an1-border-2) 100%);
    position: relative;
}
.an1-list-card__img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}
.an1-list-card:hover .an1-list-card__img img { transform: scale(1.1); }
.an1-list-card__body { flex: 1; min-width: 0; }
.an1-list-card__cat { display: block; font-size: .7rem; font-weight: 700; color: var(--an1-accent); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 3px; }
.an1-list-card__title {
    display: block;
    font-family: var(--an1-font-head);
    font-size: .9rem;
    font-weight: 700;
    color: var(--an1-text);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 4px;
}
.an1-list-card:hover .an1-list-card__title { color: var(--an1-primary); }
.an1-list-card__meta { font-size: .72rem; color: var(--an1-text-3); }
/* Rank number beside list cards */
.an1-list-card__rank {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--an1-primary-tint);
    color: var(--an1-primary);
    font-weight: 800;
    font-size: .8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: center;
}
.an1-list-card:nth-child(-n+3) .an1-list-card__rank {
    background: var(--an1-accent);
    color: #fff;
}

/* ── 12. Section Heading ──────────────────────────────────── */
.an1-section { margin-bottom: 28px; }
.an1-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--an1-primary);
}
.an1-section-head h2 {
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--an1-primary);
    font-family: var(--an1-font-ui);
}
.an1-section-head .an1-see-all {
    font-size: .78rem;
    font-weight: 600;
    color: var(--an1-accent);
    text-transform: uppercase;
    letter-spacing: .04em;
    text-decoration: none;
    white-space: nowrap;
}
.an1-section-head .an1-see-all:hover { color: var(--an1-accent-dark); text-decoration: underline; }

/* ── 13. Trending Strip (horizontal scroll) ───────────────── */
.an1-trending-strip {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    max-width: 100%;
    margin-inline: calc(var(--an1-gap) * -1);
    padding-inline: var(--an1-gap);
    padding-bottom: 4px;
}
.an1-trending-strip::-webkit-scrollbar { display: none; }
.an1-trending-inner {
    display: flex;
    gap: 10px;
    width: max-content;
}
.an1-trending-card {
    width: 160px;
    flex-shrink: 0;
    background: var(--an1-card);
    border-radius: var(--an1-radius-md);
    overflow: hidden;
    box-shadow: var(--an1-shadow-sm);
    text-decoration: none !important;
    transition: box-shadow var(--an1-ease);
}
.an1-trending-card:hover { box-shadow: var(--an1-shadow); }
.an1-trending-card__img {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--an1-border);
    position: relative;
}
.an1-trending-card__img img { width: 100%; height: 100%; object-fit: cover; }
.an1-trending-card__body { padding: 10px; }
.an1-trending-card__title {
    font-family: var(--an1-font-head);
    font-size: .82rem;
    font-weight: 700;
    color: var(--an1-text);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.an1-trending-card:hover .an1-trending-card__title { color: var(--an1-primary); }

/* ── 14. Single Article ────────────────────────────────────── */
.an1-article {
    background: var(--an1-card);
    border-radius: var(--an1-radius-md);
    box-shadow: var(--an1-shadow-sm);
    padding: 20px 16px;
    margin-bottom: 24px;
}
.an1-article__cat-row {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}
.an1-article__title {
    font-family: var(--an1-font-head);
    font-size: clamp(1.3rem, 5vw, 2rem);
    font-weight: 900;
    color: var(--an1-text);
    line-height: 1.2;
    margin-bottom: 14px;
}
.an1-article__meta {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    font-size: .8rem;
    color: var(--an1-text-2);
    padding-bottom: 14px;
    border-bottom: 1px solid var(--an1-border);
    margin-bottom: 18px;
}
.an1-article__meta a { color: var(--an1-text-2); }
.an1-article__meta a:hover { color: var(--an1-primary); }
.an1-article__author-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.an1-article__meta-sep { color: var(--an1-border); }

/* Featured image */
.an1-article__featured-img {
    margin: 0 -16px 20px;
    overflow: hidden;
}
.an1-article__featured-img img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
}
.an1-article__caption { padding: 8px 16px; font-size: .78rem; color: var(--an1-text-3); }

/* Article body content */
.an1-content {
    font-size: 1.0625rem;
    line-height: 1.9;
    color: var(--an1-text);
    max-width: 72ch;
}
.an1-content p { margin-bottom: 1.75em; letter-spacing: 0.01em; }
.an1-content h2 {
    font-family: var(--an1-font-head);
    font-size: clamp(1.15rem, 3.5vw, 1.5rem);
    font-weight: 700;
    margin: 2em 0 .6em;
    padding-top: 1em;
    border-top: 1px solid var(--an1-border-2);
    color: var(--an1-primary);
    scroll-margin-top: calc(var(--an1-header-h) + 10px);
}
.an1-content h3 {
    font-size: clamp(1rem, 3vw, 1.2rem);
    margin: 1.6em 0 .5em;
    color: var(--an1-text);
    scroll-margin-top: calc(var(--an1-header-h) + 10px);
}
.an1-content ul, .an1-content ol { margin-bottom: 1.4em; padding-left: 1.6em; }
.an1-content ul li, .an1-content ol li { margin-bottom: .4em; }
.an1-content img {
    border-radius: var(--an1-radius);
    margin: .6em auto;
}
.an1-content a {
    color: var(--an1-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.an1-content a:hover { color: var(--an1-accent); }
.an1-content figure { margin: 1.5em 0; text-align: center; }

/* Article footer: tags + share */
.an1-article__footer {
    padding-top: 20px;
    border-top: 1px solid var(--an1-border);
    margin-top: 24px;
}
.an1-tags-row { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }

/* ── 15. Author Bio Box ────────────────────────────────────── */
.an1-author-box {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 18px;
    background: var(--an1-primary-tint);
    border-radius: var(--an1-radius-md);
    border-left: 4px solid var(--an1-primary);
    margin-bottom: 24px;
}
.an1-author-box__avatar {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
}
.an1-author-box__body { flex: 1; min-width: 0; }
.an1-author-box__name {
    font-family: var(--an1-font-head);
    font-size: 1rem;
    font-weight: 700;
    color: var(--an1-primary);
    margin-bottom: 4px;
}
.an1-author-box__bio { font-size: .85rem; color: var(--an1-text-2); line-height: 1.6; }
.an1-author-box__link { font-size: .8rem; color: var(--an1-accent); font-weight: 600; text-decoration: none; }
.an1-author-box__link:hover { text-decoration: underline; }

/* ── 16. Related Posts ─────────────────────────────────────── */
.an1-related { margin-bottom: 28px; }

/* ── 17. Share Buttons ─────────────────────────────────────── */
.an1-share {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 10px;
}
.an1-share-label { font-size: .8rem; font-weight: 600; color: var(--an1-text-2); margin-right: 4px; }
.an1-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: .78rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: opacity var(--an1-ease);
    color: #fff !important;
    line-height: 1;
}
.an1-share-btn:hover { opacity: .85; text-decoration: none !important; }
.an1-share-btn--fb     { background: #1877F2; }
.an1-share-btn--tw     { background: #000; }
.an1-share-btn--wa     { background: #25D366; }
.an1-share-btn--tg     { background: #0088cc; }
.an1-share-btn--link   { background: var(--an1-text-3); }
.an1-share-btn--link.copied { background: var(--an1-live); }

/* Mobile sticky share bar */
#an1-share-bar {
    display: none;
    position: fixed;
    bottom: var(--an1-bottom-nav-h);
    left: 0; right: 0;
    background: var(--an1-card);
    border-top: 1px solid var(--an1-border);
    padding: 8px 16px;
    z-index: 800;
    box-shadow: 0 -3px 12px rgba(0,0,0,.07);
}
/* Show on single post mobile */
body.single #an1-share-bar { display: flex; gap: 6px; align-items: center; overflow-x: auto; }

/* ── 18. Table of Contents ─────────────────────────────────── */
.an1-toc {
    background: var(--an1-primary-tint);
    border: 1px solid var(--an1-border);
    border-left: 4px solid var(--an1-primary);
    border-radius: 0 var(--an1-radius-md) var(--an1-radius-md) 0;
    padding: 14px 18px;
    margin: 0 0 1.8em;
    font-size: .88rem;
}
.an1-toc summary {
    font-weight: 700;
    cursor: pointer;
    color: var(--an1-primary);
    font-size: .9rem;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.an1-toc summary::after { content: '▾'; font-size: .8rem; }
.an1-toc[open] summary::after { content: '▴'; }
.an1-toc ol { margin-top: 10px; padding-left: 1.4em; }
.an1-toc ol li { margin-bottom: .3em; }
.an1-toc ol li a { color: var(--an1-text-2); text-decoration: none; }
.an1-toc ol li a:hover { color: var(--an1-primary); text-decoration: underline; }

/* ── 19. Sidebar & Widgets ─────────────────────────────────── */
.an1-widget {
    background: var(--an1-card);
    border-radius: var(--an1-radius-md);
    box-shadow: var(--an1-shadow-sm);
    overflow: hidden;
    margin-bottom: 20px;
}
.an1-widget-title {
    font-family: var(--an1-font-ui);
    font-size: .82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--an1-text-inv);
    background: var(--an1-primary);
    padding: 10px 16px;
    margin: 0;
}
.an1-widget > *, .an1-widget-body { padding: 14px 16px; }
.an1-widget-title + * { padding-top: 12px; }
.an1-widget ul { list-style: none; padding: 0; margin: 0; }
.an1-widget ul li {
    padding: 9px 0;
    border-bottom: 1px solid var(--an1-border-2);
    font-size: .88rem;
}
.an1-widget ul li:last-child { border-bottom: none; }
.an1-widget ul li a { color: var(--an1-text); font-weight: 500; }
.an1-widget ul li a:hover { color: var(--an1-primary); text-decoration: none; }

/* ── 20. Ad Slots ────────────────────────────────────────────── */
.an1-ad-slot {
    text-align: center;
    margin-bottom: 20px;
}
.an1-ad-slot--banner { padding: 10px 0; }
.an1-ad-slot--rect { max-width: 320px; margin-inline: auto; }
.an1-ad-label {
    font-size: .65rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--an1-text-3);
    margin-bottom: 4px;
}

/* ── 21. Comments ──────────────────────────────────────────── */
.an1-comments-wrap {
    background: var(--an1-card);
    border-radius: var(--an1-radius-md);
    box-shadow: var(--an1-shadow-sm);
    padding: 20px 16px;
    margin-bottom: 24px;
}
.an1-comments-title {
    font-family: var(--an1-font-head);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--an1-primary);
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--an1-accent);
}
.an1-comment-list { list-style: none; padding: 0; margin: 0 0 24px; }
.an1-comment-item { padding: 14px 0; border-bottom: 1px solid var(--an1-border-2); }
.an1-comment-item:last-child { border-bottom: none; }
.an1-comment-header { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 8px; }
.an1-comment-avatar { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; }
.an1-comment-meta { font-size: .8rem; color: var(--an1-text-3); }
.an1-comment-author { font-weight: 700; color: var(--an1-text); font-size: .9rem; }
.an1-comment-text { font-size: .9rem; line-height: 1.7; padding-left: 50px; }
.an1-comment-reply-link {
    display: inline-block;
    padding: 4px 12px;
    background: var(--an1-primary-tint);
    color: var(--an1-primary);
    border-radius: 12px;
    font-size: .75rem;
    font-weight: 600;
    margin-top: 6px;
    margin-left: 50px;
    text-decoration: none;
}
.an1-comment-reply-link:hover { background: var(--an1-primary); color: #fff; }
/* Nested comments */
.children { padding-left: 20px; list-style: none; }

/* Comment form */
.comment-respond { margin-top: 24px; }
.comment-respond h3 { font-size: 1rem; font-weight: 700; color: var(--an1-primary); margin-bottom: 14px; }
.comment-form p { margin-bottom: 12px; }
.comment-form label { display: block; font-size: .82rem; font-weight: 600; margin-bottom: 5px; color: var(--an1-text-2); }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 10px 13px;
    border: 1px solid var(--an1-border);
    border-radius: var(--an1-radius);
    font-size: .9rem;
    background: var(--an1-bg);
    color: var(--an1-text);
    transition: border-color var(--an1-ease);
}
.comment-form input:focus,
.comment-form textarea:focus { outline: none; border-color: var(--an1-primary); }
.comment-form textarea { min-height: 120px; resize: vertical; }
.submit {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    background: var(--an1-primary);
    color: #fff;
    font-weight: 700;
    font-size: .9rem;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: background var(--an1-ease);
}
.submit:hover { background: var(--an1-primary-dark); }

/* ── 22. Archive / Category / Tag Headers ─────────────────── */
.an1-archive-header {
    background: var(--an1-card);
    border-radius: var(--an1-radius-md);
    padding: 20px 16px;
    margin-bottom: 20px;
    border-left: 5px solid var(--an1-accent);
    box-shadow: var(--an1-shadow-sm);
}
.an1-archive-header__label {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--an1-accent);
    margin-bottom: 4px;
}
.an1-archive-header__title {
    font-family: var(--an1-font-head);
    font-size: clamp(1.2rem, 4vw, 1.8rem);
    font-weight: 900;
    color: var(--an1-primary);
    line-height: 1.2;
}
.an1-archive-header__desc { font-size: .88rem; color: var(--an1-text-2); margin-top: 6px; }

/* ── 23. Search Results ──────────────────────────────────────── */
.an1-search-header {
    padding: 20px;
    background: var(--an1-card);
    border-radius: var(--an1-radius-md);
    margin-bottom: 20px;
    text-align: center;
    box-shadow: var(--an1-shadow-sm);
}
.an1-search-header p { margin: 0 0 12px; font-size: .9rem; color: var(--an1-text-2); }
.an1-search-form {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 640px;
    margin-inline: auto;
}
.an1-widget .search-form,
.an1-widget .wp-block-search,
.an1-widget .wp-block-search__inside-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}
.an1-search-form__field {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1 1 auto;
    min-width: 0;
    padding: 0 16px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 10px 24px rgba(8,12,24,.18);
    transition: border-color var(--an1-ease), box-shadow var(--an1-ease), background var(--an1-ease);
}
.an1-widget .search-form label,
.an1-widget .wp-block-search__label {
    display: none;
}
.an1-widget .search-field,
.an1-widget .wp-block-search__input {
    flex: 1 1 auto;
    min-width: 0;
    padding: 14px 16px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 16px;
    background: rgba(255,255,255,.04);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 10px 24px rgba(8,12,24,.18);
    color: var(--an1-text);
    font-size: .95rem;
    transition: border-color var(--an1-ease), box-shadow var(--an1-ease), background var(--an1-ease);
}
.an1-widget .search-field::placeholder,
.an1-widget .wp-block-search__input::placeholder {
    color: var(--an1-text-3);
}
.an1-widget .search-form:focus-within .search-field,
.an1-widget .wp-block-search__inside-wrapper:focus-within .wp-block-search__input {
    border-color: rgba(34,211,238,.6);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 0 0 3px rgba(34,211,238,.14), 0 14px 30px rgba(8,12,24,.24);
    background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04));
    outline: none;
}
.an1-search-form:focus-within .an1-search-form__field {
    border-color: rgba(34,211,238,.6);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 0 0 3px rgba(34,211,238,.14), 0 14px 30px rgba(8,12,24,.24);
    background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04));
}
.an1-search-form__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--an1-accent);
    flex-shrink: 0;
}
.an1-search-form input {
    flex: 1;
    min-width: 0;
    padding: 14px 0;
    border: none;
    background: transparent;
    color: var(--an1-text);
    font-size: .95rem;
}
.an1-search-form input::placeholder { color: var(--an1-text-3); }
.an1-search-form input:focus { outline: none; }
.an1-search-form__submit {
    flex-shrink: 0;
    padding: 14px 20px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--an1-primary), var(--an1-accent));
    color: #fff;
    border: none;
    font-weight: 700;
    font-size: .9rem;
    cursor: pointer;
    letter-spacing: .02em;
    box-shadow: 0 12px 24px rgba(90,46,166,.28);
    transition: transform var(--an1-ease), box-shadow var(--an1-ease), filter var(--an1-ease);
}
.an1-widget .search-submit,
.an1-widget .wp-block-search__button {
    flex-shrink: 0;
    padding: 14px 20px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--an1-primary), var(--an1-accent));
    color: #fff;
    border: none;
    font-weight: 700;
    font-size: .9rem;
    cursor: pointer;
    letter-spacing: .02em;
    box-shadow: 0 12px 24px rgba(90,46,166,.28);
    transition: transform var(--an1-ease), box-shadow var(--an1-ease), filter var(--an1-ease);
}
.an1-search-form__submit:hover,
.an1-search-form__submit:focus-visible,
.an1-widget .search-submit:hover,
.an1-widget .search-submit:focus-visible,
.an1-widget .wp-block-search__button:hover,
.an1-widget .wp-block-search__button:focus-visible {
    transform: translateY(-1px);
    filter: brightness(1.06);
    box-shadow: 0 16px 28px rgba(90,46,166,.34);
}

#an1-search-bar .an1-search-form {
    max-width: 760px;
}

.an1-widget .an1-search-form,
.an1-drawer-search .an1-search-form {
    max-width: none;
}

.an1-widget .an1-search-form,
.an1-drawer-search .an1-search-form,
#an1-search-bar .an1-search-form {
    margin-inline: 0;
}

.an1-widget .an1-search-form {
    padding: 16px;
}

.an1-widget.widget_search .search-form,
.an1-widget .wp-block-search {
    padding: 16px;
}

.an1-widget .an1-search-form__field,
.an1-drawer-search .an1-search-form__field {
    background: rgba(255,255,255,.04);
}

@media (max-width: 640px) {
    .an1-search-form,
    .an1-widget .search-form,
    .an1-widget .wp-block-search,
    .an1-widget .wp-block-search__inside-wrapper {
        flex-direction: column;
        align-items: stretch;
    }
    .an1-search-form__submit,
    .an1-widget .search-submit,
    .an1-widget .wp-block-search__button {
        width: 100%;
    }
}

/* Search card (compact in results) */
.an1-search-card {
    display: flex;
    gap: 14px;
    background: var(--an1-card);
    border-radius: var(--an1-radius-md);
    padding: 14px;
    box-shadow: var(--an1-shadow-sm);
    margin-bottom: 12px;
    text-decoration: none !important;
    transition: box-shadow var(--an1-ease);
}
.an1-search-card:hover { box-shadow: var(--an1-shadow); }
.an1-search-card__img {
    flex-shrink: 0;
    width: 100px;
    height: 68px;
    border-radius: var(--an1-radius);
    overflow: hidden;
    background: var(--an1-border);
}
.an1-search-card__img img { width: 100%; height: 100%; object-fit: cover; }
.an1-search-card__body { flex: 1; min-width: 0; }
.an1-search-card__title {
    font-family: var(--an1-font-head);
    font-size: .95rem;
    font-weight: 700;
    color: var(--an1-text);
    line-height: 1.3;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.an1-search-card:hover .an1-search-card__title { color: var(--an1-primary); }
.an1-search-card__excerpt { font-size: .8rem; color: var(--an1-text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.an1-search-card__meta { font-size: .72rem; color: var(--an1-text-3); margin-top: 5px; }

/* ── 24. 404 Page ────────────────────────────────────────────── */
.an1-404 {
    text-align: center;
    padding: 48px 20px;
    max-width: 500px;
    margin-inline: auto;
}
.an1-404__number {
    font-size: clamp(5rem, 20vw, 8rem);
    font-family: var(--an1-font-head);
    font-weight: 900;
    color: var(--an1-border);
    line-height: 1;
}
.an1-404__title { font-size: 1.4rem; font-weight: 700; color: var(--an1-text); margin-bottom: 10px; }
.an1-404__text { color: var(--an1-text-2); font-size: .9rem; margin-bottom: 24px; }
.an1-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: var(--an1-accent);
    color: #fff !important;
    font-weight: 700;
    border-radius: 999px;
    text-decoration: none !important;
    transition: background var(--an1-ease);
    font-size: .9rem;
}
.an1-btn-primary:hover { background: var(--an1-accent-dark); }

/* ── 25. Pagination ───────────────────────────────────────────── */
.an1-pagination {
    display: flex;
    gap: 6px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    padding: 24px 0;
}
.an1-pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    border-radius: var(--an1-radius);
    padding: 0 10px;
    font-size: .88rem;
    font-weight: 600;
    background: var(--an1-card);
    color: var(--an1-text);
    border: 1px solid var(--an1-border);
    text-decoration: none;
    transition: background var(--an1-ease), color var(--an1-ease), border-color var(--an1-ease);
}
.an1-pagination .page-numbers:hover,
.an1-pagination .page-numbers.current {
    background: var(--an1-primary);
    color: #fff;
    border-color: var(--an1-primary);
}

/* ── 26. Breadcrumbs ─────────────────────────────────────────── */
.an1-breadcrumb {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
    font-size: .78rem;
    color: var(--an1-text-3);
    margin-bottom: 16px;
    padding: 10px 0;
}
.an1-breadcrumb a { color: var(--an1-text-3); text-decoration: none; }
.an1-breadcrumb a:hover { color: var(--an1-primary); text-decoration: underline; }
.an1-breadcrumb-current { color: var(--an1-text-2); font-weight: 500; }
.an1-breadcrumb-sep { color: var(--an1-border); }

/* ── 27. Badges & Labels ─────────────────────────────────────── */
.an1-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 3px;
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    line-height: 1.5;
    text-decoration: none !important;
}
.an1-badge--cat { background: var(--an1-accent); color: #fff; }
.an1-badge--break { background: var(--an1-break); color: #fff; }
.an1-badge--live { background: var(--an1-live); color: #fff; }
.an1-badge--opinion { background: var(--an1-primary); color: #fff; }
.an1-badge--tag {
    background: var(--an1-primary-tint);
    color: var(--an1-primary);
    border: 1px solid var(--an1-border);
    border-radius: 14px;
    padding: 4px 12px;
    font-size: .75rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
}
.an1-badge--tag:hover { background: var(--an1-primary); color: #fff; border-color: var(--an1-primary); }

/* Reading time chip */
.an1-reading-time {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: .73rem;
    color: var(--an1-text-3);
}

/* ── 28. Footer ───────────────────────────────────────────────── */
#an1-footer {
    background: var(--an1-footer-bg);
    color: rgba(255,255,255,.75);
    padding: 40px 0 0;
    margin-top: 40px;
}
.an1-footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    padding-bottom: 32px;
}
.an1-footer-col h3 {
    font-family: var(--an1-font-ui);
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: rgba(255,255,255,.5);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,.1);
}
.an1-footer-brand p { font-size: .85rem; line-height: 1.7; margin-top: 10px; }
.an1-footer-brand .an1-site-title { color: #fff; font-size: 1.4rem; }
.an1-footer-col ul { list-style: none; padding: 0; margin: 0; }
.an1-footer-col ul li { padding: 5px 0; }
.an1-footer-col ul li a {
    color: rgba(255,255,255,.7);
    font-size: .85rem;
    text-decoration: none;
    transition: color var(--an1-ease);
}
.an1-footer-col ul li a:hover { color: var(--an1-accent); }
.an1-footer-social { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.an1-footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,.1);
    color: rgba(255,255,255,.8);
    font-size: .8rem;
    transition: background var(--an1-ease), color var(--an1-ease);
    text-decoration: none;
}
.an1-footer-social a:hover { background: var(--an1-accent); color: #fff; }
.an1-footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding: 14px 0;
    font-size: .78rem;
    color: rgba(255,255,255,.45);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.an1-footer-bottom a { color: rgba(255,255,255,.6); }
.an1-footer-bottom a:hover { color: var(--an1-accent); text-decoration: none; }

/* ── 29. Mobile Bottom Navigation ─────────────────────────── */
#an1-bottom-nav {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: var(--an1-bottom-nav-h);
    background: var(--an1-card);
    border-top: 1px solid var(--an1-border);
    display: flex;
    z-index: 850;
    box-shadow: 0 -2px 10px rgba(0,0,0,.07);
}
.an1-bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: .65rem;
    font-weight: 600;
    color: var(--an1-text-3);
    text-decoration: none !important;
    background: transparent;
    border: none;
    transition: color .2s ease, transform .2s ease;
    padding: 8px 4px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: .03em;
}
.an1-bottom-nav-item.active,
.an1-bottom-nav-item:hover {
    color: var(--an1-primary);
    transform: translateY(-2px);
}
.an1-bottom-nav-item.active svg path { stroke: var(--an1-primary); }

/* ── 30. Reading Progress Bar ───────────────────────────────── */
#an1-progress {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    width: 0%;
    background: var(--an1-accent);
    z-index: 9999;
    transition: width .1s linear;
}

/* ── 31. Back-to-Top Button ─────────────────────────────────── */
#an1-backtop {
    position: fixed;
    bottom: calc(var(--an1-bottom-nav-h) + 16px);
    right: 16px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--an1-primary);
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--an1-shadow);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--an1-ease), transform var(--an1-ease);
    z-index: 700;
}
#an1-backtop.visible { opacity: 1; pointer-events: auto; }
#an1-backtop:hover { background: var(--an1-primary-dark); transform: translateY(-2px); }

/* ── 32. Dark Mode ──────────────────────────────────────────── */
@media (prefers-color-scheme: dark) {
    :root {
        --an1-bg:            #0F1523;
        --an1-card:          #1A2234;
        --an1-header-bg:     #141C2D;
        --an1-footer-bg:     #0A0F1A;
        --an1-border:        #2A3550;
        --an1-border-2:      #1E2D44;
        --an1-text:          #E4EAFB;
        --an1-text-2:        #8FA3C0;
        --an1-text-3:        #526070;
        --an1-primary-tint:  #1A2D46;
        --an1-accent-tint:   #2A1800;
        --an1-break-tint:    #230000;
        --an1-shadow-sm:     0 1px 4px rgba(0,0,0,.3);
        --an1-shadow:        0 3px 12px rgba(0,0,0,.4);
        --an1-shadow-md:     0 6px 24px rgba(0,0,0,.5);
    }
    .an1-hero-overlay { background: linear-gradient(to bottom, transparent 20%, rgba(5,8,20,.9) 100%); }
}

/* ── 33. Print ──────────────────────────────────────────────── */
@media print {
    #an1-header,
    #an1-bottom-nav,
    #an1-share-bar,
    #an1-backtop,
    .an1-sidebar,
    .an1-ticker,
    .an1-cat-nav,
    .an1-related,
    .an1-share,
    #an1-footer,
    #an1-progress { display: none !important; }
    body { background: #fff; color: #000; padding-bottom: 0; }
    .an1-article { box-shadow: none; padding: 0; }
    .an1-content a::after { content: ' (' attr(href) ')'; font-size: .8em; color: #555; }
}

/* ═══════════════════════════════════════════════════
   34. TABLET ≥ 768px
══════════════════════════════════════════════════ */
@media (min-width: 768px) {
    :root {
        --an1-gap: 24px;
        --an1-header-h: 64px;
    }

    /* Show top bar */
    .an1-topbar { display: block; }

    /* Bigger site title */
    .an1-site-title { font-size: 1.6rem; }
    /* Show tagline on tablet where primary nav is still hidden (hamburger only) */
    .an1-site-desc {
        display: block;
        font-size: .78rem;
        color: var(--an1-text-3);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 260px;
    }

    /* Footer grid: 2 columns */
    .an1-footer-grid { grid-template-columns: repeat(2, 1fr); }

    /* Card grid: 2 columns */
    .an1-grid { grid-template-columns: repeat(2, 1fr); }

    /* Hero: main + side stories side by side */
    .an1-hero-wrap {
        display: grid;
        grid-template-columns: 1fr 280px;
        gap: 4px;
        border-radius: var(--an1-radius-md);
        overflow: hidden;
    }
    .an1-hero-main { border-radius: 0; }
    .an1-hero-side { flex-direction: column; gap: 2px; }
    .an1-hero-side-item {
        flex: 1;
        padding: 10px;
        border-radius: 0;
        gap: 10px;
    }
    .an1-hero-side-img { width: 80px; height: 54px; }
    .an1-hero-side-title { font-size: .83rem; -webkit-line-clamp: 2; }

    /* Article padding */
    .an1-article { padding: 28px 32px; }
    .an1-article__featured-img { margin-inline: -32px; border-radius: 0; }

    /* Trending cards wider */
    .an1-trending-card { width: 190px; }

    /* Comments text less indent */
    .an1-comment-text { padding-left: 60px; }

    /* Hide mobile bottom nav on tablet+ */
    #an1-bottom-nav { display: none; }
    body { padding-bottom: 0; }
    body.single #an1-share-bar { display: none; }
}

/* ═══════════════════════════════════════════════════
   35. DESKTOP ≥ 1024px  (layout & content only)
   Nav stays on hamburger until 1200px so small
   laptops / tablets always have a tidy header.
══════════════════════════════════════════════════ */
@media (min-width: 1024px) {
    /* Sidebar layout */
    .an1-layout {
        flex-direction: row;
        align-items: flex-start;
        gap: 28px;
        padding-block: 28px;
    }
    .an1-main {
        flex: 1 1 auto;
        min-width: 0;
        width: auto;
        max-width: calc(100% - var(--an1-sidebar-w) - 28px);
    }
    .an1-sidebar {
        flex: 0 0 var(--an1-sidebar-w);
        flex-shrink: 0;
        width: var(--an1-sidebar-w);
        position: sticky;
        top: calc(var(--an1-header-h) + 8px);
        max-height: calc(100vh - var(--an1-header-h) - 20px);
        overflow-y: auto;
        scrollbar-width: thin;
    }

    /* Card grid: 3 columns */
    .an1-main .an1-grid { grid-template-columns: repeat(3, 1fr); }

    /* Hero wrap */
    .an1-hero-wrap { grid-template-columns: 1fr 300px; }

    /* Article padding */
    .an1-article { padding: 36px 40px; }
    .an1-article__featured-img { margin-inline: -40px; }

    /* Footer grid: 4 col */
    .an1-footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }

    /* Trending becomes a tidy grid inside the main column */
    .an1-trending-strip {
        overflow: visible;
        padding-bottom: 0;
    }
    .an1-trending-inner {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        width: 100%;
    }
    .an1-trending-card {
        width: auto;
        min-width: 0;
    }
    .an1-trending-strip {
        margin-inline: 0;
        padding-inline: 0;
    }
}

/* ═══════════════════════════════════════════════════
   35b. FULL DESKTOP NAV ≥ 1200px
   Hamburger → desktop nav switch point.
   JS overflowNav() auto-collapses extras into
   a "More ▾" dropdown so any number of menu
   items stays tidy.
══════════════════════════════════════════════════ */
@media (min-width: 1200px) {
    /* Show desktop nav – fills remaining header space */
    #an1-primary-nav {
        display: flex;
        flex: 1;
        min-width: 0;
        overflow: visible;
        align-items: stretch;
        position: relative;
    }
    #an1-primary-nav > ul {
        display: flex;
        gap: 0;
        list-style: none;
        padding: 0;
        margin: 0;
        flex-wrap: nowrap;
        align-items: stretch;
        /* items left-aligned; overflow goes right so overflowNav() works correctly */
        justify-content: flex-start;
    }
    #an1-primary-nav > ul > li { position: relative; flex-shrink: 0; }
    #an1-primary-nav > ul > li > a {
        display: flex;
        align-items: center;
        gap: 4px;
        padding: 0 11px;
        height: var(--an1-header-h);
        font-size: .80rem;
        font-weight: 700;
        color: var(--an1-text);
        text-decoration: none;
        text-transform: uppercase;
        letter-spacing: .04em;
        border-bottom: 3px solid transparent;
        transition: color var(--an1-ease), border-color var(--an1-ease);
        white-space: nowrap;
    }
    #an1-primary-nav > ul > li > a:hover,
    #an1-primary-nav > ul > li.current-menu-item > a,
    #an1-primary-nav > ul > li.current-menu-ancestor > a {
        color: var(--an1-primary);
        border-bottom-color: var(--an1-accent);
    }

    /* Sub-menu dropdown */
    #an1-primary-nav ul li > ul {
        display: none;
        position: absolute;
        top: 100%; left: 0;
        background: var(--an1-card);
        box-shadow: var(--an1-shadow-md);
        min-width: 200px;
        border-top: 3px solid var(--an1-accent);
        border-radius: 0 0 var(--an1-radius-md) var(--an1-radius-md);
        z-index: 1001;
        flex-direction: column;
        padding: 6px 0;
        white-space: nowrap;
    }
    #an1-primary-nav ul li:hover > ul,
    #an1-primary-nav li.an1-nav-more.open > ul { display: flex; }
    #an1-primary-nav ul li ul li { position: relative; }
    #an1-primary-nav ul li ul li a {
        display: block;
        padding: 10px 16px;
        font-size: .82rem;
        text-transform: none;
        letter-spacing: 0;
        border-bottom: 1px solid var(--an1-border-2);
        color: var(--an1-text-2);
        font-weight: 500;
        white-space: nowrap;
        height: auto;
    }
    #an1-primary-nav ul li ul li a:hover { color: var(--an1-primary); background: var(--an1-primary-tint); border-bottom-color: var(--an1-border-2); }
    #an1-primary-nav ul li ul li:last-child a { border-bottom: none; }

    /* "More ▾" overflow item – added by JS */
    #an1-primary-nav li.an1-nav-more { flex-shrink: 0; }
    #an1-primary-nav li.an1-nav-more > .an1-nav-more-toggle {
        display: flex;
        align-items: center;
        gap: 4px;
        padding: 0 11px;
        height: var(--an1-header-h);
        font-size: .80rem;
        font-weight: 700;
        color: var(--an1-text);
        text-transform: uppercase;
        letter-spacing: .04em;
        border: 0;
        border-bottom: 3px solid transparent;
        background: transparent;
        cursor: pointer;
        white-space: nowrap;
    }
    #an1-primary-nav li.an1-nav-more > .an1-nav-more-toggle:hover,
    #an1-primary-nav li.an1-nav-more.open > .an1-nav-more-toggle {
        color: var(--an1-primary);
        border-bottom-color: var(--an1-accent);
    }
    /* More dropdown opens to the right edge */
    #an1-primary-nav li.an1-nav-more > ul { left: auto; right: 0; }

    /* Hide hamburger – desktop nav is active */
    #an1-hamburger { display: none; }

    /* Tagline hidden: primary nav uses the horizontal space */
    .an1-site-desc { display: none; }

    /* Branding never squishes */
    .an1-branding { flex-shrink: 0; }
}

/* ═══════════════════════════════════════════════════
   36. WIDE ≥ 1280px
══════════════════════════════════════════════════ */
@media (min-width: 1280px) {
    :root { --an1-gap: 28px; }
    .an1-site-title { font-size: 1.8rem; }
}

/* ── 37. Anime News 1 Overrides ───────────────────────────── */
.an1-header {
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 24px rgba(90,46,166,.08);
}

/* Category nav accent line at the very top */
.an1-cat-nav {
    border-top-color: var(--an1-accent);
}

/* Subtle text-shadow on nav links for crisp look */
#an1-primary-nav ul li a,
.an1-ticker-label {
    text-shadow: 0 1px 0 rgba(0,0,0,.12);
}

.an1-card,
.an1-widget,
.an1-related-card,
.an1-article,
.an1-author-box,
.an1-search-card,
.an1-list-card {
    border: 2px solid rgba(255,77,141,.10);
    box-shadow: var(--an1-shadow);
}

.an1-card,
.an1-widget,
.an1-related-card {
    overflow: hidden;
    position: relative;
}

.an1-card::before,
.an1-widget::before {
    content: '';
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #ff4d8d, #8b5cf6, #22d3ee);
}

.an1-hero-title,
.an1-article-title,
.an1-card-title,
.an1-section-title,
.an1-search-card__title {
    letter-spacing: -.02em;
}

.an1-ticker {
    background: linear-gradient(90deg, #2d175a 0%, #5a2ea6 50%, #ff4d8d 100%);
}

.an1-badge,
.an1-badge--tag {
    border-radius: 999px;
    box-shadow: 0 8px 20px rgba(255,77,141,.18);
}

#an1-footer {
    background: linear-gradient(180deg, #241346 0%, #1c1238 100%);
}

.an1-share-btn,
.an1-btn-primary,
.an1-pagination .page-numbers {
    border-radius: 999px;
}
