:root {
  --red-950: #2b0505;
  --red-900: #4a0d0d;
  --red-800: #6f1313;
  --red-700: #991b1b;
  --red-600: #b91c1c;
  --amber-100: #fef3c7;
  --amber-200: #fde68a;
  --amber-300: #fcd34d;
  --orange-50: #fff7ed;
  --paper: #fffaf0;
  --ink: #301313;
  --muted: #7a4b36;
  --shadow: 0 22px 60px rgba(74, 13, 13, 0.16);
  --soft-shadow: 0 12px 30px rgba(74, 13, 13, 0.12);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Noto Serif SC", "Songti SC", "Microsoft YaHei", serif;
  color: var(--ink);
  background: linear-gradient(180deg, #fff7ed 0%, #fff1d6 48%, #fff7ed 100%);
}

body.nav-open {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(255, 251, 235, 0.96), rgba(255, 247, 237, 0.96), rgba(254, 242, 242, 0.96));
  border-bottom: 2px solid rgba(153, 27, 27, 0.28);
  box-shadow: 0 10px 30px rgba(74, 13, 13, 0.12);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: var(--amber-100);
  font-weight: 800;
  font-size: 24px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--red-700), var(--red-950));
  box-shadow: 0 12px 28px rgba(153, 27, 27, 0.28);
  transition: transform 0.24s ease;
}

.brand:hover .brand-mark {
  transform: rotate(6deg) scale(1.04);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  color: var(--red-900);
  font-size: clamp(19px, 2vw, 26px);
  letter-spacing: 0.03em;
}

.brand-text em {
  color: var(--red-700);
  font-size: 12px;
  font-style: normal;
  margin-top: 5px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--red-900);
  font-weight: 700;
}

.desktop-nav a {
  position: relative;
  padding: 8px 0;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--red-700);
  transition: right 0.24s ease;
}

.desktop-nav a:hover::after {
  right: 0;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(153, 27, 27, 0.08);
  padding: 9px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--red-900);
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  border-top: 1px solid rgba(153, 27, 27, 0.18);
  padding: 10px 16px 18px;
  background: var(--paper);
}

.mobile-nav a {
  display: block;
  padding: 12px 4px;
  color: var(--red-900);
  font-weight: 700;
}

.hero {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  background: var(--red-950);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
}

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

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 42%, rgba(252, 211, 77, 0.16), transparent 26%),
    linear-gradient(90deg, rgba(43, 5, 5, 0.95) 0%, rgba(43, 5, 5, 0.72) 44%, rgba(43, 5, 5, 0.36) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(43, 5, 5, 0.82));
  backdrop-filter: blur(1px);
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 680px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 420px);
  gap: 56px;
  align-items: center;
  color: white;
}

.hero-copy h1 {
  margin: 14px 0 18px;
  font-size: clamp(44px, 7vw, 82px);
  line-height: 1.02;
  letter-spacing: 0.04em;
  text-shadow: 0 16px 42px rgba(0, 0, 0, 0.45);
}

.hero-copy p {
  max-width: 760px;
  margin: 0 0 24px;
  color: var(--amber-100);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.75;
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.42);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--red-700);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero .eyebrow,
.dark-band .eyebrow,
.detail-hero .eyebrow {
  color: var(--amber-300);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--red-900);
  background: rgba(153, 27, 27, 0.08);
  font-size: 12px;
  font-weight: 700;
}

.hero-tags span,
.detail-tags span {
  color: var(--amber-100);
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(253, 230, 138, 0.28);
  backdrop-filter: blur(10px);
}

.hero-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border: 0;
  border-radius: 14px;
  font-weight: 800;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.btn:hover {
  transform: translateY(-2px) scale(1.02);
}

.btn.primary {
  color: white;
  background: linear-gradient(135deg, var(--red-600), var(--red-900));
  box-shadow: 0 16px 32px rgba(153, 27, 27, 0.32);
}

