:root {
  --mist-50: #f8fafc;
  --mist-100: #f1f5f9;
  --mist-200: #e2e8f0;
  --mist-300: #cbd5e1;
  --mist-400: #94a3b8;
  --mist-500: #64748b;
  --mist-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --red-500: #ef4444;
  --red-600: #dc2626;
  --orange-500: #f97316;
  --white: #ffffff;
  --shadow-soft: 0 14px 45px rgba(15, 23, 42, 0.08);
  --shadow-strong: 0 22px 70px rgba(15, 23, 42, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--slate-800);
  background: var(--mist-50);
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
  transition: box-shadow 0.25s ease, backdrop-filter 0.25s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(14px);
}

.header-inner {
  max-width: 1240px;
  height: 66px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.brand-mark {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: var(--white);
  background: linear-gradient(135deg, var(--red-500), var(--orange-500));
  box-shadow: 0 12px 24px rgba(239, 68, 68, 0.25);
  transform: translateZ(0);
  transition: transform 0.25s ease;
}

.brand:hover .brand-mark {
  transform: scale(1.08);
}

.brand-text {
  font-size: 21px;
  letter-spacing: -0.03em;
  background: linear-gradient(90deg, var(--red-600), var(--orange-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-link {
  font-size: 14px;
  font-weight: 700;
  color: var(--slate-700);
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-nav-link.is-active {
  color: var(--red-600);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: var(--mist-100);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  background: var(--slate-700);
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--mist-200);
  background: var(--white);
  padding: 12px 22px 18px;
}

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

.mobile-nav-link {
  padding: 12px 14px;
  border-radius: 12px;
  color: var(--slate-700);
  font-weight: 700;
}

.mobile-nav-link:hover {
  background: var(--mist-100);
}

.site-main {
  padding-top: 86px;
  min-height: 70vh;
}

.hero,
.quick-search,
.content-section,
.page-hero,
.search-page,
.detail-hero,
.player-section {
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 22px;
  padding-right: 22px;
}

.hero-stage {
  position: relative;
  height: 600px;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: var(--shadow-strong);
  background: var(--slate-900);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.55s ease;
}

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

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.08));
}

.hero-content {
  position: absolute;
  top: 50%;
  left: clamp(24px, 6vw, 72px);
  width: min(620px, calc(100% - 48px));
  transform: translateY(-50%);
  color: var(--white);
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 16px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(239, 68, 68, 0.92);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
  backdrop-filter: blur(10px);
}

.hero-content h1 {
  margin: 20px 0 16px;
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.hero-content p {
  margin: 0 0 20px;
  font-size: 18px;
  line-height: 1.75;
  color: #f1f5f9;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-meta,
.hero-tags,
.detail-meta,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-meta span,
.hero-tags span,
.detail-meta span,
.tag-list span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

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

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

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

.primary-btn {
  color: var(--white);
  background: var(--red-500);
  box-shadow: 0 14px 28px rgba(239, 68, 68, 0.25);
}

.primary-btn:hover {
  background: var(--red-600);
  transform: translateY(-2px) scale(1.02);
}

.ghost-btn {
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
}

.ghost-btn:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: translateY(-2px);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-50%);
  backdrop-filter: blur(10px);
  font-size: 34px;
  line-height: 1;
  transition: background 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.32);
}

.hero-prev {
  left: 18px;
}

.hero-next {
  right: 18px;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 26px;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

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

.hero-dot.is-active {
  width: 34px;
  background: var(--white);
}

.quick-search {
  margin-top: 28px;
}

.quick-search-card,
.filter-panel,
.category-overview-card,
.detail-content,
.player-head {
  background: var(--white);
  border: 1px solid var(--mist-200);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
}

.quick-search-card {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(280px, 1.2fr);
  gap: 22px;
  align-items: center;
  padding: 24px;
}

.quick-search-card .eyebrow,
.compact-page-hero .eyebrow,
.detail-info .eyebrow {
  color: var(--red-600);
  background: #fee2e2;
}

.quick-search-card h2 {
  margin: 10px 0 0;
  font-size: clamp(22px, 3vw, 32px);
  letter-spacing: -0.04em;
}

.quick-search-form,
.filter-panel {
  display: grid;
  grid-template-columns: 1fr 170px 120px;
  gap: 12px;
}

.quick-search-form input,
.quick-search-form select,
.quick-search-form button,
.filter-panel input,
.filter-panel select,
.filter-panel button {
  width: 100%;
  min-height: 48px;
  border-radius: 14px;
  border: 1px solid var(--mist-200);
  padding: 0 14px;
  background: var(--white);
  color: var(--slate-800);
}

.quick-search-form button,
.filter-panel button {
  border: 0;
  color: var(--white);
  font-weight: 800;
  background: linear-gradient(135deg, var(--red-500), var(--orange-500));
}

.content-section {
  margin-top: 58px;
}

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

.section-head h2 {
  margin: 0;
  font-size: clamp(25px, 3.4vw, 34px);
  letter-spacing: -0.05em;
}

.section-head p {
  margin: 7px 0 0;
  color: var(--mist-600);
}

.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  color: var(--red-600);
  background: #fee2e2;
  font-weight: 800;
  white-space: nowrap;
}

