:root {
  --amber: #d97706;
  --amber-dark: #b45309;
  --orange: #ea580c;
  --red: #dc2626;
  --gray-950: #111827;
  --gray-900: #1f2937;
  --gray-800: #374151;
  --gray-700: #4b5563;
  --gray-600: #6b7280;
  --gray-500: #9ca3af;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --gray-50: #f9fafb;
  --white: #ffffff;
  --shadow: 0 20px 45px rgba(17, 24, 39, 0.12);
  --soft-shadow: 0 10px 25px rgba(17, 24, 39, 0.08);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

body {
  background: var(--gray-50);
  color: var(--gray-900);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.7);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.08);
}

.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--gray-900);
}

.logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 12px 26px rgba(217, 119, 6, 0.3);
}

.logo-mark span {
  width: 0;
  height: 0;
  margin-left: 3px;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 14px solid #fff;
}

.logo-text strong,
.logo-text em {
  display: block;
  line-height: 1.1;
}

.logo-text strong {
  font-size: 21px;
  font-weight: 800;
}

.logo-text em {
  margin-top: 4px;
  color: var(--gray-500);
  font-size: 12px;
  font-style: normal;
}

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

.desktop-nav a,
.mobile-nav a {
  color: var(--gray-700);
  font-weight: 700;
  border-radius: 12px;
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.desktop-nav a {
  padding: 10px 14px;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-nav a:hover,
.mobile-nav a.active {
  color: var(--white);
  background: var(--amber);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--gray-100);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--gray-800);
  border-radius: 99px;
}

.mobile-nav {
  display: none;
  padding: 8px 16px 18px;
  background: var(--white);
  border-top: 1px solid var(--gray-200);
}

.mobile-nav.open {
  display: grid;
  gap: 6px;
}

.mobile-nav a {
  padding: 12px 14px;
}

.hero-section {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  padding: 118px 0 70px;
  background: linear-gradient(135deg, #fffbeb 0%, #fff7ed 48%, #fef2f2 100%);
}

.hero-bg span {
  position: absolute;
  width: 290px;
  height: 290px;
  border-radius: 50%;
  filter: blur(42px);
  opacity: 0.22;
  animation: pulseGlow 5.5s ease-in-out infinite;
}

.hero-bg span:nth-child(1) {
  top: 130px;
  left: 5%;
  background: #f59e0b;
}

.hero-bg span:nth-child(2) {
  top: 220px;
  right: 5%;
  background: #fb923c;
  animation-delay: 0.8s;
}

.hero-bg span:nth-child(3) {
  bottom: 60px;
  left: 45%;
  background: #ef4444;
  animation-delay: 1.4s;
}

@keyframes pulseGlow {
  0%, 100% {
    transform: scale(0.92);
  }
  50% {
    transform: scale(1.08);
  }
}

.hero-container {
  position: relative;
  z-index: 2;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--amber);
  background: rgba(217, 119, 6, 0.1);
  border: 1px solid rgba(217, 119, 6, 0.18);
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 14px;
}

.hero-carousel {
  position: relative;
  margin-top: 22px;
  min-height: 470px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 44px;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.hero-copy h1 {
  margin: 18px 0 20px;
  color: var(--gray-900);
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.hero-copy p {
  max-width: 680px;
  color: var(--gray-700);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.8;
}

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

.hero-tags {
  margin: 22px 0 28px;
}

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--gray-700);
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(17, 24, 39, 0.06);
}

.hero-actions,
.section-heading,
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.hero-actions {
  justify-content: flex-start;
  flex-wrap: wrap;
}

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

.primary-button {
  color: var(--white);
  background: var(--amber);
  box-shadow: 0 14px 28px rgba(217, 119, 6, 0.25);
}

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

.primary-button:hover {
  background: var(--amber-dark);
  box-shadow: 0 18px 36px rgba(180, 83, 9, 0.28);
}

.ghost-button {
  color: var(--amber);
  background: var(--white);
  border: 2px solid var(--amber);
}

.ghost-button.full {
  width: 100%;
  margin-top: 20px;
}

.hero-poster {
  position: relative;
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 430px;
  box-shadow: var(--shadow);
  background: rgba(255, 255, 255, 0.4);
}

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

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

.hero-poster span,
.play-hover {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--white);
  background: rgba(217, 119, 6, 0.92);
  font-size: 26px;
  box-shadow: 0 16px 36px rgba(217, 119, 6, 0.3);
}

.hero-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.hero-dots button {
  width: 10px;
  height: 10px;
  border-radius: 99px;
  background: rgba(217, 119, 6, 0.25);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dots button.active {
  width: 34px;
  background: var(--amber);
}

.hero-search {
  display: flex;
  width: min(680px, 100%);
  margin: 28px auto 0;
  padding: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--soft-shadow);
}

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

.hero-search button {
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  color: var(--white);
  background: var(--amber);
  font-weight: 800;
  cursor: pointer;
}

