@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Instrument+Serif:ital@0;1&display=swap');

:root {
  --paper: #f6f3ea;
  --ink: #191a18;
  --muted: #57564e;
  --line: #cbc5b5;
  --cobalt: #243fc5;
  --orange: #ff5b38;
  --display: "Instrument Serif", Georgia, serif;
  --body: "DM Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 20px; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 16px/1.5 var(--body); }
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 5px; }
h1, h2, h3, h4, p { margin: 0; }
img { display: block; width: 100%; }
.shell { width: min(1260px, calc(100% - 96px)); margin-inline: auto; }
.skip { position: absolute; top: -100px; left: 16px; padding: 10px 16px; z-index: 3; background: var(--paper); }
.skip:focus { top: 8px; }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner { min-height: 71px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.logo { display: inline-flex; align-items: flex-start; gap: 3px; color: var(--ink); font-weight: 700; font-size: 25px; line-height: 1; letter-spacing: -.11em; text-decoration: none; }
.logo-ten { color: var(--cobalt); }
.logo-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--orange); margin-left: 3px; }
.site-header nav { display: flex; gap: clamp(14px, 2.65vw, 38px); flex-wrap: wrap; }
.site-header nav a { text-decoration: none; font-size: 14px; font-weight: 600; text-underline-offset: 5px; }
.site-header nav a:hover, .site-header nav a[aria-current] { text-decoration: underline; color: var(--cobalt); }
.masthead { display: grid; grid-template-columns: minmax(0, 1fr) 34%; gap: 30px; align-items: center; padding-block: clamp(28px, 4.3vw, 62px); }
.masthead h1 { font: 400 clamp(45px, 6.4vw, 101px)/.91 var(--display); letter-spacing: -.045em; }
.masthead h1 em { color: var(--cobalt); font-weight: 400; white-space: nowrap; }
.masthead h1 em span { color: var(--orange); }
.masthead-copy p { font-size: clamp(17px, 1.65vw, 23px); margin-top: 23px; color: var(--muted); }
.poster { overflow: hidden; isolation: isolate; position: relative; height: clamp(165px, 21vw, 292px); background: var(--cobalt); display: grid; place-items: center; background-image: radial-gradient(ellipse at 68% 25%, #3e59da, transparent 63%), repeating-linear-gradient(0deg, #ffffff0a 0 1px, transparent 1px 4px); }
.globe { --grid: #eae7dfdf; width: 53%; max-width: 226px; aspect-ratio: 1; border: 1px solid var(--grid); border-radius: 50%; position: relative; transform: rotate(-25deg); background: #203cc78c; }
.globe i { position: absolute; border: 1px solid var(--grid); border-radius: 50%; inset: 0; }
.globe i:nth-child(1) { inset: 0 20%; }
.globe i:nth-child(2) { inset: 0 38%; }
.globe i:nth-child(3) { inset: 12% 6%; }
.globe i:nth-child(4) { inset: 28% 1%; }
.globe i:nth-child(5) { inset: 43% 0; }
.globe i:nth-child(6) { inset: 49.7% 0; border-width: 1px 0 0; border-radius: 0; }
.poster-orbit { position: absolute; width: 87%; height: 29%; border: 1px solid #f6f3eaa8; border-radius: 50%; transform: rotate(-24deg); z-index: 1; }
.poster-star { position: absolute; top: 7%; right: 8%; color: #f6f3ea; font-size: clamp(25px, 3.6vw, 53px); line-height: 1; }
.poster-dot { position: absolute; left: 17%; bottom: 22%; width: 7%; aspect-ratio: 1; background: var(--orange); border-radius: 50%; z-index: 2; }
.section-title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-top: 2px solid var(--ink); padding: 14px 0 19px; }
.section-title h2 { font: 400 clamp(34px, 4.2vw, 56px)/1 var(--display); letter-spacing: -.02em; }
.section-title > span { color: var(--muted); font-size: 13px; text-align: right; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 23px; }
.card { border: 1px solid var(--line); background: #fbf8f1; }
.card > a { display: flex; flex-direction: column; min-height: 100%; text-decoration: none; }
.card-image, .detail-image { overflow: hidden; background: var(--accent); }
.card-image img { aspect-ratio: 1.72; height: auto; object-fit: cover; transition: transform .3s ease; }
.card:hover img { transform: scale(1.035); }
.card-body { position: relative; flex: 1; padding: 17px 50px 22px 17px; }
.card-label { color: var(--accent); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; }
.card :is(h3, h4) { font: 400 clamp(29px, 3vw, 43px)/.98 var(--display); letter-spacing: -.026em; margin-top: 7px; }
.card p { margin-top: 10px; color: var(--muted); font-size: 14px; }
.card-arrow { position: absolute; right: 14px; bottom: 17px; width: 31px; height: 31px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; line-height: 1; }
.card:hover .card-arrow, .card a:focus-visible .card-arrow { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.red { --accent: #a63322; }
.blue { --accent: #273daf; }
.purple { --accent: #6d337e; }
.ochre { --accent: #855122; }
.site-footer { border-top: 1px solid var(--line); margin-top: 52px; padding: 19px 0 25px; display: flex; justify-content: space-between; gap: 14px; color: var(--muted); font-size: 13px; }
.site-footer a { white-space: nowrap; text-underline-offset: 4px; }
.back { display: inline-flex; align-items: center; gap: 8px; margin-top: 29px; color: var(--muted); font-size: 14px; text-underline-offset: 4px; }
.detail-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: clamp(23px, 5vw, 72px); padding: 23px 0 44px; }
.detail h1 { font: 400 clamp(50px, 6.9vw, 100px)/.91 var(--display); letter-spacing: -.035em; margin: 12px 0 19px; overflow-wrap: anywhere; }
.detail .intro { color: var(--muted); max-width: 61ch; font-size: clamp(16px, 1.45vw, 19px); }
.detail-image img { aspect-ratio: 1.4; object-fit: cover; height: auto; }
.ranking { max-width: 980px; margin-inline: auto; }
.metric { color: var(--muted); margin-bottom: 17px; font-size: 14px; }
.entries { padding: 0; margin: 0; }
.entries li { list-style: none; display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; align-items: start; gap: 20px; padding: 22px 0; border-top: 1px solid var(--line); }
.entries li:first-child { padding-inline: 14px; background: #efeade; }
.rank { color: var(--accent); font: 400 57px/.9 var(--display); font-variant-numeric: lining-nums tabular-nums; }
.entry h3 { font: 400 clamp(27px, 3.2vw, 43px)/1 var(--display); letter-spacing: -.02em; }
.entry-meta { display: block; color: var(--muted); font-size: 13px; margin-top: 5px; }
.entry p { margin-top: 8px; font-size: 15px; max-width: 62ch; }
.entry-value { font-weight: 700; font-size: 17px; color: var(--accent); padding-top: 5px; white-space: nowrap; }
.sources { border-top: 1px solid var(--line); padding: 22px 0 25px; }
.sources h2 { font: 400 35px/1 var(--display); }
.sources ul { list-style: none; padding: 0; margin: 11px 0 0; }
.sources li + li { margin-top: 6px; }
.sources a { color: var(--muted); font-size: 14px; text-underline-offset: 4px; }
.next-list { display: flex; justify-content: space-between; align-items: center; gap: 15px; border-top: 2px solid var(--ink); padding-top: 19px; }
.next-list a { text-underline-offset: 5px; }
.next-list a:last-child { text-align: right; font: 400 29px/1.05 var(--display); }
.next-list a:last-child > span:first-child { display: block; font: 600 11px/1.4 var(--body); color: var(--muted); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 4px; }

@media (max-width: 900px) {
  .shell { width: calc(100% - 48px); }
  .cards { gap: 15px; }
}
@media (max-width: 700px) {
  .header-inner { display: block; padding-block: 15px; }
  .site-header nav { margin-top: 13px; gap: 8px 17px; }
  .site-header nav a { font-size: 13px; }
  .shell { width: calc(100% - 32px); }
  .masthead { grid-template-columns: 1fr; gap: 20px; }
  .masthead h1 { font-size: clamp(47px, 10vw, 70px); }
  .masthead-copy p { margin-top: 12px; }
  .poster { height: clamp(130px, 33vw, 190px); }
  .globe { width: min(35%, 150px); }
  .poster-orbit { width: min(68%, 250px); }
  .poster-dot { width: 18px; left: 30%; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-hero { grid-template-columns: 1fr; }
  .detail-image img { aspect-ratio: 2; }
  .entries li { grid-template-columns: 45px minmax(0, 1fr) auto; gap: 9px; }
  .rank { font-size: 41px; }
  .entry-value { font-size: 14px; }
}
@media (max-width: 470px) {
  .cards { grid-template-columns: 1fr; }
  .card :is(h3, h4) { font-size: 36px; }
  .entries li { grid-template-columns: 34px minmax(0, 1fr); position: relative; }
  .entry-value { grid-column: 2; padding: 0; }
  .entries li:first-child { padding-inline: 8px; }
  .entry p { font-size: 14px; }
  .site-footer { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; }
}

.topic + .topic { margin-top: clamp(30px, 5vw, 58px); border-top: 1px solid var(--line); padding-top: 18px; }
.topic > h3 { font: 400 clamp(27px, 3.1vw, 40px)/1.04 var(--display); margin-bottom: 13px; }
.film-link { display: inline-block; margin-top: 16px; color: var(--accent); font-weight: 600; text-underline-offset: 4px; }
.entry h3 { overflow-wrap: anywhere; }

.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 16px; }
.privacy-page { max-width: 760px; }
.privacy-page h1 { font: 400 clamp(48px, 8vw, 78px)/.98 var(--display); margin-top: 28px; }
.privacy-page h2 { font: 400 32px/1.1 var(--display); margin-top: 25px; }
.privacy-page p { margin-top: 8px; }
.privacy-page p a { text-underline-offset: 4px; }
.article-ad { border-top: 1px solid var(--line); padding: 16px 0 20px; }
.article-ad > span { display: block; margin-bottom: 8px; color: var(--muted); font-size: 12px; }
.entries-continued li:first-child { padding-inline: 0; background: transparent; }
.featured + .overview { margin-top: clamp(35px, 6vw, 70px); }

.header-inner .language-switch {
  display: flex;
  flex: none;
  gap: 2px;
  align-items: center;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 18px;
}
.language-switch a { line-height: 1; padding: 7px 9px; border-radius: 14px; }
.header-inner .language-switch a[aria-current] { background: var(--cobalt); color: white; text-decoration: none; }
.header-inner .topic-nav { margin-left: auto; }
@media (max-width: 700px) {
  .header-inner { display: grid; grid-template-columns: 1fr auto; gap: 12px; }
  .header-inner .topic-nav { grid-row: 2; grid-column: 1 / -1; margin: 0; }
  .header-inner .language-switch { grid-row: 1; grid-column: 2; margin: 0; }
}
