:root {
  --color-text: #111827;
  --color-muted: #6b7280;
  --color-soft: #f9fafb;
  --color-line: #e5e7eb;
  --color-orange: #ea580c;
  --color-orange-dark: #c2410c;
  --color-amber: #f59e0b;
  --color-blue: #0284c7;
  --shadow-card: 0 16px 40px rgba(15, 23, 42, 0.08);
  --shadow-strong: 0 24px 70px rgba(15, 23, 42, 0.18);
  --radius-card: 22px;
  --radius-soft: 16px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--color-text);
  background: linear-gradient(180deg, #ffffff 0%, #f9fafb 52%, #ffffff 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  line-height: 1.6;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input {
  font: inherit;
}

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

.container.narrow {
  max-width: 820px;
  text-align: center;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
  backdrop-filter: blur(16px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #ffffff;
  font-size: 17px;
  font-weight: 800;
  background: linear-gradient(135deg, #fb923c, #f59e0b);
  box-shadow: 0 14px 28px rgba(234, 88, 12, 0.24);
}

.brand-copy {
  display: grid;
  line-height: 1.15;
}

.brand-copy strong {
  font-size: 20px;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--color-orange), var(--color-amber));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-copy small {
  color: var(--color-muted);
  font-size: 12px;
}

.brand.mini .brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 12px;
}

.brand.mini .brand-copy strong {
  font-size: 18px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
  flex: 1;
}

.nav-link {
  color: #374151;
  font-weight: 650;
  transition: color 0.2s ease;
}

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

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #f3f4f6;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  border-radius: 99px;
  background: #374151;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-open .menu-toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

.menu-open .menu-toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  padding: 10px 16px 18px;
  border-top: 1px solid var(--color-line);
  background: #ffffff;
}

.mobile-link {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  color: #374151;
  font-weight: 650;
}

.mobile-link:hover,
.mobile-link.is-active {
  color: var(--color-orange);
  background: #fff7ed;
}

.hero-carousel {
  position: relative;
  height: min(720px, 72vh);
  min-height: 540px;
  overflow: hidden;
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.7s ease, transform 1.2s ease;
  pointer-events: none;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 30%, rgba(245, 158, 11, 0.16), transparent 34%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.86) 0%, rgba(0, 0, 0, 0.6) 42%, rgba(0, 0, 0, 0.1) 100%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.62), transparent 42%);
}

.hero-content {
  position: absolute;
  z-index: 2;
  left: max(24px, calc((100vw - var(--container)) / 2));
  bottom: 86px;
  width: min(660px, calc(100% - 48px));
  color: #ffffff;
}

.hero-kicker,
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  background: rgba(234, 88, 12, 0.9);
  padding: 7px 13px;
  box-shadow: 0 12px 28px rgba(234, 88, 12, 0.22);
}

.section-eyebrow {
  color: var(--color-orange);
  background: #fff7ed;
  box-shadow: none;
}

.hero-content h1 {
  margin: 24px 0 18px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.hero-content p {
  max-width: 620px;
  margin: 0 0 26px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(17px, 2vw, 22px);
}

.hero-tags,
.detail-meta,
.tag-cloud,
.movie-meta-row,
.filter-strip,
.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags span,
.detail-meta span {
  padding: 7px 12px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
}

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

.primary-button {
  color: #ffffff;
  background: var(--color-orange);
  box-shadow: 0 16px 36px rgba(234, 88, 12, 0.32);
}

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

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

.secondary-button {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
}

.hero-controls {
  position: absolute;
  z-index: 4;
  left: max(24px, calc((100vw - var(--container)) / 2));
  bottom: 34px;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 42px;
  height: 5px;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

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

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

.page-main {
  min-height: 68vh;
}

.warm-bg {
  background: linear-gradient(135deg, #fff7ed, #fffbeb);
}

.cool-bg {
  background: linear-gradient(135deg, #eff6ff, #ecfeff);
}

.tinted:nth-of-type(odd) {
  background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
}

.tinted:nth-of-type(even) {
  background: linear-gradient(135deg, #eff6ff, #ecfeff);
}

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

.section-heading p {
  margin: 10px 0 0;
  color: var(--color-muted);
  font-size: 18px;
}

.section-heading a {
  color: var(--color-orange);
  font-weight: 800;
}

.search-panel {
  margin-bottom: 30px;
  padding: 24px;
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-card);
}

.search-panel h2 {
  margin: 10px 0 18px;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.03em;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  margin-bottom: 16px;
  padding: 0 18px;
  border: 1px solid var(--color-line);
  border-radius: 16px;
  background: #ffffff;
}

.search-box span {
  color: var(--color-orange);
  font-size: 22px;
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--color-text);
  background: transparent;
}

.filter-chip {
  border: 1px solid var(--color-line);
  border-radius: 999px;
  background: #ffffff;
  color: #374151;
  padding: 8px 14px;
  cursor: pointer;
  transition: color 0.2s ease, border 0.2s ease, background 0.2s ease;
}

.filter-chip:hover,
.filter-chip.is-active {
  color: #ffffff;
  border-color: var(--color-orange);
  background: var(--color-orange);
}

.empty-state {
  display: none;
  margin: 16px 0 0;
  color: var(--color-muted);
}

.search-panel.has-empty .empty-state {
  display: block;
}

.movie-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 280px);
  gap: 22px;
  overflow-x: auto;
  padding: 4px 4px 24px;
  scroll-snap-type: x mandatory;
}

.movie-rail .movie-card {
  scroll-snap-align: start;
}

.movie-grid {
  display: grid;
  gap: 24px;
}

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

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

.movie-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(229, 231, 235, 0.74);
  border-radius: var(--radius-card);
  background: #ffffff;
  box-shadow: 0 8px 26px rgba(15, 23, 42, 0.07);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(251, 146, 60, 0.55);
  box-shadow: var(--shadow-strong);
}

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #f3f4f6, #ffedd5);
}

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

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

