* {
  box-sizing: border-box;
}

:root {
  --color-primary: 30 30 35;
  --color-secondary: 45 45 50;
  --color-accent: 70 130 180;
  --color-success: 46 125 50;
  --color-warning: 255 152 0;
  --color-error: 211 47 47;
  --color-text-primary: 240 240 245;
  --color-text-secondary: 180 180 190;
  --color-text-muted: 120 120 130;
  --color-bg-primary: 18 18 22;
  --color-bg-secondary: 25 25 30;
  --color-bg-tertiary: 35 35 40;
  --color-border: 50 50 60;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(var(--color-accent) / 0.16), transparent 34rem),
    rgb(var(--color-bg-primary));
  color: rgb(var(--color-text-primary));
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
video {
  display: block;
  max-width: 100%;
}

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgb(var(--color-border));
  background: rgba(var(--color-bg-secondary) / 0.94);
  backdrop-filter: blur(18px);
}

.site-nav {
  width: min(1280px, calc(100% - 2rem));
  height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, rgb(var(--color-text-primary)), rgb(var(--color-accent)));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.logo-mark {
  width: 2rem;
  height: 2rem;
  border-radius: 0.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: #fff;
  background: linear-gradient(135deg, rgb(var(--color-accent)), rgba(255, 255, 255, 0.28));
  box-shadow: 0 14px 30px rgba(var(--color-accent) / 0.25);
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}

.site-logo:hover .logo-mark {
  transform: rotate(12deg) scale(1.04);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  position: relative;
  display: inline-flex;
  padding: 0.5rem 0;
  color: rgb(var(--color-text-secondary));
  font-size: 0.94rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.2rem;
  height: 2px;
  border-radius: 99px;
  transform: scaleX(0);
  transform-origin: left;
  background: rgb(var(--color-accent));
  transition: transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: rgb(var(--color-text-primary));
}

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.mobile-menu-button {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 0.7rem;
  background: rgb(var(--color-bg-tertiary));
  color: rgb(var(--color-text-primary));
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.25rem;
}

.mobile-menu-button span {
  width: 1.1rem;
  height: 2px;
  background: currentColor;
  border-radius: 99px;
}

.mobile-nav {
  display: none;
  width: min(1280px, calc(100% - 2rem));
  margin: 0 auto 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgb(var(--color-border));
}

.mobile-nav.is-open {
  display: grid;
  gap: 0.4rem;
}

.mobile-nav .nav-link {
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  background: rgb(var(--color-bg-tertiary));
}

.hero-carousel {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  border-bottom: 1px solid rgb(var(--color-border));
  background: #050507;
}

.hero-stage {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.1) contrast(1.04);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.54) 44%, rgba(0, 0, 0, 0.18)),
    linear-gradient(0deg, rgb(var(--color-bg-primary)) 0%, transparent 38%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding-top: 9.5rem;
  max-width: 1180px;
}

.hero-kicker,
.section-kicker {
  margin: 0 0 0.7rem;
  color: rgb(var(--color-accent));
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 800;
}

.hero-content h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(2.7rem, 6vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero-content p {
  max-width: 720px;
  margin: 1.5rem 0 0;
  color: rgb(var(--color-text-secondary));
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.8;
}

.hero-actions,
.hero-shortcuts,
.tag-row,
.brand-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.hero-actions {
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.75rem 1.25rem;
  border-radius: 0.85rem;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  color: #fff;
  background: rgb(var(--color-accent));
  box-shadow: 0 16px 36px rgba(var(--color-accent) / 0.3);
}

.button.ghost {
  color: rgb(var(--color-text-primary));
  background: rgba(var(--color-bg-secondary) / 0.7);
  border: 1px solid rgb(var(--color-border));
}

.hero-tags {
  margin-top: 1.25rem;
}

.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 1.8rem;
  padding: 0.3rem 0.62rem;
  border-radius: 999px;
  color: rgb(var(--color-text-secondary));
  background: rgba(var(--color-bg-tertiary) / 0.8);
  border: 1px solid rgba(var(--color-border) / 0.8);
  font-size: 0.78rem;
}

.hero-panel {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 5rem;
  width: min(1180px, calc(100% - 2rem));
  transform: translateX(-50%);
  display: grid;
  gap: 1rem;
}