.movie-grid,
.compact-grid,
.category-grid {
  display: grid;
  gap: 22px;
}

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

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

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

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

.movie-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--mist-200);
}

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

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.05));
  transition: opacity 0.25s ease;
}

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

.type-badge,
.rank-badge,
.play-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.type-badge {
  top: 10px;
  right: 10px;
  padding: 5px 9px;
  background: rgba(0, 0, 0, 0.64);
}

.rank-badge {
  top: 10px;
  left: 10px;
  width: 30px;
  height: 30px;
  background: linear-gradient(135deg, var(--red-500), var(--orange-500));
}

.play-chip {
  left: 50%;
  top: 50%;
  width: 60px;
  height: 60px;
  color: var(--slate-800);
  background: rgba(255, 255, 255, 0.92);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.8);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.movie-card-body {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.movie-card-body strong {
  min-height: 42px;
  color: var(--slate-800);
  font-size: 16px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.movie-card:hover .movie-card-body strong {
  color: var(--red-600);
}

.movie-line {
  min-height: 40px;
  color: var(--mist-600);
  font-size: 13px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.movie-tags span {
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--red-600);
  background: #fee2e2;
  font-size: 12px;
  font-weight: 800;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--mist-500);
  font-size: 12px;
}

.meta-row em {
  font-style: normal;
}

.rail-shell {
  position: relative;
}

.movie-rail {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 0 16px;
  scrollbar-width: none;
}

.movie-rail::-webkit-scrollbar {
  display: none;
}

.movie-rail .movie-card {
  flex: 0 0 290px;
  scroll-snap-align: start;
}

.rail-btn {
  position: absolute;
  top: 40%;
  z-index: 3;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  color: var(--slate-800);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12);
  font-size: 30px;
  line-height: 1;
}

.rail-left {
  left: -12px;
}

.rail-right {
  right: -12px;
}

.category-tile {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  border-radius: 22px;
  color: var(--white);
  background: var(--slate-900);
  box-shadow: var(--shadow-soft);
}

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

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

.category-tile-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.12));
}

.category-tile strong,
.category-tile em {
  position: absolute;
  left: 18px;
  right: 18px;
}

.category-tile strong {
  bottom: 62px;
  font-size: 22px;
}

.category-tile em {
  bottom: 18px;
  color: #e2e8f0;
  font-size: 13px;
  line-height: 1.5;
  font-style: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ranking-list,
.wide-rank-list {
  display: grid;
  gap: 12px;
}

.rank-row,
.wide-rank-row {
  display: grid;
  align-items: center;
  gap: 14px;
  background: var(--white);
  border: 1px solid var(--mist-200);
  border-radius: 18px;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-row {
  grid-template-columns: 44px 68px 1fr;
  padding: 10px 14px;
}

.wide-rank-row {
  grid-template-columns: 44px 74px 1fr minmax(220px, 0.7fr);
  padding: 12px 16px;
}

.rank-row:hover,
.wide-rank-row:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.09);
}

.rank-row img,
.wide-rank-row img {
  width: 68px;
  height: 88px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--mist-200);
}

.wide-rank-row img {
  width: 74px;
  height: 96px;
}

.rank-no,
.wide-rank-row > span {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--white);
  background: linear-gradient(135deg, var(--red-500), var(--orange-500));
  font-weight: 900;
}

.rank-row strong,
.wide-rank-row strong {
  display: block;
  margin-bottom: 6px;
}

.rank-row em,
.wide-rank-row em {
  color: var(--mist-500);
  font-size: 13px;
  font-style: normal;
}

.page-hero,
.detail-hero {
  margin-top: 6px;
}

.compact-page-hero {
  padding-top: 54px;
  padding-bottom: 42px;
}

.compact-page-hero h1 {
  margin: 16px 0 12px;
  font-size: clamp(34px, 5vw, 54px);
  letter-spacing: -0.06em;
}

.compact-page-hero p {
  max-width: 780px;
  margin: 0;
  color: var(--mist-600);
  font-size: 17px;
  line-height: 1.8;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin-bottom: 18px;
  color: var(--mist-500);
  font-size: 14px;
}

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

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

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

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

