:root {
  --bg: #ffffff;
  --ink: #111827;
  --muted: #6b7280;
  --soft: #f8fafc;
  --line: #e5e7eb;
  --orange: #ea580c;
  --orange-dark: #c2410c;
  --amber: #f59e0b;
  --black: #050505;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(229, 231, 235, 0.88);
  backdrop-filter: blur(16px);
}

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

.brand,
.footer-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;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(234, 88, 12, 0.3);
}

.brand-text {
  font-size: 1.15rem;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link {
  padding: 9px 14px;
  color: #4b5563;
  border-radius: 999px;
  font-size: 0.95rem;
  transition: color 0.25s ease, background 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--orange);
  background: #fff7ed;
}

.top-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  background: #f3f4f6;
  border-radius: 999px;
}

.top-search input,
.wide-search input,
.catalog-filter input,
.catalog-filter select {
  border: 0;
  outline: 0;
  color: var(--ink);
  background: #ffffff;
}

.top-search input {
  width: 190px;
  padding: 8px 12px;
  background: transparent;
}

.top-search button,
.wide-search button,
.primary-button {
  border: 0;
  color: #ffffff;
  background: var(--orange);
  border-radius: 999px;
  padding: 9px 18px;
  font-weight: 700;
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.top-search button:hover,
.wide-search button:hover,
.primary-button:hover {
  background: var(--orange-dark);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(234, 88, 12, 0.24);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 8px;
  border: 0;
  border-radius: 12px;
  background: #fff7ed;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 6px 0;
  background: var(--orange);
  border-radius: 999px;
}

.hero {
  position: relative;
  min-height: 72vh;
  overflow: hidden;
  color: #ffffff;
  background: #0f172a;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.65s ease;
}

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

.hero-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-mask {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 75% 40%, rgba(234, 88, 12, 0.26), transparent 36%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.86) 0%, rgba(0, 0, 0, 0.56) 48%, rgba(0, 0, 0, 0.18) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(760px, calc(100% - 48px));
  margin-left: max(24px, calc((100% - 1280px) / 2));
  padding: 88px 0;
}

.eyebrow,
.section-head span,
.page-hero span,
.rank-head span {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px 14px;
  color: #ffffff;
  background: rgba(234, 88, 12, 0.92);
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

.hero h1 {
  margin: 22px 0 18px;
  font-size: clamp(2.6rem, 6vw, 5.5rem);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.hero p {
  max-width: 680px;
  margin: 0 0 30px;
  color: #e5e7eb;
  font-size: clamp(1rem, 2vw, 1.22rem);
}

.hero-actions,
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.ghost-button {
  padding: 10px 18px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
}

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

.hero-meta span,
.detail-meta span,
.movie-tags span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  color: #475569;
  background: #f1f5f9;
  border-radius: 999px;
  font-size: 0.82rem;
}

.hero-meta span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 44px;
  height: 44px;
  border: 0;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.34);
  border-radius: 999px;
  transform: translateY(-50%);
  font-size: 2rem;
  line-height: 1;
  transition: background 0.25s ease;
}

.hero-arrow:hover {
  background: rgba(234, 88, 12, 0.88);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

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

.hero-dot.active {
  width: 30px;
  background: var(--orange);
}

.search-band {
  width: min(1180px, calc(100% - 32px));
  margin: -42px auto 0;
  position: relative;
  z-index: 8;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: center;
  padding: 26px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(229, 231, 235, 0.86);
  border-radius: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.search-band h2 {
  margin: 0 0 6px;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
}

.search-band p {
  margin: 0;
  color: var(--muted);
}

.wide-search {
  display: flex;
  gap: 10px;
  padding: 8px;
  background: #f3f4f6;
  border-radius: 999px;
}

.wide-search input {
  flex: 1;
  min-width: 0;
  padding: 12px 16px;
  background: transparent;
}

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

.section-wrap.compact {
  padding: 54px 0;
}

.section-head,
.rank-head {
  display: flex;
  align-items: end;
  gap: 16px;
  margin-bottom: 26px;
}

.section-head h2,
.rank-head h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1.1;
}

.section-head a {
  margin-left: auto;
  color: var(--orange);
  font-weight: 700;
}

.horizontal-cards {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 280px);
  gap: 22px;
  overflow-x: auto;
  padding: 4px 4px 22px;
  scroll-snap-type: x mandatory;
}

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