.btn.ghost {
  color: white;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(12px);
}

.hero-poster {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  border-radius: 30px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(252, 211, 77, 0.24), rgba(153, 27, 27, 0.42));
  box-shadow: 0 38px 90px rgba(0, 0, 0, 0.45);
  transform: rotate(2deg);
}

.hero-poster::before {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(253, 230, 138, 0.55);
  border-radius: 22px;
  z-index: 2;
  pointer-events: none;
}

.hero-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hero-poster:hover img {
  transform: scale(1.08);
}

.hero-controls {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 92px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero-arrow,
.hero-dot {
  border: 0;
  color: white;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.hero-arrow {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 28px;
  line-height: 1;
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  padding: 0;
  transition: width 0.22s ease, background 0.22s ease;
}

.hero-dot.is-active {
  width: 34px;
  background: var(--amber-300);
}

.hero-search {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  width: min(680px, calc(100% - 32px));
  display: flex;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.28);
}

.hero-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  padding: 17px 20px;
  color: var(--red-900);
  background: transparent;
  outline: none;
}

.hero-search button {
  border: 0;
  padding: 0 26px;
  color: white;
  background: var(--red-700);
  font-weight: 800;
}

.section-block {
  padding: 64px 0;
}

.section-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.section-title.compact {
  margin-bottom: 20px;
}

.section-title h2,
.rank-panel-head h2 {
  margin: 6px 0 0;
  color: var(--red-900);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
}

.section-title a {
  color: var(--red-700);
  font-weight: 800;
}

.section-title.light h2,
.section-title.light a {
  color: var(--amber-100);
}

.feature-grid,
.movie-grid,
.category-grid,
.category-overview-grid {
  display: grid;
  gap: 24px;
}

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

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

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

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

.dark-band {
  background: linear-gradient(90deg, var(--red-950), var(--red-800), var(--red-950));
  box-shadow: inset 0 18px 60px rgba(0, 0, 0, 0.25);
}

.movie-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--soft-shadow);
  border: 1px solid rgba(153, 27, 27, 0.08);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(153, 27, 27, 0.25);
}

.poster-frame {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background:
    radial-gradient(circle at 35% 25%, rgba(252, 211, 77, 0.35), transparent 32%),
    linear-gradient(145deg, rgba(153, 27, 27, 0.88), rgba(43, 5, 5, 0.98));
}

.feature-card .poster-frame {
  aspect-ratio: 16 / 10;
}

.poster-frame img,
.category-art img,
.overview-covers img,
.rank-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

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

.poster-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 9px;
  color: white;
  font-size: 12px;
  font-weight: 800;
  border-radius: 999px;
  background: rgba(153, 27, 27, 0.88);
  backdrop-filter: blur(8px);
}

.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  padding: 15px;
}

.card-body strong {
  color: var(--red-900);
  font-size: 17px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-body em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.card-body small {
  color: #70412f;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dark-card {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(253, 230, 138, 0.18);
  backdrop-filter: blur(12px);
}

.dark-card .card-body strong,
.dark-card .card-body small,
.dark-card .card-body em {
  color: var(--amber-100);
}

.dark-card .tag-row span {
  color: var(--amber-100);
  background: rgba(255, 255, 255, 0.14);
}

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

.category-card,
.category-overview-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--soft-shadow);
  border: 1px solid rgba(153, 27, 27, 0.08);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.category-card:hover,
.category-overview-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.category-art {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, var(--red-800), var(--amber-300));
}

.category-card strong,
.category-overview-card strong {
  color: var(--red-900);
  font-size: 20px;
  padding: 16px 16px 4px;
}

.category-card em,
.category-overview-card em {
  min-height: 54px;
  padding: 0 16px 18px;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  line-height: 1.5;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 34px;
  align-items: start;
}