.poster-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.72) 100%);
  transition: opacity 0.25s ease;
}

.movie-card:hover .poster-overlay {
  opacity: 1;
}

.play-circle {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 3px;
  border-radius: 50%;
  color: var(--color-orange);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.18);
}

.play-circle.big {
  width: 74px;
  height: 74px;
  font-size: 24px;
}

.duration-chip,
.rank-badge {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 750;
  background: rgba(0, 0, 0, 0.66);
  backdrop-filter: blur(8px);
}

.rank-badge {
  right: 12px;
  left: auto;
  background: linear-gradient(135deg, #f97316, #f59e0b);
}

.movie-card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  flex: 1;
}

.movie-card-body h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.35;
}

.movie-card-body h3 a:hover {
  color: var(--color-orange);
}

.movie-card-body p {
  display: -webkit-box;
  min-height: 44px;
  margin: 0;
  overflow: hidden;
  color: var(--color-muted);
  font-size: 14px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-meta-row {
  margin-top: auto;
}

.movie-meta-row span {
  padding: 4px 8px;
  border-radius: 999px;
  color: #4b5563;
  font-size: 12px;
  background: #f3f4f6;
}

.movie-meta-row span:first-child {
  color: #c2410c;
  background: #fff7ed;
}

.is-compact .movie-card-body p {
  min-height: 0;
  -webkit-line-clamp: 1;
}

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

.rank-panel {
  padding: 24px;
  border: 1px solid rgba(229, 231, 235, 0.72);
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-card);
}

.rank-panel h2 {
  margin: 12px 0 18px;
  font-size: 28px;
  line-height: 1.1;
}

.sticky-rank {
  position: sticky;
  top: 96px;
}

.translucent {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.35);
  color: #ffffff;
  backdrop-filter: blur(16px);
}

.translucent .section-eyebrow,
.translucent h2,
.translucent .rank-line,
.translucent .rank-line em {
  color: #ffffff;
}

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

.rank-line {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 14px;
  color: #374151;
  background: rgba(249, 250, 251, 0.86);
  transition: transform 0.2s ease, background 0.2s ease;
}

.rank-line:hover {
  transform: translateX(4px);
  background: #fff7ed;
}

.rank-line span {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, #f97316, #f59e0b);
}

.rank-line strong {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

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

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

.category-tile {
  min-height: 160px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  overflow: hidden;
  position: relative;
  border-radius: var(--radius-card);
  color: #ffffff;
  background:
    radial-gradient(circle at 82% 0%, rgba(255, 255, 255, 0.26), transparent 32%),
    linear-gradient(135deg, #ea580c, #f59e0b);
  box-shadow: 0 18px 42px rgba(234, 88, 12, 0.18);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:nth-child(3n + 2) {
  background:
    radial-gradient(circle at 82% 0%, rgba(255, 255, 255, 0.24), transparent 34%),
    linear-gradient(135deg, #0284c7, #06b6d4);
}

.category-tile:nth-child(3n) {
  background:
    radial-gradient(circle at 82% 0%, rgba(255, 255, 255, 0.24), transparent 34%),
    linear-gradient(135deg, #16a34a, #10b981);
}

.category-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-strong);
}

.category-tile strong {
  font-size: 22px;
}

.category-tile span {
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
}

.page-hero {
  padding: 74px 0;
  color: #ffffff;
  background:
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.25), transparent 30%),
    linear-gradient(135deg, #c2410c, #ea580c 48%, #f59e0b);
}

.page-hero h1 {
  margin: 14px 0 12px;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.page-hero p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

.page-hero .section-eyebrow {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.2);
}

.category-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 30px;
  align-items: center;
}

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

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

.detail-shell .breadcrumb {
  color: var(--color-muted);
}

.detail-shell .breadcrumb a:hover {
  color: var(--color-orange);
}

.overview-stack {
  padding: 54px 0;
  display: grid;
  gap: 36px;
}

.category-overview-block {
  padding: 24px;
  border: 1px solid rgba(229, 231, 235, 0.76);
  border-radius: calc(var(--radius-card) + 6px);
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.category-cover {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  margin-bottom: 24px;
}

.category-cover h2 {
  margin: 12px 0 10px;
  font-size: clamp(28px, 4vw, 44px);
}

.category-cover p {
  color: var(--color-muted);
  margin: 0;
}

.category-cover-images {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  min-height: 160px;
}

.category-cover-images img {
  width: 100%;
  height: 160px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.14);
}

.category-cover-images img:nth-child(2n) {
  transform: translateY(18px);
}

.detail-shell {
  padding: 34px 0 58px;
  background:
    radial-gradient(circle at 80% 10%, rgba(245, 158, 11, 0.18), transparent 30%),
    linear-gradient(180deg, #fff7ed 0%, #ffffff 66%);
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.65fr);
  gap: 30px;
  align-items: center;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--radius-card) + 4px);
  background: #111827;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.28);
  aspect-ratio: 16 / 9;
}

