:root {
  --color-bg: #fffaf0;
  --color-surface: #ffffff;
  --color-dark: #111827;
  --color-muted: #6b7280;
  --color-soft: #fef3c7;
  --color-primary: #d97706;
  --color-primary-dark: #b45309;
  --color-accent: #ea580c;
  --color-border: #f1e1bd;
  --shadow-card: 0 18px 40px rgba(120, 53, 15, 0.12);
  --shadow-strong: 0 30px 80px rgba(0, 0, 0, 0.28);
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #fff7ed 0%, #ffffff 42%, #fffbeb 100%);
  color: var(--color-dark);
  min-height: 100vh;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(217, 119, 6, 0.96), rgba(234, 88, 12, 0.96));
  color: #ffffff;
  box-shadow: 0 12px 30px rgba(146, 64, 14, 0.22);
  backdrop-filter: blur(18px);
}

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

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

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.brand-text {
  font-size: 20px;
  white-space: nowrap;
}

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

.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.88);
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.mobile-menu-button span {
  width: 20px;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
}

.mobile-nav {
  display: none;
  padding: 0 16px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

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

.mobile-nav a {
  padding: 12px 8px;
  border-radius: 10px;
}

.mobile-nav a:hover {
  background: rgba(255, 255, 255, 0.12);
}

.hero {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  background: #0f172a;
}

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

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

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 82% 26%, rgba(245, 158, 11, 0.35), transparent 32%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.48) 48%, rgba(0, 0, 0, 0.2)),
    linear-gradient(0deg, rgba(17, 24, 39, 0.96), rgba(17, 24, 39, 0.08) 44%);
}

.hero-content {
  position: relative;
  min-height: 650px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) 360px;
  gap: 56px;
  align-items: center;
  color: #ffffff;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.18);
  color: #fcd34d;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.hero h1 {
  margin: 18px 0 12px;
  font-size: clamp(36px, 5.5vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.06em;
}

.hero h2 {
  margin: 0 0 16px;
  font-size: clamp(26px, 3.2vw, 44px);
  line-height: 1.1;
  color: #fde68a;
}

.hero p {
  margin: 0;
  max-width: 720px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  line-height: 1.85;
}

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

.hero-tags {
  margin-top: 22px;
}

.hero-tags span,
.tag-row span {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 13px;
  line-height: 1;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

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

.primary-button {
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(217, 119, 6, 0.35);
}

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

.ghost-button {
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.hero-poster {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-strong);
  transform: rotate(2deg);
  background: linear-gradient(135deg, #78350f, #111827);
}

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

.hero-poster span {
  position: absolute;
  left: 24px;
  bottom: 24px;
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-primary);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.2);
}

.hero-control {
  position: absolute;
  top: 50%;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.42);
  color: #ffffff;
  font-size: 32px;
  line-height: 1;
  transform: translateY(-50%);
  transition: background 0.2s ease;
}

.hero-control:hover {
  background: rgba(0, 0, 0, 0.68);
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  display: flex;
  gap: 9px;
}

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

.hero-dot.active {
  width: 28px;
  background: #f59e0b;
}

.search-panel {
  position: relative;
  z-index: 2;
  margin-top: -42px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(20px);
}

.quick-search,
.filters,
.page-filter {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.quick-search input,
.filters input,
.filters select,
.page-filter input,
.page-filter select {
  width: 100%;
  height: 48px;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: #ffffff;
  color: var(--color-dark);
  padding: 0 15px;
  outline: none;
}

.quick-search input:focus,
.filters input:focus,
.filters select:focus,
.page-filter input:focus,
.page-filter select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.12);
}

