:root {
  --pink: #ec4899;
  --pink-dark: #db2777;
  --purple: #8b5cf6;
  --blue: #3b82f6;
  --cyan: #06b6d4;
  --orange: #f97316;
  --yellow: #eab308;
  --slate: #475569;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --soft: #f8fafc;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.10);
  --shadow-hover: 0 24px 70px rgba(15, 23, 42, 0.18);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: linear-gradient(180deg, #fff7fb 0, #ffffff 28rem);
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(229, 231, 235, 0.88);
  backdrop-filter: blur(16px);
}

.header-inner {
  max-width: 1180px;
  height: 72px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--pink), var(--blue));
  border-radius: 12px;
  box-shadow: 0 10px 22px rgba(236, 72, 153, 0.32);
}

.brand-text {
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, var(--pink), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link {
  color: #374151;
  font-weight: 650;
  transition: color 0.2s ease;
}

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

.header-search {
  display: flex;
  align-items: center;
  width: 280px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.header-search input,
.mobile-search input,
.cta-search input,
.filter-controls input,
.filter-controls select {
  border: 0;
  outline: 0;
  background: transparent;
}

.header-search input {
  min-width: 0;
  flex: 1;
  padding: 9px 12px;
  color: var(--text);
}

.header-search button,
.mobile-search button,
.cta-search button {
  border: 0;
  cursor: pointer;
  color: #ffffff;
  background: linear-gradient(90deg, var(--pink), var(--purple));
  border-radius: 999px;
  padding: 9px 16px;
  font-weight: 750;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: #f3f4f6;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: #374151;
  border-radius: 2px;
}

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

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

.mobile-panel nav,
.mobile-cats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-width: 1180px;
  margin: 14px auto 0;
}

.mobile-link,
.mobile-cats a {
  padding: 12px 14px;
  border-radius: 16px;
  background: #f9fafb;
  font-weight: 700;
}

.mobile-link.is-active {
  color: var(--pink);
}

.mobile-search {
  max-width: 1180px;
  margin: 14px auto 0;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: flex;
  background: #ffffff;
}

.mobile-search input {
  flex: 1;
  min-width: 0;
  padding: 10px 14px;
}

.hero-section {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  color: #ffffff;
  background: linear-gradient(120deg, #f472b6 0%, #8b5cf6 48%, #38bdf8 100%);
}

.hero-bg-orb {
  position: absolute;
  width: 24rem;
  height: 24rem;
  border-radius: 999px;
  filter: blur(8px);
  opacity: 0.24;
  background: #ffffff;
}

.hero-bg-one {
  top: 4rem;
  left: 5%;
}

.hero-bg-two {
  right: 4%;
  bottom: 6rem;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  min-height: 600px;
  margin: 0 auto;
  padding: 72px 22px 120px;
}

.hero-track {
  position: relative;
  min-height: 430px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.62fr);
  gap: 46px;
  align-items: center;
  opacity: 0;
  transform: translateY(24px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--pink);
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy .eyebrow {
  color: rgba(255, 255, 255, 0.86);
}

.hero-copy h1,
.hero-copy h2 {
  margin: 0;
  font-size: clamp(2.7rem, 7vw, 5.4rem);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.hero-copy p {
  max-width: 720px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.90);
  font-size: clamp(1rem, 2vw, 1.35rem);
}

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

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

.hero-tags span,
.detail-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-weight: 750;
}

.hero-tags span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  padding: 7px 13px;
  backdrop-filter: blur(10px);
}

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

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

.primary-button {
  color: #ffffff;
  background: linear-gradient(90deg, var(--pink), var(--purple));
  box-shadow: 0 18px 35px rgba(236, 72, 153, 0.30);
}

.hero-copy .primary-button {
  color: var(--pink-dark);
  background: #ffffff;
}

.secondary-button {
  color: var(--text);
  background: #ffffff;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.10);
}

