/* ── Doujin Portal — nijifan-style magazine theme (original CSS) ── */
:root {
  --c-bg: #ffffff;
  --c-ink: #16161a;
  --c-line: #e7e6ea;
  --c-signal: #d80019;
  --c-focus: #2563eb;
  --c-muted: #777;
  --c-soft: #f7f6f8;
  --c-dark: #16161a;
  --c-dark2: #222227;
  --radius: 6px;
  --max: 1180px;
  --shadow: 0 2px 10px rgba(0,0,0,.08);
}
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", sans-serif;
  background: var(--c-bg); color: var(--c-ink); line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }

/* ── Topbar ── */
.topbar { background: var(--c-dark); color: #bbb; font-size: .75rem; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; height: 32px; }
.topbar a { color: #bbb; text-decoration: none; }
.topbar a:hover { color: #fff; }
.topbar .adult-badge { color: #fff; background: var(--c-signal); padding: 1px 8px; border-radius: 3px; font-weight: 700; margin-right: 8px; }
#lang-sel { background: #222; color: #ccc; border: 1px solid #444; border-radius: 4px; font-size: .68rem; padding: 2px 4px; margin-left: 8px; vertical-align: 1px; }

/* ── Header ── */
.site-header { background: var(--c-bg); border-bottom: 1px solid var(--c-line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; padding: 18px 16px; gap: 16px; }
.logo { text-decoration: none; line-height: 1.2; }
.logo .logo-main { font-size: 1.9rem; font-weight: 800; letter-spacing: -.02em; color: var(--c-ink); display: block; }
.logo .logo-main em { color: var(--c-signal); font-style: normal; }
.logo .logo-sub { font-size: .72rem; color: var(--c-muted); letter-spacing: .08em; }
.head-search { display: flex; align-items: center; gap: 8px; }
.head-search input { border: 1px solid var(--c-line); border-radius: 999px; padding: 8px 16px; font-size: .85rem; width: 230px; outline: none; }
.head-search input:focus { border-color: var(--c-signal); }
.head-search button { border: 0; background: var(--c-signal); color: #fff; border-radius: 999px; padding: 8px 18px; font-size: .85rem; cursor: pointer; font-weight: 700; }

/* ── Main nav ── */
.main-nav { background: var(--c-dark); position: sticky; top: 0; z-index: 50; }
.main-nav .wrap { display: flex; align-items: center; }
.main-nav ul { display: flex; list-style: none; flex-wrap: wrap; }
.main-nav a { display: block; color: #fff; text-decoration: none; font-size: .85rem; font-weight: 600; padding: 12px 16px; transition: background .15s; }
.main-nav a:hover, .main-nav a.active { background: var(--c-signal); }
.nav-toggle { display: none; background: none; border: 0; color: #fff; font-size: 1.3rem; padding: 10px 14px; cursor: pointer; }
.nav-search { display: none; color: #fff; text-decoration: none; font-size: 1.05rem; padding: 10px 12px; margin-left: auto; }
.main-nav .has-sub { position: relative; }
.main-nav .sub { display: none; position: absolute; top: 100%; left: 0; min-width: 190px; background: var(--c-dark2); list-style: none; box-shadow: 0 6px 16px rgba(0,0,0,.35); z-index: 60; flex-direction: column; flex-wrap: nowrap; }
.main-nav .has-sub:hover .sub, .main-nav .has-sub:focus-within .sub { display: flex; }
.main-nav .sub a { padding: 9px 16px; font-weight: 500; font-size: .78rem; border-top: 1px solid #2e2e35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.main-nav .sub a:hover { background: var(--c-signal); }
.fav-count { display: inline-block; min-width: 17px; height: 17px; line-height: 17px; text-align: center; background: var(--c-signal); color: #fff; border-radius: 999px; font-size: .62rem; font-weight: 800; padding: 0 4px; vertical-align: 2px; }

/* ── Content layout ── */
.layout { display: grid; grid-template-columns: 1fr 300px; gap: 28px; padding: 24px 16px 48px; max-width: var(--max); margin: 0 auto; }
@media (max-width: 940px) { .layout { grid-template-columns: 1fr; } }

/* ── Section titles ── */
.sec-title { font-size: 1.25rem; font-weight: 800; margin: 34px 0 16px; padding-bottom: 8px; border-bottom: 3px solid var(--c-ink); position: relative; display: flex; align-items: baseline; gap: 10px; }
.sec-title::after { content: ""; position: absolute; left: 0; bottom: -3px; width: 72px; border-bottom: 3px solid var(--c-signal); }
.sec-title .en { font-size: .68rem; color: var(--c-muted); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.sec-title:first-child { margin-top: 0; }

/* ── Hero slider ── */
.hero { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--c-dark); box-shadow: var(--shadow); }
.hero-track { display: flex; transition: transform .5s ease; }
.hero-slide { flex: 0 0 100%; position: relative; text-decoration: none; color: #fff; }
.hero-slide img { width: 100%; height: 340px; object-fit: cover; opacity: .85; }
.hero-slide .hero-info { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 20px 16px; background: linear-gradient(transparent, rgba(0,0,0,.85)); }
.hero-slide .hero-circle { font-size: .72rem; color: #ffd166; font-weight: 700; letter-spacing: .05em; }
.hero-slide .hero-title { font-size: 1.2rem; font-weight: 800; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.hero-slide .hero-price { font-size: .85rem; color: #fff; margin-top: 4px; }
.hero-slide .hero-price s { color: #ccc; margin-right: 6px; }
.hero-slide .hero-price .sale { color: #ff5964; font-weight: 800; }
.hero-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(0,0,0,.45); color: #fff; font-size: 1.1rem; cursor: pointer; }
.hero-nav:hover { background: var(--c-signal); }
.hero-prev { left: 10px; } .hero-next { right: 10px; }
.hero-dots { position: absolute; bottom: 10px; right: 14px; display: flex; gap: 6px; }
.hero-dots button { width: 8px; height: 8px; border-radius: 50%; border: 0; background: rgba(255,255,255,.45); cursor: pointer; padding: 0; }
.hero-dots button.on { background: var(--c-signal); }

/* ── Product grid ── */
.p-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
.p-card { border: 1px solid var(--c-line); border-radius: var(--radius); overflow: hidden; background: #fff; transition: box-shadow .18s, transform .18s; position: relative; }
.p-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.p-card a { text-decoration: none; display: block; }
.p-card .p-cover { position: relative; aspect-ratio: 3/4; background: var(--c-soft); }
.p-card .p-cover img { width: 100%; height: 100%; object-fit: cover; }
.p-card .p-body { padding: 10px 10px 12px; }
.p-card .p-crow { font-size: .68rem; color: var(--c-muted); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-card .p-crow a { color: var(--c-muted); text-decoration: none; display: inline; }
.p-card .p-crow a:hover { color: var(--c-signal); }
.p-card .p-title { font-size: .82rem; font-weight: 700; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.2em; color: var(--c-ink); }
.p-card .p-title:hover { color: var(--c-signal); }
.p-card .p-cover { display: block; }
.p-card .p-meta { font-size: .72rem; color: var(--c-muted); margin-top: 4px; }
.p-card .p-price { font-size: .88rem; font-weight: 800; margin-top: 4px; }
.p-card .p-price s { color: var(--c-muted); font-weight: 400; font-size: .72rem; margin-right: 5px; }
.p-card .p-price .sale { color: var(--c-signal); }
.badge-sale { position: absolute; top: 8px; left: 8px; background: var(--c-signal); color: #fff; font-size: .65rem; font-weight: 800; padding: 2px 7px; border-radius: 3px; z-index: 2; }
.badge-new2 { position: absolute; top: 8px; left: 8px; background: #1a8f3c; color: #fff; font-size: .65rem; font-weight: 800; padding: 2px 7px; border-radius: 3px; z-index: 2; }
.sort-bar { display: flex; gap: 6px; margin: 14px 0 0; flex-wrap: wrap; }
.sort-bar button { background: #fff; border: 1px solid var(--c-line); border-radius: 4px; font-size: .72rem; padding: 5px 12px; cursor: pointer; color: var(--c-muted); font-weight: 600; }
.sort-bar button.on { background: var(--c-dark2); color: #fff; border-color: var(--c-dark2); }
#lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.86); display: none; align-items: center; justify-content: center; z-index: 200; cursor: zoom-out; }
#lightbox.open { display: flex; }
#lightbox img { max-width: 92vw; max-height: 90vh; border-radius: 4px; }
#lightbox button { position: absolute; top: 14px; right: 18px; background: none; border: 0; color: #fff; font-size: 2rem; cursor: pointer; }
#to-top { position: fixed; right: 18px; bottom: 18px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--c-dark2); color: #fff; font-size: 1.1rem; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 150; box-shadow: var(--shadow); }
#to-top.on { opacity: .92; pointer-events: auto; }
#to-top:hover { background: var(--c-signal); }
.ep-samples a { display: inline-block; }
.g-chips .g-chip { background: var(--c-soft); color: var(--c-ink); border: 1px solid var(--c-line); font-weight: 600; }
.g-chips .g-chip:hover { background: var(--c-dark2); color: #fff; border-color: var(--c-dark2); }
.g-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; margin-top: 14px; }
.g-tile { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3/4; display: block; text-decoration: none; }
.g-tile img { width: 100%; height: 100%; object-fit: cover; }
.g-tile span { position: absolute; left: 0; right: 0; bottom: 0; background: linear-gradient(transparent, rgba(0,0,0,.82)); color: #fff; font-size: .72rem; font-weight: 700; padding: 18px 8px 8px; }
.g-tile em { display: block; font-size: .62rem; font-weight: 500; opacity: .8; font-style: normal; }
.fav-btn { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: #999; cursor: pointer; font-size: .95rem; z-index: 2; box-shadow: 0 1px 4px rgba(0,0,0,.15); }
.fav-btn.on { color: var(--c-signal); }
.rank-num { position: absolute; top: 0; left: 0; background: var(--c-ink); color: #fff; font-weight: 800; font-size: .8rem; padding: 4px 10px; border-radius: 0 0 var(--radius) 0; z-index: 2; }
.rank-num.r1 { background: #d4a017; } .rank-num.r2 { background: #8a8f98; } .rank-num.r3 { background: #b0743a; }

/* ── Article list rows ── */
.a-list { display: flex; flex-direction: column; }
.a-row { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--c-line); }
.a-row:first-child { padding-top: 4px; }
.a-thumb { flex: 0 0 190px; }
.a-thumb img { width: 190px; height: 120px; object-fit: cover; border-radius: var(--radius); }
.a-body { flex: 1; min-width: 0; }
.a-meta { display: flex; align-items: center; gap: 10px; font-size: .72rem; color: var(--c-muted); margin-bottom: 4px; flex-wrap: wrap; }
.a-cat { background: var(--c-signal); color: #fff; font-weight: 700; padding: 1px 8px; border-radius: 3px; font-size: .68rem; text-decoration: none; }
.badge-new { background: #ff9500; color: #fff; font-weight: 800; padding: 1px 7px; border-radius: 3px; font-size: .65rem; }
.a-title { font-size: 1.08rem; font-weight: 800; line-height: 1.4; }
.a-title a { text-decoration: none; }
.a-title a:hover { color: var(--c-signal); }
.a-excerpt { font-size: .82rem; color: #555; margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.a-tags { margin-top: 8px; display: flex; gap: 6px; flex-wrap: wrap; }
.a-tags a { font-size: .68rem; color: var(--c-muted); background: var(--c-soft); border: 1px solid var(--c-line); padding: 2px 8px; border-radius: 3px; text-decoration: none; }
.a-tags a:hover { color: var(--c-signal); border-color: var(--c-signal); }
@media (max-width: 640px) { .a-thumb { flex-basis: 120px; } .a-thumb img { width: 120px; height: 90px; } .a-title { font-size: .95rem; } }

/* ── Sidebar ── */
.side-widget { margin-bottom: 26px; }
.side-title { font-size: .95rem; font-weight: 800; padding-bottom: 8px; border-bottom: 2px solid var(--c-ink); margin-bottom: 14px; position: relative; }
.side-title::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 44px; border-bottom: 2px solid var(--c-signal); }
.side-title .en { display: block; font-size: .6rem; color: var(--c-muted); letter-spacing: .14em; text-transform: uppercase; font-weight: 600; }
.side-rank { display: flex; flex-direction: column; gap: 12px; }
.side-rank .sr { display: flex; gap: 10px; align-items: center; text-decoration: none; }
.side-rank .sr:hover .sr-title { color: var(--c-signal); }
.sr-thumb { width: 56px; height: 74px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
.sr-num { font-weight: 800; font-size: 1.1rem; color: var(--c-signal); width: 22px; text-align: center; flex-shrink: 0; }
.sr-title { font-size: .78rem; font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sr-meta { font-size: .66rem; color: var(--c-muted); }
.chip-cloud { display: flex; flex-wrap: wrap; gap: 7px; }
.chip-cloud a { font-size: .74rem; background: var(--c-soft); border: 1px solid var(--c-line); border-radius: 999px; padding: 4px 12px; text-decoration: none; color: var(--c-ink); }
.chip-cloud a:hover { background: var(--c-signal); border-color: var(--c-signal); color: #fff; }
.chip-cloud a .n { color: var(--c-muted); font-size: .62rem; margin-left: 3px; }
.chip-cloud a:hover .n { color: #ffd9dd; }
.side-search input { width: 100%; border: 1px solid var(--c-line); border-radius: var(--radius); padding: 9px 12px; font-size: .85rem; }
.side-note { font-size: .7rem; color: var(--c-muted); line-height: 1.5; background: var(--c-soft); border-radius: var(--radius); padding: 10px 12px; }

/* ── Pagination ── */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 34px; }
.pagination a, .pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 10px; border: 1px solid var(--c-line); border-radius: var(--radius); text-decoration: none; font-size: .85rem; font-weight: 600; background: #fff; }
.pagination a:hover { border-color: var(--c-signal); color: var(--c-signal); }
.pagination .cur { background: var(--c-ink); color: #fff; border-color: var(--c-ink); }

/* ── Article detail ── */
.crumbs { font-size: .74rem; color: var(--c-muted); margin-bottom: 14px; }
.crumbs a { color: var(--c-muted); text-decoration: none; }
.crumbs a:hover { color: var(--c-signal); }
.post-head { margin-bottom: 20px; }
.post-head h1 { font-size: 1.55rem; font-weight: 800; line-height: 1.35; margin: 8px 0 10px; }
.post-body { font-size: .92rem; }
.post-body p { margin-bottom: 1.1em; }
.post-body h2 { font-size: 1.15rem; font-weight: 800; margin: 1.8em 0 .7em; padding-left: 10px; border-left: 4px solid var(--c-signal); }
.embed-product { display: flex; gap: 16px; border: 1px solid var(--c-line); border-radius: var(--radius); padding: 14px; margin: 18px 0; background: var(--c-soft); }
.embed-product img { width: 110px; height: 146px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
.embed-product .ep-title { font-weight: 800; font-size: .95rem; }
.embed-product .ep-meta { font-size: .74rem; color: var(--c-muted); margin: 4px 0; }
.embed-product .ep-price { font-weight: 800; margin: 6px 0; }
.embed-product .ep-price s { color: var(--c-muted); font-weight: 400; font-size: .78rem; margin-right: 6px; }
.embed-product .ep-price .sale { color: var(--c-signal); }
.btn-go { display: inline-block; background: var(--c-signal); color: #fff !important; text-decoration: none; font-weight: 800; font-size: .85rem; padding: 10px 22px; border-radius: 999px; margin-top: 6px; }
.btn-go:hover { opacity: .85; }
.btn-go::after { content: " →"; }
.stars { color: #f5a623; letter-spacing: 1px; }
.ep-samples { display: flex; gap: 6px; margin: 8px 0 2px; flex-wrap: wrap; }
.ep-samples img { height: 72px; width: auto; border-radius: 4px; border: 1px solid var(--c-line); }
.post-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 30px; padding-top: 16px; border-top: 1px solid var(--c-line); }
.post-nav .pn { font-size: .8rem; text-decoration: none; color: var(--c-ink); font-weight: 600; max-width: 46%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.post-nav .pn:hover { color: var(--c-signal); }
.post-nav .next { margin-left: auto; text-align: right; }

/* ── Footer ── */
.site-footer { background: var(--c-dark); color: #999; margin-top: 40px; }
.site-footer .wrap { padding: 34px 16px 26px; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-bottom: 18px; }
.foot-nav a { color: #ccc; font-size: .78rem; text-decoration: none; }
.foot-nav a:hover { color: #fff; }
.foot-note { font-size: .72rem; line-height: 1.7; border-top: 1px solid #333; padding-top: 16px; }
.foot-note .adult { color: #ff8a93; font-weight: 700; }
.copy { margin-top: 12px; font-size: .7rem; color: #666; }

/* ── Misc pages ── */
.listing-head h1 { font-size: 1.4rem; font-weight: 800; }
.listing-head p { color: var(--c-muted); font-size: .85rem; margin-top: 4px; }
.index-table { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.index-table a { display: flex; justify-content: space-between; align-items: center; border: 1px solid var(--c-line); border-radius: var(--radius); padding: 10px 14px; text-decoration: none; font-size: .85rem; font-weight: 600; }
.index-table a:hover { border-color: var(--c-signal); color: var(--c-signal); }
.index-table .n { font-size: .7rem; color: var(--c-muted); }
.empty { padding: 40px 10px; text-align: center; color: var(--c-muted); }
.notice-strip { background: #fff7e6; border: 1px solid #ffe1a8; border-radius: var(--radius); padding: 12px 16px; font-size: .8rem; margin-bottom: 20px; }
.notice-strip .adult { color: var(--c-signal); font-weight: 800; }
form.contact { max-width: 560px; }
form.contact label { display: block; font-size: .8rem; font-weight: 700; margin: 14px 0 4px; }
form.contact input, form.contact textarea { width: 100%; border: 1px solid var(--c-line); border-radius: var(--radius); padding: 9px 12px; font-size: .9rem; font-family: inherit; }
form.contact button { margin-top: 16px; background: var(--c-ink); color: #fff; border: 0; border-radius: 999px; padding: 11px 34px; font-size: .9rem; font-weight: 700; cursor: pointer; }
.search-box-lg { display: flex; gap: 8px; margin-bottom: 22px; }
.search-box-lg input { flex: 1; border: 1px solid var(--c-line); border-radius: 999px; padding: 11px 20px; font-size: .95rem; }
.search-box-lg button { border: 0; background: var(--c-signal); color: #fff; border-radius: 999px; padding: 0 26px; font-weight: 700; cursor: pointer; }

@media (max-width: 720px) {
  .head-search { display: none; }
  .main-nav ul { display: none; flex-direction: column; width: 100%; }
  .main-nav.open ul { display: flex; }
  .nav-toggle { display: block; }
  .nav-search { display: block; }
  .logo .logo-main { font-size: 1.4rem; }
  .hero-slide img { height: 220px; }
  .embed-product img { width: 80px; height: 106px; }
  .main-nav .sub { position: static; display: flex; box-shadow: none; background: #1d1d22; }
  .main-nav .sub a { padding-left: 28px; border-top: 0; }
}

/* product detail page */
.pd { display: grid; grid-template-columns: 260px 1fr; gap: 22px; margin-top: 12px; }
.pd-cover { display: block; border-radius: 8px; overflow: hidden; border: 1px solid var(--c-line); box-shadow: 0 4px 18px rgba(0,0,0,.12); }
.pd-cover img { width: 100%; display: block; }
.pd-title { font-size: 1.35rem; font-weight: 800; line-height: 1.35; margin-bottom: 12px; }
.pd-table { border-collapse: collapse; width: 100%; font-size: .85rem; margin-bottom: 14px; }
.pd-table th { text-align: left; color: var(--c-muted); font-weight: 700; padding: 6px 14px 6px 0; width: 90px; vertical-align: top; white-space: nowrap; }
.pd-table td { padding: 6px 0; }
.pd-price { font-size: 1.15rem; font-weight: 800; margin-bottom: 14px; }
.pd-go { display: inline-block; margin-bottom: 10px; padding: 12px 30px; font-size: 1rem; }
.fav-pd { position: static; display: inline-block; margin-right: 12px; padding: 8px 16px; background: #fff; border: 1px solid var(--c-line); border-radius: 6px; cursor: pointer; font-size: .85rem; }
.fav-pd.on { color: var(--c-signal); border-color: var(--c-signal); }
.pd-note { font-size: .72rem; color: var(--c-muted); }
.pd-samples { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; margin-bottom: 20px; }
.pd-samples img { width: 100%; border-radius: 6px; border: 1px solid var(--c-line); }
@media (max-width: 640px) { .pd { grid-template-columns: 1fr; } .pd-cover { max-width: 240px; } }
.p-genre { font-size: .66rem; background: var(--c-light, #f4f4f6); color: var(--c-muted); padding: 1px 7px; border-radius: 10px; text-decoration: none; white-space: nowrap; overflow: hidden; max-width: 110px; text-overflow: ellipsis; }
.p-genre:hover { color: var(--c-signal); }
.badge-vid { position: absolute; bottom: 8px; left: 8px; background: rgba(0,0,0,.78); color: #fff; font-size: .62rem; font-weight: 700; letter-spacing: .06em; padding: 2px 8px; border-radius: 4px; z-index: 2; }
.p-card .p-cover { position: relative; }
.share-row { display: flex; align-items: center; gap: 12px; margin: 16px 0 4px; font-size: .8rem; color: var(--c-muted); }
.share-row a, .share-row .copy-link { color: var(--c-muted); text-decoration: none; font-size: .82rem; border: 1px solid var(--c-line); border-radius: 6px; padding: 4px 12px; background: #fff; cursor: pointer; }
.share-row a:hover, .share-row .copy-link:hover { color: var(--c-signal); border-color: var(--c-signal); }
.copy-link.done { color: var(--c-signal); border-color: var(--c-signal); }
.a-tag { font-size: .68rem; color: var(--c-muted); }
.foot-genres { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; }
.foot-genres a { font-size: .72rem; color: var(--c-muted); text-decoration: none; }
.foot-genres a:hover { color: var(--c-signal); }
@media (prefers-reduced-motion: reduce) { .hero-track, .backtop { scroll-behavior: auto; } }
.idx-filter { width: 100%; max-width: 360px; padding: 8px 12px; border: 1px solid var(--c-line); border-radius: 6px; font-size: .85rem; }
.pd-sticky { display: none; }
@media (max-width: 640px) {
  .pd-sticky { display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 60; background: #fff; border-top: 1px solid var(--c-line); box-shadow: 0 -4px 18px rgba(0,0,0,.14); padding: 10px 14px; align-items: center; justify-content: space-between; gap: 12px; }
  .pd-sticky .btn-go { margin: 0; flex: 1; text-align: center; }
  .pd-sticky-price { font-weight: 800; font-size: 1.05rem; white-space: nowrap; }
}
/* ── Dark theme ── */
html[data-theme="dark"] {
  --c-bg: #121214; --c-ink: #e6e4ea; --c-line: #2c2c33; --c-muted: #9a97a3;
  --c-soft: #1b1b1f; --shadow: 0 2px 10px rgba(0,0,0,.4);
}
html[data-theme="dark"] .p-card, html[data-theme="dark"] .a-row, html[data-theme="dark"] .side-widget,
html[data-theme="dark"] .embed-card, html[data-theme="dark"] .pd, html[data-theme="dark"] .g-tile span,
html[data-theme="dark"] .pagination a, html[data-theme="dark"] .pagination span,
html[data-theme="dark"] .sort-bar button, html[data-theme="dark"] .index-table a,
html[data-theme="dark"] .share-row a, html[data-theme="dark"] .share-row .copy-link,
html[data-theme="dark"] .fav-pd, html[data-theme="dark"] .idx-filter,
html[data-theme="dark"] .search-box input, html[data-theme="dark"] .search-box-lg input,
html[data-theme="dark"] .contact input, html[data-theme="dark"] .contact textarea,
html[data-theme="dark"] .pd-sticky, html[data-theme="dark"] .post-nav .pn,
html[data-theme="dark"] .a-thumb, html[data-theme="dark"] .crumbs { background: #1b1b1f; color: var(--c-ink); border-color: var(--c-line); }
html[data-theme="dark"] .notice-strip { background: #33291a; border-color: #57451f; color: #e8d5a8; }
html[data-theme="dark"] .main-nav, html[data-theme="dark"] .topbar { filter: none; }
html[data-theme="dark"] img { opacity: .92; }
#theme-btn { background: none; border: 0; color: inherit; font-size: .85rem; cursor: pointer; padding: 2px 4px; }
.sale-soon { display: inline-block; background: #b1008f; color: #fff; font-size: .62rem; font-weight: 700; padding: 1px 7px; border-radius: 3px; }
