:root {
  --red: #d71920;
  --red-dark: #aa1016;
  --ink: #101318;
  --muted: #5d646f;
  --line: #dfdedb;
  --paper: #fffdf9;
  --cream: #f6f2eb;
  --teal: #00766e;
  --gold: #f5aa24;
  --shadow: 0 18px 45px rgba(18, 19, 24, 0.12);
  --soft-shadow: 0 10px 24px rgba(18, 19, 24, 0.09);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 0;
  background: var(--paper);
}

img,
svg {
  max-width: 100%;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid rgba(215, 25, 32, 0.35);
  outline-offset: 3px;
}

.skip-link {
  background: var(--ink);
  color: #fff;
  left: 1rem;
  padding: 0.75rem 1rem;
  position: fixed;
  top: 0.75rem;
  transform: translateY(-160%);
  z-index: 50;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-shell {
  min-height: 100vh;
  overflow-x: clip;
}

.sr-only {
  clip: rect(0, 0, 0, 0);
  border: 0;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.topbar {
  align-items: center;
  background: rgba(255, 253, 249, 0.96);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(11rem, 1fr) auto minmax(11rem, 1fr);
  gap: 1rem;
  min-height: 72px;
  padding: 0 2.9vw;
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
}

.logo {
  align-items: baseline;
  display: inline-flex;
  font-size: clamp(1.7rem, 2.6vw, 2.28rem);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.logo-rank {
  color: #18a858;
}

.logo-accent {
  color: var(--red);
}

.logo-dot {
  font-size: 0.58em;
  letter-spacing: -0.03em;
  margin-left: 0.04em;
}

.main-nav {
  align-items: center;
  display: flex;
  gap: clamp(1.2rem, 3vw, 2.7rem);
  justify-content: center;
  font-size: 0.97rem;
}

.nav-link {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  gap: 0.34rem;
  padding: 0.45rem 0.2rem;
  text-decoration: none;
}

.nav-link:hover {
  color: var(--red);
}

.nav-actions {
  align-items: center;
  display: flex;
  gap: 1.05rem;
  justify-content: flex-end;
}

.icon-button {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--ink);
  display: inline-flex;
  height: 42px;
  justify-content: center;
  padding: 0;
  width: 42px;
}

.primary-button {
  align-items: center;
  background: var(--red);
  border: 1px solid var(--red);
  border-radius: 6px;
  box-shadow: 0 12px 22px rgba(215, 25, 32, 0.18);
  color: #fff;
  display: inline-flex;
  font-weight: 800;
  gap: 0.55rem;
  justify-content: center;
  min-height: 42px;
  padding: 0.72rem 1.08rem;
  text-decoration: none;
  white-space: nowrap;
}

.primary-button:hover {
  background: var(--red-dark);
}

.menu-button {
  display: none;
}

.hero {
  background:
    linear-gradient(90deg, rgba(255, 253, 249, 0.97) 0%, rgba(255, 253, 249, 0.9) 34%, rgba(255, 253, 249, 0.13) 56%),
    url("../assets/site/hero-desk.jpg") center right / cover no-repeat;
  border-bottom: 1px solid var(--line);
  min-height: 486px;
  padding: clamp(2.1rem, 3.2vw, 3.1rem) 7.7vw 2rem;
  position: relative;
}

.hero-content {
  max-width: 38rem;
}

.eyebrow {
  color: var(--red);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  margin: 0 0 0.75rem;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

.hero h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.15rem, 5.5vw, 5.45rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.94;
  margin: 0;
  max-width: 12ch;
}

.subhead {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.28rem, 2vw, 1.65rem);
  line-height: 1.3;
  margin: 1rem 0 0;
}

.red-rule {
  background: var(--red);
  height: 3px;
  margin: 0.8rem 0 1rem;
  width: 54px;
}

.hero-copy {
  font-size: 1rem;
  line-height: 1.55;
  margin: 0 0 1.35rem;
  max-width: 33rem;
}

.hero-trust {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  max-width: 47rem;
  position: absolute;
  right: clamp(2rem, 9vw, 11rem);
  bottom: 2rem;
  width: min(47rem, 56vw);
}

.trust-card {
  align-items: center;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 12px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 0.9rem;
  grid-template-columns: 48px 1fr;
  min-height: 112px;
  padding: 1rem 1.1rem;
  backdrop-filter: blur(16px);
}

.trust-icon {
  align-items: center;
  border-radius: 9px;
  color: #fff;
  display: inline-flex;
  height: 46px;
  justify-content: center;
  width: 46px;
}

.trust-icon.red {
  background: linear-gradient(135deg, #e42b31, #b91018);
}

.trust-icon.teal {
  background: linear-gradient(135deg, #00847b, #005b55);
}

.trust-icon.gold {
  background: linear-gradient(135deg, #ffbb35, #e48611);
}

.trust-card h2 {
  font-size: 0.93rem;
  margin: 0 0 0.2rem;
}

.trust-card p {
  color: #333942;
  font-size: 0.82rem;
  line-height: 1.35;
  margin: 0;
}

.content-grid {
  display: grid;
  gap: clamp(1.4rem, 2.4vw, 2rem);
  grid-template-columns: minmax(0, 1fr) 300px;
  padding: 1.45rem 3.5vw 1.7rem;
}

.section-head {
  align-items: end;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.7rem;
}

.section-head h2,
.curator-panel h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.75rem, 2.5vw, 2.35rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1;
  margin: 0;
}

.section-head h2::after,
.curator-panel h2::after {
  background: var(--red);
  content: "";
  display: block;
  height: 2px;
  margin-top: 0.42rem;
  width: 31px;
}

.text-link {
  align-items: center;
  color: var(--red);
  display: inline-flex;
  font-size: 0.9rem;
  gap: 0.45rem;
  text-decoration: none;
  white-space: nowrap;
}

.text-link:hover {
  color: var(--red-dark);
}

.category-grid {
  display: grid;
  gap: clamp(1rem, 1.7vw, 1.35rem);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.category-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(18, 19, 24, 0.06);
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.category-media {
  aspect-ratio: 3.6 / 1;
  background: #111;
  overflow: hidden;
  position: relative;
}

.category-media::after {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.48));
  content: "";
  inset: 0;
  position: absolute;
}

.category-image {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.category-label {
  color: #fff;
  font-size: clamp(0.82rem, 1.15vw, 1.06rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.15;
  max-width: 13rem;
  position: absolute;
  right: 1rem;
  text-align: right;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.72);
  text-transform: uppercase;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
}

.category-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.1rem 1.1rem 1.15rem;
}

.category-body h3 {
  font-size: clamp(1.12rem, 1.5vw, 1.35rem);
  line-height: 1.1;
  margin: 0 0 0.42rem;
}

.category-body > p {
  color: #343b45;
  font-size: 0.9rem;
  line-height: 1.42;
  margin: 0 0 1.05rem;
}

.rank-preview {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: auto;
  padding-top: 0.85rem;
}

.mini-rank {
  display: grid;
  gap: 0.36rem;
  grid-template-columns: auto minmax(0, 1fr);
  min-width: 0;
}

.rank-num {
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1;
  padding-top: 0.1rem;
}

.mini-rank strong {
  display: block;
  font-size: 0.66rem;
  line-height: 1.12;
}

.mini-rank span {
  color: #4d5662;
  display: block;
  font-size: 0.58rem;
  line-height: 1.25;
  margin-top: 0.16rem;
}

.card-link {
  color: var(--red);
  display: inline-flex;
  font-size: 0.84rem;
  gap: 0.45rem;
  margin-top: 1.05rem;
  text-decoration: none;
}

.curator-panel {
  border-left: 1px solid var(--line);
  padding-left: 2rem;
}

.pick-list {
  display: grid;
  gap: 0.95rem;
  margin-top: 1rem;
}

.pick {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: minmax(0, 1fr);
}

.pick p {
  color: #343b45;
  font-size: 0.86rem;
  line-height: 1.42;
  margin: 0 0 0.48rem;
}

.outline-button {
  align-items: center;
  border: 1px solid var(--red);
  border-radius: 6px;
  color: var(--red);
  display: inline-flex;
  font-size: 0.86rem;
  font-weight: 800;
  justify-content: center;
  margin-top: 1rem;
  min-height: 42px;
  padding: 0.8rem 1rem;
  text-decoration: none;
  width: 100%;
}

.benefits {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 3.5vw;
  padding: 1.3rem 0 2rem;
}

.benefit {
  align-items: center;
  border-right: 1px solid var(--line);
  display: grid;
  gap: 1rem;
  grid-template-columns: 54px 1fr;
  min-width: 0;
  padding: 0.45rem 1.7rem;
}

.benefit:first-child {
  padding-left: 1.9rem;
}

.benefit:last-child {
  border-right: 0;
}

.benefit-icon {
  align-items: center;
  color: var(--ink);
  display: inline-flex;
  justify-content: center;
}

.benefit h2 {
  font-size: 0.98rem;
  margin: 0 0 0.28rem;
}

.benefit p {
  color: #343b45;
  font-size: 0.85rem;
  line-height: 1.38;
  margin: 0;
}

.random-categories {
  border-top: 1px solid var(--line);
  padding: 1.45rem 3.5vw 2rem;
}

.random-category-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.random-category-card {
  background-color: var(--ink);
  background-position: center;
  background-size: cover;
  border-radius: 8px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 190px;
  overflow: hidden;
  padding: 1rem;
  text-decoration: none;
}

.random-category-card:hover,
.random-category-card:focus-visible {
  box-shadow: var(--soft-shadow);
  transform: translateY(-2px);
}

.random-category-kicker {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.25;
  margin-bottom: 0.4rem;
  text-transform: uppercase;
}

.random-category-title {
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.1;
}

.random-category-description {
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.78rem;
  line-height: 1.35;
  margin-top: 0.45rem;
}

.page-hero {
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  padding: clamp(2.1rem, 4vw, 4rem) 3.5vw clamp(1.8rem, 3vw, 3rem);
}

.page-hero h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.7rem, 5vw, 4.9rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.96;
  margin: 0;
  max-width: 12ch;
}

.page-intro {
  color: #343b45;
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  line-height: 1.55;
  margin: 1rem 0 0;
  max-width: 42rem;
}

.page-content {
  padding: 1.45rem 3.5vw 2rem;
}

.hub-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.data-error {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(18, 19, 24, 0.06);
  color: #343b45;
  padding: 1rem;
}

.category-detail-page {
  --category-accent: var(--red);
  --category-accent-dark: var(--red-dark);
  --category-accent-soft: rgba(215, 25, 32, 0.13);
  --category-accent-wash: rgba(215, 25, 32, 0.07);
  --category-companion: var(--gold);
  background:
    radial-gradient(circle at 8% 14%, var(--category-accent-wash), transparent 28rem),
    linear-gradient(180deg, #fffdf9 0%, #f8f4ed 46%, #fffdf9 100%);
}

.category-accent-0 {
  --category-accent: #d71920;
  --category-accent-dark: #9f1016;
  --category-accent-soft: rgba(215, 25, 32, 0.15);
  --category-accent-wash: rgba(215, 25, 32, 0.08);
  --category-companion: #f5aa24;
}

.category-accent-1 {
  --category-accent: #00766e;
  --category-accent-dark: #00564f;
  --category-accent-soft: rgba(0, 118, 110, 0.16);
  --category-accent-wash: rgba(0, 118, 110, 0.08);
  --category-companion: #e5532d;
}

.category-accent-2 {
  --category-accent: #7a4cc2;
  --category-accent-dark: #52308d;
  --category-accent-soft: rgba(122, 76, 194, 0.16);
  --category-accent-wash: rgba(122, 76, 194, 0.08);
  --category-companion: #18a858;
}

.category-accent-3 {
  --category-accent: #b35b00;
  --category-accent-dark: #7f3f00;
  --category-accent-soft: rgba(179, 91, 0, 0.16);
  --category-accent-wash: rgba(179, 91, 0, 0.08);
  --category-companion: #00766e;
}

.category-accent-4 {
  --category-accent: #1464b8;
  --category-accent-dark: #0d477f;
  --category-accent-soft: rgba(20, 100, 184, 0.15);
  --category-accent-wash: rgba(20, 100, 184, 0.08);
  --category-companion: #f5aa24;
}

.category-accent-5 {
  --category-accent: #b8286d;
  --category-accent-dark: #821a4c;
  --category-accent-soft: rgba(184, 40, 109, 0.15);
  --category-accent-wash: rgba(184, 40, 109, 0.08);
  --category-companion: #18a858;
}

.category-detail-hero {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(255, 253, 249, 0.96) 0%, rgba(255, 253, 249, 0.86) 52%, var(--category-accent-soft) 100%),
    linear-gradient(90deg, var(--category-accent-wash), rgba(245, 170, 36, 0.07));
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: clamp(1.3rem, 3vw, 2.5rem);
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.72fr);
  padding: clamp(2.1rem, 4vw, 4rem) 3.5vw clamp(1.8rem, 3vw, 3rem);
  position: relative;
}

