:root {
  --pink: #ec4899;
  --pink-dark: #db2777;
  --purple: #9333ea;
  --blue: #3b82f6;
  --green: #22c55e;
  --orange: #f97316;
  --ink: #1f2937;
  --muted: #6b7280;
  --soft: #fdf2f8;
  --line: rgba(148, 163, 184, 0.22);
  --shadow: 0 20px 45px rgba(236, 72, 153, 0.13);
  --radius: 24px;
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(135deg, #fdf2f8 0%, #faf5ff 45%, #eff6ff 100%);
  min-height: 100vh;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
}

.ribbon-line {
  position: relative;
  overflow: hidden;
  height: 4px;
  background: linear-gradient(90deg, var(--pink), var(--purple), var(--blue));
}

.ribbon-line::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 -100%;
  width: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent);
  animation: ribbon-shine 3.2s infinite;
}

@keyframes ribbon-shine {
  0% { left: -100%; }
  55%, 100% { left: 100%; }
}

.nav-shell {
  width: min(1240px, calc(100% - 32px));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  box-shadow: 0 12px 30px rgba(236, 72, 153, 0.28);
  transition: transform 0.3s ease;
}

.brand:hover .brand-icon {
  transform: rotate(10deg) scale(1.03);
}

.brand-text strong {
  display: block;
  font-size: 20px;
  line-height: 1;
  background: linear-gradient(90deg, var(--pink), var(--purple));
  -webkit-background-clip: text;
  color: transparent;
}

.brand-text small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  color: #475569;
  font-weight: 700;
}

.desktop-nav a {
  transition: color 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav .is-active {
  color: var(--pink);
}

.nav-search {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 1 340px;
}

.nav-search input,
.page-search input,
.filter-panel input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 12px 16px;
  outline: none;
  background: rgba(255, 255, 255, 0.88);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-search input:focus,
.page-search input:focus,
.filter-panel input:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.12);
}

.nav-search button,
.page-search button {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  color: #ffffff;
  cursor: pointer;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  box-shadow: 0 12px 25px rgba(236, 72, 153, 0.22);
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: #fce7f3;
  color: var(--pink);
  cursor: pointer;
}

.mobile-panel {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 12px 0 18px;
  border-top: 1px solid var(--line);
}

.mobile-panel a {
  display: block;
  padding: 12px 0;
  color: #475569;
  font-weight: 700;
}

.mobile-panel input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px 14px;
}

.hero-carousel {
  position: relative;
  overflow: hidden;
  min-height: 680px;
  padding: 56px 16px 46px;
}

.float-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(30px);
  opacity: 0.55;
  animation: float-orb 7s ease-in-out infinite;
}

.orb-one {
  width: 190px;
  height: 190px;
  left: 8%;
  top: 12%;
  background: rgba(244, 114, 182, 0.42);
}

.orb-two {
  width: 240px;
  height: 240px;
  right: 7%;
  bottom: 8%;
  background: rgba(168, 85, 247, 0.35);
  animation-delay: 1.3s;
}

@keyframes float-orb {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  40% { transform: translateY(-22px) rotate(8deg); }
  70% { transform: translateY(-12px) rotate(-6deg); }
}

.hero-slides {
  position: relative;
  width: min(1240px, 100%);
  min-height: 560px;
  margin: 0 auto;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 54px;
  align-items: center;
  padding: 52px;
  border-radius: 34px;
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  pointer-events: none;
  transition: opacity 0.55s ease, transform 0.55s ease;
  overflow: hidden;
  background: #111827;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.22);
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
  filter: blur(18px) saturate(1.2);
  transform: scale(1.08);
  opacity: 0.42;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.92), rgba(88, 28, 135, 0.72), rgba(236, 72, 153, 0.45));
}

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

.hero-content {
  position: relative;
  z-index: 2;
  color: #ffffff;
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 14px;
  border-radius: 999px;
  color: #be185d;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 24px rgba(236, 72, 153, 0.12);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.hero-content h1 {
  margin: 0 0 18px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.05;
}

.hero-content p {
  max-width: 680px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 20px;
  line-height: 1.8;
}

.hero-tags,
.tag-row,
.filter-chips,
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags span,
.tag,
.filter-chips button,
.tag-cloud a {
  display: inline-flex;
  align-items: center;
  border: 0;
  border-radius: 999px;
  padding: 7px 12px;
  color: #475569;
  background: #ffffff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.hero-tags span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.17);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
}

.tag:hover,
.filter-chips button:hover,
.filter-chips button.is-active,
.tag-cloud a:hover {
  color: #ffffff;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  transform: translateY(-2px);
}

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

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

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.16);
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--pink), var(--purple));
}

.btn-light {
  color: #334155;
  background: #ffffff;
}

