
:root {
  --pink-50: #fdf2f8;
  --pink-100: #fce7f3;
  --pink-500: #ec4899;
  --pink-600: #db2777;
  --pink-700: #be185d;
  --purple-50: #faf5ff;
  --purple-100: #f3e8ff;
  --purple-500: #a855f7;
  --purple-600: #9333ea;
  --purple-700: #7e22ce;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --shadow-soft: 0 20px 45px rgba(190, 24, 93, 0.12);
  --shadow-card: 0 12px 32px rgba(17, 24, 39, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--gray-800);
  background: linear-gradient(180deg, var(--pink-50), #ffffff 38%, var(--purple-50));
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(253, 242, 248, 0.96), rgba(255, 255, 255, 0.96), rgba(250, 245, 255, 0.96));
  border-bottom: 1px solid rgba(244, 114, 182, 0.18);
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.08);
  backdrop-filter: blur(14px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.brand-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--pink-500), var(--purple-600));
  box-shadow: 0 10px 22px rgba(219, 39, 119, 0.28);
}

.brand-text {
  font-size: clamp(19px, 2.2vw, 26px);
  background: linear-gradient(90deg, var(--pink-600), var(--purple-600));
  -webkit-background-clip: text;
  color: transparent;
}

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

.nav-link {
  padding: 9px 12px;
  border-radius: 12px;
  color: var(--gray-700);
  font-weight: 650;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--pink-700);
  background: rgba(252, 231, 243, 0.92);
  transform: translateY(-1px);
}

.header-search,
.mobile-search,
.quick-form,
.search-page-form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input,
.mobile-search input,
.quick-form input,
.search-page-form input,
.page-filter-input,
.page-sort-select {
  border: 1px solid rgba(244, 114, 182, 0.38);
  background: #ffffff;
  color: var(--gray-800);
  outline: none;
  border-radius: 999px;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.header-search input {
  width: 190px;
  padding: 10px 14px;
}

.header-search button,
.mobile-search button,
.quick-form button,
.search-page-form button {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  color: #ffffff;
  font-weight: 700;
  background: linear-gradient(135deg, var(--pink-600), var(--purple-600));
  box-shadow: 0 10px 22px rgba(219, 39, 119, 0.22);
}

.header-search input:focus,
.mobile-search input:focus,
.quick-form input:focus,
.search-page-form input:focus,
.page-filter-input:focus,
.page-sort-select:focus {
  border-color: var(--pink-500);
  box-shadow: 0 0 0 4px rgba(244, 114, 182, 0.2);
}

.menu-toggle {
  display: none;
  border: 0;
  color: var(--pink-700);
  background: var(--pink-100);
  border-radius: 12px;
  padding: 10px 13px;
  font-size: 22px;
}

.mobile-panel {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 14px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.mobile-panel a {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  font-weight: 650;
  color: var(--gray-700);
}

.mobile-panel a:hover {
  color: var(--pink-700);
  background: var(--pink-50);
}

.mobile-search {
  margin-bottom: 10px;
}

.mobile-search input {
  flex: 1;
  min-width: 0;
  padding: 10px 14px;
}

.hero {
  position: relative;
  height: clamp(520px, 68vw, 650px);
  overflow: hidden;
  background: #111827;
}

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

.hero-slide {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}

.hero-shade {
  background:
    radial-gradient(circle at 72% 42%, rgba(168, 85, 247, 0.58), transparent 34%),
    linear-gradient(90deg, rgba(219, 39, 119, 0.93), rgba(147, 51, 234, 0.78) 48%, rgba(17, 24, 39, 0.52)),
    linear-gradient(0deg, rgba(17, 24, 39, 0.32), rgba(17, 24, 39, 0.02));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #ffffff;
}

.hero-kicker {
  width: fit-content;
  padding: 8px 14px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px);
  font-weight: 750;
}

.hero h1 {
  max-width: 780px;
  margin: 0 0 18px;
  font-size: clamp(38px, 7vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.hero p {
  max-width: 650px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(17px, 2vw, 24px);
  line-height: 1.65;
}

.hero-tags,
.tag-row,
.quick-tags,
.cta-band div,
.detail-badges,
.detail-stats,
.card-meta,
.card-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.hero-tag,
.tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-weight: 700;
}

.hero-tag {
  padding: 6px 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
}

.tag {
  padding: 5px 10px;
  color: var(--pink-700);
  background: var(--pink-50);
}

.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;
  border-radius: 999px;
  padding: 0 24px;
  font-weight: 800;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

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

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--pink-600), var(--purple-600));
  box-shadow: 0 14px 32px rgba(219, 39, 119, 0.32);
}

