:root {
  --red: #ef4444;
  --pink: #ec4899;
  --orange: #f97316;
  --purple: #8b5cf6;
  --blue: #3b82f6;
  --cyan: #06b6d4;
  --green: #10b981;
  --yellow: #f59e0b;
  --text: #1f2937;
  --muted: #6b7280;
  --soft: #f8fafc;
  --line: rgba(148, 163, 184, 0.28);
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  background: linear-gradient(135deg, #fdf2f8 0%, #faf5ff 46%, #eff6ff 100%);
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, var(--red), var(--pink), var(--orange));
  box-shadow: 0 12px 30px rgba(236, 72, 153, 0.28);
}

.top-nav {
  width: min(1180px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 900;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.32);
  transition: transform 0.24s ease;
}

.brand:hover .brand-mark {
  transform: scale(1.1);
}

.brand-text {
  font-size: 1.55rem;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.25);
}

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

.nav-link {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 700;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #fef3c7;
  transform: translateY(-1px);
}

.nav-search {
  position: relative;
  display: flex;
  align-items: center;
  width: 270px;
}

.nav-search input {
  width: 100%;
  border: 0;
  outline: 0;
  border-radius: 999px;
  padding: 10px 46px 10px 18px;
  background: rgba(255, 255, 255, 0.9);
  color: #111827;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.36);
}

.nav-search button {
  position: absolute;
  right: 6px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  color: #fff;
}

.mobile-toggle {
  display: none;
  border: 0;
  color: #fff;
  background: transparent;
  font-size: 1.55rem;
}

.mobile-panel {
  display: none;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  border-top: 1px solid rgba(255, 255, 255, 0.35);
}

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

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

.mobile-search {
  display: flex;
  gap: 10px;
  padding: 16px 0 8px;
}

.mobile-search input {
  flex: 1;
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  background: #f3f4f6;
}

.mobile-search button {
  border: 0;
  border-radius: 999px;
  padding: 0 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--pink));
}

.mobile-links {
  display: grid;
  gap: 4px;
  padding: 8px 0 18px;
}

.mobile-link {
  padding: 10px 4px;
  color: #374151;
  font-weight: 700;
}

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

.hero-carousel {
  position: relative;
  height: 560px;
  overflow: hidden;
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.8s ease, transform 1.2s ease;
}

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

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 22% 35%, rgba(236, 72, 153, 0.3), transparent 32%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.86) 0%, rgba(0, 0, 0, 0.45) 48%, rgba(0, 0, 0, 0.15) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding-bottom: 78px;
  max-width: 760px;
  color: #fff;
}

.hero-kicker {
  display: inline-flex;
  padding: 8px 14px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  color: #fde68a;
  font-weight: 800;
}

.hero-content h1,
.hero-content h2 {
  margin: 0 0 16px;
  font-size: clamp(2.3rem, 6vw, 4.5rem);
  line-height: 1.05;
  font-weight: 950;
  text-shadow: 0 16px 42px rgba(0, 0, 0, 0.45);
}

.hero-content p {
  max-width: 660px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.12rem;
  line-height: 1.8;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.hero-meta span {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.38);
  color: #fff;
  font-weight: 700;
}

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

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

.primary-button {
  padding: 13px 30px;
  color: #fff;
  background: linear-gradient(90deg, var(--pink), var(--purple));
  box-shadow: 0 16px 30px rgba(236, 72, 153, 0.36);
}

.ghost-button {
  padding: 12px 24px;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.26);
  backdrop-filter: blur(12px);
}

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

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

