/* Editorial ranking pages. Scoped so the legal-page defaults do not squeeze the grid. */
body.editorial-rank-page{background:#080a0c;color:#f3eee4}
body.editorial-rank-page main{width:min(1120px,calc(100% - 32px));margin:24px auto 56px;padding:0}
body.editorial-rank-page section{margin:48px 0;padding:0;background:transparent;border:0;border-radius:0}
body.editorial-rank-page h1{margin:8px 0 14px;font-size:clamp(32px,4.2vw,52px);line-height:1.45;letter-spacing:0;max-width:11em}
body.editorial-rank-page h2{margin:0 0 14px;font-size:clamp(24px,3vw,34px);line-height:1.45}
body.editorial-rank-page h3{margin:0 0 8px;font-size:clamp(20px,2vw,26px);line-height:1.5}
body.editorial-rank-page p,body.editorial-rank-page li{line-height:2}
body.editorial-rank-page a:focus-visible,body.editorial-rank-page input:focus-visible{outline:2px solid #d9a75d;outline-offset:3px}
.editorial-search{display:block;margin-inline-start:auto;min-width:min(240px,100%);padding:0;background:none;border:0}
.editorial-search input{width:100%;min-height:44px;border-radius:24px;padding:8px 16px}
.rank-breadcrumbs{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:0 0 18px;color:#a7adb0;font-size:14px}
.rank-breadcrumbs a{min-height:44px;display:inline-flex;align-items:center}
.rank-hero{position:relative;isolation:isolate;overflow:hidden;min-height:560px;display:flex;align-items:center;border:1px solid #ffffff1a;border-radius:20px;background:#080a0c}
.rank-hero-image{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:left center}
.rank-hero:after{content:"";position:absolute;inset:0;background:linear-gradient(to left,#080a0c 0%,rgb(8 10 12 / .96) 42%,rgb(8 10 12 / .55) 68%,rgb(8 10 12 / .15) 100%);pointer-events:none}
.rank-hero-copy{position:relative;z-index:1;max-width:36rem;padding:48px 6% 48px 4%;margin-inline-start:auto}
.rank-hero-copy :is(h1,.lead,.kicker){text-shadow:0 2px 16px #080a0c}
.rank-hero-copy .lead{margin:0;color:#eee6d8;font-size:18px;line-height:2}
.rank-english{margin:14px 0 0;color:#efe6d6;font-size:16px;line-height:1.7}
.rank-toc{display:flex;flex-wrap:wrap;gap:8px 14px;margin:22px 0 0}
.rank-toc a{display:inline-flex;align-items:center;min-height:44px;padding:6px 12px;border:1px solid #ffffff1f;border-radius:999px;color:#f3eee4;text-decoration:none}
.rank-toc a:hover{border-color:#d9a75d;color:#d9a75d}
.rank-grid,.rank-stack{display:grid;gap:18px}
.rank-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.rank-card{min-width:0;display:grid;grid-template-columns:132px minmax(0,1fr);gap:14px;align-items:start;padding:12px;border:1px solid #ffffff14;border-radius:14px;background:#11161a}
.rank-card:hover{border-color:#d9a75d88}
.rank-poster{position:relative;aspect-ratio:2/3;overflow:hidden;border-radius:10px;background:#14191c}
.rank-poster img,.rank-fallback{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.rank-fallback{display:grid;place-items:center;padding:12px;text-align:center;color:#d9a75d}
.rank-index{position:absolute;top:10px;inset-inline-start:10px;min-width:32px;padding:4px 8px;border-radius:8px;background:#080a0cd9;color:#f3eee4;font-weight:700}
.rank-copy p{margin:0 0 10px}
.rank-en{color:#d9a75d;font-size:14px}
.rank-meta{display:flex;flex-wrap:wrap;gap:6px 0;color:#c7c9c7;font-size:13px}
.rank-meta span+span:before{content:"·";margin-inline:8px;color:#7f8589}
.rank-watch{display:inline-flex;align-items:center;min-height:44px;margin-top:8px;padding:8px 14px;border-radius:8px;background:#d9a75d;color:#17110a;font-weight:700;text-decoration:none}
body.editorial-rank-page a.rank-watch{color:#17110a}
body.editorial-rank-page a.rank-watch:hover{background:#efc581}
.rank-links,.rank-related{display:flex;flex-wrap:wrap;gap:8px 16px;padding:0;margin:12px 0 0;list-style:none}
.rank-links a,.rank-related a{display:inline-flex;align-items:center;min-height:44px}
.rank-director,.rank-genre,.rank-faq{margin-top:22px;padding-top:16px;border-top:1px solid #ffffff14}
.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(min-width:800px){
  .rank-grid,.rank-stack{gap:22px}
  .rank-card{grid-template-columns:180px minmax(0,1fr);gap:18px}
}
@media(max-width:700px){
  body.editorial-rank-page .site-header{flex-wrap:wrap;row-gap:0}
  body.editorial-rank-page .site-header nav.site-navigation{flex:1 1 100%;flex-wrap:wrap;gap:2px 12px;margin:0;overflow:visible;white-space:normal;justify-content:flex-start}
  body.editorial-rank-page .site-header nav.site-navigation>a{padding-inline:2px}
  .rank-grid{grid-template-columns:1fr}
  .rank-hero{min-height:640px;border-radius:14px;align-items:flex-end}
  .rank-hero-copy{max-width:none;padding:28px 18px 24px}
  .rank-hero-copy .lead{font-size:16px}
  body.editorial-rank-page h1{font-size:32px}
  .editorial-search{display:none}
}
@media(prefers-reduced-motion:reduce){
  .rank-card{transition:none}
  .rank-card:hover{transform:none}
}
