
:root {
  --brand: #dc2626;
  --brand-deep: #b91c1c;
  --brand-soft: #fff1f2;
  --rose: #e11d48;
  --orange: #ea580c;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: #fee2e2;
  --bg: #fff7f7;
  --panel: #ffffff;
  --shadow: 0 18px 55px rgba(185, 28, 28, 0.12);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #ffffff;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(254, 202, 202, 0.75);
  box-shadow: 0 12px 32px rgba(185, 28, 28, 0.08);
  backdrop-filter: blur(18px);
}

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

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

.logo-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--rose));
  border-radius: 14px;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(220, 38, 38, 0.28);
  transition: transform 0.28s ease;
}

.logo:hover .logo-mark {
  transform: rotate(10deg) scale(1.04);
}

.logo strong {
  display: block;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.logo small {
  display: block;
  color: var(--muted);
  margin-top: 2px;
  font-size: 12px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: #374151;
  font-weight: 700;
}

.site-nav a {
  position: relative;
  transition: color 0.22s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--brand);
}

.site-nav a.is-active::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -9px;
  left: 0;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), var(--rose));
}

.header-search {
  display: flex;
  align-items: center;
  width: min(310px, 30vw);
  padding: 4px;
  background: #fff7f7;
  border: 1px solid #fecaca;
  border-radius: 999px;
}

.header-search input {
  width: 100%;
  min-width: 0;
  padding: 9px 10px 9px 16px;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
}

.header-search button,
.icon-button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--rose));
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}

.mobile-toggle {
  display: none;
}

.mobile-panel {
  display: none;
  padding: 0 16px 18px;
  background: rgba(255, 255, 255, 0.98);
  border-top: 1px solid #fee2e2;
}

.mobile-panel.is-open {
  display: block;
}

.mobile-panel a {
  display: block;
  padding: 14px 4px;
  color: #374151;
  font-weight: 700;
  border-bottom: 1px solid #fee2e2;
}

.hero {
  position: relative;
  min-height: 720px;
  padding: 118px 0 64px;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 22%, rgba(248, 113, 113, 0.24), transparent 28%),
    radial-gradient(circle at 88% 18%, rgba(244, 63, 94, 0.18), transparent 26%),
    linear-gradient(135deg, #fff1f2 0%, #fff7ed 48%, #ffffff 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.32;
  background-image:
    linear-gradient(rgba(239, 68, 68, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(239, 68, 68, 0.12) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -140px;
  width: 460px;
  height: 460px;
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.22), rgba(251, 146, 60, 0.18));
  border-radius: 50%;
  filter: blur(10px);
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-slide {
  display: none;
  align-items: center;
  grid-template-columns: minmax(0, 1.02fr) minmax(310px, 0.78fr);
  gap: clamp(32px, 6vw, 80px);
}

.hero-slide.is-active {
  display: grid;
  animation: fadeUp 0.6s ease both;
}

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

.hero-badge,
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  color: #7f1d1d;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid #fecaca;
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(185, 28, 28, 0.08);
  backdrop-filter: blur(12px);
  font-size: 14px;
  font-weight: 800;
}

.hero-title {
  margin: 22px 0 18px;
  color: var(--ink);
  font-size: clamp(42px, 7vw, 78px);
  line-height: 1.04;
  letter-spacing: -0.07em;
}

.hero-title span {
  display: block;
  color: transparent;
  background: linear-gradient(90deg, var(--brand), var(--rose));
  background-clip: text;
  -webkit-background-clip: text;
  font-size: 0.72em;
}

.hero-text {
  max-width: 620px;
  margin: 0 0 26px;
  color: #4b5563;
  font-size: clamp(17px, 2vw, 21px);
}

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

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  color: #7f1d1d;
  background: #ffffff;
  border: 1px solid #fecaca;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.hero-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

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

.primary-button {
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--rose));
  border: 0;
  box-shadow: 0 14px 28px rgba(220, 38, 38, 0.26);
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover {
  transform: translateY(-2px) scale(1.015);
}

.secondary-button {
  color: var(--ink);
  background: #ffffff;
  border: 1px solid #fecaca;
  box-shadow: 0 14px 28px rgba(185, 28, 28, 0.08);
}

.ghost-button {
  color: var(--brand);
  background: #fff1f2;
  border: 1px solid #fecaca;
}

.hero-search {
  display: flex;
  width: min(560px, 100%);
  margin-top: 22px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid #fecaca;
  border-radius: 999px;
  box-shadow: 0 18px 42px rgba(185, 28, 28, 0.1);
  backdrop-filter: blur(14px);
}

.hero-search input {
  flex: 1;
  min-width: 0;
  padding: 12px 16px;
  background: transparent;
  border: 0;
  outline: 0;
}

.hero-search button {
  padding: 12px 18px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--rose));
  border: 0;
  border-radius: 999px;
  font-weight: 900;
  cursor: pointer;
}

.hero-visual {
  position: relative;
  min-height: 490px;
}