.hero-dot {
  width: 11px;
  height: 11px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.is-active {
  width: 34px;
  background: #fff;
}

.home-search-panel {
  width: min(1040px, calc(100% - 32px));
  margin: -42px auto 0;
  position: relative;
  z-index: 8;
  padding: 22px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.home-search-panel form {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
}

.home-search-panel label {
  font-weight: 900;
  color: var(--pink);
}

.home-search-panel input,
.search-box-large input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 0;
  border-radius: 999px;
  padding: 13px 16px;
  color: #111827;
  background: #f3f4f6;
  outline: 0;
}

.home-search-panel button,
.search-box-large button,
.filter-panel button {
  border: 0;
  border-radius: 999px;
  padding: 13px 22px;
  color: #fff;
  font-weight: 850;
  background: linear-gradient(90deg, var(--red), var(--pink));
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.quick-links a {
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff7ed;
  color: #c2410c;
  font-weight: 800;
}

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

.home-sections,
.page-main {
  padding: 56px 0;
}

.section-block {
  margin-bottom: 72px;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 950;
  line-height: 1.2;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.section-heading a {
  color: var(--muted);
  font-weight: 800;
}

.red-heading h2 {
  background-image: linear-gradient(90deg, var(--red), var(--yellow), var(--pink));
}

.blue-heading h2 {
  background-image: linear-gradient(90deg, var(--blue), var(--cyan), #14b8a6);
}

.green-heading h2 {
  background-image: linear-gradient(90deg, #22c55e, var(--green), #14b8a6);
}

.yellow-heading h2 {
  background-image: linear-gradient(90deg, var(--yellow), var(--orange), var(--red));
}

.purple-heading h2 {
  background-image: linear-gradient(90deg, var(--purple), var(--pink), var(--red));
}

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

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

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

.movie-card {
  display: block;
  overflow: hidden;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.1);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 24px 52px rgba(15, 23, 42, 0.18);
}

.thumb-wrap,
.poster-wrap {
  position: relative;
  overflow: hidden;
  background: #111827;
}

.thumb-wrap {
  aspect-ratio: 16 / 9;
}

.poster-wrap {
  aspect-ratio: 2 / 3;
}

.thumb-wrap img,
.poster-wrap img,
.category-tile img,
.collection-card img,
.related-card img,
.rank-row img,
.rank-list-row img,
.top-rank-card img,
.category-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.48s ease;
}

.movie-card:hover img,
.category-tile:hover img,
.collection-card:hover img,
.related-card:hover img,
.rank-row:hover img,
.rank-list-row:hover img,
.top-rank-card:hover img,
.category-overview-card:hover img {
  transform: scale(1.08);
}

.duration,
.poster-rating,
.poster-type {
  position: absolute;
  z-index: 2;
  padding: 5px 8px;
  border-radius: 9px;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 850;
  background: rgba(0, 0, 0, 0.68);
}

.duration,
.poster-rating {
  top: 10px;
  right: 10px;
}

.poster-type {
  left: 10px;
  bottom: 10px;
  background: linear-gradient(90deg, var(--pink), var(--purple));
}

.card-body {
  padding: 15px;
}

.card-body h2 {
  display: -webkit-box;
  min-height: 2.6em;
  margin: 0 0 8px;
  overflow: hidden;
  color: #1f2937;
  font-size: 1rem;
  font-weight: 850;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-body p {
  display: -webkit-box;
  min-height: 3em;
  margin: 0 0 12px;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-tags,
.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.card-tags span {
  padding: 4px 8px;
  border-radius: 999px;
  color: #9333ea;
  font-size: 0.74rem;
  font-weight: 800;
  background: #faf5ff;
}

.card-meta {
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
}

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

.scroll-row .movie-card {
  width: 270px;
  flex: 0 0 auto;
  scroll-snap-align: start;
}

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

.category-tile {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  border-radius: 24px;
  color: #fff;
  box-shadow: var(--shadow);
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.16));
}

.category-tile img {
  position: absolute;
  inset: 0;
}

.category-tile div {
  position: absolute;
  z-index: 2;
  left: 20px;
  right: 20px;
  bottom: 18px;
}

.category-tile h3,
.collection-card h3,
.related-card h3 {
  margin: 0;
}

.category-tile p {
  display: -webkit-box;
  margin: 8px 0 0;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.92rem;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

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

.rank-card,
.rank-list-card,
.content-card,
.detail-main-card,
.related-panel,
.player-card {
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.rank-card,
.rank-list-card,
.content-card,
.detail-main-card,
.related-panel {
  padding: 24px;
}

.rank-row,
.rank-list-row {
  display: grid;
  align-items: center;
  gap: 14px;
  border-radius: 16px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.rank-row {
  grid-template-columns: 38px 80px 1fr auto;
  padding: 12px;
}

.rank-row:hover,
.rank-list-row:hover {
  transform: translateX(4px);
  background: linear-gradient(90deg, #faf5ff, #fdf2f8);
}

.rank-number {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--yellow), var(--orange));
}

.rank-row img {
  aspect-ratio: 16 / 9;
  border-radius: 10px;
}

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

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

.collection-grid {
  display: grid;
  gap: 16px;
}

.collection-card {
  position: relative;
  min-height: 176px;
  overflow: hidden;
  border-radius: 22px;
  color: #fff;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.18);
}

.collection-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.18));
}

.collection-card img {
  position: absolute;
  inset: 0;
}

.collection-card div {
  position: absolute;
  z-index: 2;
  left: 20px;
  right: 20px;
  bottom: 18px;
}

.collection-card span {
  display: inline-flex;
  padding: 5px 10px;
  margin-bottom: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.collection-card p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.86);
}

.page-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 28px;
  padding: 46px;
  border-radius: 30px;
  color: #fff;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.28), transparent 32%),
    linear-gradient(120deg, var(--red), var(--pink), var(--purple));
  box-shadow: var(--shadow);
}

