:root {
  --color-ink: #3b2309;
  --color-muted: #6b5b48;
  --color-soft: #fff7ed;
  --color-card: #ffffff;
  --color-line: #f3d7b6;
  --color-amber: #d97706;
  --color-orange: #ea580c;
  --color-red: #dc2626;
  --shadow-card: 0 14px 40px rgba(120, 53, 15, 0.14);
  --shadow-soft: 0 8px 24px rgba(120, 53, 15, 0.10);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--color-ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(251, 191, 36, 0.20), transparent 28rem),
    linear-gradient(180deg, #fffaf2 0%, #fff7ed 42%, #fff 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 247, 237, 0.86);
  border-bottom: 1px solid rgba(251, 191, 36, 0.28);
  backdrop-filter: blur(18px);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  color: #78350f;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: white;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--color-amber), var(--color-orange));
  box-shadow: 0 10px 26px rgba(234, 88, 12, 0.28);
}

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

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: #7c2d12;
  font-weight: 700;
  transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: white;
  background: linear-gradient(135deg, var(--color-amber), var(--color-orange));
  box-shadow: var(--shadow-soft);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid #fed7aa;
  background: rgba(255, 255, 255, 0.78);
  border-radius: 999px;
}

.header-search input {
  width: 180px;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 8px 6px 8px 12px;
  color: var(--color-ink);
}

.header-search button,
.btn,
.search-page-form button {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search button {
  padding: 8px 14px;
  color: white;
  background: linear-gradient(135deg, var(--color-amber), var(--color-orange));
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #ffedd5;
}

.mobile-menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #7c2d12;
}

.hero-carousel {
  position: relative;
  height: 600px;
  overflow: hidden;
  background: linear-gradient(180deg, #78350f, #9a3412);
}

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

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

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

.hero-shade,
.detail-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.52) 45%, rgba(0, 0, 0, 0.10) 100%),
    linear-gradient(0deg, rgba(120, 53, 15, 0.45), transparent 55%);
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  max-width: 720px;
  color: white;
}

.meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.meta-pills span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 3px 11px;
  color: #fffbeb;
  background: rgba(217, 119, 6, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.hero-content h1 {
  margin: 0 0 18px;
  font-size: clamp(38px, 6vw, 66px);
  line-height: 1.04;
  letter-spacing: -0.055em;
  text-shadow: 0 18px 50px rgba(0, 0, 0, 0.4);
}

.hero-content p {
  max-width: 620px;
  margin: 0 0 28px;
  color: #fef3c7;
  font-size: 19px;
}

.hero-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 22px;
}

.btn:hover,
.movie-card:hover,
.category-card:hover,
.ranking-row:hover {
  transform: translateY(-3px);
}

.btn-primary {
  color: white;
  background: linear-gradient(135deg, var(--color-amber), var(--color-orange));
  box-shadow: 0 14px 30px rgba(234, 88, 12, 0.32);
}

.btn-ghost {
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(10px);
}

