:root {
  --bg: #07090f;
  --bg-2: #0d111a;
  --bg-3: #131826;
  --card: rgba(18, 23, 36, 0.92);
  --line: rgba(216, 226, 247, 0.1);
  --line-strong: rgba(60, 240, 208, 0.35);
  --text: #eef2fb;
  --text-dim: #9aa3b8;
  --muted: #6f7890;
  --cyan: #3cf0d0;
  --cyan-dim: #1aae96;
  --red: #ff4d6d;
  --gold: #e4c07a;
  --violet: #8b9cff;
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "IBM Plex Sans", "Noto Sans JP", system-ui, sans-serif;
  --display: "Syne", "IBM Plex Sans", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --radius: 18px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(60, 240, 208, 0.08), transparent 50%),
    radial-gradient(900px 500px at -10% 20%, rgba(255, 77, 109, 0.07), transparent 45%),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: var(--cyan); text-decoration: none; }
a:hover { color: #fff; }
button, input, select { font-family: inherit; }

.skip-link {
  position: absolute; left: -999px; top: 0;
}
.skip-link:focus {
  left: 16px; top: 16px; z-index: 80;
  background: var(--cyan); color: #04110e; padding: 8px 12px; border-radius: 8px;
}

.site-header {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(18px);
  background: rgba(7, 9, 15, 0.78);
  border-bottom: 1px solid var(--line);
}
.header-inner, .nav-wrap, .footer-inner, .wrap {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; min-height: 72px;
}
.brand {
  display: flex; align-items: center; gap: 12px; color: var(--text);
}
.brand svg { width: 36px; height: 36px; }
.brand-name {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.04em;
  font-size: 1.15rem;
}
.brand-tag {
  display: block;
  font-family: var(--mono);
  font-size: 0.62rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.nav a, .nav-toggle {
  color: var(--text-dim);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.92rem;
}
.nav a:hover, .nav a.is-active { color: var(--text); background: rgba(255,255,255,0.05); }
.nav-toggle {
  display: none; background: transparent; border: 1px solid var(--line); color: var(--text);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 56px 0 28px;
  border-bottom: 1px solid var(--line);
}
.hero::after {
  content: "";
  pointer-events: none;
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0 3px,
    rgba(255,255,255,0.015) 3px 4px
  );
  opacity: 0.5;
}
.kicker {
  font-family: var(--mono);
  color: var(--cyan);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.72rem;
  margin: 0 0 12px;
}
.hero h1 {
  font-family: var(--display);
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
  margin: 0 0 14px;
  max-width: 16ch;
}
.lede {
  max-width: 62ch;
  color: var(--text-dim);
  font-size: 1.05rem;
  margin: 0 0 22px;
}
.stat-row { display: flex; flex-wrap: wrap; gap: 18px; }
.stat {
  min-width: 120px;
  border-left: 2px solid var(--cyan);
  padding-left: 12px;
}
.stat b { display: block; font-size: 1.35rem; font-family: var(--display); }
.stat span { color: var(--muted); font-size: 0.8rem; }

.toolbar {
  display: flex; flex-wrap: wrap; gap: 10px;
  padding: 22px 0 8px;
}
.chip, .search {
  background: var(--bg-3);
  border: 1px solid var(--line);
  color: var(--text-dim);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.86rem;
}
.chip.is-on, .chip:hover { color: #04110e; background: var(--cyan); border-color: var(--cyan); }
.search { min-width: min(100%, 260px); color: var(--text); outline: none; }

.layout {
  display: grid;
  grid-template-columns: 1.7fr 0.85fr;
  gap: 28px;
  padding: 18px 0 64px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 18px;
}
.card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  min-height: 100%;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.card-cover {
  aspect-ratio: 16/10;
  background: #0a0d14 center/cover no-repeat;
  position: relative;
}
.badge {
  position: absolute; left: 10px; top: 10px;
  background: rgba(4, 10, 14, 0.78);
  border: 1px solid var(--line);
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 0.68rem;
  padding: 4px 8px;
  border-radius: 999px;
}
.card-body { padding: 14px 14px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card h3 {
  font-family: var(--display);
  font-size: 1.05rem;
  letter-spacing: -0.03em;
  margin: 0;
  line-height: 1.25;
}
.card h3 a { color: var(--text); }
.meta, .tiny { color: var(--muted); font-size: 0.8rem; }
.vibe {
  margin-top: auto;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 600;
}

.ranking {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  position: sticky; top: 88px;
}
.ranking h2 {
  font-family: var(--display);
  margin: 0 0 12px;
  font-size: 1.15rem;
}
.rank-list { list-style: none; margin: 0; padding: 0; }
.rank-list li {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}
.rank-list strong { font-family: var(--mono); color: var(--cyan); }
.rank-list a { color: var(--text); font-size: 0.92rem; }
.score { color: var(--gold); font-variant-numeric: tabular-nums; font-size: 0.85rem; }

.site-footer {
  border-top: 1px solid var(--line);
  background: #05070c;
  padding: 36px 0 28px;
}
.footer-inner { display: grid; gap: 18px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 14px 22px; }
.footer-links a { color: var(--text-dim); }
.legal-note { color: var(--muted); font-size: 0.8rem; max-width: 80ch; }

.article-hero {
  position: relative;
  min-height: 360px;
  background: #090c13 center/cover no-repeat;
  border-bottom: 1px solid var(--line);
}
.article-hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7,9,15,0.15), rgba(7,9,15,0.92));
}
.article-hero-inner {
  position: relative;
  width: min(820px, calc(100% - 32px));
  margin: 0 auto;
  padding: 90px 0 36px;
}
.article-hero h1 {
  font-family: var(--display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  letter-spacing: -0.045em;
  line-height: 1.1;
  margin: 8px 0 12px;
}
.crumbs { color: var(--text-dim); font-size: 0.85rem; }
.crumbs a { color: var(--text-dim); }

.article {
  width: min(820px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 72px;
}
.article h2 {
  font-family: var(--display);
  font-size: 1.45rem;
  letter-spacing: -0.03em;
  margin: 2rem 0 0.7rem;
}
.article p, .article li {
  font-family: var(--serif);
  font-size: 1.12rem;
  color: #dce3f2;
  line-height: 1.75;
}
.pull {
  border-left: 3px solid var(--cyan);
  padding: 4px 0 4px 16px;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 1.2rem;
}
.meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin: 8px 0 22px;
}
.meta-grid div {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
}
.meta-grid b { display: block; color: var(--muted); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; }
.reaction {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 8px 18px 18px;
  margin: 18px 0;
}
.watch-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.watch-grid a {
  background: #04140f;
  border: 1px solid var(--cyan-dim);
  color: var(--cyan);
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 600;
}
.watch-grid a:hover { background: var(--cyan); color: #04110e; }

.legal {
  width: min(840px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 80px;
}
.legal h1 { font-family: var(--display); letter-spacing: -0.04em; }
.legal h2 { font-family: var(--display); margin-top: 1.8rem; }
.legal p, .legal li { color: var(--text-dim); }

.contact-frame {
  width: 100%;
  min-height: 920px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.empty { color: var(--muted); padding: 28px 0; }

@media (max-width: 920px) {
  .layout { grid-template-columns: 1fr; }
  .ranking { position: static; }
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute; right: 16px; top: 72px;
    background: #101522;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 10px;
    flex-direction: column;
    min-width: 220px;
  }
  .nav.is-open { display: flex; }
}

/* Google AdSense slots — labeled, reserved height, dark-theme placeholders */
.ad-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin: 28px 0;
  padding: 0 4px;
}
.ad-label {
  display: block;
  width: 100%;
  max-width: 728px;
  margin: 0 0 8px;
  font-size: 11px;
  line-height: 1.2;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8b93a7;
  text-align: center;
  font-family: var(--sans);
  font-weight: 500;
}
.ad-container,
.ad-slot {
  box-sizing: border-box;
  width: 100%;
  max-width: 728px;
  min-height: 90px;
  border: 1px dashed rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.ad-placeholder {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  font-family: var(--mono);
  pointer-events: none;
  user-select: none;
}
.ad-slot-header,
.header-banner-ad { min-height: 90px; }
.ad-slot-footer,
.footer-banner-ad { min-height: 90px; }
.ad-slot-above-fold,
.above-fold-ad { min-height: 90px; }
.ad-slot-in-article,
.in-article-ad { min-height: 250px; }
.ad-slot-below,
.below-content-ad { min-height: 250px; }
.ad-slot ins.adsbygoogle {
  display: block;
  width: 100%;
  min-height: inherit;
}
@media (max-width: 768px) {
  .ad-wrapper { margin: 20px 0; }
  .ad-label,
  .ad-container,
  .ad-slot { max-width: 100%; }
  .ad-slot { min-height: 100px; }
  .ad-slot-in-article,
  .in-article-ad,
  .ad-slot-below,
  .below-content-ad { min-height: 250px; }
}