.page-hero span {
  display: inline-flex;
  margin-bottom: 12px;
  color: #fde68a;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(2.1rem, 5vw, 4rem);
  line-height: 1.08;
}

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

.category-overview-grid {
  display: grid;
  gap: 22px;
}

.category-overview-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  overflow: hidden;
  border-radius: 26px;
  background: #fff;
  box-shadow: var(--shadow);
}

.category-cover {
  overflow: hidden;
  min-height: 210px;
}

.category-overview-body {
  padding: 28px;
}

.category-overview-body h2 {
  margin: 0 0 12px;
  font-size: 1.55rem;
}

.category-overview-body p {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.75;
}

.category-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.category-samples a {
  padding: 7px 10px;
  border-radius: 999px;
  color: #7c3aed;
  background: #f5f3ff;
  font-size: 0.86rem;
  font-weight: 800;
}

.text-button {
  padding: 10px 18px;
  color: #fff;
  background: linear-gradient(90deg, var(--pink), var(--purple));
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 18px;
  color: var(--muted);
  font-weight: 750;
}

.breadcrumb a {
  color: #7c3aed;
}

.filter-panel,
.search-box-large {
  display: grid;
  gap: 14px;
  margin-bottom: 28px;
  padding: 20px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.filter-panel {
  grid-template-columns: 2fr repeat(3, 1fr) auto;
}

.search-box-large form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
}

.top-rank-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

.top-rank-card {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  border-radius: 28px;
  color: #fff;
  box-shadow: var(--shadow);
}

.top-rank-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.22));
}

.top-rank-card img {
  position: absolute;
  inset: 0;
}

.top-rank-card div {
  position: absolute;
  z-index: 2;
  left: 24px;
  right: 24px;
  bottom: 24px;
}

.top-rank-card span {
  color: #fde68a;
  font-weight: 900;
}

.top-rank-card h2 {
  margin: 8px 0;
  font-size: 1.45rem;
}

.top-rank-card p {
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.65;
}

.rank-list-row {
  grid-template-columns: 44px 90px 1fr 90px 90px;
  padding: 12px;
  border-bottom: 1px solid var(--line);
}

.rank-list-row:last-child {
  border-bottom: 0;
}

.rank-list-row img {
  aspect-ratio: 16 / 9;
  border-radius: 12px;
}

.rank-list-title {
  display: grid;
  gap: 3px;
  font-weight: 850;
}

.rank-list-title small {
  color: var(--muted);
  font-weight: 650;
}

.detail-page {
  padding: 28px 0 56px;
}

.player-card {
  overflow: hidden;
  margin-bottom: 28px;
  background: #000;
}

.player-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #fff;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.55));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-overlay span {
  width: 86px;
  height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 5px;
  border-radius: 999px;
  font-size: 2.2rem;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  box-shadow: 0 18px 45px rgba(236, 72, 153, 0.4);
}

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

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
}

.detail-header {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 24px;
  align-items: start;
}

.detail-poster {
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.16);
}

.detail-kicker {
  color: var(--pink);
  font-weight: 900;
}

.detail-title-block h1 {
  margin: 8px 0 12px;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.08;
}

.detail-title-block p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.detail-meta,
.tag-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.detail-meta span,
.tag-pills span {
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 850;
}

