/* dvdandbluray.com — public site styles */
:root {
    --bg: #0f1115;
    --bg-alt: #161a22;
    --bg-card: #1c2230;
    --text: #e7ebf3;
    --text-dim: #9aa3b2;
    --muted: #6b7484;
    --border: #262d3a;
    --accent: #f59e0b;
    --accent-hover: #fbbf24;
    --indigo: #818cf8;
    --teal: #5eead4;
    --purple: #c4b5fd;
    --maxw: 1400px;
    --radius: 12px;
    --shadow: 0 2px 8px rgba(0,0,0,.25);
}

* { box-sizing: border-box; }
html { color-scheme: dark; }
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; margin: 0 0 .4em; }
h1 { font-size: clamp(1.5rem, 1rem + 1.5vw, 2rem); }
h2 { font-size: clamp(1.15rem, 1rem + .5vw, 1.4rem); }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 1rem; }
.visually-hidden {
    position: absolute !important; height: 1px; width: 1px; overflow: hidden;
    clip: rect(1px,1px,1px,1px); white-space: nowrap;
}

/* ---------- Header ---------- */
.site-header {
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 50;
}
.site-header__inner {
    display: flex; align-items: center; gap: 1.5rem;
    padding: .75rem 1rem; flex-wrap: wrap;
}
.brand { display: flex; flex-direction: column; line-height: 1; text-decoration: none; }
.brand__title  { color: var(--accent); font-weight: 800; font-size: 1.25rem; }
.brand__subtitle { color: var(--text-dim); font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; }
.site-nav { display: flex; gap: 1.25rem; margin-left: auto; }
.site-nav a { color: var(--text-dim); font-weight: 500; }
.site-nav a:hover { color: var(--text); text-decoration: none; }
.site-nav__admin {
    color: var(--accent) !important;
    padding: .2rem .6rem;
    border: 1px solid rgba(245, 158, 11, .4);
    border-radius: 4px;
    font-size: .9rem;
}
.site-nav__admin:hover { background: rgba(245, 158, 11, .12); text-decoration: none !important; }
.search { display: flex; }
.search input {
    background: var(--bg-card); color: var(--text); border: 1px solid var(--border);
    border-right: 0; padding: .5rem .75rem; border-radius: 6px 0 0 6px; width: 220px;
    font: inherit;
}
.search input:focus { outline: 2px solid var(--accent); outline-offset: -2px; }
.search button {
    background: var(--accent); color: #1c1c1c; border: 0; padding: 0 .9rem;
    border-radius: 0 6px 6px 0; cursor: pointer; font-size: 1.1rem; font-weight: 700;
}
.search button:hover { background: var(--accent-hover); }

