:root {
  --bg: #fff7ed;
  --bg-soft: #fffbeb;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #fed7aa;
  --card: #ffffff;
  --amber: #f59e0b;
  --orange: #ea580c;
  --deep: #451a03;
  --shadow: 0 18px 45px rgba(146, 64, 14, 0.16);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #fff7ed 0%, #fffbeb 45%, #ffffff 100%);
}

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

img {
  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: rgba(255, 247, 237, 0.92);
  border-bottom: 1px solid rgba(251, 191, 36, 0.35);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 30px rgba(146, 64, 14, 0.08);
}

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

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

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

.brand-text {
  font-size: 22px;
  color: #92400e;
}

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

.main-nav a {
  padding: 10px 14px;
  border-radius: 12px;
  color: #78350f;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover {
  background: #ffedd5;
  color: #9a3412;
  transform: translateY(-1px);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 6px;
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(146, 64, 14, 0.08);
}

.header-search input {
  width: 220px;
  border: 0;
  outline: 0;
  padding: 8px 6px 8px 12px;
  background: transparent;
}

.header-search button,
.primary-btn,
.filter-panel button,
.text-btn {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 12px 24px rgba(234, 88, 12, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-search button {
  padding: 8px 15px;
}

.primary-btn,
.text-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 24px;
}

.primary-btn:hover,
.header-search button:hover,
.filter-panel button:hover,
.text-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(234, 88, 12, 0.30);
}

.ghost-btn,
.section-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  font-weight: 800;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
}

.section-link {
  color: #9a3412;
  border-color: #fed7aa;
  background: #fff7ed;
}

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

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: #92400e;
  border-radius: 99px;
}

.hero {
  position: relative;
  height: min(760px, 88vh);
  min-height: 580px;
  overflow: hidden;
  color: #fff;
  background: #111827;
}

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

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

.hero-slide > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.1) contrast(1.04);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 75% 28%, rgba(245, 158, 11, 0.35), transparent 36%),
    linear-gradient(90deg, rgba(17, 24, 39, 0.92) 0%, rgba(17, 24, 39, 0.72) 42%, rgba(17, 24, 39, 0.18) 100%),
    linear-gradient(0deg, rgba(17, 24, 39, 0.90), transparent 45%);
}

.hero-content {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 360px;
  align-items: center;
  gap: 56px;
}

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

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  margin-bottom: 16px;
  padding: 7px 13px;
  border-radius: 999px;
  color: #fff7ed;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(245, 158, 11, 0.92);
}

.section-kicker {
  color: #9a3412;
  background: #ffedd5;
}

.hero h1 {
  margin: 0;
  max-width: 720px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 1.02;
  letter-spacing: -0.05em;
  text-shadow: 0 22px 45px rgba(0, 0, 0, 0.36);
}

.hero p {
  max-width: 650px;
  margin: 24px 0 0;
  color: #ffedd5;
  font-size: 20px;
  line-height: 1.8;
}

.hero-tags,
.card-tags,
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

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

.hero-tags span,
.card-tags span,
.tag-cloud span {
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  color: #9a3412;
  background: #ffedd5;
}

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

.hero-poster {
  position: relative;
  display: block;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.42);
  transform: rotate(2deg);
}

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

.hero-poster span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: rgba(245, 158, 11, 0.92);
  transform: translate(-50%, -50%);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

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

.section {
  padding: 72px 0;
}

.soft-section {
  background: linear-gradient(180deg, #fffbeb, #fff7ed);
}

.accent-section {
  background: radial-gradient(circle at top left, #fbbf24, #ea580c 46%, #7c2d12 100%);
}

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

.inline-head {
  margin-bottom: 22px;
}

.light-head h2,
.light-head .section-kicker {
  color: #fff;
}

.light-head .section-kicker {
  background: rgba(255, 255, 255, 0.18);
}

.section-head h2,
.page-hero h1,
.search-hero h1 {
  margin: 0;
  color: #1f2937;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.light-head h2 {
  color: #fff;
}

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

.category-tile {
  position: relative;
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  overflow: hidden;
  padding: 22px;
  border-radius: var(--radius);
  background: #451a03;
  box-shadow: var(--shadow);
}

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

.category-tile:hover img,
.category-cover:hover img {
  transform: scale(1.08);
}

.category-shade,
.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(17, 24, 39, 0.82), rgba(17, 24, 39, 0.10));
}