.detail-meta span {
  color: #92400e;
  background: #fffbeb;
}

.tag-pills span {
  color: #6d28d9;
  background: #f5f3ff;
}

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

.info-grid div {
  padding: 14px;
  border-radius: 16px;
  background: #f8fafc;
}

.info-grid span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.82rem;
}

.info-grid strong {
  color: #111827;
}

.text-section {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  margin-top: 24px;
}

.text-section h2,
.related-panel h2,
.content-card h1,
.content-card h2 {
  margin: 0 0 16px;
}

.text-section p,
.content-card p {
  margin: 0;
  color: #4b5563;
  line-height: 1.9;
  white-space: pre-line;
}

.detail-neighbor {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 26px;
}

.detail-neighbor a {
  padding: 14px;
  border-radius: 16px;
  color: #6d28d9;
  background: #f5f3ff;
  font-weight: 800;
}

.related-panel {
  position: sticky;
  top: 96px;
  align-self: start;
}

.related-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.related-card:last-child {
  border-bottom: 0;
}

.related-card img {
  aspect-ratio: 16 / 9;
  border-radius: 12px;
}

.related-card h3 {
  display: -webkit-box;
  overflow: hidden;
  font-size: 0.95rem;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.related-card p {
  display: -webkit-box;
  margin: 5px 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.related-card span {
  color: var(--yellow);
  font-weight: 900;
}

.content-card {
  max-width: 920px;
  margin: 0 auto;
}

.content-card h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  background: linear-gradient(90deg, var(--purple), var(--pink));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.content-card h2 {
  margin-top: 28px;
  color: #111827;
}

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

.service-grid article {
  padding: 20px;
  border-radius: 20px;
  background: linear-gradient(135deg, #faf5ff, #eff6ff);
}

.site-footer {
  color: #fff;
  background: linear-gradient(90deg, #581c87, #1e3a8a, #312e81);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 32px;
  padding: 46px 0;
}

.footer-brand h2 {
  margin: 0 0 12px;
  font-size: 1.5rem;
  color: #fde68a;
}

.footer-brand p,
.footer-group a,
.footer-bottom {
  color: rgba(255, 255, 255, 0.75);
}

.footer-brand p {
  line-height: 1.75;
}

.footer-group {
  display: grid;
  align-content: start;
  gap: 10px;
}

.footer-group h3 {
  margin: 0 0 8px;
  color: #fde68a;
}

.footer-group a:hover {
  color: #fff;
}

.footer-bottom {
  padding: 18px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

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

@media (max-width: 1100px) {
  .feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

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

  .related-panel {
    position: static;
  }
}

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

  .mobile-toggle {
    display: inline-flex;
  }

  .hero-carousel {
    height: 520px;
  }

  .home-search-panel form,
  .filter-panel,
  .search-box-large form,
  .category-overview-card,
  .detail-header,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .portrait-grid,
  .category-tile-grid,
  .top-rank-grid,
  .service-grid,
  .info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rank-list-row {
    grid-template-columns: 40px 72px 1fr;
  }

  .rank-list-row > span:nth-last-child(2),
  .rank-list-row > strong {
    display: none;
  }
}

@media (max-width: 560px) {
  .top-nav,
  .page-wrap,
  .hero-content,
  .footer-inner,
  .mobile-search,
  .mobile-links {
    width: min(100% - 24px, 1180px);
  }

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

  .hero-carousel {
    height: 500px;
  }

  .hero-content {
    padding-bottom: 70px;
  }

  .hero-actions,
  .hero-meta,
  .quick-links {
    gap: 8px;
  }

  .home-search-panel,
  .page-hero,
  .rank-card,
  .rank-list-card,
  .content-card,
  .detail-main-card,
  .related-panel {
    border-radius: 20px;
    padding: 18px;
  }

  .feature-grid,
  .portrait-grid,
  .category-tile-grid,
  .top-rank-grid,
  .service-grid,
  .info-grid,
  .detail-neighbor {
    grid-template-columns: 1fr;
  }

  .movie-card-portrait {
    display: grid;
    grid-template-columns: 128px 1fr;
  }

  .poster-wrap {
    height: 100%;
  }

  .related-card {
    grid-template-columns: 100px 1fr;
  }
}