.rank-panel,
.rank-wide-panel {
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--soft-shadow);
  border: 1px solid rgba(153, 27, 27, 0.1);
}

.rank-panel {
  padding: 24px;
  position: sticky;
  top: 102px;
}

.rank-panel-head {
  margin-bottom: 18px;
}

.rank-list {
  display: grid;
  gap: 12px;
}

.rank-row {
  display: grid;
  grid-template-columns: 42px 58px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: rgba(153, 27, 27, 0.045);
  transition: background 0.22s ease, transform 0.22s ease;
}

.rank-row:hover {
  background: rgba(153, 27, 27, 0.1);
  transform: translateX(3px);
}

.rank-num {
  color: var(--red-700);
  font-size: 22px;
  font-weight: 900;
  text-align: center;
}

.rank-cover {
  width: 58px;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--red-800), var(--amber-300));
}

.rank-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rank-info strong {
  color: var(--red-900);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-info em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-chip {
  padding: 5px 9px;
  color: var(--red-900);
  font-size: 12px;
  border-radius: 999px;
  background: rgba(153, 27, 27, 0.09);
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 76px 0 64px;
  color: var(--amber-100);
  background:
    radial-gradient(circle at 82% 26%, rgba(252, 211, 77, 0.22), transparent 30%),
    linear-gradient(135deg, var(--red-950), var(--red-800));
}

.page-hero-inner h1 {
  margin: 10px 0 14px;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.1;
}

.page-hero-inner p {
  max-width: 760px;
  margin: 0;
  color: var(--amber-200);
  font-size: 18px;
  line-height: 1.8;
}

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

.overview-covers {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  padding: 8px;
  background: linear-gradient(135deg, rgba(153, 27, 27, 0.1), rgba(252, 211, 77, 0.18));
}

.overview-covers span {
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--red-800), var(--amber-300));
}

.filter-panel {
  display: grid;
  gap: 16px;
  padding: 18px;
  margin-bottom: 30px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--soft-shadow);
  border: 1px solid rgba(153, 27, 27, 0.1);
}

.filter-search input,
.filter-selects select {
  width: 100%;
  border: 1px solid rgba(153, 27, 27, 0.16);
  border-radius: 14px;
  color: var(--red-900);
  background: #fffaf0;
  outline: none;
}

.filter-search input {
  min-height: 52px;
  padding: 0 18px;
}

.filter-selects {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.filter-selects select {
  min-height: 46px;
  padding: 0 12px;
}

.empty-state {
  padding: 44px;
  text-align: center;
  color: var(--muted);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
}

.detail-page {
  background: linear-gradient(180deg, #fff7ed, #fff4dd 45%, #fffaf0);
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: white;
  background-image: var(--detail-image);
  background-size: cover;
  background-position: center;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(43, 5, 5, 0.96), rgba(43, 5, 5, 0.74), rgba(43, 5, 5, 0.48)),
    radial-gradient(circle at 75% 30%, rgba(252, 211, 77, 0.18), transparent 28%);
  backdrop-filter: blur(4px);
}

.detail-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.88fr);
  gap: 36px;
  align-items: center;
  padding: 38px 0 58px;
}

.breadcrumb {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--amber-200);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: white;
}

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #050505;
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(253, 230, 138, 0.24);
  aspect-ratio: 16 / 9;
}

.player-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #050505;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 16px;
  border: 0;
  color: white;
  background:
    radial-gradient(circle, rgba(153, 27, 27, 0.34), transparent 36%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.66));
  transition: opacity 0.24s ease;
}

.player-card.is-playing .player-overlay {
  opacity: 0;
  pointer-events: none;
}

.play-ring {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red-600), var(--red-900));
  box-shadow: 0 22px 50px rgba(153, 27, 27, 0.42);
  font-size: 30px;
}

.player-overlay strong {
  font-size: 20px;
  letter-spacing: 0.08em;
}

.detail-info h1 {
  margin: 12px 0 18px;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.08;
}