.hero-search,
.filter-panel {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem;
  border: 1px solid rgba(var(--color-border) / 0.92);
  border-radius: 1rem;
  background: rgba(var(--color-bg-secondary) / 0.86);
  backdrop-filter: blur(20px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.hero-search input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 0;
  outline: 0;
  border-radius: 0.75rem;
  padding: 0.85rem 1rem;
  color: rgb(var(--color-text-primary));
  background: rgb(var(--color-bg-tertiary));
}

.hero-search button {
  border: 0;
  border-radius: 0.75rem;
  padding: 0 1.4rem;
  color: #fff;
  background: rgb(var(--color-accent));
  font-weight: 800;
  white-space: nowrap;
}

.hero-shortcuts a,
.section-more,
.footer-links a {
  color: rgb(var(--color-text-secondary));
  transition: color 0.2s ease, transform 0.2s ease;
}

.hero-shortcuts a {
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(var(--color-bg-secondary) / 0.82);
  border: 1px solid rgba(var(--color-border) / 0.76);
}

.hero-shortcuts a:hover,
.section-more:hover,
.footer-links a:hover {
  color: rgb(var(--color-accent));
}

.hero-arrow {
  position: absolute;
  z-index: 5;
  top: 50%;
  width: 3rem;
  height: 3rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(10px);
  font-size: 2rem;
  line-height: 1;
}

.hero-arrow.prev {
  left: 2rem;
}

.hero-arrow.next {
  right: 2rem;
}

.hero-dots {
  position: absolute;
  z-index: 5;
  right: max(1rem, calc((100vw - 1180px) / 2));
  bottom: 2rem;
  display: flex;
  gap: 0.5rem;
}

.hero-dot {
  width: 0.65rem;
  height: 0.65rem;
  border: 0;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.4);
}

.hero-dot.is-active {
  width: 2rem;
  background: rgb(var(--color-accent));
}

.section-container {
  width: min(1280px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 3.5rem 0;
}

.section-muted {
  width: 100%;
  max-width: none;
  padding-left: max(1rem, calc((100% - 1280px) / 2));
  padding-right: max(1rem, calc((100% - 1280px) / 2));
  background: rgba(var(--color-bg-secondary) / 0.48);
}

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

.section-heading.compact {
  margin-bottom: 1rem;
}

.section-title {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.03em;
  background: linear-gradient(90deg, rgb(var(--color-text-primary)), rgb(var(--color-text-secondary)));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.movie-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1.25rem;
}

.catalog-grid {
  align-items: stretch;
}

.movie-card {
  overflow: hidden;
  border-radius: 1rem;
  background: rgb(var(--color-bg-secondary));
  border: 1px solid rgba(var(--color-border) / 0.86);
  transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.movie-card:hover {
  transform: translateY(-5px) scale(1.02);
  background: rgb(var(--color-bg-tertiary));
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

.movie-poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: rgb(var(--color-bg-tertiary));
}

.movie-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.movie-card:hover .movie-poster {
  transform: scale(1.08);
}

.movie-poster-link::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 45%;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), transparent);
}

.movie-year {
  position: absolute;
  z-index: 2;
  top: 0.65rem;
  right: 0.65rem;
  padding: 0.24rem 0.5rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.58);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
}

.movie-play {
  position: absolute;
  z-index: 2;
  left: 0.75rem;
  bottom: 0.75rem;
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  background: rgb(var(--color-accent));
  box-shadow: 0 12px 28px rgba(var(--color-accent) / 0.35);
}

.movie-card-body {
  padding: 0.95rem;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  color: rgb(var(--color-text-muted));
  font-size: 0.76rem;
}

.movie-meta span:not(:last-child)::after {
  content: "·";
  margin-left: 0.45rem;
  color: rgb(var(--color-border));
}

.movie-card h3,
.rank-card h3 {
  margin: 0.45rem 0 0;
  color: rgb(var(--color-text-primary));
  font-size: 1rem;
  line-height: 1.35;
}

.movie-card p,
.rank-card p,
.category-tile p,
.brand-strip p,
.page-hero p,
.detail-one-line,
.content-card p,
.site-footer p {
  color: rgb(var(--color-text-secondary));
  line-height: 1.7;
}

