:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-strong: #f1f5f9;
  --text: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --blue: #2563eb;
  --cyan: #06b6d4;
  --orange: #f97316;
  --green: #16a34a;
  --pink: #ec4899;
  --violet: #7c3aed;
  --shadow: 0 16px 38px rgba(15, 23, 42, 0.12);
  --soft-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  --radius: 20px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 18px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.brand-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #fff;
  font-size: 15px;
  box-shadow: 0 12px 22px rgba(37, 99, 235, 0.25);
}

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

.nav-link {
  position: relative;
  padding: 8px 0;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

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

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.header-search {
  display: flex;
  align-items: center;
  width: min(320px, 28vw);
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}

.header-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 10px 14px;
}

.header-search button {
  border: 0;
  color: #fff;
  padding: 10px 16px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  cursor: pointer;
}

.mobile-menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: var(--surface-strong);
  cursor: pointer;
}

.mobile-menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--text);
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 0 16px 16px;
  background: #fff;
}

.mobile-nav a {
  border-radius: 12px;
  padding: 12px;
  background: var(--surface-strong);
  color: #334155;
  font-weight: 800;
}

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

.hero {
  position: relative;
  overflow: hidden;
  background: #020617;
}

.hero-viewport {
  position: relative;
  min-height: 610px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: center;
  gap: 56px;
  padding: 74px max(32px, calc((100vw - 1180px) / 2)) 82px;
  background-position: center;
  background-size: cover;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  transition: opacity 0.6s ease, transform 0.8s ease;
}

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

.hero-copy {
  color: #fff;
  max-width: 760px;
  text-shadow: 0 2px 18px rgba(2, 6, 23, 0.36);
}

.eyebrow {
  margin: 0 0 12px;
  color: #67e8f9;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1,
.detail-info h1 {
  margin: 0;
  font-size: clamp(36px, 5vw, 72px);
  line-height: 1.04;
  font-weight: 950;
  letter-spacing: -0.06em;
}

.hero-summary {
  margin: 22px 0 0;
  max-width: 680px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

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

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

.hero-tags span,
.detail-tags a,
.tag-list span {
  border-radius: 999px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  backdrop-filter: blur(12px);
}

.tag-list span {
  background: #eff6ff;
  color: #2563eb;
}

.detail-tags a {
  background: rgba(37, 99, 235, 0.12);
  color: #dbeafe;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #fff;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  box-shadow: 0 18px 32px rgba(37, 99, 235, 0.28);
}

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

.button-light {
  color: var(--blue);
  background: #fff;
}

.hero-poster {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 28px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
  transform: rotate(2deg);
}

.hero-poster::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
  pointer-events: none;
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  background: linear-gradient(135deg, #dbeafe, #cffafe);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  font-size: 36px;
  line-height: 1;
  transform: translateY(-50%);
  backdrop-filter: blur(12px);
  cursor: pointer;
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

.hero-dots button {
  width: 11px;
  height: 11px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dots button.is-active {
  width: 30px;
  background: #fff;
}

.home-search-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
  gap: 22px;
  align-items: center;
  margin-top: -42px;
  padding: 26px;
  position: relative;
  z-index: 8;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow);
}

.home-search-band h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.2;
}

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

.home-search-band form {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}

.home-search-band input {
  width: 100%;
  border: 0;
  outline: 0;
  padding: 14px 18px;
}

.home-search-band button {
  border: 0;
  color: #fff;
  padding: 0 22px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  font-weight: 900;
  cursor: pointer;
}

.section-block {
  padding: 62px 0;
}

.soft-section {
  background: linear-gradient(135deg, #eff6ff, #ecfeff);
}

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

.section-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--soft-shadow);
  font-size: 27px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.1;
  font-weight: 950;
  letter-spacing: -0.04em;
}

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

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

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

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

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

.extra-gap {
  margin-top: 24px;
}

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  border-color: rgba(37, 99, 235, 0.32);
  box-shadow: var(--shadow);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, #dbeafe, #ecfeff);
}