.detail-info p {
  margin: 0 0 20px;
  color: var(--amber-100);
  font-size: 18px;
  line-height: 1.8;
}

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  gap: 24px;
  padding: 46px 0 0;
}

.content-card {
  padding: 28px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--soft-shadow);
  border: 1px solid rgba(153, 27, 27, 0.08);
}

.content-card h2 {
  margin: 0 0 14px;
  color: var(--red-900);
  font-size: 24px;
}

.content-card p {
  margin: 0;
  color: #4f2a1e;
  line-height: 1.9;
}

.meta-card {
  grid-row: span 2;
}

.meta-card dl {
  margin: 0;
  display: grid;
  gap: 12px;
}

.meta-card div {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(153, 27, 27, 0.1);
}

.meta-card dt {
  color: var(--muted);
  font-weight: 700;
}

.meta-card dd {
  margin: 0;
  color: var(--red-900);
}

.rank-feature-grid {
  margin-bottom: 30px;
}

.rank-wide-panel {
  padding: 20px;
}

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

.site-footer {
  margin-top: 46px;
  color: var(--amber-100);
  background: linear-gradient(180deg, var(--red-950), #050101);
  border-top: 4px solid var(--red-800);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 34px;
  align-items: start;
}

.footer-logo {
  margin-bottom: 12px;
  color: var(--amber-300);
  font-size: 24px;
  font-weight: 900;
}

.footer-brand p {
  margin: 0;
  color: var(--amber-200);
  line-height: 1.7;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
}

.footer-links a {
  color: var(--amber-200);
  font-size: 14px;
}

.footer-links a:hover {
  color: white;
}

[hidden] {
  display: none !important;
}

@media (max-width: 1080px) {
  .feature-grid,
  .movie-grid,
  .directory-grid,
  .compact-grid,
  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .split-section,
  .detail-content {
    grid-template-columns: 1fr;
  }

  .rank-panel {
    position: static;
  }

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

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

  .menu-toggle {
    display: block;
  }

  body.nav-open .mobile-nav {
    display: block;
  }

  .header-inner {
    height: 68px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .brand-text strong {
    font-size: 19px;
  }

  .hero,
  .hero-content {
    min-height: 720px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 24px;
    align-content: center;
    padding-bottom: 120px;
  }

  .hero-poster {
    max-width: 230px;
    margin: 0 auto;
    order: -1;
  }

  .hero-copy {
    text-align: center;
  }

  .hero-copy p {
    font-size: 16px;
  }

  .hero-actions,
  .detail-actions,
  .hero-tags {
    justify-content: center;
  }

  .hero-controls {
    bottom: 92px;
  }

  .feature-grid,
  .movie-grid,
  .directory-grid,
  .compact-grid,
  .category-grid,
  .category-overview-grid,
  .rank-list.wide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-selects {
    grid-template-columns: 1fr 1fr;
  }

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

  .detail-info {
    text-align: center;
  }

  .detail-layout {
    padding-top: 24px;
  }

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

  .rank-row {
    grid-template-columns: 38px 50px minmax(0, 1fr);
  }

  .rank-chip {
    display: none;
  }
}

@media (max-width: 520px) {
  .container,
  .header-inner,
  .footer-inner {
    width: min(100% - 22px, 1180px);
  }

  .brand-text em {
    display: none;
  }

  .hero-copy h1 {
    font-size: 38px;
  }

  .hero-search {
    border-radius: 14px;
  }

  .hero-search input {
    padding: 14px;
  }

  .hero-search button {
    padding: 0 16px;
  }

  .feature-grid,
  .movie-grid,
  .directory-grid,
  .compact-grid,
  .category-grid,
  .category-overview-grid {
    grid-template-columns: 1fr;
  }

  .filter-selects {
    grid-template-columns: 1fr;
  }

  .content-card {
    padding: 22px;
  }

  .meta-card div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
