/* Plain pages for search engines and shared links (seo.py): shows, manga and public Top 10 lists. */
:root {
  color-scheme: dark;
  --bg: #0e0f13; --bg-2: #15171d; --card: #1b1e26; --line: #2a2e39;
  --text: #ecedf1; --muted: #9097a6; --accent: #ff6b57; --accent-2: #ffb547;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.6 Manrope, system-ui, sans-serif; }
a { color: inherit; }
h1, h2 { font-family: Poppins, Manrope, sans-serif; letter-spacing: -0.01em; }

.pub-top { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 12px max(16px, calc((100% - 1040px) / 2)); background: rgba(14, 15, 19, .9);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.pub-brand { display: inline-flex; align-items: center; gap: 10px; font: 800 19px Poppins, sans-serif; text-decoration: none; }
.pub-mark { width: 14px; height: 14px; background: var(--accent); border-radius: 2px; transform: rotate(45deg); }
.pub-btn, .pub-cta { display: inline-block; padding: 8px 16px; border-radius: 999px; font-weight: 700; font-size: 14px;
  text-decoration: none; background: var(--accent); color: #16090a; }
.pub-btn:hover, .pub-cta:hover { filter: brightness(1.08); }
.pub-cta { margin-top: 18px; padding: 10px 20px; }

.pub-main { max-width: 1040px; margin: 0 auto; padding: 0 16px 40px; }
.pub-banner { height: 200px; margin: 0 -16px; background: center / cover no-repeat;
  -webkit-mask-image: linear-gradient(#000 40%, transparent); mask-image: linear-gradient(#000 40%, transparent); }
.pub-head { display: flex; gap: 28px; align-items: flex-start; padding-top: 28px; }
.pub-banner + .pub-head { margin-top: -110px; position: relative; z-index: 1; }
/* only the cover sits over the banner; the title starts below it so long names stay readable */
.pub-banner + .pub-head > div { padding-top: 124px; min-width: 0; }
.pub-cover { width: 210px; flex: none; border-radius: 12px; box-shadow: 0 14px 40px rgba(0, 0, 0, .45); }
.pub-head h1 { margin: 0 0 4px; font-size: clamp(26px, 4vw, 38px); line-height: 1.15; overflow-wrap: anywhere; }
.pub-alt { margin: 0 0 6px; color: var(--muted); font-size: 14px; }
.pub-meta, .pub-members { margin: 0 0 4px; color: var(--muted); font-size: 14px; }
.pub-facts { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 10px 0; font-weight: 600; }
.pub-facts em { font-style: normal; color: var(--muted); font-weight: 500; font-size: 12px; letter-spacing: .06em;
  text-transform: uppercase; margin-right: 6px; }
.pub-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.pub-chip { padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; color: #c9ccd5; }
.pub-scores { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.pub-score { min-width: 104px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-2); }
.pub-score b { display: block; font: 800 22px Poppins, sans-serif; }
.pub-score span { color: var(--muted); font-size: 11.5px; letter-spacing: .05em; text-transform: uppercase; }
.pub-score.main { border-color: var(--accent); }
.pub-score.main b { color: var(--accent-2); }

.pub-show section, .pub-synopsis { margin-top: 34px; }
.pub-show h2 { margin: 0 0 12px; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.pub-synopsis p { max-width: 75ch; margin: 0 0 12px; color: #d6d8df; }

.pub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 14px; }
.pub-tile { display: flex; flex-direction: column; gap: 4px; text-decoration: none; min-width: 0; }
.pub-tile img, .pub-tile > span { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 10px; background: var(--card); }
.pub-tile b { font-size: 13.5px; line-height: 1.3; overflow-wrap: anywhere; }
.pub-tile small { color: var(--muted); font-size: 12px; }
a.pub-tile:hover b { color: var(--accent-2); }
.pub-links { display: flex; flex-wrap: wrap; gap: 8px; }
.pub-links a { padding: 7px 14px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; font-weight: 600; font-size: 14px; }
.pub-links a:hover { border-color: var(--accent); }

.pub-list { max-width: 640px; margin: 0 auto; padding-top: 34px; }
.pub-list h1 { margin: 2px 0 20px; font-size: clamp(28px, 5vw, 40px); line-height: 1.15; overflow-wrap: anywhere; }
.pub-rank { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pub-rank a, .pub-rank li > div { display: flex; align-items: center; gap: 14px; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: 12px; background: var(--bg-2); text-decoration: none; }
.pub-rank a:hover { border-color: var(--accent); }
.pub-rank i { width: 28px; flex: none; text-align: center; font: 800 18px Poppins, sans-serif; font-style: normal; color: var(--accent-2); }
.pub-rank img, .pub-rank span { width: 52px; height: 70px; flex: none; object-fit: cover; border-radius: 8px; background: var(--card); }
.pub-rank b { display: block; overflow-wrap: anywhere; }
.pub-rank small { color: var(--muted); font-size: 13px; }

.pub-foot { max-width: 1040px; margin: 0 auto; padding: 24px 16px 40px; border-top: 1px solid var(--line);
  color: var(--muted); font-size: 13px; }
.pub-foot p { margin: 0 0 4px; }

@media (max-width: 640px) {
  .pub-head { flex-direction: column; align-items: center; text-align: center; gap: 16px; }
  .pub-cover { width: 160px; }
  .pub-banner + .pub-head > div { padding-top: 0; }
  .pub-facts, .pub-chips, .pub-scores { justify-content: center; }
  .pub-scores { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; }
  .pub-score { min-width: 0; padding: 8px 6px; }
  .pub-score span { font-size: 10px; }
  .pub-grid { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
}

/* ---------- a public Top 10: the same pyramid as the Top 10 page ---------- */
.pub-glow { --g1: var(--accent); --g2: #6b5cff; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40vmax 40vmax at 50% 28%, color-mix(in srgb, var(--g1) 28%, transparent), transparent 70%),
    radial-gradient(35vmax 35vmax at 80% 80%, color-mix(in srgb, var(--g2) 20%, transparent), transparent 70%); }
.pub-top10 { padding-top: 34px; text-align: center; }
.pub-top10 > h1 { margin: 2px 0 26px; font-size: clamp(28px, 4.4vw, 42px); line-height: 1.15; overflow-wrap: anywhere; }
.pub-top10 .pub-list { padding-top: 10px; text-align: left; }
.pub-top10 .pub-list h2 { margin: 0 0 12px; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.pub-center { margin: 26px 0 0; }

.pyramid { display: flex; flex-direction: column; align-items: center; gap: 16px; padding-bottom: 20px; }
.pyr-row { display: flex; justify-content: center; gap: 18px; }
.pyr-row.r1 .slot { width: 172px; }
.pyr-row.r2 .slot { width: 146px; }
.pyr-row.r3 .slot { width: 118px; }
.pyr-row.r4 .slot { width: 106px; }
.slot { --glow: var(--accent); position: relative; display: block; aspect-ratio: 2 / 3; border-radius: 14px; overflow: hidden;
  text-align: left; text-decoration: none; color: #fff; transition: transform .18s ease, box-shadow .3s ease; }
.slot.empty { border: 2px dashed var(--line); background: color-mix(in srgb, var(--bg-2) 70%, transparent); opacity: .5;
  display: flex; align-items: center; justify-content: center; }
.slot.empty .slot-rank { position: static; font-size: 30px; width: auto; height: auto; background: none; color: var(--line); box-shadow: none; }
.slot.filled { background: var(--card); border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 18px 50px -14px var(--glow), 0 0 28px -10px var(--glow); }
a.slot.filled:hover { transform: translateY(-4px); box-shadow: 0 24px 60px -12px var(--glow), 0 0 36px -8px var(--glow); }
.slot.filled img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slot-rank { position: absolute; top: 8px; left: 8px; z-index: 2; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; font-size: 14px; background: rgba(0, 0, 0, .75); color: #fff; }
.slot-info { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 10px 9px;
  background: linear-gradient(0deg, rgba(0, 0, 0, .85), transparent); display: flex; flex-direction: column; gap: 2px; }
.slot-title { font-size: 12.5px; font-weight: 700; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.pyr-row.r1 .slot-title { font-size: 14px; }
.slot-sub { display: block; font-size: 10.5px; color: rgba(255, 255, 255, .7); white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; text-transform: uppercase; letter-spacing: .03em; }

/* gold, silver, bronze */
.slot.m1 { --medal: #ffc93c; --medal-hi: #fff2b3; --medal-lo: #b07a12; }
.slot.m2 { --medal: #cfd6e4; --medal-hi: #ffffff; --medal-lo: #7d8699; }
.slot.m3 { --medal: #e0965a; --medal-hi: #ffd2a8; --medal-lo: #8a4a1e; }
.slot.empty.m1, .slot.empty.m2, .slot.empty.m3 { border-color: color-mix(in srgb, var(--medal) 45%, var(--line)); }
.slot.empty.m1 .slot-rank, .slot.empty.m2 .slot-rank, .slot.empty.m3 .slot-rank {
  width: 52px; height: 52px; flex: none; display: grid; place-items: center; line-height: 1; font-size: 24px; color: #16120a; opacity: .55; }
.slot.filled.m1, .slot.filled.m2, .slot.filled.m3 { border: 2px solid transparent;
  background: linear-gradient(var(--card), var(--card)) padding-box,
              linear-gradient(135deg, var(--medal-hi), var(--medal) 35%, var(--medal-lo) 70%, var(--medal-hi)) border-box;
  box-shadow: 0 20px 55px -12px var(--glow), 0 0 34px -6px color-mix(in srgb, var(--medal) 70%, transparent); }
.slot.filled.m1 { box-shadow: 0 24px 70px -10px var(--glow), 0 0 60px -4px color-mix(in srgb, var(--medal) 80%, transparent); }
.slot.m1 .slot-rank, .slot.m2 .slot-rank, .slot.m3 .slot-rank {
  background: linear-gradient(135deg, var(--medal-hi), var(--medal) 50%, var(--medal-lo)); color: #16120a;
  box-shadow: 0 0 14px color-mix(in srgb, var(--medal) 70%, transparent), inset 0 1px 0 rgba(255, 255, 255, .6); }
.slot.filled.m1 .slot-rank { width: 40px; height: 40px; font-size: 19px; }
.slot.filled.m2 .slot-rank, .slot.filled.m3 .slot-rank { width: 34px; height: 34px; font-size: 16px; }
.slot.filled.m1::after, .slot.filled.m2::after, .slot.filled.m3::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, .28) 50%, transparent 62%);
  transform: translateX(-130%); animation: medal-shine 6s ease-in-out infinite; }
.slot.filled.m2::after { animation-delay: 1.2s; }
.slot.filled.m3::after { animation-delay: 2.4s; }
@keyframes medal-shine { 0%, 70% { transform: translateX(-130%); } 100% { transform: translateX(130%); } }
.pyr-row.r1 { position: relative; padding-top: 30px; }
.pyr-row.r1::before { content: "♛"; position: absolute; top: -6px; left: 50%; transform: translateX(-50%);
  font-size: 34px; line-height: 1; color: #ffc93c; text-shadow: 0 0 18px rgba(255, 201, 60, .8); }
@media (prefers-reduced-motion: reduce) { .slot.filled.m1::after, .slot.filled.m2::after, .slot.filled.m3::after { display: none; } }

@media (max-width: 640px) {
  .pyramid { gap: 10px; }
  .pyr-row { width: 100%; gap: 8px; }
  .pyr-row .slot { flex: none; min-width: 0; }
  .pyr-row.r1 .slot { width: min(150px, 44%); }
  .pyr-row.r2 .slot { width: min(124px, 36%); }
  .pyr-row.r3 .slot { width: min(104px, calc((100% - 16px) / 3)); }
  .pyr-row.r4 .slot { width: min(90px, calc((100% - 24px) / 4)); }
  .pyr-row.r1 { padding-top: 26px; }
  .slot-rank, .slot.m1 .slot-rank, .slot.m2 .slot-rank, .slot.m3 .slot-rank,
  .slot.filled.m2 .slot-rank, .slot.filled.m3 .slot-rank { width: 26px; height: 26px; font-size: 13px; top: 6px; left: 6px; }
  .slot.filled.m1 .slot-rank { width: 32px; height: 32px; font-size: 16px; }
  .slot-info { padding: 20px 7px 7px; }
  .slot-title { font-size: 10.5px; }
  .pyr-row.r1 .slot-title { font-size: 12.5px; }
  .slot-sub { font-size: 9px; }
}

/* privacy policy and other text pages */
.pub-doc { max-width: 760px; margin: 0 auto; padding-top: 34px; }
.pub-doc h1 { margin: 0 0 4px; font-size: clamp(28px, 4.4vw, 40px); }
.pub-doc section { margin-top: 28px; }
.pub-doc h2 { margin: 0 0 10px; font-size: 19px; }
.pub-doc p, .pub-doc li { color: #d6d8df; }
.pub-doc p { margin: 0 0 12px; }
.pub-doc ul { margin: 0 0 12px; padding-left: 20px; }
.pub-doc li { margin-bottom: 6px; }
.pub-doc a { color: var(--accent-2); }