.btn-light {
  color: #9a3412;
  background: #ffedd5;
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 48px;
  height: 48px;
  transform: translateY(-50%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  color: white;
  background: rgba(0, 0, 0, 0.32);
  font-size: 34px;
  line-height: 1;
  backdrop-filter: blur(10px);
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 30px;
  z-index: 6;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

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

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

.section-wrap,
.page-content {
  padding: 54px 0;
}

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

.section-kicker {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--color-orange);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-heading h2,
.page-hero h1,
.detail-main-info h1 {
  margin: 0;
  color: #78350f;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.section-heading p,
.page-hero p {
  max-width: 680px;
  margin: 8px 0 0;
  color: var(--color-muted);
}

.section-more {
  color: var(--color-orange);
  font-weight: 900;
}

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

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

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

.compact-grid .card-line,
.compact-grid .card-tags {
  display: none;
}

.movie-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
  color: var(--color-ink);
  background: var(--color-card);
  border: 1px solid rgba(251, 191, 36, 0.28);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  transition: 0.25s ease;
}

.movie-card:hover {
  box-shadow: var(--shadow-card);
}

.poster-wrap {
  position: relative;
  aspect-ratio: 3 / 4;
  margin: 0;
  overflow: hidden;
  background: linear-gradient(135deg, #451a03, #ea580c);
}

.movie-card-large .poster-wrap {
  aspect-ratio: 16 / 9;
}

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

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

.type-badge,
.play-chip {
  position: absolute;
  z-index: 2;
  color: white;
  background: rgba(217, 119, 6, 0.92);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.type-badge {
  top: 10px;
  right: 10px;
  padding: 4px 8px;
}

.play-chip {
  left: 10px;
  bottom: 10px;
  padding: 5px 10px;
  opacity: 0;
  transform: translateY(8px);
  transition: 0.25s ease;
}

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

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

.card-body h3 {
  display: -webkit-box;
  min-height: 3.1em;
  margin: 0;
  overflow: hidden;
  color: #78350f;
  font-size: 16px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

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

.card-meta,
.card-tags {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  color: #8a5b25;
  font-size: 12px;
}

.card-meta span,
.card-tags span {
  display: inline-flex;
  padding: 3px 8px;
  border-radius: 999px;
  background: #ffedd5;
}

.horizontal-row {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 2px 0 18px;
  scroll-snap-type: x mandatory;
}

.horizontal-row .movie-card {
  flex: 0 0 190px;
  scroll-snap-align: start;
}

.feature-zone {
  padding: 34px;
  background: linear-gradient(135deg, rgba(254, 243, 199, 0.9), rgba(255, 237, 213, 0.92));
  border: 1px solid rgba(251, 191, 36, 0.32);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.feature-layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr 0.9fr;
  gap: 22px;
}

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

.movie-card-wide {
  flex-direction: row;
}

.movie-card-wide .poster-wrap {
  flex: 0 0 150px;
  aspect-ratio: 4 / 3;
}

.rank-panel,
.ranking-note,
.side-nav,
.detail-card,
.filter-panel,
.category-overview-block {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(251, 191, 36, 0.24);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.rank-panel {
  padding: 18px;
}

.rank-panel h3,
.side-nav h2,
.detail-card h2,
.ranking-note h2 {
  margin: 0 0 14px;
  color: #78350f;
}

.rank-item {
  display: grid;
  grid-template-columns: 34px 42px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #ffedd5;
}

.rank-item img {
  width: 42px;
  height: 56px;
  border-radius: 8px;
  object-fit: cover;
}

.rank-no,
.ranking-number {
  color: var(--color-orange);
  font-weight: 900;
}

.rank-title {
  display: -webkit-box;
  overflow: hidden;
  font-weight: 800;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.rank-score,
.ranking-score {
  color: #b45309;
  font-weight: 900;
}

.category-grid,
.category-stat-grid {
  display: grid;
  gap: 20px;
}

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

.category-card {
  overflow: hidden;
  background: white;
  border: 1px solid rgba(251, 191, 36, 0.28);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  transition: 0.25s ease;
}

.category-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 120px;
  overflow: hidden;
}

.category-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.45s ease;
}

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

.category-card-body h3 {
  margin: 0 0 8px;
  color: #78350f;
}

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

.category-card-body span {
  color: var(--color-orange);
  font-weight: 900;
}

.page-hero {
  position: relative;
  padding: 84px 0;
  color: #78350f;
  background:
    radial-gradient(circle at 80% 20%, rgba(251, 146, 60, 0.35), transparent 24rem),
    linear-gradient(135deg, #fffbeb, #ffedd5);
  border-bottom: 1px solid rgba(251, 191, 36, 0.28);
}

.small-hero {
  padding: 64px 0;
}

.category-stat-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-bottom: 34px;
}

.category-stat-grid a {
  display: grid;
  gap: 2px;
  padding: 18px;
  text-align: center;
  background: white;
  border: 1px solid #fed7aa;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.category-stat-grid strong {
  color: var(--color-orange);
  font-size: 26px;
}

.category-overview-block {
  padding: 24px;
  margin-bottom: 28px;
}

.category-overview-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.category-overview-head h2 {
  margin: 0 0 6px;
  color: #78350f;
}

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

.with-sidebar {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 28px;
}

.side-nav {
  position: sticky;
  top: 96px;
  align-self: start;
  padding: 18px;
}

.side-nav a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  color: #7c2d12;
  font-weight: 800;
}

.side-nav a:hover,
.side-nav a.is-active {
  color: white;
  background: linear-gradient(135deg, var(--color-amber), var(--color-orange));
}

.filter-panel {
  display: grid;
  grid-template-columns: 1.8fr 0.8fr 0.8fr 0.9fr auto;
  align-items: end;
  gap: 14px;
  padding: 18px;
  margin-bottom: 24px;
}

.filter-field {
  display: grid;
  gap: 6px;
}

.filter-field label {
  color: #92400e;
  font-size: 13px;
  font-weight: 900;
}

.filter-field input,
.filter-field select,
.search-page-form input {
  width: 100%;
  min-height: 44px;
  border: 1px solid #fed7aa;
  border-radius: 12px;
  outline: 0;
  background: white;
  padding: 10px 12px;
  color: var(--color-ink);
}

.filter-field input:focus,
.filter-field select:focus,
.search-page-form input:focus {
  border-color: var(--color-orange);
  box-shadow: 0 0 0 4px rgba(251, 146, 60, 0.18);
}

.filter-total {
  color: var(--color-muted);
  font-weight: 700;
  white-space: nowrap;
}

.empty-result {
  padding: 42px;
  text-align: center;
  color: var(--color-muted);
  background: white;
  border: 1px dashed #fdba74;
  border-radius: var(--radius-md);
}

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

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

.ranking-row {
  display: grid;
  grid-template-columns: 54px 72px 1fr 72px;
  align-items: center;
  gap: 16px;
  padding: 14px;
  background: white;
  border: 1px solid rgba(251, 191, 36, 0.28);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  transition: 0.25s ease;
}

.ranking-row img {
  width: 72px;
  height: 96px;
  border-radius: 12px;
  object-fit: cover;
}

.ranking-info {
  display: grid;
  gap: 6px;
}

.ranking-info strong {
  color: #78350f;
  font-size: 18px;
}

.ranking-info em {
  color: var(--color-muted);
  font-style: normal;
}

.ranking-note {
  position: sticky;
  top: 96px;
  align-self: start;
  padding: 22px;
}

.search-page-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  max-width: 760px;
  margin: 0 auto 20px;
}

.search-page-form input {
  min-height: 56px;
  border-radius: 999px;
  padding: 0 22px;
  font-size: 18px;
}

.search-page-form button {
  padding: 0 28px;
  color: white;
  background: linear-gradient(135deg, var(--color-amber), var(--color-orange));
}

.search-summary {
  margin-bottom: 24px;
  text-align: center;
  color: var(--color-muted);
}

.detail-hero {
  position: relative;
  min-height: 580px;
  overflow: hidden;
  color: white;
  background: #451a03;
}

.detail-bg {
  position: absolute;
  inset: 0;
  filter: blur(2px) saturate(1.1);
  transform: scale(1.02);
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 34px;
  align-items: end;
  min-height: 580px;
  padding-top: 84px;
  padding-bottom: 54px;
}

.breadcrumbs {
  position: absolute;
  top: 28px;
  left: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #fde68a;
  font-size: 14px;
}

.breadcrumbs a:hover {
  color: white;
}

.detail-poster img {
  width: 290px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 6px solid rgba(255, 255, 255, 0.24);
  border-radius: 22px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

.detail-main-info h1 {
  color: white;
  font-size: clamp(38px, 6vw, 68px);
  text-shadow: 0 16px 46px rgba(0, 0, 0, 0.45);
}

.detail-one-line {
  max-width: 820px;
  color: #fffbeb;
  font-size: 19px;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0;
}

.detail-tags span {
  padding: 5px 10px;
  color: #fde68a;
  background: rgba(0, 0, 0, 0.30);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  font-weight: 700;
}

.detail-content {
  padding: 48px 0 64px;
}

.player-section {
  margin-bottom: 34px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #0f0f0f;
  border-radius: var(--radius-lg);
  box-shadow: 0 28px 70px rgba(69, 26, 3, 0.26);
}

.movie-player {
  width: 100%;
  height: 100%;
  background: black;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 8px;
  color: white;
  border: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.10), rgba(0, 0, 0, 0.62));
  text-align: center;
}

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

.player-play-icon {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  margin: 0 auto;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-amber), var(--color-orange));
  box-shadow: 0 18px 38px rgba(234, 88, 12, 0.4);
  font-size: 30px;
}