.movie-card p {
  min-height: 3.4em;
  margin: 0.45rem 0 0.75rem;
  font-size: 0.88rem;
}

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

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

.category-tile {
  display: grid;
  gap: 1rem;
  min-height: 100%;
  padding: 1rem;
  border: 1px solid rgba(var(--color-border) / 0.86);
  border-radius: 1.25rem;
  background: linear-gradient(135deg, rgba(var(--color-accent) / 0.14), rgba(var(--color-bg-secondary) / 0.92));
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.category-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--color-accent) / 0.7);
}

.category-thumbs {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 0.8fr;
  gap: 0.55rem;
  min-height: 145px;
}

.category-thumbs img {
  width: 100%;
  height: 100%;
  min-height: 145px;
  object-fit: cover;
  border-radius: 0.9rem;
  background: rgb(var(--color-bg-tertiary));
}

.category-tile h3 {
  margin: 0 0 0.45rem;
  font-size: 1.25rem;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 2rem;
  align-items: start;
}

.ranking-panel {
  position: sticky;
  top: 84px;
  padding: 1rem;
  border: 1px solid rgba(var(--color-border) / 0.86);
  border-radius: 1.25rem;
  background: rgba(var(--color-bg-secondary) / 0.72);
}

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

.full-rank {
  gap: 1rem;
}

.rank-card {
  display: grid;
  grid-template-columns: auto 82px minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  padding: 0.85rem;
  border-radius: 1rem;
  border: 1px solid rgba(var(--color-border) / 0.82);
  background: rgb(var(--color-bg-secondary));
  transition: transform 0.25s ease, background 0.25s ease;
}

.rank-card:hover {
  transform: translateX(4px);
  background: rgb(var(--color-bg-tertiary));
}

.compact-list .rank-card,
.mini-rank-list .rank-card {
  grid-template-columns: 76px minmax(0, 1fr);
}

.compact-list .rank-number,
.mini-rank-list .rank-number {
  display: none;
}

.rank-number {
  min-width: 2.5rem;
  color: rgb(var(--color-accent));
  font-size: 1.15rem;
  font-weight: 900;
  text-align: center;
}

.rank-poster-link img {
  width: 82px;
  height: 112px;
  object-fit: cover;
  border-radius: 0.75rem;
  background: rgb(var(--color-bg-tertiary));
}

.rank-info p {
  margin: 0.4rem 0 0.7rem;
  font-size: 0.92rem;
}

.brand-strip {
  padding: clamp(2rem, 4vw, 3rem);
  border-radius: 1.4rem;
  border: 1px solid rgba(var(--color-accent) / 0.3);
  background: linear-gradient(135deg, rgba(var(--color-accent) / 0.2), rgba(var(--color-bg-secondary) / 0.88));
  text-align: center;
}

.brand-strip h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
}

.brand-stats {
  justify-content: center;
  margin-top: 1.5rem;
}

.brand-stats span {
  padding: 0.85rem 1.1rem;
  border-radius: 1rem;
  background: rgb(var(--color-bg-secondary));
  color: rgb(var(--color-accent));
  font-weight: 800;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  background: rgb(var(--color-bg-secondary));
}

.compact-hero {
  padding: 5rem max(1rem, calc((100% - 1280px) / 2));
  border-bottom: 1px solid rgb(var(--color-border));
}

.compact-hero > div {
  max-width: 820px;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  letter-spacing: -0.05em;
}

.filter-panel {
  margin-bottom: 1.5rem;
}

.filter-panel select {
  max-width: 170px;
  appearance: none;
}

.filter-empty {
  margin: 2rem 0 0;
  padding: 1rem;
  border-radius: 1rem;
  color: rgb(var(--color-text-secondary));
  text-align: center;
  background: rgb(var(--color-bg-secondary));
}

.detail-hero {
  min-height: 580px;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
}

.detail-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(12px) saturate(1.1);
  transform: scale(1.05);
  opacity: 0.32;
}

.detail-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.42)),
    linear-gradient(0deg, rgb(var(--color-bg-primary)), transparent 50%);
}

