:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-soft: #fff7ed;
  --text: #111827;
  --muted: #64748b;
  --line: #e2e8f0;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --rose: #f43f5e;
  --rose-dark: #e11d48;
  --orange: #fb923c;
  --shadow: 0 20px 50px rgba(15, 23, 42, 0.14);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 23, 42, 0.96);
  color: #ffffff;
  box-shadow: 0 16px 35px rgba(15, 23, 42, 0.24);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(1200px, calc(100% - 32px));
  min-height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 26px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose), var(--orange));
  box-shadow: 0 10px 24px rgba(244, 63, 94, 0.36);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-size: 22px;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, #fb7185, #fdba74);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-subtitle {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 500;
}

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

.nav-link,
.mobile-link {
  color: #e2e8f0;
  font-weight: 600;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: #fb7185;
}

.header-search,
.mobile-search {
  display: flex;
  align-items: center;
  background: #334155;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.header-search input,
.mobile-search input {
  width: 210px;
  border: 0;
  outline: 0;
  padding: 10px 4px 10px 16px;
  color: #ffffff;
  background: transparent;
}

.header-search input::placeholder,
.mobile-search input::placeholder {
  color: #94a3b8;
}

.header-search button,
.mobile-search button {
  border: 0;
  color: #ffffff;
  background: var(--rose);
  padding: 10px 16px;
  cursor: pointer;
}

.menu-button {
  display: none;
  margin-left: auto;
  border: 0;
  color: #ffffff;
  background: transparent;
  font-size: 28px;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 14px 0 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

.section-wrap {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 64px 0 0;
}

.hero-carousel {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: var(--slate-900);
}

.hero-stage,
.hero-slide,
.hero-backdrop,
.hero-shade {
  position: absolute;
  inset: 0;
}

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

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

.hero-backdrop {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.15);
}

.hero-shade {
  background:
    radial-gradient(circle at 75% 30%, rgba(244, 63, 94, 0.35), transparent 34%),
    linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.72) 45%, rgba(15, 23, 42, 0.28)),
    linear-gradient(0deg, rgba(15, 23, 42, 0.9), transparent 42%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1200px, calc(100% - 32px));
  min-height: 620px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 48px;
  align-items: center;
}

.hero-copy {
  max-width: 720px;
  color: #ffffff;
}

.section-kicker,
.hero-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: 7px 14px;
  color: #fff1f2;
  background: linear-gradient(135deg, var(--rose), var(--orange));
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 12px 26px rgba(244, 63, 94, 0.28);
}

.hero-copy h1,
.hero-site-title {
  margin: 22px 0 6px;
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.hero-copy h2 {
  margin: 0 0 18px;
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.08;
}

.hero-copy p {
  max-width: 620px;
  margin: 0 0 24px;
  color: #dbeafe;
  font-size: 20px;
}

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

.hero-tags span,
.detail-meta span,
.movie-meta-row span {
  border-radius: 999px;
  padding: 5px 10px;
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.12);
  font-size: 13px;
  font-weight: 700;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

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

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose), var(--orange));
  box-shadow: 0 14px 30px rgba(244, 63, 94, 0.36);
}

.btn-ghost {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
}

.hero-poster {
  position: relative;
  display: block;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transform: rotate(2deg);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

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

.hero-poster span {
  position: absolute;
  left: 18px;
  bottom: 18px;
  border-radius: 999px;
  padding: 8px 14px;
  color: #ffffff;
  background: rgba(244, 63, 94, 0.92);
  font-weight: 800;
}

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

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

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

.search-band {
  margin-top: -38px;
  padding: 0;
  position: relative;
  z-index: 5;
}

.hero-search,
.large-search {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-search input,
.large-search input,
.filter-bar input,
.filter-bar select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 999px;
  outline: 0;
  padding: 0 18px;
  background: #ffffff;
}

.hero-search input:focus,
.large-search input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.12);
}

.hero-search button,
.large-search button {
  min-width: 126px;
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: var(--rose);
  font-weight: 800;
  cursor: pointer;
}

.quick-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.quick-cats a {
  border-radius: 999px;
  padding: 9px 14px;
  color: #be123c;
  background: #ffe4e6;
  font-weight: 700;
}

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

.section-head h2 {
  margin: 12px 0 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
}

.section-head > a,
.compact-head a {
  color: var(--rose-dark);
  font-weight: 800;
}

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: #0f172a;
}

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

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

