/* BrickSearch: dark theme matching bricksearch.app (near-black, cyan accents, Inter). */

:root {
    --ink: #ffffff;
    --muted: #a0a0a0;
    --line: rgba(0, 159, 227, 0.2);
    --page: #0a0a0a;
    --surface: rgba(255, 255, 255, 0.05);
    --surface-2: #16213e;
    --accent: #009fe3;
    --accent-deep: #0077b3;
    --accent-hover: #0088cc;
    --accent-hover-deep: #006699;
    --radius: 28px;
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    --nav-h: 72px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--ink);
    background: var(--page);
    line-height: 1.6;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    background: var(--accent);
    color: #fff;
    padding: 0.6rem 1rem;
    z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.wrap {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
}

/* Nav */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 40;
    display: flex;
    justify-content: center;
    padding: 1rem 0;
    pointer-events: none;
}

.nav-bar {
    pointer-events: auto;
    width: min(1200px, calc(100% - 40px));
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 0.4rem 0.6rem 0.4rem 0.4rem;
    border-radius: 999px;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    color: #fff;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.nav.is-solid .nav-bar {
    background: rgba(10, 10, 10, 0.98);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.brand {
    display: flex;
    align-items: center;
    flex: none;
    text-decoration: none;
}

.brand img {
    display: block;
    height: 40px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin-right: auto;
    font-size: 0.95rem;
    font-weight: 500;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}
.nav-links a:hover { color: var(--accent); }

.nav-cta {
    margin-left: auto;
    background: linear-gradient(135deg, var(--accent), var(--accent-deep));
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.65rem 1.3rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}
.nav-cta:hover {
    background: linear-gradient(135deg, var(--accent-hover), var(--accent-hover-deep));
    transform: translateY(-2px);
}

/* Series dropdown */
.nav-links > li { position: relative; }

.has-sub { display: flex; align-items: center; gap: 0.1rem; }

.sub-toggle {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem;
    border: 0;
    border-radius: 6px;
    background: none;
    color: #fff;
    cursor: pointer;
    transition: color 0.3s ease;
}
.sub-toggle:hover { color: var(--accent); }
.sub-toggle svg { width: 12px; height: 12px; transition: transform 0.2s ease; }
.has-sub.open .sub-toggle svg { transform: rotate(180deg); }

.sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: -1rem;
    z-index: 50;
    padding-top: 1rem;
}
.has-sub.open .sub-menu { display: block; }

.sub-panel {
    width: 480px;
    padding: 0.9rem;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(10, 10, 10, 0.98);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.nav-links .sub-panel .all {
    display: block;
    padding: 0.35rem 0.6rem 0.7rem;
    color: var(--accent);
    font-weight: 700;
}

.sub-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.15rem;
}

.nav-links .sub-grid a {
    display: block;
    padding: 0.45rem 0.6rem;
    border-radius: 10px;
    font-size: 0.9rem;
    white-space: nowrap;
}
.nav-links .sub-grid a:hover { background: rgba(0, 159, 227, 0.15); color: var(--accent); }

/* Features dropdown reuses the Series dropdown, as a single column */
.has-sub.has-features .sub-panel { width: 250px; }
.has-sub.has-features .sub-grid { grid-template-columns: 1fr; }

@media (min-width: 861px) {
    .has-sub:hover .sub-menu,
    .has-sub:focus-within .sub-menu { display: block; }
    .has-sub:hover .sub-toggle svg,
    .has-sub:focus-within .sub-toggle svg { transform: rotate(180deg); }
}

/* Mobile menu button */
.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: none;
    color: #fff;
    cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }

/* Hero */
.hero {
    background: linear-gradient(135deg, #0a0a0a 0%, #0f1a2e 100%);
    color: #fff;
    padding: 8.5rem 0 0;
    overflow: hidden;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(0, 159, 227, 0.06) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(0, 159, 227, 0.06) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

.hero > * { position: relative; }

.hero-top {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2.5rem;
    align-items: end;
}

.hero h1 {
    font-size: clamp(3.4rem, 6.4vw, 5.4rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.05;
    background: linear-gradient(135deg, #ffffff 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-copy p {
    font-size: 1.1rem;
    color: var(--muted);
    line-height: 1.6;
}

.hero-copy .since {
    color: #fff;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 0.55rem;
}

.stores {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 1.4rem;
}

.store {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    background: #fff;
    color: #000;
    text-decoration: none;
    border-radius: 12px;
    padding: 0.45rem 0.9rem 0.45rem 0.7rem;
    min-width: 168px;
    line-height: 1.05;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.store:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

.store small { display: block; font-size: 0.62rem; font-weight: 500; letter-spacing: 0.02em; color: #444; }
.store strong { display: block; font-size: 1.05rem; font-weight: 600; letter-spacing: -0.02em; }
.store svg { width: 22px; height: 22px; flex: none; }

.hero-note {
    margin-top: 0.9rem;
    font-size: 0.88rem;
    font-weight: 500;
    color: #666;
}

.hero-art {
    width: min(1100px, 100%);
    margin: 2.6rem auto 0;
    height: 460px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.hero-art img {
    width: 280px;
    height: 560px;
    object-fit: cover;
    object-position: center 42%;
    border-radius: 28px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 159, 227, 0.2);
}

.hero-art img:first-child { transform: translateY(18px) rotate(-6deg); }
.hero-art img:nth-child(2) { width: 300px; z-index: 2; margin: 0 -28px; }
.hero-art img:last-child { transform: translateY(36px) rotate(6deg); }

/* Series spotlight (home, above the fold) */
.spotlight {
    width: min(1200px, calc(100% - 40px));
    margin: 2.6rem auto 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.spot-card {
    display: flex;
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: linear-gradient(135deg, #16213e 0%, #0f1a2e 100%);
    overflow: hidden;
    text-decoration: none;
    transition: border-color 0.3s ease, transform 0.3s ease;
}
.spot-card:hover { border-color: rgba(0, 159, 227, 0.6); transform: translateY(-3px); }

.spot-img {
    flex: 0 0 42%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem;
    background: #fff;
}
.spot-img img {
    width: 100%;
    height: 100%;
    max-height: 210px;
    object-fit: contain;
}

.spot-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0.45rem;
    padding: 1.2rem 1.4rem;
}
.spot-body h2 { font-size: 1.7rem; letter-spacing: -0.03em; line-height: 1.15; }
.spot-body p { color: var(--muted); font-size: 0.92rem; line-height: 1.5; }

.spot-tag {
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.spot-tag.now { background: linear-gradient(135deg, var(--accent), var(--accent-deep)); color: #fff; }
.spot-tag.next { border: 1px solid rgba(0, 159, 227, 0.6); color: var(--accent); }

.spot-link { margin-top: 0.2rem; color: var(--accent); font-weight: 600; font-size: 0.92rem; }

/* Sections */
section { padding: 5.5rem 0; }

.center { text-align: center; }

h2 {
    font-size: clamp(2.1rem, 4vw, 3.3rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.1;
    color: #fff;
}

.lede {
    color: var(--muted);
    font-size: 1.05rem;
    max-width: 640px;
    margin: 0.9rem auto 0;
}

/* Bento (features) */
.bento {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr 0.85fr;
    grid-template-rows: auto auto;
    gap: 16px;
    margin-top: 2.4rem;
}

.tile {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.6rem 1.5rem 1.4rem;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.tile h3 {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 0.4rem;
}

.tile p { color: var(--muted); font-size: 0.95rem; }

.tile .stat {
    margin-top: 1.4rem;
    font-size: 2.6rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--accent);
}

.tile.dark {
    background: linear-gradient(135deg, #16213e 0%, #0f1a2e 100%);
    grid-row: span 2;
}

.tile.dark p { color: #c5ceda; }

.tile.wide { grid-column: span 2; }

.tile img.shot {
    width: 100%;
    height: 280px;
    object-fit: cover;
    object-position: center 30%;
    border-radius: 18px;
    margin-top: 1.1rem;
}

.mini-row {
    display: flex;
    gap: 0.7rem;
    margin-top: 1.1rem;
}

.mini-row img {
    width: 92px;
    height: 150px;
    object-fit: cover;
    object-position: center 35%;
    border-radius: 14px;
}

/* Reviews */
.reviews {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 2.4rem;
}

.review {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 1.35rem 1.3rem 1.15rem;
    box-shadow: var(--shadow);
}

.stars { color: #f5a524; letter-spacing: 0.08em; font-size: 0.95rem; }

.review h3 {
    font-size: 1.02rem;
    font-weight: 700;
    margin: 0.45rem 0 0.35rem;
    letter-spacing: -0.02em;
}

.review p { color: #c5ceda; font-size: 0.92rem; }

.review .who {
    display: block;
    margin-top: 0.8rem;
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 500;
}

/* Pricing */
.plans {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    max-width: 820px;
    margin: 2.2rem auto 0;
    align-items: start;
}

.plan {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 28px;
    padding: 1.7rem 1.6rem 1.5rem;
    box-shadow: var(--shadow);
    text-align: left;
}

.plan.plus {
    background: linear-gradient(180deg, var(--accent) 0%, var(--accent-deep) 100%);
    border-color: transparent;
    color: #fff;
}

.plan-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.35rem;
}

.plan h3 { font-size: 1.15rem; font-weight: 700; }

.price {
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
    margin: 0.7rem 0 0.15rem;
}

.period { font-size: 0.9rem; color: var(--muted); }
.plan.plus .period { color: rgba(255, 255, 255, 0.8); }

.plan ul { list-style: none; margin: 1.15rem 0 1.3rem; }

.plan li {
    padding: 0.32rem 0 0.32rem 1.4rem;
    position: relative;
    font-size: 0.95rem;
    color: #c5ceda;
}

.plan.plus li { color: #fff; }

.plan li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

.plan.plus li::before { color: #fff; }

.toggle {
    display: inline-flex;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    padding: 3px;
    font-size: 0.78rem;
    font-weight: 600;
}

.toggle button {
    border: 0;
    background: transparent;
    color: #fff;
    font: inherit;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    cursor: pointer;
}

.toggle button[aria-pressed="true"] { background: #fff; color: var(--accent-deep); }

.plan-cta {
    display: block;
    text-align: center;
    text-decoration: none;
    background: linear-gradient(135deg, var(--accent), var(--accent-deep));
    color: #fff;
    font-weight: 600;
    border-radius: 8px;
    padding: 0.8rem 1rem;
    transition: all 0.3s ease;
}
.plan-cta:hover {
    background: linear-gradient(135deg, var(--accent-hover), var(--accent-hover-deep));
    transform: translateY(-2px);
}

.plan.plus .plan-cta { background: #fff; color: var(--accent-deep); }
.plan.plus .plan-cta:hover { background: #f0f0f0; }

.fine {
    text-align: center;
    color: var(--muted);
    font-size: 0.9rem;
    margin-top: 1.3rem;
}

/* FAQ */
.faq-list { max-width: 760px; margin: 2rem auto 0; display: flex; flex-direction: column; gap: 0.7rem; }

.faq-item {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 1.05rem 2.6rem 1.05rem 1.2rem;
    font-weight: 600;
    position: relative;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
    content: "+";
    position: absolute;
    right: 1.15rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent);
    font-size: 1.3rem;
    font-weight: 400;
}

.faq-item[open] summary::after { content: "×"; }

.faq-item p { color: var(--muted); padding: 0 1.2rem 1.1rem; font-size: 0.95rem; }

/* Close (download CTA) */
.close {
    padding-top: 2rem;
    padding-bottom: 5rem;
    background: linear-gradient(135deg, #0a0a0a 0%, #0f1a2e 100%);
}

.close .mark {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    margin: 0 auto 1.2rem;
}

.close .stores { justify-content: center; }

.close h2 { margin-bottom: 0.6rem; }

/* Footer */
footer {
    padding: 2rem 0 2.4rem;
    color: var(--muted);
    font-size: 0.85rem;
    background: #0a0a0a;
}

.foot {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    border-top: 1px solid var(--line);
    padding-top: 1.4rem;
}

.foot a { color: var(--muted); text-decoration: none; margin-left: 1rem; transition: color 0.3s ease; }
.foot a:hover { color: var(--accent); }

.foot-cols {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 200px));
    gap: 2rem 3rem;
    padding-bottom: 2rem;
}

.foot-cols h4 {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.7rem;
}

.foot-cols a {
    display: block;
    color: var(--muted);
    text-decoration: none;
    padding: 0.2rem 0;
    transition: color 0.3s ease;
}
.foot-cols a:hover { color: var(--accent); }

/* Sub pages */
.page-hero {
    background: linear-gradient(135deg, #0a0a0a 0%, #0f1a2e 100%);
    padding: 8.5rem 0 3rem;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(0, 159, 227, 0.06) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(0, 159, 227, 0.06) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

.page-hero .wrap { position: relative; }

.page-hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.1;
    max-width: 880px;
    background: linear-gradient(135deg, #ffffff 0%, #bfe9fb 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.page-hero .eyebrow {
    display: inline-block;
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    margin-bottom: 0.9rem;
}
.page-hero .eyebrow:hover { text-decoration: underline; }

.page-hero .meta { color: var(--muted); margin-top: 1rem; font-size: 0.95rem; }
.page-hero .lede { margin-left: 0; margin-right: 0; }

.page-body { padding: 3rem 0 5rem; }

.prose {
    max-width: 760px;
    margin: 0 auto;
    color: #d4d9e1;
    font-size: 1.05rem;
    line-height: 1.75;
}

.prose > * + * { margin-top: 1.1rem; }

.prose h2 { font-size: 1.7rem; letter-spacing: -0.03em; margin-top: 2.6rem; }
.prose h3 { font-size: 1.25rem; font-weight: 700; color: #fff; margin-top: 2rem; }
.prose h4 { font-size: 1.05rem; font-weight: 700; color: #fff; margin-top: 1.6rem; }

.prose strong, .prose b { color: #fff; font-weight: 600; }

.prose a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.prose a:hover { color: #4dc3f5; }

/* Download button inside article text (feature pages): keep the button look, not the link look. */
.prose a.plan-cta {
    display: inline-block;
    padding: 0.85rem 2rem;
    color: #fff;
    text-decoration: none;
}
.prose a.plan-cta:hover { color: #fff; }

.prose ul, .prose ol { padding-left: 1.4rem; }
.prose li + li { margin-top: 0.4rem; }
.prose li::marker { color: var(--accent); }

.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }

.prose img {
    height: auto;
    max-width: 100%;
    max-height: 680px;
    margin: 0 auto;
    border-radius: 14px;
    border: 1px solid var(--line);
}

.prose figure { margin: 1.6rem 0; }

/* Portrait app screenshots on feature pages: keep the real aspect ratio */
.prose figure.shot { display: flex; justify-content: center; }
.prose figure.shot img {
    width: min(320px, 100%);
    height: auto;
    max-height: none;
    aspect-ratio: 576 / 1024;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: var(--shadow);
}
.prose figcaption { color: var(--muted); font-size: 0.85rem; text-align: center; margin-top: 0.5rem; }

.prose blockquote {
    border-left: 3px solid var(--accent);
    padding-left: 1.1rem;
    color: #fff;
}

.prose table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 0.55rem 0.7rem; text-align: left; }

.prose .cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.2rem;
    align-items: start;
}
.prose .cols > div > * + * { margin-top: 1.1rem; }

.prose .gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.8rem;
    align-items: start;
}
.prose .gallery figure { margin: 0; }

.prose .video {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--line);
}
.prose .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.post-nav {
    max-width: 760px;
    margin: 3.2rem auto 0;
    padding-top: 1.6rem;
    border-top: 1px solid var(--line);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.post-nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    line-height: 1.35;
    padding: 1rem 1.1rem;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
    transition: border-color 0.3s ease;
}
.post-nav a:hover { border-color: rgba(0, 159, 227, 0.5); }
.post-nav a.next { text-align: right; }
.post-nav small { display: block; color: var(--accent); font-weight: 600; margin-bottom: 0.25rem; }

/* News */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 2.4rem;
}

.page-body .news-grid { margin-top: 0; }

.post-card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 22px;
    overflow: hidden;
    text-decoration: none;
    text-align: left;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.post-card:hover { transform: translateY(-4px); border-color: rgba(0, 159, 227, 0.5); }

.post-card .thumb {
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #16213e 0%, #0f1a2e 100%);
    position: relative;
    overflow: hidden;
}
.post-card .thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.post-card .thumb img.fallback {
    inset: auto;
    top: 50%;
    left: 50%;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    transform: translate(-50%, -50%);
}

.post-card .body { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.post-card time { color: var(--accent); font-size: 0.8rem; font-weight: 600; }
.post-card h3 { font-size: 1.12rem; font-weight: 700; line-height: 1.3; letter-spacing: -0.02em; color: #fff; }
.post-card p { color: var(--muted); font-size: 0.92rem; }

.more-link {
    display: inline-block;
    margin-top: 1.8rem;
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
}
.more-link:hover { text-decoration: underline; }

/* Series */
.series-jump {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.6rem;
    max-width: 880px;
}

.series-jump a {
    min-width: 2.6rem;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    transition: border-color 0.3s ease, color 0.3s ease;
}
.series-jump a:hover { border-color: rgba(0, 159, 227, 0.6); color: var(--accent); }

.series-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.series-card {
    scroll-margin-top: 100px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 1.4rem 1.5rem 1.3rem;
    box-shadow: var(--shadow);
}

.series-card h2 { font-size: 1.6rem; letter-spacing: -0.03em; line-height: 1.2; }

.series-card.upcoming {
    grid-column: 1 / -1;
    border-color: rgba(0, 159, 227, 0.6);
    background: linear-gradient(135deg, #16213e 0%, #0f1a2e 100%);
}

.badge {
    display: inline-block;
    margin-left: 0.7rem;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), var(--accent-deep));
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    vertical-align: middle;
}

.series-meta {
    list-style: none;
    display: grid;
    gap: 0.2rem;
    margin-top: 0.8rem;
    color: var(--muted);
    font-size: 0.92rem;
}
.series-meta strong { display: inline-block; min-width: 5.2rem; color: #fff; font-weight: 600; }

.series-card .note { margin-top: 0.8rem; color: #c5ceda; font-size: 0.92rem; }

.series-names {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.9rem;
}
.series-names li {
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--surface);
    font-size: 0.9rem;
}

.series-card h2 a { color: inherit; text-decoration: none; }
.series-card h2 a:hover { color: var(--accent); }
.series-card .more-link { margin-top: 1rem; font-size: 0.92rem; }

.page-body > .wrap > .fine { margin-top: 2rem; }

/* Single series page */
.figure-heading { font-size: 1.6rem; margin-bottom: 1.4rem; }

.figure-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 0.7rem;
}

.figure-list li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1rem;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
    font-weight: 500;
}

.figure-list .num {
    flex: none;
    min-width: 2rem;
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.series-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem 2rem;
    margin-top: 2.6rem;
    padding: 1.6rem 1.8rem;
    border: 1px solid rgba(0, 159, 227, 0.4);
    border-radius: 22px;
    background: linear-gradient(135deg, #16213e 0%, #0f1a2e 100%);
}
.series-cta h2 { font-size: 1.4rem; }
.series-cta p { margin-top: 0.3rem; color: var(--muted); }
.series-cta .stores { margin-top: 0; }

/* Collectibles dropdown reuses the Series dropdown, in two columns */
.has-sub.has-collect .sub-panel { width: 520px; }
.has-sub.has-collect .sub-grid { grid-template-columns: repeat(2, 1fr); }

/* Checklist with a photo of each figure */
.figure-list.has-img { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.figure-list.has-img li { flex-direction: column; align-items: stretch; gap: 0; padding: 0; overflow: hidden; }
.figure-pic { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; }
.figure-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.figure-cap { display: flex; align-items: center; gap: 0.6rem; padding: 0.75rem 0.9rem; }

/* Series and collectibles photos */
.series-media {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 16px;
    margin-bottom: 2.6rem;
}
.series-media.single { grid-template-columns: minmax(0, 720px); }
.series-photo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #fff;
    box-shadow: var(--shadow);
}
.series-photo img { display: block; width: 100%; height: 100%; object-fit: contain; }

.card-img {
    display: block;
    margin-bottom: 1.1rem;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border-radius: 14px;
    background: #fff;
}
.card-img img { display: block; width: 100%; height: 100%; object-fit: contain; }
.series-card.upcoming .card-img { max-width: 420px; }
.series-card .tba { color: var(--muted); font-size: 0.92rem; margin-top: 0.8rem; }
.page-body .tba { color: var(--muted); }

.page-hero h1 .badge { -webkit-text-fill-color: #fff; font-size: 0.8rem; margin-left: 1rem; }

@media (max-width: 1000px) {
    .news-grid { grid-template-columns: repeat(2, 1fr); }
    .series-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
    .nav-bar { position: relative; gap: 0.75rem; }
    .nav-toggle { display: inline-flex; }

    .nav-links {
        display: none;
        position: absolute;
        top: calc(100% + 8px);
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        margin: 0;
        padding: 0.5rem;
        max-height: calc(100vh - 110px);
        overflow-y: auto;
        border: 1px solid var(--line);
        border-radius: 18px;
        background: #0a0a0a;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    }
    .nav.open .nav-links { display: flex; }

    .nav-links > li > a { display: block; padding: 0.75rem 0.8rem; }

    .has-sub { flex-wrap: wrap; }
    .has-sub > a { flex: 1; }
    .sub-toggle { padding: 0.75rem; }
    .sub-menu { position: static; width: 100%; padding-top: 0; }
    .sub-panel {
        width: auto;
        padding: 0.2rem 0 0.5rem 0.8rem;
        border: 0;
        background: none;
        box-shadow: none;
    }
    .sub-grid { grid-template-columns: repeat(2, 1fr); }
    .has-sub.has-collect .sub-panel { width: auto; }
    .has-sub.has-collect .sub-grid { grid-template-columns: 1fr; }
    .series-media { grid-template-columns: 1fr; }

    .hero { padding-top: 6.6rem; }

    .hero-top {
        grid-template-columns: 1fr;
        gap: 1.3rem;
        text-align: left;
    }

    .hero h1 { font-size: clamp(2.7rem, 12vw, 3.6rem); }

    .spotlight { grid-template-columns: 1fr; margin-top: 1.8rem; }
    .spot-img { flex-basis: 38%; }
    .spot-body h2 { font-size: 1.4rem; }

    .hero-art { height: 340px; margin-top: 1.8rem; }
    .hero-art img { width: 190px; height: 400px; }
    .hero-art img:nth-child(2) { width: 210px; }

    .bento, .reviews, .plans, .news-grid, .post-nav, .series-grid { grid-template-columns: 1fr; }
    .foot-cols { grid-template-columns: repeat(2, 1fr); }
    .page-hero { padding-top: 6.6rem; }
    .post-nav a.next { text-align: left; }
    .tile.dark, .tile.wide { grid-row: auto; grid-column: auto; }

    .review:nth-child(n) { transform: none; }

    section { padding: 3.5rem 0; }

    h2 { font-size: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

/* Timeline */
.tl-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.tl-controls button {
    padding: 0.45rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: #fff;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.3s ease, color 0.3s ease, background 0.3s ease;
}
.tl-controls button:hover { border-color: rgba(0, 159, 227, 0.6); color: var(--accent); }
.tl-controls button[aria-pressed="true"] {
    background: linear-gradient(135deg, var(--accent), var(--accent-deep));
    border-color: transparent;
    color: #fff;
}

.tl { max-width: 860px; }

.tl-group {
    position: relative;
    margin-left: 0.45rem;
    padding: 0 0 1.6rem 1.8rem;
    border-left: 2px solid var(--line);
    scroll-margin-top: 100px;
}
.tl-group[hidden], .tl-item[hidden] { display: none; }

.tl-group::before {
    content: '';
    position: absolute;
    left: -7px;
    top: 0.5rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(0, 159, 227, 0.2);
}

.tl-year {
    font-size: 1.6rem;
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin-bottom: 0.2rem;
}

.tl-item {
    position: relative;
    margin-top: 0.8rem;
    padding: 1rem 1.2rem;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
}

.tl-item::before {
    content: '';
    position: absolute;
    left: calc(-1.8rem - 5px);
    top: 1.4rem;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-deep);
}

.tl-item.upcoming {
    border-color: rgba(0, 159, 227, 0.6);
    background: linear-gradient(135deg, #16213e 0%, #0f1a2e 100%);
}

.tl-when {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
}
.tl-when time { color: var(--accent); font-weight: 600; }

.tl-kind {
    padding: 0.1rem 0.55rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.tl-item h3 { font-size: 1.2rem; letter-spacing: -0.02em; line-height: 1.3; margin-top: 0.25rem; }
.tl-item h3 a { text-decoration: none; }
.tl-item h3 a:hover { color: var(--accent); }
.tl-item .badge { font-size: 0.68rem; }
.tl-meta { color: var(--muted); font-size: 0.9rem; }
.tl-note { margin-top: 0.4rem; color: #d0d0d0; font-size: 0.92rem; }

/* Changelog */
.cl { max-width: 860px; }

.cl-entry {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 1.5rem;
    padding: 1.8rem 0;
    border-top: 1px solid var(--line);
}
.cl-entry:first-child { border-top: 0; padding-top: 0; }

.cl-date { color: var(--muted); font-weight: 600; font-size: 0.95rem; padding-top: 0.2rem; }

.cl-tag {
    display: inline-block;
    padding: 0.15rem 0.65rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), var(--accent-deep));
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.cl-body h2 { font-size: 1.4rem; letter-spacing: -0.03em; line-height: 1.25; margin-top: 0.5rem; }
.cl-body ul { margin-top: 0.8rem; padding-left: 1.3rem; color: #d0d0d0; }
.cl-body li + li { margin-top: 0.45rem; }
.cl-body li::marker { color: var(--accent); }
.cl-body a { color: var(--accent); text-decoration: none; }
.cl-body a:hover { text-decoration: underline; }

@media (max-width: 860px) {
    .tl-group { padding-left: 1.3rem; }
    .tl-item::before { left: calc(-1.3rem - 5px); }
    .cl-entry { grid-template-columns: 1fr; gap: 0.5rem; }
}