.category-detail-hero::before {
  background: linear-gradient(90deg, var(--category-accent), var(--category-companion));
  content: "";
  height: 5px;
  left: 3.5vw;
  position: absolute;
  top: 0;
  width: min(18rem, 42vw);
}

.category-detail-copy {
  max-width: 50rem;
}

.category-detail-copy .eyebrow {
  color: var(--category-accent-dark);
}

.category-detail-copy h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.7rem, 5vw, 4.9rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.96;
  margin: 0;
  max-width: 13ch;
}

.category-detail-copy .text-link {
  margin-top: 1.1rem;
}

.category-detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.25rem;
}

.category-detail-badges span {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-color: color-mix(in srgb, var(--category-accent) 34%, var(--line));
  border-radius: 999px;
  color: #222832;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.2;
  padding: 0.42rem 0.68rem;
  text-transform: uppercase;
}

.category-detail-badges span:first-child {
  background: var(--category-accent);
  border-color: var(--category-accent);
  color: #fff;
}

.category-detail-media {
  background: #111;
  border: 1px solid rgba(16, 19, 24, 0.18);
  border-radius: 8px;
  box-shadow: 0 24px 55px rgba(18, 19, 24, 0.2);
  margin: 0;
  overflow: hidden;
  position: relative;
}

.category-detail-media::before {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent 35%),
    linear-gradient(0deg, rgba(16, 19, 24, 0.16), transparent 52%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 1;
}

