:root {
  color-scheme: light;
  --ink: #17202a;
  --muted: #627080;
  --line: #d9e0e7;
  --paper: #f7f8f5;
  --panel: #ffffff;
  --accent: #c63d32;
  --accent-2: #1f7a6d;
  --gold: #d5a11e;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--ink); background: var(--paper); }
a { color: inherit; text-decoration: none; }
.site-header { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 14px clamp(18px, 4vw, 56px); background: rgba(247,248,245,.94); border-bottom: 1px solid var(--line); backdrop-filter: blur(10px); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; background: var(--accent); color: white; border-radius: 6px; }
.top-nav { display: flex; gap: 8px; }
.top-nav a { padding: 8px 12px; border-radius: 6px; color: var(--muted); font-weight: 700; }
.top-nav a[aria-current="page"], .top-nav a:hover { color: var(--ink); background: #e9ece6; }
#header-banner { display: flex; justify-content: center; gap: 8px; padding: 8px 12px; background: #ffffff; border-bottom: 1px solid var(--line); }
#header-banner a { flex: 1 1 100%; max-width: 1200px; margin: 0 auto; display: block; line-height: 0; }
#header-banner picture,#fixed-bottom-banner picture { display: block; line-height: 0; }
#header-banner img,#fixed-bottom-banner img { display: block; width: 100%; height: auto; max-height: 420px; object-fit: contain; border-radius: 4px; border: 1px solid var(--line); transition: opacity .15s, transform .15s; background: #ffffff; }
#header-banner img:hover,#fixed-bottom-banner img:hover { opacity: .85; transform: translateY(-2px); }
#header-banner .readmore-label { display: block; line-height: 1.4; width: 100%; text-align: center; font-size: 11px; font-weight: bold; color: #111; background: #ff9900; padding: 4px 0; border-radius: 0 0 4px 4px; }
#fixed-bottom-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9999; background: transparent; border-top: 0; box-shadow: none; backdrop-filter: none; pointer-events: none; }
#fixed-bottom-banner a { display: block; width: fit-content; max-width: 100%; margin: 0 auto; line-height: 0; pointer-events: auto; }
#fixed-bottom-banner img { display: block; width: auto; height: auto; max-width: 100%; max-height: 200px; margin: 0 auto; border-radius: 0; border: 0; box-shadow: none; }
.hero { min-height: calc(100vh - 63px); display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr); gap: 36px; align-items: center; padding: clamp(32px, 6vw, 76px); background: linear-gradient(115deg, rgba(198,61,50,.1), rgba(31,122,109,.12)), radial-gradient(circle at 18% 18%, rgba(213,161,30,.24), transparent 30%); }
.hero h1 { margin: 0; font-size: clamp(42px, 7vw, 92px); line-height: 1.02; }
.hero p { max-width: 680px; color: var(--muted); font-size: 18px; line-height: 1.9; }
.eyebrow, .card-kicker { color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: 0; text-transform: uppercase; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border-radius: 6px; font-weight: 800; }
.button.primary { background: var(--ink); color: white; }
.button.secondary { background: #ffffff; border: 1px solid var(--line); color: var(--accent-2); }
.stats-panel { display: grid; gap: 12px; }
.stats-panel div { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 22px; box-shadow: 0 12px 30px rgba(23,32,42,.08); }
.stats-panel strong { display: block; font-size: 42px; }
.stats-panel span { color: var(--muted); font-weight: 700; }
.section, .list-header, .detail { padding: clamp(24px, 5vw, 56px); }
.section-heading { max-width: 780px; }
.section-heading h2, .list-header h1 { margin: 0 0 10px; }
.content-section h2 { margin: 0 0 18px; }
.list-header { display: flex; align-items: end; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; }
input, select { min-height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 6px; background: white; color: var(--ink); font: inherit; }
.grid, .decade-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; padding: clamp(18px, 4vw, 42px); }
.manga-card a { display: grid; gap: 12px; min-height: 210px; padding: 18px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; transition: transform .16s ease, border-color .16s ease; }
.decade-card a { display: grid; gap: 12px; min-height: 160px; padding: 22px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; transition: transform .16s ease, border-color .16s ease; }
.manga-card a:hover, .decade-card a:hover { transform: translateY(-2px); border-color: var(--accent-2); }
.manga-card h2, .decade-card h2 { margin: 0; font-size: 20px; line-height: 1.35; }
.manga-card p, .decade-card p, .list-lead { margin: 0; color: var(--muted); }
dl { margin: 0; }
.manga-card dl { display: grid; gap: 6px; align-self: end; }
.manga-card dl div, .meta-panel dl div { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 8px; }
dt { color: var(--muted); font-weight: 700; }
dd { margin: 0; text-align: right; }
.breadcrumb { display: flex; gap: 10px; color: var(--muted); margin-bottom: 20px; }
.breadcrumb a { color: var(--accent-2); font-weight: 800; }
.detail-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 420px); gap: 28px; align-items: start; }
.detail-hero h1 { margin: 0 0 16px; font-size: clamp(34px, 5vw, 66px); line-height: 1.08; }
.detail-hero p, .content-section p { color: var(--muted); line-height: 1.9; }
.meta-panel, .content-section { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 22px; }
.meta-panel dl { display: grid; gap: 12px; }
.content-section { margin-top: 18px; max-width: 980px; margin-left: auto; margin-right: auto; }
.detail-hero + .content-section { margin-top: clamp(28px, 4vw, 48px); }
.fact-list { display: grid; gap: 10px; max-width: 520px; }
.fact-list div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.empty-note { color: var(--muted); }
.provisional-note { color: var(--muted); font-size: 14px; margin: 0 0 12px; }
.download-count { margin: 0 0 12px; font-weight: 800; }
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; min-width: 420px; }
.data-table th, .data-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.data-table th { color: var(--muted); font-size: 13px; }
.download-button { display: inline-flex; align-items: center; justify-content: center; min-height: 34px; padding: 0 14px; border: 0; border-radius: 6px; background: var(--accent-2); color: #ffffff; font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; white-space: nowrap; }
.download-button:hover { filter: brightness(.95); }
.source-list { margin: 0; padding-left: 20px; color: var(--muted); line-height: 1.8; }
.source-list a { color: var(--accent-2); font-weight: 800; }
.impression-list { margin: 0; padding-left: 20px; color: var(--muted); line-height: 1.9; }
.impression-list a { color: var(--accent-2); font-weight: 800; }
.section-link { margin: 0 0 12px; }
.section-link a { color: var(--accent-2); font-weight: 800; }
.site-footer { border-top: 1px solid var(--line); background: #ffffff; color: var(--muted); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px clamp(18px, 4vw, 56px); font-size: 14px; }
.footer-copy { margin: 0; }
.footer-nav { display: flex; gap: 14px; font-weight: 800; }
.footer-nav a { color: var(--accent-2); }
.policy-page .content-section ul { margin-top: 0; }
.is-hidden { display: none; }
.back-to-top { position: fixed; right: clamp(12px, 3vw, 24px); bottom: calc(var(--fixed-bottom-banner-h, 0px) + 16px); z-index: 9998; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid #b33c2f; border-radius: 50%; background: #b33c2f; color: #ffffff; box-shadow: 0 6px 18px rgba(179,60,47,.36); cursor: pointer; font: inherit; font-size: 20px; font-weight: 800; line-height: 1; opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity .2s ease, transform .2s ease, background-color .15s, border-color .15s; }
.back-to-top:hover { background: #8f2f25; border-color: #8f2f25; color: #ffffff; }
.back-to-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.related-works-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin-top: 4px; }
.related-card a { display: flex; flex-direction: column; gap: 8px; padding: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; text-decoration: none; transition: transform .16s ease, border-color .16s ease; }
.related-card a:hover { transform: translateY(-2px); border-color: var(--accent-2); }
.related-card .card-kicker { font-size: 11px; }
.related-card h3 { margin: 0; font-size: 15px; line-height: 1.4; color: var(--accent-2); }
.related-card p { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.6; }

@media (max-width: 760px) {
  .site-header, .list-header { align-items: stretch; flex-direction: column; }
  .hero, .detail-hero { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .toolbar, input, select { width: 100%; }
  .top-nav { overflow-x: auto; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
  #header-banner img,#fixed-bottom-banner img { max-height: 420px; }
  #fixed-bottom-banner img { max-height: 140px; }
  .back-to-top { width: 40px; height: 40px; font-size: 18px; }
  .related-works-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}

/* ===== Top-nav category dots ===== */
.top-nav a{display:inline-flex;align-items:center;gap:7px}
.nav-dot{display:inline-block;width:8px;height:8px;border-radius:50%;flex-shrink:0}
.nav-dot[data-cat="anime"]{background:#e08a3c}
.nav-dot[data-cat="comic"]{background:#c63d32}
.nav-dot[data-cat="movie"]{background:#17202a}
.nav-dot[data-cat="drama"]{background:#2b65c5}.nav-dot[data-cat="music"]{background:#c9951a}

/* ===== Modern dark theme overrides ===== */
:root{
  color-scheme:dark;
  --ink:#f4f7fb;
  --muted:#aab6c5;
  --line:#263243;
  --paper:#0e1117;
  --panel:#151b24;
  --panel-2:#101720;
  --accent:#ff6b5f;
  --accent-2:#37d0b2;
  --gold:#f4bd4f;
  --cat-anime:#f2a65a;
  --cat-comic:#ff6b5f;
  --cat-movie:#9aa7ff;
  --cat-drama:#5aa8ff;
  --cat-music:#f4bd4f;
  --shadow:0 18px 48px rgba(0,0,0,.34);
}
html{background:var(--paper)}
body{
  color:var(--ink);
  background:
    linear-gradient(180deg,#0b0f15 0%,#111722 42%,#0e1117 100%);
}
a{color:inherit}
.site-header{
  background:rgba(14,17,23,.86);
  border-bottom:1px solid rgba(148,163,184,.18);
  box-shadow:0 10px 30px rgba(0,0,0,.18);
}
.brand-mark{background:#0b0f15;border:1px solid rgba(255,255,255,.10)}
.brand-text,.brand{color:var(--ink)}
.top-nav a{color:var(--muted)}
.top-nav a[aria-current="page"],.top-nav a:hover{
  color:var(--ink);
  background:rgba(255,255,255,.08);
}
.nav-dot[data-cat="anime"]{background:var(--cat-anime)}
.nav-dot[data-cat="comic"]{background:var(--cat-comic)}
.nav-dot[data-cat="movie"]{background:var(--cat-movie)}
.nav-dot[data-cat="drama"]{background:var(--cat-drama)}
.nav-dot[data-cat="music"]{background:var(--cat-music)}
#header-banner{
  background:#0b0f15;
  border-bottom:1px solid rgba(148,163,184,.18);
}
#header-banner img,#fixed-bottom-banner img{
  background:#0b0f15;
  border-color:rgba(255,255,255,.10);
  box-shadow:0 10px 30px rgba(0,0,0,.24);
}
#fixed-bottom-banner img{box-shadow:0 14px 38px rgba(0,0,0,.34)}
.readmore-label,#header-banner .readmore-label{
  color:#111827;
  background:linear-gradient(90deg,#f4bd4f,#ff9f43);
}
.hero{
  background:
    linear-gradient(135deg,rgba(55,208,178,.16),rgba(255,107,95,.10) 46%,rgba(154,167,255,.14)),
    linear-gradient(180deg,#101720 0%,#0e1117 100%);
  border-bottom:1px solid rgba(148,163,184,.14);
}
.hero::after{display:none}
.hero h1,.list-header h1,.list-header h2,.section-heading h2,.picks-head h2,.about-head h2,.policy-hero h1,.detail-hero h1{
  color:var(--ink);
}
.hero p,.hero-lead,.list-note,.list-lead,.picks-lead,.about-lead,.detail-hero p,.content-section p{
  color:var(--muted);
}
.hero-accent{
  background:linear-gradient(90deg,#37d0b2,#f4bd4f 42%,#ff6b5f 78%,#9aa7ff);
  -webkit-background-clip:text;
  background-clip:text;
}
.eyebrow,.card-kicker{color:var(--accent)}
.button{
  border:1px solid transparent;
  box-shadow:none;
}
.button.primary{
  color:#071014;
  background:linear-gradient(90deg,#37d0b2,#f4bd4f);
}
.button.primary:hover{
  transform:translateY(-1px);
  box-shadow:0 14px 34px rgba(55,208,178,.22);
}
.button.secondary,.button.ghost{
  color:var(--ink);
  background:rgba(255,255,255,.06);
  border-color:rgba(255,255,255,.14);
}
.button.secondary:hover,.button.ghost:hover{
  background:rgba(255,255,255,.10);
  border-color:rgba(55,208,178,.44);
}
.stats-panel>div,.stats-panel div,.cat-card,.pick-card,.feature,.meta-panel,.content-section,
.anime-card a,.manga-card a,.decade-card a,.movie-card a,.drama-card a{
  background:linear-gradient(180deg,rgba(255,255,255,.055),rgba(255,255,255,.025));
  border-color:rgba(148,163,184,.18);
  box-shadow:var(--shadow);
}
.stats-panel strong,.cat-card h3,.cat-stats strong,.pick-card h3,
.anime-card h2,.manga-card h2,.decade-card h2,.movie-card h2,.drama-card h2,
.feature h3,.content-section h2{
  color:var(--ink);
}
.stats-panel span,.cat-stats,.cat-lead,.pick-meta,.feature p,
.anime-card p,.manga-card p,.decade-card p,.movie-card p,.drama-card p,
.source-list,.impression-list,.empty-note,.provisional-note,dt,.breadcrumb{
  color:var(--muted);
}
.cat-mark{
  background:rgba(255,255,255,.07);
  border:1px solid rgba(255,255,255,.10);
}
.cat-card:hover,.pick-card:hover,.anime-card a:hover,.manga-card a:hover,.decade-card a:hover,.movie-card a:hover,.drama-card a:hover{
  transform:translateY(-3px);
  border-color:rgba(55,208,178,.52);
  box-shadow:0 22px 58px rgba(0,0,0,.42);
}
.picks-section,.about-section{
  background:linear-gradient(180deg,#0e1117,#111722);
}
.list-header{
  background:rgba(14,17,23,.55);
  border-bottom:1px solid rgba(148,163,184,.16);
}
.section,.detail,.policy-page{background:transparent}
input,select{
  color:var(--ink);
  background:#111722;
  border-color:rgba(148,163,184,.24);
}
input::placeholder{color:#7f8da1}
input:focus,select:focus{
  outline:2px solid rgba(55,208,178,.36);
  outline-offset:2px;
  border-color:rgba(55,208,178,.62);
}
.data-table th,.data-table td{
  border-bottom-color:rgba(148,163,184,.18);
}
.data-table th{
  color:#c3cede;
  background:#111722;
}
.download-button{
  color:#061012;
  background:#37d0b2;
}
.breadcrumb a,.section-link a,.source-list a,.impression-list a,.footer-nav a{
  color:#37d0b2;
}
.site-footer{
  color:var(--muted);
  background:#0b0f15;
  border-top:1px solid rgba(148,163,184,.18);
}
.cta-section{
  background:linear-gradient(135deg,#0b0f15,#151b24);
  border-top:1px solid rgba(148,163,184,.14);
  border-bottom:1px solid rgba(148,163,184,.14);
}
.cta-buttons .button{
  background:rgba(255,255,255,.07);
  border-color:rgba(255,255,255,.14);
}
.back-to-top{
  background:#37d0b2;
  border-color:#37d0b2;
  color:#071014;
  box-shadow:0 10px 28px rgba(55,208,178,.28);
}
.back-to-top:hover{
  background:#f4bd4f;
  border-color:#f4bd4f;
  color:#071014;
}
@media (max-width:760px){
  .site-header{background:rgba(14,17,23,.94)}
  .hero{padding-top:32px;padding-bottom:40px}
}
