:root {
  --primary-red: #ef4444;
  --primary-pink: #ec4899;
  --primary-orange: #f97316;
  --primary-purple: #8b5cf6;
  --primary-blue: #2563eb;
  --dark-blue: #111827;
  --muted-text: #6b7280;
  --soft-bg: #f8fafc;
  --card-bg: #ffffff;
  --border-color: #e5e7eb;
  --shadow-soft: 0 12px 30px rgba(15, 23, 42, 0.10);
  --shadow-hover: 0 18px 45px rgba(15, 23, 42, 0.18);
  --radius-xl: 22px;
  --radius-lg: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: #1f2937;
  background:
    radial-gradient(circle at top left, rgba(236, 72, 153, 0.10), transparent 32rem),
    radial-gradient(circle at top right, rgba(249, 115, 22, 0.08), transparent 28rem),
    var(--soft-bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

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

button,
input {
  font: inherit;
}

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

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.brand:hover .brand-mark {
  transform: scale(1.12) rotate(4deg);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
  transition: transform 0.2s ease;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-weight: 600;
}

.nav-link {
  position: relative;
  opacity: 0.92;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  opacity: 1;
  transform: translateY(-1px);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -9px;
  height: 3px;
  border-radius: 999px;
  background: #fff7ad;
}

.global-search,
.mobile-search {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.global-search input,
.mobile-search input,
.library-search {
  border: 0;
  border-radius: 999px;
  outline: none;
  background: rgba(255, 255, 255, 0.92);
  color: #111827;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.global-search input {
  width: 240px;
  padding: 10px 16px;
}

.global-search button,
.mobile-search button {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  color: #ffffff;
  background: rgba(17, 24, 39, 0.28);
  cursor: pointer;
}

.menu-toggle {
  display: none;
  border: 0;
  color: #ffffff;
  background: transparent;
  font-size: 28px;
  cursor: pointer;
}

.mobile-menu {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
}

.mobile-menu.open {
  display: block;
}

.mobile-search {
  margin-bottom: 12px;
}

.mobile-search input {
  flex: 1;
  padding: 12px 16px;
}

.mobile-link {
  display: block;
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-weight: 700;
}

.search-panel {
  position: fixed;
  inset: 78px 16px auto auto;
  z-index: 60;
  display: none;
  width: min(440px, calc(100vw - 32px));
  max-height: calc(100vh - 110px);
  overflow: auto;
  background: rgba(255, 255, 255, 0.98);
  border-radius: 20px;
  box-shadow: var(--shadow-hover);
  border: 1px solid rgba(229, 231, 235, 0.9);
}

.search-panel.open {
  display: block;
}

.search-panel-inner {
  padding: 16px;
}

.search-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.search-panel-head button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary-pink), var(--primary-purple));
  cursor: pointer;
}

.search-result-item {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  padding: 10px;
  border-radius: 14px;
  transition: background 0.2s ease;
}

.search-result-item:hover {
  background: #f3f4f6;
}

.search-result-item img {
  width: 96px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 12px;
  background: #111827;
}

.search-result-item strong {
  display: block;
  margin-bottom: 6px;
  color: #111827;
}

.search-result-item span,
.search-empty {
  color: var(--muted-text);
  font-size: 14px;
}

.hero {
  position: relative;
  height: 600px;
  overflow: hidden;
  color: #ffffff;
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: none;
  background-size: cover;
  background-position: center;
}

.hero-slide.active {
  display: block;
  animation: heroFade 0.75s ease both;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.35) 55%, rgba(0, 0, 0, 0.12)),
    radial-gradient(circle at 20% 78%, rgba(236, 72, 153, 0.38), transparent 28rem);
}