.horizontal-cards::-webkit-scrollbar {
  height: 8px;
}

.horizontal-cards::-webkit-scrollbar-thumb {
  background: #fed7aa;
  border-radius: 999px;
}

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

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

.category-tile {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #ffffff;
  border-radius: 24px;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.18);
  transform: translateZ(0);
}

.category-tile img,
.category-tile span {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.category-tile img {
  object-fit: cover;
  transition: transform 0.4s ease;
}

.category-tile span {
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.78) 100%);
}

.category-tile strong,
.category-tile em {
  position: relative;
  z-index: 2;
}

.category-tile strong {
  font-size: 1.2rem;
}

.category-tile em {
  margin-top: 6px;
  color: #e5e7eb;
  font-style: normal;
  font-size: 0.9rem;
}

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

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

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

.movie-card {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(229, 231, 235, 0.78);
  border-radius: 22px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 50px rgba(15, 23, 42, 0.17);
}

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

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.82) 100%);
  transition: opacity 0.3s ease;
}

.poster-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  color: var(--orange);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.7);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.poster-meta {
  position: absolute;
  left: 10px;
  top: 10px;
  padding: 4px 9px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.62);
  border-radius: 999px;
  font-size: 0.78rem;
  backdrop-filter: blur(6px);
}

.movie-card:hover .poster-shade,
.movie-card:hover .poster-play {
  opacity: 1;
}

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

.movie-info {
  padding: 15px;
}

.movie-info h3 {
  min-height: 3.1em;
  margin: 0 0 8px;
  font-size: 1rem;
  line-height: 1.35;
}

.movie-info h3 a:hover {
  color: var(--orange);
}

.movie-info p {
  height: 3.1em;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
  overflow: hidden;
}

.movie-tags,
.detail-meta,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rank-panel,
.side-card,
.story-card,
.player-card,
.category-overview-card {
  background: #ffffff;
  border: 1px solid rgba(229, 231, 235, 0.82);
  border-radius: 24px;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

.rank-panel {
  position: sticky;
  top: 96px;
  padding: 24px;
}

.rank-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
}

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

.rank-number {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  border-radius: 10px;
  font-weight: 800;
  font-size: 0.86rem;
}

.rank-title {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-weight: 700;
}

.rank-score {
  color: var(--orange);
  font-weight: 800;
}

.page-main {
  min-height: 60vh;
}

.page-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background:
    radial-gradient(circle at 80% 20%, rgba(251, 146, 60, 0.3), transparent 30%),
    linear-gradient(135deg, #111827 0%, #1f2937 52%, #431407 100%);
}

.page-hero.slim {
  padding: 84px max(24px, calc((100% - 1280px) / 2));
}

.page-hero h1 {
  margin: 18px 0 12px;
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  line-height: 1.05;
}

.page-hero p {
  max-width: 780px;
  margin: 0;
  color: #e5e7eb;
  font-size: 1.08rem;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.92rem;
}

.crumbs a:hover {
  color: #ffffff;
}

.catalog-filter {
  margin-bottom: 26px;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(130px, 180px));
  gap: 14px;
  padding: 18px;
  background: #ffffff;
  border: 1px solid rgba(229, 231, 235, 0.88);
  border-radius: 22px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.catalog-filter label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.85rem;
}

.catalog-filter input,
.catalog-filter select {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
}

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

.category-overview-card {
  padding: 26px;
}

.category-overview-card h2 {
  margin: 0 0 10px;
  font-size: 1.45rem;
}

.category-overview-card h2 a:hover,
.text-button:hover {
  color: var(--orange);
}

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

.mini-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.mini-links a {
  padding: 6px 10px;
  color: #9a3412;
  background: #ffedd5;
  border-radius: 999px;
  font-size: 0.85rem;
}

.text-button {
  color: var(--orange);
  font-weight: 800;
}

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

.ranking-card {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  padding: 16px;
  background: #ffffff;
  border: 1px solid rgba(229, 231, 235, 0.88);
  border-radius: 22px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.ranking-poster {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  background: #111827;
}

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

.ranking-poster span {
  position: absolute;
  left: 10px;
  top: 10px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: var(--orange);
  border-radius: 12px;
  font-weight: 900;
}

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

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

.detail-main {
  background: #f8fafc;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: #0f172a;
}

.detail-bg,
.detail-bg-mask {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.detail-bg {
  object-fit: cover;
  filter: blur(8px) scale(1.04);
  opacity: 0.58;
}

.detail-bg-mask {
  background:
    radial-gradient(circle at 80% 30%, rgba(234, 88, 12, 0.25), transparent 28%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.62));
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 60px 0;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border-radius: 26px;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.45);
}

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