.player-overlay strong {
  font-size: 22px;
}

.player-overlay small {
  color: #fde68a;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 310px;
  gap: 22px;
}

.detail-card {
  padding: 24px;
}

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

.detail-meta-card dl {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 10px 12px;
  margin: 0;
}

.detail-meta-card dt {
  color: #92400e;
  font-weight: 900;
}

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

.related-section {
  padding-bottom: 0;
}

.site-footer {
  margin-top: 30px;
  color: #fef3c7;
  background: linear-gradient(135deg, #451a03, #7c2d12);
}

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

.footer-brand {
  color: white;
  font-size: 22px;
}

.site-footer p {
  max-width: 560px;
  color: #fde68a;
}

.site-footer h2 {
  margin: 0 0 12px;
  color: white;
  font-size: 18px;
}

.site-footer a,
.site-footer span {
  display: block;
  margin: 7px 0;
  color: #fde68a;
}

.card-hidden {
  display: none !important;
}

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

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

  .rank-panel,
  .ranking-note {
    position: static;
  }

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

@media (max-width: 860px) {
  .header-inner {
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .mobile-menu-button {
    display: block;
    margin-left: auto;
  }

  .main-nav,
  .header-search {
    display: none;
    width: 100%;
  }

  .main-nav.is-open,
  .header-search.is-open {
    display: flex;
  }

  .main-nav {
    flex-direction: column;
    align-items: stretch;
  }

  .header-search input {
    flex: 1;
    width: auto;
  }

  .hero-carousel {
    height: 540px;
  }

  .hero-content {
    padding-top: 70px;
  }

  .hero-control {
    display: none;
  }

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

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

  .with-sidebar,
  .filter-panel,
  .detail-hero-inner,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .side-nav {
    position: static;
  }

  .detail-hero-inner {
    align-items: start;
    min-height: auto;
    padding-top: 72px;
  }

  .detail-poster img {
    width: min(260px, 70vw);
  }

  .breadcrumbs {
    position: static;
    grid-column: 1 / -1;
    margin-bottom: 10px;
  }

  .ranking-row {
    grid-template-columns: 38px 58px 1fr auto;
  }

  .ranking-row img {
    width: 58px;
    height: 78px;
  }
}

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

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

  .section-heading,
  .category-overview-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .four-cols,
  .six-cols,
  .category-grid,
  .category-stat-grid {
    grid-template-columns: 1fr;
  }

  .movie-card-wide {
    flex-direction: column;
  }

  .movie-card-wide .poster-wrap {
    flex-basis: auto;
    aspect-ratio: 3 / 4;
  }

  .search-page-form {
    grid-template-columns: 1fr;
  }
}