.quick-search button {
  height: 48px;
  border: 0;
  border-radius: 14px;
  background: var(--color-primary);
  color: #ffffff;
  font-weight: 800;
  padding: 0 24px;
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.quick-links a {
  padding: 8px 12px;
  border-radius: 999px;
  background: #fffbeb;
  color: var(--color-primary-dark);
  font-size: 14px;
  font-weight: 700;
}

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

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

.section-heading h2,
.page-title h1,
.category-hero h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.section-heading p,
.page-title p,
.category-hero p {
  margin: 10px 0 0;
  color: var(--color-muted);
  line-height: 1.8;
}

.section-more {
  white-space: nowrap;
  color: var(--color-primary);
  font-weight: 800;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(241, 225, 189, 0.86);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  box-shadow: 0 10px 24px rgba(120, 53, 15, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  border-color: rgba(217, 119, 6, 0.45);
  box-shadow: var(--shadow-card);
}

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

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

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

.poster-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.7));
}

.card-play {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-primary);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .card-play {
  opacity: 1;
  transform: translateY(0);
}

.rank-badge {
  position: absolute;
  left: 10px;
  top: 10px;
  min-width: 34px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  color: #ffffff;
  font-weight: 900;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
}

.card-body {
  padding: 14px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 8px;
  color: var(--color-primary-dark);
  font-size: 12px;
  font-weight: 800;
}

.card-meta span:not(:last-child)::after {
  content: "·";
  margin-left: 7px;
  color: #d1a45f;
}

.card-body h3 {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.35;
  min-height: 44px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

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

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

.tag-row span {
  background: #fff7ed;
  color: #b45309;
}

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

.category-card {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  border-radius: var(--radius-md);
  color: #ffffff;
  box-shadow: var(--shadow-card);
  background: #111827;
}

.category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.category-card span {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.78));
}

.category-card strong,
.category-card em {
  position: absolute;
  left: 16px;
  right: 16px;
  z-index: 1;
}

.category-card strong {
  bottom: 54px;
  font-size: 20px;
}

.category-card em {
  bottom: 18px;
  color: rgba(255, 255, 255, 0.78);
  font-style: normal;
  font-size: 13px;
  line-height: 1.45;
}

.category-card:hover img {
  transform: scale(1.1);
}

.page-main {
  padding: 58px 0 72px;
}

.page-title {
  margin-bottom: 32px;
}

.page-title h1 {
  margin-top: 16px;
}

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

.catalog-card {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 22px;
  padding: 18px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(120, 53, 15, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.catalog-posters {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.catalog-posters img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 9px;
  background: #f59e0b;
}

.catalog-copy h2 {
  margin: 0 0 8px;
  font-size: 24px;
}

.catalog-copy p {
  margin: 0 0 14px;
  color: var(--color-muted);
  line-height: 1.7;
}

.catalog-copy span {
  color: var(--color-primary);
  font-weight: 900;
}

.category-hero {
  margin-top: -58px;
  padding: 78px 0 52px;
  background:
    radial-gradient(circle at 80% 10%, rgba(245, 158, 11, 0.25), transparent 30%),
    linear-gradient(135deg, #111827, #78350f);
  color: #ffffff;
}

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

.category-hero p {
  color: rgba(255, 255, 255, 0.78);
}

.page-filter {
  grid-template-columns: 1fr 150px;
}

.ranking-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 24px;
}

.ranking-feature {
  display: grid;
  gap: 16px;
}

.ranking-feature-card {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  color: #ffffff;
  background: #111827;
  box-shadow: var(--shadow-card);
}

.ranking-feature-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
}

.ranking-feature-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0.18));
}

.ranking-feature-card div,
.feature-rank {
  position: absolute;
  z-index: 1;
}

.feature-rank {
  top: 16px;
  left: 16px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: #f59e0b;
  font-size: 24px;
  font-weight: 900;
}

.ranking-feature-card div {
  left: 18px;
  right: 18px;
  bottom: 18px;
}

.ranking-feature-card strong {
  font-size: 24px;
}

.ranking-feature-card p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.6;
}

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

.ranking-row {
  display: grid;
  grid-template-columns: 42px 58px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  background: #ffffff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ranking-row:hover {
  transform: translateX(4px);
  box-shadow: 0 10px 24px rgba(120, 53, 15, 0.12);
}