.hero-poster {
  position: relative;
  z-index: 2;
  display: block;
  border-radius: 28px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.45);
  transform: rotate(2deg);
}

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

.hero-controls {
  width: min(1240px, 100%);
  margin: 18px auto 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
}

.hero-controls button {
  border: 0;
  cursor: pointer;
}

.hero-controls > button {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: #ffffff;
  color: var(--pink);
  font-size: 28px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(236, 72, 153, 0.28);
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.is-active {
  width: 28px;
  background: linear-gradient(90deg, var(--pink), var(--purple));
}

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

.section-glass {
  width: 100%;
  padding-left: max(16px, calc((100% - 1240px) / 2));
  padding-right: max(16px, calc((100% - 1240px) / 2));
  background: rgba(255, 255, 255, 0.52);
  backdrop-filter: blur(12px);
}

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

.section-head h2,
.page-hero h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.2;
}

.section-head a {
  color: var(--pink);
  font-weight: 800;
}

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

.movie-card,
.compact-card,
.rank-card,
.category-overview-card,
.side-card,
.player-card,
.filter-panel {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.movie-card {
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover,
.featured-card:hover,
.category-tile:hover,
.category-overview-card:hover,
.rank-card:hover,
.compact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 28px 60px rgba(236, 72, 153, 0.18);
}

.movie-poster {
  position: relative;
  display: block;
  height: 260px;
  overflow: hidden;
}

.movie-poster img,
.featured-card img,
.compact-poster img,
.rank-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.movie-card:hover img,
.featured-card:hover img,
.compact-card:hover img,
.rank-card:hover img {
  transform: scale(1.06);
}

.category-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 12px;
  color: #ffffff;
  background: var(--pill-color, var(--pink));
  font-size: 12px;
  font-weight: 800;
}

.movie-poster .category-pill,
.featured-card .category-pill {
  position: absolute;
  left: 14px;
  top: 14px;
  z-index: 2;
}

.movie-info {
  padding: 18px;
}

.movie-info h3,
.compact-body h3,
.rank-body h3,
.featured-overlay h3 {
  margin: 0;
  color: var(--ink);
  line-height: 1.35;
}

.movie-info h3 {
  font-size: 19px;
}

.movie-info p,
.compact-body p,
.rank-body p {
  margin: 10px 0 14px;
  color: var(--muted);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.movie-meta,
.compact-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  color: #64748b;
  font-size: 13px;
}

.tag-row {
  margin-top: 14px;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.featured-card {
  position: relative;
  overflow: hidden;
  min-height: 320px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.featured-card a,
.featured-card img {
  display: block;
  width: 100%;
  height: 100%;
}

.featured-card img {
  position: absolute;
  inset: 0;
}

.featured-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.05), rgba(15, 23, 42, 0.78));
}

.featured-overlay {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  padding: 26px;
  color: #ffffff;
}

.featured-overlay h3 {
  color: #ffffff;
  font-size: 26px;
}

.featured-overlay p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.7;
}

.category-band {
  width: 100%;
  padding-left: max(16px, calc((100% - 1240px) / 2));
  padding-right: max(16px, calc((100% - 1240px) / 2));
  background: linear-gradient(90deg, rgba(252, 231, 243, 0.8), rgba(243, 232, 255, 0.8), rgba(219, 234, 254, 0.8));
}

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