.detail-summary h1 {
  margin: 16px 0 14px;
  font-size: clamp(2.1rem, 5vw, 4.6rem);
  line-height: 1.05;
}

.lead {
  max-width: 880px;
  margin: 0 0 20px;
  color: #e5e7eb;
  font-size: 1.1rem;
}

.detail-tags {
  margin-top: 16px;
}

.detail-tags span {
  padding: 6px 11px;
  color: #ffedd5;
  background: rgba(234, 88, 12, 0.18);
  border: 1px solid rgba(251, 146, 60, 0.28);
  border-radius: 999px;
  font-size: 0.88rem;
}

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

.player-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #000000;
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  color: #ffffff;
  border: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.24), rgba(0, 0, 0, 0.78));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-overlay span {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  color: var(--orange);
  background: rgba(255, 255, 255, 0.94);
  border-radius: 999px;
  font-size: 2rem;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.34);
}

.player-overlay strong {
  font-size: 1.15rem;
}

.player-card.is-playing .player-overlay {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.story-card {
  margin-top: 24px;
  padding: 28px;
}

.story-card h2,
.side-card h2 {
  margin: 0 0 14px;
  font-size: 1.35rem;
}

.story-card p {
  margin: 0 0 24px;
  color: #374151;
  font-size: 1.02rem;
}

.story-card p:last-child {
  margin-bottom: 0;
}

.detail-side {
  display: grid;
  gap: 22px;
}

.side-card {
  padding: 22px;
}

.side-card dl {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 10px 12px;
  margin: 0;
}

.side-card dt {
  color: var(--muted);
}

.side-card dd {
  margin: 0;
  font-weight: 700;
}

.related-list .rank-item {
  grid-template-columns: 34px minmax(0, 1fr) auto;
}

.search-page-form {
  max-width: 720px;
  margin-top: 26px;
}

.search-results:empty::before {
  content: "输入关键词开始搜索";
  grid-column: 1 / -1;
  padding: 36px;
  color: var(--muted);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 22px;
  text-align: center;
}

.site-footer {
  background: #111827;
  color: #d1d5db;
}

.footer-inner {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 44px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
}

.footer-brand {
  color: #ffffff;
  font-size: 1.15rem;
}

.footer-inner p {
  max-width: 640px;
  margin: 10px 0 0;
  color: #9ca3af;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.footer-links a {
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
}

.footer-links a:hover {
  color: #ffffff;
  background: rgba(234, 88, 12, 0.72);
}

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

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

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

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

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

  .rank-panel {
    position: static;
  }
}

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

  .main-nav {
    order: 5;
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    margin-left: 0;
    padding: 10px 0;
  }

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

  .nav-link {
    padding: 12px 14px;
  }

  .top-search {
    margin-left: auto;
  }

  .top-search input {
    width: 150px;
  }

  .nav-toggle {
    display: block;
  }

  .hero-content {
    width: min(620px, calc(100% - 40px));
    margin: 0 auto;
    padding: 90px 0 110px;
  }

  .hero-arrow {
    display: none;
  }

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

  .detail-hero-inner {
    grid-template-columns: 160px minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .top-search {
    order: 4;
    width: 100%;
  }

  .top-search input {
    width: 100%;
  }

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

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

  .wide-search {
    border-radius: 18px;
    flex-direction: column;
  }

  .wide-search button {
    width: 100%;
  }

  .ranking-card {
    grid-template-columns: 90px minmax(0, 1fr);
  }

  .detail-hero-inner {
    grid-template-columns: 1fr;
    padding: 36px 0;
  }

  .detail-poster {
    width: 180px;
  }

  .section-wrap {
    padding: 42px 0;
  }

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

  .section-head a {
    margin-left: 0;
  }
}

@media (max-width: 460px) {
  .movie-grid {
    grid-template-columns: 1fr;
  }

  .hero h1,
  .page-hero h1,
  .detail-summary h1 {
    font-size: 2.35rem;
  }
}