.category-overview-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 20px;
}

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

.category-overview-head p {
  margin: 0;
  color: var(--mist-600);
}

.search-page {
  margin-top: 8px;
}

.filter-panel {
  grid-template-columns: 1.4fr repeat(4, minmax(110px, 1fr)) 110px;
  padding: 18px;
  position: sticky;
  top: 82px;
  z-index: 20;
}

.search-empty {
  display: none;
  margin: 28px 0;
  padding: 24px;
  border-radius: 18px;
  text-align: center;
  color: var(--mist-600);
  background: var(--white);
  border: 1px solid var(--mist-200);
}

.search-empty.is-visible {
  display: block;
}

.search-page .movie-grid {
  margin-top: 28px;
}

.detail-grid {
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 34px;
  align-items: center;
  padding: 30px;
  border-radius: 30px;
  color: var(--white);
  background: radial-gradient(circle at 12% 12%, rgba(239, 68, 68, 0.32), transparent 32%), linear-gradient(135deg, #111827, #0f172a 58%, #1e293b);
  box-shadow: var(--shadow-strong);
}

.detail-poster {
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  background: var(--mist-200);
}

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

.detail-info h1 {
  margin: 18px 0 14px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.06em;
}

.detail-line {
  max-width: 780px;
  color: #e2e8f0;
  font-size: 18px;
  line-height: 1.8;
}

.detail-meta span,
.tag-list span {
  color: var(--slate-800);
  background: var(--white);
}

.tag-list {
  margin: 16px 0 26px;
}

.player-section {
  margin-top: 38px;
}

.player-head {
  padding: 22px;
  margin-bottom: 16px;
}

.player-head h2 {
  margin: 0 0 8px;
  font-size: 28px;
}

.player-head p {
  margin: 0;
  color: var(--mist-600);
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #020617;
  box-shadow: var(--shadow-strong);
  aspect-ratio: 16 / 9;
}

.site-video {
  width: 100%;
  height: 100%;
  display: block;
  background: #020617;
  object-fit: contain;
}

.play-overlay {
  position: absolute;
  inset: 0;
  border: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.62), rgba(2, 6, 23, 0.1));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-overlay span {
  width: 82px;
  height: 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--red-600);
  background: rgba(255, 255, 255, 0.94);
  font-size: 30px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.25);
}

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

.video-shell.is-playing .play-overlay {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.player-status {
  position: absolute;
  left: 18px;
  bottom: 16px;
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.55);
  font-size: 13px;
  font-weight: 800;
  pointer-events: none;
}

.detail-content {
  padding: 28px;
}

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

.detail-content h2 + p {
  margin-top: 0;
}

.detail-content p {
  color: var(--mist-600);
  font-size: 17px;
  line-height: 1.95;
}

.site-footer {
  margin-top: 70px;
  color: var(--mist-300);
  background: var(--slate-900);
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 44px 22px 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 0.7fr;
  gap: 34px;
}

.footer-brand {
  color: var(--white);
  font-size: 21px;
}

.footer-brand-block p {
  max-width: 520px;
  color: var(--mist-400);
  line-height: 1.8;
}

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

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.site-footer a {
  color: var(--mist-300);
  transition: color 0.2s ease;
}

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

.footer-bottom {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  color: var(--mist-500);
  text-align: center;
  font-size: 14px;
}

[hidden] {
  display: none !important;
}

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

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

  .filter-panel {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

  .menu-toggle {
    display: inline-flex;
  }

  .hero-stage {
    height: 520px;
    border-radius: 22px;
  }

  .quick-search-card,
  .detail-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

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

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

  .wide-rank-row {
    grid-template-columns: 38px 64px 1fr;
  }

  .wide-rank-row em {
    grid-column: 3;
  }

  .detail-grid {
    padding: 22px;
  }

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

@media (max-width: 640px) {
  .header-inner {
    padding: 0 16px;
  }

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

  .hero,
  .quick-search,
  .content-section,
  .page-hero,
  .search-page,
  .detail-hero,
  .player-section,
  .category-overview-list {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-stage {
    height: 490px;
  }

  .hero-content {
    left: 22px;
    right: 22px;
    width: auto;
  }

  .hero-arrow {
    display: none;
  }

  .section-head,
  .category-overview-head {
    display: grid;
    align-items: start;
  }

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

  .movie-rail .movie-card {
    flex-basis: 250px;
  }

  .filter-panel {
    position: static;
    grid-template-columns: 1fr;
  }

  .rank-row {
    grid-template-columns: 36px 60px 1fr;
  }

  .rank-row img {
    width: 60px;
    height: 78px;
  }

  .video-shell {
    border-radius: 18px;
  }
}