.category-tile,
.category-overview-card {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 124px;
  padding: 22px;
  border-radius: 22px;
  background: #ffffff;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile span,
.category-symbol {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 999px;
  color: #ffffff;
  background: var(--tile-color, var(--pink));
  font-size: 24px;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}

.category-tile strong,
.category-overview-card h2 {
  display: block;
  margin: 0 0 6px;
  font-size: 20px;
}

.category-tile small,
.category-overview-card p {
  color: var(--muted);
  line-height: 1.6;
}

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

.compact-card,
.rank-card {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 16px;
  padding: 12px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.compact-poster,
.rank-poster {
  height: 132px;
  border-radius: 18px;
  overflow: hidden;
}

.compact-body,
.rank-body {
  min-width: 0;
  padding: 6px 8px 6px 0;
}

.rank-head {
  align-items: center;
}

.rank-tabs,
.rank-tabs-large {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.rank-tabs button,
.rank-tabs-large button {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  color: #475569;
  background: #ffffff;
  cursor: pointer;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.rank-tabs button.is-active,
.rank-tabs-large button.is-active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--pink), var(--purple));
}

.rank-list {
  display: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.rank-list.is-active {
  display: grid;
}

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

.rank-card {
  position: relative;
}

.rank-badge {
  position: absolute;
  left: -8px;
  top: -8px;
  z-index: 3;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, #facc15, var(--orange));
  box-shadow: 0 8px 20px rgba(249, 115, 22, 0.28);
}

.tag-section {
  padding: 70px 16px;
  text-align: center;
  background: linear-gradient(135deg, rgba(252, 231, 243, 0.72), rgba(243, 232, 255, 0.8));
}

.tag-section h2 {
  margin: 0 0 24px;
  font-size: 34px;
}

.tag-cloud {
  justify-content: center;
  max-width: 960px;
  margin: 0 auto;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 90px 16px 70px;
  background: linear-gradient(135deg, rgba(252, 231, 243, 0.8), rgba(245, 243, 255, 0.88), rgba(219, 234, 254, 0.76));
}

.category-hero {
  background: linear-gradient(135deg, color-mix(in srgb, var(--tile-color) 22%, #ffffff), #ffffff 64%, #eff6ff);
}

.page-hero-inner {
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
  margin: 0 auto;
  text-align: center;
}

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

.category-overview-card {
  justify-content: space-between;
  min-height: 150px;
}

.category-overview-card strong {
  color: var(--pink);
  white-space: nowrap;
}

.filter-panel {
  margin-bottom: 26px;
  padding: 20px;
}

.filter-chips {
  margin-top: 14px;
}

.search-summary {
  margin-bottom: 22px;
  color: #475569;
  font-weight: 800;
}

.page-search {
  max-width: 680px;
  margin: 28px auto 0;
  display: flex;
  gap: 10px;
}

.detail-wrap {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 70px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 22px;
  color: #64748b;
  font-size: 14px;
}

.breadcrumb a:hover {
  color: var(--pink);
}

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

.player-card {
  overflow: hidden;
}

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

.movie-player {
  width: 100%;
  height: 100%;
  display: block;
  background: #020617;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 14px;
  border: 0;
  color: #ffffff;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.22), rgba(15, 23, 42, 0.72));
  z-index: 2;
}

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

.play-icon {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  padding-left: 4px;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  box-shadow: 0 22px 44px rgba(236, 72, 153, 0.35);
  font-size: 32px;
}

.player-overlay strong {
  padding: 0 24px;
  text-align: center;
  font-size: 22px;
}

.detail-content {
  padding: 28px;
}

.detail-content h1 {
  margin: 18px 0 12px;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.2;
}

.detail-content h2,
.side-card h2 {
  margin: 28px 0 12px;
  font-size: 24px;
}

.detail-content p {
  color: #475569;
  line-height: 1.9;
  font-size: 16px;
}

.detail-content .lead {
  color: #334155;
  font-size: 19px;
  font-weight: 700;
}

.detail-side {
  display: grid;
  gap: 22px;
  position: sticky;
  top: 94px;
}

.side-card {
  padding: 20px;
}

.cover-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
}

.cover-card h2 {
  margin-bottom: 8px;
}

.cover-card p {
  color: var(--muted);
  line-height: 1.7;
}

.side-list .compact-card {
  grid-template-columns: 92px minmax(0, 1fr);
  box-shadow: none;
  border: 1px solid var(--line);
}

.side-list .compact-poster {
  height: 104px;
}

.site-footer {
  background: linear-gradient(135deg, #ffffff, #f8fafc);
  border-top: 1px solid var(--line);
}

.footer-grid {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0;
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1.2fr 1fr;
  gap: 34px;
}

.footer-brand {
  margin-bottom: 14px;
  font-size: 24px;
  font-weight: 900;
  color: var(--pink);
}

.site-footer p,
.site-footer a {
  color: #64748b;
  line-height: 1.8;
}

.site-footer a {
  display: block;
  margin: 6px 0;
}

.site-footer h3 {
  margin: 0 0 12px;
  color: var(--ink);
}

.footer-links {
  columns: 2;
}

.footer-bottom {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 28px;
  color: #94a3b8;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

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

  .mobile-toggle {
    display: inline-grid;
    place-items: center;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    padding: 36px;
  }

  .hero-poster {
    display: none;
  }

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

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

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

  .detail-side {
    position: static;
  }

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

@media (max-width: 760px) {
  .nav-shell {
    height: 64px;
  }

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

  .brand-text small {
    display: none;
  }

  .hero-carousel {
    min-height: 600px;
    padding-top: 34px;
  }

  .hero-slides {
    min-height: 500px;
  }

  .hero-slide {
    padding: 26px;
    border-radius: 24px;
  }

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

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

  .movie-grid,
  .featured-grid,
  .category-grid,
  .category-overview-grid,
  .rank-list,
  .rank-list.big {
    grid-template-columns: 1fr;
  }

  .movie-poster {
    height: 230px;
  }

  .compact-card,
  .rank-card {
    grid-template-columns: 112px minmax(0, 1fr);
  }

  .compact-poster,
  .rank-poster {
    height: 120px;
  }

  .page-search {
    flex-direction: column;
  }

  .detail-wrap {
    width: min(100% - 20px, 1240px);
  }

  .detail-content {
    padding: 22px;
  }

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