.poster-link img {
  width: 100%;
  aspect-ratio: 16 / 22;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.card-badge,
.card-rank {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  backdrop-filter: blur(12px);
}

.card-badge {
  left: 12px;
  top: 12px;
  padding: 6px 10px;
  background: rgba(37, 99, 235, 0.82);
}

.card-rank {
  right: 12px;
  top: 12px;
  padding: 6px 10px;
  background: rgba(249, 115, 22, 0.9);
}

.card-body {
  padding: 16px;
}

.card-body h3 {
  margin: 0;
  min-height: 3.2em;
  font-size: 18px;
  line-height: 1.38;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.card-body h3 a:hover {
  color: var(--blue);
}

.card-meta,
.card-line {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.card-line {
  min-height: 3.4em;
}

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

.movie-card.large {
  display: grid;
  grid-template-columns: 44% 1fr;
}

.movie-card.large .poster-link img {
  height: 100%;
  aspect-ratio: auto;
}

.movie-card.large .card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 270px;
  padding: 24px;
}

.movie-card.large .card-body h3 {
  font-size: 26px;
}

.scroll-row {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding: 6px 4px 18px;
  scroll-snap-type: x proximity;
}

.scroll-item {
  width: 286px;
  flex: 0 0 auto;
  scroll-snap-align: start;
}

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

.category-tile {
  position: relative;
  min-height: 188px;
  overflow: hidden;
  border-radius: 24px;
  padding: 24px;
  color: #fff;
  box-shadow: var(--soft-shadow);
  isolation: isolate;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: var(--shadow);
}

.category-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.36), rgba(15, 23, 42, 0.08));
}

.category-tile img {
  position: absolute;
  right: -18px;
  bottom: -32px;
  z-index: -2;
  width: 150px;
  height: 210px;
  object-fit: cover;
  border-radius: 18px;
  opacity: 0.38;
  transform: rotate(9deg);
}

.category-tile span {
  display: block;
  font-size: 24px;
  font-weight: 950;
}

.category-tile strong {
  display: block;
  max-width: 210px;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.88);
}

.category-tile small {
  display: inline-flex;
  margin-top: 22px;
  border-radius: 999px;
  padding: 7px 13px;
  background: rgba(255, 255, 255, 0.18);
  font-weight: 900;
}

