:root {
  --pink-50: #fff1f7;
  --pink-100: #ffe4ef;
  --pink-200: #ffc8df;
  --pink-500: #ec4899;
  --pink-600: #db2777;
  --rose-500: #f43f5e;
  --text: #1f2937;
  --muted: #6b7280;
  --soft: #fdf2f8;
  --line: rgba(219, 39, 119, 0.14);
  --shadow: 0 22px 60px rgba(219, 39, 119, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #ffffff 0%, #fff7fb 45%, #ffffff 100%);
  line-height: 1.7;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(255, 241, 247, 0.96), rgba(255, 228, 239, 0.96));
  border-bottom: 1px solid var(--line);
  box-shadow: 0 12px 30px rgba(219, 39, 119, 0.08);
  backdrop-filter: blur(16px);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--pink-600);
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand {
  font-size: 24px;
}

.brand-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--pink-500), var(--rose-500));
  border-radius: 999px;
  box-shadow: 0 12px 24px rgba(236, 72, 153, 0.26);
  font-size: 13px;
}

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

.desktop-nav a,
.mobile-panel a {
  color: #4b5563;
  font-weight: 700;
  transition: color 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-panel a:hover,
.mobile-panel a.active {
  color: var(--pink-600);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 4px;
}

.header-search input,
.mobile-panel input,
.hero-search input,
.search-page-form input,
.filter-toolbar input,
.filter-toolbar select {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.header-search button,
.mobile-panel button,
.hero-search button,
.search-page-form button {
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  color: #ffffff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--pink-500), var(--rose-500));
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(236, 72, 153, 0.18);
}

input:focus,
select:focus {
  border-color: rgba(219, 39, 119, 0.48);
  box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.12);
}

.mobile-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  background: rgba(255, 255, 255, 0.72);
  color: var(--pink-600);
  width: 42px;
  height: 42px;
  border-radius: 14px;
  cursor: pointer;
  font-size: 22px;
}

.mobile-panel {
  display: none;
  border-top: 1px solid var(--line);
  padding: 16px;
  background: rgba(255, 241, 247, 0.98);
}

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

.mobile-panel nav {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
}

.mobile-panel form {
  display: grid;
  gap: 10px;
}

.mobile-panel input {
  width: 100%;
  padding: 12px 14px;
}

.hero-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, #fff1f7 0%, #ffe4ef 50%, #fff7fb 100%);
  padding: 88px 0 72px;
}

.hero-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(36px);
  opacity: 0.58;
  pointer-events: none;
}

.hero-orb-a {
  width: 180px;
  height: 180px;
  left: 7%;
  top: 38px;
  background: #f9a8d4;
}

.hero-orb-b {
  width: 240px;
  height: 240px;
  right: 8%;
  bottom: 20px;
  background: #fb7185;
}

.hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(360px, 0.74fr);
  align-items: center;
  gap: 46px;
}

.eyebrow,
.section-heading span,
.ranking-head span {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--pink-600);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  font-weight: 800;
  font-size: 14px;
}

.hero-copy h1 {
  margin: 22px 0 18px;
  font-size: clamp(38px, 5.5vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-copy p {
  max-width: 720px;
  color: #4b5563;
  font-size: 19px;
  margin: 0 0 28px;
}

.hero-search,
.search-page-form {
  display: flex;
  gap: 12px;
  max-width: 640px;
}

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

.hero-search button,
.search-page-form button {
  padding: 15px 24px;
}

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

.primary-action,
.ghost-action,
.center-action a,
.ranking-more,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-action,
.center-action a,
.ranking-more {
  color: #ffffff;
  padding: 13px 24px;
  background: linear-gradient(135deg, var(--pink-500), var(--rose-500));
  box-shadow: 0 16px 28px rgba(236, 72, 153, 0.22);
}

.ghost-action {
  color: var(--pink-600);
  padding: 12px 22px;
  border: 1px solid rgba(219, 39, 119, 0.24);
  background: rgba(255, 255, 255, 0.74);
}

.primary-action:hover,
.ghost-action:hover,
.center-action a:hover,
.ranking-more:hover,
.text-link:hover {
  transform: translateY(-2px);
}

.hero-gallery {
  position: relative;
  min-height: 520px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(20px) scale(0.98);
  transition: opacity 0.5s ease, transform 0.5s ease;
  border-radius: 30px;
  overflow: hidden;
  background: linear-gradient(135deg, #fdf2f8, #fecdd3);
  box-shadow: var(--shadow);
}

.hero-slide.is-active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 520px;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(15, 23, 42, 0.78));
}

.hero-slide-panel {
  position: absolute;
  z-index: 1;
  left: 26px;
  right: 26px;
  bottom: 26px;
  color: #ffffff;
}

.hero-slide-panel h2 {
  margin: 12px 0 8px;
  font-size: 30px;
  line-height: 1.2;
}

.hero-slide-panel p {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.88);
}

