* {
  box-sizing: border-box;
}

:root {
  --rose: #e11d48;
  --pink: #ec4899;
  --amber: #f59e0b;
  --orange: #f97316;
  --text: #1f2937;
  --muted: #6b7280;
  --line: rgba(225, 29, 72, 0.16);
  --soft: #fff7f8;
  --card: rgba(255, 255, 255, 0.92);
  --shadow: 0 24px 70px rgba(190, 18, 60, 0.16);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(135deg, #fff1f2 0%, #ffffff 48%, #fffbeb 100%);
  line-height: 1.65;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(244, 63, 94, 0.12);
  box-shadow: 0 8px 30px rgba(225, 29, 72, 0.08);
}

.nav-wrap {
  max-width: 1200px;
  height: 72px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-icon {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, #fb7185, #ec4899);
  box-shadow: 0 14px 28px rgba(225, 29, 72, 0.28);
}

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

.brand-text strong {
  font-size: 20px;
  font-weight: 900;
  background: linear-gradient(90deg, #e11d48, #ec4899);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-text small {
  margin-top: 4px;
  color: #6b7280;
  font-size: 12px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: #4b5563;
  font-weight: 700;
  transition: all 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #e11d48;
  background: #fff1f2;
}

.mobile-menu-button {
  display: none;
  border: 0;
  border-radius: 12px;
  padding: 8px 12px;
  background: #fff1f2;
  color: #be123c;
  cursor: pointer;
}

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

.hero {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  background: #e11d48;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  background-size: cover;
  background-position: center;
  transition: opacity 0.8s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 180px;
  background: linear-gradient(0deg, #fff1f2, rgba(255, 241, 242, 0));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  min-height: 640px;
  margin: 0 auto;
  padding: 96px 22px 160px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
}

.eyebrow {
  margin: 0 0 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.9);
}

.hero h1 {
  margin: 0;
  font-size: clamp(44px, 7vw, 82px);
  line-height: 1.02;
  font-weight: 950;
  letter-spacing: -0.05em;
  max-width: 850px;
}

.hero h1 span {
  color: #fde68a;
}

.hero-copy {
  max-width: 760px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 20px;
}

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

.hero-meta span,
.detail-meta span {
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
  font-weight: 700;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 0;
  font-weight: 900;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  cursor: pointer;
}

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

.btn-light {
  color: #e11d48;
  background: #fff;
  box-shadow: 0 18px 34px rgba(136, 19, 55, 0.2);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #e11d48, #ec4899);
  box-shadow: 0 16px 30px rgba(225, 29, 72, 0.24);
}

.btn-glass,
.btn-ghost {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
}

.hero-panel {
  position: absolute;
  left: 50%;
  right: auto;
  bottom: 28px;
  z-index: 3;
  width: min(1156px, calc(100% - 44px));
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 18px;
  align-items: end;
}

.hero-pills,
.hero-thumbs {
  border-radius: 28px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 60px rgba(136, 19, 55, 0.16);
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-pills a {
  padding: 9px 13px;
  color: #fff;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  font-weight: 800;
}

.hero-thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.hero-thumb {
  display: grid;
  grid-template-columns: 54px 1fr;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 18px;
  padding: 8px;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  text-align: left;
  cursor: pointer;
  opacity: 0.78;
}

.hero-thumb.active,
.hero-thumb:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.22);
}

.hero-thumb img {
  width: 54px;
  height: 68px;
  border-radius: 12px;
  object-fit: cover;
}

.hero-thumb span {
  font-weight: 900;
  font-size: 13px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.content-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 70px 22px;
}

.no-pad-top {
  padding-top: 0;
}

.tinted-section {
  max-width: none;
  background: linear-gradient(135deg, #fff7ed 0%, #ffffff 46%, #eff6ff 100%);
  border-top: 1px solid rgba(251, 113, 133, 0.12);
  border-bottom: 1px solid rgba(251, 113, 133, 0.12);
}

.tinted-section > .section-heading,
.tinted-section > .movie-grid,
.tinted-section > .rank-list {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.section-icon {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 950;
  background: linear-gradient(135deg, #e11d48, #ec4899);
  box-shadow: 0 14px 30px rgba(225, 29, 72, 0.22);
}

.section-heading h2 {
  margin: 0;
  color: #111827;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.1;
}

.section-heading p {
  margin: 6px 0 0;
  color: var(--muted);
}

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

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

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

.movie-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-radius: 24px;
  overflow: hidden;
  background: var(--card);
  box-shadow: 0 14px 38px rgba(31, 41, 55, 0.08);
  border: 1px solid rgba(244, 63, 94, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 26px 70px rgba(190, 18, 60, 0.18);
}

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

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

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

.poster-gradient {
  position: absolute;
  inset: auto 0 0;
  height: 45%;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0));
}

.score-badge,
.rank-badge {
  position: absolute;
  top: 12px;
  border-radius: 999px;
  padding: 5px 10px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
}

.score-badge {
  right: 12px;
  background: rgba(225, 29, 72, 0.92);
}

.rank-badge {
  left: 12px;
  background: rgba(245, 158, 11, 0.95);
}

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

.card-body strong {
  color: #111827;
  font-size: 18px;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-body em {
  font-style: normal;
  color: #6b7280;
  font-size: 13px;
}

.card-summary {
  color: #4b5563;
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-list span {
  padding: 4px 8px;
  border-radius: 999px;
  color: #be123c;
  background: #fff1f2;
  font-size: 12px;
  font-weight: 800;
}

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

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.6fr);
  gap: 28px;
  align-items: start;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 54px 76px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(244, 63, 94, 0.1);
  box-shadow: 0 12px 36px rgba(31, 41, 55, 0.07);
  transition: all 0.25s ease;
}

.rank-row:hover {
  transform: translateX(4px);
  border-color: rgba(225, 29, 72, 0.24);
}

.rank-num {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #fff;
  font-weight: 950;
  background: linear-gradient(135deg, #f59e0b, #e11d48);
}

.rank-row img {
  width: 76px;
  height: 96px;
  object-fit: cover;
  border-radius: 14px;
}

.rank-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rank-info strong {
  font-size: 18px;
  color: #111827;
}

.rank-info small,
.rank-info em {
  color: #6b7280;
  font-style: normal;
}

.rank-score {
  color: #e11d48;
  font-size: 22px;
  font-weight: 950;
}

.home-search-card {
  position: sticky;
  top: 100px;
  border-radius: 30px;
  padding: 28px;
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.95), rgba(236, 72, 153, 0.9));
  color: #fff;
  box-shadow: var(--shadow);
}

.home-search-card h2 {
  margin: 0 0 10px;
  font-size: 28px;
}

.home-search-card p {
  color: rgba(255, 255, 255, 0.88);
}

.mini-search {
  display: grid;
  gap: 10px;
  margin: 22px 0;
}

.mini-search input,
.search-tools input,
.search-tools select {
  width: 100%;
  border: 1px solid rgba(225, 29, 72, 0.14);
  border-radius: 16px;
  padding: 13px 14px;
  outline: 0;
  background: rgba(255, 255, 255, 0.94);
}

.mini-search button,
.search-tools button {
  border: 0;
  border-radius: 16px;
  padding: 13px 16px;
  color: #fff;
  background: linear-gradient(135deg, #e11d48, #f59e0b);
  font-weight: 900;
  cursor: pointer;
}

.text-link {
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 4px;
}

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

.category-card,
.category-overview-card {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  padding: 22px;
  min-height: 190px;
  color: #fff;
  background: linear-gradient(135deg, #e11d48, #ec4899);
  box-shadow: 0 18px 44px rgba(225, 29, 72, 0.16);
}

.category-card::after,
.category-overview-card::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: -70px;
  bottom: -70px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.category-card strong {
  position: relative;
  z-index: 1;
  display: block;
  font-size: 22px;
  margin-bottom: 10px;
}

.category-card > span {
  position: relative;
  z-index: 1;
  display: block;
  color: rgba(255, 255, 255, 0.88);
}

.category-card em {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 18px;
  font-style: normal;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
}

.pink { background: linear-gradient(135deg, #ec4899, #f472b6); }
.amber { background: linear-gradient(135deg, #f59e0b, #f97316); }
.orange { background: linear-gradient(135deg, #fb923c, #e11d48); }
.violet { background: linear-gradient(135deg, #8b5cf6, #ec4899); }
.blue { background: linear-gradient(135deg, #2563eb, #06b6d4); }
.emerald { background: linear-gradient(135deg, #059669, #10b981); }
.cyan { background: linear-gradient(135deg, #0891b2, #06b6d4); }
.fuchsia { background: linear-gradient(135deg, #c026d3, #ec4899); }
.red { background: linear-gradient(135deg, #dc2626, #f97316); }
.rose { background: linear-gradient(135deg, #e11d48, #ec4899); }

.inner-page {
  padding-top: 34px;
}

.page-hero {
  max-width: 1200px;
  margin: 0 auto 60px;
  border-radius: 34px;
  padding: 70px 34px;
  color: #fff;
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.94), rgba(236, 72, 153, 0.88), rgba(245, 158, 11, 0.78));
  box-shadow: var(--shadow);
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.page-hero p:not(.eyebrow) {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
}

.small-hero {
  margin-top: 36px;
}

.category-overview-list {
  max-width: 1200px;
  margin: 0 auto 70px;
  padding: 0 22px;
  display: grid;
  gap: 26px;
}

.category-overview-card {
  min-height: auto;
  color: #fff;
}

.category-overview-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.category-overview-head h2 {
  margin: 0;
  font-size: 34px;
}

.category-overview-head p {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.88);
}

.category-overview-card .movie-card {
  position: relative;
  z-index: 1;
}

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

.related-strip {
  max-width: 1200px;
  margin: 0 auto 80px;
  padding: 0 22px;
}

.related-strip h2 {
  font-size: 28px;
}

.link-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.link-cloud a {
  padding: 10px 14px;
  border-radius: 999px;
  color: #be123c;
  background: #fff1f2;
  font-weight: 800;
}

.search-tools {
  max-width: 1200px;
  margin: -30px auto 60px;
  padding: 22px;
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 0.8fr auto;
  gap: 12px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

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

.detail-page {
  background: #fff;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
}

.detail-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.detail-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(17, 24, 39, 0.36), rgba(17, 24, 39, 0.04));
}

.detail-wrap {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 22px 80px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 700;
}

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

.detail-grid {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 36px;
  align-items: end;
}

.detail-poster {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
}

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

.detail-poster span {
  position: absolute;
  top: 16px;
  right: 16px;
  border-radius: 999px;
  padding: 8px 12px;
  color: #fff;
  background: rgba(225, 29, 72, 0.92);
  font-weight: 950;
}

.detail-info h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.lead {
  max-width: 820px;
  margin: 20px 0 0;
  font-size: 20px;
  color: rgba(255, 255, 255, 0.9);
}

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

.detail-tags span {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.player-section {
  padding-top: 80px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  background: #000;
  box-shadow: 0 28px 80px rgba(17, 24, 39, 0.26);
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  border: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #fff;
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.25), rgba(225, 29, 72, 0.36));
  cursor: pointer;
  transition: opacity 0.25s ease;
}

.play-overlay span {
  width: 86px;
  height: 86px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(16px);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
  font-size: 34px;
}

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

.player-shell.playing .play-overlay {
  opacity: 0;
  pointer-events: none;
}

.detail-copy {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.detail-copy article {
  padding: 30px;
  border-radius: 30px;
  background: #fff;
  border: 1px solid rgba(244, 63, 94, 0.12);
  box-shadow: 0 16px 48px rgba(31, 41, 55, 0.08);
}

.detail-copy h2 {
  margin: 0 0 14px;
  font-size: 28px;
}

.detail-copy p {
  margin: 0;
  color: #4b5563;
}

.site-footer {
  padding: 48px 22px 28px;
  background: linear-gradient(135deg, #fff1f2, #fff7ed);
  border-top: 1px solid rgba(244, 63, 94, 0.12);
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
}

.footer-brand p {
  max-width: 420px;
  color: #6b7280;
}

.site-footer h3 {
  margin: 0 0 12px;
  font-size: 18px;
}

.site-footer a:not(.brand) {
  display: block;
  margin: 8px 0;
  color: #6b7280;
  font-weight: 700;
}

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

.footer-bottom {
  max-width: 1200px;
  margin: 28px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(225, 29, 72, 0.16);
  color: #6b7280;
  text-align: center;
}

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

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

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

  .hero-thumbs {
    grid-template-columns: repeat(5, minmax(120px, 1fr));
    overflow-x: auto;
  }
}

@media (max-width: 850px) {
  .mobile-menu-button {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    left: 22px;
    right: 22px;
    top: 74px;
    padding: 12px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    border-radius: 22px;
    background: #fff;
    box-shadow: var(--shadow);
  }

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

  .nav-link {
    border-radius: 14px;
  }

  .brand-text small {
    display: none;
  }

  .hero,
  .hero-content {
    min-height: 760px;
  }

  .hero-content {
    padding-bottom: 260px;
  }

  .featured-grid,
  .split-section,
  .detail-grid,
  .detail-copy,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

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

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

  .detail-poster {
    max-width: 320px;
  }

  .rank-row {
    grid-template-columns: 42px 62px 1fr;
  }

  .rank-score {
    grid-column: 3;
    justify-self: start;
    font-size: 16px;
  }
}

@media (max-width: 560px) {
  .nav-wrap {
    height: 66px;
    padding: 0 16px;
  }

  .brand-icon {
    width: 38px;
    height: 38px;
  }

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

  .hero,
  .hero-content {
    min-height: 700px;
  }

  .hero-content {
    padding: 70px 16px 250px;
  }

  .hero-copy {
    font-size: 16px;
  }

  .hero-panel {
    width: calc(100% - 24px);
    bottom: 14px;
  }

  .hero-pills,
  .hero-thumbs {
    border-radius: 20px;
    padding: 12px;
  }

  .hero-thumbs {
    grid-template-columns: repeat(5, 180px);
  }

  .content-section,
  .related-strip,
  .category-overview-list {
    padding-left: 14px;
    padding-right: 14px;
  }

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

  .page-hero {
    margin-left: 14px;
    margin-right: 14px;
    padding: 42px 20px;
    border-radius: 26px;
  }

  .category-overview-head {
    flex-direction: column;
  }

  .detail-wrap {
    padding-left: 14px;
    padding-right: 14px;
  }
}