.btn-glass {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(14px);
}

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

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

.hero-dot.is-active {
  width: 32px;
  background: #ffffff;
}

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

.quick-search {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 24px;
  align-items: center;
  margin-top: -50px;
  padding: 28px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-soft);
  position: relative;
  z-index: 4;
}

.quick-copy h2,
.section-heading h2,
.related-box h2,
.detail-copy h1,
.detail-copy h2,
.page-hero h1 {
  margin: 0;
  color: var(--gray-800);
}

.quick-copy h2 {
  font-size: 28px;
}

.quick-copy p {
  margin: 8px 0 0;
  color: var(--gray-600);
}

.quick-form input {
  flex: 1;
  min-width: 0;
  padding: 14px 18px;
}

.quick-form button {
  padding: 14px 22px;
}

.quick-tags {
  grid-column: 1 / -1;
}

.quick-tags a,
.cta-band a,
.search-suggestions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 9px 14px;
  color: var(--pink-700);
  background: var(--pink-50);
  font-weight: 700;
}

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

.section-heading.centered {
  justify-content: center;
  text-align: center;
}

.section-heading p,
.page-hero p {
  margin: 0 0 8px;
  color: var(--pink-600);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

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

.section-heading > a,
.text-link {
  color: var(--pink-700);
  font-weight: 850;
}

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

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.08);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

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

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, var(--pink-100), var(--purple-100));
}

.poster-link img,
.wide-cover img,
.rank-cover img,
.related-card img,
.cover-card img,
.category-tile img,
.category-collage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.movie-card:hover .poster-link img,
.movie-card:hover .wide-cover img,
.rank-item:hover .rank-cover img,
.related-card:hover img,
.category-tile:hover img,
.category-overview-card:hover img {
  transform: scale(1.08);
}

.poster-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--pink-500);
  font-size: 12px;
  font-weight: 800;
}

.poster-hover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 18px;
  color: #ffffff;
  background: linear-gradient(180deg, transparent 20%, rgba(0, 0, 0, 0.82));
  opacity: 0;
  transition: opacity 0.25s ease;
}

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

.card-body {
  padding: 16px;
}

.card-body h2,
.wide-body h2,
.rank-body h2 {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.35;
}

.card-body h2 a:hover,
.wide-body h2 a:hover,
.rank-body h2 a:hover,
.related-card:hover span {
  color: var(--pink-700);
}

.card-meta,
.card-stats {
  color: var(--gray-500);
  font-size: 13px;
}

.card-stats {
  justify-content: space-between;
  margin: 10px 0;
}

.category-band {
  background: linear-gradient(90deg, var(--pink-100), var(--purple-100), var(--pink-100));
}

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

.category-tile {
  position: relative;
  display: flex;
  min-height: 180px;
  overflow: hidden;
  border-radius: 22px;
  padding: 18px;
  color: #ffffff;
  flex-direction: column;
  justify-content: flex-end;
  background: #111827;
  box-shadow: var(--shadow-card);
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.08), rgba(17, 24, 39, 0.88));
}

.category-tile img {
  position: absolute;
  inset: 0;
}

.category-tile span,
.category-tile small {
  position: relative;
  z-index: 1;
}

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