.tone-blue {
  background: linear-gradient(135deg, #2563eb, #06b6d4);
}

.tone-cyan {
  background: linear-gradient(135deg, #0891b2, #22d3ee);
}

.tone-indigo {
  background: linear-gradient(135deg, #4f46e5, #0ea5e9);
}

.tone-violet {
  background: linear-gradient(135deg, #7c3aed, #c084fc);
}

.tone-orange {
  background: linear-gradient(135deg, #ea580c, #f97316);
}

.tone-pink {
  background: linear-gradient(135deg, #db2777, #f472b6);
}

.tone-green {
  background: linear-gradient(135deg, #16a34a, #22c55e);
}

.tone-slate {
  background: linear-gradient(135deg, #0f172a, #475569);
}

.rank-band {
  background: #fff;
  padding: 64px 0;
}

.rank-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 32px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: auto 74px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px;
  background: #fff;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.04);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.rank-row:hover {
  transform: translateX(4px);
  border-color: rgba(37, 99, 235, 0.34);
}

.small-rank {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), #facc15);
  font-weight: 950;
}

.rank-thumb img {
  width: 74px;
  height: 98px;
  border-radius: 12px;
  object-fit: cover;
  background: linear-gradient(135deg, #dbeafe, #cffafe);
}

.rank-row h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.3;
  font-weight: 900;
}

.rank-row p,
.rank-row span {
  display: block;
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.rank-more {
  margin-top: 22px;
}

.recommend-panel {
  border-radius: 24px;
  padding: 24px;
  background: linear-gradient(135deg, #eff6ff, #ecfeff);
}

.recommend-panel h2 {
  margin: 0 0 16px;
  font-size: 26px;
}

.cta-section {
  padding: 70px 0;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
}

.cta-inner {
  text-align: center;
}

.cta-inner h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.15;
}

.cta-inner p {
  max-width: 720px;
  margin: 16px auto 26px;
  color: rgba(255, 255, 255, 0.86);
}

.page-hero {
  padding: 78px 0;
  color: #fff;
  background-color: #0f172a;
  background-position: center;
  background-size: cover;
}

.mini-hero {
  background: radial-gradient(circle at top left, rgba(6, 182, 212, 0.36), transparent 36%), linear-gradient(135deg, #0f172a, #1e293b);
}

.page-hero p {
  max-width: 760px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

.category-preview-stack {
  display: grid;
  gap: 42px;
}

.category-preview {
  padding-bottom: 42px;
  border-bottom: 1px solid var(--line);
}

.preview-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

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

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

.preview-head a {
  color: var(--blue);
  font-weight: 900;
}

.filter-panel {
  margin-bottom: 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px;
  background: #fff;
  box-shadow: var(--soft-shadow);
}

.filter-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 14px;
}

.filter-grid label {
  display: grid;
  gap: 6px;
  color: #334155;
  font-size: 14px;
  font-weight: 900;
}

.filter-grid input,
.filter-grid select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: 0;
  padding: 11px 12px;
  background: #fff;
  color: var(--text);
}

.filter-grid input:focus,
.filter-grid select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.filter-status {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.detail-hero {
  color: #fff;
  background-position: center;
  background-size: cover;
}

.detail-hero-inner {
  padding: 46px 0 56px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

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

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

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

.detail-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  background: linear-gradient(135deg, #dbeafe, #cffafe);
}

.detail-one-line {
  margin: 18px 0 0;
  max-width: 780px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
}

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

.meta-list div {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
}

.meta-list dt {
  color: rgba(255, 255, 255, 0.64);
  font-size: 12px;
}

.meta-list dd {
  margin: 4px 0 0;
  font-weight: 900;
}

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

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #020617;
  box-shadow: var(--shadow);
}

.movie-video {
  width: 100%;
  min-height: 520px;
  max-height: 72vh;
  background: #020617;
  object-fit: contain;
}

.player-start {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 12px;
  border: 0;
  color: #fff;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.24), rgba(2, 6, 23, 0.56));
  cursor: pointer;
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

.player-start.is-hidden {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.play-triangle {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  margin: 0 auto;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 18px 38px rgba(37, 99, 235, 0.34);
  font-size: 34px;
}

.player-start strong {
  font-size: 18px;
}

.detail-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  padding: 34px 0 18px;
}

.content-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 26px;
  background: #fff;
  box-shadow: var(--soft-shadow);
}

.content-card h2 {
  margin: 0 0 12px;
  font-size: 26px;
}

.content-card p {
  margin: 0;
  color: #334155;
  white-space: pre-line;
}

.detail-switcher {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.detail-switcher a {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px 18px;
  background: #fff;
  color: var(--blue);
  font-weight: 900;
}

.site-footer {
  color: #cbd5e1;
  background: #0f172a;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 32px;
  padding: 54px 0;
}

.footer-brand {
  margin-bottom: 14px;
  color: #fff;
  -webkit-text-fill-color: transparent;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 18px;
}

.site-footer p {
  margin: 0;
}

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

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

.keyword-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.keyword-cloud a {
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.08);
}

[data-movie-card].is-hidden {
  display: none;
}

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

  .header-search {
    width: min(420px, 44vw);
  }

  .mobile-menu-button {
    display: block;
  }

  .hero-slide {
    grid-template-columns: minmax(0, 1fr) 250px;
  }

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

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

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

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

  .header-search {
    display: none;
  }

  .brand {
    font-size: 20px;
  }

  .hero-viewport {
    min-height: 680px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 28px;
    padding: 52px 24px 78px;
  }

  .hero-poster {
    width: min(230px, 70vw);
    justify-self: start;
  }

  .hero-arrow {
    display: none;
  }

  .home-search-band {
    grid-template-columns: 1fr;
    margin-top: 0;
    border-radius: 0;
    width: 100%;
  }

  .four-cols,
  .three-cols,
  .two-cols,
  .featured-grid,
  .detail-content,
  .detail-switcher,
  .rank-layout,
  .filter-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .movie-card.large {
    display: block;
  }

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

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

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

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

  .movie-video {
    min-height: 300px;
  }

  .preview-head {
    display: grid;
  }
}

@media (max-width: 520px) {
  .site-container {
    width: min(100% - 24px, 1180px);
  }

  .mobile-nav {
    grid-template-columns: 1fr;
  }

  .hero h1,
  .page-hero h1,
  .detail-info h1 {
    font-size: 34px;
  }

  .hero-summary,
  .page-hero p,
  .detail-one-line {
    font-size: 16px;
  }

  .rank-row {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .rank-thumb {
    display: none;
  }

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