.category-detail-media img {
  aspect-ratio: 16 / 9;
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.category-detail-media figcaption {
  background: linear-gradient(90deg, rgba(16, 19, 24, 0.9), rgba(16, 19, 24, 0.46));
  bottom: 0;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  left: 0;
  letter-spacing: 0.12em;
  padding: 0.8rem 1rem;
  position: absolute;
  right: 0;
  text-transform: uppercase;
  z-index: 2;
}

.category-detail-layout {
  align-items: start;
  display: grid;
  gap: clamp(1.25rem, 2.3vw, 2rem);
  grid-template-columns: minmax(0, 1fr);
  padding: clamp(1.35rem, 2.6vw, 2.2rem) 3.5vw 0;
}

.category-ranking-section {
  min-width: 0;
}

.category-ranking-head {
  align-items: end;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1rem;
  padding-bottom: 0.9rem;
}

.category-ranking-head h2::after {
  background: linear-gradient(90deg, var(--category-accent), var(--category-companion));
  width: 42px;
}

.category-ranking-head p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
  margin: 0;
  text-align: right;
}

.category-ranking-list {
  counter-reset: category-rank;
  display: grid;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ranking-card {
  align-items: center;
  background:
    linear-gradient(90deg, var(--category-accent-wash), transparent 36%),
    #fff;
  border: 1px solid var(--line);
  border-color: color-mix(in srgb, var(--category-accent) 22%, var(--line));
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(18, 19, 24, 0.06);
  display: grid;
  gap: 1rem;
  grid-template-columns: 4rem minmax(0, 1fr);
  min-width: 0;
  overflow: hidden;
  padding: 1.05rem 1.1rem;
  position: relative;
}

.ranking-card::before {
  background: linear-gradient(180deg, var(--category-accent), var(--category-companion));
  content: "";
  inset: 0 auto 0 0;
  position: absolute;
  width: 4px;
}

.ranking-position {
  align-items: center;
  background: var(--category-accent);
  border-radius: 8px;
  box-shadow: inset 0 -10px 18px rgba(0, 0, 0, 0.12);
  color: #fff;
  display: inline-flex;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.72rem;
  height: 3rem;
  justify-content: center;
  line-height: 1;
  position: relative;
  width: 3rem;
}

.ranking-content h3 {
  font-size: clamp(1.18rem, 1.8vw, 1.55rem);
  line-height: 1.1;
  margin: 0 0 0.45rem;
}

.ranking-content p {
  color: #343b45;
  line-height: 1.48;
  margin: 0;
}

.movie-meta {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.25;
  margin: 0 0 0.42rem;
  text-transform: uppercase;
}

.movie-meta.compact {
  font-size: 0.74rem;
  margin: 0.2rem 0 0;
}

.criteria-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(18, 19, 24, 0.06);
  padding: 1.1rem;
}