.poster-year {
  position: absolute;
  top: 12px;
  right: 12px;
  border-radius: 999px;
  padding: 5px 10px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.78);
  font-size: 12px;
  font-weight: 800;
}

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

.movie-card-body .movie-meta-row span {
  color: #be123c;
  background: #ffe4e6;
}

.movie-card h3 {
  margin: 12px 0 8px;
  font-size: 20px;
  line-height: 1.25;
}

.movie-card h3 a:hover,
.ranking-copy h2 a:hover,
.archive-list a:hover {
  color: var(--rose-dark);
}

.movie-card p {
  margin: 0;
  min-height: 52px;
  color: var(--muted);
  font-size: 14px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tag-row span {
  border-radius: 999px;
  padding: 5px 9px;
  color: #475569;
  background: #f1f5f9;
  font-size: 12px;
  font-weight: 700;
}

.rail-section {
  margin-top: 64px;
  padding-bottom: 64px;
  background: linear-gradient(135deg, #fff1f2, #ffedd5);
}

.light-head .section-kicker {
  background: #ffffff;
  color: var(--rose-dark);
}

.movie-rail {
  display: grid;
  grid-auto-columns: 178px;
  grid-auto-flow: column;
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x proximity;
}

.rail-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: var(--slate-900);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.16);
  scroll-snap-align: start;
}

.rail-card img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  opacity: 0.88;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.rail-card:hover img {
  opacity: 1;
  transform: scale(1.06);
}

.rail-card span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 12px 12px;
  color: #ffffff;
  font-weight: 800;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.92), transparent);
}

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

.category-tile,
.category-overview-card {
  position: relative;
  overflow: hidden;
  min-height: 190px;
  border-radius: var(--radius);
  padding: 22px;
  color: #ffffff;
  background: var(--slate-900);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
}

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

.category-tile:hover img {
  opacity: 0.55;
  transform: scale(1.05);
}

.category-tile span,
.category-tile em {
  position: relative;
  z-index: 1;
  display: block;
}

.category-tile span {
  font-size: 24px;
  font-weight: 900;
}

.category-tile em {
  max-width: 240px;
  margin-top: 10px;
  color: #e2e8f0;
  font-style: normal;
  font-size: 13px;
}

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

.ranking-panel,
.archive-panel {
  border-radius: var(--radius);
  padding: 28px;
  background: var(--surface);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.archive-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #ffffff;
  background:
    radial-gradient(circle at 80% 20%, rgba(251, 146, 60, 0.48), transparent 30%),
    linear-gradient(135deg, #0f172a, #881337);
}

.archive-panel h2 {
  margin: 0 0 12px;
  font-size: 34px;
}

.archive-panel p {
  color: #e2e8f0;
}

.ranking-list,
.footer-column ul,
.archive-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ranking-list {
  counter-reset: rank;
}

.ranking-list li {
  counter-increment: rank;
}

.ranking-list li a {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.ranking-list li a::before {
  content: counter(rank);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: var(--rose);
  font-weight: 900;
}

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

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: var(--slate-900);
}

.compact-hero {
  padding: 68px 0 24px;
  background:
    radial-gradient(circle at 80% 20%, rgba(244, 63, 94, 0.45), transparent 28%),
    linear-gradient(135deg, var(--slate-900), #4c0519);
}

.compact-hero .section-wrap,
.category-hero .section-wrap {
  padding-top: 0;
}

.page-hero h1 {
  margin: 18px 0 10px;
  font-size: clamp(36px, 6vw, 60px);
  line-height: 1.05;
}

.page-hero p {
  max-width: 720px;
  color: #dbeafe;
  font-size: 18px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
  color: #e2e8f0;
  font-size: 14px;
}

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

.filter-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px 180px;
  gap: 14px;
  margin-bottom: 24px;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.category-overview-card {
  min-height: auto;
  display: grid;
  gap: 18px;
  color: var(--text);
  background: var(--surface);
}

.category-overview-card h2 {
  margin: 0 0 8px;
}

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

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

.category-thumbs img {
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 12px;
  object-fit: cover;
}

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

.ranking-item {
  display: grid;
  grid-template-columns: 58px 128px 1fr;
  gap: 18px;
  align-items: center;
  padding: 16px;
}

.rank-number {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose), var(--orange));
  font-weight: 900;
}

.ranking-poster img {
  width: 128px;
  aspect-ratio: 2 / 3;
  border-radius: 16px;
  object-fit: cover;
}