.hero-copy .secondary-button,
.ghost-button {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--shadow-hover);
}

.hero-poster {
  position: relative;
  overflow: hidden;
  display: block;
  aspect-ratio: 3 / 4;
  border: 10px solid rgba(255, 255, 255, 0.20);
  border-radius: 36px;
  box-shadow: 0 40px 90px rgba(30, 41, 59, 0.38);
  transform: rotate(2.2deg);
}

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 46%, rgba(0, 0, 0, 0.42));
}

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

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

.hero-controls {
  position: absolute;
  left: 22px;
  bottom: 82px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero-arrow,
.hero-dot {
  border: 0;
  cursor: pointer;
}

.hero-arrow {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  font-size: 2rem;
  line-height: 1;
  backdrop-filter: blur(12px);
}

.hero-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

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

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

.hero-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  z-index: 3;
  width: 100%;
  height: 100px;
}

.hero-wave path {
  fill: #ffffff;
}

.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 72px 22px;
}

.section-head {
  margin-bottom: 30px;
}

.center-head {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.split-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.compact-head {
  margin-bottom: 22px;
}

.section-head h2,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  color: #111827;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.section-head p,
.page-hero p {
  max-width: 760px;
  margin: 12px auto 0;
  color: var(--muted);
  font-size: 1.06rem;
}

.more-link {
  color: var(--pink-dark);
  font-weight: 800;
}

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

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 184px;
  padding: 26px;
  border-radius: 28px;
  background: linear-gradient(135deg, #fce7f3, #dbeafe);
  box-shadow: var(--shadow);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.category-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.26);
  border-radius: 16px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.category-card h3 {
  margin: 22px 0 8px;
  font-size: 1.28rem;
}

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

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

.tone-rose {
  background: linear-gradient(135deg, #fecdd3, #fce7f3);
}

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

.tone-purple {
  background: linear-gradient(135deg, #e9d5ff, #fbcfe8);
}

.tone-indigo {
  background: linear-gradient(135deg, #c7d2fe, #e9d5ff);
}

.tone-yellow {
  background: linear-gradient(135deg, #fef3c7, #fed7aa);
}

.tone-blue {
  background: linear-gradient(135deg, #bfdbfe, #cffafe);
}

.tone-cyan {
  background: linear-gradient(135deg, #a5f3fc, #dbeafe);
}

.tone-violet {
  background: linear-gradient(135deg, #ddd6fe, #fbcfe8);
}

.tone-slate {
  background: linear-gradient(135deg, #e2e8f0, #dbeafe);
}

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(229, 231, 235, 0.88);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: #e5e7eb;
}

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

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

.region-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  color: #ffffff;
  background: linear-gradient(90deg, var(--pink), var(--purple));
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 0.74rem;
  font-weight: 850;
}

.poster-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0);
  opacity: 0;
  transition: background 0.24s ease, opacity 0.24s ease;
}

.poster-play {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: var(--pink);
  background: #ffffff;
  border-radius: 999px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

.movie-card:hover .poster-cover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.28);
}

.movie-info {
  padding: 14px 14px 16px;
}

.tag-row {
  margin-bottom: 8px;
}

.tag-row span,
.detail-tags span {
  color: var(--pink-dark);
  background: #fce7f3;
  padding: 4px 9px;
  font-size: 0.72rem;
}

.movie-info h3 {
  display: -webkit-box;
  min-height: 2.8em;
  margin: 0 0 8px;
  overflow: hidden;
  color: #111827;
  font-size: 1rem;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-desc {
  display: -webkit-box;
  min-height: 3.9em;
  margin: 0 0 10px;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: #6b7280;
  font-size: 0.78rem;
}

.feature-band {
  margin: 42px 0;
  background: linear-gradient(90deg, #fce7f3, #ede9fe, #dbeafe);
}

.feature-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 70px 22px;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 38px;
  align-items: center;
}

.feature-inner h2,
.cta-section h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.feature-inner p,
.cta-section p {
  color: var(--muted);
  font-size: 1.08rem;
}

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

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

.two-column-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
}

.panel-card,
.content-card {
  border: 1px solid rgba(229, 231, 235, 0.86);
  border-radius: 30px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.panel-card {
  padding: 28px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 44px 52px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  background: #f9fafb;
  transition: transform 0.2s ease, background 0.2s ease;
}

.rank-row:hover {
  transform: translateX(4px);
  background: #fce7f3;
}

.rank-num {
  color: var(--pink);
  font-weight: 900;
}

.rank-row img {
  width: 52px;
  height: 68px;
  object-fit: cover;
  border-radius: 12px;
}

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

.rank-meta {
  grid-column: 3;
  color: var(--muted);
  font-size: 0.82rem;
}

.cta-section {
  max-width: 960px;
  margin: 40px auto 80px;
  padding: 60px 22px;
  color: #ffffff;
  text-align: center;
  border-radius: 36px;
  background: linear-gradient(120deg, var(--pink), var(--purple), var(--blue));
  box-shadow: var(--shadow-hover);
}

.cta-section p {
  color: rgba(255, 255, 255, 0.86);
}

.cta-search {
  display: flex;
  max-width: 640px;
  margin: 30px auto 0;
  padding: 6px;
  border-radius: 999px;
  background: #ffffff;
}

.cta-search input {
  flex: 1;
  min-width: 0;
  padding: 12px 18px;
}

.page-hero,
.detail-hero {
  max-width: 1180px;
  margin: 34px auto 0;
  padding: 64px 22px;
  border-radius: 38px;
}

.page-hero {
  min-height: 300px;
  display: grid;
  align-items: center;
  background: linear-gradient(135deg, #fce7f3, #ede9fe, #dbeafe);
}

.page-hero > div {
  max-width: 760px;
}

.rank-hero {
  background: linear-gradient(135deg, #fef3c7, #fce7f3, #dbeafe);
}

.search-hero {
  background: linear-gradient(135deg, #dbeafe, #ede9fe, #fce7f3);
}

.filter-panel {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 24px;
  align-items: center;
  margin-bottom: 28px;
  padding: 26px;
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.filter-panel h2 {
  margin: 0;
  font-size: 1.5rem;
}

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

.filter-controls {
  display: grid;
  grid-template-columns: 1fr 150px 135px;
  gap: 10px;
}

.filter-controls input,
.filter-controls select {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f9fafb;
}

.empty-result {
  display: none;
  margin-bottom: 22px;
  padding: 22px;
  color: var(--muted);
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: 24px;
  background: #ffffff;
}

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

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

.rank-page-row {
  display: grid;
  grid-template-columns: 64px 70px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05);
}

.rank-page-row:hover {
  border-color: #f9a8d4;
  box-shadow: var(--shadow);
}

.rank-page-num {
  color: var(--pink);
  font-size: 1.2rem;
  font-weight: 900;
}

.rank-page-row img {
  width: 70px;
  height: 92px;
  object-fit: cover;
  border-radius: 16px;
}

.rank-page-main strong,
.rank-page-main em {
  display: block;
}

.rank-page-main strong {
  color: #111827;
  font-size: 1.05rem;
}

.rank-page-main em {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-style: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.rank-page-side {
  color: var(--muted);
  white-space: nowrap;
}

.breadcrumb {
  max-width: 1180px;
  margin: 24px auto 0;
  padding: 0 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.92rem;
}

.breadcrumb a {
  color: var(--pink-dark);
  font-weight: 750;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(260px, 0.42fr) minmax(0, 1fr);
  gap: 36px;
  align-items: center;
  background: linear-gradient(135deg, #fff1f2, #f5f3ff, #eff6ff);
}

.detail-poster {
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: 30px;
  box-shadow: var(--shadow-hover);
}

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

.detail-one-line {
  color: #374151;
  font-size: 1.16rem;
}

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

.detail-meta span {
  padding: 8px 13px;
  color: #374151;
  background: #ffffff;
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.07);
}

.player-section {
  padding-top: 48px;
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  background: #020617;
  box-shadow: 0 30px 80px rgba(2, 6, 23, 0.30);
  aspect-ratio: 16 / 9;
}

.movie-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #020617;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  gap: 14px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.72));
  cursor: pointer;
}

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

.play-circle {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  color: var(--pink);
  background: #ffffff;
  border-radius: 999px;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.32);
  font-size: 2rem;
}

.player-overlay strong {
  font-size: 1.25rem;
}

.detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding-top: 18px;
}

.content-card {
  padding: 28px;
}

.content-card h2 {
  margin: 0 0 14px;
  font-size: 1.45rem;
}

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

.sitemap-wrap {
  display: grid;
  gap: 24px;
}

.sitemap-section {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05);
}

.sitemap-section h2 {
  margin: 0 0 16px;
}

.sitemap-section h2 a {
  color: var(--pink-dark);
}

.sitemap-links {
  columns: 4 220px;
  column-gap: 28px;
}

.sitemap-links a {
  display: block;
  break-inside: avoid;
  padding: 4px 0;
  color: #374151;
}

.sitemap-links a:hover {
  color: var(--pink-dark);
}

.site-footer {
  margin-top: 40px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, #f9fafb, #f3f4f6);
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 48px 22px;
  display: grid;
  grid-template-columns: 1.2fr 0.6fr 1.2fr;
  gap: 32px;
}

.footer-brand p {
  color: var(--muted);
}

.footer-block {
  display: grid;
  align-content: start;
  gap: 9px;
}

.footer-block h2 {
  margin: 0 0 8px;
  font-size: 1.06rem;
}

.footer-block a {
  color: var(--muted);
}

.footer-block a:hover {
  color: var(--pink-dark);
}

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

.footer-cats h2 {
  grid-column: 1 / -1;
}

.footer-bottom {
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 22px 26px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

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

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

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

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

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

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

  .hero-inner {
    min-height: 760px;
    padding-top: 42px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    align-content: start;
    gap: 28px;
  }

  .hero-poster {
    max-width: 300px;
    margin: 0 auto;
    border-radius: 28px;
  }

  .hero-controls {
    bottom: 76px;
  }

  .feature-inner,
  .two-column-section,
  .filter-panel,
  .detail-hero,
  .detail-content,
  .footer-inner {
    grid-template-columns: 1fr;
  }

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

  .large-grid,
  .related-grid,
  .mini-poster-grid,
  .side-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .rank-page-side {
    grid-column: 3;
  }
}

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

  .brand-text {
    font-size: 1.15rem;
  }

  .hero-inner,
  .section,
  .feature-inner,
  .footer-inner,
  .footer-bottom {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-inner {
    min-height: 780px;
  }

  .hero-copy h1,
  .hero-copy h2 {
    font-size: 2.55rem;
  }

  .hero-actions,
  .split-head,
  .footer-bottom {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-button,
  .secondary-button,
  .ghost-button {
    width: 100%;
  }

  .large-grid,
  .related-grid,
  .category-grid,
  .category-grid-full,
  .mini-poster-grid,
  .side-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .category-card {
    min-height: 160px;
    padding: 20px;
  }

  .page-hero,
  .detail-hero {
    margin-top: 18px;
    border-radius: 26px;
    padding: 42px 16px;
  }

  .movie-info {
    padding: 12px;
  }

  .card-desc {
    display: none;
  }

  .player-box {
    border-radius: 20px;
  }

  .play-circle {
    width: 64px;
    height: 64px;
  }

  .cta-search {
    display: grid;
    border-radius: 24px;
  }

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

  .rank-row img {
    width: 48px;
    height: 64px;
  }
}