.criteria-panel h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 0 0 0.8rem;
}

.criteria-panel p,
.criteria-panel li {
  color: #343b45;
  font-size: 0.9rem;
  line-height: 1.45;
}

.criteria-panel p {
  margin: 0 0 0.85rem;
}

.criteria-panel ul {
  margin: 0;
  padding-left: 1.15rem;
}

.related-categories {
  padding-top: 1.45rem;
}

.top100-hero h1 {
  max-width: 13ch;
}

.top100-layout {
  align-items: start;
  display: grid;
  gap: clamp(1.25rem, 2.3vw, 2rem);
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 300px);
  min-width: 0;
  padding: 1.45rem 3.5vw 2rem;
}

.categories-list-layout {
  grid-template-columns: minmax(0, 1fr);
}

.top100-table-section {
  min-width: 0;
}

.ranking-table-wrap {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(18, 19, 24, 0.06);
  max-width: 100%;
  overflow-x: auto;
  width: 100%;
}

.ranking-table {
  border-collapse: collapse;
  min-width: 720px;
  width: 100%;
}

.ranking-table caption {
  color: var(--muted);
  font-size: 0.86rem;
  padding: 1rem 1rem 0;
  text-align: left;
}

.ranking-table th,
.ranking-table td {
  border-bottom: 1px solid var(--line);
  padding: 0.9rem 1rem;
  text-align: left;
  vertical-align: top;
}

