:root {
  --color-coral-600: #ed3010;
  --color-coral-500: #ff5533;
  --color-coral-400: #ff7c64;
  --color-peach-400: #ff9374;
  --color-peach-200: #ffd4c7;
  --color-peach-100: #ffe8e1;
  --color-peach-50: #fff5f2;
  --color-paper: #ffffff;
  --color-ink: #1f2937;
  --color-muted: #6b7280;
  --shadow-soft: 0 18px 45px rgba(255, 85, 51, 0.16);
  --shadow-card: 0 14px 34px rgba(15, 23, 42, 0.10);
  --gradient-sunrise: linear-gradient(135deg, #ffd4c7, #ffab9d, #ff9374, #ff7c64, #ff7a47);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--color-ink);
  background:
    radial-gradient(circle at 8% 0%, rgba(255, 147, 116, 0.18), transparent 28rem),
    linear-gradient(180deg, var(--color-peach-50) 0%, #ffffff 28rem, #ffffff 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  color: #ffffff;
  background: rgba(255, 85, 51, 0.90);
  background-image: var(--gradient-sunrise);
  box-shadow: 0 12px 32px rgba(237, 48, 16, 0.22);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  color: var(--color-coral-600);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45), 0 8px 22px rgba(255, 85, 51, 0.28);
}

.brand-text {
  font-size: 1.18rem;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  position: relative;
  font-weight: 650;
  opacity: 0.92;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  opacity: 1;
  transform: translateY(-1px);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 3px;
  border-radius: 999px;
  background: #ffffff;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.18);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: #ffffff;
}

.mobile-nav {
  display: none;
  padding: 10px 16px 18px;
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid rgba(255, 212, 199, 0.85);
}

.mobile-link {
  display: block;
  padding: 12px 4px;
  color: var(--color-ink);
  font-weight: 700;
}

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

.hero {
  position: relative;
  min-height: 690px;
  overflow: hidden;
  background: #27100b;
}

.hero-track,
.hero-slide {
  min-height: 690px;
}

.hero-slide {
  display: none;
  position: relative;
  isolation: isolate;
  background-image:
    linear-gradient(90deg, rgba(16, 10, 8, 0.92), rgba(31, 16, 12, 0.54), rgba(31, 16, 12, 0.30)),
    var(--hero-image);
  background-position: center;
  background-size: cover;
}

.hero-slide.active {
  display: block;
  animation: heroFade 0.8s ease both;
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 74% 30%, rgba(255, 124, 100, 0.35), transparent 24rem),
    linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.48) 100%);
}

.hero-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 56px;
  align-items: center;
  min-height: 690px;
  padding-top: 52px;
  padding-bottom: 62px;
}

.hero-copy {
  max-width: 760px;
  color: #ffffff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 12px;
  border-radius: 999px;
  color: var(--color-coral-600);
  background: rgba(255, 245, 242, 0.92);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.hero-copy h1 {
  margin: 20px 0 18px;
  font-size: clamp(2.6rem, 7vw, 5.8rem);
  line-height: 1.02;
  font-weight: 900;
  text-shadow: 0 18px 42px rgba(0, 0, 0, 0.38);
}

.hero-copy p {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1rem, 1.9vw, 1.28rem);
}

.hero-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--color-coral-600);
  background: rgba(255, 232, 225, 0.88);
  font-size: 0.78rem;
  font-weight: 750;
}

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

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

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

.btn-primary {
  color: #ffffff;
  background: var(--gradient-sunrise);
  box-shadow: 0 16px 32px rgba(255, 85, 51, 0.36);
}

.btn-ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.32);
  backdrop-filter: blur(12px);
}

.hero-poster {
  position: relative;
  display: block;
  padding: 12px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(16px);
  transform: rotate(2deg);
  transition: transform 0.25s ease;
}

.hero-poster:hover {
  transform: rotate(0deg) translateY(-4px);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 3 / 4.25;
  object-fit: cover;
  border-radius: 22px;
}

.hero-poster span {
  position: absolute;
  right: 26px;
  bottom: 26px;
  padding: 8px 12px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 85, 51, 0.86);
  font-weight: 800;
}

.hero-control {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.hero-dots {
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: auto;
}

.hero-dot,
.hero-arrow {
  border: 0;
  cursor: pointer;
}

.hero-dot {
  width: 11px;
  height: 11px;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.active {
  width: 34px;
  background: #ffffff;
}

.hero-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  font-size: 2rem;
  line-height: 1;
  pointer-events: auto;
}

.quick-zone {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 24px;
  margin-top: -54px;
  position: relative;
  z-index: 3;
}

.quick-search-card,
.category-chip-row,
.story-card,
.detail-meta-card,
.ranking-panel,
.category-overview-card,
.category-card {
  border: 1px solid rgba(255, 212, 199, 0.82);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
}

.quick-search-card {
  padding: 26px;
  border-radius: 26px;
}

.quick-search-card h2 {
  margin: 0 0 8px;
  font-size: 1.8rem;
}

.quick-search-card p {
  margin: 0 0 18px;
  color: var(--color-muted);
}

.search-panel {
  display: flex;
  align-items: center;
  width: 100%;
}

.site-search {
  width: 100%;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid rgba(255, 147, 116, 0.46);
  border-radius: 999px;
  color: var(--color-ink);
  outline: none;
  background: #ffffff;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.site-search:focus {
  border-color: var(--color-coral-500);
  box-shadow: 0 0 0 5px rgba(255, 85, 51, 0.14);
}

.category-chip-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 22px;
  border-radius: 26px;
}