.ranking-row > span {
  color: var(--color-primary);
  font-size: 20px;
  font-weight: 900;
  text-align: center;
}

.ranking-row img {
  width: 58px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 10px;
  background: #f59e0b;
}

.ranking-row strong {
  display: block;
  margin-bottom: 4px;
}

.ranking-row p {
  margin: 0;
  color: var(--color-muted);
  font-size: 13px;
}

.ranking-row em {
  color: var(--color-primary);
  font-style: normal;
  font-weight: 900;
}

.search-board .filters {
  grid-template-columns: 1fr 160px 160px 160px;
  margin-bottom: 24px;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

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

.detail-main {
  padding-bottom: 72px;
}

.detail-hero {
  padding: 66px 0;
  background:
    radial-gradient(circle at 80% 18%, rgba(245, 158, 11, 0.28), transparent 28%),
    linear-gradient(135deg, #111827, #451a03 82%);
  color: #ffffff;
}

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

.detail-cover {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-strong);
  background: #78350f;
}

.detail-cover img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

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

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

.detail-info h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.detail-one-line {
  margin: 18px 0 0;
  max-width: 800px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
  line-height: 1.8;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}

.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fef3c7;
  font-weight: 800;
}

.player-section {
  padding: 48px 0 0;
}

.player-section h2 {
  margin: 0 0 18px;
  font-size: 30px;
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #000000;
  box-shadow: var(--shadow-strong);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  background: rgba(0, 0, 0, 0.42);
  color: #ffffff;
  text-align: center;
}

.player-overlay span {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
  font-size: 26px;
}

.player-overlay strong {
  display: block;
  font-size: 18px;
}

.player-overlay.is-hidden {
  display: none;
}

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

.detail-content article,
.detail-content aside {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(120, 53, 15, 0.08);
}

.detail-content article {
  padding: 28px;
}

.detail-content aside {
  padding: 24px;
  align-self: start;
}

.detail-content h2 {
  margin: 0 0 16px;
  font-size: 26px;
}

.detail-content p {
  margin: 0 0 16px;
  color: #374151;
  line-height: 1.9;
}

.detail-content dl {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 12px;
  margin: 0;
}

.detail-content dt {
  color: var(--color-muted);
  font-weight: 800;
}

.detail-content dd {
  margin: 0;
  color: #111827;
}

.site-footer {
  margin-top: 72px;
  background: #111827;
  color: #d1d5db;
}

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

.footer-logo {
  margin-bottom: 12px;
  color: #ffffff;
  font-size: 22px;
  font-weight: 900;
}

.site-footer p {
  max-width: 520px;
  margin: 0;
  color: #9ca3af;
  line-height: 1.8;
}

.site-footer h3 {
  margin: 0 0 14px;
  color: #ffffff;
}

.site-footer ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer a:hover {
  color: #f59e0b;
}

.footer-bottom {
  padding: 18px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #6b7280;
  text-align: center;
}

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

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

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

  .hero-poster {
    display: none;
  }
}

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

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

  .header-inner {
    height: 64px;
  }

  .brand-text {
    font-size: 18px;
  }

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

  .hero-content {
    padding: 64px 0 86px;
  }

  .hero-control {
    display: none;
  }

  .quick-search,
  .filters,
  .page-filter,
  .search-board .filters {
    grid-template-columns: 1fr;
  }

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

  .catalog-card {
    grid-template-columns: 1fr;
  }

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

  .detail-cover {
    max-width: 260px;
  }
}

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

  .hero h1 {
    font-size: 34px;
  }

  .hero h2 {
    font-size: 25px;
  }

  .hero p,
  .detail-one-line {
    font-size: 16px;
  }

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

  .movie-grid,
  .category-grid {
    gap: 12px;
  }

  .card-body {
    padding: 12px;
  }

  .card-body h3 {
    font-size: 15px;
  }

  .ranking-row {
    grid-template-columns: 34px 52px 1fr;
  }

  .ranking-row em {
    display: none;
  }
}