.hero-poster {
  position: relative;
  display: block;
  min-height: 490px;
  overflow: hidden;
  background: #fee2e2;
  border: 10px solid rgba(255, 255, 255, 0.78);
  border-radius: 36px;
  box-shadow: 0 32px 80px rgba(127, 29, 29, 0.25);
}

.hero-poster img {
  width: 100%;
  height: 100%;
  min-height: 490px;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.hero-poster:hover img {
  transform: scale(1.05);
}

.hero-poster-layer {
  position: absolute;
  inset: auto 18px 18px 18px;
  padding: 18px;
  color: #ffffff;
  background: linear-gradient(135deg, rgba(127, 29, 29, 0.78), rgba(225, 29, 72, 0.68));
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 22px;
  backdrop-filter: blur(12px);
}

.hero-poster-layer strong {
  display: block;
  margin-bottom: 4px;
  font-size: 22px;
}

.hero-dots {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

.hero-dots button {
  width: 34px;
  height: 10px;
  padding: 0;
  background: #fecaca;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dots button.is-active {
  width: 58px;
  background: linear-gradient(90deg, var(--brand), var(--rose));
}

.section {
  padding: 70px 0;
}

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

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

.section-head.center {
  display: block;
  text-align: center;
}

.section-title {
  margin: 12px 0 8px;
  color: var(--ink);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.16;
  letter-spacing: -0.04em;
}

.section-desc {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
}

.section-head.center .section-desc {
  margin: 0 auto;
}

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

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

.movie-card {
  display: block;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #f3f4f6;
  border-radius: 22px;
  box-shadow: 0 10px 26px rgba(17, 24, 39, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: #fecaca;
  box-shadow: var(--shadow);
}

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

.poster.wide {
  aspect-ratio: 16 / 9;
}

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

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

.poster::after {
  content: "▶";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.24);
  font-size: 42px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

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

.year-chip,
.rank-chip {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 8px;
  color: #ffffff;
  background: rgba(17, 24, 39, 0.72);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.rank-chip {
  right: auto;
  left: 10px;
  background: linear-gradient(135deg, var(--brand), var(--rose));
}

.movie-card-body {
  display: block;
  padding: 15px;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
}

.type-chip {
  color: var(--brand);
  background: #fff1f2;
  border-radius: 999px;
  padding: 4px 9px;
  font-weight: 900;
}

.movie-card h3 {
  display: -webkit-box;
  min-height: 46px;
  margin: 0 0 8px;
  overflow: hidden;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.42;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  transition: color 0.2s ease;
}

.movie-card:hover h3 {
  color: var(--brand);
}

.movie-card p {
  display: -webkit-box;
  min-height: 42px;
  margin: 0 0 12px;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: #6b7280;
  font-size: 12px;
}

.card-foot span {
  padding: 3px 8px;
  background: #f9fafb;
  border-radius: 999px;
}

.feature-layout {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
}

.feature-card {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border-radius: 30px;
  box-shadow: var(--shadow);
}

.feature-card img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.feature-card:hover img {
  transform: scale(1.05);
}

.feature-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.74));
}

.feature-copy {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  padding: 24px;
  color: #ffffff;
}

.feature-copy h3 {
  margin: 8px 0;
  font-size: 22px;
}

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

.category-tile {
  position: relative;
  min-height: 235px;
  overflow: hidden;
  background: #fee2e2;
  border-radius: 26px;
  box-shadow: 0 14px 30px rgba(17, 24, 39, 0.08);
}

.category-tile img {
  width: 100%;
  height: 100%;
  min-height: 235px;
  object-fit: cover;
  transition: transform 0.55s ease;
}

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

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(127, 29, 29, 0.78));
}

.category-info {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  padding: 22px;
  color: #ffffff;
}

.category-info h2,
.category-info h3 {
  margin: 0 0 6px;
  font-size: 24px;
}

.category-info p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
}

.rank-board {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 28px;
  align-items: start;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 42px 74px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  background: #ffffff;
  border: 1px solid #f3f4f6;
  border-radius: 18px;
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.05);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.rank-row:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow);
}

.rank-num {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--rose));
  border-radius: 12px;
  font-weight: 900;
}

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

.rank-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rank-row h3 {
  margin: 0 0 4px;
  font-size: 16px;
}

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

.rank-score {
  color: var(--brand);
  font-weight: 900;
}

.page-hero {
  padding: 130px 0 58px;
  color: #ffffff;
  background:
    radial-gradient(circle at 14% 24%, rgba(255, 255, 255, 0.18), transparent 24%),
    linear-gradient(135deg, var(--brand), var(--rose));
}