.category-chip-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 15px;
  border-radius: 999px;
  color: var(--color-coral-600);
  background: var(--color-peach-50);
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease;
}

.category-chip-row a:hover {
  transform: translateY(-2px);
  background: var(--color-peach-100);
}

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

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

.section-heading.tight {
  margin-bottom: 18px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.45rem);
  line-height: 1.15;
}

.section-heading p {
  margin: 6px 0 0;
  color: var(--color-muted);
}

.section-more {
  color: var(--color-coral-600);
  font-weight: 850;
  white-space: nowrap;
}

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

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(255, 212, 199, 0.72);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 124, 100, 0.72);
  box-shadow: 0 24px 55px rgba(255, 85, 51, 0.18);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-peach-50), var(--color-peach-100));
}

.poster-link img {
  width: 100%;
  aspect-ratio: 3 / 4.05;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.movie-card:hover .poster-link img {
  transform: scale(1.055);
}

.score-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 30px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 85, 51, 0.90);
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(255, 85, 51, 0.28);
}

.movie-card-body {
  padding: 16px;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
  color: var(--color-muted);
  font-size: 0.78rem;
}

.meta-row span:not(:last-child)::after {
  content: "·";
  margin-left: 6px;
  color: var(--color-peach-400);
}

.movie-card h2 {
  margin: 0 0 9px;
  font-size: 1.08rem;
  line-height: 1.35;
}

.movie-card h2 a:hover {
  color: var(--color-coral-600);
}

.movie-card p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.92rem;
}

.movie-card .tag-row {
  margin-top: 14px;
}

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

.ranking-panel {
  position: sticky;
  top: 92px;
  padding: 22px;
  border-radius: 26px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 34px 58px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  background: #ffffff;
  transition: transform 0.2s ease, background 0.2s ease;
}

.rank-item:hover {
  transform: translateX(3px);
  background: var(--color-peach-50);
}

.rank-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 12px;
  color: #ffffff;
  background: var(--gradient-sunrise);
  font-weight: 900;
}

.rank-item img {
  width: 58px;
  height: 76px;
  border-radius: 14px;
  object-fit: cover;
}

.rank-item strong,
.rank-item em {
  display: block;
}

.rank-item strong {
  overflow: hidden;
  color: var(--color-ink);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-item em {
  margin-top: 2px;
  overflow: hidden;
  color: var(--color-muted);
  font-size: 0.82rem;
  font-style: normal;
  white-space: nowrap;
  text-overflow: ellipsis;
}

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

.movie-card-wide {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
}

.movie-card-wide .poster-link img {
  height: 100%;
  min-height: 210px;
}

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

.category-card {
  min-height: 178px;
  padding: 22px;
  border-radius: 24px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card:hover,
.category-overview-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 26px 60px rgba(255, 85, 51, 0.18);
}

.category-card span,
.category-overview-card span {
  color: var(--color-coral-600);
  font-size: 1.25rem;
  font-weight: 900;
}

.category-card strong,
.category-overview-card h2 {
  display: block;
  margin-top: 16px;
  color: var(--color-muted);
  font-size: 0.96rem;
  font-weight: 600;
}

.sub-hero {
  padding: 76px 0 52px;
  color: #ffffff;
  background:
    radial-gradient(circle at 78% 10%, rgba(255, 212, 199, 0.32), transparent 26rem),
    linear-gradient(135deg, #23120f 0%, #ff5533 58%, #ff9374 100%);
}

.sub-hero h1 {
  margin: 18px 0 8px;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 1.05;
}

.sub-hero p {
  max-width: 780px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.05rem;
}

.sub-hero .search-panel {
  max-width: 680px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 22px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
}

.breadcrumb a:hover {
  color: #ffffff;
}

.category-overview-card {
  overflow: hidden;
  border-radius: 26px;
}

.category-overview-card a {
  display: block;
  min-height: 100%;
  padding: 18px;
}

.category-cover-stack {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 18px;
}

.category-cover-stack img {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  object-fit: cover;
}

.category-overview-card strong {
  display: inline-flex;
  margin-top: 16px;
  color: var(--color-coral-600);
}

.ranking-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.rank-card {
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.rank-card-link {
  position: relative;
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  min-height: 168px;
}

.rank-card img {
  width: 118px;
  height: 100%;
  object-fit: cover;
}

.rank-card div {
  padding: 16px;
}

.rank-card p {
  margin: 0 0 6px;
  color: var(--color-coral-600);
  font-weight: 850;
}

.rank-card h2 {
  margin: 0 0 10px;
  font-size: 1.12rem;
}

.rank-card span:not(.rank-ribbon) {
  color: var(--color-muted);
  font-size: 0.9rem;
}

.rank-ribbon {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 13px;
  color: #ffffff;
  background: var(--gradient-sunrise);
  font-weight: 900;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  padding: 42px 0 54px;
  color: #ffffff;
  background: #160c0a;
}

.detail-bg {
  position: absolute;
  inset: 0;
  opacity: 0.36;
  background-image:
    linear-gradient(90deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.52)),
    var(--detail-image);
  background-position: center;
  background-size: cover;
  filter: blur(6px) saturate(1.1);
  transform: scale(1.04);
}

.detail-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  align-items: start;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000000;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

.movie-player {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle at center, rgba(255, 85, 51, 0.28), rgba(0, 0, 0, 0.72));
  cursor: pointer;
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

.player-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 78px;
  height: 78px;
  border-radius: 999px;
  padding-left: 5px;
  background: var(--gradient-sunrise);
  box-shadow: 0 20px 42px rgba(255, 85, 51, 0.36);
  font-size: 2rem;
}

.player-overlay strong {
  max-width: 72%;
  text-align: center;
  font-size: 1.25rem;
}

.detail-side {
  display: grid;
  gap: 18px;
}

.detail-poster {
  width: 100%;
  border-radius: 26px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
}

.detail-meta-card {
  padding: 20px;
  border-radius: 24px;
  color: var(--color-ink);
}

.detail-meta-card h1 {
  margin: 16px 0 10px;
  font-size: 1.8rem;
  line-height: 1.18;
}

.detail-meta-card p {
  margin: 0;
  color: var(--color-muted);
}

.detail-meta-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
}

