:root {
  --sky-50: #f0f9ff;
  --sky-100: #e0f2fe;
  --sky-400: #38bdf8;
  --sky-500: #0ea5e9;
  --sky-600: #0284c7;
  --cyan-400: #22d3ee;
  --blue-500: #3b82f6;
  --amber-500: #f59e0b;
  --rose-500: #f43f5e;
  --purple-500: #a855f7;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-900: #111827;
  --white: #ffffff;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 8px 22px rgba(15, 23, 42, 0.10);
  --shadow-xl: 0 24px 55px rgba(15, 23, 42, 0.18);
  --radius-lg: 18px;
  --radius-xl: 26px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--gray-900);
  background: linear-gradient(180deg, var(--sky-50), #ffffff 420px);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(14px);
}

.header-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gray-900);
  font-size: 20px;
  font-weight: 800;
  white-space: nowrap;
}

.brand-icon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--sky-500), var(--cyan-400));
  box-shadow: 0 10px 24px rgba(14, 165, 233, 0.28);
}

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

.main-nav a {
  color: var(--gray-600);
  font-size: 15px;
  font-weight: 650;
  transition: color 0.2s ease;
}

.main-nav a:hover {
  color: var(--sky-600);
}

.header-search {
  display: flex;
  align-items: center;
  min-width: 270px;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  overflow: hidden;
  background: var(--white);
}

.header-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 10px 14px;
  color: var(--gray-700);
}

.header-search button {
  border: 0;
  padding: 10px 16px;
  color: var(--white);
  background: var(--sky-500);
  font-weight: 700;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 12px;
  color: var(--gray-700);
  background: var(--gray-100);
}

.hero {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(120deg, #38bdf8 0%, #22d3ee 45%, #60a5fa 100%);
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image:
    radial-gradient(circle at 25px 25px, rgba(255, 255, 255, 0.48) 0 2px, transparent 3px),
    radial-gradient(circle at 80px 80px, rgba(255, 255, 255, 0.32) 0 3px, transparent 4px);
  background-size: 110px 110px;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -30% -10%;
  height: 45%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.30), transparent 60%);
}

.hero-shell {
  position: relative;
  z-index: 2;
  min-height: 600px;
  display: flex;
  align-items: center;
}

.hero-slider {
  position: relative;
  width: 100%;
}

.hero-slide {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 54px;
  min-height: 520px;
}

.hero-slide.is-active {
  display: flex;
}

.hero-copy {
  max-width: 670px;
}

.hero-kicker,
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 6px 14px;
  border-radius: 999px;
  color: var(--sky-600);
  background: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.hero h1 {
  margin: 0 0 22px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.hero p {
  margin: 0 0 32px;
  max-width: 680px;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(18px, 2.4vw, 26px);
}

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

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

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

.btn-light {
  color: var(--sky-600);
  background: var(--white);
  box-shadow: 0 16px 36px rgba(2, 132, 199, 0.24);
}

.btn-ghost {
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
}

.hero-poster {
  position: relative;
  flex: 0 0 min(360px, 34vw);
  aspect-ratio: 3 / 4;
  border: 10px solid rgba(255, 255, 255, 0.26);
  border-radius: 34px;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  transform: rotate(2deg);
}

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

.hero-poster-label {
  position: absolute;
  left: 18px;
  bottom: 18px;
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(17, 24, 39, 0.72);
  font-size: 13px;
  font-weight: 800;
}

.hero-dots {
  position: absolute;
  left: 0;
  bottom: 10px;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 11px;
  height: 11px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.46);
}

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

.section {
  padding: 76px 0;
}

.section-warm {
  background: linear-gradient(90deg, #fff7ed, #fffbeb);
}

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

.section-soft {
  background: linear-gradient(90deg, #faf5ff, #fdf2f8);
}

.section-heading,
.center-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 32px;
}

.center-heading {
  display: block;
  text-align: center;
}

.section-heading h2,
.center-heading h2,
.tag-cloud-block h2 {
  margin: 0;
  color: var(--gray-900);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.section-heading .section-eyebrow,
.center-heading .section-eyebrow,
.tag-cloud-block .section-eyebrow,
.page-hero .section-eyebrow {
  color: var(--sky-600);
  background: var(--sky-100);
}

.text-link {
  color: var(--sky-600);
  font-weight: 800;
}

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

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

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

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

.movie-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.42s ease;
}

.movie-card:hover .movie-cover,
.rank-card:hover .movie-cover {
  transform: scale(1.08);
}

.cover-frame {
  position: relative;
  background: linear-gradient(135deg, #dff6ff, #e0e7ff);
}

.cover-frame.is-missing::before {
  content: "影视封面";
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  color: var(--sky-600);
  font-weight: 900;
  letter-spacing: 0.2em;
  background:
    radial-gradient(circle at 30% 20%, rgba(14, 165, 233, 0.18), transparent 30%),
    linear-gradient(135deg, #e0f2fe, #dbeafe);
}

.cover-frame.is-missing img {
  opacity: 0;
}

.badge,
.year-badge {
  position: absolute;
  z-index: 2;
  padding: 5px 8px;
  border-radius: 8px;
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
  background: rgba(14, 165, 233, 0.92);
}

.badge-left {
  top: 10px;
  left: 10px;
}

.badge-right {
  top: 10px;
  right: 10px;
  background: rgba(168, 85, 247, 0.92);
}

.year-badge {
  left: 10px;
  bottom: 10px;
  background: rgba(15, 23, 42, 0.72);
}

.poster-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  opacity: 0;
  background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.64));
  transition: opacity 0.24s ease;
}

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