.stat-strip {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  padding: 36px 0;
}

.stat-grid div {
  text-align: center;
}

.stat-grid strong {
  display: block;
  color: var(--gray-900);
  font-size: 34px;
  font-weight: 900;
}

.stat-grid span {
  color: var(--gray-600);
  font-weight: 700;
}

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

.soft-bg {
  background: linear-gradient(135deg, var(--gray-50), #fffbeb);
}

.section-heading {
  margin-bottom: 30px;
}

.section-heading h2,
.panel-heading h2,
.detail-content h2,
.detail-side-card h2 {
  margin: 0 0 8px;
  color: var(--gray-900);
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 900;
  letter-spacing: -0.03em;
}

.section-heading p {
  margin: 0;
  color: var(--gray-600);
}

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

.section-heading.light h2,
.section-heading.light p,
.section-heading.light a {
  color: var(--white);
}

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--soft-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.poster-link {
  position: relative;
  display: block;
  height: 245px;
  overflow: hidden;
  background: var(--gray-100);
}

.featured-grid .poster-link {
  height: 300px;
}

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

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

.year-badge,
.corner-label {
  position: absolute;
  top: 14px;
  z-index: 2;
  border-radius: 999px;
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
  padding: 6px 10px;
}

.year-badge {
  left: 14px;
  background: rgba(17, 24, 39, 0.7);
}

.corner-label {
  right: 14px;
  background: var(--amber);
}

.play-hover {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.86);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .play-hover {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

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

.movie-card-body h3 {
  margin: 0 0 10px;
  color: var(--gray-900);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

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

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--gray-500);
  font-size: 12px;
  font-weight: 800;
}

.movie-meta span {
  border-radius: 999px;
  background: var(--gray-100);
  padding: 5px 9px;
}

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

.rank-panel,
.detail-side-card,
.main-detail-card {
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--soft-shadow);
}

.rank-panel {
  position: sticky;
  top: 100px;
  padding: 22px;
}

.panel-heading {
  margin-bottom: 16px;
}

.panel-heading h2 {
  font-size: 24px;
}

.rank-item {
  display: grid;
  grid-template-columns: 42px 58px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid var(--gray-200);
}

.rank-item:last-child {
  border-bottom: 0;
}

.rank-number {
  color: var(--amber);
  font-size: 20px;
  font-weight: 900;
}

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

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

.rank-item strong {
  color: var(--gray-900);
  line-height: 1.35;
}

.rank-item em {
  margin-top: 4px;
  color: var(--gray-500);
  font-size: 12px;
  font-style: normal;
}

.amber-band {
  background: linear-gradient(135deg, var(--amber), var(--orange), var(--red));
}

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

.category-tile {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  border-radius: var(--radius-md);
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  padding: 22px;
  isolation: isolate;
  transition: transform 0.25s ease, background 0.25s ease;
}

.category-tile:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.18);
}

.category-tile img {
  position: absolute;
  inset: auto -20px -20px auto;
  width: 120px;
  height: 150px;
  object-fit: cover;
  border-radius: 18px;
  opacity: 0.32;
  transform: rotate(8deg);
  z-index: -1;
}

.category-tile span {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  font-size: 22px;
  font-weight: 900;
}

.category-tile strong,
.category-tile em {
  display: block;
}

.category-tile strong {
  margin-top: 24px;
  font-size: 20px;
  font-weight: 900;
}

.category-tile em {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  line-height: 1.6;
  font-style: normal;
}

.page-main {
  padding-top: 78px;
}

.page-hero {
  color: var(--white);
  background: linear-gradient(135deg, var(--gray-950), var(--gray-800));
}

.small-hero,
.category-hero {
  padding: 70px 0;
}

.page-hero h1 {
  margin: 18px 0 14px;
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 900;
  letter-spacing: -0.04em;
}

.page-hero p {
  max-width: 780px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
  line-height: 1.8;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 16px;
  color: var(--gray-600);
  font-size: 14px;
  font-weight: 700;
}

.breadcrumb.dark,
.page-hero .breadcrumb {
  color: rgba(255, 255, 255, 0.78);
}

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

.filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px 180px;
  gap: 14px;
  margin-bottom: 28px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--soft-shadow);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 14px;
  background: var(--gray-50);
  padding: 0 14px;
}

.search-box input,
.filter-panel select {
  width: 100%;
  height: 48px;
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  background: var(--white);
  color: var(--gray-900);
  outline: none;
}

.search-box input {
  border: 0;
  background: transparent;
}

.filter-panel select {
  padding: 0 12px;
  font-weight: 700;
}

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

.category-overview-card {
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--soft-shadow);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-overview-link {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 22px;
  padding: 24px;
  align-items: center;
}