.page-hero.light {
  color: var(--ink);
  background: linear-gradient(135deg, #fff1f2, #ffffff);
}

.page-hero h1 {
  max-width: 900px;
  margin: 0 0 12px;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.12;
  letter-spacing: -0.05em;
}

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

.page-hero.light p {
  color: var(--muted);
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 170px 170px auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 26px;
  padding: 14px;
  background: #ffffff;
  border: 1px solid #f3f4f6;
  border-radius: 22px;
  box-shadow: 0 10px 26px rgba(17, 24, 39, 0.05);
}

.filter-panel input,
.filter-panel select {
  min-height: 44px;
  width: 100%;
  padding: 0 14px;
  color: var(--ink);
  background: #fff7f7;
  border: 1px solid #fecaca;
  border-radius: 14px;
  outline: 0;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(248, 113, 113, 0.16);
}

.result-count {
  justify-self: end;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

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

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

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

.detail-page {
  min-height: 100vh;
  padding: 112px 0 70px;
  background: linear-gradient(180deg, #fff7f7 0%, #ffffff 45%);
}

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

.player-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #050505;
  border-radius: 28px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
}

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

.player-cover {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  overflow: hidden;
  background: #111111;
  border: 0;
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
}

.player-cover-gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(220, 38, 38, 0.2), rgba(0, 0, 0, 0.58));
}

.play-orb {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--rose));
  border: 4px solid rgba(255, 255, 255, 0.75);
  border-radius: 50%;
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.35);
  transform: translate(-50%, -50%);
  font-size: 34px;
  line-height: 1;
}

.player-frame.is-playing .player-cover {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.info-card,
.content-card {
  background: #ffffff;
  border: 1px solid #f3f4f6;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.info-card {
  padding: 28px;
}

.info-card h1 {
  margin: 16px 0 12px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.12;
  letter-spacing: -0.05em;
}

.info-lead {
  margin: 0 0 22px;
  color: #4b5563;
  font-size: 18px;
  font-weight: 700;
}

.meta-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.meta-tags span {
  padding: 7px 12px;
  color: #7f1d1d;
  background: #fff1f2;
  border: 1px solid #fecaca;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}

.detail-kv {
  display: grid;
  gap: 10px;
  margin: 22px 0;
  color: #4b5563;
}

.detail-kv div {
  padding: 12px 14px;
  background: #fff7f7;
  border-radius: 16px;
}

.detail-kv strong {
  color: var(--ink);
}

.content-card {
  margin-top: 28px;
  padding: 28px;
}

.content-card h2 {
  margin: 0 0 16px;
  font-size: 24px;
}

.content-card p {
  margin: 0;
  color: #4b5563;
}

.review-box {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: linear-gradient(135deg, #fff1f2, #fff7ed);
  border-radius: 22px;
}

.review-avatar {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--orange));
  border-radius: 50%;
  font-weight: 900;
  flex: 0 0 auto;
}

.tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.tags-list span {
  padding: 7px 11px;
  color: #374151;
  background: #f3f4f6;
  border-radius: 999px;
  font-size: 13px;
}

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

.sitemap-list {
  columns: 4 220px;
  column-gap: 26px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.sitemap-list li {
  break-inside: avoid;
  margin-bottom: 9px;
}

.sitemap-list a {
  color: #374151;
}

.sitemap-list a:hover {
  color: var(--brand);
}

.site-footer {
  background: linear-gradient(180deg, #fff7f7, #ffffff);
  border-top: 1px solid #fee2e2;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 1fr;
  gap: 28px;
  padding: 44px 0;
}

.footer-grid h3 {
  margin: 0 0 14px;
  font-size: 18px;
}

.footer-grid p,
.footer-grid a {
  color: var(--muted);
  font-size: 14px;
}

.footer-grid a {
  display: block;
  margin: 8px 0;
}

.footer-grid a:hover {
  color: var(--brand);
}

.footer-bottom {
  padding: 18px 0 28px;
  color: #9ca3af;
  border-top: 1px solid #fee2e2;
  font-size: 13px;
  text-align: center;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1120px) {
  .card-grid,
  .catalog-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

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

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

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

  .mobile-toggle {
    display: grid;
  }

  .header-inner {
    height: 68px;
  }

  .hero {
    min-height: auto;
    padding-top: 96px;
  }

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

  .hero-visual,
  .hero-poster,
  .hero-poster img {
    min-height: 380px;
  }

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

  .result-count {
    justify-self: start;
  }

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

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

  .logo small {
    display: none;
  }

  .logo strong {
    font-size: 19px;
  }

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

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

  .hero-search {
    border-radius: 24px;
  }

  .hero-search button {
    border-radius: 18px;
  }

  .card-grid,
  .catalog-grid,
  .feature-layout,
  .category-grid,
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

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

  .movie-card p {
    display: none;
  }

  .section {
    padding: 48px 0;
  }

  .section-head {
    display: block;
  }

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

  .rank-row {
    grid-template-columns: 34px 58px 1fr;
  }

  .rank-score {
    display: none;
  }

  .detail-page {
    padding-top: 94px;
  }

  .player-frame {
    border-radius: 18px;
  }

  .play-orb {
    width: 68px;
    height: 68px;
    font-size: 28px;
  }

  .info-card,
  .content-card {
    padding: 20px;
    border-radius: 22px;
  }

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