.play-circle,
.play-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  color: var(--sky-600);
  background: rgba(255, 255, 255, 0.92);
  font-size: 24px;
  font-weight: 900;
}

.movie-card-body {
  padding: 16px;
}

.movie-card h3,
.movie-list-body h3,
.rank-info h3 {
  margin: 0 0 9px;
  color: var(--gray-900);
  font-size: 18px;
  line-height: 1.35;
}

.movie-card h3 a:hover,
.movie-list-body h3 a:hover {
  color: var(--sky-600);
}

.movie-card p,
.movie-list-body p {
  display: -webkit-box;
  min-height: 44px;
  margin: 0 0 12px;
  overflow: hidden;
  color: var(--gray-600);
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.genre-line {
  overflow: hidden;
  color: var(--gray-500);
  font-size: 13px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

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

.movie-card-list {
  display: grid;
  grid-template-columns: 124px 1fr;
  gap: 16px;
  padding: 12px;
}

.movie-card-list:hover {
  transform: translateY(-2px);
}

.movie-list-cover {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 14px;
}

.play-mark {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 40px;
  height: 40px;
  transform: translate(-50%, -50%);
  font-size: 18px;
}

.movie-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.movie-meta-row span {
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--sky-600);
  background: var(--sky-50);
  font-size: 12px;
  font-weight: 800;
}

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

.category-tile {
  display: flex;
  min-height: 148px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 24px;
  color: var(--white);
  background: linear-gradient(135deg, var(--sky-400), var(--blue-500));
  box-shadow: var(--shadow-md);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.category-tile:nth-child(2n) {
  background: linear-gradient(135deg, #fb923c, #f43f5e);
}

.category-tile:nth-child(3n) {
  background: linear-gradient(135deg, #a78bfa, #ec4899);
}

.category-tile:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--shadow-xl);
}

.category-tile span {
  font-size: 34px;
}

.category-tile strong {
  font-size: 20px;
}

.category-tile em {
  font-style: normal;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 800;
}

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

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

.rank-card {
  position: relative;
  display: grid;
  grid-template-columns: 58px 86px 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.rank-number {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-500), var(--rose-500));
  font-size: 20px;
  font-weight: 900;
}

.rank-thumb {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 12px;
}

.rank-info h3 {
  margin-bottom: 5px;
}

.rank-info p,
.rank-info span {
  display: block;
  margin: 0;
  color: var(--gray-500);
  font-size: 13px;
}

.tag-cloud-block {
  display: grid;
  grid-template-columns: 0.9fr 1.6fr;
  gap: 36px;
  align-items: start;
}

.tag-cloud-block p {
  color: var(--gray-600);
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-cloud a,
.tag-row a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--sky-600);
  background: var(--white);
  border: 1px solid rgba(14, 165, 233, 0.16);
  font-size: 14px;
  font-weight: 800;
}

.page-hero {
  padding: 74px 0 66px;
  color: var(--white);
  background:
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.32), transparent 30%),
    linear-gradient(120deg, var(--sky-500), var(--cyan-400), var(--blue-500));
}

.page-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

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

.hero-icon {
  display: block;
  margin-bottom: 10px;
  font-size: 42px;
}

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