.ranking-copy h2 {
  margin: 0 0 10px;
}

.ranking-copy p {
  margin: 12px 0 0;
  color: var(--muted);
}

.archive-wrap {
  display: grid;
  gap: 24px;
}

.archive-block {
  border-radius: var(--radius);
  padding: 24px;
  background: var(--surface);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.archive-block h2 {
  margin: 0 0 18px;
}

.archive-list {
  column-count: 4;
  column-gap: 28px;
}

.archive-list li {
  break-inside: avoid;
  margin: 0 0 12px;
}

.archive-list a {
  display: block;
  font-weight: 800;
}

.archive-list span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.search-page .movie-grid:empty::before {
  content: "暂无匹配影片";
  grid-column: 1 / -1;
  padding: 40px;
  border-radius: var(--radius);
  text-align: center;
  color: var(--muted);
  background: var(--surface);
}

.detail-hero {
  min-height: 620px;
}

.detail-backdrop,
.detail-shade {
  position: absolute;
  inset: 0;
}

.detail-backdrop {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-shade {
  background:
    radial-gradient(circle at 78% 25%, rgba(244, 63, 94, 0.38), transparent 32%),
    linear-gradient(90deg, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.72)),
    linear-gradient(0deg, rgba(15, 23, 42, 0.98), transparent 46%);
}

.detail-hero-inner {
  position: relative;
  z-index: 1;
  padding-top: 52px;
  padding-bottom: 60px;
}

.detail-grid {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 36px;
  align-items: center;
  margin-top: 26px;
}

.detail-poster {
  width: 280px;
  aspect-ratio: 2 / 3;
  border-radius: 28px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.detail-copy h1 {
  margin: 18px 0 16px;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.05;
}

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

.large-tags span {
  color: #fff1f2;
  background: rgba(244, 63, 94, 0.28);
}

.watch-section h2,
.detail-content h2 {
  margin: 0 0 18px;
  font-size: 32px;
}

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

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

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-content: center;
  gap: 14px;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle, rgba(244, 63, 94, 0.26), rgba(15, 23, 42, 0.48));
  cursor: pointer;
}

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

.play-circle {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto;
  padding-left: 5px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose), var(--orange));
  font-size: 28px;
  box-shadow: 0 20px 45px rgba(244, 63, 94, 0.42);
}

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

.detail-content article {
  border-radius: var(--radius);
  padding: 28px;
  background: var(--surface);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.detail-content p {
  margin: 0;
  color: #334155;
  font-size: 17px;
}

.site-footer {
  margin-top: 80px;
  color: #cbd5e1;
  background: var(--slate-900);
}

.footer-inner {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 36px;
}

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

.footer-main p {
  max-width: 560px;
  color: #94a3b8;
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-badges span {
  border-radius: 999px;
  padding: 6px 10px;
  color: #fecdd3;
  background: rgba(244, 63, 94, 0.12);
  font-weight: 700;
  font-size: 13px;
}

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

.footer-column li {
  margin: 0 0 10px;
}

.footer-column a:hover {
  color: #fb7185;
}

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

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

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

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

  .archive-list {
    column-count: 3;
  }
}

@media (max-width: 860px) {
  .desktop-nav,
  .header-search {
    display: none;
  }

  .menu-button {
    display: block;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 80px 0 100px;
  }

  .hero-poster {
    display: none;
  }

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

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

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

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

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

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

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

  .ranking-item {
    grid-template-columns: 42px 94px 1fr;
  }

  .ranking-poster img {
    width: 94px;
  }

  .archive-list {
    column-count: 2;
  }
}

@media (max-width: 560px) {
  .header-inner,
  .section-wrap,
  .hero-inner,
  .footer-inner,
  .mobile-nav {
    width: min(100% - 24px, 1200px);
  }

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

  .brand-subtitle {
    display: none;
  }

  .hero-carousel,
  .hero-inner {
    min-height: 620px;
  }

  .hero-copy h1,
  .hero-site-title {
    font-size: 40px;
  }

  .hero-copy h2 {
    font-size: 30px;
  }

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

  .hero-search button,
  .large-search button {
    width: 100%;
  }

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

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

  .movie-rail {
    grid-auto-columns: 154px;
  }

  .ranking-item {
    grid-template-columns: 1fr;
  }

  .rank-number {
    position: absolute;
    margin: 12px;
  }

  .archive-list {
    column-count: 1;
  }
}