.category-tile strong,
.category-tile em {
  position: relative;
  z-index: 1;
  color: #fff;
}

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

.category-tile em {
  margin-top: 8px;
  color: #ffedd5;
  font-size: 14px;
  line-height: 1.6;
  font-style: normal;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(251, 191, 36, 0.22);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 14px 34px rgba(146, 64, 14, 0.10);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(245, 158, 11, 0.54);
  box-shadow: var(--shadow);
}

.poster {
  position: relative;
  display: block;
  overflow: hidden;
  background: #451a03;
}

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

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

.play-icon {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: rgba(245, 158, 11, 0.92);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.88);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.poster-year {
  position: absolute;
  right: 12px;
  top: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  background: rgba(17, 24, 39, 0.76);
  backdrop-filter: blur(10px);
}

.card-body {
  padding: 18px;
}

.card-title {
  display: -webkit-box;
  min-height: 52px;
  overflow: hidden;
  color: #111827;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-title:hover {
  color: #ea580c;
}

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

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
  color: #78716c;
  font-size: 13px;
  font-weight: 700;
}

.card-tags span {
  padding: 5px 9px;
  font-size: 12px;
}

.horizontal-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 340px);
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
}

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

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

.ranking-panel,
.side-panel,
.filter-panel,
.detail-card,
.player-card,
.category-overview-card {
  border: 1px solid rgba(251, 191, 36, 0.22);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.ranking-panel,
.side-panel {
  position: sticky;
  top: 96px;
  padding: 24px;
}

.ranking-panel h2,
.side-panel h2 {
  margin: 0 0 18px;
  font-size: 24px;
}

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

.compact-card {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.compact-card:hover {
  background: #fff7ed;
  transform: translateX(3px);
}

.compact-card img {
  width: 84px;
  height: 58px;
  object-fit: cover;
  border-radius: 13px;
}

.compact-card strong {
  display: block;
  overflow: hidden;
  color: #1f2937;
  font-size: 15px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.compact-card em {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.page-hero,
.search-hero {
  padding: 88px 0 72px;
  color: #fff;
  background:
    radial-gradient(circle at 18% 25%, rgba(255, 255, 255, 0.22), transparent 34%),
    linear-gradient(135deg, #b45309, #ea580c 52%, #451a03);
}

.page-hero h1,
.search-hero h1 {
  color: #fff;
}

.page-hero p,
.search-hero p {
  max-width: 760px;
  margin: 18px 0 0;
  color: #ffedd5;
  font-size: 18px;
  line-height: 1.8;
}

.category-overview-grid {
  display: grid;
  gap: 22px;
}

.category-overview-card {
  display: grid;
  grid-template-columns: 320px 1fr;
  overflow: hidden;
}

.category-cover {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  background: #451a03;
}

.category-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(17, 24, 39, 0.78), transparent);
}

.category-cover span {
  position: absolute;
  left: 22px;
  bottom: 22px;
  z-index: 2;
  color: #fff;
  font-size: 28px;
  font-weight: 900;
}

.category-overview-body {
  padding: 28px;
}

.category-overview-body h2 {
  margin: 0 0 10px;
  font-size: 30px;
}

.category-overview-body p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.8;
}

.filter-section {
  background: #fffaf0;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1fr 220px auto;
  gap: 16px;
  align-items: end;
  padding: 22px;
  margin-bottom: 26px;
}

.wide-filter {
  grid-template-columns: repeat(3, 1fr) auto;
}

.filter-panel label {
  display: grid;
  gap: 8px;
  color: #92400e;
  font-weight: 900;
}

.filter-panel input,
.filter-panel select,
.big-search input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  outline: 0;
  background: #fff;
  padding: 13px 14px;
  color: #1f2937;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.filter-panel input:focus,
.filter-panel select:focus,
.big-search input:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.16);
}

.filter-panel button {
  padding: 13px 21px;
}

.empty-state {
  width: min(520px, calc(100% - 32px));
  margin: 38px auto 0;
  padding: 30px;
  border-radius: var(--radius);
  color: #92400e;
  text-align: center;
  background: #ffedd5;
}