.poster-stack {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.poster-stack img {
  height: 126px;
  width: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.category-overview-link span {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  color: var(--amber);
  background: rgba(217, 119, 6, 0.1);
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 900;
}

.category-overview-link h2 {
  margin: 10px 0 10px;
  color: var(--gray-900);
  font-size: 28px;
  font-weight: 900;
}

.category-overview-link p {
  color: var(--gray-600);
  line-height: 1.8;
}

.ranking-list {
  display: grid;
  gap: 14px;
}

.ranking-card {
  border-radius: 18px;
}

.ranking-link {
  display: grid;
  grid-template-columns: 70px 92px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 16px;
}

.ranking-number {
  color: var(--amber);
  font-size: 28px;
  font-weight: 900;
}

.ranking-link img {
  width: 92px;
  height: 124px;
  border-radius: 14px;
  object-fit: cover;
}

.ranking-info strong,
.ranking-info em,
.ranking-info small {
  display: block;
}

.ranking-info strong {
  color: var(--gray-900);
  font-size: 22px;
  font-weight: 900;
}

.ranking-info em {
  margin: 8px 0;
  color: var(--gray-500);
  font-style: normal;
  font-weight: 700;
}

.ranking-info small {
  color: var(--gray-600);
  line-height: 1.7;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  padding: 48px 0 58px;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  filter: saturate(1.1);
}

.detail-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(17, 24, 39, 0.92), rgba(17, 24, 39, 0.18));
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
}

.detail-intro {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
}

.detail-intro > img {
  width: 270px;
  height: 375px;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}

.detail-intro h1 {
  margin: 18px 0 18px;
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.detail-intro p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
  line-height: 1.85;
}

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

.main-detail-card,
.detail-side-card {
  padding: 26px;
}

.detail-content h2,
.detail-side-card h2 {
  font-size: 25px;
}

.main-detail-card p {
  color: var(--gray-700);
  font-size: 16px;
  line-height: 1.95;
}

.player-shell {
  position: relative;
  overflow: hidden;
  margin: 18px 0 30px;
  border-radius: var(--radius-md);
  background: #000;
  aspect-ratio: 16 / 9;
  box-shadow: var(--shadow);
}

.movie-player {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
  object-fit: contain;
}

.player-start {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  color: var(--white);
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.52), rgba(0, 0, 0, 0.16));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-start span {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--amber);
  font-size: 34px;
  box-shadow: 0 18px 40px rgba(217, 119, 6, 0.32);
}

.player-start strong {
  font-size: 18px;
}

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

.detail-side-card {
  position: sticky;
  top: 100px;
}

.detail-side-card ul {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.detail-side-card li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--gray-200);
  padding-bottom: 12px;
}

.detail-side-card span {
  color: var(--gray-500);
}

.detail-side-card strong {
  color: var(--gray-900);
  text-align: right;
}

.site-footer {
  background: linear-gradient(135deg, var(--gray-950), var(--gray-900));
  color: rgba(255, 255, 255, 0.78);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 42px;
  padding: 46px 0 34px;
}

.site-footer .site-logo {
  color: var(--white);
}

.site-footer p {
  max-width: 520px;
  margin: 18px 0 0;
  line-height: 1.8;
}

.site-footer h2 {
  margin: 0 0 16px;
  color: var(--white);
  font-size: 18px;
  font-weight: 900;
}

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-links a:hover {
  color: #fbbf24;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 18px 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
}

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

  .menu-toggle {
    display: block;
  }

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

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

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

  .hero-copy p,
  .detail-intro p {
    margin-left: auto;
    margin-right: auto;
  }

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

  .hero-poster {
    width: min(420px, 100%);
    margin: 0 auto;
  }

  .featured-grid,
  .compact-grid,
  .catalog-grid,
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .rank-panel,
  .detail-side-card {
    position: static;
  }

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

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

  .header-inner {
    min-height: 66px;
  }

  .logo-text strong {
    font-size: 18px;
  }

  .page-main {
    padding-top: 66px;
  }

  .hero-section {
    min-height: 760px;
    padding-top: 92px;
  }

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

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

  .hero-poster,
  .hero-poster img {
    min-height: 310px;
  }

  .hero-search {
    border-radius: 20px;
    flex-direction: column;
  }

  .hero-search input,
  .hero-search button {
    min-height: 46px;
    width: 100%;
  }

  .stat-grid,
  .featured-grid,
  .compact-grid,
  .catalog-grid,
  .related-grid,
  .category-grid,
  .category-overview-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

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

  .poster-link,
  .featured-grid .poster-link {
    height: 260px;
  }

  .category-overview-link {
    grid-template-columns: 1fr;
  }

  .ranking-link {
    grid-template-columns: 54px 76px minmax(0, 1fr);
  }

  .ranking-link img {
    width: 76px;
    height: 102px;
  }

  .ranking-info small {
    display: none;
  }

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

  .detail-intro > img {
    width: 220px;
    height: 310px;
    margin: 0 auto;
  }

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