.movie-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: #111827;
}

.player-start {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: #ffffff;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.62));
}

.player-start strong {
  padding: 8px 15px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
}

.player-shell.is-playing .player-start {
  display: none;
}

.detail-info {
  padding: 28px;
  border: 1px solid rgba(229, 231, 235, 0.72);
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-card);
}

.detail-info h1 {
  margin: 14px 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.detail-lead {
  color: #4b5563;
  font-size: 18px;
}

.detail-meta span {
  color: #c2410c;
  background: #fff7ed;
}

.tag-cloud {
  margin-top: 18px;
}

.tag-cloud span {
  padding: 7px 12px;
  border-radius: 999px;
  color: #374151;
  background: #f3f4f6;
}

.detail-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}

.text-card {
  padding: 28px;
  border: 1px solid rgba(229, 231, 235, 0.72);
  border-radius: var(--radius-card);
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.text-card h2 {
  margin: 0 0 14px;
  font-size: 26px;
}

.text-card p {
  margin: 0;
  color: #374151;
  font-size: 17px;
}

.warm-card {
  background: linear-gradient(135deg, #fff7ed, #fffbeb);
}

.site-footer {
  border-top: 1px solid var(--color-line);
  background: linear-gradient(180deg, #f9fafb, #f3f4f6);
}

.footer-inner {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
  padding: 46px 0;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) 1fr 1fr;
  gap: 34px;
}

.footer-brand p {
  max-width: 520px;
  color: var(--color-muted);
}

.footer-links {
  display: grid;
  align-content: start;
  gap: 9px;
}

.footer-links h2 {
  margin: 0 0 8px;
  font-size: 18px;
}

.footer-links a {
  color: #4b5563;
}

.footer-links a:hover {
  color: var(--color-orange);
}

.footer-bottom {
  padding: 18px 16px 24px;
  color: var(--color-muted);
  text-align: center;
  border-top: 1px solid rgba(229, 231, 235, 0.8);
}

@media (max-width: 1120px) {
  .desktop-nav {
    gap: 14px;
  }

  .nav-link {
    font-size: 14px;
  }

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

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

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

  .sticky-rank {
    position: static;
  }
}

@media (max-width: 820px) {
  .site-header-inner {
    height: 64px;
  }

  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

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

  .brand-copy strong {
    font-size: 18px;
  }

  .brand-copy small {
    display: none;
  }

  .hero-carousel {
    height: 640px;
    min-height: 0;
  }

  .hero-content {
    bottom: 86px;
  }

  .hero-content h1 {
    font-size: 42px;
  }

  .hero-content p {
    font-size: 17px;
  }

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

  .section-heading {
    display: block;
  }

  .section-heading a {
    display: inline-block;
    margin-top: 12px;
  }

  .six-grid,
  .compact-grid,
  .four-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

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

  .category-grid,
  .footer-inner,
  .detail-content-grid,
  .category-cover {
    grid-template-columns: 1fr;
  }

  .category-cover-images {
    grid-template-columns: repeat(4, 1fr);
  }

  .category-cover-images img {
    height: 130px;
  }

  .page-hero {
    padding: 54px 0;
  }
}

@media (max-width: 560px) {
  .container,
  .site-header-inner,
  .footer-inner {
    width: min(100% - 24px, var(--container));
  }

  .hero-carousel {
    height: 600px;
  }

  .hero-content {
    left: 16px;
    width: calc(100% - 32px);
  }

  .hero-tags span {
    font-size: 13px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
  }

  .hero-controls {
    left: 16px;
  }

  .search-panel {
    padding: 18px;
  }

  .six-grid,
  .compact-grid,
  .four-grid {
    grid-template-columns: 1fr;
  }

  .movie-rail {
    grid-auto-columns: minmax(210px, 78vw);
  }

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

  .rank-line em {
    display: none;
  }

  .detail-info {
    padding: 20px;
  }

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

  .category-cover-images img {
    height: 180px;
  }
}