.category-tile small {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.55;
}

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

.rank-item {
  position: relative;
  display: grid;
  grid-template-columns: 112px 54px 1fr;
  gap: 18px;
  align-items: center;
  border-radius: 20px;
  padding: 12px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.08);
  overflow: hidden;
}

.rank-cover {
  height: 78px;
  overflow: hidden;
  border-radius: 14px;
  background: var(--pink-100);
}

.rank-number {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--pink-600), var(--purple-600));
}

.rank-body p,
.wide-body p {
  margin: 0 0 12px;
  color: var(--gray-600);
  line-height: 1.65;
}

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

.movie-card-wide {
  display: grid;
  grid-template-columns: 210px 1fr;
}

.wide-cover {
  min-height: 210px;
  overflow: hidden;
  background: var(--pink-100);
}

.wide-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cta-band {
  padding: 72px 20px;
  text-align: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--pink-600), var(--purple-600));
}

.cta-band h2 {
  margin: 0 0 12px;
  font-size: clamp(30px, 5vw, 46px);
}

.cta-band p {
  margin: 0 auto 24px;
  max-width: 660px;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.75;
}

.cta-band div {
  justify-content: center;
}

.cta-band a {
  color: var(--pink-700);
  background: #ffffff;
}

.page-hero {
  min-height: 280px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 52px 16px;
  color: #ffffff;
  background:
    radial-gradient(circle at 70% 10%, rgba(255, 255, 255, 0.16), transparent 30%),
    linear-gradient(135deg, var(--pink-600), var(--purple-600));
}

.page-hero h1 {
  color: #ffffff;
  font-size: clamp(34px, 6vw, 56px);
  letter-spacing: -0.04em;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.82);
}

.page-hero span {
  display: block;
  max-width: 720px;
  margin: 14px auto 0;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.75;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 22px;
  align-items: center;
  border-radius: 24px;
  padding: 18px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.08);
}

.category-collage {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  height: 160px;
  overflow: hidden;
  border-radius: 18px;
  background: var(--pink-100);
}

.category-overview-card p {
  margin: 0 0 8px;
  color: var(--pink-600);
  font-weight: 900;
}

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

.category-overview-card span {
  color: var(--gray-600);
  line-height: 1.7;
}

.filter-bar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  padding: 18px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.08);
}

.filter-bar label {
  display: grid;
  gap: 8px;
  flex: 1;
  color: var(--gray-600);
  font-weight: 750;
}

.page-filter-input,
.page-sort-select {
  width: 100%;
  padding: 12px 16px;
}

.detail-main {
  background: linear-gradient(180deg, var(--gray-50), #ffffff);
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 28px;
  padding-bottom: 14px;
  color: var(--gray-500);
}

.breadcrumb a {
  color: var(--pink-700);
  font-weight: 750;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(300px, 0.9fr);
  gap: 32px;
  align-items: start;
  padding-top: 22px;
}

.player-card,
.detail-copy,
.cover-card,
.related-box {
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 14px 36px rgba(17, 24, 39, 0.1);
}

.player-card {
  overflow: hidden;
  background: #000000;
}

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

.player-box video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000000;
  cursor: pointer;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.18), rgba(17, 24, 39, 0.58));
}

.player-overlay[hidden] {
  display: none;
}

.big-play {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--pink-600), var(--purple-600));
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.32);
  font-size: 36px;
  padding-left: 6px;
}

.player-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.78));
}

.player-controls button {
  border: 0;
  border-radius: 999px;
  padding: 9px 14px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  font-weight: 800;
}

.player-controls button:hover {
  background: var(--pink-600);
}

.player-message {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  color: #ffffff;
  text-align: center;
  background: rgba(0, 0, 0, 0.86);
  z-index: 3;
}

.detail-copy {
  margin-top: 24px;
  padding: clamp(24px, 5vw, 36px);
}