.hero-slide-panel a {
  display: inline-flex;
  padding: 10px 18px;
  border-radius: 999px;
  background: #ffffff;
  color: var(--pink-600);
  font-weight: 800;
}

.hero-dots {
  position: absolute;
  z-index: 3;
  right: 24px;
  top: 24px;
  display: flex;
  gap: 8px;
}

.hero-dots button {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
}

.hero-dots button.is-active {
  width: 28px;
  background: #ffffff;
}

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

.section-block.soft {
  background: linear-gradient(180deg, rgba(255, 241, 247, 0.74), rgba(255, 255, 255, 0.9));
}

.section-heading {
  text-align: center;
  margin-bottom: 34px;
}

.section-heading.align-left {
  text-align: left;
}

.section-heading h2,
.ranking-head h2,
.ranking-panel h2,
.detail-article h2,
.detail-side-card h2 {
  margin: 12px 0 10px;
  color: #111827;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.16;
  letter-spacing: -0.03em;
}

.section-heading p {
  margin: 0 auto;
  max-width: 720px;
  color: var(--muted);
}

.align-left p {
  margin-left: 0;
}

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

.category-card,
.category-overview-card,
.ranking-card,
.detail-side-card,
.detail-article,
.ranking-panel {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 16px 40px rgba(219, 39, 119, 0.08);
}

.category-card {
  min-height: 210px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.category-card:hover,
.category-overview-card:hover,
.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(219, 39, 119, 0.32);
  box-shadow: 0 22px 60px rgba(219, 39, 119, 0.14);
}

.category-icon {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border-radius: 16px;
  background: var(--pink-600);
  color: #ffffff;
  font-size: 13px;
}

.category-card strong {
  font-size: 20px;
  margin-bottom: 8px;
}

.category-card p,
.category-overview-card p {
  color: var(--muted);
  margin: 0 0 auto;
}

.category-card small {
  color: var(--pink-600);
  margin-top: 18px;
  font-weight: 700;
}

.center-action {
  text-align: center;
  margin-top: 30px;
}

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(219, 39, 119, 0.12);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

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

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 44%, rgba(0, 0, 0, 0.64));
}

.play-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%) scale(0.86);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(236, 72, 153, 0.88);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.year-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--pink-600);
  font-weight: 800;
  font-size: 12px;
}

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

.movie-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.3;
}

.movie-card h3 a:hover {
  color: var(--pink-600);
}

.card-meta,
.card-summary {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.card-summary {
  display: -webkit-box;
  min-height: 44px;
  margin-top: 8px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.tag-row span {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(255, 228, 239, 0.76);
  color: var(--pink-600);
  font-weight: 700;
  font-size: 12px;
}

.hero-slide-panel .tag-row span {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
}

.ranking-card {
  position: sticky;
  top: 96px;
  padding: 24px;
}

.rank-list,
.ranking-panel > div {
  display: grid;
  gap: 10px;
}

.rank-row,
.ranking-line {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 241, 247, 0.72);
  transition: background 0.2s ease, transform 0.2s ease;
}

.rank-row:hover,
.ranking-line:hover {
  background: #ffe4ef;
  transform: translateX(4px);
}

.rank-num,
.ranking-line span {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--pink-500), var(--rose-500));
  font-weight: 900;
}