.hero-content {
  position: relative;
  display: flex;
  align-items: flex-end;
  width: min(1180px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  padding-bottom: 72px;
}

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

.hero-kicker {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
  font-weight: 700;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(42px, 7vw, 68px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.04em;
  text-shadow: 0 12px 30px rgba(0, 0, 0, 0.42);
}

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

.hero-meta,
.hero-tags,
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.hero-meta {
  margin-bottom: 18px;
  font-weight: 700;
}

.hero-meta span,
.hero-tags span,
.detail-tags span {
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
}

.hero-tags {
  margin-bottom: 28px;
}

.primary-action,
.ghost-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-action {
  color: #ffffff;
  background: linear-gradient(90deg, var(--primary-pink), var(--primary-purple));
  box-shadow: 0 14px 32px rgba(236, 72, 153, 0.35);
}

.ghost-action {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(14px);
}

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

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

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

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

main {
  padding-bottom: 40px;
}

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

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

.vertical-head {
  align-items: flex-end;
}

.section-head p {
  margin: 8px 0 0;
  color: var(--muted-text);
}

.section-head a {
  color: #6d28d9;
  font-weight: 800;
}

.gradient-title {
  margin: 0;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.15;
  font-weight: 900;
  color: transparent;
  background-clip: text;
  -webkit-background-clip: text;
}

.hot-title {
  background-image: linear-gradient(90deg, #ef4444, #f59e0b, #ec4899);
}

.latest-title {
  background-image: linear-gradient(90deg, #2563eb, #06b6d4, #14b8a6);
}

.category-title {
  background-image: linear-gradient(90deg, #22c55e, #10b981, #14b8a6);
}

.editor-title {
  background-image: linear-gradient(90deg, #f97316, #ef4444, #ec4899);
}

.collection-title,
.library-title {
  background-image: linear-gradient(90deg, #8b5cf6, #ec4899, #ef4444);
}

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

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

.movie-card {
  min-width: 0;
  border-radius: var(--radius-lg);
  background: var(--card-bg);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.movie-card-link {
  display: block;
  height: 100%;
}

.movie-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #111827;
}

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

.movie-card:hover .movie-thumb img,
.collection-card:hover img,
.strip-card:hover img,
.category-tile:hover img {
  transform: scale(1.08);
}

.movie-duration,
.movie-category,
.rank-badge,
.strip-new {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.movie-duration {
  right: 10px;
  top: 10px;
  padding: 7px 9px;
  background: rgba(0, 0, 0, 0.72);
}

.movie-category {
  left: 10px;
  bottom: 10px;
  padding: 7px 10px;
  background: linear-gradient(90deg, var(--primary-purple), var(--primary-pink));
}

.rank-badge {
  left: 10px;
  top: 10px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
}

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

.movie-card-body h3 {
  display: -webkit-box;
  min-height: 46px;
  margin: 0 0 8px;
  color: #111827;
  overflow: hidden;
  font-size: 16px;
  line-height: 1.45;
  font-weight: 800;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-card:hover h3 {
  color: #7c3aed;
}

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

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted-text);
  font-size: 13px;
}

.movie-meta span:first-child {
  color: #f59e0b;
  font-weight: 800;
}

.horizontal-strip {
  display: flex;
  gap: 16px;
  margin-inline: -16px;
  padding: 0 16px 12px;
  overflow-x: auto;
}

.strip-card {
  position: relative;
  flex: 0 0 260px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.strip-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.strip-card strong,
.strip-card small {
  display: block;
  padding: 0 14px;
}

.strip-card strong {
  margin-top: 12px;
  color: #111827;
}

.strip-card small {
  margin: 6px 0 14px;
  color: var(--muted-text);
}

.strip-new {
  left: 10px;
  top: 10px;
  padding: 7px 10px;
  background: #22c55e;
}

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

.category-tile {
  position: relative;
  min-height: 230px;
  overflow: hidden;
  border-radius: var(--radius-xl);
  color: #ffffff;
  background: #111827;
  box-shadow: var(--shadow-soft);
}

.category-tile img {
  width: 100%;
  height: 100%;
  min-height: 230px;
  object-fit: cover;
  opacity: 0.72;
  transition: transform 0.45s ease;
}

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

.category-tile span,
.category-tile strong,
.category-tile small {
  position: absolute;
  z-index: 2;
  left: 18px;
  right: 18px;
}

.category-tile span {
  bottom: 86px;
  font-size: 24px;
  font-weight: 900;
}

.category-tile strong {
  bottom: 58px;
  color: #fde68a;
}

.category-tile small {
  bottom: 22px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.5;
}

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

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

.wide-card .movie-card-link {
  display: grid;
  grid-template-columns: 44% 1fr;
}

.wide-card .movie-thumb {
  height: 100%;
  aspect-ratio: auto;
}

.ranking-box {
  position: sticky;
  top: 92px;
  border-radius: var(--radius-xl);
  padding: 22px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.ranking-box h2 {
  margin: 0 0 18px;
  font-size: 24px;
}

.ranking-list {
  display: grid;
  gap: 10px;
}

.ranking-item {
  display: grid;
  grid-template-columns: 42px 84px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 14px;
  background: #ffffff;
  transition: background 0.2s ease, transform 0.2s ease;
}

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

.ranking-number {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: #ffffff;
  background: #9ca3af;
  font-weight: 900;
}

.ranking-item:nth-child(1) .ranking-number {
  background: linear-gradient(135deg, #facc15, #f59e0b);
}

.ranking-item:nth-child(2) .ranking-number {
  background: linear-gradient(135deg, #d1d5db, #6b7280);
}

.ranking-item:nth-child(3) .ranking-number {
  background: linear-gradient(135deg, #fb923c, #c2410c);
}

.ranking-item img {
  width: 84px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 10px;
  background: #111827;
}

.ranking-info {
  min-width: 0;
}

.ranking-info strong,
.ranking-info small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-info small {
  margin-top: 4px;
  color: var(--muted-text);
}

.ranking-score {
  color: #f59e0b;
  font-weight: 900;
}

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

.collection-card {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  border-radius: var(--radius-xl);
  color: #ffffff;
  box-shadow: var(--shadow-soft);
  background: #111827;
}

.collection-card img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.collection-card span,
.collection-card strong,
.collection-card small {
  position: absolute;
  z-index: 2;
  left: 20px;
  right: 20px;
}

.collection-card span {
  bottom: 94px;
  width: max-content;
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.collection-card strong {
  bottom: 54px;
  font-size: 22px;
}

.collection-card small {
  bottom: 24px;
  color: rgba(255, 255, 255, 0.78);
}

.library-search {
  width: min(360px, 100%);
  padding: 13px 18px;
  border: 1px solid var(--border-color);
  box-shadow: none;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.filter-btn {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  color: #374151;
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
  cursor: pointer;
}

.filter-btn.active,
.filter-btn:hover {
  color: #ffffff;
  background: linear-gradient(90deg, var(--primary-pink), var(--primary-purple));
}

.page-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 36px auto 0;
  border-radius: 28px;
  padding: 58px;
  color: #ffffff;
  background:
    radial-gradient(circle at 88% 18%, rgba(255, 255, 255, 0.24), transparent 16rem),
    linear-gradient(120deg, #7c3aed, #ec4899, #f97316);
  box-shadow: var(--shadow-soft);
}

.compact-hero h1,
.category-page-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(36px, 6vw, 58px);
  line-height: 1.08;
}

.compact-hero p,
.category-page-hero p {
  max-width: 740px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.8;
}

.category-page-hero span {
  display: inline-flex;
  margin-bottom: 14px;
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.18);
}

.category-page-hero .ghost-action {
  margin-top: 24px;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 20px;
  border-radius: var(--radius-xl);
  padding: 18px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.category-cover {
  display: block;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #111827;
}

.category-cover img {
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
}

.category-overview-card h2 {
  margin: 0 0 8px;
  color: #111827;
}

.category-overview-card p {
  margin: 0 0 10px;
  color: var(--muted-text);
  line-height: 1.7;
}

.category-overview-card span {
  display: inline-flex;
  margin-bottom: 8px;
  border-radius: 999px;
  padding: 6px 10px;
  color: #ffffff;
  background: linear-gradient(90deg, var(--primary-pink), var(--primary-purple));
  font-size: 13px;
  font-weight: 800;
}

.category-overview-card ul {
  margin: 0;
  padding-left: 18px;
  color: #4b5563;
}

.full-ranking-list {
  border-radius: var(--radius-xl);
  padding: 12px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--muted-text);
  font-size: 14px;
}

.breadcrumb a {
  color: #7c3aed;
  font-weight: 800;
}

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

.detail-main {
  display: grid;
  gap: 22px;
}

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #000000;
  box-shadow: var(--shadow-hover);
  aspect-ratio: 16 / 9;
}

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

.big-play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary-pink), var(--primary-purple));
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.35);
  transform: translate(-50%, -50%);
  cursor: pointer;
  font-size: 34px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.player-card.playing .big-play {
  opacity: 0;
  pointer-events: none;
}

.big-play:hover {
  transform: translate(-50%, -50%) scale(1.08);
}

.player-message {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: none;
  border-radius: 12px;
  padding: 10px 14px;
  color: #ffffff;
  background: rgba(17, 24, 39, 0.82);
}

.player-message.show {
  display: block;
}

.detail-card,
.related-sidebar,
.text-page article,
.support-grid article {
  border-radius: var(--radius-xl);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.detail-card {
  padding: 28px;
}

.detail-card h1 {
  margin: 0 0 16px;
  color: #111827;
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.15;
}

.detail-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
  color: #4b5563;
}

.detail-meta-row span {
  border-radius: 999px;
  padding: 8px 12px;
  background: #f3f4f6;
}

.detail-meta-row span:first-child {
  color: #f59e0b;
  font-weight: 900;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.detail-tags span {
  color: #ffffff;
  background: linear-gradient(90deg, var(--primary-blue), #06b6d4);
}

.secondary-tags span {
  background: linear-gradient(90deg, var(--primary-purple), var(--primary-pink));
}

.detail-one-line {
  border-left: 5px solid var(--primary-pink);
  margin: 20px 0;
  padding: 14px 18px;
  border-radius: 0 14px 14px 0;
  background: #fdf2f8;
  color: #831843;
  font-weight: 700;
}

.detail-card h2 {
  margin: 28px 0 12px;
  color: #111827;
  font-size: 24px;
}

.detail-card p {
  color: #374151;
  line-height: 1.9;
}

.related-sidebar {
  position: sticky;
  top: 92px;
  padding: 22px;
}

.related-sidebar h2 {
  margin: 0 0 18px;
}

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

.related-grid .movie-card {
  box-shadow: none;
  border: 1px solid var(--border-color);
}

.text-page,
.support-grid {
  max-width: 980px;
}

.text-page article,
.support-grid article {
  padding: 28px;
}

.text-page h2,
.support-grid h2 {
  margin-top: 0;
  color: #111827;
}

.text-page p,
.support-grid p {
  color: #4b5563;
  line-height: 1.9;
}

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

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

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}

.site-footer h3,
.site-footer h4 {
  margin: 0 0 16px;
}

.site-footer h3 {
  color: #fde68a;
  font-size: 22px;
}

.site-footer p,
.site-footer a,
.site-footer li {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.8;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer a:hover {
  color: #ffffff;
}

[hidden],
.movie-card.is-hidden {
  display: none !important;
}

@keyframes heroFade {
  from {
    opacity: 0;
    transform: scale(1.015);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

  .menu-toggle {
    display: block;
  }

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

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

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

  .ranking-box,
  .related-sidebar {
    position: static;
  }

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

@media (max-width: 720px) {
  .brand-text {
    font-size: 20px;
  }

  .hero {
    height: 560px;
  }

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

  .hero p {
    font-size: 16px;
  }

  .section,
  .page-hero,
  .detail-shell,
  .footer-inner,
  .nav-inner,
  .mobile-menu {
    width: min(100% - 24px, 1180px);
  }

  .page-hero {
    padding: 34px 24px;
  }

  .section-head,
  .vertical-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .movie-grid,
  .all-movie-grid,
  .picks-grid,
  .category-grid,
  .collection-grid,
  .support-grid {
    grid-template-columns: 1fr;
  }

  .wide-card .movie-card-link,
  .category-overview-card,
  .ranking-item {
    grid-template-columns: 1fr;
  }

  .wide-card .movie-thumb {
    aspect-ratio: 16 / 9;
  }

  .category-overview-card {
    padding: 14px;
  }

  .ranking-item {
    text-align: left;
  }

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

  .search-panel {
    inset: 76px 12px auto 12px;
    width: auto;
  }

  .detail-card {
    padding: 22px;
  }
}