.detail-meta-list span {
  padding: 8px 10px;
  border-radius: 14px;
  color: var(--color-coral-600);
  background: var(--color-peach-50);
  font-size: 0.86rem;
  font-weight: 800;
}

.detail-content {
  display: grid;
  gap: 20px;
  padding-top: 46px;
}

.story-card {
  padding: 26px;
  border-radius: 24px;
}

.story-card h2 {
  margin: 0 0 12px;
  font-size: 1.45rem;
}

.story-card p {
  margin: 0;
  color: #374151;
  font-size: 1.03rem;
}

.expanded-tags {
  margin-top: 0;
}

.site-footer {
  margin-top: 78px;
  padding: 54px 0;
  border-top: 1px solid rgba(255, 212, 199, 0.88);
  background: linear-gradient(180deg, var(--color-peach-50), #ffffff);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 32px;
}

.footer-brand {
  color: var(--color-coral-600);
  font-size: 1.18rem;
}

.footer-brand .brand-mark {
  color: #ffffff;
  background: var(--gradient-sunrise);
}

.site-footer p,
.site-footer a {
  color: var(--color-muted);
}

.site-footer p {
  margin: 14px 0 0;
}

.site-footer h2 {
  margin: 0 0 14px;
  font-size: 1rem;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li + li {
  margin-top: 9px;
}

.site-footer a:hover {
  color: var(--color-coral-600);
}

.search-card.is-hidden {
  display: none;
}

@keyframes heroFade {
  from {
    opacity: 0;
    transform: scale(1.015);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

  .two-column-section,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .ranking-panel {
    position: static;
  }

  .detail-side {
    grid-template-columns: 220px minmax(0, 1fr);
  }
}

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

  .menu-toggle {
    display: block;
  }

  .hero,
  .hero-track,
  .hero-slide {
    min-height: 760px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 28px;
    min-height: 760px;
  }

  .hero-poster {
    width: min(68vw, 280px);
  }

  .quick-zone {
    grid-template-columns: 1fr;
  }

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

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

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

@media (max-width: 640px) {
  .container {
    width: min(100% - 24px, 1240px);
  }

  .header-inner {
    height: 62px;
  }

  .brand-text {
    font-size: 1rem;
  }

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

  .hero-content {
    min-height: 720px;
    padding-top: 34px;
  }

  .hero-copy h1 {
    font-size: 2.55rem;
  }

  .hero-control {
    bottom: 18px;
  }

  .hero-arrow {
    width: 38px;
    height: 38px;
  }

  .quick-zone {
    margin-top: -38px;
  }

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

  .movie-grid,
  .featured-grid,
  .compact-grid,
  .archive-grid,
  .category-grid,
  .category-overview-grid,
  .ranking-grid {
    grid-template-columns: 1fr;
  }

  .movie-card-wide {
    grid-template-columns: 118px minmax(0, 1fr);
  }

  .movie-card-wide .poster-link img {
    min-height: 176px;
  }

  .rank-card-link {
    grid-template-columns: 104px minmax(0, 1fr);
  }

  .rank-card img {
    width: 104px;
  }

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

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

  .detail-poster {
    max-width: 220px;
  }

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

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