.category-panel {
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.category-panel-head {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 24px;
  background: linear-gradient(135deg, var(--sky-50), #ffffff);
}

.category-panel-head span {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: var(--white);
  font-size: 30px;
  box-shadow: var(--shadow-sm);
}

.category-panel h2 {
  margin: 0 0 4px;
  font-size: 24px;
}

.category-panel p {
  margin: 0;
  color: var(--gray-600);
}

.category-panel strong {
  color: var(--sky-600);
  font-size: 18px;
}

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

.category-samples a {
  overflow: hidden;
  color: var(--gray-600);
  font-weight: 650;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.category-samples a:hover {
  color: var(--sky-600);
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(150px, 0.7fr)) auto;
  gap: 14px;
  align-items: end;
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
}

.filter-bar label {
  display: grid;
  gap: 6px;
  color: var(--gray-600);
  font-size: 13px;
  font-weight: 800;
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  outline: 0;
  padding: 11px 12px;
  color: var(--gray-700);
  background: var(--white);
}

.filter-bar input:focus,
.filter-bar select:focus {
  border-color: rgba(14, 165, 233, 0.8);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.12);
}

.filter-bar button {
  min-height: 46px;
  border: 0;
  border-radius: 14px;
  padding: 0 16px;
  color: var(--white);
  background: var(--sky-500);
  font-weight: 900;
}

.result-count {
  margin: 0 0 22px;
  color: var(--gray-600);
  font-weight: 800;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 24px 0;
  color: var(--gray-600);
  font-size: 14px;
}

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

.detail-shell {
  padding-bottom: 72px;
}

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

.detail-main,
.detail-side {
  min-width: 0;
}

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

.movie-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 12px;
  border: 0;
  color: var(--white);
  background:
    radial-gradient(circle at center, rgba(14, 165, 233, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(2, 6, 23, 0.25), rgba(2, 6, 23, 0.78));
  font-size: 18px;
  font-weight: 900;
}

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

.player-play-icon {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  margin: 0 auto;
  border-radius: 999px;
  color: var(--sky-600);
  background: rgba(255, 255, 255, 0.94);
  font-size: 34px;
  box-shadow: 0 24px 50px rgba(2, 6, 23, 0.28);
}

.player-status {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  z-index: 3;
  padding: 9px 12px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(2, 6, 23, 0.62);
  font-size: 13px;
  text-align: center;
  backdrop-filter: blur(8px);
}

.detail-card,
.side-info {
  margin-top: 20px;
  padding: 24px;
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.detail-card h1 {
  margin: 0 0 12px;
  font-size: clamp(30px, 4.4vw, 46px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.detail-meta span {
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--sky-600);
  background: var(--sky-50);
  font-size: 13px;
  font-weight: 800;
}

.one-line {
  margin: 0 0 18px;
  color: var(--gray-700);
  font-size: 18px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.prose-block h2,
.side-info h2 {
  margin: 0 0 12px;
  font-size: 24px;
}

.prose-block p {
  margin: 0;
  color: var(--gray-700);
  font-size: 16px;
  line-height: 1.9;
}

.side-poster {
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: 26px;
  box-shadow: var(--shadow-xl);
}

.side-info dl {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 8px 12px;
  margin: 0;
}

.side-info dt {
  color: var(--gray-500);
  font-weight: 800;
}

.side-info dd {
  margin: 0;
  color: var(--gray-900);
}

.site-footer {
  color: var(--gray-600);
  border-top: 1px solid rgba(226, 232, 240, 0.92);
  background: #ffffff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 1fr;
  gap: 36px;
  padding: 54px 0;
}

.footer-logo {
  margin-bottom: 12px;
  color: var(--gray-900);
  font-size: 22px;
  font-weight: 900;
}

.site-footer h3 {
  margin: 0 0 12px;
  color: var(--gray-900);
  font-size: 18px;
}

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

.site-footer a:hover {
  color: var(--sky-600);
}

.footer-bottom {
  padding: 18px;
  border-top: 1px solid var(--gray-200);
  text-align: center;
  font-size: 14px;
}

.is-hidden-by-filter {
  display: none !important;
}

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

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

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

@media (max-width: 900px) {
  .header-inner {
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .main-nav {
    order: 3;
    width: 100%;
    justify-content: center;
    gap: 16px;
  }

  .header-search {
    min-width: 240px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    display: none;
    gap: 24px;
    padding: 40px 0 70px;
  }

  .hero-slide.is-active {
    display: grid;
  }

  .hero-poster {
    width: min(280px, 70vw);
    flex-basis: auto;
    justify-self: center;
  }

  .movie-grid-3,
  .movie-grid-4,
  .movie-grid-5,
  .movie-grid-6,
  .ranking-grid,
  .ranking-list,
  .category-panel-grid,
  .tag-cloud-block,
  .footer-grid,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .detail-side {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 18px;
  }

  .side-info {
    margin-top: 0;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 22px, var(--container));
  }

  .brand {
    font-size: 18px;
  }

  .header-search,
  .main-nav {
    display: none;
  }

  .nav-toggle {
    display: inline-grid;
    place-items: center;
    margin-left: auto;
  }

  .site-header.is-open .main-nav,
  .site-header.is-open .header-search {
    display: flex;
  }

  .site-header.is-open .main-nav {
    flex-wrap: wrap;
  }

  .site-header.is-open .header-search {
    width: 100%;
  }

  .hero,
  .hero-shell {
    min-height: auto;
  }

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

  .hero-copy {
    text-align: left;
  }

  .hero-actions {
    display: grid;
  }

  .section {
    padding: 50px 0;
  }

  .section-heading {
    display: block;
  }

  .movie-grid-3,
  .movie-grid-4,
  .movie-grid-5,
  .movie-grid-6,
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .movie-card-body {
    padding: 12px;
  }

  .movie-card h3 {
    font-size: 15px;
  }

  .movie-card p {
    font-size: 13px;
  }

  .movie-card-list {
    grid-template-columns: 92px 1fr;
  }

  .rank-card {
    grid-template-columns: 46px 70px 1fr;
  }

  .filter-bar {
    grid-template-columns: 1fr;
  }

  .category-panel-head {
    grid-template-columns: 50px 1fr;
  }

  .category-panel-head strong {
    grid-column: 1 / -1;
  }

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

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

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