.search-hero-inner {
  text-align: center;
}

.search-hero-inner p {
  margin-left: auto;
  margin-right: auto;
}

.big-search {
  max-width: 760px;
  margin: 28px auto 0;
}

.big-search input {
  padding: 18px 22px;
  border-radius: 999px;
  font-size: 18px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 70px 150px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(251, 191, 36, 0.22);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 12px 28px rgba(146, 64, 14, 0.08);
}

.rank-number {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--amber), var(--orange));
}

.rank-thumb img {
  width: 150px;
  height: 92px;
  object-fit: cover;
  border-radius: 16px;
}

.rank-info h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.rank-info p {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.6;
}

.detail-shell {
  padding: 32px 0 72px;
}

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

.player-card {
  overflow: hidden;
  margin-bottom: 24px;
  background: #020617;
}

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.video-frame video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #020617;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: #fff;
  cursor: pointer;
  background:
    radial-gradient(circle at center, rgba(245, 158, 11, 0.22), transparent 34%),
    rgba(2, 6, 23, 0.55);
}

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

.big-play {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  padding-left: 5px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.35);
}

.player-overlay strong {
  max-width: 80%;
  font-size: 22px;
  text-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.detail-card {
  padding: 28px;
}

.detail-title-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}

.detail-title-row h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.14;
  letter-spacing: -0.03em;
}

.compact-btn {
  flex-shrink: 0;
  padding: 11px 18px;
}

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

.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  color: #92400e;
  font-weight: 900;
  background: #ffedd5;
}

.one-line {
  margin: 0 0 18px;
  color: #4b5563;
  font-size: 18px;
  line-height: 1.8;
}

.tag-cloud {
  margin-bottom: 26px;
}

.content-block {
  padding-top: 24px;
  border-top: 1px solid #fed7aa;
}

.content-block + .content-block {
  margin-top: 24px;
}

.content-block h2 {
  margin: 0 0 12px;
  font-size: 24px;
}

.content-block p {
  margin: 0;
  color: #4b5563;
  font-size: 17px;
  line-height: 1.9;
}

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

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

.site-footer {
  color: #ffedd5;
  background: linear-gradient(180deg, #78350f, #451a03);
}

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

.footer-brand .brand-text {
  color: #fff;
}

.site-footer p {
  max-width: 520px;
  color: #fed7aa;
  line-height: 1.8;
}

.site-footer h2 {
  margin: 0 0 15px;
  color: #fff;
  font-size: 18px;
}

.site-footer a:not(.brand) {
  display: block;
  margin: 9px 0;
  color: #fed7aa;
}

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

.footer-bottom {
  padding: 18px 0;
  border-top: 1px solid rgba(254, 215, 170, 0.18);
  text-align: center;
  color: #fed7aa;
}

.back-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 46px;
  height: 46px;
  display: none;
  border: 0;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: var(--shadow);
}

.back-top.show {
  display: grid;
  place-items: center;
}

[hidden] {
  display: none !important;
}

@media (max-width: 1050px) {
  .header-search {
    display: none;
  }

  .hero-content {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    display: none;
  }

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

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

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

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

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

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

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

  .main-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff7ed;
    box-shadow: var(--shadow);
  }

  .main-nav.open {
    display: flex;
  }

  .hero {
    min-height: 620px;
  }

  .hero-content {
    align-items: end;
    padding-bottom: 80px;
  }

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

  .section {
    padding: 52px 0;
  }

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

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

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

  .category-cover {
    min-height: 220px;
  }

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

  .rank-item {
    grid-template-columns: 52px 92px 1fr;
  }

  .rank-item .text-btn {
    grid-column: 1 / -1;
  }

  .rank-thumb img {
    width: 92px;
    height: 68px;
  }

  .detail-title-row {
    flex-direction: column;
  }

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

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

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

  .category-grid,
  .movie-grid,
  .small-grid {
    grid-template-columns: 1fr;
  }

  .horizontal-strip {
    grid-auto-columns: minmax(260px, 84vw);
  }

  .rank-item {
    grid-template-columns: 48px 1fr;
  }

  .rank-thumb {
    display: none;
  }
}