.detail-inner {
  position: relative;
  z-index: 2;
  width: min(1280px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2.5rem 0 4rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  color: rgb(var(--color-text-secondary));
  font-size: 0.92rem;
  margin-bottom: 2rem;
}

.breadcrumb a:hover {
  color: rgb(var(--color-accent));
}

.detail-main {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
}

.detail-poster {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
  background: rgb(var(--color-bg-tertiary));
}

.detail-info h1 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.detail-one-line {
  max-width: 820px;
  margin: 1.2rem 0 1.5rem;
  font-size: 1.08rem;
}

.fact-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  padding: 0;
  margin: 0 0 1.4rem;
  list-style: none;
}

.fact-list li {
  padding: 0.9rem;
  border-radius: 0.95rem;
  background: rgba(var(--color-bg-secondary) / 0.82);
  border: 1px solid rgba(var(--color-border) / 0.82);
}

.fact-list span {
  display: block;
  color: rgb(var(--color-text-muted));
  font-size: 0.78rem;
  margin-bottom: 0.35rem;
}

.fact-list strong {
  color: rgb(var(--color-text-primary));
  font-size: 0.96rem;
}

.detail-tags {
  margin-bottom: 1.6rem;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 1.35rem;
  border: 1px solid rgba(var(--color-border) / 0.92);
  background: #000;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.site-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.play-layer {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  border: 0;
  color: #fff;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.22));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-layer.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-circle {
  width: clamp(4rem, 10vw, 6.5rem);
  height: clamp(4rem, 10vw, 6.5rem);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgb(var(--color-accent));
  box-shadow: 0 18px 42px rgba(var(--color-accent) / 0.36);
  font-size: clamp(1.3rem, 4vw, 2.2rem);
}

.detail-copy {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.content-card {
  padding: clamp(1.3rem, 3vw, 2rem);
  border: 1px solid rgba(var(--color-border) / 0.86);
  border-radius: 1.25rem;
  background: rgb(var(--color-bg-secondary));
}

.content-card h2 {
  margin: 0 0 0.9rem;
  font-size: 1.55rem;
}

.content-card p {
  margin: 0;
}

.site-footer {
  border-top: 1px solid rgb(var(--color-border));
  background: rgb(var(--color-bg-secondary));
}

.footer-inner {
  width: min(1280px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2.5rem 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.8fr);
  gap: 2rem;
}

.footer-logo {
  margin-bottom: 0.8rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1rem;
  align-content: start;
}

.footer-bottom {
  width: min(1280px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.15rem 0;
  border-top: 1px solid rgb(var(--color-border));
  color: rgb(var(--color-text-muted));
  font-size: 0.9rem;
}

@media (max-width: 1180px) {
  .movie-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

  .split-layout {
    grid-template-columns: 1fr;
  }

  .ranking-panel {
    position: static;
  }
}

@media (max-width: 820px) {
  .desktop-nav {
    display: none;
  }

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

  .hero-carousel {
    min-height: 760px;
  }

  .hero-content {
    padding-top: 6.5rem;
  }

  .hero-panel {
    bottom: 4.5rem;
  }

  .hero-search,
  .filter-panel {
    flex-direction: column;
  }

  .filter-panel select {
    max-width: none;
  }

  .hero-arrow {
    display: none;
  }

  .movie-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
  }

  .movie-card-body {
    padding: 0.8rem;
  }

  .category-grid,
  .category-grid.large {
    grid-template-columns: 1fr;
  }

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

  .rank-card,
  .compact-list .rank-card,
  .mini-rank-list .rank-card {
    grid-template-columns: 68px minmax(0, 1fr);
  }

  .rank-number {
    display: none;
  }

  .rank-poster-link img {
    width: 68px;
    height: 92px;
  }

  .detail-main {
    grid-template-columns: 1fr;
  }

  .detail-poster {
    width: min(260px, 80vw);
  }

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

  .detail-copy {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .site-logo {
    font-size: 1rem;
  }

  .hero-content h1,
  .detail-info h1,
  .page-hero h1 {
    letter-spacing: -0.04em;
  }

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

  .movie-card p {
    display: none;
  }

  .tag-row span {
    font-size: 0.72rem;
  }

  .fact-list {
    grid-template-columns: 1fr;
  }
}