.detail-badges a,
.detail-badges span {
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--pink-700);
  background: var(--pink-50);
  font-weight: 800;
}

.detail-copy h1 {
  margin-top: 20px;
  font-size: clamp(30px, 4.8vw, 48px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.detail-one-line {
  color: var(--gray-700);
  font-size: 19px;
  line-height: 1.8;
}

.detail-stats {
  padding: 16px 0 24px;
  color: var(--gray-500);
  border-bottom: 1px solid var(--gray-200);
}

.detail-copy section {
  padding-top: 24px;
}

.detail-copy h2 {
  font-size: 22px;
  margin-bottom: 10px;
}

.detail-copy section p {
  margin: 0;
  color: var(--gray-700);
  line-height: 1.95;
}

.large-tags .tag {
  padding: 7px 12px;
}

.detail-side {
  position: sticky;
  top: 100px;
  display: grid;
  gap: 24px;
}

.cover-card {
  padding: 18px;
}

.cover-card img {
  aspect-ratio: 3 / 4;
  border-radius: 18px;
  margin-bottom: 16px;
  background: var(--pink-100);
}

.cover-card .btn {
  width: 100%;
}

.related-box {
  padding: 22px;
}

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

.related-card {
  display: grid;
  grid-template-columns: 98px 1fr;
  grid-template-rows: auto auto;
  gap: 4px 12px;
  align-items: center;
  border-radius: 16px;
  padding: 8px;
  transition: background-color 0.25s ease;
}

.related-card:hover {
  background: var(--pink-50);
}

.related-card img {
  grid-row: 1 / 3;
  height: 64px;
  border-radius: 12px;
  background: var(--pink-100);
}

.related-card span {
  font-weight: 800;
  line-height: 1.35;
}

.related-card small {
  color: var(--gray-500);
}

.search-page-form {
  max-width: 760px;
  margin: 0 auto;
}

.search-page-form input {
  flex: 1;
  min-width: 0;
  padding: 16px 20px;
  font-size: 18px;
}

.search-page-form button {
  padding: 16px 26px;
}

.search-suggestions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 34px;
}

.search-status {
  margin-bottom: 24px;
  color: var(--gray-600);
  text-align: center;
  font-size: 18px;
  font-weight: 750;
}

.site-footer {
  color: var(--gray-600);
  background: linear-gradient(135deg, var(--pink-50), var(--purple-50));
  border-top: 1px solid rgba(244, 114, 182, 0.18);
}

.footer-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 54px 0 34px;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 34px;
}

.footer-brand {
  margin-bottom: 14px;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: var(--gray-800);
  font-size: 18px;
}

.site-footer p {
  margin: 0;
  line-height: 1.8;
}

.footer-links {
  display: grid;
  gap: 9px;
}

.footer-links a:hover {
  color: var(--pink-700);
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid rgba(244, 114, 182, 0.22);
  font-size: 14px;
}

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

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

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

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

  .detail-side {
    position: static;
  }
}

@media (max-width: 820px) {
  .section-shell {
    padding: 46px 0;
  }

  .hero {
    height: 610px;
  }

  .quick-search,
  .filter-bar,
  .movie-card-wide,
  .category-overview-card {
    grid-template-columns: 1fr;
  }

  .quick-search {
    margin-top: 0;
    width: 100%;
    border-radius: 0;
  }

  .quick-form,
  .search-page-form {
    flex-direction: column;
    align-items: stretch;
  }

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

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

  .rank-cover {
    height: 68px;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

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

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

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

  .hero-actions,
  .detail-badges,
  .detail-stats {
    align-items: stretch;
    flex-direction: column;
  }

  .btn,
  .hero-actions a {
    width: 100%;
  }

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

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

  .rank-number {
    position: absolute;
    left: 16px;
    top: 16px;
  }

  .rank-body {
    grid-column: 2;
  }

  .related-card {
    grid-template-columns: 86px 1fr;
  }
}