.ranking-table thead th {
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ranking-table tbody th {
  color: var(--red);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.8rem;
  font-weight: 500;
  line-height: 1;
  width: 5.5rem;
}

.category-row-list {
  display: grid;
  gap: 0.85rem;
}

.category-list-count {
  color: var(--muted);
  font-size: 0.86rem;
  margin: 0;
}

.category-row-link {
  background-position: center;
  background-size: cover;
  border-radius: 8px;
  box-shadow: var(--soft-shadow);
  color: #fffdf9;
  display: grid;
  gap: 0.42rem;
  min-height: 178px;
  overflow: hidden;
  padding: 1.25rem;
  position: relative;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.category-row-link::after {
  background: linear-gradient(180deg, rgba(245, 170, 36, 0.22), rgba(215, 25, 32, 0.16));
  content: "";
  inset: 0;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  transition: opacity 180ms ease;
}

.category-row-link:hover,
.category-row-link:focus-visible {
  box-shadow: 0 18px 42px rgba(16, 19, 24, 0.22);
  transform: translateY(-2px);
}

.category-row-link:hover::after,
.category-row-link:focus-visible::after {
  opacity: 1;
}

.category-row-kicker,
.category-row-title,
.category-row-description {
  position: relative;
  z-index: 1;
}

.category-row-kicker {
  color: rgba(255, 253, 249, 0.76);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.category-row-title {
  align-items: center;
  display: flex;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5vw, 3.45rem);
  gap: 0.6rem;
  line-height: 0.96;
  max-width: 12ch;
}

.category-row-title svg {
  flex: 0 0 auto;
  height: 0.68em;
  width: 0.68em;
}

.category-row-description {
  color: rgba(255, 253, 249, 0.84);
  font-size: 0.96rem;
  line-height: 1.45;
  max-width: 36rem;
}

.ranking-table tbody tr:last-child th,
.ranking-table tbody tr:last-child td {
  border-bottom: 0;
}

.table-movie {
  align-items: center;
  display: grid;
  gap: 0.85rem;
  grid-template-columns: minmax(0, 1fr);
  min-width: 13rem;
}

.table-movie strong {
  display: block;
  line-height: 1.18;
}

.table-movie span,
.muted-note {
  color: var(--muted);
  display: block;
  font-size: 0.84rem;
  margin-top: 0.2rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tag-list li {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #343b45;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
  padding: 0.34rem 0.58rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.84rem;
  padding: 1.1rem 3.5vw 1.4rem;
}

.footer-inner {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.footer-inner p {
  margin: 0;
  max-width: 56rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.9rem;
  justify-content: flex-end;
}

.footer-nav a {
  color: var(--ink);
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--red);
}

.support-hero h1 {
  max-width: 14ch;
}

.support-layout {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 1.45rem 3.5vw 2rem;
}

.support-layout-single {
  grid-template-columns: minmax(0, 1fr);
}

.support-section {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(18, 19, 24, 0.06);
  min-width: 0;
  padding: 1.1rem;
}

.support-section h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 0 0 0.8rem;
}

.support-section p {
  color: #343b45;
  line-height: 1.5;
  margin: 0;
}

.support-section p + p {
  margin-top: 0.75rem;
}

@media (max-width: 1180px) {
  .topbar {
    grid-template-columns: 1fr auto;
  }

  .main-nav {
    background: #fff;
    border-bottom: 1px solid var(--line);
    display: none;
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
    padding: 0.4rem 0 0.9rem;
  }

  .topbar.nav-open .main-nav {
    display: flex;
  }

  .menu-button {
    display: inline-flex;
  }

  .hero-trust {
    position: static;
    margin-left: 0;
    margin-top: 2rem;
    width: auto;
  }

  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .random-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .content-grid {
    grid-template-columns: 1fr;
  }

  .curator-panel {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-left: 0;
    padding-top: 1.25rem;
  }

  .pick-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pick {
    grid-template-columns: minmax(0, 1fr);
  }

  .category-detail-hero,
  .category-detail-layout,
  .top100-layout,
  .support-layout {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1181px) and (max-width: 1640px) {
  .hero-trust {
    bottom: auto;
    margin-top: 2rem;
    max-width: 47rem;
    position: static;
    right: auto;
    width: auto;
  }

  .trust-card {
    min-width: 0;
  }
}

@media (max-width: 820px) {
  .topbar {
    min-height: 64px;
    padding: 0 1rem;
  }

  .nav-actions {
    gap: 0.35rem;
  }

  .nav-actions .icon-button:not(.menu-button),
  .nav-actions .primary-button span {
    display: none;
  }

  .primary-button {
    min-width: 44px;
    padding: 0.68rem;
  }

  .hero {
    background:
      linear-gradient(180deg, rgba(246, 242, 235, 0.96) 0%, rgba(246, 242, 235, 0.88) 58%, rgba(246, 242, 235, 0.2) 100%),
      url("../assets/site/hero-desk.jpg") center bottom / cover no-repeat;
    min-height: 0;
    padding: 2.3rem 1rem 1.25rem;
  }

  .hero h1 {
    font-size: clamp(2.65rem, 16vw, 4rem);
    max-width: 11ch;
  }

  .hero-trust {
    grid-template-columns: 1fr;
    margin-top: 1.7rem;
  }

  .content-grid {
    padding: 1.2rem 1rem 1.5rem;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .category-grid,
  .hub-grid,
  .random-category-grid,
  .pick-list,
  .benefits {
    grid-template-columns: 1fr;
  }

  .rank-preview {
    grid-template-columns: 1fr;
  }

  .mini-rank {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .mini-rank strong {
    font-size: 0.8rem;
  }

  .mini-rank span {
    font-size: 0.72rem;
  }

  .benefits {
    margin: 0 1rem;
  }

  .random-categories {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .benefit,
  .benefit:first-child {
    border-bottom: 1px solid var(--line);
    border-right: 0;
    padding: 1rem 0;
  }

  .benefit:last-child {
    border-bottom: 0;
  }

  .category-detail-hero {
    padding: 2.1rem 1rem 1.5rem;
  }

  .category-detail-hero::before {
    left: 1rem;
    width: min(15rem, calc(100% - 2rem));
  }

  .category-detail-layout,
  .related-categories,
  .top100-layout,
  .support-layout {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-nav {
    justify-content: flex-start;
  }

  .ranking-card {
    align-items: start;
    grid-template-columns: 3rem minmax(0, 1fr);
    padding: 0.9rem;
  }

  .category-ranking-head {
    align-items: flex-start;
  }

  .category-ranking-head p {
    text-align: left;
  }

  .ranking-position {
    font-size: 1.55rem;
    height: 2.65rem;
    width: 2.65rem;
  }

}

@media (max-width: 420px) {
  .logo {
    font-size: 1.46rem;
  }

  .logo-dot {
    font-size: 0.52em;
  }

  .hero-copy {
    font-size: 0.94rem;
  }

  .category-body {
    padding: 1rem;
  }

  .trust-card {
    grid-template-columns: 42px 1fr;
    padding: 0.9rem;
  }

  .trust-icon {
    height: 40px;
    width: 40px;
  }
}