/* ---------- Hero ---------- */
.hero {
    padding: 1.5rem 0 .75rem;
    text-align: center;
}
.hero h1 { color: #fff; margin-bottom: .35rem; }
.hero p { color: var(--text-dim); max-width: 640px; margin: 0 auto .75rem; font-size: .95rem; }
.hero .lead-accent { color: var(--accent); }
.hero .product__cta { padding: .55rem 1rem; font-size: .9rem; }

.hero--strip {
    display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
    text-align: left;
    padding: 1rem 0 .75rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: .75rem;
}
.hero--strip .hero__text { min-width: 0; flex: 1; }
.hero--strip h1 { margin-bottom: .15rem; }
.hero--strip p  { margin: 0; max-width: none; font-size: .9rem; }
.hero--strip .product__cta { white-space: nowrap; flex-shrink: 0; }
@media (max-width: 640px) {
    .hero--strip { flex-direction: column; align-items: flex-start; text-align: left; }
}

/* ---------- Collection detail header ---------- */
.coll-head {
    padding: 2rem 0 1.1rem; margin-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}
.coll-head__eyebrow {
    text-transform: uppercase; letter-spacing: .08em; font-size: .72rem;
    color: var(--text-dim); margin: 0 0 .35rem;
}
.coll-head__eyebrow a { color: var(--accent); }
.coll-head__title { color: #fff; margin: 0 0 .6rem; }
.coll-head__year { color: var(--text-dim); font-weight: 500; font-size: .7em; }
.coll-head__desc { color: var(--text-dim); max-width: 72ch; line-height: 1.65; margin: 0 0 .65rem; font-size: .95rem; }
.coll-head__cast { color: var(--text-dim); font-size: .92rem; margin: 0; max-width: 72ch; }
.coll-head__cast strong { color: var(--text); }
.coll-head__cast a { color: var(--accent); }

/* ---------- Section ---------- */
.section { padding: .65rem 0; }
.section-header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: .5rem; gap: 1rem; }
.section-header h2 { margin: 0; color: #fff; }
.section-header a { font-size: .85rem; color: var(--text-dim); }
.section-header a:hover { color: var(--accent); }
.section-sub { color: var(--text-dim); font-size: .9rem; margin: -.15rem 0 .75rem; }
.trending-flame { font-size: .9em; }

/* ---------- Series merchandise ---------- */
.series-merch-intro { color: var(--text-dim); font-size: .9rem; margin: 0 0 1rem; }
.series-cast { color: var(--text-dim); font-size: .92rem; margin: .5rem 0 0; }
.series-cast strong { color: var(--text); }
.series-cast a { color: var(--accent); }
.collection-parent { color: var(--text-dim); font-size: .85rem; margin: 0 0 .35rem; text-transform: uppercase; letter-spacing: .05em; }
.collection-parent a { color: var(--accent); }

/* ---------- Links page ---------- */
.links-list {
    display: grid; gap: .75rem;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.link-card {
    display: flex; flex-direction: column; gap: .25rem;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 1rem 1.1rem; text-decoration: none;
}
.link-card:hover { border-color: var(--accent); text-decoration: none; }
.link-card__title { color: var(--accent); font-weight: 700; font-size: 1.05rem; }
.link-card__desc { color: var(--text-dim); font-size: .9rem; line-height: 1.5; }
.link-card__url { color: var(--muted); font-size: .8rem; font-family: ui-monospace, monospace; margin-top: .15rem; }

/* ---------- Actors ---------- */
.actor-grid {
    display: grid; gap: .75rem;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.actor-card {
    display: flex; align-items: center; gap: .75rem;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: .75rem .9rem; text-decoration: none;
}
.actor-card:hover { border-color: var(--accent); text-decoration: none; }
.actor-card__initial {
    flex: 0 0 auto; width: 2.5rem; height: 2.5rem; border-radius: 50%;
    background: var(--bg-alt); color: var(--accent); font-weight: 800;
    display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
}
.actor-card__body { display: flex; flex-direction: column; min-width: 0; }
.actor-card__name { color: var(--text); font-weight: 600; font-size: .95rem; }
.actor-card__meta { color: var(--text-dim); font-size: .8rem; }
.actor-facts { color: var(--text-dim); font-size: .95rem; margin: 0 0 .5rem; }
.actor-facts a { color: var(--accent); }

/* ---------- Profile header (character / actor) ---------- */
.profile { display: flex; gap: 1.25rem; align-items: flex-start; padding: 2rem 0 1.25rem; }
.profile__avatar {
    flex: 0 0 auto; width: 4.5rem; height: 4.5rem; border-radius: 50%;
    background: var(--bg-alt); color: var(--accent); font-weight: 800; font-size: 1.9rem;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--border);
}
.profile__body { min-width: 0; }
.profile__eyebrow {
    text-transform: uppercase; letter-spacing: .08em; font-size: .72rem;
    color: var(--text-dim); margin: 0 0 .25rem;
}
.profile__eyebrow a { color: var(--accent); }
.profile__name { margin: 0 0 .5rem; color: #fff; }
.profile__meta {
    display: flex; flex-wrap: wrap; align-items: center; gap: .55rem;
    color: var(--text-dim); font-size: .92rem; margin: 0 0 .85rem;
}
.profile__pill {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 999px; padding: .12rem .6rem; font-size: .78rem; text-transform: capitalize;
}
.profile__played a { color: var(--accent); }
.profile__bio { color: var(--text); max-width: 62ch; line-height: 1.65; margin: 0; }
.profile__tags { margin-top: .85rem; }
@media (max-width: 560px) { .profile { flex-direction: column; gap: .85rem; } }

/* ---------- Cast / character roles ---------- */
.cast-roles {
    list-style: none; margin: 0; padding: 0;
    display: grid; gap: .6rem;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}
.cast-role {
    display: flex; align-items: center; gap: .65rem;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: .55rem .7rem;
}
.cast-role__avatar {
    flex: 0 0 auto; width: 2.2rem; height: 2.2rem; border-radius: 50%;
    background: var(--bg-alt); color: var(--accent); font-weight: 800;
    display: flex; align-items: center; justify-content: center; font-size: .95rem;
}
.cast-role__text { display: flex; flex-direction: column; min-width: 0; }
.cast-role__char { font-weight: 600; color: var(--text); font-size: .92rem; line-height: 1.25; }
.cast-role__char:hover { color: var(--accent); }
.cast-role__actor { font-size: .8rem; color: var(--text-dim); }
.cast-role__actor a { color: var(--text-dim); }
.cast-role__actor a:hover { color: var(--accent); }

.cast-also { color: var(--text-dim); font-size: .9rem; margin: .75rem 0 0; }
.cast-also strong { color: var(--text); }
.cast-also a { color: var(--accent); }

.cast-group { margin-bottom: 1.5rem; }
.cast-group:last-child { margin-bottom: 0; }
.cast-group__title { font-size: 1rem; color: #fff; margin: 0 0 .6rem; }
.cast-group__title a { color: var(--accent); }

/* ---------- SEO text ---------- */
.seo-text { border-top: 1px solid var(--border); padding-top: 2rem; margin-top: 1rem; }
.seo-text h2 { color: #fff; font-size: 1.15rem; margin-bottom: 1rem; }
.seo-text__cols {
    display: grid; grid-template-columns: 1fr 1fr; gap: 2rem;
    color: var(--text-dim); font-size: .93rem; line-height: 1.7;
}
.seo-text__cols p { margin: 0 0 .85rem; }
.seo-text__cols a { color: var(--accent); }
.seo-text__cols a:hover { color: var(--accent-hover); }
@media (max-width: 640px) { .seo-text__cols { grid-template-columns: 1fr; gap: .5rem; } }

/* ---------- Product grid ---------- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: .85rem;
}
.card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column;
    transition: transform .15s ease, border-color .15s ease;
}
.card:hover { transform: translateY(-2px); border-color: var(--accent); }
a.card__img {
    aspect-ratio: 3 / 4; background: #11151c; display: flex; align-items: center; justify-content: center;
    overflow: hidden; text-decoration: none;
}
a.card__img:hover { text-decoration: none; }
.card__img img { max-height: 100%; max-width: 100%; object-fit: cover; }
.card__body { padding: .6rem .75rem .75rem; flex: 1; display: flex; flex-direction: column; }
.card__title {
    font-size: .9rem; font-weight: 600; margin: 0 0 .2rem; line-height: 1.3;
    display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3;
    -webkit-box-orient: vertical; overflow: hidden;
    overflow-wrap: anywhere;
}
.card__title-link { color: #fff; text-decoration: none; }
.card__title-link:hover { color: var(--accent); text-decoration: none; }
.card__meta  { font-size: .72rem; color: var(--text-dim); margin: 0 0 .4rem; display: flex; gap: .35rem; flex-wrap: wrap; }
.card__price { color: var(--accent); font-weight: 700; margin-top: auto; font-size: 1.05rem; }
.card__buy {
    margin-top: auto;
    display: inline-flex; align-items: center; justify-content: center; gap: .3rem;
    background: var(--accent); color: #1a1a1a !important; font-weight: 700;
    padding: .4rem .65rem; border-radius: 5px; text-decoration: none;
    transition: background .15s ease;
    font-size: .82rem;
}
.card__buy:hover { background: var(--accent-hover); text-decoration: none; color: #1a1a1a !important; }
.badge {
    display: inline-block; padding: .15rem .45rem; font-size: .7rem; font-weight: 600;
    border-radius: 4px; background: var(--bg-alt); color: var(--text-dim); border: 1px solid var(--border);
}
.badge--featured { background: rgba(196,181,253,.15); color: var(--purple); border-color: rgba(196,181,253,.4); }
.badge--bluray   { background: rgba(129,140,248,.15); color: var(--indigo); border-color: rgba(129,140,248,.4); }
.badge--uhd      { background: rgba(94,234,212,.15);  color: var(--teal);   border-color: rgba(94,234,212,.4); }

/* ---------- Series directory (full list page) ---------- */
.series-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: .85rem; }
.series-row {
    display: flex; gap: 1rem;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: .85rem; text-decoration: none; color: inherit;
    transition: border-color .15s ease, transform .15s ease;
}
.series-row:hover { border-color: var(--accent); transform: translateY(-1px); text-decoration: none; color: inherit; }
.series-row__thumb {
    flex: 0 0 80px; width: 80px; height: 80px;
    background: #11151c; border-radius: 8px; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
}
.series-row__thumb img { width: 100%; height: 100%; object-fit: cover; }
.series-row__initial { font-size: 2rem; font-weight: 800; color: var(--accent); }
.series-row__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .25rem; }
.series-row__name { font-size: 1.05rem; font-weight: 700; color: #fff; display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; }
.series-row__year { color: var(--text-dim); font-weight: 500; font-size: .85rem; }
.series-row__desc {
    color: var(--text-dim); font-size: .85rem; line-height: 1.45;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
}
.series-row__meta { color: var(--text-dim); font-size: .8rem; margin-top: auto; display: flex; gap: .5rem; align-items: center; }
.series-row__cta { color: var(--accent); }
.series-row:hover .series-row__cta { color: var(--accent-hover); }

/* ---------- Series cards (homepage) ---------- */
.series-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: .65rem;
}
.series-card {
    background: linear-gradient(135deg, #1f2937, #111827);
    border: 1px solid var(--border); border-radius: 10px;
    padding: .75rem .85rem; text-align: center; color: #fff;
    transition: border-color .15s ease, transform .15s ease;
}
.series-card:hover { border-color: var(--accent); transform: translateY(-2px); text-decoration: none; }
.series-card__name { font-size: .95rem; font-weight: 700; margin: 0 0 .15rem; }
.series-card__year { color: var(--text-dim); font-size: .75rem; }

/* ---------- Product detail ---------- */
.product {
    display: grid; gap: 2rem;
    grid-template-columns: minmax(240px, 380px) 1fr;
    padding: 2rem 0;
    align-items: start;
}
@media (max-width: 720px) {
    .product { grid-template-columns: 1fr; }
}
.product__gallery {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 1rem; display: flex; align-items: center; justify-content: center;
}
.product__gallery img { max-height: 480px; }
.product__gallery-link { display: block; cursor: zoom-in; transition: transform .2s ease; }
.product__gallery-link:hover { text-decoration: none; transform: scale(1.02); }
.product__gallery-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 6px; }

.product__panel {
    margin-top: 1rem;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: .85rem 1rem;
}
/* Franchise card under the product image */
.franchise-card {
    margin-top: 1rem;
    background: var(--bg-card); border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius); padding: .85rem 1rem;
}
.franchise-card__label {
    font-size: .7rem; text-transform: uppercase; letter-spacing: .08em;
    color: var(--text-dim); margin-bottom: .15rem;
}
.franchise-card__name {
    display: block; color: #fff; font-weight: 700; font-size: 1.05rem; line-height: 1.25;
}
.franchise-card__name:hover { color: var(--accent); text-decoration: none; }
.franchise-card__desc {
    color: var(--text-dim); font-size: .85rem; line-height: 1.55; margin: .4rem 0 .5rem;
}
.franchise-card__link { font-size: .82rem; color: var(--accent); font-weight: 600; }
.product__includes { color: var(--text-dim); font-size: .9rem; margin: .25rem 0 0; }
.product__includes strong { color: var(--text); }
.product__includes a { color: var(--accent); }
.product__counts {
    display: flex; align-items: center; gap: .65rem;
    font-size: .85rem; color: var(--text-dim);
    padding-bottom: .65rem; margin-bottom: .65rem;
    border-bottom: 1px solid var(--border);
}
.product__counts strong { color: var(--text); font-weight: 700; }
.product__counts-sep { color: var(--muted); }
.product__share {
    display: flex; align-items: center; flex-wrap: wrap; gap: .4rem;
}
.product__share-label {
    color: var(--text-dim); font-size: .85rem; margin-right: .25rem;
}
.share-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; border-radius: 50%;
    font-weight: 700; font-size: .95rem; line-height: 1;
    text-decoration: none; border: 0; cursor: pointer;
    color: #fff; transition: transform .12s ease, filter .12s ease;
    font-family: inherit;
}
.share-btn:hover { transform: translateY(-1px); filter: brightness(1.1); text-decoration: none; color: #fff; }
.share-btn--x  { background: #000; border: 1px solid #444; }
.share-btn--fb { background: #1877f2; }
.share-btn--wa { background: #25d366; }
.share-btn--rd { background: #ff4500; }
.share-btn--em { background: #6b7280; }
.share-btn--cp { background: #374151; }
.share-btn--copied { background: #16a34a !important; }
.product__title { color: #fff; }
.product__meta { color: var(--text-dim); margin-bottom: 1rem; display: flex; gap: .5rem; flex-wrap: wrap; }
.product__price-row { display: flex; align-items: baseline; gap: 1rem; margin: 1rem 0 1.25rem; }
.product__price { color: var(--accent); font-size: 1.75rem; font-weight: 800; }
.product__list-price { color: var(--muted); text-decoration: line-through; font-size: 1rem; }
.product__cta {
    display: inline-flex; align-items: center; gap: .5rem;
    background: var(--accent); color: #1a1a1a; font-weight: 700;
    padding: .85rem 1.5rem; border-radius: 8px; text-decoration: none;
    transition: background .15s ease;
}
.product__cta:hover { background: var(--accent-hover); text-decoration: none; color: #1a1a1a; }
.product__desc { color: var(--text); line-height: 1.7; margin: 1.5rem 0; }
.product__features { margin: 1rem 0; padding-left: 1.2rem; color: var(--text-dim); }
.product__features li { margin-bottom: .25rem; }
.spec-table { width: 100%; border-collapse: collapse; margin-top: 1rem; font-size: .9rem; }
.spec-table th, .spec-table td { text-align: left; padding: .5rem .75rem; border-bottom: 1px solid var(--border); }
.spec-table th { color: var(--text-dim); font-weight: 500; width: 35%; }
.spec-table td { color: var(--text); }
.rating-stars { color: var(--accent); }

.tag-list { display: flex; flex-wrap: wrap; gap: .35rem; }
.tag-link {
    display: inline-block; padding: .2rem .6rem;
    background: rgba(245, 158, 11, .12); border: 1px solid rgba(245, 158, 11, .35);
    color: var(--accent); border-radius: 999px;
    font-size: .8rem; line-height: 1.4; text-decoration: none;
    transition: background .15s ease, color .15s ease;
}
.tag-link:hover { background: var(--accent); color: #1a1a1a; text-decoration: none; }

/* ---------- Cross-entity search results ---------- */
.search-entities { margin-bottom: 1.75rem; display: flex; flex-direction: column; gap: 1.25rem; }
.result-group__label {
    display: flex; align-items: baseline; gap: .5rem; margin: 0 0 .6rem;
    font-size: .95rem; color: var(--text-dim); font-weight: 600;
    text-transform: uppercase; letter-spacing: .04em;
}
.result-group__count {
    font-size: .75rem; font-weight: 600; color: var(--text-dim);
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 999px; padding: .05rem .5rem; letter-spacing: 0;
}
.chip-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
    display: inline-flex; align-items: baseline; gap: .5rem;
    background: var(--bg-card); border: 1px solid var(--border); border-radius: 999px;
    padding: .4rem .85rem; text-decoration: none; line-height: 1.3;
    transition: border-color .15s ease, background .15s ease;
}
.chip:hover { border-color: var(--accent); background: var(--bg-alt); text-decoration: none; }
.chip__name { color: var(--text); font-weight: 600; font-size: .9rem; }
.chip__kind { color: var(--text-dim); font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; }
.empty--soft { padding: 1rem; text-align: left; color: var(--text-dim); }
.titles-head { margin-top: 1.75rem; }

/* ---------- Wiki ---------- */
.wiki { max-width: 760px; margin: 0 auto 2rem; }
.wiki__head { padding-bottom: 1rem; margin-bottom: 1.25rem; border-bottom: 1px solid var(--border); }
.wiki__head--hub { display: flex; gap: 1.1rem; align-items: flex-start; }
.wiki__head-body { flex: 1; min-width: 0; }
.wiki__logo {
    width: 76px; height: 76px; flex-shrink: 0; border-radius: 12px; object-fit: cover;
    border: 1px solid var(--border); background: var(--bg-card);
}
.wiki__eyebrow { color: var(--text-dim); font-size: .8rem; margin: 0 0 .35rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.wiki__eyebrow a { color: var(--accent); }
.wiki__title { margin: 0; color: #fff; font-size: 2rem; line-height: 1.2; }
.wiki__summary { color: var(--text-dim); font-size: 1.05rem; line-height: 1.6; margin: .65rem 0 0; }
.wiki__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .6rem; margin: .8rem 0 0; font-size: .85rem; color: var(--text-dim); }
.wiki__meta a { color: var(--accent); }
.wiki__meta a:hover { color: var(--accent-hover); }
.wiki__meta-sep { color: var(--border); }
@media (max-width: 560px) {
    .wiki__head--hub { gap: .8rem; }
    .wiki__logo { width: 54px; height: 54px; }
    .wiki__title { font-size: 1.6rem; }
}
.wiki__body { color: var(--text); line-height: 1.75; }
.wiki__body p { margin: 0 0 1rem; }
.wiki__body .wiki-h { color: #fff; margin: 1.75rem 0 .6rem; line-height: 1.3; }
.wiki__body h2.wiki-h { font-size: 1.3rem; }
.wiki__body h3.wiki-h { font-size: 1.1rem; }
.wiki__body .wiki-list { margin: 0 0 1rem; padding-left: 1.3rem; color: var(--text); }
.wiki__body .wiki-list li { margin-bottom: .35rem; }
.wiki__body .wiki-img { max-width: 100%; height: auto; display: block; margin: .75rem 0; border-radius: 8px; border: 1px solid var(--border); }
.wiki-link { color: var(--accent); text-decoration: none; border-bottom: 1px solid rgba(245, 158, 11, .35); }
.wiki-link:hover { border-bottom-color: var(--accent); }
.wiki-link--missing { color: var(--text-dim); border-bottom: 1px dashed var(--border); cursor: help; }
/* Admin redlinks (clickable to create the page). */
.wiki-link--missing[data-wiki-new] { cursor: pointer; }
.wiki-link--missing[data-wiki-new]:hover { color: var(--accent); border-bottom-color: var(--accent); border-bottom-style: dashed; }
.wiki__stub { color: var(--text-dim); font-style: italic; }
.wiki__foot {
    margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--border);
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem;
}
.wiki__updated { color: var(--text-dim); font-size: .82rem; margin: 0; }
.wiki__suggest { font-size: .85rem; color: var(--accent); text-decoration: none; }
.wiki__suggest:hover { color: var(--accent-hover); text-decoration: underline; }
.wiki-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .75rem; }
.wiki-card {
    display: flex; flex-direction: column; gap: .3rem;
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
    padding: .9rem 1rem; text-decoration: none; transition: border-color .15s ease, transform .15s ease;
}
.wiki-card:hover { border-color: var(--accent); transform: translateY(-2px); text-decoration: none; }
.wiki-card__title { color: #fff; font-weight: 600; }
.wiki-card__summary { color: var(--text-dim); font-size: .85rem; line-height: 1.5; }
/* Compact, title-only cards for contextual wiki links (franchise/collection pages). */
.wiki-card--compact { padding: .6rem .85rem; }
.wiki-cards:has(.wiki-card--compact) { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }

/* Inline admin "wikify" toolbar (shown on text selection, admins only). */
.wiki-tools {
    position: absolute; z-index: 200; display: flex; flex-wrap: wrap; gap: .35rem; max-width: min(92vw, 420px);
    background: var(--bg-card); border: 1px solid var(--accent); border-radius: 10px;
    padding: .35rem; box-shadow: 0 8px 24px rgba(0, 0, 0, .45);
}
.wiki-tools.is-busy { opacity: .6; pointer-events: none; }
.wiki-tools button {
    background: var(--accent); color: #1a1a1a; border: 0; border-radius: 6px;
    padding: .4rem .7rem; font-size: .8rem; font-weight: 700; cursor: pointer; white-space: nowrap;
}
.wiki-tools button.secondary { background: var(--bg-alt); color: var(--text); border: 1px solid var(--border); }
.wiki-tools button:hover { filter: brightness(1.08); }
.wiki-tools button:disabled { cursor: default; opacity: .7; }

/* Admin "Generate with Gemini" bar above an editable wiki body. */
.wiki-admin-bar {
    display: flex; align-items: center; gap: .6rem; margin: 0 0 1rem; padding: .5rem .65rem;
    background: rgba(168, 85, 247, .08); border: 1px dashed rgba(168, 85, 247, .45); border-radius: 8px;
}
.wiki-admin-bar__hint {
    font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700;
    color: #c084fc; background: rgba(168, 85, 247, .14); padding: .12rem .45rem; border-radius: 999px;
}
.wiki-gen-btn {
    background: #a855f7; color: #fff; border: 0; border-radius: 6px;
    padding: .4rem .8rem; font-size: .85rem; font-weight: 600; cursor: pointer;
}
.wiki-gen-btn:hover { filter: brightness(1.08); }
.wiki-gen-btn:disabled { opacity: .6; cursor: default; }
.wiki-edit-btn { background: transparent; color: #c084fc; border: 1px solid rgba(168, 85, 247, .55); }
.wiki-edit-btn:hover { background: rgba(168, 85, 247, .14); filter: none; }

/* Inline source editor (admin, on the public wiki page). */
.wiki-editor { margin: 0 0 1.5rem; }
.wiki-editor__label { display: block; font-size: .8rem; color: var(--text-dim); margin: .6rem 0 .25rem; font-weight: 600; }
.wiki-editor__summary {
    width: 100%; background: var(--bg-card); border: 1px solid var(--border); color: var(--text);
    padding: .55rem .7rem; border-radius: 6px; font: inherit;
}
.wiki-editor__body {
    width: 100%; background: var(--bg-card); border: 1px solid var(--border); color: var(--text);
    padding: .7rem .8rem; border-radius: 6px; line-height: 1.6; resize: vertical;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9rem;
}
.wiki-editor__hint { color: var(--text-dim); font-size: .78rem; margin: .4rem 0 0; }
.wiki-editor__hint code { background: var(--bg-alt); padding: .05rem .3rem; border-radius: 4px; }
.wiki-editor__actions { display: flex; justify-content: flex-end; gap: .5rem; margin-top: .8rem; }

/* ---------- Filters ---------- */
.filter-bar {
    background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 1rem; display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: .75rem; margin-bottom: 1.5rem;
    align-items: end;
}
@media (max-width: 720px) { .filter-bar { grid-template-columns: 1fr 1fr; } }
.filter-bar label { display: block; font-size: .8rem; color: var(--text-dim); margin-bottom: .25rem; }
.filter-bar input, .filter-bar select {
    width: 100%; background: var(--bg-card); border: 1px solid var(--border); color: var(--text);
    padding: .55rem .75rem; border-radius: 6px; font: inherit;
}
.filter-bar button {
    background: var(--accent); color: #1c1c1c; border: 0; padding: .6rem 1.25rem;
    border-radius: 6px; cursor: pointer; font-weight: 600;
}

/* ---------- Pagination ---------- */
.pagination { display: flex; gap: .25rem; justify-content: center; margin: 2rem 0; }
.pagination a, .pagination span {
    padding: .5rem .85rem; border: 1px solid var(--border);
    color: var(--text); background: var(--bg-card); border-radius: 6px; font-size: .9rem;
}
.pagination a:hover { background: var(--bg-alt); text-decoration: none; }
.pagination .current { background: var(--accent); color: #1c1c1c; border-color: var(--accent); }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { font-size: .85rem; color: var(--text-dim); margin: 1.5rem 0 .5rem; }
.breadcrumbs a { color: var(--text-dim); }
.breadcrumbs a:hover { color: var(--accent); }

/* ---------- Footer ---------- */
.site-footer {
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    padding: 2.5rem 0 1.25rem;
    margin-top: 3rem;
    color: var(--text-dim);
    font-size: .9rem;
}
.site-footer__grid {
    display: grid;
    grid-template-columns: 1.6fr repeat(3, 1fr);
    gap: 2.5rem;
    padding-bottom: 1.75rem;
    border-bottom: 1px solid var(--border);
}
.site-footer__brand-link {
    display: inline-flex; flex-direction: column; line-height: 1;
    text-decoration: none;
}
.site-footer__brand-link:hover { text-decoration: none; }
.site-footer__brand .brand__title {
    color: var(--accent); font-weight: 800; font-size: 1.25rem;
}
.site-footer__brand .brand__subtitle {
    color: var(--text-dim); font-size: .7rem;
    text-transform: uppercase; letter-spacing: .1em; margin-top: .2rem;
}
.site-footer__tagline {
    margin: .9rem 0 0; max-width: 22rem;
    color: var(--text-dim); font-size: .9rem; line-height: 1.55;
}
.site-footer__heading {
    color: var(--text); font-size: .78rem;
    text-transform: uppercase; letter-spacing: .08em;
    margin: 0 0 .9rem; font-weight: 700;
}
.site-footer__list { list-style: none; margin: 0; padding: 0; }
.site-footer__list li { margin: 0 0 .5rem; }
.site-footer__list a { color: var(--text-dim); font-size: .92rem; }
.site-footer__list a:hover { color: var(--accent); text-decoration: none; }

.site-footer__bottom {
    padding-top: 1.25rem;
    display: flex; flex-direction: column; gap: .65rem;
}
.affiliate-disclosure {
    max-width: 760px; margin: 0 !important;
    font-size: .8rem; color: var(--muted); line-height: 1.55;
}
.site-footer__legal {
    display: flex; justify-content: space-between; align-items: center;
    gap: 1rem; flex-wrap: wrap; font-size: .85rem;
}
.site-footer__legal p { margin: 0; }
.site-footer__top { color: var(--text-dim); font-size: .85rem; }
.site-footer__top:hover { color: var(--accent); text-decoration: none; }

@media (max-width: 800px) {
    .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 1.75rem; }
}
@media (max-width: 480px) {
    .site-footer__grid { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* ---------- Cookie consent ---------- */
.cookie-consent {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
    background: var(--bg-card); border-top: 1px solid var(--border);
    box-shadow: 0 -4px 20px rgba(0,0,0,.35);
}
.cookie-consent[hidden] { display: none; }
.cookie-consent__inner {
    display: flex; align-items: center; gap: 1.25rem;
    padding: 1rem; flex-wrap: wrap;
}
.cookie-consent__text {
    margin: 0; flex: 1; min-width: 260px;
    font-size: .88rem; color: var(--text-dim); line-height: 1.5;
}
.cookie-consent__text a { color: var(--accent); }
.cookie-consent__actions { display: flex; gap: .6rem; margin-left: auto; }
.cookie-consent__btn {
    border: 0; border-radius: 6px; padding: .55rem 1.25rem;
    font: inherit; font-weight: 600; font-size: .88rem; cursor: pointer;
}
.cookie-consent__btn--decline {
    background: transparent; color: var(--text-dim); border: 1px solid var(--border);
}
.cookie-consent__btn--decline:hover { color: var(--text); border-color: var(--text-dim); }
.cookie-consent__btn--accept { background: var(--accent); color: #1c1c1c; }
.cookie-consent__btn--accept:hover { background: var(--accent-hover); }
@media (max-width: 560px) {
    .cookie-consent__actions { width: 100%; }
    .cookie-consent__btn { flex: 1; }
}

/* ---------- Empty state ---------- */
.empty {
    background: var(--bg-card); border: 1px dashed var(--border); border-radius: var(--radius);
    padding: 2.5rem 1rem; text-align: center; color: var(--text-dim);
}

/* ---------- Prose pages (About / FAQ) ---------- */
.prose { max-width: 760px; margin: 1rem auto 2rem; line-height: 1.7; }
.prose h1 { color: #fff; margin-bottom: .75rem; }
.prose h2 { color: #fff; margin-top: 2rem; margin-bottom: .5rem; }
.prose p  { color: var(--text); margin: 0 0 1rem; }
.prose .lead { color: var(--text-dim); font-size: 1.05rem; margin-bottom: 1.25rem; }
.prose ul { margin: 0 0 1rem 1.25rem; color: var(--text); }
.prose ul li { margin-bottom: .35rem; }
.prose a { color: var(--accent); }
.prose a:hover { color: var(--accent-hover); }
.prose__meta { color: var(--text-dim); font-size: .9rem; margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--border); }

/* ---------- Help page TOC ---------- */
.help-toc {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 8px; padding: .75rem 1rem; margin: 1rem 0 1.5rem;
    font-size: .9rem;
}
.help-toc strong { color: var(--text-dim); margin-right: .5rem; }
.help-toc a { color: var(--accent); margin-right: .85rem; white-space: nowrap; }
.help-toc a:hover { color: var(--accent-hover); }

/* ---------- Genres directory (full list page) ---------- */
.genre-grid {
    display: flex; flex-wrap: wrap; gap: .6rem;
}
.genre-card {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: 999px;
    padding: .6rem 1rem; text-decoration: none; color: var(--text);
    display: inline-flex; align-items: center; gap: .65rem;
    transition: border-color .15s ease, transform .15s ease, color .15s ease;
}
.genre-card:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); text-decoration: none; }
.genre-card__name  { font-weight: 600; }
.genre-card__count { color: var(--text-dim); font-size: .8rem; }
.genre-card:hover .genre-card__count { color: var(--text-dim); }

/* ---------- Contact form ---------- */
.contact-form { display: grid; gap: 1rem; margin: 1rem 0 1.5rem; }
.contact-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .contact-form .form-row { grid-template-columns: 1fr; } }
.contact-form .label { display: block; font-size: .85rem; font-weight: 500; color: var(--text-dim); margin-bottom: .35rem; }
.contact-form .input,
.contact-form .textarea {
    width: 100%; padding: .65rem .85rem;
    background: var(--bg-card); color: var(--text);
    border: 1px solid var(--border); border-radius: 6px;
    font: inherit;
}
.contact-form .input:focus,
.contact-form .textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: var(--accent); }
.contact-form .textarea { font-family: inherit; resize: vertical; min-height: 140px; }
.contact-form .form-hint { font-size: .8rem; color: var(--muted); margin-top: -.5rem; }
.contact-form .product__cta { justify-self: start; border: 0; cursor: pointer; font: inherit; }
.contact-form .hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }

/* ---------- Comments ---------- */
.comment-note { padding: .7rem 1rem; border-radius: 8px; margin: 0 0 1rem; font-size: .9rem; }
.comment-note--ok  { background: rgba(34, 197, 94, .12);  border: 1px solid rgba(34, 197, 94, .4);  color: #86efac; }
.comment-note--err { background: rgba(239, 68, 68, .12);  border: 1px solid rgba(239, 68, 68, .4);  color: #fca5a5; }
.comment-empty { color: var(--text-dim); margin: 0 0 1.25rem; }
.comment-list { list-style: none; margin: 0 0 1.5rem; padding: 0; display: flex; flex-direction: column; gap: .85rem; }
.comment { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: .85rem 1rem; }
.comment__head { display: flex; align-items: baseline; gap: .6rem; margin-bottom: .35rem; }
.comment__author { font-weight: 600; color: #fff; }
.comment__date { font-size: .78rem; color: var(--text-dim); }
.comment__body { color: var(--text); line-height: 1.6; font-size: .95rem; }

.comment-form { background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.1rem; }
.comment-form__title { margin: 0 0 .75rem; color: #fff; font-size: 1.05rem; }
.comment-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-bottom: .75rem; }
@media (max-width: 600px) { .comment-form__row { grid-template-columns: 1fr; } }
.comment-form .input, .comment-form .textarea {
    width: 100%; background: var(--bg-card); border: 1px solid var(--border); color: var(--text);
    padding: .6rem .75rem; border-radius: 6px; font: inherit;
}
.comment-form .textarea { resize: vertical; min-height: 96px; font-family: inherit; }
.comment-form .input:focus, .comment-form .textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: var(--accent); }
.comment-form__foot { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-top: .75rem; flex-wrap: wrap; }
.comment-form__hint { font-size: .78rem; color: var(--text-dim); }
.comment-form .product__cta { border: 0; cursor: pointer; font: inherit; }
.comment-form .hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }

/* ---------- Newsletter signup (footer) ---------- */
.newsletter {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
    padding: 1.25rem 0 1.5rem; margin-bottom: 1.25rem; border-bottom: 1px solid var(--border);
}
.newsletter__title { margin: 0 0 .25rem; color: #fff; font-size: 1.15rem; }
.newsletter__sub { margin: 0; color: var(--text-dim); font-size: .9rem; max-width: 52ch; }
.newsletter__right { flex: 1; min-width: 280px; max-width: 460px; }
.newsletter__note { margin: 0 0 .5rem; font-size: .85rem; }
.newsletter__note--ok  { color: #86efac; }
.newsletter__note--err { color: #fca5a5; }
.newsletter__form { display: flex; gap: .5rem; }
.newsletter__input {
    flex: 1; min-width: 0; background: var(--bg-card); border: 1px solid var(--border); color: var(--text);
    padding: .6rem .8rem; border-radius: 8px; font: inherit;
}
.newsletter__input:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: var(--accent); }
.newsletter__btn {
    background: var(--accent); color: #1a1a1a; font-weight: 700; border: 0; cursor: pointer;
    padding: .6rem 1.2rem; border-radius: 8px; white-space: nowrap;
}
.newsletter__btn:hover { background: var(--accent-hover); }
.newsletter .hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }

.form-alert { padding: .85rem 1rem; border-radius: 8px; margin: 1rem 0; }
.form-alert--success { background: rgba(22, 163, 74, .15); border: 1px solid rgba(22, 163, 74, .45); color: #86efac; }
.form-alert--error   { background: rgba(220, 38, 38, .12); border: 1px solid rgba(220, 38, 38, .4); color: #fca5a5; }
.form-alert ul { margin: .35rem 0 0 1.25rem; }

/* ---------- FAQ accordion ---------- */
.faq { margin: 1rem 0; }
.faq__item {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 8px; margin-bottom: .5rem; overflow: hidden;
}
.faq__item[open] { border-color: rgba(245, 158, 11, .35); }
.faq__q {
    cursor: pointer; padding: .85rem 1rem;
    font-weight: 600; color: #fff;
    list-style: none;
    display: flex; align-items: center; justify-content: space-between;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
    content: '+'; color: var(--accent); font-size: 1.25rem; font-weight: 700;
    transition: transform .15s ease;
}
.faq__item[open] .faq__q::after { content: '−'; }
.faq__q:hover { color: var(--accent); }
.faq__a { padding: 0 1rem 1rem; color: var(--text); }