.rank-title,
.ranking-line strong {
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-row small,
.ranking-line small {
  grid-column: 2;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ranking-more {
  width: 100%;
  margin-top: 18px;
}

.page-hero {
  background: linear-gradient(120deg, #fff1f7, #ffe4ef 58%, #ffffff);
  border-bottom: 1px solid var(--line);
}

.compact-hero {
  padding: 58px 0 54px;
}

.compact-hero h1 {
  margin: 14px 0 12px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.compact-hero p {
  max-width: 780px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

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

.breadcrumb a {
  color: var(--pink-600);
  font-weight: 800;
}

.breadcrumb a::after {
  content: "/";
  margin-left: 9px;
  color: #c08497;
}

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

.category-overview-card {
  padding: 26px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.category-overview-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.category-overview-title span {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #ffffff;
  background: var(--pink-600);
  font-size: 12px;
}

.category-overview-title h2 {
  margin: 0;
  font-size: 24px;
}

.mini-link-list {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.simple-movie-link {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 241, 247, 0.76);
}

.simple-movie-link span {
  font-weight: 800;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.simple-movie-link small {
  color: var(--muted);
  white-space: nowrap;
}

.text-link {
  color: var(--pink-600);
  font-weight: 900;
}

.filter-toolbar {
  display: flex;
  gap: 12px;
  margin-bottom: 26px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
}

.filter-toolbar input {
  flex: 1;
  padding: 13px 16px;
}

.filter-toolbar select {
  width: 180px;
  padding: 13px 16px;
}

.category-link-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.category-link-cloud a {
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff1f7;
  color: var(--pink-600);
  font-weight: 800;
}

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

.ranking-panel {
  padding: 24px;
}

.ranking-panel h2 {
  font-size: 28px;
}

.search-page-form {
  margin-top: 24px;
}

.search-results.is-active {
  margin-bottom: 34px;
}

.search-results h2 {
  margin: 0 0 18px;
  font-size: 30px;
}

.detail-hero {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #111827;
  color: #ffffff;
}

.detail-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(12px) scale(1.08);
  opacity: 0.34;
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.72), rgba(15, 23, 42, 0.48));
}

.detail-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 36px;
  align-items: center;
  padding: 72px 0;
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(135deg, #ffe4ef, #fecdd3);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
}

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

.detail-copy .breadcrumb,
.detail-copy .breadcrumb a,
.detail-copy .breadcrumb span {
  color: rgba(255, 255, 255, 0.8);
}

.detail-copy h1 {
  margin: 18px 0;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.detail-one-line {
  max-width: 820px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 20px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.detail-meta span {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.92);
  font-weight: 800;
}

.detail-tags span {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.player-section {
  padding: 70px 0 24px;
  background: #0f172a;
  color: #ffffff;
}

.player-section .section-heading p {
  color: rgba(255, 255, 255, 0.72);
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000000;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.32);
  aspect-ratio: 16 / 9;
}

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

.play-layer {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: radial-gradient(circle at center, rgba(236, 72, 153, 0.12), rgba(0, 0, 0, 0.48));
  cursor: pointer;
}

.play-layer span {
  width: 88px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--pink-500), var(--rose-500));
  box-shadow: 0 20px 45px rgba(236, 72, 153, 0.35);
  font-size: 30px;
  padding-left: 4px;
}

.play-layer.is-hidden {
  display: none;
}

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

.detail-article,
.detail-side-card {
  padding: 30px;
}

.detail-article h2,
.detail-side-card h2 {
  font-size: 28px;
}

.detail-article p {
  margin: 0 0 24px;
  color: #374151;
  font-size: 17px;
}

.detail-side-card dl {
  display: grid;
  gap: 14px;
  margin: 0;
}

.detail-side-card dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.detail-side-card dd {
  margin: -10px 0 0;
  font-weight: 800;
}

.site-footer {
  background: linear-gradient(180deg, #fff7fb, #ffe4ef);
  border-top: 1px solid var(--line);
  padding-top: 46px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 1fr;
  gap: 34px;
  padding-bottom: 34px;
}

.footer-brand {
  font-size: 22px;
  margin-bottom: 16px;
}

.site-footer p {
  max-width: 520px;
  color: var(--muted);
}

.site-footer h3 {
  margin: 0 0 14px;
}

.site-footer a:not(.footer-brand) {
  display: block;
  margin: 8px 0;
  color: #4b5563;
  font-weight: 700;
}

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

.footer-links {
  columns: 2;
}

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

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

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

  .hero-layout,
  .split-section,
  .detail-content-grid {
    grid-template-columns: 1fr;
  }

  .hero-gallery {
    min-height: 480px;
  }

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

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

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

  .ranking-card {
    position: static;
  }

  .ranking-layout {
    grid-template-columns: 1fr;
  }
}

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

  .mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .header-inner {
    min-height: 66px;
  }

  .brand {
    font-size: 19px;
  }

  .hero-section {
    padding: 58px 0 46px;
  }

  .hero-search,
  .search-page-form,
  .filter-toolbar {
    flex-direction: column;
  }

  .filter-toolbar select {
    width: 100%;
  }

  .hero-gallery,
  .hero-slide img {
    min-height: 420px;
  }

  .movie-grid,
  .latest-grid,
  .category-page-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .category-grid,
  .category-overview-grid,
  .footer-grid,
  .detail-hero-inner {
    grid-template-columns: 1fr;
  }

  .detail-hero {
    min-height: auto;
  }

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

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

  .detail-copy h1 {
    font-size: 38px;
  }

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

  .play-layer span {
    width: 68px;
    height: 68px;
    font-size: 24px;
  }
}

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

  .movie-grid,
  .latest-grid,
  .category-page-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

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

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

  .card-summary {
    display: none;
  }

  .hero-slide-panel {
    left: 18px;
    right: 18px;
    bottom: 18px;
  }

  .hero-slide-panel h2 {
    font-size: 24px;
  }

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

  .footer-links {
    columns: 1;
  }
}
